4765a7d307c2e41f60468783fb51875330c311c1
[gnulib.git] / ChangeLog
1 2013-11-29  RV1971  <rv1971@web.de>
2
3         base64: (trivial) fix compilation regression on some compilers
4         * lib/base64.c: Don't return the void function,
5         instead split to a separate return statement.
6
7 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8
9         ignore-value: revert previous code change
10         * lib/ignore-value.h (ignore_value): Use __extension__ and
11         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
12         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
13         Change the comment to try to explain this better.
14
15 2013-11-27  Pádraig Brady <P@draigBrady.com>
16
17         selinux-h: improve stub types and add more stub functions
18
19         * lib/se-selinux.in.h: Change security_context_t to a typedef
20         rather than a define, as it's a pointer type and so is better
21         as a typedef to avoid issues declaring multiple variables
22         with the comma operator.  Also add stub for string_to_security_class().
23         * lib/se-context.in.h: Add stub functions for
24         context_{type,range,role,user}_get().
25
26 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
27
28         ignore-value: prefer GCC version back through 2.0
29         The code didn't match the comments, so I did a bit of software
30         archaeology.  GCC 2.0 seems to support __extension__ and
31         __typeof__, so fix both code and comments to use 2.0.
32         * lib/ignore-value.h (ignore_value): Use __extension__ and
33         __typeof__ for GCC 2.0 through 3.3, too.
34
35 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
36
37         pty: Activate the signature wrapper of forkpty.
38         The intended preprocessor macro HAVE_FORKPTY is
39         never defined, yet `lib/forkpty.c' depends on it.
40
41         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
42         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
43         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
44
45 2013-11-18  Jim Meyering  <meyering@fb.com>
46         and Paul Eggert  <eggert@cs.ucla.edu>
47
48         quotearg: don't attempt to store 1 << 31 into an "int"
49         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
50         gcc's new -fsanitize=undefined and running its tests triggered some
51         new test failures due to undefined behavior, all with this diagnostic:
52           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
53             cannot be represented in type int
54         Rather than shifting "1" left to form a mask, shift the bits right and
55         simply use "1" as the mask.
56
57 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
58
59         error: depend on stdio
60         Problem reported by Nikos Mavrogiannopoulos in
61         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
62         * modules/error (Depends-on): Add stdio.
63
64 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
65
66         * doc/relocatable-maint.texi (Supporting Relocation): Improve
67         wording.
68         Reported by Reuben Thomas <rrt@sc3d.org>.
69
70 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
71
72         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
73         New function and macro, to work around _DARWIN_C_SOURCE problem.
74         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
75
76 2013-11-11  Pádraig Brady <P@draigBrady.com>
77
78         base64: provide a fast path for encoding well sized buffers
79         Avoid conditionals in the base64 encoding loop,
80         which was seen to give 60% better throughput.
81         * lib/base64.c (base64_encode_fast): A new function to be called
82         when we don't want to NUL terminate, and we have enough space
83         in the output to encode the given input.
84         (base64_encode): Call the _fast() version when appropriate.
85         Also remove a redundant mask with 0x3F on the first encoded byte.
86
87 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
88
89         extern-inline: port better to OS X 10.9
90         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
91         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
92         OS X 10.9, except for g++ where the bug is still present.
93         See <http://trac.macports.org/ticket/41033>.
94
95 2013-11-08  Eric Blake  <eblake@redhat.com>
96
97         fpending: fix regression on DragonFly BSD
98         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
99         * lib/fpending.h (__fpending): Don't declare twice.
100         Reported by GW in
101         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
102
103 2013-11-05  Jim Meyering  <meyering@fb.com>
104
105         hash: relax license to LGPLv2+, for libguestfs
106         * modules/hash (License): Change from GPL to LGPLv2+.
107
108 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
109
110         intprops: port to Oracle Studio c99
111         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
112         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
113
114 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
115
116         obstack: pacify HP C
117         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
118         warning "conversion from pointer to smaller integer" from HP
119         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
120         C89 or later nowadays, so cast to void instead of int.  Privately
121         reported by H.Merijn Brand.  Also, change header to match glibc's,
122         to make checking against glibc easier.
123
124 2013-10-29  Jim Meyering  <meyering@fb.com>
125
126         maint.mk: prefer gpgv2 over gpgv
127         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
128         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
129         Reported by Gary Vaughan.
130
131 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
132
133         isnan: port to VAX
134         Reported by John Klos for NetBSD-5/VAX in
135         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
136         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
137         (FUNC): Use it.
138
139 2013-10-28  Jim Meyering  <meyering@fb.com>
140
141         gnulib-tool: protect against CDPATH
142         * gnulib-tool: Many "cd" built-in functions print a directory name
143         to stdout when CDPATH is set, e.g.,
144           $ bash -c 'CDPATH=/; cd tmp'
145           /tmp
146         Unset it, when possible.  Prompted by a comment from Bruce Korb.
147
148         maint.mk: restore functionality removed by recent change...
149         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
150         the context of a shallow-cloned gnulib repository: "git describe"
151         would fail in such a directory.  However, that change made it so
152         the reported gnulib revision no longer includes the version number
153         or a commit count, even when run from a full clone.
154         * top/maint.mk (gnulib-version): Use the full "git describe"
155         output when possible, e.g., the form above, rather than the
156         abbreviated, no-tag, no-commit-count string, and fall back to
157         using a 10-byte hash, rather than the default minimal-length
158         hash prefix, since while the minimal-length one may be fine today,
159         it is likely not to be unique for very long.
160
161 2013-10-26  Jim Meyering  <meyering@fb.com>
162
163         maint.mk: fix "release" target to build _version
164         This fixes a bug in README-release whereby following the outlined
165         steps, one would publish a tarball whose programs would report
166         --version output not consistent with the package version number.
167         This bug caused grep-2.15 to produce a grep program whose
168         --version option made it print 2.14.56-1e3d rather than 2.15.
169         * top/maint.mk (release): Making this target build "_version"
170         ensures that the new version number is reflected in configure.
171
172 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
173
174         install-reloc: Support multi-binary installation.
175         * build-aux/install-reloc: Support installing multiple programs in
176         one invocation, as done by Automake starting with commit
177         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
178         Haible <bruno@clisp.org>, archived at
179         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
180         Reported by Sylvain <beuc@gnu.org>.
181
182 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
183
184         selinux-h: Really build without selinux when library is missing.
185         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
186         continue without selinux, as already told in the warning message.
187
188 2013-10-21  Jim Meyering  <meyering@fb.com>
189
190         regex: also remove dependency on HAVE_WCSCOLL
191         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
192
193 2013-10-21  Reuben Thomas <rrt@sc3d.org>
194
195         xfreopen: Fix typo. s/frepoen/freopen/
196         * lib/xfreopen.c: Fix description.
197         * modules/xfreopen: Likewise.
198
199 2013-10-21  Jim Meyering  <meyering@fb.com>
200
201         regex: don't depend on wcscoll
202         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
203         It is no longer used.
204
205 2013-10-20  Jim Meyering  <meyering@fb.com>
206
207         error: add the printf attribute to a static function
208         * lib/error.c (error_tail): Add the printf attribute, to placate
209         gcc's -Werror=suggest-attribute=format option.
210
211 2013-09-30  Jim Meyering  <meyering@fb.com>
212
213         fpending, obstack, strerror-override: use pure+const function attrs
214         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
215         * lib/obstack.c (_obstack_allocated_p): Likewise.
216         * lib/obstack.h (_obstack_memory_used): Likewise.
217         (_obstack_memory_used): Likewise.
218         * lib/strerror-override.h (strerror_override): Declare with
219         the "const" attribute.
220
221 2013-10-18  Eric Blake  <eblake@redhat.com>
222
223         extern-inline: make safe for -Wundef usage
224         Reported by Vladimir 'phcoder' Serbinenko in
225         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
226         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
227
228 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
229
230         mkfifo-tests, etc.: allow HP-UX 11.11 bug
231         Problem reported by Daniel Richard G. in
232         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
233         * doc/posix-functions/mkfifo.texi (mkfifo):
234         * doc/posix-functions/mkfifoat.texi (mkfifoat):
235         * doc/posix-functions/mknod.texi (mknod):
236         * doc/posix-functions/mknodat.texi (mknodat):
237         Document the HP-UX 11.11 bug.
238         * tests/test-mkfifo.h (test_mkfifo):
239         Allow the HP-UX 11.11 bug.
240
241 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
242
243         acl: allow cross-compilation to Gentoo
244         Problem reported by Gabriel Marcano in
245         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
246         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
247         test only whether it links.
248
249 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
250
251         mgetgroups: remove dependency on realloc-gnu
252         The dependency violates the comment in realloc-gnu, which
253         says that tests can't depend on realloc-gnu; some tests depend
254         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
255         Problem reported by Daniel Richard G. in
256         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
257         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
258         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
259         not realloc-gnu.
260
261 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
262
263         regex-tests: port to HP-UX 11.11
264         Problem reported by Daniel Richard G. in
265         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
266         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
267
268 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
269
270         verify: document some 'assume' pitfalls
271         * doc/verify.texi (Compile-time Assertions):
272         Mention that 'assume (E)' can sometimes slow things down.
273         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
274
275 2013-10-10  Eric Blake  <eblake@redhat.com>
276
277         strtoumax: fix typo in previous commit.
278         * modules/strtoumax (Depends-on): Fix typo.
279         * modules/strtoimax (Depends-on): Likewise.
280
281 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
282
283         strtoumax: port to Solaris 8
284         This problem was introduced in the recent HP-UX patch.
285         Reported by Tom G. Christensen in
286         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
287         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
288         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
289
290 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
291
292         strtoimax, strtoumax: port to HP-UX 11.11
293         Problem reported by Daniel Richard G. in
294         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
295         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
296         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
297         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
298         REPLACE_STRTOUMAX.
299         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
300         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
301         Replace the function if defined as a macro but not as a function.
302         * modules/inttypes-incomplete (inttypes.h): Substitute
303         REPLACE_STRTOUMAX.
304         * modules/strtoumax (configure.ac): Replace strtoumax if
305         REPLACE_STRTOUMAX.
306
307 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
308
309         strtoimax: port to HP-UX 11.11
310         Problem reported by Daniel Richard G.
311         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
312         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
313         they might clash with inttypes.h.
314
315 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
316
317         New module 'count-trailing-zeros'.
318         * MODULES.html.sh: Mention it.
319         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
320         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
321         * modules/count-trailing-zeros-tests:
322         * tests/test-count-trailing-zeros.c:
323         New files.
324
325         count-leading-zeros: port to MSC; support types wider than 64 bits
326         The ideas behind the MSC port are stolen from Emacs.
327         * lib/count-leading-zeros.h:
328         Don't include verify.h: it's no longer needed, as types wider than
329         64 bits are now supported.
330         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
331         performance with MSC.  All uses changed.  Do not assume that TYPE
332         has at most 64 bits.
333         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
334         All uses changed.  Fold the subtraction from 31 into the table.
335
336         count-one-bits: port to MSC; support types wider than 64 bits
337         The ideas behind the MSC port are stolen from Emacs.
338         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
339         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
340         Don't include verify.h: it's no longer needed, as types wider than
341         64 bits are now supported.
342         (COUNT_ONE_BITS_GENERIC): New macro.
343         (popcount_supported) [_MSC_VER]: New inline function.
344         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
345         performance with MSC.  All uses changed.  Do not assume that TYPE
346         has at most 64 bits.
347         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
348
349 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
350
351         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
352         * lib/mountlist.c (read_file_system_list): fix leak of directory
353         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
354
355 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
356
357         tests: improve diagnostic when an assertion fails
358         * tests/macros.h (ASSERT): Report the assertion that failed.
359
360 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
361
362         verify: new macro 'assume'
363         This is taken from Emacs, and should be generally useful.
364         * doc/verify.texi (assume): Document it.
365         * lib/verify.h (assume): New macro.
366         (__has_builtin): Expand to 0 if not defined.
367
368 2013-09-26  Eric Blake  <eblake@redhat.com>
369
370         dup2, dup3: work around another cygwin crasher
371         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
372         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
373         * tests/test-dup2.c (main): Likewise.
374         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
375         * lib/dup3.c (dup3): Likewise.
376         * doc/posix-functions/dup2.texi (dup2): Document it.
377         * doc/glibc-functions/dup3.texi (dup3): Likewise.
378
379         getdtablesize: work around cygwin issue
380         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
381         * modules/getdtablesize (configure.ac): Build replacement.
382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
383         * modules/unistd (Makefile.am): Expose the witness.
384         * lib/unistd.in.h (getdtablesize): Declare replacement.
385         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
386         * tests/test-getdtablesize.c (main): Test it.
387         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
388
389 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
390
391         pmccabe2html: escaping of special characters
392         Escape all '<', '>', and '&' in HTML output.
393         * build-aux/pmccabe2html (html_fnc): Call gsub()
394         instead of sub() to capture all '<', '>', and '&'.
395         Neither of '<' and '>' is special in a regexp,
396         so first arguments to gsub() are corrected. Also,
397         in replacement strings, ampersand must be escaped.
398         Finally, '&' must be handled first, then '<' and '>'.
399
400 2013-09-24  Eric Blake  <eblake@redhat.com>
401
402         manywarnings: enable nicer gcc warning messages
403         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
404         some -f options for optimal warnings.
405
406 2013-09-21  Jim Meyering  <meyering@fb.com>
407
408         timespec: use the new TIMESPEC_RESOLUTION in a few more places
409         * lib/timespec-add.c (timespec_add): Also replace 999999999
410         with TIMESPEC_RESOLUTION - 1.
411         * lib/timespec-sub.c (timespec_sub): Likewise.
412
413 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
414
415         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
416         Problem reported by Dagobert Michelsen via Eric Blake in
417         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
418         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
419         not AC_COMPILE_IFELSE.
420
421 2013-09-23  Eric Blake  <eblake@redhat.com>
422
423         configmake: support new --runstatedir option
424         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
425         even if autoconf was too old to provide the command line option.
426         * modules/configmake (Makefile.am): Propagate it to .h file.
427
428 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
429
430         ctype, string: depend on extern-inline
431         This is needed to complete the recent OS X fixes.
432         Also, fix related documentation as suggested by Eric Blake.
433         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
434         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
435         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
436         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
437         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
438         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
439         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
440         * doc/posix-functions/toupper.texi:
441         List the 'ctype' gnulib module.
442         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
443         * doc/posix-functions/strncpy.texi:
444         List the 'string' gnulib module.
445         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
446         Add string.
447         * modules/ctype, modules/string (Depends-on): Add extern-inline.
448
449 2013-09-19  Pádraig Brady  <P@draigBrady.com>
450
451         userspec: support optional parameters to parse_user_spec()
452         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
453         then avoid group processing and treat the full spec as a user.
454         (parse_with_separator): Allow the USERNAME and GROUPNAME to
455         be optional params (NULL), in which case they're ignored.
456
457 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
458
459         timespec: new function make_timespec, and new constants
460         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
461         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
462         (make_timespec): New function.
463         * lib/dtotimespec.c (dtotimespec):
464         * lib/timespec-add.c (timespec_add):
465         * lib/timespec-sub.c (timespec_sub):
466         * lib/utimens.c (validate_timespec):
467         * lib/utimensat.c (rpl_utimensat):
468         Use these new constants and functions.
469
470         stdio: OS X port of putc_unlocked + extern inline
471         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
472         * doc/posix-functions/putc_unlocked.texi:
473         * doc/posix-functions/putchar_unlocked.texi:
474         Document this portability problem.
475
476         signal: OS X port of sigaddset etc. + extern inline
477         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
478         (sigismember): #undef on problematic Apple platforms.
479         * doc/posix-functions/sigaddset.texi:
480         * doc/posix-functions/sigdelset.texi:
481         * doc/posix-functions/sigemptyset.texi:
482         * doc/posix-functions/sigfillset.texi:
483         * doc/posix-functions/sigismember.texi:
484         Document this portability problem.
485
486         extern-inline: do not always suppress extern inline on OS X
487         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
488         extern inline on Apple only if the particular compile-time
489         configuration is known to have the problem.
490         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
491         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
492         other Gnulib modules.
493
494         extern-inline: document fixes for ctype and wctype macros
495         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
496         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
497         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
498         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
499         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
500         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
501         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
502         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
503         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
504         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
505         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
506         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
507         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
508         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
509         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
510         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
511         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
512         * doc/posix-functions/strncpy.texi:
513         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
514         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
515         Document that Gnulib fixes portability problems with these
516         functions on OS X 10.8 and earlier when called from plain inline
517         or extern inline functions.
518
519 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
520
521         fflush, freadahead, fseeko: Fix for Android
522         Suggested by Bruno Haible in:
523         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
524         * lib/stdio-impl.h: Use local __sfileext definition.
525
526 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
527
528         pmccabe2html: Portability to other awk versions.
529         The functions systime() and strftime() are available
530         in Gawk only.  Properly close two HTML-tags 'style'
531         and 'span'.
532         * build-aux/pmccabe2html (BEGIN): Store timing
533         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
534         systime() in HTML_COMMENT.
535         (html_header): Correctly close tag 'style'.
536         (END): Replace strftime() by CHRONOS_TIME.  Close
537         tag 'span' correctly, not as 'div'.
538
539 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
540
541         getgroups: statement without effect
542         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
543         Change equality conditional to expected assignment.
544
545 2013-09-09  Eric Blake  <eblake@redhat.com>
546
547         glob: fix compilation
548         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
549
550 2013-09-07  Eric Blake  <eblake@redhat.com>
551
552         glob: fix build for platforms without __THROW
553         * lib/glob.in.h (__THROW): Add definition again.
554
555 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
556
557         regex-quote: fix buffer access out of bounds
558         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
559         * lib/regex-quote.c (regex_quote_spec_pcre):
560         Fix typo that resulted in an out-of-bounds read.
561
562 2013-09-04  Eric Blake  <eblake@redhat.com>
563
564         glob: avoid -Wattribute warnings on glibc
565         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
566         __THROWNL, not __THROW, on static functions.
567         * lib/glob.in.h (__THROW): Adjust...
568         (__THROWNL): ...accordingly.
569
570 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
571
572         headers: check that _GL_INLINE_HEADER_BEGIN is defined
573         Suggested by Bruce Korb in:
574         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
575         * doc/extern-inline.texi (extern inline):
576         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
577         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
578         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
579         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
580         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
581         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
582         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
583         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
584         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
585         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
586         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
587         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
588         * lib/xtime.h:
589         Check that _GL_INLINE_HEADER_BEGIN is defined.
590
591 2013-08-29  Pádraig Brady  <P@draigBrady.com>
592
593         bootstrap: remove the --version requirement from ancillary tools
594         * build-aux/bootstrap (check_exists): A new refactored function to
595         determine if a command exists.
596         (find_tool): Use the new function which does not require the
597         --version option to be supported.
598         (check_versions): Use the new function.
599
600 2013-08-26  Simon Josefsson  <simon@josefsson.org>
601
602         gc: support HMAC-SHA256 and HMAC-SHA512.
603         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
604         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
605         functions.
606         (gc_hmac_md5): Use symbolic constant.
607         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
608         (gc_hmac_sha256, gc_hmac_sha512): New functions.
609         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
610         * m4/sha256.m4: Protect against empty expansion.
611         * m4/sha512.m4: Likewise.
612         * lib/hmac-sha256.c: New file.
613         * lib/hmac-sha512.c: Likewise.
614         * m4/gc-hmac-sha256.m4: Likewise.
615         * m4/gc-hmac-sha512.m4: Likewise.
616         * m4/gc-sha256.m4: Likewise.
617         * m4/gc-sha512.m4: Likewise.
618         * modules/crypto/gc-hmac-sha256: Likewise.
619         * modules/crypto/gc-hmac-sha256-tests: Likewise.
620         * modules/crypto/gc-hmac-sha512: Likewise.
621         * modules/crypto/gc-hmac-sha512-tests: Likewise.
622         * modules/crypto/hmac-sha256: Likewise.
623         * modules/crypto/hmac-sha256-tests: Likewise.
624         * modules/crypto/hmac-sha512: Likewise.
625         * modules/crypto/hmac-sha512-tests: Likewise.
626         * tests/test-gc-hmac-sha256.c: Likewise.
627         * tests/test-gc-hmac-sha512.c: Likewise
628         * tests/test-hmac-sha256.c: Likewise.
629         * tests/test-hmac-sha512.c: Likewise
630
631 2013-08-24  Daiki Ueno  <ueno@gnu.org>
632
633         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
634         of AC_CHECK_DECLS.
635
636 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
637
638         selinux-at: omit unnecessary include
639         * lib/selinux-at.c: Don't include dosname.h; not needed, since
640         this source file doesn't use its macros, and subsidiary files that
641         use the macros already include it.
642
643 2013-08-21  Eric Blake  <eblake@redhat.com>
644
645         d-ino: avoid false negative on symlink
646         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
647         Reported by Stephane Chazelas.
648
649 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
650
651         bootstrap: port to OpenBSD sed
652         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
653         does not interpret `-' as a file argument to mean stdin.
654
655 2013-08-15  Eric Blake  <eblake@redhat.com>
656
657         warnings: minor optimization
658         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
659
660         warnings: check -Wfoo rather than -Wno-foo
661         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
662         -Wno-, test if the compiler recognizes the positive form instead.
663
664 2013-08-15  Karl Berry  <karl@gnu.org>
665
666         * config/srclist-update: add option "doclicense" to placate
667         pulling *.texi files from Emacs.  Write terse usage
668         documentation at the top.
669
670 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
671
672         xvasprintf-tests: port to GCC with hardening flags
673         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
674         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
675         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
676
677 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
678
679         fpending: port to recent Cygwin change to stdio_ext.h
680         Reported by LRN in
681         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
682         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
683         just declare __fpending unless it's a macro.
684         A duplicate decl shouldn't hurt.
685         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
686         call compiles and links, instead of separately checking for
687         decl and lib function.
688         * modules/fpending (configure-ac):
689         Adjust to fpending.m4's renaming of shell variable.
690
691 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
692
693         sys_time: port to OpenBSD
694         * lib/sys_time.in.h: Simply delegate to the system's header
695         in the BSDish cases as well.  Problem reported by Mike Miller in
696         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
697         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
698         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
699         wider than time_t.
700
701 2013-08-09  Pádraig Brady <P@draigBrady.com>
702
703         bootstrap: support checksum utils having -c but not --status
704         * build-aux/bootstrap: Only look for sha1sum if updating po files.
705         Add sha1 to the list of supported checksum utils since it's now
706         supported through adjustments below.
707         (update_po_files): Remove the use of --status
708         in a way that will suppress all error messages, but since this is
709         only used to minimize updates, it shouldn't cause an issue.
710         Exit early if there is a problem updating the po file checksums.
711         (find_tool): Remove the check for --version support as this
712         is optional as per commit 86186b17.  Don't even check for the
713         presence of the command as if that is needed, it's supported
714         through configuring prerequisites in bootstrap.conf.
715         Prompt that when a tool isn't found, one can define an environment
716         variable to add to the hardcoded search list.
717
718 2013-08-05  Jim Meyering  <meyering@fb.com>
719
720         regex: port to non-glibc/lock-using systems
721         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
722         system with GNULIB_LOCK would fail due to absence of the
723         included "glthread/lock.h".  This would affect any package
724         for which the "lock" module is used only by the regex module,
725         and not explicitly used.
726         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
727         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
728         Add a dependency on the "lock" module.
729
730 2013-07-20  Daiki Ueno  <ueno@gnu.org>
731
732         localecharset: make locale_charset thread-safe on Mac OS X
733         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
734         instead of MB_CUR_MAX.
735
736 2013-07-20  Daiki Ueno  <ueno@gnu.org>
737
738         gettext: update to version 0.18.3
739         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
740         require AC_PROG_SED to allow user to specify custom sed command when
741         generating en@quot PO file.
742
743 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
744
745         bootstrap: use correct source when copying build-aux files
746         * build-aux/bootstrap (gnulib_extra_files): This variable is
747         relative to upstream gnulib layout, not downstream.
748
749 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
750
751         tmpdir: fix bug in VMS port
752         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
753         See Steven M. Schweda in
754         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
755
756 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
757
758         tmpdir: port to VMS, to // != /, and to long dirs
759         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
760         __secure_getenv, so that we're more like the glibc version.
761         All uses changed.
762         (path_search): Don't put slash after directory if __VMS.
763         Problem reported by Steven M. Schweda in
764         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
765         Simplify code to add slash; no need for a loop.
766         Do not remove trailing slash from "//".
767         Do not assume dlen <= INT_MAX.
768
769 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
770
771         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
772         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
773         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
774         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
775
776         accept4, dup3, pipe2: port to Cygwin
777         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
778         * lib/accept4.c (accept4) [O_BINARY]:
779         * lib/dup3.c (dup3) [O_BINARY]:
780         * lib/pipe2.c (pipe2) [O_BINARY]:
781         Use set_binary_mode, not setmode.
782         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
783         * modules/binary-io (Depends-on): Remove module indicator.
784         These last two bits undo the previous change to pipe2 and binary-io.
785
786 2013-07-09  Pádraig Brady  <P@draigBrady.com>
787
788         mountlist: add support for deallocating returned list entries
789         * lib/mountlist.c (free_mount_entry): A new exported function
790         to deallocate a mount list entry.
791         (read_file_system_list): Refactor to use the new deallocation function.
792         Suggested by Anton Ovchinnikov.
793
794 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
795
796         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
797         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
798         * lib/stdalign.in.h (_Alignas, _Alignof):
799         Port to FreeBSD 9.1, and to C11 and C++11.
800         (_Alignas): Also support ICC.
801         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
802         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
803
804 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
805
806         fnmatch: don't goto over declaration
807         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
808         undefined behavior for goto over a declaration.
809         Problem reported by Charlie Brown in
810         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
811
812         pipe2: decouple from binary-io a bit
813         This is for Emacs, which needs pipe2 but not binary-io.
814         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
815         * modules/binary-io (Depends-on): Add module indicator.
816
817 2013-07-03  Eric Blake  <eblake@redhat.com>
818
819         mgetgroups: relax license to LGPLv2+
820         * modules/getugroups (License): Change from GPLv3+.
821         * modules/mgetgroups (License): Likewise.
822         * modules/getgroups (License): Change from LGPLv3+.
823
824         xalloc-oversized: relax license to LGPLv2+
825         * modules/xalloc-oversized (License): Change from GPLv3+.
826
827         nproc: relax license to LGPLv2+
828         * modules/nproc (License): Change from LGPLv3+.
829
830         bootstrap: honor --no-git
831         * build-aux/bootstrap: Don't even try to use git when user is
832         pointing to a static checkout.
833
834 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
835
836         ignore-value: port to gcc -pedantic
837         * lib/ignore-value.h (ignore_value):
838         Port to gcc -pedantic, by using __extension__.
839         Reindent as per usual gnulib style nowadays.
840         Simplify GCC version check.
841
842 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
843
844         extern-inline: port to gcc -std=c89
845         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
846         Do not use __gnu_inline__ if pedantic and pre-C99.
847
848 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
849
850         doc: document extern-inline
851         * doc/extern-inline.texi: New file.
852         * doc/gnulib.texi (alloca-opt): Include it.
853         * m4/extern-inline.m4: Move some comments to documentation,
854         and others closer to what they describe.
855
856         doc: chatter less
857         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
858         (updated-stamp): Use it.  This causes 'make' to output just
859         one file name rather than zillions.
860
861         fflush, fseeko: port to musl cross-compiles
862         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
863         on some implementation that (1) is not known to be buggy,
864         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
865         cross-compiled to so we can't easily check for lack of
866         conformance.  This is for cross-compiling to musl.
867         Reported by Rich Felker in
868         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
869         * m4/fclose.m4 (gl_FUNC_FCLOSE):
870         * m4/fflush.m4 (gl_FUNC_FFLUSH):
871         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
872         Adjust to above change.
873         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
874         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
875         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
876         known not to work, or unknown.
877
878 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
879
880         msvc-inval: port to mingw-w64
881         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
882         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
883         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
884
885 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
886
887         getcwd-lgpl: port to Tru64
888         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
889         Problem reported by Steven M. Schweda in
890         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
891
892         tests: port large-fd POSIX spawn tests to OS X
893         Problem reported by Daiki Ueno in
894         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
895         * tests/test-posix_spawn_file_actions_addclose.c:
896         * tests/test-posix_spawn_file_actions_adddup2.c:
897         * tests/test-posix_spawn_file_actions_addopen.c:
898         Include <limits.h>, for OPEN_MAX, if available.
899         (big_fd): New static function.
900         (main): Use it.
901
902 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
903
904         tests/nap.h: use an adaptive delay to avoid ctime update issues
905         The recent change in nap.h (5191133e) decreased the probability of lost
906         races to about a third, however such problems could still be observed
907         in virtual machines and openSUSE's OBS.
908         Before, nap() detected the needed time once empirically and then used
909         that delay (together with a small correction multiplier) in further
910         calls.  This problem has been reported and discussed several times,
911         including guesses about possible kernel issues:
912         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
913         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
914         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
915         http://bugs.gnu.org/12820
916         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
917         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
918         Now, nap() avoids the race alltogether by verifying on a reference
919         file whether a timestamp difference has happened.
920         * tests/nap.h (nap_fd): Define file descriptor variable for the
921         witness file.
922         (nap_works): Change return value to bool.  Change passing
923         the old file's status by value instead of by reference as this function
924         does no longer update that timestamp; rename the function argument from
925         st to old_st.  Remove the local variables cdiff and mdiff because that
926         function now returns true/false instead of the precise delay.
927         (guess_delay): Remove function.
928         (clear_tmp_file): Add new function to close and unlink the witness file.
929         (nap): Instead of re-using the delay which has been calculated during
930         the first call, avoid the race by actually verifying that a timestamp
931         difference can be observed on the current file system.  Use an adaptive
932         approach for the delay to minimize execution time.  Assert that the
933         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
934         = 2^31 - 1 = 2.1s.
935         Use atexit to call clear_tmp_file when the process terminates.
936
937 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
938
939         sig2str: port to C++
940         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
941         Reported by Daniel J Sebald in
942         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
943
944 2013-05-30  Eric Blake  <eblake@redhat.com>
945
946         docs: mention cygwin shortcoming in <sys/un.h>
947         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
948
949         vasnprintf: silence mingw compiler warning
950         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
951
952 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
953
954         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
955         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
956         This fixes a porting bug I recently reintroduced in regex, and
957         some other instances that I discovered while testing the fix.
958         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
959         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
960         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
961         with an empty argument if this is a pedantic pre-C99 GCC.
962         * lib/verify.h: Do not use _Static_assert if this is a pedantic
963         pre-C11 GCC.
964
965         regex: adapt to locking regime instead of depending on pthread
966         Instead of depending on pthread, adapt to whatever thread
967         modules are in use.  Problem reported by Ludovic Courtès in
968         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
969         and by Mats Erik Andersson in
970         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
971         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
972         Support either the 'lock' module, or the 'pthread' module, or
973         no module.
974         (lock_lock, lock_unlock): New macros.
975         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
976         * modules/lock, modules/pthread (configure.ac): Add module indicator.
977         * modules/regex (Depends-on): Remove pthread.
978
979 2013-05-22  Eric Blake  <eblake@redhat.com>
980
981         getgroups: document portability issues
982         * doc/glibc-functions/initgroups.texi (initgroups): Mention
983         multithread safety.
984         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
985         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
986         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
987         getugroups.
988         * doc/posix-functions/getgroups.texi (getgroups): Mention
989         multithread safety and mgetgroups.
990
991 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
992
993         test-lchown, test-chown: also skip test if chown fails with EPERM
994         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
995         skip this test, to handle FAT file systems.
996         * tests/test-chown.h (test_chown): Likewise.
997
998 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         regex: fix dfa race in multithreaded uses
1001         Problem reported by Ludovic Courtès in
1002         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1003         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1004         New macros.  All uses of __libc_lock_define, __libc_lock_init
1005         changed to use the first two of these.
1006         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1007         non-glibc platforms.
1008         (struct re_dfa_t): Define the lock unconditionally.
1009         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1010         '#ifdef _LIBC"s.
1011         * modules/regex (Depends-on): Add pthread, if we use the
1012         included regex.
1013
1014         * lib/regcomp.c: Do actions that are not needed for glibc,
1015         but may be needed elsewhere.
1016         (regfree, re_compile_internal): Destroy the lock.
1017         (re_compile_internal): Check for lock-initialization failure.
1018
1019         malloca: port to compilers that reject size-zero arrays
1020         This fixes a bug introduced in my previous patch.
1021         * lib/malloca.c (struct preliminary_header): Use an int
1022         rather than a character array of size int; that's simpler.
1023         (struct header): Remove, replacing with ...
1024         (union header): New type.  This avoids the need for declaring a
1025         character array of size zero, which is not allowed on some platforms.
1026         All uses changed.
1027
1028 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1029
1030         parse-datetime, tests: don't use "string" + int
1031         Recent versions of 'clang' complain about C source code that
1032         uses expressions of the form '"string literal" + integer',
1033         I guess on the theory that it's confusing for readers who are
1034         used to C++.  On those grounds I suppose it's OK to make this
1035         minor style change.
1036         * lib/parse-datetime.y (parse_datetime):
1037         * tests/test-fchdir.c (main):
1038         * tests/test-snprintf-posix.h (test_function):
1039         * tests/test-snprintf.c (main):
1040         * tests/test-vasnprintf-posix.c (test_function):
1041         * tests/test-vasnprintf.c (test_function):
1042         * tests/test-vsnprintf.c (main):
1043         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1044         Rewrite '"str" + E' to '&"str"[E]'.
1045
1046 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1047
1048         argmatch: port to C++
1049         * lib/argmatch.h [__cplusplus]: Add extern "C".
1050
1051         argp: typo fix
1052         * lib/argp-help.c: Typo in comment.
1053
1054 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1055
1056         manywarnings: update for GCC 4.8.0
1057         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1058         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1059         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1060         -Wmissing-noreturn, as they are duplicates of other warnings.
1061         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1062         was documented to be flaky in earlier versions of GCC.
1063
1064         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1065         * tests/test-spawn.c (main):
1066         * tests/test-sys_socket.c (main):
1067         * tests/test-sys_wait.c (main):
1068         Don't have a switch value that isn't covered by a case.
1069
1070         getaddrinfo-tests: port --enable-gcc-warnings to clang
1071         * tests/test-getaddrinfo.c (simple):
1072         Avoid casts from looser to stricter-aligned pointers.
1073
1074         thread: port --enable-gcc-warnings to clang
1075         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1076         Include <signal.h>, to pacify a warning about pthread_sigmask.
1077
1078         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1079         * lib/stdio.in.h (fwrite):
1080         When working around bug 11959, use __REDIRECT rather than '#define
1081         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1082         fix the -Wunused-value issue with clang, and it works with GCC too.
1083         Problem with targeting reported by Eric Blake in
1084         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1085         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1086         debugging the fwrite issue.
1087
1088         stdio: port --enable-gcc-warnings to clang
1089         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1090         since the GCC workaround for fwrite does not pacify clang.
1091
1092         sig2str: port --enable-gcc-warnings to clang
1093         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1094
1095         obstack: port --enable-gcc-warnings to clang
1096         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1097         Avoid casts from looser to stricter-aligned pointers.
1098
1099         memchr2: port --enable-gcc-warnings to clang
1100         * lib/memchr2.c (memchr2):
1101         Avoid casts from looser to stricter-aligned pointers.
1102
1103         mbsstr: port --enable-gcc-warnings to clang
1104         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1105         Avoid casts from looser to stricter-aligned pointers.
1106
1107         malloca: port --enable-gcc-warnings to clang
1108         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1109         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1110
1111         inttostr: port --enable-gcc-warnings to clang
1112         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1113
1114         warnings: port to clang
1115         Problem reported by Daniel P. Berrange via Eric Blake in
1116         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1117         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1118         (gl_WARN_ADD): Use it.
1119
1120 2013-05-11  Jim Meyering  <meyering@fb.com>
1121
1122         quotearg: do not read beyond end of buffer
1123         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1124         end of an ARG for which no length was specified.  With an N-byte
1125         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1126         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1127         via coreutils' misc/sort-debug-keys.sh test and detected by running
1128         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1129         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1130         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1131         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1132         characters correctly."
1133
1134 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1135
1136         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1137         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1138         compilation target is Mac OS X 10.6.
1139         Problem reported by parafin and Andoni Morales in
1140         <http://savannah.gnu.org/bugs/?37844> and
1141         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1142
1143 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         mkdir-p: remove assumptions about umask and mode
1146         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1147         umask is 0, or that MODE is a subset of MODE_BITS.
1148
1149 2013-05-10  Eric Blake  <eblake@redhat.com>
1150
1151         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1152         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1153
1154 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1155
1156         deps: require Automake >= 1.9.6 in generated Makefile fragments
1157
1158         That is the same minimal version required in the DEPENDENCIES file.
1159         Moreover, the old code generated a requirement of Automake >= 1.5,
1160         and that is an insanely outdated version.
1161
1162         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1163         * tests/havelib/rpathlx/Makefile.am: Likewise.
1164         * tests/havelib/rpathly/Makefile.am: Likewise.
1165         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1166         * tests/havelib/rpathlz/Makefile.am: Likewise.
1167         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1168         * tests/havelib/rpathx/Makefile.am: Likewise.
1169         * tests/havelib/rpathy/Makefile.am: Likewise.
1170         * tests/havelib/rpathz/Makefile.am: Likewise.
1171
1172 2013-05-08  Eric Blake  <eblake@redhat.com>
1173
1174         bootstrap: AC_INIT may have more than four parameters
1175         * build-aux/bootstrap (extract_package_name): Correctly extract
1176         non-empty tarname field.  Avoid range in regex.
1177         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1178
1179 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1180
1181         qacl: port to MS-Windows port of GNU Emacs
1182         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1183         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1184         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1185         <http://bugs.gnu.org/14295#14>.
1186
1187 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1188
1189         acl: include quote.h
1190         * lib/copy-acl.c: Include quote.h.
1191         * lib/set-acl.c: Likewise.
1192
1193 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1194
1195         fchownat, renameat, unlinkat: update statat dependencies
1196         These modules use statat and lstatat, not fstatat; so depend on
1197         the statat module, which was split out recently from fstatat.
1198         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1199         * modules/renameat: Likewise.  Also delete fstat.
1200         URL: http://bugs.gentoo.org/468790
1201
1202 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1203
1204         Assume gnulib is checked out from Git, not CVS
1205
1206         In fact, access to the gnulib repository through CVS has been
1207         disabled, or more precisely, got broken and was never restored; see:
1208         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1209
1210         Note that support for CVS is not removed completely and unthinkingly
1211         by this change: only support for CVS checkouts of gnulib itself is
1212         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1213         files and CVS directories, for the benefit of those poor gnulib clients
1214         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1215
1216         * gnulib-tool: Simplify accordingly.
1217         * posix-modules: Likewise.
1218         * MODULES.html.sh: Likewise.
1219         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1220         repository.
1221         * doc/gnulib-intro.texi: Likewise.
1222         * doc/gnulib-readme.texi: Likewise.
1223         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1224         sample '.gitignore' file rather than a sample '.cvsignore'.
1225         * NEWS: Update.
1226         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1227         to "CVS Autoconf" rather than "git Autoconf".
1228
1229 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1230
1231         utimensat-tests, etc.: try to fix some races
1232         Problem reported by Bernhard Voelker in
1233         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1234         I don't know whether this patch fixes that race condition, but it
1235         fixes *some* race conditions, so it should be a win.
1236         * modules/chown-tests (Depends-on):
1237         * modules/fchownat-tests (Depends-on):
1238         * modules/fdutimensat-tests (Depends-on):
1239         * modules/futimens-tests (Depends-on):
1240         * modules/lchown-tests (Depends-on):
1241         * modules/stat-time-tests (Depends-on):
1242         * modules/utimens-tests (Depends-on):
1243         * modules/utimensat-tests (Depends-on):
1244         Depend on nanosleep, not usleep.
1245         * modules/chown-tests (test_chown_LDADD):
1246         * modules/lchown-tests (test_lchown_LDADD):
1247         * modules/stat-time-tests (test_stat_time_LDADD):
1248         New macro.
1249         * modules/fchownat-tests (test_fchownat_LDADD):
1250         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1251         * modules/futimens-tests (test_futimens_LDADD):
1252         * modules/utimens-tests (test_utimens_LDADD):
1253         * modules/utimensat-tests (test_utimensat_LDADD):
1254         Add $(LIB_NANOSLEEP).
1255         * modules/stat-time-tests (Files): Add tests/nap.h.
1256         * tests/nap.h: Include <limits.h>, for INT_MAX.
1257         (lt_mtime): Remove.
1258         (diff_timespec): New function.
1259         (get_stat): Rename from get_mtime.  All callers changed.
1260         (nap_works): Determine the needed delay by inspecting the
1261         file system's timestamp jumps; this should be more reliable.
1262         Look at both mtime and ctime, and take the maximum of the two jumps.
1263         (nap_works, guess_delay):
1264         Return a nanosecond cound, not a microsecond count.
1265         All callers changed.
1266         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1267         failure.
1268         (nap): Multiply the guess by 1.125, to accommodate the case where
1269         the file system's clock is a bit slower than nanosleep's clock.
1270         * tests/test-stat-time.c (BASE): New macro.
1271         Include nap.h.
1272         (nap): Remove; nap.h now defines this.  This removes a duplicate
1273         implementation of 'nap'.
1274
1275         utimens, utimensat: work around Solaris UTIME_OMIT bug
1276         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1277         Linux kernel 2.6.32 does.  Work around it in the same way.
1278         * doc/posix-functions/futimens.texi (futimens):
1279         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1280         * lib/utimens.c (fdutimens, lutimens):
1281         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1282
1283         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1284         Formerly, it was your responsibility to do this for all Makefile.ams
1285         other than Gnulib's.  Now it's your responsibility to do it for
1286         Gnulib's Makefile.am, too.
1287         * NEWS: Document this.
1288         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1289
1290         acl: include errno.h to get errno
1291         Reported by Daiki Ueno in
1292         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1293         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1294
1295 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1296
1297         tests: don't assume getdtablesize () <= 10000000
1298         * modules/cloexec-tests:
1299         * modules/dup2-tests:
1300         * modules/dup3-tests:
1301         * modules/nonblocking-tests:
1302         * modules/posix_spawn_file_actions_addclose-tests:
1303         * modules/posix_spawn_file_actions_adddup2-tests:
1304         * modules/posix_spawn_file_actions_addopen-tests:
1305         * modules/unistd-safer-tests:
1306         Depend on the getdtablesize module.
1307         * tests/test-cloexec.c:
1308         * tests/test-dup-safer.c:
1309         * tests/test-dup2.c:
1310         * tests/test-dup3.c:
1311         * tests/test-fcntl.c:
1312         * tests/test-nonblocking.c:
1313         * tests/test-posix_spawn_file_actions_addclose.c:
1314         * tests/test-posix_spawn_file_actions_adddup2.c:
1315         * tests/test-posix_spawn_file_actions_addopen.c:
1316         Don't assume getdtablesize () <= 10000000.
1317
1318 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1319
1320         extern-inline: work around bug in Sun c99
1321         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1322         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1323
1324 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1325
1326         qacl: new module, broken out from the acl module
1327         This is for GNU Emacs, which wants the acl functions but does
1328         not want 'error' invoked when they fail.
1329         * lib/acl-internal.h: Do not include error.h, quote.h.
1330         (ENOSYS, ENOTSUP): Remove; no longer needed.
1331         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1332         * lib/acl.h: Include <stdbool.h>.
1333         (acl_errno_valid): New function.
1334         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1335         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1336         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1337         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1338         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1339         * lib/file-has-acl.c (file_has_acl):
1340         * lib/qcopy-acl.c (qcopy_acl):
1341         * lib/qset-acl.c (qset_acl):
1342         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1343         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1344         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1345         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1346         Add lib/set-acl.c.
1347         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1348         Add qacl.
1349         (configure.ac): Move gl_FUNC_ACL to qacl module.
1350         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1351         Rename set-mode-acl.c to set-acl.c.
1352         * lib/acl-errno-valid.c: New file.
1353         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1354         copy_acl function remains in copy-acl.c.
1355         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1356         (_): Remove; not needed.
1357         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1358         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1359         * modules/qacl: New file, moved from the old modules/acl.
1360         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1361         Remove set-mode-acl.c, copy-acl.c.
1362         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1363
1364         alignof, intprops, malloca: port better to IBM's C compiler
1365         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1366         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1367         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1368
1369 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1370
1371         wctype-h: fix gettext link error on mingw
1372         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1373         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1374         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1375         rpl_towupper and rpl_towupper.
1376
1377 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1378
1379         regex-tests, regex: allow glibc re_search behavior
1380         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1381         re_search input data to make the multi-character collating element
1382         in it clearly visible, and treat re_search return code 0 as valid.
1383         * m4/regex.m4 (gl_REGEX): Likewise.
1384
1385 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         stdalign: doc fix
1388         * doc/posix-headers/stdalign.texi (stdalign.h):
1389         Gnulib doesn't support '_Alignof expr'.
1390
1391 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         stdalign: port to stricter ISO C11
1394         ISO C11 says that _Alignof's operand must be a parenthesized type.
1395         Problem reported by Eli Zaretskii in
1396         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1397         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1398         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1399
1400 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1403         Problem reported by Marco Atzeri in
1404         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1405         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1406         Simply delegate to the system <sys/select.h> in this case too.
1407         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1408         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1409         be needed on Solaris either.
1410         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1411         Simply delegate to the system <sys/time.h> in this case.
1412
1413 2013-03-19  Karl Berry  <karl@gnu.org>
1414
1415         * build-aux/gnupload: check for erroneous (with gnupload) use of
1416         ftp-upload.gnu.org, tweak help.
1417
1418 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         copy-file, rpmatch: fix problems found by cppcheck
1421         Reported by Arno Onken in
1422         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1423         * lib/rpmatch.c (try): Fix memory leak.
1424         * lib/copy-file.c: Include "ignore-value.h".
1425         (qcopy_file_preserving): Ignore chown value.
1426         * modules/copy-file (Depends-on): Add ignore-value.
1427
1428 2013-01-27  Jim Meyering  <jim@meyering.net>
1429
1430         prefix-gnulib-mk: give better diagnostics
1431         * build-aux/prefix-gnulib-mk: Don't just "die".
1432         Give better diagnostics upon failure.
1433
1434 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1435
1436         putenv: port to Solaris 10
1437         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1438         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1439         is not what is wanted here.
1440         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1441         declaration, not for its existence.
1442
1443 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1444
1445         mktime: fix configure typo
1446         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1447
1448 2013-03-12  Eric Blake  <eblake@redhat.com>
1449
1450         regex-tests: skip UTF-8 test on mingw
1451         * modules/regex-tests (Depends-on): Add localcharset.
1452         * tests/test-regex.c (main): Use it to skip test on mingw.
1453
1454 2013-03-11  Eric Blake  <eblake@redhat.com>
1455
1456         tests: make it easier to bypass alarm time in debugger
1457         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1458         * tests/test-memmem.c (main): Likewise.
1459         * tests/test-passfd.c (main): Likewise.
1460         * tests/test-ptsname.c (main): Likewise.
1461         * tests/test-ptsname_r.c (main): Likewise.
1462         * tests/test-strcasestr.c (main): Likewise.
1463         * tests/test-strstr.c (main): Likewise.
1464
1465         regex: port to mingw's recent addition of undeclared alarm
1466         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1467         exists but still doesn't work in newer mingw.
1468         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1469         not existence.  Ensure SIGALRM is not trapped.
1470         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1471         * m4/regex.m4 (gl_REGEX): Likewise.
1472         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1473         * tests/test-regex.c (main): Use correct probe for alarm.
1474
1475         putenv: avoid compilation warning on mingw
1476         * lib/putenv.c (_unsetenv): Protect variable declaration.
1477         (putenv): Fix indentation.
1478
1479 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1480
1481         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1482         * lib/unistd.in.h: be careful not to include un-needed system
1483         stdlib.h from here, because that prevents gnulib stdlib.h from
1484         defining rpl_strtod correctly.
1485
1486 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1487
1488         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1489         changesets, but for the 'precision 0' test.
1490         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1491         round-to-even, since POSIX says rounding is implementation-defined
1492         and OS X 10.8.2 rounds 1.51 to 1 here.
1493
1494         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1495         changeset.
1496         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1497         round-to-even, since POSIX says rounding is implementation-defined
1498         and OS X 10.8.2 rounds 1.5 to 1 here.
1499
1500 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         vasnprintf-posix-tests: allow rounding 1.5 to 1
1503         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1504         round-to-even, since POSIX says rounding is implementation-defined
1505         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1506         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1507
1508         bootstrap: port to FreeBSD
1509         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1510         that treat '--' differently.  Reported by Mats Erik Andersson in
1511         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1512
1513 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1514
1515         regex: rename remaining __attribute calls to __attribute__.
1516         2012-02-25 changed definition of __attribute, but left some uses
1517         unchanged, preventing compilation of regex module on most non-gcc
1518         environments.
1519         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1520         (lookup_collation_sequence_value, build_range_exp)
1521         (build_collating_symbol): Set attributes with newly renamed
1522         __attribute__ decorator.
1523         * lib/regex_internal.c (re_string_peek_byte_case)
1524         (re_node_set_compare, re_node_set_contains): Likewise.
1525         * lib/regexec.c (acquire_init_state_context): Likewise.
1526
1527 2013-03-06  Bruno Haible  <bruno@clisp.org>
1528
1529         execute: Revert last change, but use a different condition.
1530         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1531         on Windows.
1532
1533 2013-03-05  Eric Blake  <eblake@redhat.com>
1534
1535         execute: drop dead code
1536         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1537
1538 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1541         * m4/non-recursive-gnulib-prefix-hack.m4
1542         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1543         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1544         <http://bugs.gnu.org/10305#237>.
1545
1546 2013-03-04  Eric Blake  <eblake@redhat.com>
1547
1548         test-getsockopt: avoid compiler warning
1549         * tests/test-getsockopt.c (includes): Ensure close is declared.
1550
1551 2013-03-02  Bruno Haible  <bruno@clisp.org>
1552
1553         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1554         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1555
1556 2013-03-02  Bruno Haible  <bruno@clisp.org>
1557
1558         gettext: Update to version 0.18.2.
1559         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1560         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1561                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1562
1563 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1564
1565         regex: merge patches from libc
1566
1567         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1568         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1569         All uses changed.
1570         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1571         (re_string_wchar_at, re_string_elem_size_at):
1572         Mark function as possibly unused.
1573
1574         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1575         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1576         elements compare against the byte sequence of it, not its name.
1577
1578 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1579
1580         putenv: port better to native Windows
1581         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1582         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1583         (_unsetenv): Use _putenv if available.
1584         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1585         a bit less likely to cause damage.
1586         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1587         Fix the wrong value with SetEnvironmentVariable.
1588         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1589         code better.
1590
1591 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1592
1593         regex: ignore old-style-definition warnings
1594         * lib/regex.c: Add pragma to ignore these warnings.
1595         Problem reported for GNU tar by Pavel Raiskup.
1596
1597 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1598
1599         getcwd: support coreutils better
1600         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1601         but this might not be correct in coreutils, which disables
1602         the raw decl checks.  Problem reported by Nagendra in
1603         <http://bugs.gnu.org/10305#192>.
1604         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1605         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1606         Test the getcwd function, not any macro, since getcwd.c wants the
1607         function.
1608         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1609         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1610         compile, as might happen if there's a macro but no function.
1611
1612         strtod: support coreutils better
1613         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1614         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1615         disables the raw decl checks.  This assumes there is an underlying
1616         strtod, but that's a safe assumption these days.
1617         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1618
1619         mountlist: port to HP NonStop
1620         Reported by Joachim Schmitz in
1621         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1622         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1623         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1624
1625 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1626
1627         extern-inline: avoid compilation error with HP-UX cc
1628         Reported by Richard Lloyd in
1629         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1630         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1631         Suppress extern inline with HP-UX cc.  This should be safe,
1632         though it may hurt performance.  Perhaps someone with some HP-UX
1633         experience can come up with a higher-performance fix.
1634
1635 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1636
1637         putenv: fix heap corruption with mixed putenv/_putenv
1638         Problem reported by Michael Goffioul in
1639         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1640         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1641         Rely on _putenv to allocate the new environment.
1642         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1643         * modules/putenv (configure.ac): Use it.
1644
1645 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1646
1647         unsetenv etc.: port to Solaris 11 + GNU Emacs
1648         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1649         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1650         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1651         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1652         idea but is too painful to fix right now), and without this gnulib
1653         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1654         compiling unsetenv.c on Solaris 11.  Fix the problem for
1655         unsetenv.c, and fix other similar occurrences.
1656
1657 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1658
1659         secure_getenv: fix C++ declaration typo
1660         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1661         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1663
1664 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1665
1666         careadlinkat: stop exporting careadlinkatcwd
1667         Only Emacs used it directly, and Emacs no longer needs it.
1668         * NEWS: Document this simplification.
1669         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1670         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1671         for readlink.
1672         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1673         Don't include stdlib.h; no longer needed.
1674         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1675         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1676         * modules/areadlink (Depends-on): Add readlink.
1677         (Maintainer): Add self.
1678         * modules/careadlinkat (Depends-on): Remove readlink.
1679
1680         extensions: port better to HP-UX
1681         This is merged from git Autoconf.
1682         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1683         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1684         so that it's compatible with the value used when compiling.
1685
1686         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1687         Problem reported by Mats Erik Andersson in
1688         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1689         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1690         openpty function exists, not merely when we intend to replace it.
1691         This corrects the 2013-01-31 patch, which mistakenly defined
1692         HAVE_OPENPTY even on hosts that lacked it.
1693
1694 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1695
1696         secure_getenv: fix include typo
1697         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1698
1699         secure_getenv: port better to FreeBSD and Solaris
1700         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1701         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1702         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1703         This works better on BSDish platforms.
1704         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1705         Test for issetugid if __secure_getenv is missing.
1706
1707 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1710         Some of these changes are merged in from git Autoconf.
1711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1712         When deciding whether to define _XOPEN_SOURCE, inspect the
1713         preprocessor macro __hpux instead of the more-heavyweight
1714         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1715         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1716         as the key for __EXTENSIONS__.
1717
1718         unistd: avoid namespace pollution on non-glibc systems
1719         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1720         This avoids namespace pollution on non-glibc systems, by causing
1721         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1722         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1723         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1724
1725 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1726
1727         tmpdir: use secure_getenv
1728         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1729         Define to secure_getenv, not getenv.
1730         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1731         as that's now secure_getenv's job.
1732         * modules/tmpdir (Depends-on): Add secure_getenv.
1733
1734         tempname: use secure_getenv
1735         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1736         Define to secure_getenv, not getenv.
1737         * modules/tempname (Depends-on):
1738         Add secure_getenv.
1739
1740         secure_getenv: new module
1741         * MODULES.html.sh (Extra functions based on ANSI C 89):
1742         Add secure_getenv.
1743         * doc/glibc-functions/secure_getenv.texi: New file.
1744         * doc/gnulib.texi: Include it.
1745         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1746         New files.
1747         * lib/stdlib.in.h (secure_getenv): New decl.
1748         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1749         * modules/stdlib (stdlib.h):
1750         Add secure_getenv checks.
1751
1752 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1753
1754         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1755         Reported for OS X 10.8.2 by Assaf Gordon in
1756         <http://bugs.gnu.org/13516>.
1757         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1758         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1759         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1760         so that they can be kept in sync more easily.  Avoid PATH_MAX
1761         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1762         mkdir or chdir failure.
1763         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1764         lib/getcwd.c.
1765         (test_abort_bug): Do not test for the deep directory bug unless we
1766         have openat support.  Avoid PATH_MAX test on the Hurd.
1767
1768         regex-tests, regex: fix bug: memset undeclared
1769         * tests/test-regex.c: Don't include regex.h twice.  Include
1770         string.h, to declare memset.  Christensen's report also mentioned
1771         this issue.
1772         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1773         test-regex.c, to avoid future problems like this.  Remove
1774         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1775         twice.
1776
1777         regex-tests: fix link errors on older Solaris
1778         These need to link with @LIBINTL@ to get libintl_gettext.
1779         Problem reported by Tom G. Christensen in
1780         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1781         * modules/regex-tests (test_regex_LDADD): New macro.
1782
1783 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1784
1785         regex-tests: new module
1786         * modules/regex-tests, tests/test-regex.c: New files.
1787
1788         regex: fix off-by-one error in configure test
1789         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1790
1791 2013-01-31  Eric Blake  <eblake@redhat.com>
1792
1793         regex: avoid infinite configure test
1794         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1795
1796 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1797
1798         openpty: fix bug where HAVE_OPENPTY wasn't defined
1799         See the thread starting at:
1800         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1801         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1802         openpty function exists, not merely when we intend to replace it.
1803
1804 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         sys_time: port to Solaris 2.6
1807         There is a circularity problem on Solaris 2.6, where <time.h> includes
1808         <sys/time.h> for struct timespec.  The include nesting is gnulib
1809         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1810         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1811         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1812         <sys/siginfo.h>; the last, innermost file needs struct
1813         timestruc_t, which is defined in <sys/time.h>, which has not been
1814         fully parsed.  Problem reported by Tom G. Christensen in
1815         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1816         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1817         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1818         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1819         uses split double-inclusion guards.
1820
1821 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         regex: test for buffer overrun
1824         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1825         for the just-fixed regex bug.
1826
1827 2013-01-29  Andreas Schwab  <schwab@suse.de>
1828
1829         regex: fix buffer overrun in regexp matcher [BZ #15078]
1830         * lib/regexec.c (extend_buffers): Add parameter min_len.
1831         (check_matching): Pass minimum needed length.
1832         (clean_state_log_if_needed): Likewise.
1833         (get_subexp): Likewise.
1834
1835 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1836
1837         mountlist: don't consider "devtmpfs" as dummy
1838         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1839         as there is storage associcated with it.
1840
1841 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         futimens-tests, utimens-tests: Depend on gettext.
1844         This works around a problem introduced in my 2013-01-12 patch,
1845         which added @LIBINTL@ to these modules.
1846         * modules/futimens-tests (Depends-on):
1847         * modules/utimens-tests (Depends-on): Add gettext.
1848
1849 2013-01-26  Eric Blake  <eblake@redhat.com>
1850
1851         test-getpeername: fix typo
1852         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1853
1854 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1855
1856         bootstrap: remove the need for a sorted .gitignore file
1857         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1858         rename to insert_if_absent(), so that we don't need or generate
1859         a sorted .gitignore file.  We do require a .gitignore with no
1860         existing duplicate entries and enforce that.
1861         (sort_patterns): Remove this function as we now use the simpler
1862         technigue of inserting blacklist entries at the top of the file,
1863         assuming gnulib won't be inserting !whitelist entries.
1864
1865 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1866
1867         readlinkat: don't depend on gl_FUNC_OPENAT
1868         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1869         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1870         renameat.m4, symlinkat.m4; but one thing at a time.
1871
1872         statat: new module, split out from fstatat
1873         GNU Emacs needs the POSIX-specified fstatat, but not the
1874         gnulib-specified statat and lstat.  Split the latter two into a
1875         new module 'statat'.
1876         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1877         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1878         Rename from FSTATAT_INLINE. All uses changed.
1879         * modules/fstatat (Files): Remove lib/statat.c.
1880         (gl_MODULE_INDICATOR([fstatat])): Remove.
1881         (lib_SOURCES): Remove.
1882         (Maintainer): Add self.
1883         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1884         * tests/test-fstatat.c (BASE): Don't define if already defined.
1885         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1886
1887 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1888
1889         tests: don't assume fd 99 is closed
1890         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1891         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1892         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1893         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1894         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1895         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1896         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1897         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1898         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1899         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1900         * tests/test-fwrite.c, tests/test-getpeername.c:
1901         * tests/test-getsockname.c, tests/test-getsockopt.c:
1902         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1903         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1904         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1905         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1906         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1907         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1908         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1909         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1910         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1911         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1912         Close file descriptor 99, instead of assuming it's already closed.
1913
1914 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1915
1916         stpncpy: port to OS X 10.8
1917         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1918         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1919
1920 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         unistd: port to recent mingw
1923         * lib/unistd.in.h: Remove special invocation convention for mingw,
1924         which breaks for the latest mingw version.  See John W. Eaton in
1925         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1926
1927         largefile: port better to Mac OS X 10.5
1928         This patch is backported from Autoconf git.
1929         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1930         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1931         with ino_t size being different for configuration time versus
1932         build/run time.  Problem reported by PHO in
1933         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1934
1935 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1936
1937         doc: clarify -Werror
1938         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1939         clarify that it's intended for developers, not for ordinary builds,
1940         and mention --enable-gcc-warnings as one possible use.
1941
1942 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1943
1944         stdint: fix build with Android's Bionic fox x86
1945         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1946         was already included as _SSIZE_T_DEFINED_ might also be defined
1947         in include/machine/_types.h, which is included by stdio.h
1948
1949 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1950
1951         net_if-tests: port to Solaris 7 + GCC 3.4.6
1952         Problem reported by Tom G. Christensen in
1953         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1954         * tests/test-net_if.c (ni): Move to next the code that uses it,
1955         so that it's declared only if needed.
1956
1957 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1958
1959         net_if-tests: port to older Solaris
1960         Problem reported by Tom G. Christensen in
1961         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1962         * modules/net_if-tests (NET_IF_LIB): New substitution.
1963         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1964         (HAVE_IF_NAMEINDEX): New C macro.
1965         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1966
1967         system-quote-tests: port to older Solaris
1968         Problem reported by Tom G. Christensen in
1969         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1970         * tests/test-system-quote-child.c (fopen, fread): Undef.
1971
1972         c-xvasprintf etc.: fix link errors on older Solaris
1973         These need to link with @LIBINTL@ to get libintl_gettext.
1974         Problem reported by Tom G. Christensen in
1975         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1976         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1977         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1978         * modules/futimens-tests (test_futimens_LDADD):
1979         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1980
1981 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         locale: port to Solaris 2.6 and 7 + GNU gettext
1984         * lib/locale.in.h: Just include_next <locale.h> when
1985         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1986         when combining the localename module with GNU gettext 0.18.2.
1987         Problem reported by Tom G. Christensen in
1988         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1989
1990 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         stdlib: port to Solaris 2.6
1993         Also, the code worked on Solaris 7 through 9 only by accident.
1994         Problem reported by Tom G. Christensen in
1995         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1996         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1997         simply include the system stdlib.h.
1998         * lib/getopt.in.h (__need_system_stdlib_h):
1999         * lib/pthread.in.h (__need_system_stdlib_h):
2000         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2001         Define when including <stdlib.h>, to avoid problems at least for
2002         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2003         with the system stdlib.h.
2004
2005 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2006
2007         doc: update main copyright year
2008         * doc/gnulib.texi: Update copyright date.
2009
2010         doc: improve ISO 8601 discussion
2011         * doc/parse-datetime.texi (Combined date and time of day items):
2012         Specify more carefully what formats are supported and what is
2013         done with excess precision.
2014
2015 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         doc: avoid small caps
2018         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2019         they're more trouble than they're worth.  Suggested by Karl Berry
2020         in <http://bugs.gnu.org/13360>.
2021
2022         regex: conform to strict C
2023         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2024         From Aharon Robbins.
2025
2026         gnulib-tool: fix incompatibility with autopoint 0.18.2
2027         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2028         Problem reported by Tom G. Christensen in
2029         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2030
2031 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         fprintftime: bring back and reword fwrite comment
2034         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2035
2036         stdio: remove now-unnecessary stdio.c
2037         Since stdio.in.h no longer uses inline functions, we no longer
2038         need to compile the extern versions.
2039         * lib/stdio.c: Remove.
2040         * modules/stdio (Files): Remove lib/stdio.c.
2041         (lib_SOURCES): Remove.
2042
2043         unicodeio: depend on stdio, not ignore-value
2044         * lib/unicodeio.c: Do not include ignore-value.h.
2045         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2046         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2047
2048         fprintftime: depend on stdio, not ignore-value
2049         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2050         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2051         since the stdio module arranges to silence that warning now.
2052         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2053
2054 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2055
2056         stdint-tests: Fix expanded-before-required-warning.
2057         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2058
2059 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2060
2061         fwrite: silence __wur only for older glibc versions
2062         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2063         This will help us remove this workaround some time in the far future.
2064
2065 2013-01-03  Eric Blake  <eblake@redhat.com>
2066
2067         fwrite: silence __wur without using inline
2068         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2069         just gcc, and in a way that avoids inline issues.
2070         * modules/stdio (Depends-on): Drop extern-inline.
2071
2072 2013-01-03  Jim Meyering  <jim@meyering.net>
2073
2074         update-copyright: avoid copyright notice date corruption
2075         Given a sequence of copyright year numbers in which the final
2076         one was a two-digit number that happened to be a substring of
2077         a preceding four-digit year number, we would mistakenly update
2078         the substring (from two- to four-digit) rather than the two-digit
2079         number at the end, which, combined with the addition of the current
2080         4-digit year number would yield two 5-digit year numbers, e.g.,
2081         here, it would convert the first "99" to "1999, 2013" rather than
2082         the final one:
2083           1991, 99
2084           11999, 20131, 1999
2085         * build-aux/update-copyright: Tighten a regexp.
2086         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2087         Reported by Joseph Myers in
2088         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2089
2090 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         regex: omit needless signed-pointer casts
2093         * lib/regcomp.c (build_charclass, build_charclass_op):
2094         Use char *, not unsigned char *, for class name and extra.
2095         The char values are always nonnegative so there's no need to
2096         insist on unsigned char * here, and using char * removes the need
2097         for casts.  Reported by Aharon Robbins in
2098         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2099
2100         regex: support Gawk, which never uses alloca
2101         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2102         Do not include in this case.  Gawk doesn't supply a substitute
2103         alloca.h and doesn't need one.
2104
2105         regex: port __libc_lock_define usage to C89
2106         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2107         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2108         does not conform to C89, as it has an empty macro argument.
2109         Reported by Aharon Robbins in
2110         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2111
2112 2013-01-01  Eric Blake  <eblake@redhat.com>
2113
2114         maint: update all copyright year number ranges
2115         Run "make update-copyright".
2116
2117         version-etc: bump copyright year reported in --version
2118         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2119
2120 2012-12-31  Eric Blake  <eblake@redhat.com>
2121
2122         sigprocmask-tests: skip test if pid is unexpectedly large
2123         * tests/test-sigprocmask.c (main): Add range check.
2124
2125         git-version-gen: avoid test -z portability glitch
2126         * build-aux/git-version-gen: Prefer portable test spelling, since
2127         git-version-gen is run on more than just developer machines.
2128
2129 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2130
2131         git-version-gen: add --fallback option to use if git is not present
2132         * build-aux/git-version-gen: Add support for the new option --fallback,
2133         which comes into play when there is no $tarball_version_file and
2134         git is not working.
2135         (scriptversion): Update.
2136
2137         maint.mk: handle missing git with more grace
2138         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2139         Quietly proceed if git is not present.
2140
2141 2012-12-31  Eric Blake  <eblake@redhat.com>
2142
2143         dup2: work around cygwin bug
2144         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2145         * lib/dup2.c (rpl_dup2): Work around it.
2146         * doc/posix-functions/dup2.texi (dup2): Document it.
2147
2148 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         regex: remove unnecessary dependency on localcharset.h
2151         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2152         hasn't been needed for years.
2153         * modules/regex (Depends-on): Remove localcharset.
2154
2155         regex: revert single-byte change
2156         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2157         to this function.  This was alredy fixed in a different way, at
2158         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2159         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2160         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2161
2162         regex: simplify based on Gawk version
2163         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2164         Reported by Aharon Robbins in
2165         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2166
2167 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         regex: check that pattern char is single-byte
2170         Reported by Aharon Robbins in
2171         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2172         * lib/regexec.c (check_node_accept_bytes):
2173         Return 0 if the pattern string has a multibyte character here.
2174
2175         regex: implement rational ranges
2176         Reported by Aharon Robbins in
2177         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2178         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2179         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2180         Implement rational ranges.
2181
2182         regex: avoid redefining __wctype
2183         Reported by Aharon Robbins in
2184         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2185         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2186         #undef before defining.
2187
2188         regex: port to hosts where malloc (0) == NULL
2189         Reported by Aharon Robbins in
2190         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2191         * lib/regex_internal.c (re_node_set_alloc):
2192         Don't assume that malloc (0) yields nonnull.
2193         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2194         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2195         * modules/regex (Files): Add m4/eealloc.m4.
2196
2197         regex: port to C89
2198         Reported by Aharon Robbins in
2199         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2200         * lib/regcomp.c (init_word_char): Declaration before statement.
2201
2202         regex: merge glibc changes
2203         Also, copy the license wording from glibc.  This simplifies
2204         merging changes.  gnulib-tool will change the wording to GPL as
2205         appropriate, when importing it to other packages.  The only
2206         glibc change made since the last merge, which needs merging, is:
2207         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2208         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2209
2210         * users.txt: Add Emacs.
2211
2212         doc: omit mention of version when not needed
2213         * doc/gnulib-intro.texi (Portability and Application Code):
2214         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2215         Don't mention particular dates or versions when not necessary, so
2216         that the documentation won't go out of date so quickly.
2217
2218         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2219
2220 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2221
2222         bootstrap: pass --force to autoreconf.
2223         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2224         Add "--force" so that Automake's ylwrap and other such tools
2225         be updated at each bootstrap invocation.
2226         Use it.
2227
2228 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2231         The earlier patch forgot to update one of the #if conditions, causing
2232         a problem on Debian testing i386 reported by Mats Erik Andersson
2233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2234         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2235         (__argp_fmtstream_puts, argp_fmtstream_puts)
2236         (__argp_fmtstream_write, argp_fmtstream_write)
2237         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2238
2239         * doc/gnulib-readme.texi: Minor fixups.
2240         (Portability guidelines): Modernize URLs.  Remove some repetition.
2241         (Indent with spaces not TABs): Reword to avoid too-long lines.
2242         Remove some '@ifset standalone' stuff that isn't used.
2243
2244         * doc/gnulib-readme.texi (Portability guidelines):
2245         ctype.h, not ctime.h.
2246
2247         Correct name of POSIX.1-2001.
2248         * doc/posix-functions/fgetc.texi (fgetc):
2249         * doc/posix-functions/fgets.texi (fgets):
2250         * doc/posix-functions/fread.texi (fread):
2251         * doc/posix-functions/fscanf.texi (fscanf):
2252         * doc/posix-functions/getc.texi (getc):
2253         * doc/posix-functions/getchar.texi (getchar):
2254         * doc/posix-functions/scanf.texi (scanf):
2255         POSIX.1-2001, not POSIX-2001.
2256
2257         doc: move README into manual
2258         * README: Move contents to new file doc/gnulib-readme.texi.
2259         Replace with a one-line summary.
2260         * doc/gnulib.texi (Brief Overview): New section,
2261         with old intro preface.  Include gnulib-readme.texi for contents.
2262         (Philosophy): Rename from "Introduction", since this
2263         section no longer introduces the rest.  Write a new preface.
2264         * doc/gnulib-readme.texi: New file, with the old contents of
2265         README texinfo-ized.  This way, the README info appears
2266         in the online and printed manual.
2267
2268 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2269
2270         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2271         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2272         c_vasprintf() prototype.
2273
2274 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2275
2276         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2277         * lib/c-vasprintf.h: Remove stray semicolon.
2278
2279 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2282         It is obsolete and is planned to be removed from Automake 1.14; see
2283         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2284         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2285         (installdirs-data, installdirs-data-yes):
2286         Use $(MKDIR_P), not $(mkdir_p).
2287         * m4/intl.m4 (AM_INTL_SUBDIR):
2288         * m4/po.m4 (AM_PO_SUBDIRS):
2289         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2290
2291 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2292
2293         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2294         On this platform, we are not optimizing but we are using
2295         the substitute for extern inlines, so compile as if
2296         C99-style extern inline, or a substitute, is available.
2297         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2298         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2299         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2300         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2301         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2302         Declare as ARGP_FS_EI, not as extern.
2303         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2304         (__option_is_short, _option_is_end, __option_is_end)
2305         [!_LIBC && __USE_EXTERN_INLINES]:
2306         Declare as ARGP_EI, not as extern.
2307
2308 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2309
2310         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2311         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2312         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2313         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2314         ...), as the latter is fatal with older Autoconfs.
2315         Problem reported and fix suggested by Eric Blake in thread starting at
2316         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2317
2318 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         AC_PROG_MKDIR_P: don't workaround if not buggy
2321         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2322         Define only for Autoconf versions before 2.62.
2323         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2324         undocumented m4_PACKAGE_VERSION, for consistency with the
2325         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2326         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2327         was introduced in 2.62.
2328
2329 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2330
2331         New 'c-*printf' modules for formatted output in C locale.
2332
2333         New module 'c-vasnprintf'.
2334         * modules/c-vasnprintf: New file.
2335         * lib/c-vasnprintf.c: New file.
2336         * lib/c-vasnprintf.h: New file.
2337
2338         New module 'c-snprintf'.
2339         * modules/c-snprintf: New file.
2340         * modules/c-snprintf-tests: New file.
2341         * lib/c-snprintf.c: New file.
2342         * lib/c-snprintf.h: New file.
2343         * tests/test-c-snprintf.c: New file.
2344         * tests/test-c-snprintf.sh: New file.
2345
2346         New module 'c-vsnprintf'.
2347         * modules/c-vsnprintf: New file.
2348         * modules/c-vsnprintf-tests: New file.
2349         * lib/c-vsnprintf.c: New file.
2350         * lib/c-vsnprintf.h: New file.
2351         * tests/test-c-vsnprintf.c: New file.
2352         * tests/test-c-vsnprintf.sh: New file.
2353
2354         New module 'c-vasprintf'.
2355         * modules/c-vasprintf: New file.
2356         * modules/c-vasprintf-tests: New file.
2357         * lib/c-asprintf.c: New file.
2358         * lib/c-vasprintf.c: New file.
2359         * lib/c-vasprintf.h: New file.
2360         * tests/test-c-vasprintf.c  +: New file.
2361         * tests/test-c-vasprintf.sh: New file.
2362
2363         New module 'c-xvasprintf'.
2364         * modules/c-xvasprintf: New file.
2365         * modules/c-xvasprintf-tests: New file.
2366         * lib/c-xasprintf.c: New file.
2367         * lib/c-xvasprintf.c: New file.
2368         * lib/c-xvasprintf.h: New file.
2369         * tests/test-c-xvasprintf.c: New file.
2370         * tests/test-c-xvasprintf.sh: New file.
2371
2372 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2373
2374         argp: better 'inline'
2375         Use extern-inline module to declare extern inline functions.
2376         This avoids some bogus warning diagnostics.  Problem discovered
2377         when modifying GNU tar to use the manywarnings module.
2378         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2379         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2380         Define based on extern-inline.
2381         * modules/argp (Depends-on): Add extern-inline.
2382
2383 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2384
2385         filemode, sys_stat: Handle MPX files a la AIX.
2386         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2387         * lib/sys_stat.in.h (S_ISMPX): New macro.
2388         * tests/test-sys_stat.c: Add tests for MPX files.
2389
2390 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2391
2392         x-to-1: honor $PERL
2393         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2394         a chance to use his preferred version of Perl.  This is typically
2395         required by Darwin users whose default /usr/bin/perl does not have all
2396         the libraries required by help2man, and who need to use their MacPorts
2397         installation of Perl instead.
2398
2399 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2400
2401         gnu-web-doc-update: add all the new files, even in new directories
2402         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2403         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2404         Use it.
2405         (main): Don't use cvsutils to get the list of unknown files,
2406         just add all the existing files and directories.
2407
2408 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2409
2410         gnu-web-doc-update: improve --help
2411         * build-aux/gnu-web-doc-update: Move comments into --help.
2412
2413 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2414
2415         mountlist: recognize more "dummy" file systems
2416         * lib/mountlist.c (ME_DUMMY_0):
2417         Add these dummy FS names to the list:
2418         - "debugfs" virtual filesystem for kernel debugging
2419         - "devpts" PTY slave filesystem
2420         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2421         - "fusectl" control filesystem for FUSE
2422         - "mqueue" enumerates POSIX message queues
2423         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2424         - "sysfs" is for exporting kernel objects
2425         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2426
2427 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2428
2429         extern-inline: avoid incompatibility with Darwin Libc
2430         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2431         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2432         Problem reported by Akim Demaille in
2433         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2434
2435 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2436
2437         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2438         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2439         let it handle password prompting.
2440
2441 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2442
2443         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2444         * lib/canonicalize.c (canonicalize_filename_mode):
2445         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2446         fetching the current directory.  Don't overrun the beginning of
2447         rpath if there's no slashes after the MS-Windows drive letter.
2448
2449 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2450
2451         maint.mk: avoid extra forks
2452         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2453         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2454         So use that instead of "$(shell test -f FILE && echo FILE)".
2455
2456 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2457
2458         vasnprintf: fix ASCII_ONLY typo
2459         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2460         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2461         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2462         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2463         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2464
2465 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2466
2467         list, oset, xlist, xoset: fix extern inline issue with C99
2468         This was introduced by my recent changes for 'inline'.
2469         Problem reported for gettext by Daiki Ueno in
2470         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2471         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2472         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2473         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2474         (gl_list_previous_node, gl_list_get_at)
2475         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2476         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2477         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2478         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2479         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2480         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2481         (gl_list_iterator_free, gl_sortedlist_search)
2482         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2483         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2484         (gl_sortedlist_remove):
2485         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2486         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2487         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2488         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2489         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2490         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2491         (gl_list_add_at, gl_sortedlist_add):
2492         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2493         Wrap these extern decls inside "#if 0", because they are implemented
2494         as inline functions, and extern inline is not what's wanted here.
2495         It would simplify these .h files to remove the extern decls entirely,
2496         although a downside would be less-clear separation between
2497         specification and implementation.
2498
2499 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2500
2501         sys_stat: no 'static inline'
2502         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2503         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2504
2505         extern-inline: no 'static inline'
2506         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2507         Do not require AC_C_INLINE.
2508         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2509         'static inline', for older compilers.
2510
2511         snippet/warn-on-use: no 'static inline'
2512         * build-aux/snippet/warn-on-use.h:
2513         Remove unnecessary 'inline' in comment.
2514
2515         rbtree-list, rbtreehash-list: no 'static inline'
2516         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2517         * lib/gl_anytree_list2.h (node_at):
2518         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2519         (gl_oset_first, add_nodes_to_buckets):
2520         Now static, not static inline.
2521
2522         regex: no 'static inline'
2523         * lib/regex_internal.c (calc_state_hash):
2524         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2525         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2526         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2527         Now static, not static inline.
2528         (inline) [__GNUC__ < 3 && _LIBC]:
2529         Remove macro; no longer needed.
2530
2531         xvasprintf: no 'static inline'
2532         * lib/xvasprintf.c (xstrcat):
2533         Now static, not static inline.
2534         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2535         Do not require AC_C_INLINE.
2536
2537         parse-datetime, parse-duration: no 'static inline'
2538         * lib/parse-datetime.y (to_uchar):
2539         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2540         (scale_n_add):
2541         Now static, not static inline.
2542         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2543         * modules/parse-duration (configure.ac):
2544         Do not require AC_C_INLINE.
2545
2546         getaddrinfo: no 'static inline'
2547         * lib/getaddrinfo.c (validate_family):
2548         Now static, not static inline.
2549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2550         Do not require AC_C_INLINE.
2551
2552         ftruncate, fts, lstat, openat, raise: no 'static inline'
2553         * lib/ftruncate.c (chsize_nothrow):
2554         * lib/fts.c (opendirat, diropen):
2555         * lib/lstat.c (orig_lstat):
2556         * lib/openat.c (orig_openat):
2557         * lib/raise.c (raise_nothrow):
2558         Now static, not static inline.
2559         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2560         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2561         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2562         * m4/openat.m4 (gl_PREREQ_OPENAT):
2563         * m4/raise.m4 (gl_PREREQ_RAISE):
2564         Do not require AC_C_INLINE.
2565
2566         fflush, stat: no 'static inline'
2567         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2568         (clear_ungetc_buffer, disable_seek_optimization)
2569         (restore_seek_optimization, update_fpos_cache):
2570         * lib/stat.c (orig_stat):
2571         Now static, not static inline.
2572         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2573         (update_fpos_cache):
2574         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2575         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2576         * m4/stat.m4 (gl_PREREQ_STAT):
2577         Do not require AC_C_INLINE.
2578
2579         error, filevercmp: no 'static inline'
2580         * lib/error.c (is_open, flush_stdout):
2581         * lib/filevercmp.c (order):
2582         Now static, not static inline.
2583         * m4/error.m4 (gl_PREREQ_ERROR):
2584         * modules/filevercmp (configure.ac):
2585         Do not require AC_C_INLINE.
2586
2587         dup, execute, fatal-signal, etc.: no 'static inline'
2588         * lib/dup.c (dup_nothrow):
2589         * lib/execute.c (nonintr_close, nonintr_open):
2590         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2591         * lib/fopen.c (orig_fopen):
2592         * lib/freadseek.c (freadptrinc):
2593         * lib/freopen.c (orig_freopen):
2594         * lib/fstat.c (orig_fstat, fstat_nothrow):
2595         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2596         (get_rusage_as_via_iterator):
2597         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2598         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2599         * lib/isatty.c (_isatty_nothrow):
2600         * lib/open.c (orig_open):
2601         * lib/read.c (read_nothrow):
2602         * lib/sigprocmask.c (signal_nothrow):
2603         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2604         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2605         * lib/wait-process.c (unregister_slave_subprocess):
2606         * lib/write.c (write_nothrow):
2607         Now static, not static inline.
2608         * lib/spawn-pipe.c (nonintr_open): Define only if
2609         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2610         * m4/dup.m4 (gl_PREREQ_DUP):
2611         * m4/execute.m4 (gl_EXECUTE):
2612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2613         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2614         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2615         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2616         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2617         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2618         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2619         * m4/open.m4 (gl_PREREQ_OPEN):
2620         * m4/read.m4 (gl_PREREQ_READ):
2621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2622         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2624         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2625         * m4/write.m4 (gl_PREREQ_WRITE):
2626         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2627         Do not require AC_C_INLINE.
2628
2629         c-strtod, memcoll, readutmp: no 'static inline'
2630         * lib/c-strtod.c (c_locale):
2631         * lib/memcoll.c (strcoll_loop):
2632         * lib/readutmp.c (desirable_utmp_entry):
2633         Now static, not static inline.
2634         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2635         * m4/memcoll.m4 (gl_MEMCOLL):
2636         * m4/readutmp.m4 (gl_READUTMP):
2637         Do not require AC_C_INLINE.
2638
2639         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2640         * lib/arctwo.c (to_uchar):
2641         * lib/md4.c (set_uint32):
2642         * lib/md5.c (set_uint32):
2643         * lib/sha1.c (set_uint32):
2644         * lib/sha256.c (set_uint32):
2645         * lib/sha512.c (set_uint64):
2646         Now static, not static inline.  This is a bit simpler, and doesn't
2647         affect performance with GCC and default optimization.
2648         * m4/arctwo.m4 (gl_ARCTWO):
2649         * m4/md4.m4 (gl_MD4):
2650         * m4/md5.m4 (gl_MD5):
2651         * m4/sha1.m4 (gl_SHA1):
2652         * m4/sha256.m4 (gl_SHA256):
2653         * m4/sha512.m4 (gl_SHA512):
2654         Do not require AC_C_INLINE.
2655
2656         cond, lock, thread: better 'inline'
2657         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2658         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2659         New macros.  Use them instead of static inline, for header functions.
2660         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2661         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2662         * lib/glthread/lock.c (gl_waitqueue_init)
2663         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2664         * lib/glthread/thread.c (get_current_thread_handle):
2665         Change 'static inline' to 'inline'.
2666         * lib/glthread/cond.h, lib/glthread/thread.h:
2667         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2668         * m4/cond.m4 (gl_COND):
2669         * m4/lock.m4 (gl_PREREQ_LOCK):
2670         * m4/thread.m4 (gl_THREAD):
2671         Do not require AC_C_INLINE.
2672         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2673
2674         chdir-long, cycle-check, savewd: better 'inline'
2675         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2676         (find_non_slash):
2677         * lib/cycle-check.c (is_zero_or_power_of_two):
2678         * lib/savewd.c (savewd_delegating):
2679         Change 'static inline' to 'inline'.
2680         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2681         Replace all remaining uses of 'static inline' with it.
2682         * lib/savewd.h:
2683         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2684         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2685         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2686         * m4/savewd.m4 (gl_SAVEWD):
2687         Do not require AC_C_INLINE.
2688         * modules/savewd (Depends-on): Add extern-inline.
2689
2690         base32, base64: no need for 'inline'
2691         * lib/base32.c (to_uchar, get_8, decode_8):
2692         * lib/base64.c (to_uchar, get_4, decode_4):
2693         Change 'static inline' to 'inline'.
2694         * m4/base32.m4 (gl_PREREQ_BASE32):
2695         * m4/base64.m4 (gl_PREREQ_BASE64):
2696         Do not require AC_C_INLINE.
2697
2698         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2699         * lib/gl_array_oset.c (gl_array_nx_add_at):
2700         (gl_array_remove_at):
2701         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2702         (add_to_bucket, remove_from_bucket):
2703         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2704         Change 'static inline' to 'static', as it's simpler to omit
2705         'inline' unless there's a significant performance advantage.
2706
2707         list, oset, xlist, xoset, xsublist: simplify via extern inline
2708         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2709         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2710         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2711         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2712         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2713         New macro.  Replace all uses of 'static inline' with it.
2714         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2715         instead of as macros FOO that are defined to static inline
2716         functions FOO_inline.
2717         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2718         * lib/gl_xsublist.c:
2719         Reimplement from scratch, by defining the corresponding *_INLINE
2720         macro and including the corresponding .h file.  This is simpler.
2721         * modules/list, modules/oset, modules/xlist, modules/xoset:
2722         (Files): Remove m4/gl_list.m4.
2723         (configure.ac): Remove gl_LIST.
2724         * m4/gl_list.m4: Remove.
2725         * modules/list, modules/oset, modules/xlist, modules/xoset:
2726         * modules/xsublist:
2727         (Depends-on): Depend on extern-inline, not inline.
2728
2729         xalloc: better 'inline'
2730         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2731         New macro.  Replace all uses of 'static inline' with it.
2732         (static_inline): Remove.
2733         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2734         Let 'extern inline' do the work automatically, instead of doing
2735         it by hand.
2736         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2737         Remove.  All uses removed.
2738         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2739
2740         gethrxtime: better 'inline'
2741         * lib/xtime.c: New file.
2742         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2743         * lib/xtime.h (XTIME_INCLUDE):
2744         New macros.  Replace all uses of 'static inline' with them.
2745         * lib/gethrxtime.c (gethrxtime): Define only if
2746         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2747         this source file is now always compiled, because of the extern inline.
2748         * lib/gethrxtime.h, lib/xtime.h:
2749         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2750         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2751         if gethrtime works, as they're not needed in that case.
2752         (gl_XTIME): Do not require AC_C_INLINE.
2753         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2754         compiled now.  Move the check into gl_GETHRXTIME.
2755         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2756         (Depends-on): Add extern-inline.
2757         (configure.ac): gethrxtime is always compiled now.
2758         (lib_SOURCES): Add gethrxtime.c.
2759
2760         wctype-h: better 'inline'
2761         * lib/wctype-h.c: New file.
2762         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2763         New macro.  Replace all uses of 'static inline' with it.
2764         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2765         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2766         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2767         (Depends-on): Add extern-inline.
2768
2769         unistd: better 'inline'
2770         * lib/unistd.c: New file.
2771         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2772         New macro.  Replace all uses of 'static inline' with it.
2773         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2774         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2775         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2776         (Depends-on): Add extern-inline.
2777
2778         sys_socket: better 'inline'
2779         * lib/sys_socket.c: New file.
2780         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2781         New macro.  Replace all uses of 'static inline' with it.
2782         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2784         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2785         (Depends-on): Add extern-inline.
2786
2787         stdio: better 'inline'
2788         * lib/stdio.c: New file.
2789         * lib/stdio.in.h (_GL_STDIO_INLINE):
2790         New macro.  Replace all uses of 'static inline' with it.
2791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2792         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2793         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2794         (Depends-on): Add extern-inline.
2795
2796         sigaction: better 'inline'
2797         * lib/sig-handler.c: New file.
2798         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2799         New macro.  Replace all uses of 'static inline' with it.
2800         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2801         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2802         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2803         (Depends-on): Add extern-inline.
2804
2805         selinux-h: better 'inline'
2806         * lib/se-context.c, lib/se-selinux.c: New files.
2807         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2808         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2809         New macro.  Replace all uses of 'static inline' with it.
2810         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2811         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2812         New macro.  Replace all uses of 'static inline' with it.
2813         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2814         * modules/selinux-h (Files, lib_SOURCES):
2815         Add lib/se-context.c, lib/se-selinux.c.
2816         (Depends-on): Add extern-inline.
2817         (configure.ac): Do not require AC_C_INLINE.
2818
2819         pthread: better 'inline'
2820         * lib/pthread.c: New file.
2821         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2822         New macro.  Replace all uses of 'static inline' with it.
2823         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2824         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2825         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2826         * modules/pthread (Files): Add lib/pthread.c.
2827         (Depends-on): Add extern-inline.
2828
2829         math: better 'inline'
2830         * lib/math.c: New file.
2831         * lib/math.in.h (_GL_MATH_INLINE):
2832         New macro.  Replace all uses of 'static inline' with it.
2833         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2834         * m4/math_h.m4 (gl_MATH_H):
2835         Do not require AC_C_INLINE.
2836         * modules/math (Files, lib_SOURCES):
2837         Add lib/math.c.
2838         (Depends-on): Add extern-inline.
2839
2840         count-one-bits: better 'inline'
2841         * lib/count-one-bits.c: New file.
2842         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2843         New macro.  Replace all uses of 'static inline' with it.
2844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2845         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2846         Do not require AC_C_INLINE.
2847         * modules/count-one-bits (Files, lib_SOURCES):
2848         Add lib/count-one-bits.c.
2849         (Depends-on): Add extern-inline.
2850
2851         count-leading-zeros: better 'inline'
2852         * lib/count-leading-zeros.c: New file.
2853         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2854         New macro.  Replace all uses of 'static inline' with it.
2855         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2856         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2857         Do not require AC_C_INLINE.
2858         * modules/count-leading-zeros (Files, lib_SOURCES):
2859         Add lib/count-leading-zeros.c.
2860         (Depends-on): Add extern-inline.
2861
2862         bitrotate: better 'inline'
2863         * lib/bitrotate.c: New file.
2864         * lib/bitrotate.h (BITROTATE_INLINE):
2865         New macros.
2866         Replace all uses of 'static inline' with them.
2867         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2868         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2869         (Depends-on): Add extern-inline.
2870         (configure.ac): Do not require AC_C_INLINE.
2871
2872 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2873
2874         maint.mk: avoid gratuitous failure
2875         Reported by Stefano Lattarini in
2876         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2877         * top/maint.mk (public-submodule-commit): Quote more safely.
2878
2879 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2880
2881         canonicalize, canonicalize-lgpl: support MS-Windows file names
2882         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2883         for test cases, which it'd be nice to add at some point.
2884         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2885         * lib/canonicalize.c (canonicalize_filename_mode):
2886         * lib/canonicalize-lgpl.c (__realpath):
2887         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2888         slash is at the beginning of the file name.  Use ISSLASH, instead
2889         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2890         the first character with '/'.  Test for
2891         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2892         with a drive letter.
2893         * lib/canonicalize.c (SLASHES): New macro.
2894         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2895
2896 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2897
2898         fts: introduce FTS_VERBATIM
2899         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2900         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2901         * lib/fts.c (fts_open): Honor it.
2902
2903 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2904
2905         getlogin-tests: allow errno == ENXIO
2906         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2907         with errno == ENXIO (No controlling tty).
2908         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2909         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2910         with errno == ENOENT.  This was reported to happen in various
2911         situations on GNU/Linux.
2912
2913 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2914
2915         getlogin-tests: allow errno == ENOENT
2916         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2917         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2918         when running a test in an Emacs shell buffer.
2919
2920 2012-11-08  Jim Meyering  <jim@meyering.net>
2921
2922         tests/nap.h: avoid warning about unused variable
2923         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2924
2925         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2926         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2927         white space before each of the special-cased file names, to avoid
2928         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2929         in http://bugs.gnu.org/12830.
2930
2931 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2932
2933         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2934         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2935         fails with errno == EBADF when fd is opened with O_PATH.
2936         Reported by Jim Meyering in
2937         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2938         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2939         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2940
2941 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2942
2943         test-utimens: speed up by taking shorter naps
2944         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2945         New functions.
2946         (nap): Use them, to do a better job of guessing the delay.
2947         On Fedora 17 with ext4 atop md atop hard disks, this made
2948         test-utimens run 10x faster, because the test napped for
2949         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2950         <http://bugs.gnu.org/12820#11>.
2951
2952 2012-11-07  Jim Meyering  <jim@meyering.net>
2953
2954         mountlist.c: fix a compilation failure
2955         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2956         I introduced while transforming commit v0.0-7683-g613bcb6
2957
2958 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2959
2960         errno: port to LynxOS 178 2.2.2
2961         Problem reported by Joel Brobecker in
2962         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2963         * doc/posix-headers/errno.texi (errno.h): Document this.
2964         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2965         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2966         Supply a string for EILSEQ.
2967         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2968
2969 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2970
2971         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2972         Linux kernel 2.6.39 introduced O_PATH (see
2973         <http://lwn.net/Articles/433854/>) and this is a better fallback
2974         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2975         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2976         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2977         * lib/fcntl.in.h (O_ACCMODE):
2978         * tests/test-fcntl-h.c (main):
2979         Do not reject O_ACCMODE merely because it has more than the
2980         minimal number of bits, as POSIX allows extensions here.
2981
2982 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2983
2984         mountlist: do not classify a bind-mounted dir entry as "dummy"
2985         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2986         the "none"-testing clause.
2987         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2988         exception for bind-mounted directories.
2989
2990 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2991
2992         quote: provide a means to escape strings with nul characters
2993         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2994         (quote, quote_n): Rename formal arguments for consistency with
2995         quotearg.
2996
2997 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2998
2999         test-raise: don't assume 199 is an invalid signal
3000         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3001
3002         sh-quote-tests: port to Solaris 9
3003         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3004         Problem reported by Dagobert Michelsen in
3005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3006
3007 2012-10-28  Jim Meyering  <jim@meyering.net>
3008
3009         maint.mk: rename a new configurable variable
3010         * top/maint.mk (_gl_translatable_string_re): Rename from
3011         translation-markers: _gl_ prefix to insulate from user Makefile code,
3012         and the _re suffix to inform that it's a regular expression.
3013
3014 2012-10-26  Eric Blake  <eblake@redhat.com>
3015
3016         maint.mk: let packages tweak sc_po_check pattern
3017         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3018         finding files with other translation markers.
3019
3020 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3021
3022         euidaccess: speed up 'configure' on GNU hosts
3023         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3024         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3025         it's needed only in this case.  Use AC_CHECK_DECLS, not
3026         AC_CHECK_DECLS_ONCE.
3027         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3028         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3029
3030         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3031
3032 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         fchmodat, fchownat, fstatat: port to non-inlining compilers
3035         Problem reported for FreeBSD 9 by Jim Meyering in
3036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3037         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3038         New files, which define FCHMODAT_INLINE etc.
3039         * lib/fchmodat.c (FCHMODAT_INLINE):
3040         * lib/fchownat.c (FCHOWNAT_INLINE):
3041         * lib/fstatat.c (FSTATAT_INLINE):
3042         Remove, as chmodat.c etc. now do this.
3043         * modules/fchmodat (Files): Add lib/chmodat.c.
3044         * modules/fchownat (Files): Add lib/chownat.c.
3045         * modules/fstatat (Files): Add lib/statat.c.
3046
3047 2012-10-15  Jim Meyering  <jim@meyering.net>
3048
3049         fchmodat.c, fchownat.c: compile-impeding typos
3050         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3051         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3052         Introduced in commit v0.0-7636-gd202279.
3053
3054 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3055
3056         fcntl-h: support GNU flags like O_IGNORE_CTTY
3057         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3058         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3059         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3060         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3061         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3062         Define to 0 if not already defined.
3063         * tests/test-fcntl-h.c: Test these new flags.
3064
3065 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3066
3067         faccessat, etc.: support AT_FDCWD-only use
3068         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3069         this function only if its first argument is AT_FDCWD.
3070         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3071         values other than AT_FDCWD, so it doesn't want all the openat
3072         machinery with fchdir etc.
3073         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3074         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3075         * modules/unlinkat (Files):
3076         Remove lib/openat-priv.h, as at-internal supplies this file.
3077         Removing this file here allows us to support programs like Emacs
3078         that avoid at-internal.
3079
3080         faccessat: speed up 'configure' on mainstream hosts
3081         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3082         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3083         since it's only on unusual platforms that we need to check for
3084         'access', and it's better not to slow 'configure' down on all
3085         platforms.
3086
3087         faccessat: port to Solaris 10
3088         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3089         Needed on Solaris 10, which doesn't have AT_EACCESS,
3090         so we need the Gnulib fcntl.h, which defines it.
3091
3092 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3093         canonicalize: fix C89 compilation
3094         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3095         declarations so C89 is supported.  Also remove the comment
3096         referencing memorty allocation as the suggested feature could
3097         not be implemented as suggested.
3098         Reported by Michael Goffioul.
3099
3100 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3101
3102         group-member: omit unnecessary dependencies
3103         This is for Emacs, which has its own allocator and where we
3104         don't want to use xalloc.
3105         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3106         since we no longer use xmalloc.  Do not include stdbool.h, since
3107         the changes below happen to remove the only use of bool.
3108         (GROUPBUF_SIZE): New constant.
3109         (struct group_info): Remove n_groups member.  Add groupbuf member.
3110         This lets us get the groups without using malloc, usually.
3111         (free_group_info, get_group_info): Adjust to this.
3112         (get_group_info): Return the number of groups found, or -1 on error.
3113         Use plain malloc not xmalloc, and treat its failure as if there
3114         are no groups, as the user already loses in case of error.
3115         (group_member): Simplify, based on changes to get_group_info.
3116         * modules/group-member (Depends-on): Remove dependencies on
3117         xalloc and stdbool.  Add dependency on xalloc-oversized.
3118
3119 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3120
3121         gethrxtime: port to C++
3122         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3123
3124 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3125
3126         ptsname: fix macro-name typo
3127         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3128
3129 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3130
3131         inttostr: Relax license.
3132         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3133
3134 2012-10-03  Eric Blake  <eblake@redhat.com>
3135
3136         ptsname_r: support ptys returned by FreeBSD posix_openpt
3137         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3138         lives in /dev/pts/.
3139
3140 2012-10-02  Eric Blake  <eblake@redhat.com>
3141
3142         pselect: reject invalid file descriptors
3143         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3144         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3145         * modules/pselect (Depends-on): Add dup2.
3146         * doc/posix-functions/pselect.texi (pselect): Document this.
3147
3148         select: reject invalid file descriptors
3149         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3150         * lib/select.c (rpl_select) [!win32]: Work around it.
3151         * modules/select (Depends-on): Add dup2.
3152         * doc/posix-functions/select.texi (select): Document this.
3153
3154         select: enhance test
3155         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3156         New functions.
3157         (test_function): Enhance test.
3158         (do_select_bad_fd): Avoid any stale errno values.
3159
3160         ptsname: reject invalid file descriptors
3161         http://www.austingroupbugs.net/view.php?id=503
3162         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3164         * modules/stdlib (Makefile.am): Replace witness.
3165         * lib/stdlib.in.h (ptsname): Allow for replacement.
3166         * modules/ptsname (configure.ac): Trigger replacement.
3167         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3168
3169 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3170
3171         hash-pjw-bare: new module
3172         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3173         * lib/hash-pjw-bare.h: Likewise.
3174         * modules/hash-pjw-bare: New file.
3175         * MODULES.html.sh (Misc): Add it.
3176
3177 2012-10-02  Eric Blake  <eblake@redhat.com>
3178
3179         manywarnings: cater to more gcc infelicities
3180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3181         -Wuninitialized without -O.
3182
3183 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3184
3185         select, poll tests: Make setsockopt invocation effective.
3186         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3187         the bind() call.
3188         * tests/test-select.h (open_server_socket): Likewise.
3189
3190 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3191
3192         sockets, sys_stat: restore AC_C_INLINE
3193         This undoes the 2012-09-22 patch.
3194         * m4/sockets.m4 (gl_SOCKETS):
3195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3196         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3197         and does not support plain 'inline'.  Reported by Bruno Haible in
3198         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3199
3200 2012-09-30  Bruno Haible  <bruno@clisp.org>
3201
3202         localeconv tests: Avoid test failure on OpenIndiana.
3203         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3204         skip the 'grouping' and 'mon_grouping' tests.
3205         Reported by Jim Meyering.
3206
3207 2012-09-30  Bruno Haible  <bruno@clisp.org>
3208
3209         havelib: Follow libtool developments.
3210         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3211         Suggested by Simon Josefsson.
3212
3213 2012-09-29  Jim Meyering  <meyering@redhat.com>
3214
3215         fstatat.c: fix a compile-impeding typo
3216         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3217         Introduced in commit v0.0-7636-gd202279.
3218         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3219
3220 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3221
3222         extern-inline: provide a -Wundef safe config.h
3223         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3224         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3225         to produce a -Wundef warning free config.h.
3226
3227 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3228
3229         hash-pjw: relax license to LGPLv2+
3230         * modules/hash-pjw (License): Relax, with consent of author.
3231
3232 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3233
3234         maint.mk: fix strict vs. lazy variable issues with RELEASE
3235         * top/maint.mk (_equal): New function.
3236         (member_check): Strip the result to avoid spurious spaces.
3237         (url_dir_list): Do not use ifeq, which is strict, as it will
3238         require RELEASE_TYPE to be defined.
3239         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3240         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3241         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3242         (announcement_Cc_beta,announcement_mail_headers_beta)
3243         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3244         (release): Do not depend on $(release-type), as it forces its
3245         evaluation.  Bounce to it.
3246
3247 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3248
3249         maint.mk: formatting changes
3250         * top/maint.mk: Indent bodies of if's.
3251
3252 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3253
3254         maint.mk: factor the validation of RELEASE_TYPE
3255         With help from Jim Meyering.
3256         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3257         * top/maint.mk (_empty, _sp): Move their definition earlier.
3258         (member-check, release-type): New.
3259         Use the latter instead of $(RELEASE_TYPE).
3260         Remove now useless local checks.
3261
3262 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3263
3264         maint.mk: provide "make upload" to ease uploading
3265         See
3266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3267         Do not depend simply on the current $(VERSION), as there may have been
3268         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3269         as "make release-commit" already does.
3270
3271         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3272         "make TYPE".
3273
3274         * top/maint.mk (upload_command, upload, release): New.
3275         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3276         (VERSION): first word of $(RELEASE) is always right.
3277         (emit_upload_commands): Adjust.
3278         * top/README-release: Update.
3279
3280 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3281
3282         maint.mk: silent rules
3283         With help from Stefano Lattarini.
3284         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3285         (announcement): Use $(AM_V_at).
3286
3287 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3288
3289         localename: port gl_locale_name_thread_unsafe to FreeBSD
3290         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3291         and use the simpler FreeBSD implementation on Mac OS X as well.
3292         Original idea suggested by Ed Maste in
3293         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3294
3295 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3296
3297         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3298         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3299         * lib/mbuiter.c, lib/xsize.c: New files.
3300         * lib/binary-io.h (BINARY_IO_INLINE):
3301         * lib/eealloc.h (EEALLOC_INLINE):
3302         * lib/mbfile.h (MBFILE_INLINE):
3303         * lib/mbiter.h (MBITER_INLINE):
3304         * lib/mbuiter.h (MBUITER_INLINE):
3305         * lib/xsize.h (XSIZE_INLINE):
3306         New macros.
3307         Replace all uses of 'static inline' with them.
3308         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3309         * m4/eealloc.m4 (gl_EEALLOC):
3310         * m4/mbfile.m4 (gl_MBFILE):
3311         * m4/mbiter.m4 (gl_MBITER):
3312         * m4/xsize.m4 (gl_XSIZE):
3313         Do not require AC_C_INLINE.
3314         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3315         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3316         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3317         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3318         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3319         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3320         * modules/binary-io, modules/eealloc, modules/mbfile:
3321         * modules/mbiter, modules/mbuiter:
3322         (Depends-on): Add extern-inline.
3323
3324         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3325         * lib/pipe-filter-aux.c: New file.
3326         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3327         Replace all uses of 'static inline' with it.
3328         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3329         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3330         (filter_retcode): No real need for inline here.
3331         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3332         (Files): Add lib/pipe-filter-aux.c.
3333         (Depends-on): Add extern-inline.
3334         (configure.ac): Do not require AC_C_INLINE.
3335         (lib_SOURCES): Add pipe-filter-aux.c.
3336
3337         fdutimensat: omit unnecessary AC_C_INLINE
3338         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3339
3340         fchmodat, fchownat, fstatat: use extern-inline
3341         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3342         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3343         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3344         New macros.
3345         * lib/openat.h:
3346         Replace all uses of 'static inline' with them.
3347         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3348         * modules/fchmodat, modules/fchownat, modules/fstatat:
3349         * modules/openat-h:
3350         (Depends-on):
3351         Add extern-inline.
3352         (configure.ac): Remove AC_C_INLINE.
3353
3354         acl, mbchar, priv-set: use extern-inline
3355         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3356         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3357         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3358         New macros.
3359         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3360         Replace all uses of 'static inline' with it.
3361         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3362         * m4/acl.m4 (gl_FUNC_ACL):
3363         * m4/mbchar.m4 (gl_MBCHAR):
3364         * m4/priv-set.m4 (gl_PRIV_SET):
3365         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3366         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3367         Add extern-inline.
3368
3369         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3370         * m4/sockets.m4 (gl_SOCKETS):
3371         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3372         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3373         environments where it's already guaranteed to work, so we needn't
3374         check for it at 'configure'-time.
3375
3376         tls-tests: omit unnecessary 'inline'
3377         * tests/test-tls.c (perhaps_yield): No longer inline.
3378         Simplicity and portability trump efficiency in test cases.
3379
3380         utimens-tests: avoid unnecessary 'inline'
3381         * modules/fdutimensat-tests (configure.ac):
3382         * modules/futimens-tests (configure.ac):
3383         * modules/utimens-tests (configure.ac):
3384         * modules/utimensat-tests (configure.ac):
3385         Remove AC_C_INLINE.
3386         * tests/test-utimens-common.h (ctime_compare):
3387         No longer inline.  Simplicity and portability trump efficiency here.
3388
3389         misc: don't limit commentary to inline functions
3390         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3391         * lib/xalloc-oversized.h, lib/xsize.h:
3392         Contrast macros to functions in general, not just to inline functions,
3393         when the commentary does not apply only to inline functions.
3394
3395 2012-09-20  Jim Meyering  <meyering@redhat.com>
3396
3397         non-recursive-gnulib-prefix-hack: new module
3398         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3399         the file that originated in Bison.
3400         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3401         largely copied from a snippet that resided in bison's configure.ac.
3402         * modules/non-recursive-gnulib-prefix-hack: New file.
3403         * MODULES.html.sh (Support for maintaining and releasing projects):
3404         Add it.
3405
3406 2012-09-18  Jim Meyering  <meyering@redhat.com>
3407
3408         maint.mk: generalize _gl_tight_scope for non-recursive make
3409         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3410         that *.h would describe additional .h files in the directory
3411         specified by $(_gl_TS_dir).  I.e., add this...
3412         (_gl_TS_other_headers): New variable.
3413
3414         maint.mk: exempt trailing blanks found in "binary" files
3415         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3416         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3417         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3418
3419 2012-09-17  Jim Meyering  <meyering@redhat.com>
3420
3421         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3422         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3423         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3424         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3425
3426 2012-09-17  Jim Meyering  <meyering@redhat.com>
3427
3428         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3429         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3430         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3431         It is not in the same category as "exit (0)" or "exit (1)", and
3432         besides, I know of no symbolic name for that 77.  Reported by
3433         Richard W.M. Jones in
3434         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3435
3436 2012-09-17  Jim Meyering  <meyering@redhat.com>
3437
3438         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3439         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3440         all uses of #define, not just those that start in column 1.
3441         Richard W.M. Jones reported a false positive in
3442         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3443
3444 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3445
3446         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3447         * lib/localcharset.c (locale_charset) [DARWIN7]:
3448         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3449         as these two values are incompatible.  Problem reported by Max Horn.
3450         For more discussion, please see
3451         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3452
3453         doc: document sticky-EOF issue
3454         * doc/posix-functions/fgetc.texi (fgetc):
3455         * doc/posix-functions/fgets.texi (fgets):
3456         * doc/posix-functions/fread.texi (fread):
3457         * doc/posix-functions/fscanf.texi (fscanf):
3458         * doc/posix-functions/getc.texi (getc):
3459         * doc/posix-functions/getchar.texi (getchar):
3460         * doc/posix-functions/scanf.texi (scanf):
3461         Mention that glibc and default Solaris do not conform to
3462         C99 and POSIX-2001 or later, with respect to how getchar
3463         etc. behave when feof reports nonzero.
3464
3465 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3466
3467         poll: fix poll(0, NULL, msec)
3468         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3469         but nfd is 0.  In that case poll should behave like select.
3470
3471 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3472             Paolo Bonzini <bonzini@gnu.org>
3473
3474         poll: fix for systems that can't recv() on a non-socket
3475         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3476         is readable.  In this case POLLHUP will not be supported.
3477         * doc/posix-functions/poll.texi: Document this.
3478
3479 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3480
3481         poll/select: document portability problems not fixed by Gnulib.
3482         * doc/posix-functions/poll.texi: poll does not work well on
3483         pipes under Windows.  It has the same limitations as select on
3484         BeOS.
3485         * doc/posix-functions/select.texi: select does not work well
3486         on pipes under Windows.
3487
3488 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3489
3490         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3491         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3492         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3493         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3494
3495 2012-09-06  Eric Blake  <eblake@redhat.com>
3496
3497         net_if: give more details about the bug being fixed
3498         * doc/posix-headers/net_if.texi: Add clarification.
3499
3500 2012-09-05  Eric Blake  <eblake@redhat.com>
3501
3502         net_if: new module
3503         * modules/net_if: New module, borrowing ideas from netinet_in.
3504         * m4/net_if_h.m4: New file.
3505         * lib/net_if.in.h: Likewise.
3506         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3507         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3508         * tests/test-net_if.c: Make function checks conditional.
3509         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3510
3511 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3512
3513         readutmp: fix non-portable UT_PID use
3514         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3515         Use `UT_PID (u) > 0' as absolute condition.
3516
3517 2012-09-04  Jim Meyering  <meyering@redhat.com>
3518
3519         fts: reduce two or more trailing spaces to just one, usually
3520         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3521         or more slashes, trim all but the final one.  But if a name consists
3522         solely of two slashes, don't modify it.  If it consists solely of
3523         three or more slashes, strip all but one.
3524
3525         This is part of the solution to a minor problem with rm:
3526         it would print a bogus ELOOP diagnostic when failing to remove
3527         the slash-decorated name of a symlink-to-directory:
3528
3529             $ mkdir d && ln -s d s && env rm -r s/
3530             rm: cannot remove 's': Too many levels of symbolic links
3531
3532         With the change below and a trivial don't-trim-trailing-slashes
3533         adjustment to remove.c, it does this:
3534
3535             $ env rm -r s/
3536             rm: cannot remove 's/': Not a directory
3537
3538         Improved by: Eric Blake
3539
3540         fts: when there is no risk of overlap, use memcpy, not memmove
3541         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3542
3543 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3544
3545         stdbool: be more compatible with mixed C/C++ compiles
3546         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3547         Define to bool, true, false, respectively, as GCC's builtin
3548         stdbool.h does.  Problem reported by Michael Goffioul in
3549         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3550
3551 2012-08-28  Jim Meyering  <meyering@redhat.com>
3552
3553         revert last change: it was not needed
3554         * tests/test-vc-list-files-git.sh: There's already a test for
3555         a working git, just below.
3556
3557 2012-08-28  Jim Meyering  <meyering@redhat.com>
3558
3559         tests: test-vc-list-files-git.sh: skip if git is not available
3560         * tests/test-vc-list-files-git.sh: Skip this test when git is
3561         not available.
3562
3563 2012-08-26  Bruno Haible  <bruno@clisp.org>
3564
3565         gnulib-tool: Remove no-op option --no-changelog.
3566         * gnulib-tool (func_usage): Don't mention --no-changelog.
3567         (do_changelog): Remove variable.
3568         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3569
3570 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3571
3572         doc: remove fdl-1.2.texi
3573         It is no longer used or maintained, and its use of @acronym
3574         is problematic.  See the thread containing
3575         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3576         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3577         * doc/old-licenses/fdl-1.2.texi: Remove.
3578
3579         execinfo: port to FreeBSD
3580         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3581         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3582         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3583         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3584
3585 2012-08-23  Jim Meyering  <meyering@redhat.com>
3586
3587         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3588         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3589         to placate gcc's -Wold-style-declaration.
3590
3591 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3592
3593         doc: do not use @acronym
3594         * doc/inet_ntoa.texi (inet_ntoa):
3595         * doc/parse-datetime.texi (Seconds since the Epoch)
3596         (Specifying time zone rules):
3597         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3598         Don't use @acronym.  Problem reported by John Darlington in
3599         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3600
3601 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3602
3603         stdnoreturn: port to newer GCCs
3604         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3605         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3606         Problem reported by Jim Meyering in
3607         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3608         Also, rename the 'test' function to a void a clash with the
3609         already-supplied 'main' function; this fixes a bug that incorrectly
3610         rejected GCC 4.7.1's <stdnoreturn.h>.
3611         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3612         Document GCC problem.
3613
3614 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3615
3616         pipe-filter: fix comment typo
3617         * lib/pipe-filter.h: Mention correct function.
3618
3619 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3620
3621         execinfo: new module
3622         This is for Emacs.  Currently, it provides a no-effect stub
3623         on all platforms where it does not already work.
3624         It already works on glibc-based systems, and on Solaris 11.
3625         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3626         New files.
3627         * doc/glibc-headers/execinfo.texi (execinfo.h):
3628         * MODULES.html.sh (Misc): Document it.
3629
3630 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3631
3632         extern-inline: support old GCC 'inline'
3633         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3634         if available.  This applies to GCC versions 2.7 through 4.2, or
3635         when newer GCC is using -fgnu89-inline.  The goal is to address
3636         some of the performance issues mentioned by Bruno Haible in
3637         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3638
3639 2012-08-20  Eric Blake  <eblake@redhat.com>
3640
3641         maint.mk: avoid redundant file name in message
3642         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3643         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3644         (sc_makefile_path_separator_check): Remove bogus $(ME).
3645
3646 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3647
3648         timer-time: fix link order when static linking on glibc
3649         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3650         _after_ -lrt so that it's significant.
3651
3652 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3653
3654         timespec: omit unnecessary AC_C_INLINE
3655         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3656
3657         stat-time: omit unnecessary AC_C_INLINE
3658         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3659         Do not require AC_C_INLINE.
3660
3661         ignore-value: omit unnecessary AC_C_INLINE
3662         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3663
3664         sys_select: avoid 'static inline'
3665         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3666
3667         mktime: avoid 'static inline'
3668         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3669         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3670
3671 2012-08-19  Bruno Haible  <bruno@clisp.org>
3672
3673         gnulib-tool: Improve coding style.
3674         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3675         func_emit_lib_Makefile_am.
3676         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3677
3678 2012-08-19  Bruno Haible  <bruno@clisp.org>
3679
3680         gnulib-tool: Fix indentation.
3681         * gnulib-tool (func_import): Fix indentation.
3682
3683 2012-08-19  Bruno Haible  <bruno@clisp.org>
3684
3685         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3686         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3687         on the list of removed files.
3688
3689 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3690
3691         test-parse-datetime: avoid glibc leap-second glitch
3692         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3693         with the 2012 rules.  Problem reported by Bruce Dubbs in
3694         <http://bugs.gnu.org/12206>.
3695
3696 2012-08-14  Bruno Haible  <bruno@clisp.org>
3697
3698         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3699         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3700         from argument.
3701         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3702
3703 2012-08-14  Eric Blake  <eblake@redhat.com>
3704
3705         ldexp: relax license
3706         * modules/ldexp (License): Trivial relax, since the module only
3707         provides a permissively licensed m4 file.
3708
3709 2012-08-13  Bruno Haible  <bruno@clisp.org>
3710
3711         gnulib-tool: Fix persistence of --witness-c-macro option.
3712         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3713         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3714
3715 2012-08-11  Eric Blake  <eblake@redhat.com>
3716
3717         count-leading-zeros: use a lookup table on non-gcc compilers
3718         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3719         alternate implementation, suggested by Jim Meyering.
3720
3721 2012-08-10  Eric Blake  <eblake@redhat.com>
3722
3723         count-leading-zeros: new module
3724         * modules/count-leading-zeros: New module.
3725         * m4/count-leading-zeros.m4: New file.
3726         * lib/count-leading-zeros.h: Likewise.
3727         * modules/count-leading-zeros-tests: New test.
3728         * tests/test-count-leading-zeros.c: New file.
3729         * MODULES.html.sh (Integer arithmetic functions): Document it.
3730
3731 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3732             Jim Meyering  <meyering@redhat.com>
3733
3734         maintainer-makefile: Fix syntax error with dash.
3735         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3736         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3737
3738 2012-08-05  Jim Meyering  <meyering@redhat.com>
3739
3740         extern-inline: also ignore -Wmissing-declarations
3741         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3742         required with gcc-4.8.0-to-be.
3743
3744         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3745         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3746         for /error ?([^,]*)/.  This avoids false-positives for strings like
3747         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3748
3749 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3750
3751         gnumakefile: better interaction with Automake-NG
3752         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3753         Automake-NG always contain a definition of VPATH, even in non-VPATH
3754         builds (its value being simply '.' in that case).  So, in the
3755         'clean-GNUmakefile' rule, to determine whether running under a
3756         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3757         '$(VPATH)' expands to the empty string.
3758
3759 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3760
3761         base64: Use extern C scope in header file, for C++.
3762         * lib/base64.h: Add C++ namespace protection.
3763
3764 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3765
3766         stat-time, timespec, u64: support naive out-of-dir builds
3767         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3768         Use '#include "foo.h"', not '#include <foo.h>', when including
3769         one's own interface.  This works better when configuring with
3770         out-of-directory builds, since packages need not add an
3771         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3772
3773 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3774
3775         utimens: use extern-inline
3776         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3777         * lib/utimens.h: Add copyright notice, since this is now large enough
3778         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3779         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3780         * modules/utimens (Depends-on): Add extern-inline.
3781
3782         u64: use extern-inline
3783         * lib/u64.c: New file.
3784         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3785         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3786         * modules/u64 (Files): Add lib/u64.c.
3787         (Depends-on): Add extern-inline.
3788         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3789         does that now.
3790         (lib_SOURCES): Add u64.c.
3791
3792         timespec: use extern-inline
3793         * lib/timespec.c: New file.
3794         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3795         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3796         * modules/timespec (Files): Add lib/timespec.c.
3797         (Depends-on): Add extern-inline.
3798         (lib_SOURCES): Add timespec.c.
3799
3800         stat-time: use extern-inline
3801         * lib/stat-time.c: New file.
3802         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3803         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3804         * modules/stat-time (Files): Add lib/stat-time.c.
3805         (Depends-on): Add extern-inline.
3806         (lib_SOURCES): Add stat-time.c.
3807
3808         extern-inline: new module
3809         * modules/extern-inline, m4/extern-inline.m4: New files.
3810         This is for better support of 'extern inline' a la ISO C99,
3811         with a portable alternative on compilers that do not support
3812         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3813         of the Emacs executable, when compiled with debugging disabled,
3814         which is a typical way that Emacs is built while developing.
3815
3816 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3817
3818         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3819         * build-aux/do-release-commit-and-tag: Move variable definitions
3820         together.
3821         ($branch): Instead of defaulting to "master", default to the current
3822         branch (as gnu-web-doc-update does).
3823         (help): Display the current values of the option arguments.
3824         * top/maint.mk (release-commit): New.
3825         * top/README-release: Simplify the corresponding step.
3826
3827 2012-07-30  Eric Blake  <eblake@redhat.com>
3828
3829         passfd: fix comment on recvfd
3830         * lib/passfd.c (recvfd): Fix comment.
3831         Reported by Jann Horn <jannhorn@googlemail.com>.
3832
3833 2012-07-30  Jim Meyering  <meyering@redhat.com>
3834
3835         maint.mk: avoid a sub-shell
3836         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3837
3838 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3839
3840         maint.mk: use silent-rules support from Automake
3841         * top/maint.mk (news-check, vc-diff-check, announcement)
3842         (no-submodule-changes, alpha beta stable, release-prep)
3843         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3844
3845 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3846
3847         maint.mk: provide a web-manual-update target
3848         * top/maint.mk: here.
3849         * top/README-release: Use it to simplify the web manual update step.
3850
3851 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3852
3853         README-release: shorten the circuit to post a news
3854         * top/README-release: Point directly to the news submission form.
3855
3856 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3857
3858         gnu-web-doc-update: fix --help
3859         * build-aux/gnu-web-doc-update: The information "top level" was written
3860         twice.
3861
3862 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3863
3864         maint.mk: absolute VPATH issue
3865         * top/maint.mk (release-prep): Help Git find .git/.
3866         From Jim Meyering.
3867
3868 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3869
3870         gitlog-to-changelog: fix previous change
3871         * build-aux/gitlog-to-changelog: Fix condition.
3872         Add missing ";".
3873
3874 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3875
3876         gitlog-to-changelog: don't expect .git to be in $srcdir
3877         Reported by Bruno Haible.
3878         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3879         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3880         Use it.
3881
3882 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3883
3884         maint.mk: absolute VPATH build fix
3885         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3886         $(srcdir) is not a parent of $(builddir).
3887
3888 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3889
3890         clean-temp: Fix memory leak.
3891         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3892         'files' members of tmpdir.
3893
3894 2012-07-27  Jim Meyering  <meyering@redhat.com>
3895
3896         maint.mk: new rule: refresh-gnulib-patches
3897         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3898         Use this rule to refresh them.
3899         * top/maint.mk (refresh-gnulib-patches): New rule.
3900
3901 2012-07-24  Bruno Haible  <bruno@clisp.org>
3902
3903         gnulib-tool: Fix handling of inctests variable.
3904         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3905         Reported by Nick Bowler <nbowler@elliptictech.com>.
3906
3907 2012-07-22  Bruno Haible  <bruno@clisp.org>
3908
3909         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3910         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3911         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3912         Remove exemption for getpass.h.
3913         Suggested by Eric Blake.
3914
3915 2012-07-20  Eric Blake  <eblake@redhat.com>
3916
3917         verify: document conflict with -Wnested-externs
3918         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3919
3920         maint.mk: forbid exit(-1)
3921         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3922
3923 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3924
3925         fsusage: port back to Solaris
3926         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3927         error (fsd not declared) on Solaris 10.  Reported privately by
3928         Andrew Borodin.
3929
3930 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3931
3932         gnu-web-doc-update: fix error messages
3933         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3934
3935         gnu-web-doc-update: check the requirements.
3936         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3937         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3938         * build-aux/bootstrap (find_tool): Comment change.
3939
3940 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3941
3942         maint.mk: minor simplication.
3943         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3944         for default values.
3945
3946 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3947
3948         gitlog-to-changelog: VPATH build issues
3949         If builddir is not a subdirectory of srcdir, running git from it will
3950         fail.
3951         * build-aux/gitlog-to-changelog (--srcdir): New option.
3952
3953 2012-07-15  Bruno Haible  <bruno@clisp.org>
3954
3955         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3956         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3957         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3958         Remove exemption for fpending.h.
3959         Suggested by Eric Blake.
3960
3961 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3962
3963         pthread_sigmask: fix bug on FreeBSD 9
3964         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3965         Include string.h.
3966         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3967         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3968         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3969         but pthread_sigmask (1729, NULL, NULL) returns zero.
3970         See <http://bugs.gnu.org/11884>.
3971         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3972         by inspecting whether the main call changed the old mask.
3973
3974 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3975
3976         README-release: make it more legible
3977         * top/README-release: Improve typography slightly.
3978
3979 2012-07-15  Jim Meyering  <meyering@redhat.com>
3980
3981         maint: require that each sc_... command start with "@"
3982         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3983         "make sc_maint" helps us avoid this nit.
3984
3985 2012-07-15  Jim Meyering  <meyering@redhat.com>
3986
3987         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3988         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3989
3990 2012-07-13  Eric Blake  <eblake@redhat.com>
3991
3992         maint.mk: new syntax check for HAVE_DECL checks
3993         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3994         * cfg.mk
3995         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3996         Exempt some false positives.
3997         Based on a report by Karel Zak.
3998
3999         argp: make HAVE_DECL usage consistent
4000         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4001         macros, not whether they are defined.
4002         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4003         convention with other declaration checks.
4004         Reported by Karel Zak, with suggestions from Paul Eggert.
4005
4006         stat-time: relax license to LGPLv2+
4007         * modules/stat-time (License): Relax, with consent of all authors.
4008
4009         strndup: fix m4 usage error
4010         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4011         defined, to either 0 or 1.
4012         Reported by Karel Zak.
4013
4014 2012-07-11  Jim Meyering  <meyering@redhat.com>
4015
4016         maint: enable the sc_avoid_if_before_free syntax-check rule
4017         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4018         (if_before_free_offenders_): Define.
4019         (if_before_free_basename_re_): Define.
4020         Exempt current files with useless if-before-free.
4021
4022 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4023
4024         gettext: do not assume '#define ... defined ...' behavior
4025         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4026         Do not use '#define FOO ... defined BAR ...', as the C standard says
4027         it's not portable to expect that this works after macro expansion.
4028         Problem reported for gzip by Steven M. Schweda in
4029         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4030
4031 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4032
4033         getloadavg: clean out old Emacs and Autoconf cruft
4034         See Glenn Morris in <http://bugs.gnu.org/11905>.
4035         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4036         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4037         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4038         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4039
4040 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4041
4042         bootstrap: let warn be like tests/init.sh's warn_
4043         Reported by Jim Meyering.
4044         * build-aux/bootstrap (warn): Remove, replaced by...
4045         (warnf_, warn_): these.
4046         Adjust callers.
4047         Shorten messages that no longer fit in 80 columns.
4048
4049 2012-07-09  Bruno Haible  <bruno@clisp.org>
4050
4051         getopt: Simplify after Emacs changed.
4052         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4053         (gl_GETOPT_IFELSE): Remove macro.
4054
4055 2012-07-09  Jim Meyering  <meyering@redhat.com>
4056
4057         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4058         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4059
4060         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4061         Bugs in both of those conspired to make the
4062         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4063         _sc_search_regexp's handling of non-empty $in_files would filter
4064         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4065         choice of in_files value meant there would be no match in most
4066         projects, due to the presence of two or more Makefile.in files.
4067         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4068         Fix a bug in how a non-empty $$in_files was processed:
4069         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4070         in spite of the name, it's a regexp, not a list of file names.
4071
4072 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4073
4074         getloadavg, getopt: fix commentary re configure.in
4075         Autoconf is deprecating the name 'configure.in', so change it to
4076         to the new name 'configure.ac' in a couple of places.
4077         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4078         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4079         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4080         Emacs has renamed it to configure.ac, and it no longer refers
4081         to these macros anyway.
4082
4083         timespec: mark functions with const attributes
4084         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4085         Mark with _GL_ATTRIBUTE_CONST.
4086
4087 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4088
4089         canonicalize[-lgpl]: handle "guessing" values when cross-building
4090         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4091         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4092         matches "*yes" instead of just "yes".  Regression introduced in commit
4093         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4094
4095 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4096             Bruno Haible  <bruno@clisp.org>
4097
4098         canonicalize: make the right guess when cross-compiling to GNU
4099         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4100         determine whether cross-compiling to glibc systems, so as to
4101         include GNU/Hurd.
4102
4103 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4104
4105         timespec-sub: avoid duplicate include
4106         * lib/timespec-sub.c: Do not include <config.h> twice.
4107         Reported by Juanma Barranquero.
4108
4109 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4110
4111         bootstrap: use a more consistent error reporting scheme
4112         * build-aux/bootstrap (warn, die): New.
4113         Use them.
4114
4115 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4116
4117         sys_time: allow too-wide tv_sec
4118         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4119         timeval even if tv_sec is wider than time_t.  This allows
4120         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4121         as without this patch gnulib replaces struct timeval
4122         and OpenBSD futimes therefore has a type mismatch.
4123         * doc/posix-headers/sys_time.texi: Mention this.
4124
4125         pthread: check for both pthread_create and pthread_join
4126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4127         alter the check so that it tests for both pthread_create and
4128         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4129         Suggested by Bruno Haible and Richard Yao in
4130         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4131
4132         parse-datetime: doc tuneup
4133         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4134         spacing issues.
4135
4136 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4137
4138         do-release-commit-and-tag: fix the previous commit
4139         * build-aux/do-release-commit-and-tag: Actually the test was right,
4140         but the comment and the error message were misleading.
4141         Fix comment, and improve error message.
4142         Perform check first, so that NEWS is not modified uselessly.
4143
4144         do-release-commit-and-tag: fix typo
4145         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4146         _not_ start with a stub.
4147
4148 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4149
4150         pthread: check for pthread_create, not pthread_join
4151         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4152         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4153         pthread_join in libc.  I hope this removes the need for all the
4154         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4155         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4156
4157 2012-07-04  Jim Meyering  <meyering@redhat.com>
4158
4159         parse-datetime: fix failure to diagnose invalid input
4160         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4161         rather than diagnosing the invalid input.  Now it reports this:
4162         date: invalid date '\260'
4163         * lib/parse-datetime.y (to_uchar): Define.
4164         (yylex): Don't sign-extend "other" bytes.
4165         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4166         Thanks to Bruno Haible for the patch to this file.
4167         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4168         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4169
4170 2012-07-03  Jim Meyering  <meyering@redhat.com>
4171
4172         bootstrap: do not require now-removed build-aux/missing
4173         Now that build-aux/missing is, er, missing, bootstrap would
4174         silently fail.
4175         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4176         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4177         no longer part of gnulib.
4178         Diagnose the failure.
4179
4180 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4181
4182         alloca: add support for HP NonStop TNS/E native
4183         * lib/alloca.in.h (alloca): Support the new host.
4184         From a suggestion by Joachim Schmitz in
4185         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4186
4187 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4188
4189         fsusage: remove code not needed on non GNU/Linux systems.
4190
4191         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4192         Don't include headers no longer needed in this case.
4193         * lib/fsusage.c [STAT_STATVFS &&
4194         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4195         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4196
4197 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4198
4199         fsusage: include files needed for glibc 2.6 fallback
4200         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4201         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4202         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4203         Problem reported by Ludovic Courtès in
4204         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4205
4206         fsusage: avoid needless check on GNU/Linux
4207         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4208         on GNU/Linux systems, since it can't possibly work.
4209
4210 2012-07-01  Bruno Haible  <bruno@clisp.org>
4211
4212         log: Fix an autoconf >= 2.64 warning.
4213         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4214         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4215
4216 2012-06-28  Bruno Haible  <bruno@clisp.org>
4217
4218         log10f: Fix possible configuration problem.
4219         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4220         $LOGF_LIBM.
4221         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4222
4223 2012-06-28  Bruno Haible  <bruno@clisp.org>
4224
4225         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4226         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4227         not gl_cv_func_unlink_works.
4228         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4229
4230 2012-06-27  Eric Blake  <eblake@redhat.com>
4231
4232         config: drop scripts that automake says are not independent
4233         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4234         * build-aux/elisp-comp: Delete.
4235         * build-aux/missing: Likewise.
4236         * build-aux/ylwrap: Likewise.
4237         * modules/elisp-comp: Likewise.
4238         * MODULES.html.sh: Drop mention of elisp-comp.
4239         * NEWS: Mention this.
4240
4241 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         root-uid: new module
4244         This is for portability to Tandem's NonStop Kernel.
4245         * lib/root-uid.h, modules/root-uid: New files.
4246         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4247         * lib/write-any-file.c, tests/test-sethostname2.c:
4248         Include "root-uid.h".
4249         * lib/euidaccess.c (euidaccess):
4250         * lib/pt_chown.c (main):
4251         * lib/unlinkdir.c (cannot_unlink_dir):
4252         * lib/write-any-file.c (can_write_any_file):
4253         * m4/mknod.m4 (gl_FUNC_MKNOD):
4254         * tests/test-sethostname2.c (geteuid, main):
4255         Don't assume ROOT_UID == 0.
4256         * modules/euidaccess (Depends-on):
4257         * modules/pt_chown (Depends-on):
4258         * modules/sethostname-tests (Depends-on):
4259         * modules/unlinkdir (Depends-on):
4260         * modules/write-any-file (Depends-on):
4261         Add root-uid.
4262
4263         regex: use locale-independent comparison for codeset name
4264         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4265         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4266         for codeset name.
4267         * lib/regex_internal.h: Do not include <strings.h>, since we
4268         no longer use strcasecmp.
4269         * modules/regex (Depends-on): Remove strcase.
4270
4271 2012-06-23  Bruno Haible  <bruno@clisp.org>
4272
4273         getopt-posix: No longer guarantee that option processing is resettable.
4274         * doc/posix-functions/getopt.texi: Drop description of problem with
4275         internal state. Fix info about mingw and msvc9.
4276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4277         option processing by getopt(). Run three test programs instead of one.
4278         Simplify cross-compilation guess.
4279         * NEWS: Mention the change.
4280         Reported by Rich Felker <dalias@aerifal.cx>.
4281
4282 2012-06-26  Bruno Haible  <bruno@clisp.org>
4283
4284         argp, regex: Ensure strcasecmp gets declared.
4285         * lib/argp-help.c: Include <strings.h>.
4286         * lib/regex_internal.h: Likewise.
4287         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4288
4289 2012-06-24  Bruno Haible  <bruno@clisp.org>
4290
4291         ptsname_r: Make it consistent with ptsname on AIX.
4292         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4293         implementation as for OSF/1.
4294         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4295         a pty master.
4296
4297         ptsname_r: Make it consistent with ptsname on OSF/1.
4298         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4299         OSF/1.
4300
4301 2012-06-24  Bruno Haible  <bruno@clisp.org>
4302
4303         ttyname_r: Fix result on OSF/1, Solaris.
4304         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4305
4306 2012-06-24  Bruno Haible  <bruno@clisp.org>
4307
4308         ptsname_r: Add support for Solaris.
4309         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4310         Solaris.
4311
4312         ptsname_r: Fix test failure on native Windows.
4313         * modules/ptsname_r (Depends-on): Add isatty.
4314
4315         ptsname_r: Fix test failures on IRIX, Solaris.
4316         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4317         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4318         accordingly.
4319         * lib/ptsname_r.c: Include <fcntl.h>.
4320         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4321         set errno if fd is invalid.
4322         * tests/test-isatty.c (main): Update comments.
4323
4324 2012-06-24  Bruno Haible  <bruno@clisp.org>
4325
4326         ptsname test: Extend test.
4327         * tests/test-ptsname.c: Include <errno.h>.
4328         (main): Test behaviour with invalid file descriptor.
4329
4330 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4331
4332         time: fix obsolete comment
4333         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4334         reference to HAVE_STRUCT_TIMESPEC in comment.
4335
4336 2012-06-23  Bruno Haible  <bruno@clisp.org>
4337
4338         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4340         does not handle abbreviated long options with equivalent
4341         disambiguations, set gl_replace_getopt to yes.
4342         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4343
4344 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4345
4346         time_r: fix typo that always overrode localtime_r decl
4347         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4348         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4349         not in a standard include.
4350
4351 2012-06-22  Bruno Haible  <bruno@clisp.org>
4352
4353         Write "Mac OS X" instead of "MacOS X".
4354         * README: Write "Mac OS X" instead of "MacOS X".
4355         * build-aux/bootstrap: Likewise.
4356         * build-aux/install-reloc: Likewise.
4357         * lib/acl-internal.h: Likewise.
4358         * lib/acl_entries.c: Likewise.
4359         * lib/argp-ba.c: Likewise.
4360         * lib/argp-pv.c: Likewise.
4361         * lib/config.charset: Likewise.
4362         * lib/copy-acl.c: Likewise.
4363         * lib/csharpexec.c: Likewise.
4364         * lib/euidaccess.c: Likewise.
4365         * lib/fbufmode.c: Likewise.
4366         * lib/fflush.c: Likewise.
4367         * lib/file-has-acl.c: Likewise.
4368         * lib/filemode.h: Likewise.
4369         * lib/fpurge.c: Likewise.
4370         * lib/freadable.c: Likewise.
4371         * lib/freadahead.c: Likewise.
4372         * lib/freading.c: Likewise.
4373         * lib/freadptr.c: Likewise.
4374         * lib/freadseek.c: Likewise.
4375         * lib/fseeko.c: Likewise.
4376         * lib/fseterr.c: Likewise.
4377         * lib/fsusage.c: Likewise.
4378         * lib/fwritable.c: Likewise.
4379         * lib/fwriting.c: Likewise.
4380         * lib/get-rusage-as.c: Likewise.
4381         * lib/get-rusage-data.c: Likewise.
4382         * lib/getdomainname.c: Likewise.
4383         * lib/idpriv-drop.c: Likewise.
4384         * lib/idpriv-droptemp.c: Likewise.
4385         * lib/localcharset.c: Likewise.
4386         * lib/locale.in.h: Likewise.
4387         * lib/localename.c: Likewise.
4388         * lib/mbsrtowcs-state.c: Likewise.
4389         * lib/nproc.c: Likewise.
4390         * lib/passfd.c: Likewise.
4391         * lib/posix_openpt.c: Likewise.
4392         * lib/printf-parse.c: Likewise.
4393         * lib/progreloc.c: Likewise.
4394         * lib/safe-read.h: Likewise.
4395         * lib/safe-write.h: Likewise.
4396         * lib/sched.in.h: Likewise.
4397         * lib/set-mode-acl.c: Likewise.
4398         * lib/signal.in.h: Likewise.
4399         * lib/stdint.in.h: Likewise.
4400         * lib/stdio-impl.h: Likewise.
4401         * lib/stdlib.in.h: Likewise.
4402         * lib/strtod.c: Likewise.
4403         * lib/sys_select.in.h: Likewise.
4404         * lib/tcgetsid.c: Likewise.
4405         * lib/unistd.in.h: Likewise.
4406         * lib/unlockpt.c: Likewise.
4407         * lib/vasnprintf.c: Likewise.
4408         * lib/vma-iter.c: Likewise.
4409         * lib/wcsrtombs-state.c: Likewise.
4410         * m4/acl.m4: Likewise.
4411         * m4/acosl.m4: Likewise.
4412         * m4/asinl.m4: Likewise.
4413         * m4/atanl.m4: Likewise.
4414         * m4/c-stack.m4: Likewise.
4415         * m4/cosl.m4: Likewise.
4416         * m4/expl.m4: Likewise.
4417         * m4/extensions.m4: Likewise.
4418         * m4/fdatasync.m4: Likewise.
4419         * m4/fmal.m4: Likewise.
4420         * m4/frexp.m4: Likewise.
4421         * m4/frexpf.m4: Likewise.
4422         * m4/frexpl.m4: Likewise.
4423         * m4/fsusage.m4: Likewise.
4424         * m4/getdomainname.m4: Likewise.
4425         * m4/getloadavg.m4: Likewise.
4426         * m4/getopt.m4: Likewise.
4427         * m4/gettext.m4: Likewise.
4428         * m4/gnulib-common.m4: Likewise.
4429         * m4/intdiv0.m4: Likewise.
4430         * m4/intlmacosx.m4: Likewise.
4431         * m4/largefile.m4: Likewise.
4432         * m4/ldexpl.m4: Likewise.
4433         * m4/link-follow.m4: Likewise.
4434         * m4/locale-ar.m4: Likewise.
4435         * m4/locale-fr.m4: Likewise.
4436         * m4/locale-ja.m4: Likewise.
4437         * m4/locale-tr.m4: Likewise.
4438         * m4/locale-zh.m4: Likewise.
4439         * m4/locale_h.m4: Likewise.
4440         * m4/lock.m4: Likewise.
4441         * m4/logl.m4: Likewise.
4442         * m4/mathfunc.m4: Likewise.
4443         * m4/minus-zero.m4: Likewise.
4444         * m4/mktime.m4: Likewise.
4445         * m4/mmap-anon.m4: Likewise.
4446         * m4/multiarch.m4: Likewise.
4447         * m4/nanosleep.m4: Likewise.
4448         * m4/nocrash.m4: Likewise.
4449         * m4/poll.m4: Likewise.
4450         * m4/printf-frexpl.m4: Likewise.
4451         * m4/printf.m4: Likewise.
4452         * m4/signbit.m4: Likewise.
4453         * m4/sinl.m4: Likewise.
4454         * m4/sqrtl.m4: Likewise.
4455         * m4/strerror_r.m4: Likewise.
4456         * m4/tanl.m4: Likewise.
4457         * m4/threadlib.m4: Likewise.
4458         * m4/ttyname_r.m4: Likewise.
4459         * m4/unlink.m4: Likewise.
4460         * m4/visibility.m4: Likewise.
4461         * m4/wcwidth.m4: Likewise.
4462         * tests/minus-zero.h: Likewise.
4463         * tests/test-alloca-opt.c: Likewise.
4464         * tests/test-copy-acl.sh: Likewise.
4465         * tests/test-copy-file.sh: Likewise.
4466         * tests/test-fdatasync.c: Likewise.
4467         * tests/test-file-has-acl.sh: Likewise.
4468         * tests/test-flock.c: Likewise.
4469         * tests/test-fsync.c: Likewise.
4470         * tests/test-localename.c: Likewise.
4471         * tests/test-malloca.c: Likewise.
4472         * tests/test-nonblocking-pipe.h: Likewise.
4473         * tests/test-nonblocking-socket.h: Likewise.
4474         * tests/test-openpty.c: Likewise.
4475         * tests/test-posix_openpt.c: Likewise.
4476         * tests/test-ptsname.c: Likewise.
4477         * tests/test-ptsname_r.c: Likewise.
4478         * tests/test-sameacls.c: Likewise.
4479         * tests/test-select.h: Likewise.
4480         * tests/test-set-mode-acl.sh: Likewise.
4481         * tests/test-snprintf-posix.h: Likewise.
4482         * tests/test-sprintf-posix.h: Likewise.
4483         * tests/test-strtod.c: Likewise.
4484         * tests/test-time.c: Likewise.
4485         * tests/test-vasnprintf-posix.c: Likewise.
4486         * tests/test-vasprintf-posix.c: Likewise.
4487         * doc/acl-resources.txt: Likewise.
4488         * doc/**/*.texi: Likewise.
4489         Reported by Max Horn <max@quendi.de>.
4490
4491 2012-06-22  Bruno Haible  <bruno@clisp.org>
4492
4493         grantpt: Relax requirement regarding invalid file descriptors.
4494         * lib/grantpt.c: Don't include <fcntl.h>.
4495         (grantpt): Don't verify the validity of the file descriptor.
4496         * modules/grantpt (Depends-on): Remove fcntl-h.
4497         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4498         file descriptors.
4499         * doc/posix-functions/grantpt.texi: Document more platforms on which
4500         grantpt succeeds for invalid file descriptors.
4501         Reported by Rich Felker <dalias@aerifal.cx>.
4502
4503 2012-06-22  Bruno Haible  <bruno@clisp.org>
4504
4505         fbufmode test: Don't test unportable behaviour.
4506         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4507         (main): Invoke it three times.
4508         Reported by Szabolcs Nagy <nsz@port70.net>
4509         and Rich Felker <dalias@aerifal.cx>.
4510
4511 2012-06-21  Bruno Haible  <bruno@clisp.org>
4512
4513         gnulib-tool: Refactor inctests variable.
4514         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4515         (func_modules_transitive_closure,
4516         func_modules_transitive_closure_separately,
4517         func_import, func_create_testdir): Update.
4518
4519         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4520         * gnulib-tool: Accept option --without-tests.
4521         (func_usage): Document --without-tests option. Rearrange.
4522         (inctests): Normalize according to the mode.
4523         * NEWS: Mention the change.
4524         Suggested by Simon Josefsson.
4525
4526 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4527
4528         parse-duration test: Avoid spurious output.
4529         * tests/test-parse-duration.sh: Reindent with leading tabs.
4530
4531 2012-06-21  Jim Meyering  <meyering@redhat.com>
4532
4533         maint: disable the strncpy prohibition
4534         * cfg.mk: Do not prohibit strncpy here.
4535
4536 2012-06-21  Bruno Haible  <bruno@clisp.org>
4537
4538         nonblocking: Avoid compilation error on mingw64.
4539         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4540         fscanf.
4541         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4542         * modules/vfscanf (configure.ac): Likewise.
4543         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4544         definition only if stdio.h has prepared it.
4545         Reported by Daniel P. Berrange <berrange@redhat.com>.
4546
4547 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4548
4549         gnulib-tool: Use readlink if it is available.
4550         * gnulib-tool (func_readlink): Choose function more appropriately.
4551
4552 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4553
4554         posixtm-tests: port to buggy compiler
4555         Problem reported by Simon Josefsson in
4556         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4557         * modules/posixtm-tests (Depends-on): Add stdint.
4558         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4559         Now of type int_least64_t, not int64_t, both because that's
4560         what INT64_C returns and because int_least64_t works even
4561         on 72-bit hosts.
4562         (T): Use INT64_C on constants outside the traditional int range,
4563         to work around compiler bug noted by Simon.
4564
4565         mktime: fix integer overflow in 'configure'-time test
4566         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4567         after integer overflow.  Problem reported by Rich Felker in
4568         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4569         Also, don't look for further instances of a bug if we've already
4570         found one instance; this helps 'configure' run faster.
4571
4572 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4573
4574         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4575         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4576         GetVersionEx correctly.
4577         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4578
4579 2012-06-20  Bruno Haible  <bruno@clisp.org>
4580
4581         fdopen: Allow implementations that don't reject invalid fd arguments.
4582         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4583         succeeds.
4584         Reported by Rich Felker <dalias@aerifal.cx>.
4585
4586 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4587
4588         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4589         bring in LIBINTL.
4590
4591 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4592
4593         init.sh: do not rely on autoupated PWD
4594         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4595         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4596         Although Nelson's bug was not necessarily fixed by this patch,
4597         it seems wise to make the change for safety.
4598         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4599         automagically after 'cd'; this is not reliable on older shells.
4600         (setup_): Fail if we cannot cd to temporary directory.
4601
4602 2012-06-19  Bruno Haible  <bruno@clisp.org>
4603
4604         stat, fstat: Avoid warnings on mingw64.
4605         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4606         redefining.
4607         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4608         Reported by Daniel P. Berrange <berrange@redhat.com>.
4609
4610 2012-06-19  Bruno Haible  <bruno@clisp.org>
4611
4612         stdioext: Add support for musl libc.
4613
4614         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4615         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4616
4617         * m4/fseterr.m4: New file.
4618         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4619         function exists.
4620         * modules/fseterr (Files): Add m4/fseterr.m4.
4621         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4622         __fseterr does not exist.
4623         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4624
4625         * lib/freadable.h: Update comment.
4626
4627         * lib/fwritable.h: Update comment.
4628
4629         * lib/freading.h: Update comment.
4630
4631         * lib/fwriting.h: Update comment.
4632
4633         * m4/freadahead.m4: New file.
4634         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4635         that function exists.
4636         * modules/freadahead (Files): Add m4/freadahead.m4.
4637         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4638         __freadahead does not exist.
4639         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4640
4641         * m4/freadptr.m4: New file.
4642         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4643         function exists.
4644         * modules/freadptr (Files): Add m4/freadptr.m4.
4645         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4646         __freadptr does not exist.
4647         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4648
4649         * m4/freadseek.m4: New file.
4650         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4651         exists.
4652         * modules/freadseek (Files): Add m4/freadseek.m4.
4653         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4654
4655         * lib/fpurge.c (fpurge): Update comment.
4656
4657         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4658
4659 2012-06-19  Bruno Haible  <bruno@clisp.org>
4660
4661         *printf-posix: Put more info into config.log.
4662         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4663         exit code into config.log.
4664
4665 2012-06-19  Bruno Haible  <bruno@clisp.org>
4666
4667         getopt-gnu: Fix exit code overflow in autoconf test.
4668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4669         to keep them below < 128.
4670
4671 2012-06-17  Jim Meyering  <meyering@redhat.com>
4672
4673         maint.mk: fix typo in code to derive GPG key at release time
4674         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4675
4676 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4677
4678         regex: avoid warning when pointers are not long
4679         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4680         and uintptr_t, not long, for portability to hosts where pointers and
4681         long have different sizes.  Issue noted by Daniel P. Berrange in
4682         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4683         and fix suggested by Bruno Haible in
4684         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4685
4686 2012-06-17  Bruno Haible  <bruno@clisp.org>
4687
4688         dummy: Relicense into the public domain.
4689         * modules/dummy (License): Set to "public domain".
4690         Suggested by Reuben Thomas.
4691
4692 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4693
4694         announce-gen: VPATH issues
4695         * build-aux/announce-gen (--srcdir): New option, used to trim the
4696         $srcdir part of the path from $builddir to NEWS.
4697         * top/maint.mk (announcement): Adjust.
4698
4699 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4700
4701         gnu-web-doc-update: VPATH builds
4702         * build-aux/gnu-web-doc-update (--builddir): New option.
4703         Revamp the handling of options.
4704         Prefer $(...) to `...`.
4705         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4706         the template, and it is GNU mktemp specific.
4707         Prefer set -e to long series of &&.
4708         Restore the initial git branch, not "master".
4709         Properly initialize submodules (don't rely only on bootstrap).
4710         Do not reconfigure blindly, use config.status.
4711         * top/README-release: Update instructions for gnu-web-doc-update.
4712
4713 2012-06-11  Jim Meyering  <meyering@redhat.com>
4714
4715         maint.mk: revert most of the previous change re "all these"
4716         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4717         For rationale, see the discussion at
4718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4719
4720 2012-06-10  Karl Berry  <karl@gnu.org>
4721
4722         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4723
4724         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4725
4726 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4727
4728         parse-duration: Relicense under LGPLv2+.
4729         * modules/parse-duration (License): Change to LGPLv2+.
4730
4731 2012-06-10  Jim Meyering  <meyering@redhat.com>
4732
4733         maint.mk: prohibit common grammar error: "all these"
4734         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4735         the list of prohibited word sequences.  It should be "all of these".
4736         * lib/tempname.c (__gen_tempname): Fix one of them.
4737
4738 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4739
4740         do-release-commit-and-tag: support VPATH builds
4741         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4742         (noteworthy): Defined earlier to factor its value.
4743         (noteworthy_stub): New.
4744         Use it to factor.
4745         (help_version): Split into...
4746         (help, version): these.
4747         Adjust the option processing part.
4748         Support "--option=value" in addition to "--option value".
4749         (builddir): New.
4750         (--builddir): New option.
4751         * top/README-release: Document this.
4752         Reword slightly so that the reader cannot understand that he
4753         has to do these steps before calling do-release-commit-and-tag.
4754
4755 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4756
4757         readme-release: also require announce-gen and maintainer-makefile
4758         * modules/readme-release (Depends-on): here.
4759         * modules/announce-gen, modules/do-release-commit-and-tag,
4760         modules/gnu-web-doc-update, modules/maintainer-makefile
4761         (Description): Point to readme-release.
4762
4763 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4764
4765         maint.mk: fix VPATH issues.
4766         * top/maint.mk (news-check): GNU Make understand $< very well.
4767         (release-prep): NEWS is in $(srcdir).
4768
4769 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4770
4771         readme-release: require the promoted modules.
4772         * modules/readme-release (Depends-on): Add
4773         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4774         in this text.
4775
4776 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4777             Bruno Haible  <bruno@clisp.org>
4778
4779         error, strerror-override: Support mingw64 from Fedora 17.
4780         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4781         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4782         EINPROGRESS.
4783         * lib/strerror-override.h (strerror_override): Test it.
4784         * lib/strerror-override.c (strerror_override): Likewise.
4785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4786
4787 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4788             Bruno Haible  <bruno@clisp.org>
4789
4790         error, strerror-override: Support mingw64 from Fedora 17.
4791         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4792         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4793         * lib/strerror-override.h (strerror_override): Test it.
4794         * lib/strerror-override.c (strerror_override): Likewise.
4795
4796 2012-06-03  Bruno Haible  <bruno@clisp.org>
4797
4798         error, strerror-override: Support new errno values from POSIX:2008.
4799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4800         ENOTRECOVERABLE.
4801         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4802         platforms.
4803         * lib/strerror-override.c (strerror_override): Conditionalize the
4804         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4805         * lib/strerror-override.h (strerror_override): Declare also if
4806         GNULIB_defined_EOWNERDEAD is defined.
4807         * tests/test-errno.c (e130, e131): New variables.
4808         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4809         ENOTRECOVERABLE.
4810         Reported by Paolo Bonzini.
4811
4812 2012-05-31  Jim Meyering  <meyering@redhat.com>
4813
4814         savewd: add missing dependency on sys_wait module
4815         * modules/savewd (Depends-on): Add sys_wait, needed at least
4816         for MSVC.  Report and suggested change by Michael Goffioul.
4817
4818 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4819
4820         system-quote-tests: port to CentOS 5
4821         Problem reported by Tom G. Christensen in
4822         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4823         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4824
4825 2012-05-29  Jim Meyering  <meyering@redhat.com>
4826
4827         maint: fix typos in comments and ChangeLog
4828         Culprits identified and fixed mostly automatically using these commands:
4829         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4830         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4831         using http://github.com/lyda/misspell-check
4832         * ChangeLog: Fix typos.
4833         * doc/solaris-versions: Likewise.
4834         * lib/regexec.c (re_search_stub): Likewise.
4835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4836
4837 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4838
4839         manywarnings: remove duplicate -Wmultichar entry
4840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4841         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4842         so keep the entry marked as documented.
4843
4844 2012-05-27  Karl Berry  <karl@gnu.org>
4845
4846         * config/srclist.txt (mktime.c): remove last libc sync,
4847         perhaps just temporarily.
4848
4849 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         regex: don't assume uint64_t or uint32_t
4852         * lib/regcomp.c (init_word_char): Don't assume that the types
4853         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4854         them, and on some 32-bit compilers there is no uint64_t.
4855         Problem reported by Gianluigi Tiesi in
4856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4857
4858 2012-05-25  Jim Meyering  <meyering@redhat.com>
4859
4860         maint.mk: add strncpy-prohibiting syntax-check rule
4861         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4862
4863 2012-05-24  Jim Meyering  <meyering@redhat.com>
4864
4865         maint.mk: compute $(gpg_key_ID) more portably
4866         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4867         That use of sed is not portable to some fringe systems.
4868         Reported by Paul Eggert in
4869         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4870
4871 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4872
4873         mktime: sync from glibc
4874         * config/srclist.txt: Uncomment mktime.c.
4875         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4876         First, indent with tabs, since glibc uses tabs and doesn't want to
4877         change and we'd rather be identical to glibc.  Also, two small
4878         coding changes:
4879         (isdst_differ): Use &&, not &, as && is the usual style.
4880         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4881         for clarity.
4882
4883 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4884
4885         announce-gen: du -h is more portable than du --human
4886         * build-aux/announce-gen (sizes): Invoke du with -h instead
4887         of --human.  Accept leading white space in its output.
4888
4889 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4890
4891         announce-gen: Improve diagnostics.
4892         * build-aux/announce-gen: When parsing command line options,
4893         prefer "announce-gen: option --release-type requires an argument"
4894         to "Option release-type requires an argument".
4895
4896 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4897
4898         maint.mk: gpg_key_ID: use sed more portably
4899         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4900         the closing brace.
4901         (refresh-po): Fuse two sed invocations into one.
4902
4903 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4904
4905         gitlog-to-changelog: support the log message format used in Bison.
4906         * build-aux/gitlog-to-changelog: Support --strip-tab and
4907         --strip-cherry-picked.
4908
4909 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4910
4911         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4912         the rest of the current time slice to another thread in the current
4913         process. So if the thread that feeds the file decscriptor we're
4914         polling is not in the current process, we get busy-waiting.
4915         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4916         Patch from Theodore Leblond.
4917         * lib/select.c: Split polling out of the loop that sets the output
4918         fd_sets.  Check for zero result and loop if the wait timeout is
4919         infinite.
4920
4921 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4922
4923         select: Fix build error on IRIX 6.5.
4924         * lib/select.c: Include stddef.h for NULL.
4925
4926 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4927
4928         gc: fix libgcrypt detection on older machines.
4929         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4930         copyright years because the file has been distributed every year
4931         since it was created.
4932
4933 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4934
4935         crypto: fix bug in large buffer handling
4936         Problem reported by Serge Belyshev for glibc in
4937         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4938         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4939         * lib/md4.c (md4_process_block):
4940         * lib/md5.c (md5_process_block):
4941         * lib/sha1.c (sha1_process_block):
4942         * lib/sha256.c (sha256_process_block):
4943         Don't assume the buffer length is less than 2**32.
4944         * lib/sha512.c (sha512_process_block): Likewise.
4945         Here, the bug is present only in the rare case where the host does
4946         not support uint64_t or where size_t is wider than 64 bits.
4947         Use u64size to work around the problems.
4948         * lib/u64.h (u64size): New macro.
4949
4950 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4951
4952         fsusage: fix block size returned on older Linux 2.6
4953
4954         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4955         which is available since Linux 2.6.
4956         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4957         when the member is available so it can be used as a fallback.
4958         * doc/posix-functions/statvfs.texi: Mention the hang issue
4959         on Linux < 2.6.36.
4960
4961 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4962
4963         bootstrap: suppress stderr chatter
4964         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4965         Omit unnecessary chatter to stderr.  The main program chatter
4966         was there only inadvertantly.
4967
4968         bootstrap: .gitignore files created by autopoint, libtool
4969         I ran into this problem when bootstrapping the latest diffutils.
4970         After './bootstrap', 'git status' reported lots of untracked files
4971         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4972         autopoint and do not need to be version-controlled.
4973         * build-aux/bootstrap: Put into .gitignore the files that
4974         autopoint and libtool create, by keeping track of files that exist
4975         after but not before these programs are run.
4976         (version_controlled_file): Move up.  2nd arg is now full file
4977         name, not base name; this is more convenient.  Put CVS at the end,
4978         as it's now somewhat deprecated.
4979
4980 2012-05-14  Jim Meyering  <meyering@redhat.com>
4981
4982         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4983         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4984         definition.  Reported by Bruno Haible.
4985
4986 2012-05-13  Bruno Haible  <bruno@clisp.org>
4987             Paul Eggert  <eggert@cs.ucla.edu>
4988
4989         binary-io: Define set_binary_mode function.
4990         * lib/binary-io.h (set_binary_mode): New function.
4991         (SET_BINARY): Define in terms of set_binary_mode.
4992         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4993         * tests/test-binary-io.c (main): Accept an argument, and test either
4994         set_binary_mode or SET_BINARY depending on the argument.
4995         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4996         argument. Clean up also t-bin-out0.tmp.
4997
4998 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4999
5000         bootstrap: take advantage of POSIX shell features
5001
5002         The 'bootstrap' script offered by Gnulib script already uses POSIX
5003         shell features (like $((...)) arithmetic expansions) that are not
5004         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5005         means that bootstrap must already be run using a proper POSIX shell,
5006         which will thus provide more features, like ${var#pattern} parameter
5007         expansion or inversion of a command exit status with '!'.  We can
5008         thus use these features to improve the clarity and the performances
5009         of the bootstrap script.
5010
5011         Suggested by Eric Blake.
5012
5013         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5014         of sed/expr plus command substitutions, to save some forks.  While
5015         we are at it, prefer the POSIX $(...) form of command substitution,
5016         rather than the legacy form `...` (since the former is visually
5017         clearer and interacts better with quoting), and prefer the idiom:
5018           "if ! CMD; then ACTION ..."
5019         over the idiom:
5020           "if CMD; then :; else ACTION ..."
5021         which was required by legacy Bourne shells not supporting '!'.
5022
5023 2012-05-12  Bruno Haible  <bruno@clisp.org>
5024
5025         system-quote: Add more comments.
5026         * lib/system-quote.h: Add more comments about wilcards and limitations.
5027         Suggested by Eli Zaretskii <eliz@gnu.org>.
5028
5029         sh-quote, system-quote: Add comments about wildcards.
5030         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5031         * lib/system-quote.h: Likewise.
5032         Reported by Eli Zaretskii <eliz@gnu.org>.
5033
5034 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5035
5036         fsusage: check for GNU/Linux statvfs problem dynamically
5037         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5038         Define STAT_STATFS2_BSIZE too, since in this case the code now
5039         checks dynamically whether statvfs is reliable, falling back on
5040         Linux-style statfs otherwise.
5041         (statvfs_works): New function, for dynamically testing statvfs.
5042         (get_fs_usage) [STAT_STATVFS]: Use it.
5043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5044         statvfs on GNU/Linux hosts, since it's now done dynamically.
5045
5046 2012-05-10  Bruno Haible  <bruno@clisp.org>
5047
5048         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5049         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5050         '?' character.
5051         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5052         * tests/test-system-quote-main.c (check_all): Check also strings like
5053         "??????????".
5054         Reported by Eli Zaretskii <eliz@gnu.org>.
5055
5056 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5057
5058         _Noreturn: port config.h to gcc -Wundef
5059         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5060         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5061         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5062
5063 2012-05-10  Bruno Haible  <bruno@clisp.org>
5064
5065         system-quote: Refactor.
5066         * lib/system-quote.h (system_quote_copy): Fix comment.
5067         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5068         New functions, extracted from system_quote_copy.
5069         (system_quote_length, system_quote_copy): Use these functions.
5070         Reported by Paul Eggert.
5071
5072 2012-05-08  Bruno Haible  <bruno@clisp.org>
5073
5074         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5075         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5076
5077 2012-05-08  Bruno Haible  <bruno@clisp.org>
5078
5079         Tests for module 'system-quote'.
5080         * modules/system-quote-tests: New file.
5081         * tests/test-system-quote.sh: New file.
5082         * tests/test-system-quote-main.c: New file.
5083         * tests/test-system-quote-child.c: New file.
5084
5085         New module 'system-quote'.
5086         * lib/system-quote.h: New file.
5087         * lib/system-quote.c: New file.
5088         * modules/system-quote: New file.
5089
5090 2012-05-08  Bruno Haible  <bruno@clisp.org>
5091
5092         sh-quote: Make C++ safe and allow multiple inclusion.
5093         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5094         declarations in extern "C".
5095
5096 2012-05-08  Bruno Haible  <bruno@clisp.org>
5097
5098         sh-quote tests: Make tests stricter.
5099         * tests/test-sh-quote.c (check_one): Check the return value of
5100         shell_quote_copy.
5101         (main): Check a string with a CR character. Check a string that
5102         contains UCHAR_MAX.
5103
5104 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5105
5106         warnings.m4: provide a means to specify the program to compile.
5107         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5108         (gl_WARN_ADD): here.
5109         Use gl_AS_VAR_APPEND.
5110         Support an argument to specify the program to compile.
5111         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5112         AC_SUBST the WARN_CFLAGS when they are used.
5113         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5114         leave this to gl_WARN_ADD.
5115
5116 2012-05-08  Eric Blake  <eblake@redhat.com>
5117
5118         doc: recommendations on gettext version
5119         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5120         choice between versions.
5121         * DEPENDENCIES (gettext): Cover both approaches.
5122
5123 2012-05-08  Jim Meyering  <meyering@redhat.com>
5124
5125         init.sh: explain why EXEEXT support uses aliases rather than functions
5126         * tests/init.sh: Add a comment.
5127
5128         init.sh: don't let bash aliases interfere with tests
5129         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5130         is bash.  This avoids problems for those who alias standard commands to
5131         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5132         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5133
5134 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5135
5136         stdint: be more consistent with glibc, SunOS libc
5137         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5138         (gl_int_fast16_t, gl_uint_fast16_t)
5139         (gl_int_fast32_t, gl_uint_fast32_t)
5140         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5141         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5142         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5143         Be consistent with glibc by default, and with SunOS 5.10 and later
5144         if __sun is defined.  This lessens the likelihood of clashes if
5145         code compiled for older hosts is combined with code compiled for
5146         newer ones.  Problem reported by Niels Möller in
5147         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5148
5149 2012-05-07  Eric Blake  <eblake@redhat.com>
5150
5151         isatty: relax license to LGPLv2+
5152         * modules/isatty (License): Relax license.
5153
5154 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5155
5156         stat-size: comment fix
5157         * lib/stat-size.h: Remove obsolete comment about indenting.
5158
5159 2012-05-06  Bruno Haible  <bruno@clisp.org>
5160
5161         Tests for module 'sh-quote'.
5162         * modules/sh-quote-tests: New file.
5163         * tests/test-sh-quote.c: New file.
5164
5165 2012-05-06  Bruno Haible  <bruno@clisp.org>
5166
5167         sh-quote: Improve shell_quote_argv's signature.
5168         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5169         * lib/sh-quote.c (shell_quote_argv): Likewise.
5170
5171 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5172
5173         stdint: document issues with int_fast8_t etc.
5174         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5175         stdint.h substitutes may define these types differently.  See
5176         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5177
5178 2012-05-05  Bruno Haible  <bruno@clisp.org>
5179
5180         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5182         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5183         or 'guessing no (mishandles large arguments)'.
5184
5185 2012-05-05  Bruno Haible  <bruno@clisp.org>
5186
5187         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5188         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5189         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5190         set gl_cv_func_link_follows_symlink to "guessing no".
5191
5192 2012-05-05  Bruno Haible  <bruno@clisp.org>
5193
5194         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5195         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5196         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5197         "guessing no".
5198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5199
5200 2012-05-05  Bruno Haible  <bruno@clisp.org>
5201
5202         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5203         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5204         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5205         set gl_cv_struct_dirent_d_ino to "guessing yes".
5206
5207 2012-05-05  Bruno Haible  <bruno@clisp.org>
5208
5209         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5210         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5211         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5212         "guessing yes".
5213
5214 2012-05-05  Bruno Haible  <bruno@clisp.org>
5215
5216         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5217         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5218         compiling to a glibc system, set gl_cv_func_signbit and
5219         gl_cv_func_signbit_gcc to "guessing yes".
5220
5221 2012-05-05  Bruno Haible  <bruno@clisp.org>
5222
5223         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5224         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5225         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5226         to "guessing yes".
5227         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5228         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5229
5230 2012-05-05  Bruno Haible  <bruno@clisp.org>
5231
5232         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5233         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5234         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5235         gl_cv_func_realpath_works to "guessing yes".
5236
5237 2012-05-05  Bruno Haible  <bruno@clisp.org>
5238
5239         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5241         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5242
5243 2012-05-04  Bruno Haible  <bruno@clisp.org>
5244
5245         Tweak last commit.
5246         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5248
5249 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5250
5251         unistd_h: make it easier to avoid sys_types_h
5252         This is useful for Emacs, which has its own method of porting to
5253         Windows, and which therefore does not need the sys_types_h module.
5254         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5255         code moved here from gl_SYS_TYPES_H.
5256         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5257         using the code directly.
5258         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5259         gl_SYS_TYPES_H.
5260         * modules/sys_types (Files):
5261         * modules/unistd (Files): Add m4/off_t.m4.
5262
5263 2012-05-03  Bruno Haible  <bruno@clisp.org>
5264
5265         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5266         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5267         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5268         "guessing yes" or "guessing no".
5269         (gl_FUNC_LSTAT): Update.
5270         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5271         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5272         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5273
5274 2012-05-03  Bruno Haible  <bruno@clisp.org>
5275
5276         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5277         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5278         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5279         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5280         cross-compiling, choose the first alternative on glibc systems.
5281         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5282
5283 2012-05-03  Bruno Haible  <bruno@clisp.org>
5284
5285         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5286         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5287         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5288
5289 2012-05-03  Bruno Haible  <bruno@clisp.org>
5290
5291         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5292         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5293
5294 2012-05-03  Bruno Haible  <bruno@clisp.org>
5295
5296         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5297         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5298         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5299         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5300         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5301         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5302         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5303         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5304         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5305         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5306         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5307         gl_cv_func_chown_ctime_works to "guessing yes".
5308         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5309         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5310         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5311         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5312         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5314         compiling to glibc systems, set gl_cv_func_open_directory_works to
5315         "guessing yes".
5316         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5318         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5319         "guessing yes".
5320         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5321         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5322         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5323         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5324         "guessing yes".
5325         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5326         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5327         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5328         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5329         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5330         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5331         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5332         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5333         "guessing yes".
5334         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5335         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5336         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5337         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5338         "guessing yes".
5339         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5340         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5341         "guessing yes".
5342         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5343         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5344         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5345         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5346         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5347         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5348         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5349         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5350         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5351         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5352         "guessing yes".
5353         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5354         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5355         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5356         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5357         "guessing yes".
5358         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5359         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5360         "guessing yes".
5361         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5362         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5363         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5364         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5365         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5366         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5367         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5368         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5369         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5370         "guessing yes".
5371         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5372         compiling to glibc systems, set gl_cv_func_mknod_works to
5373         "guessing yes".
5374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5375         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5376         "guessing yes".
5377         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5378         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5379         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5380         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5381         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5382         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5383         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5384         compiling to glibc systems, set gl_cv_func_svid_putenv to
5385         "guessing yes".
5386         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5387         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5388         "guessing yes".
5389         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5390         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5391         "guessing yes".
5392         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5393         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5394         to "guessing yes".
5395         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5396         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5397         to "guessing yes".
5398         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5399         compiling to glibc systems, set gl_cv_func_rmdir_works to
5400         "guessing yes".
5401         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5402         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5403         gl_cv_func_unlink_parent_fails to "guessing yes".
5404         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5405         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5406         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5407         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5408         gl_cv_func_rename_dest_works to "guessing yes".
5409         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5410         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5412         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5413         "guessing yes".
5414         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5415         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5416         "guessing yes".
5417         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5418         compiling to glibc systems, set gl_cv_func_setenv_works to
5419         "guessing yes".
5420         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5421         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5422         "guessing yes".
5423         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5424         compiling to glibc systems, set gl_cv_func_sleep_works to
5425         "guessing yes".
5426         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5427         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5428         "guessing yes".
5429         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5430         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5431         "guessing yes".
5432         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5433         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5435         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5436         "guessing yes".
5437         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5438         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5439         "guessing yes".
5440         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5441         compiling to glibc systems, set gl_cv_func_usleep_works to
5442         "guessing yes".
5443         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5444         compiling to glibc systems, set gl_cv_func_futimesat_works to
5445         "guessing yes".
5446
5447 2012-05-03  Bruno Haible  <bruno@clisp.org>
5448
5449         Say "guessing yes" or "guessing no" when cross-compiling.
5450         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5451         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5452         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5453         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5454         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5455         am_cv_func_working_getline to "guessing yes" or "guessing no".
5456         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5457         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5458         (gl_FUNC_MEMMEM): When cross-compiling, set
5459         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5461         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5463         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5464         "guessing no".
5465         (gl_FUNC_STRCASESTR): When cross-compiling, set
5466         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5467         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5468         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5469         (gl_FUNC_STRSTR): When cross-compiling, set
5470         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5471         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5472         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5473         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5474         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5475
5476 2012-05-01  Bruno Haible  <bruno@clisp.org>
5477
5478         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5479         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5480         * build-aux/reloc-ldflags: Likewise.
5481         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5482
5483 2012-05-01  Bruno Haible  <bruno@clisp.org>
5484
5485         gnulib-tool: Remove transitional code.
5486         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5487         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5488
5489 2012-05-01  Bruno Haible  <bruno@clisp.org>
5490
5491         getcwd: Fix misindentation.
5492         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5493
5494 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5495
5496         exclude: process exclude and include directives in order
5497         This restores the pre-2009 behavior, and is part of a fix of a
5498         grep bug reported by Quentin Arce in
5499         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5500         * lib/exclude.c (struct exclude): Remove 'tail' member.
5501         (new_exclude_segment): Prepend the new segment instead of appending.
5502         Return void, since that's now more convenient.
5503         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5504         (file_name_matches): Renamed from excluded_file_name_p.
5505         (file_pattern_matches, file_name_matches):
5506         Return true if the pattern matches, not if it excludes.
5507         All callers changed.
5508         (excluded_file_name): Process the list in reverse order;
5509         since the list is now reversed this restores the pre-2009 behavior.
5510         (add_exclude): Adjust to new reversed-order list.  Use local var
5511         rather than macro, for clarity.
5512         * tests/test-exclude7.sh: Adjust to corrected behavior.
5513
5514         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5515         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5516         it's not possible here.  Handle the case of \ at end of pattern
5517         without dumping core.
5518         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5519
5520         _Noreturn: future-proof non-GNU and non-MSVC compilers
5521         * build-aux/snippet/_Noreturn.h (_Noreturn):
5522         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5523         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5524         C11 or later.  This is more likely to work with random future C
5525         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5526         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5527
5528         exclude: handle wildcards with FNM_EXTMATCH
5529         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5530         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5531         comment that "has wildcards" really means "has or may have
5532         wildcards".  Simplify by avoiding the need to call strcspn.
5533
5534 2012-04-29  Bruno Haible  <bruno@clisp.org>
5535
5536         gnulib-tool: Fix list of authors.
5537         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5538
5539 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5540
5541         bootstrap: support Automake-NG in $buildreq
5542         * bootstrap (check_versions): Handle automake and aclocal from
5543         Automake-NG specially.  They can be specified as respectively
5544         the "automake-ng" and "aclocal-ng" requirements.
5545
5546 2012-04-25  Eric Blake  <eblake@redhat.com>
5547
5548         bootstrap: only force latest Makefile.in.in for gettext module
5549         * build-aux/bootstrap (with_gettext): Only install latest
5550         Makefile.in.in for projects requesting bleeding edge gettext.
5551
5552 2012-04-22  Bruno Haible  <bruno@clisp.org>
5553
5554         doc: Mention reason for replacement on glibc/Linux systems.
5555         * doc/posix-functions/dprintf.texi: Mention the problem with special
5556         'long double' values.
5557         * doc/posix-functions/fprintf.texi: Likewise.
5558         * doc/posix-functions/printf.texi: Likewise.
5559         * doc/posix-functions/snprintf.texi: Likewise.
5560         * doc/posix-functions/sprintf.texi: Likewise.
5561         * doc/posix-functions/vdprintf.texi: Likewise.
5562         * doc/posix-functions/vfprintf.texi: Likewise.
5563         * doc/posix-functions/vprintf.texi: Likewise.
5564         * doc/posix-functions/vsnprintf.texi: Likewise.
5565         * doc/posix-functions/vsprintf.texi: Likewise.
5566         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5567         platforms with F_DUPFD_CLOEXEC problems.
5568         * doc/posix-functions/glob.texi: Mention which platforms are affected
5569         by the problem with symbolic links.
5570         * doc/posix-functions/linkat.texi: Mention the problem with
5571         AT_SYMLINK_FOLLOW on Linux.
5572
5573 2012-04-22  Bruno Haible  <bruno@clisp.org>
5574
5575         pwrite: Don't replace on all platforms.
5576         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5577
5578 2012-04-22  Bruno Haible  <bruno@clisp.org>
5579
5580         rint* tests: Avoid gcc warnings.
5581         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5582         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5583         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5584
5585 2012-04-21  Bruno Haible  <bruno@clisp.org>
5586
5587         users.txt: Update.
5588         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5589         switched from CVS to git, bzr, or svn.
5590
5591 2012-04-21  Bruno Haible  <bruno@clisp.org>
5592
5593         Large File Support for native Windows platforms.
5594
5595         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5596         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5597
5598         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5599         type.
5600         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5601         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5602         * doc/posix-headers/sys_types.texi: Mention the effect of the
5603         'largefile' module.
5604
5605         * lib/fcntl.in.h: Add comments about off_t.
5606         * modules/fcntl-h (Depends-on): Add sys_types.
5607
5608         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5609         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5610         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5611         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5612         * modules/unistd (Depends-on): Add sys_types.
5613         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5614
5615         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5616         instead of lseek.
5617         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5618         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5619         * modules/lseek (Depends-on): Add sys_types.
5620
5621         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5622         msvc-nothrow.h.
5623         (SetFileSize): New function.
5624         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5625         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5626         if Large File Support is requested.
5627         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5628         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5629
5630         * lib/stdio.in.h: Add comments about off_t.
5631         * modules/stdio (Depends-on): Add sys_types.
5632
5633         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5634         instead of ftello.
5635         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5636         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5637         (gl_PREREQ_FTELLO): New macro.
5638         * modules/ftello (Depends-on): Add sys_types.
5639         (configure.ac): Incoke gl_PREREQ_FTELLO.
5640
5641         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5642         instead of fseeko.
5643         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5644         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5645         (gl_PREREQ_FSEEKO): New macro.
5646         * modules/fseeko (Depends-on): Add sys_types.
5647         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5648
5649         * lib/sys_stat.in.h: Add comments about off_t.
5650         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5651         64-bit integer for st_size in 'struct stat'.
5652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5653         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5654         * modules/sys_stat (Depends-on): Add sys_types.
5655         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5656
5657         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5658         instead of stat or _stat.
5659
5660         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5661         'struct _stati64' instead of fstat and 'struct stat'.
5662         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5663         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5664
5665         Reported by Ray Satiro <raysatiro@yahoo.com>.
5666
5667 2012-04-19  Eric Blake  <eblake@redhat.com>
5668
5669         bootstrap: accommodate older libtool
5670         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5671         Reported by Daniel P. Berrange.
5672
5673 2012-04-19  Jim Meyering  <meyering@redhat.com>
5674
5675         announce-gen: avoid failure due to lack of Digest::SHA1
5676         Even with the preferred Digest::SHA available, this script
5677         would fail when the backup module, Digest::SHA1, was not installed.
5678         * build-aux/announce-gen: Quote the conditional use of "use".
5679         Reported by Reuben Thomas in:
5680         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5681
5682         bootstrap: don't let a user's CDPATH setting affect this script
5683         When CDPATH is set, cd will sometimes generate output.
5684         When "cd" is run in a subshell whose output matters, that
5685         surprising-to-some output can cause malfunction.
5686         Unsetting CDPATH turns off this shell "feature."
5687         * build-aux/bootstrap (CDPATH): Unset.
5688         Reported by Reuben Thomas in:
5689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5690         and inspired by his patch here:
5691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5692
5693 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5694         and Jim Meyering  <meyering@redhat.com>
5695
5696         maint.mk: catch "see @xref{}" and similar
5697         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5698         prohibit "See also @xref{", "Also see @pxref{", and similar.
5699
5700 2012-04-16  Jim Meyering  <meyering@redhat.com>
5701
5702         bootstrap: really use gnulib's po/Makefile.in.in
5703         * build-aux/bootstrap: Correct the source file name in previous change.
5704         Reported by Akim Demaille.
5705
5706         configmake: correct minor inconsistency in Makefile rule
5707         * modules/configmake (Makefile.am): All other rules like this one
5708         run the final "mv -f ..." in the same backslash-continued command
5709         as the one that does everything else.  This one put the mv -f ...
5710         command on a separate, non-backslash-continued line.
5711         Make it like the others.
5712
5713         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5714         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5715         the one from gettext.  Reported by Akim Demaille.
5716
5717 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5718
5719         Fix recursion of install-* into po directories.
5720         Bison's install-pdf bug reported by Hans Aberg at
5721         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5722         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5723         (install-info, install-pdf, install-ps): New targets.
5724
5725 2012-04-16  Jim Meyering  <meyering@redhat.com>
5726
5727         maint: avoid spurious "make sc_maint" failure
5728         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5729         exempt all *.class file names, for lib/javaversion.class.
5730
5731 2012-04-15  Bruno Haible  <bruno@clisp.org>
5732
5733         lseek: Make configure test independent of environment.
5734         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5735         Windows, we know that lseek() on pipes is broken; skip the runtime
5736         test.
5737
5738 2012-04-14  Bruno Haible  <bruno@clisp.org>
5739
5740         stat: Bypass buggy override in mingw64.
5741         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5742         * lib/stat.c (stat) [mingw64]: Define to _stat.
5743         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5744
5745 2012-04-14  Bruno Haible  <bruno@clisp.org>
5746
5747         pathmax: Fix compilation error on MSVC 9.
5748         * modules/pathmax (Depends-on): Add unistd.
5749
5750 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5751
5752         README: document pointer comparison assumption
5753         * README (Portability guidelines): Document assumption about
5754         pointer comparisons, in response to a recent bug-gnulib comment by
5755         Jeffrey Kegler.
5756
5757 2012-04-12  Bruno Haible  <bruno@clisp.org>
5758
5759         Tests for module 'getrusage'.
5760         * modules/getrusage-tests: New file.
5761         * tests/test-getrusage.c: New file.
5762
5763         New module 'getrusage'.
5764         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5765         warn-on-use.h.
5766         (getrusage): New declaration.
5767         * lib/getrusage.c: New file.
5768         * m4/getrusage.m4: New file.
5769         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5770         is declared.
5771         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5772         HAVE_GETRUSAGE.
5773         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5774         snippet/c++defs, snippet/warn-on-use.
5775         (Makefile.am): Update generation of sys/resource.h. Substitute
5776         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5777         * modules/getrusage: New file.
5778         * doc/posix-functions/getrusage.texi: Mention the new module.
5779
5780 2012-04-12  Bruno Haible  <bruno@clisp.org>
5781
5782         Tests for module 'sys_resource'.
5783         * modules/sys_resource-tests: New file.
5784         * tests/test-sys_resource.c: New file.
5785
5786         New module 'sys_resource'.
5787         * lib/sys_resource.in.h: New file.
5788         * m4/sys_resource_h.m4: New file.
5789         * modules/sys_resource: New file.
5790         * doc/posix-headers/sys_resource.texi: Mention the new module.
5791
5792 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5793
5794         ioctl: Fix compilation error on mingw.
5795         * lib/ioctl.c: Include <windows.h>.
5796         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5797
5798 2012-04-04  Jim Meyering  <meyering@redhat.com>
5799
5800         regex: correct #pragma guard expression
5801         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5802         not 4.3.  Correct its cpp guard expression.
5803
5804 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5805
5806         regex: remove unnecessary type punning
5807         Problem reported by Vladimir Serbinenko in
5808         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5809         * lib/regex.h (struct re_pattern_buffer): Change the type of
5810         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5811         Fix comment to match code.
5812         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5813         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5814         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5815         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5816         (set_regs):
5817         Omit no-longer-necessary casts.
5818
5819 2012-04-03  Bruno Haible  <bruno@clisp.org>
5820
5821         Tests for module 'ilogbl'.
5822         * modules/ilogbl-tests: New file.
5823         * tests/test-ilogbl.c: New file.
5824
5825         New module 'ilogbl'.
5826         * lib/math.in.h (ilogbl): New declaration.
5827         * lib/ilogbl.c: New file.
5828         * m4/ilogbl.m4: New file.
5829         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5831         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5832         Split sed invocation, to avoid the limit of 100 substitutions of
5833         HP-UX 'sed'.
5834         * modules/ilogbl: New file.
5835         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5836         * doc/posix-functions/ilogbl.texi: Mention the new module.
5837
5838 2012-04-03  Bruno Haible  <bruno@clisp.org>
5839
5840         Tests for module 'ilogbf'.
5841         * modules/ilogbf-tests: New file.
5842         * tests/test-ilogbf.c: New file.
5843
5844         New module 'ilogbf'.
5845         * lib/math.in.h (ilogbf): New declaration.
5846         * lib/ilogbf.c: New file.
5847         * m4/ilogbf.m4: New file.
5848         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5850         REPLACE_ILOGBF.
5851         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5852         REPLACE_ILOGBF.
5853         * modules/ilogbf: New file.
5854         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5855         * doc/posix-functions/ilogbf.texi: Mention the new module.
5856
5857 2012-04-03  Bruno Haible  <bruno@clisp.org>
5858
5859         Tests for module 'ilogb'.
5860         * modules/ilogb-tests: New file.
5861         * tests/test-ilogb.c: New file.
5862         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5863         tests/test-logb-ieee.h.
5864
5865         New module 'ilogb'.
5866         * lib/math.in.h (ilogb): New declaration.
5867         * lib/ilogb.c: New file.
5868         * m4/ilogb.m4: New file.
5869         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5871         REPLACE_ILOGB.
5872         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5873         REPLACE_ILOGB.
5874         * modules/ilogb: New file.
5875         * tests/test-math-c++.cc: Check the declaration of ilogb.
5876         * doc/posix-functions/ilogb.texi: Mention the new module.
5877
5878 2012-04-03  Bruno Haible  <bruno@clisp.org>
5879
5880         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5881         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5882         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5883         (main): Check their values.
5884         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5885         problem.
5886
5887 2012-04-03  Bruno Haible  <bruno@clisp.org>
5888
5889         Tests for module 'logbl-ieee'.
5890         * modules/logbl-ieee-tests: New file.
5891         * tests/test-logbl-ieee.c: New file.
5892
5893         New module 'logbl-ieee'.
5894         * modules/logbl-ieee: New file.
5895
5896         Tests for module 'logb-ieee'.
5897         * modules/logb-ieee-tests: New file.
5898         * tests/test-logb-ieee.c: New file.
5899
5900         New module 'logb-ieee'.
5901         * modules/logb-ieee: New file.
5902
5903         Tests for module 'logbf-ieee'.
5904         * modules/logbf-ieee-tests: New file.
5905         * tests/test-logbf-ieee.c: New file.
5906         * tests/test-logb-ieee.h: New file.
5907
5908         New module 'logbf-ieee'.
5909         * modules/logbf-ieee: New file.
5910
5911 2012-04-03  Bruno Haible  <bruno@clisp.org>
5912
5913         Tests for module 'logbl'.
5914         * modules/logbl-tests: New file.
5915         * tests/test-logbl.c: New file.
5916
5917         New module 'logbl'.
5918         * lib/math.in.h (logbl): New declaration.
5919         * lib/logbl.c: New file.
5920         * m4/logbl.m4: New file.
5921         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5923         REPLACE_LOGBL.
5924         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5925         REPLACE_LOGBL.
5926         * modules/logbl: New file.
5927         * tests/test-math-c++.cc: Check the declaration of logbl.
5928         * doc/posix-functions/logbl.texi: Mention the new module.
5929
5930 2012-04-02  Bruno Haible  <bruno@clisp.org>
5931
5932         Tests for module 'logbf'.
5933         * modules/logbf-tests: New file.
5934         * tests/test-logbf.c: New file.
5935
5936         New module 'logbf'.
5937         * lib/math.in.h (logbf): New declaration.
5938         * lib/logbf.c: New file.
5939         * m4/logbf.m4: New file.
5940         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5942         REPLACE_LOGBF.
5943         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5944         REPLACE_LOGBF.
5945         * modules/logbf: New file.
5946         * tests/test-math-c++.cc: Check the declaration of logbf.
5947         * doc/posix-functions/logbf.texi: Mention the new module.
5948
5949 2012-04-02  Bruno Haible  <bruno@clisp.org>
5950
5951         logb tests: More tests.
5952         * tests/test-logb.h: New file, based on tests/test-logb.c and
5953         tests/test-frexp.h.
5954         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5955         (main): Just invoke test_function.
5956         * modules/logb-tests (Files): Add tests/test-logb.h,
5957         tests/minus-zero.h, tests/randomd.c.
5958         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5959
5960         logb: Provide replacement and workarounds.
5961         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5962         is 1.
5963         * lib/logb.c: New file.
5964         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5965         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5967         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5968         * modules/logb (Files): Add lib/logb.c.
5969         (Depends-on): Add isfinite, frexp, isnand.
5970         (configure.ac): Compile the replacement code logb.c if needed.
5971         * tests/test-math-c++.cc: Check the declaration of logb.
5972         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5973         with subnormal numbers.
5974
5975 2012-04-02  Bruno Haible  <bruno@clisp.org>
5976
5977         log10* tests: Speed up.
5978         * tests/test-log10.h (test_function): Reduce amount of random numbers
5979         to test.
5980
5981 2012-04-01  Bruno Haible  <bruno@clisp.org>
5982
5983         logf-ieee: Fix test whether logf works.
5984         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5985
5986 2012-04-01  Bruno Haible  <bruno@clisp.org>
5987
5988         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5989         * lib/log10l.c: Include <float.h>
5990         (log10l): On IRIX, normalize the +Infinity value.
5991         * modules/log10l (Depends-on): Add 'float'.
5992         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5993         +Infinity.
5994
5995         log10f-ieee: Work around test failure on NetBSD 5.1.
5996         * m4/log10f-ieee.m4: New file.
5997         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5998         test whether log10f works with a negative argument. Replace it if not.
5999         * lib/log10f.c (log10f): For negative arguments, return NaN.
6000         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6001         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6002         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6003
6004         log10f-ieee: Work around test failure on Solaris 9.
6005         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6006         (configure.ac): Require gl_FUNC_LOG10F.
6007
6008         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6009         * m4/log10-ieee.m4: New file.
6010         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6011         whether log10 works with a negative argument. Replace it if not.
6012         * lib/log10.c (log10): For negative arguments, return NaN.
6013         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6014         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6015         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6016
6017         Tests for module 'log10l-ieee'.
6018         * modules/log10l-ieee-tests: New file.
6019         * tests/test-log10l-ieee.c: New file.
6020
6021         New module 'log10l-ieee'.
6022         * modules/log10l-ieee: New file.
6023
6024         Tests for module 'log10-ieee'.
6025         * modules/log10-ieee-tests: New file.
6026         * tests/test-log10-ieee.c: New file.
6027
6028         New module 'log10-ieee'.
6029         * modules/log10-ieee: New file.
6030
6031         Tests for module 'log10f-ieee'.
6032         * modules/log10f-ieee-tests: New file.
6033         * tests/test-log10f-ieee.c: New file.
6034         * tests/test-log10-ieee.h: New file.
6035
6036         New module 'log10f-ieee'.
6037         * modules/log10f-ieee: New file.
6038
6039 2012-04-01  Bruno Haible  <bruno@clisp.org>
6040
6041         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6042         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6043         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6044         workaround.
6045         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6046         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6048         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6049         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6050         (Depends-on): Update conditions.
6051         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6052         IRIX 6.5, OSF/1 5.1 problems.
6053
6054 2012-04-01  Bruno Haible  <bruno@clisp.org>
6055
6056         log10f: Work around OSF/1 5.1 bug.
6057         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6058         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6059         workaround.
6060         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6061         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6063         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6064         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6065         (Depends-on): Update conditions.
6066         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6067
6068 2012-04-01  Bruno Haible  <bruno@clisp.org>
6069
6070         log10: Work around OSF/1 5.1 bug.
6071         * lib/math.in.h (log10): New declaration.
6072         * lib/log10.c: New file.
6073         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6074         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6075         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6077         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6078         * modules/log10 (Files): Add lib/log10.c.
6079         (Depends-on): Add math.
6080         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6081         * tests/test-math-c++.cc: Check the declaration of log10.
6082         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6083
6084 2012-03-31  Bruno Haible  <bruno@clisp.org>
6085
6086         log10l tests: More tests.
6087         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6088         tests/minus-zero.h, tests/randoml.c.
6089         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6090         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6091         (main): Invoke test_function.
6092
6093         log10f tests: More tests.
6094         * modules/log10f-tests (Files): Add tests/test-log10.h,
6095         tests/minus-zero.h, tests/randomf.c.
6096         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6097         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6098         (main): Invoke test_function.
6099
6100         log10 tests: More tests.
6101         * tests/test-log10.h: New file.
6102         * modules/log10-tests (Files): Add tests/test-log10.h,
6103         tests/minus-zero.h, tests/randomd.c.
6104         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6105         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6106         (main): Invoke test_function.
6107
6108 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6109
6110         fflush: Fix syntax error.
6111         * lib/fflush.c: Include unused-parameter.h, needed for
6112         _GL_UNUSED_PARAMETER.
6113         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6114
6115 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6116
6117         regex: pacify GCC when compiling GRUB
6118         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6119         a diagnostic.  Reported by Vladimir Serbinenko in
6120         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6121
6122 2012-03-29  Eric Blake  <eblake@redhat.com>
6123
6124         stdio: don't assume gets any more
6125         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6126         support.
6127         * modules/stdio (Makefile.am): Likewise.
6128         * lib/stdio-read.c (gets): Likewise.
6129         * tests/test-stdio-c++.cc: Likewise.
6130         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6131         * lib/stdio.in.h (gets): Make warning occur in more places.
6132         * doc/posix-functions/gets.texi (gets): Update documentation.
6133         Reported by Christer Solskogen.
6134
6135         maint.mk: fix syntax checks without exclusions
6136         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6137         Reported by Daniel P. Berrange.
6138
6139         strerror_r: avoid compiler warning
6140         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6141         level.
6142
6143         fflush: avoid compiler warning
6144         * lib/fflush.c (update_fpos_cache): Mark variables that are
6145         potentially unused.
6146
6147 2012-03-25  Bruno Haible  <bruno@clisp.org>
6148
6149         Tests for module 'localeconv'.
6150         * modules/localeconv-tests: New file.
6151         * tests/test-localeconv.c: New file.
6152
6153         New module 'localeconv'.
6154         * lib/locale.in.h (localeconv): New declaration.
6155         * lib/localeconv.c: New file.
6156         * m4/localeconv.m4: New file.
6157         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6158         REPLACE_LOCALECONV.
6159         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6160         REPLACE_LOCALECONV.
6161         * modules/localeconv: New file.
6162         * modules/nl_langinfo (Depends-on): Add localeconv.
6163         * modules/human (Depends-on): Likewise.
6164         * doc/posix-functions/localeconv.texi: Mention the new module.
6165
6166 2012-03-25  Bruno Haible  <bruno@clisp.org>
6167
6168         locale: Provide a complete 'struct lconv'.
6169         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6170         'struct lconv' does not contain int_p_cs_precedes.
6171         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6172         * doc/posix-headers/locale.texi: Update.
6173
6174         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6175         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6176         * doc/posix-headers/locale.texi: Update.
6177
6178         locale: Provide a working 'struct lconv'.
6179         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6180         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6181         'struct lconv' does not even contain decimal_point.
6182         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6183         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6184         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6185         * doc/posix-headers/locale.texi: Mention the problems with
6186         'struct lconv'.
6187         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6188
6189 2012-03-24  Bruno Haible  <bruno@clisp.org>
6190
6191         Enable common subexpression optimization in GCC.
6192         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6193         macros.
6194         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6195         GCC attribute 'const'.
6196         (uc_locale_language): Declare with GCC attribute 'pure'.
6197         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6198         with GCC attribute 'const'.
6199         * lib/unictype.in.h (uc_is_general_category_withtable,
6200         uc_combining_class, uc_combining_class_name,
6201         uc_combining_class_long_name, uc_bidi_class_name,
6202         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6203         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6204         uc_decimal_value, uc_digit_value, uc_numeric_value,
6205         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6206         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6207         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6208         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6209         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6210         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6211         Declare with GCC attribute 'const'.
6212         (uc_general_category_name, uc_general_category_long_name,
6213         uc_general_category_byname, uc_general_category,
6214         uc_is_general_category, uc_combining_class_byname,
6215         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6216         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6217         Declare with GCC attribute 'pure'.
6218         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6219         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6220         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6221         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6222         with GCC attribute 'pure'.
6223         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6224         'const'.
6225         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6226         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6227         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6228         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6229         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6230         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6231         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6232         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6233         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6234         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6235         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6236         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6237         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6238         GCC attribute 'pure'.
6239         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6240         'const'.
6241         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6242         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6243         u32_strwidth): Declare with GCC attribute 'pure'.
6244
6245         Enable common subexpression optimization in GCC.
6246         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6247         (alphasort): Declare with GCC attribute 'pure'.
6248         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6249         (atoll): Declare with GCC attribute 'pure'.
6250         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6251         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6252         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6253         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6254         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6255         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6256         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6257
6258 2012-03-24  Bruno Haible  <bruno@clisp.org>
6259
6260         gnulib-tool: Avoid unintended error output from 'cmp'.
6261         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6262         "cmp -s", not "cmp > /dev/null".
6263
6264 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6265
6266         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6267
6268         It's not just Automake versions < 1.9b that creates an empty
6269         pkgdatadir at installation time if pkgdata_DATA is specified
6270         to empty; modern automake versions do this as well, at least
6271         until automake 1.11.4 (not yet released at the moment of writing,
6272         but soon to appear).  That behaviour was generally considered a
6273         feature rather than a bug, at least until this discussion:
6274         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6275
6276         See also automake bugs #10997 and #11030.
6277
6278         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6279         reference to relevant automake bug numbers.
6280         (func_emit_tests_Makefile_am): Likewise.
6281
6282 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6283
6284         announce-gen: use Digest::SHA when possible
6285         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6286         back to Digest::SHA1 if necessary.
6287
6288 2012-03-20  Jim Meyering  <meyering@redhat.com>
6289
6290         tests: avoid gcc warnings about argv vs. const initializers
6291         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6292         warnings about discarding 'const' qualifier from pointer target type.
6293         * tests/test-posix_spawn2.c (main): Likewise.
6294
6295 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6296
6297         README-release: simplify slightly
6298         * top/README-release: Run "git checkout master" only once.
6299
6300 2012-03-15  Mark Wielaard  <mark@klomp.org>
6301
6302         git-merge-changelog: add specific example on how to use with hg.
6303         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6304
6305 2012-03-18  Mark Wielaard  <mark@klomp.org>
6306
6307         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6308
6309 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6310
6311         git-version-gen: don't let "prefix" envvar cause trouble
6312         * build-aux/git-version-gen (prefix): Initialize properly,
6313         so as not to use a value specified via the environment.
6314         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6315
6316 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6317
6318         regex: diagnose too-large repeat counts in EREs
6319         Previously, the code did not diagnose the too-large repeat count
6320         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6321         as if it were 'b\{1000000000}', which is unexpected.
6322         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6323         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6324         is a reasonable one for this problem.  Another option would be to
6325         create a new REG_OVERFLOW error for repeat counts that are too large.
6326         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6327         count is too large, so that the caller can distinguish the two cases.
6328         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6329         "Too large" return code, and that repeat counts are one example of this.
6330
6331 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6332
6333         doc: some glibc x32 integer width issues
6334         * doc/posix-headers/sys_types.texi (sys/types.h):
6335         * doc/posix-headers/time.texi (time.h):
6336         Mention that glibc x32 does not conform to POSIX in a couple of
6337         areas related to integer widths.
6338
6339 2012-03-15  Bruno Haible  <bruno@clisp.org>
6340
6341         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6342         * lib/fma.c (VOLATILE): New macro.
6343         (FUNC): Use it to work around a GCC compiler bug.
6344
6345 2012-03-13  Bruno Haible  <bruno@clisp.org>
6346
6347         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6348         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6349         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6350         REPLACE_HYPOTL to 1.
6351         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6352
6353 2012-03-13  Bruno Haible  <bruno@clisp.org>
6354
6355         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6356         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6357         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6358         REPLACE_REMAINDERL to 1.
6359         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6360         bug.
6361
6362 2012-03-13  Bruno Haible  <bruno@clisp.org>
6363
6364         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6365         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6366         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6367         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6368         too big rounding errors.
6369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6370         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6371         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6372         (Depends-on): Update conditions.
6373         * tests/test-sqrtl.c (my_ldexpl): New function.
6374         (main): Add test of a particular value.
6375         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6376
6377 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6378
6379         doc: Update timer_* platform portability notes.
6380         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6381         that always return ENOSYS.
6382         * doc/posix-functions/timer_delete.texi: Likewise.
6383         * doc/posix-functions/timer_gettime.texi: Likewise.
6384         * doc/posix-functions/timer_settime.texi: Likewise.
6385
6386 2012-03-13  Bruno Haible  <bruno@clisp.org>
6387
6388         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6389         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6390         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6391         REPLACE_CBRTL to 1.
6392         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6393
6394 2012-03-13  Bruno Haible  <bruno@clisp.org>
6395
6396         remainderl: Avoid compilation error on AIX >= 5.2.
6397         * lib/math.in.h (remainderl): Undefine macro from the system header.
6398
6399 2012-03-13  Bruno Haible  <bruno@clisp.org>
6400
6401         Avoid compilation errors with MSVC option -fp:strict.
6402         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6403         * lib/cbrtf.c: Likewise.
6404         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6405
6406 2012-03-12  Bruno Haible  <bruno@clisp.org>
6407
6408         uninorm: Don't crash in out-of-memory conditions.
6409         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6410         gracefully.
6411         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6412         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6413
6414 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6415
6416         quote: fix syntax-check
6417         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6418         also exports quote_quoting_options.
6419
6420 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6421
6422         Collapse list of copyright years to ranges.  See
6423         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6424         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6425         build-aux/csharpexec.sh.in, build-aux/gnupload,
6426         build-aux/install-reloc, build-aux/javacomp.sh.in,
6427         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6428         build-aux/move-if-change, build-aux/reloc-ldflags,
6429         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6430
6431 2012-03-11  Bruno Haible  <bruno@clisp.org>
6432
6433         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6434         * m4/log2f-ieee.m4: New file.
6435         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6436         whether log2f works with a minus zero argument. Replace it if not.
6437         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6438         (Depends-on): Add log2-ieee.
6439         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6440         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6441
6442         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6443         * m4/log2-ieee.m4: New file.
6444         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6445         whether log2 works with a minus zero argument. Replace it if not.
6446         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6447         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6448         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6449
6450         Tests for module 'log2l-ieee'.
6451         * modules/log2l-ieee-tests: New file.
6452         * tests/test-log2l-ieee.c: New file.
6453
6454         New module 'log2l-ieee'.
6455         * modules/log2l-ieee: New file.
6456
6457         Tests for module 'log2-ieee'.
6458         * modules/log2-ieee-tests: New file.
6459         * tests/test-log2-ieee.c: New file.
6460
6461         New module 'log2-ieee'.
6462         * modules/log2-ieee: New file.
6463
6464         Tests for module 'log2f-ieee'.
6465         * modules/log2f-ieee-tests: New file.
6466         * tests/test-log2f-ieee.c: New file.
6467         * tests/test-log2-ieee.h: New file.
6468
6469         New module 'log2f-ieee'.
6470         * modules/log2f-ieee: New file.
6471
6472 2012-03-11  Bruno Haible  <bruno@clisp.org>
6473
6474         Tests for module 'log2l'.
6475         * modules/log2l-tests: New file.
6476         * tests/test-log2l.c: New file.
6477
6478         New module 'log2l'.
6479         * lib/math.in.h (log2l): New declaration.
6480         * lib/log2l.c: New file.
6481         * m4/log2l.m4: New file.
6482         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6484         REPLACE_LOG2L.
6485         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6486         REPLACE_LOG2L.
6487         * modules/log2l: New file.
6488         * tests/test-math-c++.cc: Check the declaration of log2l.
6489         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6490         and OSF/1 problems.
6491
6492 2012-03-11  Bruno Haible  <bruno@clisp.org>
6493
6494         Tests for module 'log2f'.
6495         * modules/log2f-tests: New file.
6496         * tests/test-log2f.c: New file.
6497
6498         New module 'log2f'.
6499         * lib/math.in.h (log2f): New declaration.
6500         * lib/log2f.c: New file.
6501         * m4/log2f.m4: New file.
6502         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6504         REPLACE_LOG2F.
6505         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6506         REPLACE_LOG2F.
6507         * modules/log2f: New file.
6508         * tests/test-math-c++.cc: Check the declaration of log2f.
6509         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6510         and OSF/1 and Cygwin problems.
6511
6512 2012-03-11  Bruno Haible  <bruno@clisp.org>
6513
6514         Tests for module 'log2'.
6515         * modules/log2-tests: New file.
6516         * tests/test-log2.c: New file.
6517         * tests/test-log2.h: New file.
6518
6519         New module 'log2'.
6520         * lib/math.in.h (log2): New declaration.
6521         * lib/log2.c: New file.
6522         * m4/log2.m4: New file.
6523         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6525         REPLACE_LOG2.
6526         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6527         REPLACE_LOG2.
6528         * modules/log2: New file.
6529         * tests/test-math-c++.cc: Check the declaration of log2.
6530         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6531         and OSF/1 and Cygwin problems.
6532
6533 2012-03-11  Bruno Haible  <bruno@clisp.org>
6534
6535         exp2* tests: More tests.
6536         * tests/test-exp2.h (test_function): Test all integral arguments that
6537         don't need to overflow or denormalized numbers.
6538         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6539         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6540         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6541
6542 2012-03-10  Bruno Haible  <bruno@clisp.org>
6543
6544         log1pl-ieee: Work around test failure on AIX 7.1.
6545         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6546
6547         log1pl-ieee: Work around test failure on IRIX 6.5.
6548         * m4/log1pl-ieee.m4: New file.
6549         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6550         test whether log1pl works with a minus zero argument. Replace it if
6551         not.
6552         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6554         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6555         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6556         (Depends-on): Update conditions.
6557         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6558         m4/signbit.m4.
6559         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6560         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6561
6562         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6563         * m4/log1pf-ieee.m4: New file.
6564         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6565         test whether log1pf works with a minus zero argument. Replace it if
6566         not.
6567         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6568         m4/signbit.m4.
6569         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6570         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6571
6572         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6573         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6574         (configure.ac): Require gl_FUNC_LOG1PF.
6575
6576         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6577         * m4/log1p-ieee.m4: New file.
6578         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6579         whether log1p works with a minus zero argument. Replace it if not.
6580         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6582         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6583         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6584         (Depends-on): Update conditions.
6585         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6586         m4/signbit.m4.
6587         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6588         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6589
6590         Tests for module 'log1pl-ieee'.
6591         * modules/log1pl-ieee-tests: New file.
6592         * tests/test-log1pl-ieee.c: New file.
6593
6594         New module 'log1pl-ieee'.
6595         * modules/log1pl-ieee: New file.
6596
6597         Tests for module 'log1p-ieee'.
6598         * modules/log1p-ieee-tests: New file.
6599         * tests/test-log1p-ieee.c: New file.
6600
6601         New module 'log1p-ieee'.
6602         * modules/log1p-ieee: New file.
6603
6604         Tests for module 'log1pf-ieee'.
6605         * modules/log1pf-ieee-tests: New file.
6606         * tests/test-log1pf-ieee.c: New file.
6607         * tests/test-log1p-ieee.h: New file.
6608
6609         New module 'log1pf-ieee'.
6610         * modules/log1pf-ieee: New file.
6611
6612 2012-03-10  Bruno Haible  <bruno@clisp.org>
6613
6614         Tests for module 'log1pl'.
6615         * modules/log1pl-tests: New file.
6616         * tests/test-log1pl.c: New file.
6617
6618         New module 'log1pl'.
6619         * lib/math.in.h (log1pl): New declaration.
6620         * lib/log1pl.c: New file.
6621         * m4/log1pl.m4: New file.
6622         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6624         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6625         * modules/log1pl: New file.
6626         * tests/test-math-c++.cc: Check the declaration of log1pl.
6627         * doc/posix-functions/log1pl.texi: Mention the new module.
6628
6629 2012-03-10  Bruno Haible  <bruno@clisp.org>
6630
6631         Tests for module 'log1pf'.
6632         * modules/log1pf-tests: New file.
6633         * tests/test-log1pf.c: New file.
6634
6635         New module 'log1pf'.
6636         * lib/math.in.h (log1pf): New declaration.
6637         * lib/log1pf.c: New file.
6638         * m4/log1pf.m4: New file.
6639         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6641         REPLACE_LOG1PF.
6642         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6643         REPLACE_LOG1PF.
6644         * modules/log1pf: New file.
6645         * tests/test-math-c++.cc: Check the declaration of log1pf.
6646         * doc/posix-functions/log1pf.texi: Mention the new module.
6647
6648 2012-03-10  Bruno Haible  <bruno@clisp.org>
6649
6650         log1p tests: More tests.
6651         * tests/test-log1p.h: New file.
6652         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6653         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6654         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6655         (main): Invoke test_function.
6656
6657         log1p: Provide replacement for Minix and MSVC.
6658         * lib/math.in.h (log1p): New declaration.
6659         * lib/log1p.c: New file.
6660         * m4/log1p.m4: New file.
6661         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6663         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6664         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6665         (Depends-on): Add math, isnand, log, round.
6666         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6667         HAVE_LOG1P is 0.
6668         * tests/test-math-c++.cc: Check the declaration of log1p.
6669         * doc/posix-functions/log1p.texi: Mention the replacement.
6670
6671 2012-03-10  Bruno Haible  <bruno@clisp.org>
6672
6673         math tests: Small simplification.
6674         * tests/test-exp.h (test_function): Use the same err_bound for
6675         'double' on platforms with sizeof (long double) == sizeof (double)
6676         than on platforms with sizeof (long double) > sizeof (double).
6677         * tests/test-exp2.h (test_function): Likewise.
6678         * tests/test-expm1.h (test_function): Likewise.
6679         * tests/test-log.h (test_function): Likewise.
6680
6681 2012-03-10  Bruno Haible  <bruno@clisp.org>
6682
6683         Fix some comments.
6684         * lib/expl.c: Fix an ambiguous comment.
6685         * lib/expm1.c: Likewise.
6686         * lib/expm1l.c: Likewise.
6687         * lib/exp2.c: Likewise.
6688         * lib/exp2l.c: Likewise.
6689
6690 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6691
6692         regex: allow inclusion of <regex.h> before <limits.h>
6693         Without this patch, portable programs had to include <limits.h> before
6694         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6695         I ran into this problem with a test version of GNU grep on Solaris 8.
6696         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6697         This is done conditionally so that this change can be merged
6698         back to glibc.
6699         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6700         using the included regex.
6701
6702         fts: depend on fdopendir
6703         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6704         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6705         problem was introduced when fdopendir was split out.
6706
6707 2012-03-10  Bruno Haible  <bruno@clisp.org>
6708
6709         Remove unused variables.
6710         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6711         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6712
6713 2012-03-10  Bruno Haible  <bruno@clisp.org>
6714
6715         isnanf-nolibm: Fix last commit.
6716         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6717
6718         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6719         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6720
6721 2012-03-10  Bruno Haible  <bruno@clisp.org>
6722
6723         logf-ieee: Work around test failure on NetBSD 5.1.
6724         * m4/logf-ieee.m4: New file.
6725         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6726         whether logf works with a negative argument. Replace it if not.
6727         * lib/logf.c (logf): For negative arguments, return NaN.
6728         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6729         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6730         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6731
6732         logf-ieee: Work around test failure on Solaris 9.
6733         * modules/logf-ieee (Depends-on): Add log-ieee.
6734         (configure.ac): Require gl_FUNC_LOGF.
6735
6736         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6737         * m4/log-ieee.m4: New file.
6738         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6739         log works with a negative argument. Replace it if not.
6740         * lib/log.c (log): For negative arguments, return NaN.
6741         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6742         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6743         * doc/posix-functions/log.texi: Mention the log-ieee module.
6744
6745         Tests for module 'logl-ieee'.
6746         * modules/logl-ieee-tests: New file.
6747         * tests/test-logl-ieee.c: New file.
6748
6749         New module 'logl-ieee'.
6750         * modules/logl-ieee: New file.
6751
6752         Tests for module 'log-ieee'.
6753         * modules/log-ieee-tests: New file.
6754         * tests/test-log-ieee.c: New file.
6755
6756         New module 'log-ieee'.
6757         * modules/log-ieee: New file.
6758
6759         Tests for module 'logf-ieee'.
6760         * modules/logf-ieee-tests: New file.
6761         * tests/test-logf-ieee.c: New file.
6762         * tests/test-log-ieee.h: New file.
6763
6764         New module 'logf-ieee'.
6765         * modules/logf-ieee: New file.
6766
6767 2012-03-10  Bruno Haible  <bruno@clisp.org>
6768
6769         log: Fix bug introduced on 2012-03-09.
6770         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6771
6772 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6773
6774         timer-time: link explicitly with pthreads on glibc
6775         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6776         to support static linking, when newer glibc is
6777         detected, as that contains pthread emulation of
6778         POSIX timer functions where required.
6779         * modules/timer-time: Depend on threadlib to
6780         pull in the appropriate library to link.
6781
6782 2012-03-10  Bruno Haible  <bruno@clisp.org>
6783
6784         log* tests: More tests.
6785         * tests/test-log.h: New file.
6786         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6787         (main): Invoke test_function.
6788         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6789         (main): Invoke test_function.
6790         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6791         (main): Invoke test_function.
6792         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6793         tests/randomd.c.
6794         (Makefile.am): Add randomd.c to test_log_SOURCES.
6795         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6796         tests/randomf.c.
6797         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6798         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6799         tests/randoml.c.
6800         (Depends-on): Add 'float'.
6801         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6802
6803 2012-03-09  Bruno Haible  <bruno@clisp.org>
6804
6805         logl: Work around OSF/1 5.1 bug.
6806         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6807         * lib/logl.c (logl): If logl exists, use it and provide just the
6808         workaround.
6809         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6810         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6812         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6813         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6814         (Depends-on): Update conditions.
6815         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6816
6817 2012-03-09  Bruno Haible  <bruno@clisp.org>
6818
6819         logf: Work around OSF/1 5.1 bug.
6820         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6821         * lib/logf.c (logf): If logf exists, use it and provide just the
6822         workaround.
6823         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6824         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6826         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6827         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6828         (Depends-on): Update conditions.
6829         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6830
6831 2012-03-09  Bruno Haible  <bruno@clisp.org>
6832
6833         log: Work around OSF/1 5.1 bug.
6834         * lib/math.in.h (log): New declaration.
6835         * lib/log.c: New file.
6836         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6837         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6838         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6840         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6841         * modules/log (Files): Add lib/log.c.
6842         (Depends-on): Add math.
6843         (configure.ac): If REPLACE_LOG is 1, compile an override.
6844         * tests/test-math-c++.cc: Check the declaration of log.
6845         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6846
6847 2012-03-09  Jim Meyering  <meyering@redhat.com>
6848
6849         readtokens.c: adjust wording in a comment
6850         * lib/readtokens.c: Insert omitted "that" in a comment.
6851
6852 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6853
6854         modechange: add notations +40, 00440, etc.
6855         * lib/modechange.c (mode_compile): Support new notations
6856         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6857
6858 2012-03-08  Bruno Haible  <bruno@clisp.org>
6859
6860         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6861         * m4/exp2l-ieee.m4: New file.
6862         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6863         test whether exp2l works with a NaN argument and with a negative
6864         infinity argument. Replace it if not.
6865         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6867         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6868         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6869         (Depends-on): Update conditions.
6870         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6871         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6872         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6873
6874         Tests for module 'exp2l-ieee'.
6875         * modules/exp2l-ieee-tests: New file.
6876         * tests/test-exp2l-ieee.c: New file.
6877
6878         New module 'exp2l-ieee'.
6879         * modules/exp2l-ieee: New file.
6880
6881         Tests for module 'exp2-ieee'.
6882         * modules/exp2-ieee-tests: New file.
6883         * tests/test-exp2-ieee.c: New file.
6884
6885         New module 'exp2-ieee'.
6886         * modules/exp2-ieee: New file.
6887
6888         Tests for module 'exp2f-ieee'.
6889         * modules/exp2f-ieee-tests: New file.
6890         * tests/test-exp2f-ieee.c: New file.
6891         * tests/test-exp2-ieee.h: New file.
6892
6893         New module 'exp2f-ieee'.
6894         * modules/exp2f-ieee: New file.
6895
6896 2012-03-08  Bruno Haible  <bruno@clisp.org>
6897
6898         Tests for module 'exp2l'.
6899         * modules/exp2l-tests: New file.
6900         * tests/test-exp2l.c: New file.
6901
6902         New module 'exp2l'.
6903         * lib/math.in.h (exp2l): New declaration.
6904         * lib/exp2l.c: New file.
6905         * lib/expl-table.c: New file, extracted from lib/expl.c.
6906         * lib/expl.c (gl_expl_table): New declaration.
6907         (expl): Remove expl_table. Update reference.
6908         * m4/exp2l.m4: New file.
6909         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6911         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6912         * modules/exp2l: New file.
6913         * modules/expl (Files): Add lib/expl-table.c.
6914         (configure.ac): Compile also expl-table.c.
6915         * tests/test-math-c++.cc: Check the declaration of exp2l.
6916         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6917         problem.
6918
6919 2012-03-08  Bruno Haible  <bruno@clisp.org>
6920
6921         Tests for module 'exp2f'.
6922         * modules/exp2f-tests: New file.
6923         * tests/test-exp2f.c: New file.
6924
6925         New module 'exp2f'.
6926         * lib/math.in.h (exp2f): New declaration.
6927         * lib/exp2f.c: New file.
6928         * m4/exp2f.m4: New file.
6929         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6931         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6932         * modules/exp2f: New file.
6933         * tests/test-math-c++.cc: Check the declaration of exp2f.
6934         * doc/posix-functions/exp2f.texi: Mention the new module and the
6935         IRIX problem.
6936
6937 2012-03-08  Bruno Haible  <bruno@clisp.org>
6938
6939         Tests for module 'exp2'.
6940         * modules/exp2-tests: New file.
6941         * tests/test-exp2.c: New file.
6942         * tests/test-exp2.h: New file.
6943
6944         New module 'exp2'.
6945         * lib/math.in.h (exp2): New declaration.
6946         * lib/exp2.c: New file.
6947         * m4/exp2.m4: New file.
6948         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6950         REPLACE_EXP2.
6951         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6952         REPLACE_EXP2.
6953         * modules/exp2: New file.
6954         * tests/test-math-c++.cc: Check the declaration of exp2.
6955         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6956         and OpenBSD problems.
6957
6958 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6959
6960         savedir: fix comment typo
6961         * lib/savedir.c (savedirstream): Fix typo in comment.
6962
6963 2012-03-08  Bruno Haible  <bruno@clisp.org>
6964
6965         test-readtokens.c: use const; remove unwarranted cast
6966         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6967
6968 2012-03-08  Bruno Haible  <bruno@clisp.org>
6969
6970         fmal: Avoid compilation error on AIX.
6971         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6972         AIX 5.2..7.1.
6973
6974 2012-03-08  Bruno Haible  <bruno@clisp.org>
6975
6976         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6977         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6978         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6979         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6980         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6981         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6982         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6983
6984 2012-03-08  Bruno Haible  <bruno@clisp.org>
6985
6986         remainderf: Override buggy system function on IRIX 6.5.
6987         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6988         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6989         when it exists.
6990         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6991
6992 2012-03-08  Jim Meyering  <meyering@redhat.com>
6993
6994         test-readtokens.c: avoid const-related compilation warnings
6995         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6996
6997 2012-03-07  Jim Meyering  <meyering@redhat.com>
6998             Bruno Haible  <bruno@clisp.org>
6999
7000         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7001         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7002         tests/randomd.c.
7003         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7004         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7005         tests/randoml.c.
7006         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7007
7008 2012-03-07  Bruno Haible  <bruno@clisp.org>
7009
7010         expm1l: Avoid compilation error on AIX.
7011         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7012         AIX 5.2..7.1.
7013
7014 2012-03-07  Bruno Haible  <bruno@clisp.org>
7015
7016         expm1l: Don't override undeclared system function on IRIX 6.5.
7017         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7018         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7019         it exists. Set HAVE_DECL_EXPM1L.
7020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7021         HAVE_EXPM1L.
7022         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7023         HAVE_EXPM1L.
7024         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7025
7026 2012-03-07  Bruno Haible  <bruno@clisp.org>
7027
7028         remainderl: Don't override undeclared system function on IRIX 6.5.
7029         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7030         HAVE_REMAINDERL.
7031         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7032         declared when it exists. Set HAVE_DECL_REMAINDERL.
7033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7034         not HAVE_REMAINDERL.
7035         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7036         HAVE_REMAINDERL.
7037         * doc/posix-functions/remainderl.texi: Mention missing declaration
7038         problem.
7039
7040 2012-03-07  Bruno Haible  <bruno@clisp.org>
7041
7042         rintf: Don't override undeclared system function on IRIX 6.5.
7043         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7044         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7045         exists. Set HAVE_DECL_RINTF.
7046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7047         HAVE_RINTF.
7048         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7049         HAVE_RINTF.
7050         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7051
7052 2012-03-07  Bruno Haible  <bruno@clisp.org>
7053
7054         roundl: Avoid compilation error on AIX.
7055         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7056         AIX 5.2..7.1.
7057
7058 2012-03-07  Bruno Haible  <bruno@clisp.org>
7059
7060         roundl: Don't override undeclared system function on IRIX 6.5.
7061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7062         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7063         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7064         * modules/roundl (configure.ac): For replacement code, test
7065         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7066         (Depends-on): Update conditions.
7067         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7068
7069 2012-03-07  Bruno Haible  <bruno@clisp.org>
7070
7071         roundf: Don't override undeclared system function on IRIX 6.5.
7072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7073         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7074         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7075         * modules/roundf (configure.ac): For replacement code, test
7076         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7077         (Depends-on): Update conditions.
7078         * modules/roundf-ieee (Depends-on): Update conditions.
7079         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7080
7081 2012-03-07  Bruno Haible  <bruno@clisp.org>
7082
7083         round: Don't override undeclared system function on IRIX 6.5.
7084         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7085         argument.
7086         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7087         also when it is not declared. Set HAVE_ROUND. For replacement code,
7088         test HAVE_ROUND, not HAVE_DECL_ROUND.
7089         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7090         not HAVE_DECL_ROUND.
7091         (Depends-on): Update conditions.
7092         * modules/round-ieee (Depends-on): Update conditions.
7093         * doc/posix-functions/round.texi: Mention the IRIX problem.
7094
7095 2012-03-07  Bruno Haible  <bruno@clisp.org>
7096
7097         copysignf: Don't override undeclared system function on IRIX 6.5.
7098         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7099         HAVE_COPYSIGNF.
7100         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7101         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7103         not HAVE_COPYSIGNF.
7104         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7105         HAVE_COPYSIGNF.
7106         * doc/posix-functions/copysignf.texi: Mention missing declaration
7107         problem.
7108
7109 2012-03-07  Jim Meyering  <meyering@redhat.com>
7110
7111         readtokens: add tests
7112         * modules/readtokens-tests: New file.
7113         * tests/test-readtokens.c: New file.
7114
7115 2012-03-07  Jim Meyering  <meyering@redhat.com>
7116
7117         quotearg: the module must now include quote.h
7118         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7119         So must the module.
7120         * modules/quotearg (Files): Add quote.h.
7121
7122 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7123
7124         readtokens: avoid core dumps with unusual calling patterns
7125         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7126         * lib/readtokens.c: Include limits.h.
7127         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7128         (readtoken): Don't cache the delimiters; the cache code was buggy
7129         if !delim && saved_delim, or if the new n_delim differs from the old.
7130         Also, it wasn't thread-safe.
7131
7132 2012-03-07  Bruno Haible  <bruno@clisp.org>
7133
7134         quote: Adhere to common module description layout.
7135         * modules/quote (Makefile.am): Add back empty section.
7136
7137 2012-03-06  Akim Demaille  <demaille@gostai.com>
7138
7139         quote: fuse into quotearg
7140         This patch is made for the benefit of Bison.
7141         quote does not leave the choice of the quoting style to the user.
7142         quoting_style provides poor customizability, yet quoting_options,
7143         which is very rich, is hidden inside quotearg.c.  So in order to
7144         allow quote customization, move its implementation to quotearg.c.
7145         * lib/quote.c: Remove.
7146         * modules/quote: Adjust.
7147         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7148         warning: provide all the members of literal structs.
7149         (quote_quoting_options): New.
7150         (quote, quote_n): Import implementation from quote.c.
7151         * lib/quote.h: Import the comments from quote.c.
7152         (quote_quoting_options): New.
7153
7154 2012-03-06  Bruno Haible  <bruno@clisp.org>
7155
7156         Tests for module 'expm1l-ieee'.
7157         * modules/expm1l-ieee-tests: New file.
7158         * tests/test-expm1l-ieee.c: New file.
7159
7160         New module 'expm1l-ieee'.
7161         * modules/expm1l-ieee: New file.
7162
7163         Tests for module 'expm1f-ieee'.
7164         * modules/expm1f-ieee-tests: New file.
7165         * tests/test-expm1f-ieee.c: New file.
7166
7167         New module 'expm1f-ieee'.
7168         * modules/expm1f-ieee: New file.
7169
7170         Tests for module 'expm1-ieee'.
7171         * modules/expm1-ieee-tests: New file.
7172         * tests/test-expm1-ieee.c: New file.
7173         * tests/test-expm1-ieee.h: New file.
7174
7175         New module 'expm1-ieee'.
7176         * modules/expm1-ieee: New file.
7177         * m4/expm1-ieee.m4: New file.
7178         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7179         whether expm1 works with a minus zero argument. Replace it if not.
7180         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7182         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7183         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7184         (Depends-on): Update conditions.
7185         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7186         AIX problem.
7187
7188 2012-03-06  Bruno Haible  <bruno@clisp.org>
7189
7190         Work around expm1f bug on IRIX 6.5.
7191         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7192         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7193         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7194         not work.
7195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7196         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7197         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7198         (Depends-on): Update conditions.
7199         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7200
7201 2012-03-06  Bruno Haible  <bruno@clisp.org>
7202
7203         Tests for module 'expm1l'.
7204         * modules/expm1l-tests: New file.
7205         * tests/test-expm1l.c: New file.
7206
7207         New module 'expm1l'.
7208         * lib/math.in.h (expm1l): New declaration.
7209         * lib/expm1l.c: New file.
7210         * m4/expm1l.m4: New file.
7211         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7213         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7214         * modules/expm1l: New file.
7215         * tests/test-math-c++.cc: Check the declaration of expm1l.
7216         * doc/posix-functions/expm1l.texi: Mention the new module.
7217
7218 2012-03-06  Bruno Haible  <bruno@clisp.org>
7219
7220         Tests for module 'expm1f'.
7221         * modules/expm1f-tests: New file.
7222         * tests/test-expm1f.c: New file.
7223
7224         New module 'expm1f'.
7225         * lib/math.in.h (expm1f): New declaration.
7226         * lib/expm1f.c: New file.
7227         * m4/expm1f.m4: New file.
7228         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7230         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7231         * modules/expm1f: New file.
7232         * tests/test-math-c++.cc: Check the declaration of expm1f.
7233         * doc/posix-functions/expm1f.texi: Mention the new module.
7234
7235 2012-03-06  Bruno Haible  <bruno@clisp.org>
7236
7237         Tests for module 'expm1'.
7238         * modules/expm1-tests: New file.
7239         * tests/test-expm1.c: New file.
7240         * tests/test-expm1.h: New file.
7241
7242         New module 'expm1'.
7243         * lib/math.in.h (expm1): New declaration.
7244         * lib/expm1.c: New file.
7245         * m4/expm1.m4: New file.
7246         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7248         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7249         * modules/expm1: New file.
7250         * tests/test-math-c++.cc: Check the declaration of expm1.
7251         * doc/posix-functions/expm1.texi: Mention the new module.
7252
7253 2012-03-06  Bruno Haible  <bruno@clisp.org>
7254
7255         math: Ensure declarations of math functions.
7256         * modules/acosf (Depends-on): Add 'extensions'.
7257         * modules/asinf (Depends-on): Likewise.
7258         * modules/atan2f (Depends-on): Likewise.
7259         * modules/atanf (Depends-on): Likewise.
7260         * modules/cbrt (Depends-on): Likewise.
7261         * modules/cbrtf (Depends-on): Likewise.
7262         * modules/cbrtl (Depends-on): Likewise.
7263         * modules/copysignf (Depends-on): Likewise.
7264         * modules/copysignl (Depends-on): Likewise.
7265         * modules/cosf (Depends-on): Likewise.
7266         * modules/coshf (Depends-on): Likewise.
7267         * modules/expf (Depends-on): Likewise.
7268         * modules/fabsf (Depends-on): Likewise.
7269         * modules/fabsl (Depends-on): Likewise.
7270         * modules/fmaf (Depends-on): Likewise.
7271         * modules/fmal (Depends-on): Likewise.
7272         * modules/fmodf (Depends-on): Likewise.
7273         * modules/fmodl (Depends-on): Likewise.
7274         * modules/frexpf (Depends-on): Likewise.
7275         * modules/frexpl (Depends-on): Likewise.
7276         * modules/hypot (Depends-on): Likewise.
7277         * modules/hypotf (Depends-on): Likewise.
7278         * modules/hypotl (Depends-on): Likewise.
7279         * modules/ldexpf (Depends-on): Likewise.
7280         * modules/ldexpl (Depends-on): Likewise.
7281         * modules/log10f (Depends-on): Likewise.
7282         * modules/log10l (Depends-on): Likewise.
7283         * modules/log1p (Depends-on): Likewise.
7284         * modules/logb (Depends-on): Likewise.
7285         * modules/logf (Depends-on): Likewise.
7286         * modules/modff (Depends-on): Likewise.
7287         * modules/modfl (Depends-on): Likewise.
7288         * modules/powf (Depends-on): Likewise.
7289         * modules/remainderf (Depends-on): Likewise.
7290         * modules/remainderl (Depends-on): Likewise.
7291         * modules/rintf (Depends-on): Likewise.
7292         * modules/rintl (Depends-on): Likewise.
7293         * modules/sinf (Depends-on): Likewise.
7294         * modules/sinhf (Depends-on): Likewise.
7295         * modules/sqrtf (Depends-on): Likewise.
7296         * modules/tanf (Depends-on): Likewise.
7297         * modules/tanhf (Depends-on): Likewise.
7298         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7299         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7300         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7301         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7302         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7303         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7304         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7305         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7306         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7307         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7308         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7309         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7310         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7311         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7312         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7313         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7314         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7315         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7316         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7317         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7318         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7319         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7320         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7321         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7323         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7324         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7325         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7326         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7327         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7328         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7329         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7330         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7331         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7332         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7333         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7334         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7335         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7336         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7337         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7338         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7339
7340 2012-03-06  Bruno Haible  <bruno@clisp.org>
7341
7342         math: Update module names in warnings.
7343         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7344         tanl): Use specific module name in warn-on-use warning.
7345
7346 2012-03-06  Bruno Haible  <bruno@clisp.org>
7347
7348         expl: Simplify computation.
7349         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7350
7351 2012-03-05  Bruno Haible  <bruno@clisp.org>
7352
7353         exp* tests: More tests.
7354         * tests/test-exp.h: New file.
7355         * tests/test-exp.c: Include <float.h> and test-exp.h.
7356         (main): Invoke test_function.
7357         * tests/test-expf.c: Include <float.h> and test-exp.h.
7358         (main): Invoke test_function.
7359         * tests/test-expl.c: Include <float.h> and test-exp.h.
7360         (main): Invoke test_function.
7361         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7362         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7363         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7364         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7365         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7366         (Depends-on): Add 'float'.
7367         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7368
7369         expl: Fix precision of computed result.
7370         * lib/expl.c: Completely rewritten.
7371         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7372         (Maintainer): Add me.
7373         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7374
7375 2012-03-05  Bruno Haible  <bruno@clisp.org>
7376
7377         cbrt* tests: More tests.
7378         * tests/test-cbrt.h: New file.
7379         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7380         (main): Invoke test_function.
7381         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7382         (main): Invoke test_function.
7383         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7384         (main): Invoke test_function.
7385         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7386         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7387         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7388         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7389         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7390         (Depends-on): Add 'float'.
7391         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7392
7393 2012-03-05  Bruno Haible  <bruno@clisp.org>
7394
7395         hypot* tests: More tests.
7396         * tests/test-hypot.h: New file, partially extracted from
7397         tests/test-hypotl.c.
7398         * tests/test-hypot.c: Include test-hypot.h.
7399         (main): Invoke test_function.
7400         * tests/test-hypotf.c: Include test-hypot.h.
7401         (main): Invoke test_function.
7402         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7403         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7404         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7405         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7406         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7407         tests/randomf.c.
7408         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7409         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7410         tests/randoml.c.
7411         (Depends-on): Add 'fpucw', 'float'.
7412         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7413
7414 2012-03-05  Bruno Haible  <bruno@clisp.org>
7415
7416         fpucw: Doc about FreeBSD.
7417         * lib/fpucw.h: Mention FreeBSD in comments.
7418
7419 2012-03-04  Bruno Haible  <bruno@clisp.org>
7420
7421         sqrt* tests: More tests.
7422         * tests/test-sqrt.h: New file.
7423         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7424         (main): Invoke test_function.
7425         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7426         (main): Invoke test_function.
7427         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7428         (main): Invoke test_function.
7429         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7430         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7431         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7432         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7433         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7434         (Depends-on): Add 'float'.
7435         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7436
7437 2012-03-04  Bruno Haible  <bruno@clisp.org>
7438
7439         remainder* tests: More tests.
7440         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7441         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7442         (main): Invoke test_function.
7443         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7444         (main): Invoke test_function.
7445         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7446         (main): Invoke test_function.
7447         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7448         tests/randomd.c.
7449         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7450         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7451         tests/randomf.c.
7452         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7453         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7454         tests/randoml.c.
7455         (Depends-on): Add 'float'.
7456         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7457
7458 2012-03-04  Bruno Haible  <bruno@clisp.org>
7459
7460         remainder, remainderf, remainderl: Fix computation for large quotients.
7461         * lib/remainder.c: Completely rewritten.
7462         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7463         USE_FLOAT.
7464         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7465         USE_LONG_DOUBLE.
7466         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7467         isnand, isinf. Remove round, fma.
7468         * modules/remainderf (Files): Add lib/remainder.c.
7469         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7470         Remove roundf, fmaf.
7471         * modules/remainderl (Files): Add lib/remainder.c.
7472         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7473         isinf. Remove roundl, fmal.
7474         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7475         REMAINDER_LIBM.
7476         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7477         REMAINDERF_LIBM.
7478         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7479         REMAINDERL_LIBM.
7480
7481 2012-03-04  Bruno Haible  <bruno@clisp.org>
7482
7483         fmod* tests: More tests.
7484         * tests/test-fmod.h (my_ldexp): New function.
7485         (test_function): Reduce amount of random numbers to test. Add tests
7486         of very large quotients x / y.
7487         * tests/test-fmod.c (MAX_EXP): New macro.
7488         * tests/test-fmodf.c (MAX_EXP): Likewise.
7489         * tests/test-fmodl.c (MAX_EXP): Likewise.
7490
7491 2012-03-04  Bruno Haible  <bruno@clisp.org>
7492
7493         fmod, fmodl: Fix computation for large quotients x / y.
7494         * lib/fmod.c: Completely rewritten.
7495         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7496         USE_LONG_DOUBLE.
7497         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7498         isnand. Remove fma.
7499         * modules/fmodl (Files): Add lib/fmod.c.
7500         (Depends-on): Add float, isfinite, signbit, fabsl,
7501         frexpl, ldexpl, isnanl. Remove fma.
7502         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7503         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7504
7505 2012-03-03  Bruno Haible  <bruno@clisp.org>
7506
7507         fmod* tests: More tests.
7508         * tests/test-fmod.h: New file.
7509         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7510         (main): Invoke test_function.
7511         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7512         (main): Invoke test_function.
7513         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7514         (main): Invoke test_function.
7515         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7516         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7517         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7518         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7519         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7520         (Depends-on): Add 'float'.
7521         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7522
7523 2012-03-03  Bruno Haible  <bruno@clisp.org>
7524
7525         rint* tests: More tests.
7526         * tests/test-rint.h: New file, partially extracted from
7527         tests/test-rintl.c.
7528         * tests/test-rint.c: Include test-rint.h.
7529         (main): Invoke test_function.
7530         * tests/test-rintf.c: Include test-rint.h.
7531         (main): Invoke test_function.
7532         * tests/test-rintl.c: Include test-rint.h.
7533         (main): Invoke test_function.
7534         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7535         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7536         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7537         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7538         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7539         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7540
7541 2012-03-03  Bruno Haible  <bruno@clisp.org>
7542
7543         modf* tests: More tests.
7544         * tests/test-modf.h: New file.
7545         * tests/test-modf.c: Include <float.h> and test-modf.h.
7546         (main): Invoke test_function.
7547         * tests/test-modff.c: Include <float.h> and test-modf.h.
7548         (main): Invoke test_function.
7549         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7550         (main): Invoke test_function.
7551         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7552         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7553         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7554         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7555         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7556         (Depends-on): Add 'float'.
7557         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7558
7559 2012-03-03  Bruno Haible  <bruno@clisp.org>
7560
7561         fabs* tests: More tests.
7562         * tests/test-fabs.h: New file, partially extracted from
7563         tests/test-fabsl.c.
7564         * tests/test-fabs.c (RANDOM): New macro.
7565         * tests/test-fabsf.c (RANDOM): New macro.
7566         * tests/test-fabsl.c (RANDOM): New macro.
7567         * modules/fabs-tests (Files): Add tests/randomd.c.
7568         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7569         * modules/fabsf-tests (Files): Add tests/randomf.c.
7570         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7571         * modules/fabsl-tests (Files): Add tests/randoml.c.
7572         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7573
7574 2012-03-03  Bruno Haible  <bruno@clisp.org>
7575
7576         ldexp* tests: More tests.
7577         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7578         * tests/test-ldexp.c (RANDOM): New macro.
7579         * tests/test-ldexpf.c (RANDOM): New macro.
7580         * tests/test-ldexpl.c (RANDOM): New macro.
7581         * modules/ldexp-tests (Files): Add tests/randomd.c.
7582         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7583         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7584         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7585         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7586         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7587
7588 2012-03-03  Bruno Haible  <bruno@clisp.org>
7589
7590         frexp* tests: More tests.
7591         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7592         * tests/test-frexp.c (RANDOM): New macro.
7593         * tests/test-frexpf.c (RANDOM): New macro.
7594         * tests/test-frexpl.c (RANDOM): New macro.
7595         * modules/frexp-tests (Files): Add tests/randomd.c.
7596         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7597         * modules/frexpf-tests (Files): Add tests/randomf.c.
7598         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7599         * modules/frexpl-tests (Files): Add tests/randoml.c.
7600         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7601
7602 2012-03-03  Bruno Haible  <bruno@clisp.org>
7603
7604         Support for pseudo-random numbers in tests.
7605         * tests/randomf.c: New file.
7606         * tests/randomd.c: New file.
7607         * tests/randoml.c: New file.
7608         * tests/macros.h (randomf, randomd, randoml): New declarations.
7609
7610 2012-03-03  Bruno Haible  <bruno@clisp.org>
7611
7612         frexp* tests: Refactor.
7613         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7614         * tests/test-frexp.c: Include and use it.
7615         * tests/test-frexpf.c: Likewise.
7616         * tests/test-frexpl.c: Likewise.
7617         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7618         * modules/frexpf-tests (Files): Likewise.
7619         * modules/frexpl-tests (Files): Likewise.
7620
7621 2012-03-02  Jim Meyering  <meyering@redhat.com>
7622
7623         maint: don't specify XZ_OPT=-9ev in dist-related rule
7624         Using xz's -9 option is warranted only if you have a very large
7625         tarball (see xz's documentation for the sizes vs. presets), and
7626         requires 64MiB of memory at decompression time.
7627         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7628         Automake's default of just "-e" is fine.  Override on a
7629         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7630
7631 2012-03-01  Eric Blake  <eblake@redhat.com>
7632
7633         maint.mk: allow announcement for non-gnulib project
7634         * maint.mk (announcement): Skip gnulib version if not used.
7635
7636 2012-03-01  Jim Meyering  <meyering@redhat.com>
7637
7638         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7639         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7640         envvar settings cannot interfere.  Otherwise, setting envvars like
7641         prohibit=foo require=bar, etc. would cause spurious test failures.
7642
7643 2012-03-01  Eric Blake  <eblake@redhat.com>
7644
7645         maint.mk: add per-line exclusions to prohibitions
7646         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7647         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7648         (sc_const_long_option): Use it.
7649
7650 2012-03-01  Bruno Haible  <bruno@clisp.org>
7651
7652         Tests for module 'expl-ieee'.
7653         * modules/expl-ieee-tests: New file.
7654         * tests/test-expl-ieee.c: New file.
7655
7656         New module 'expl-ieee'.
7657         * modules/expl-ieee: New file.
7658
7659         Tests for module 'exp-ieee'.
7660         * modules/exp-ieee-tests: New file.
7661         * tests/test-exp-ieee.c: New file.
7662
7663         New module 'exp-ieee'.
7664         * modules/exp-ieee: New file.
7665
7666         Tests for module 'expf-ieee'.
7667         * modules/expf-ieee-tests: New file.
7668         * tests/test-expf-ieee.c: New file.
7669         * tests/test-exp-ieee.h: New file.
7670
7671         New module 'expf-ieee'.
7672         * modules/expf-ieee: New file.
7673
7674 2012-02-29  Bruno Haible  <bruno@clisp.org>
7675
7676         cbrtl-ieee: Work around test failure on IRIX 6.5.
7677         * m4/cbrtl-ieee.m4: New file.
7678         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7679         test whether cbrtl works with a minus zero argument. Replace it if not.
7680         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7682         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7683         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7684         (Depends-on): Update conditions.
7685         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7686         m4/signbit.m4.
7687         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7688         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7689         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7690
7691         Tests for module 'cbrtl-ieee'.
7692         * modules/cbrtl-ieee-tests: New file.
7693         * tests/test-cbrtl-ieee.c: New file.
7694
7695         New module 'cbrtl-ieee'.
7696         * modules/cbrtl-ieee: New file.
7697
7698         Tests for module 'cbrt-ieee'.
7699         * modules/cbrt-ieee-tests: New file.
7700         * tests/test-cbrt-ieee.c: New file.
7701
7702         New module 'cbrt-ieee'.
7703         * modules/cbrt-ieee: New file.
7704
7705         Tests for module 'cbrtf-ieee'.
7706         * modules/cbrtf-ieee-tests: New file.
7707         * tests/test-cbrtf-ieee.c: New file.
7708         * tests/test-cbrt-ieee.h: New file.
7709
7710         New module 'cbrtf-ieee'.
7711         * modules/cbrtf-ieee: New file.
7712
7713 2012-02-29  Bruno Haible  <bruno@clisp.org>
7714
7715         cbrtf: Work around bug in IRIX 6.5 system function.
7716         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7717         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7718         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7719         work.
7720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7721         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7722         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7723         (Depends-on): Update conditions.
7724         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7725
7726 2012-02-29  Bruno Haible  <bruno@clisp.org>
7727
7728         Tests for module 'cbrtl'.
7729         * modules/cbrtl-tests: New file.
7730         * tests/test-cbrtl.c: New file.
7731
7732         New module 'cbrtl'.
7733         * lib/math.in.h (cbrtl): New declaration.
7734         * lib/cbrtl.c: New file.
7735         * m4/cbrtl.m4: New file.
7736         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7738         HAVE_DECL_CBRTL.
7739         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7740         HAVE_DECL_CBRTL.
7741         * modules/cbrtl: New file.
7742         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7743         * doc/posix-functions/cbrtl.texi: Mention the new module.
7744
7745 2012-02-29  Bruno Haible  <bruno@clisp.org>
7746
7747         Tests for module 'cbrtf'.
7748         * modules/cbrtf-tests: New file.
7749         * tests/test-cbrtf.c: New file.
7750
7751         New module 'cbrtf'.
7752         * lib/math.in.h (cbrtf): New declaration.
7753         * lib/cbrtf.c: New file.
7754         * m4/cbrtf.m4: New file.
7755         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7757         HAVE_DECL_CBRTF.
7758         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7759         HAVE_DECL_CBRTF.
7760         * modules/cbrtf: New file.
7761         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7762         * doc/posix-functions/cbrtf.texi: Mention the new module.
7763
7764 2012-02-29  Bruno Haible  <bruno@clisp.org>
7765
7766         cbrt: Provide replacement on MSVC and Minix.
7767         * lib/math.in.h (cbrt): New declaration.
7768         * lib/cbrt.c: New file.
7769         * m4/cbrt.m4: New file.
7770         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7772         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7773         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7774         (Depends-on): Add dependencies.
7775         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7776         * tests/test-math-c++.cc: Check the declaration of cbrt.
7777         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7778         replacement.
7779
7780 2012-02-29  Bruno Haible  <bruno@clisp.org>
7781
7782         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7783         * m4/hypotl-ieee.m4: New file.
7784         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7785         test whether hypotl works with mixed NaN and Infinity arguments.
7786         Replace it if not.
7787         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7789         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7790         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7791         (Depends-on): Update conditions.
7792         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7793         (Depends-on): Add hypot-ieee.
7794         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7795         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7796
7797         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7798         * m4/hypotf-ieee.m4: New file.
7799         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7800         test whether hypotf works with mixed NaN and Infinity arguments.
7801         Replace it if not.
7802         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7803         (Depends-on): Add hypot-ieee.
7804         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7805         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7806
7807         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7808         * lib/math.in.h (hypot): New declaration.
7809         * lib/hypot.c: New file.
7810         * m4/hypot-ieee.m4: New file.
7811         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7812         whether hypot works with mixed NaN and Infinity arguments. Replace it
7813         if not.
7814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7815         REPLACE_HYPOT.
7816         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7817         * modules/hypot (Files): Add lib/hypot.c.
7818         (Depends-on): Add dependencies.
7819         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7820         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7821         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7822         * tests/test-math-c++.cc: Check the declaration of hypot.
7823         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7824
7825         Tests for module 'hypotl-ieee'.
7826         * modules/hypotl-ieee-tests: New file.
7827         * tests/test-hypotl-ieee.c: New file.
7828
7829         New module 'hypotl-ieee'.
7830         * modules/hypotl-ieee: New file.
7831
7832         Tests for module 'hypot-ieee'.
7833         * modules/hypot-ieee-tests: New file.
7834         * tests/test-hypot-ieee.c: New file.
7835
7836         New module 'hypot-ieee'.
7837         * modules/hypot-ieee: New file.
7838
7839         Tests for module 'hypotf-ieee'.
7840         * modules/hypotf-ieee-tests: New file.
7841         * tests/test-hypotf-ieee.c: New file.
7842         * tests/test-hypot-ieee.h: New file.
7843
7844         New module 'hypotf-ieee'.
7845         * modules/hypotf-ieee: New file.
7846
7847 2012-02-29  Bruno Haible  <bruno@clisp.org>
7848
7849         Remove unused variables.
7850         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7851         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7852         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7853         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7854
7855 2012-02-29  Eric Blake  <eblake@redhat.com>
7856
7857         termios: fix pid_t always, not just for tcgetsid
7858         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7859         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7860         just when building tcgetsid.
7861
7862 2012-02-29  Bruno Haible  <bruno@clisp.org>
7863
7864         Tests for module 'hypotl'.
7865         * modules/hypotl-tests: New file.
7866         * tests/test-hypotl.c: New file.
7867
7868         New module 'hypotl'.
7869         * lib/math.in.h (hypotl): New declaration.
7870         * lib/hypotl.c: New file.
7871         * m4/hypotl.m4: New file.
7872         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7874         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7875         * modules/hypotl: New file.
7876         * tests/test-math-c++.cc: Check the hypotl declaration.
7877         * doc/posix-functions/hypotl.texi: Mention the new module.
7878
7879 2012-02-29  Eric Blake  <eblake@redhat.com>
7880
7881         tcgetsid: fix cygwin header bug
7882         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7883
7884         docs: update cygwin progress
7885         * doc/posix-functions/llround.texi (llround): Added in cygwin
7886         1.7.8.
7887         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7888         * doc/glibc-functions/program_invocation_name.texi
7889         (program_invocation_name): Likewise.
7890         * doc/glibc-functions/program_invocation_short_name.texi
7891         (program_invocation_short_name): Likewise.
7892         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7893         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7894         Likewise.
7895         * doc/posix-functions/pthread_spin_destroy.texi
7896         (pthread_spin_destroy): Added in cygwin 1.7.10.
7897         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7898         Likewise.
7899         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7900         Likewise.
7901         * doc/posix-functions/pthread_spin_trylock.texi
7902         (pthread_spin_trylock): Likewise.
7903         * doc/posix-functions/pthread_spin_unlock.texi
7904         (pthread_spin_unlock): Likewise.
7905         * doc/posix-functions/pthread_setschedprio.texi
7906         (pthread_setschedprio): Likewise.
7907         * doc/posix-functions/pthread_attr_getstack.texi
7908         (pthread_attr_getstack): Likewise.
7909         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7910         (pthread_attr_getstackaddr): Likewise.
7911         * doc/glibc-functions/pthread_getattr_np.texi
7912         (pthread_getattr_np): Likewise.
7913         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7914         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7915         * doc/posix-functions/clock_settime.texi (clock_settime):
7916         Likewise.
7917         * doc/posix-functions/pthread_attr_getguardsize.texi
7918         (pthread_attr_getguardsize): Likewise.
7919         * doc/posix-functions/pthread_attr_setguardsize.texi
7920         (pthread_attr_setguardsize): Likewise.
7921         * doc/posix-functions/pthread_attr_setstack.texi
7922         (pthread_attr_setstack): Likewise.
7923         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7924         (pthread_attr_setstackaddr): Likewise.
7925         * doc/posix-functions/clock_getcpuclockid.texi
7926         (clock_getcpuclockid): Likewise.
7927         * doc/posix-functions/pthread_getcpuclockid.texi
7928         (pthread_getcpuclockid): Likewise.
7929         * doc/glibc-functions/error.texi (error): Likewise.
7930         * doc/glibc-functions/error_at_line.texi (error_at_line):
7931         Likewise.
7932         * doc/glibc-functions/error_message_count.texi
7933         (error_message_count): Likewise.
7934         * doc/glibc-functions/error_one_per_line.texi
7935         (error_one_per_line): Likewise.
7936         * doc/glibc-functions/error_print_progname.texi
7937         (error_print_progname): Likewise.
7938         * doc/posix-functions/pthread_condattr_getclock.texi
7939         (pthread_condattr_getclock): Likewise.
7940         * doc/posix-functions/pthread_condattr_setclock.texi
7941         (pthread_condattr_setclock): Likewise.
7942         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7943         Likewise.
7944         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7945         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7946         * doc/glibc-functions/get_current_dir_name.texi
7947         (get_current_dir_name): Likewise.
7948         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7949         Likewise.
7950         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7951         wrong return type.
7952         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7953         1.7.11.
7954
7955 2012-02-29  Bruno Haible  <bruno@clisp.org>
7956
7957         Tests for module 'hypotf'.
7958         * modules/hypotf-tests: New file.
7959         * tests/test-hypotf.c: New file.
7960
7961         New module 'hypotf'.
7962         * lib/math.in.h (hypotf): New declaration.
7963         * lib/hypotf.c: New file.
7964         * m4/hypotf.m4: New file.
7965         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7967         REPLACE_HYPOTF.
7968         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7969         REPLACE_HYPOTF.
7970         * modules/hypotf: New file.
7971         * tests/test-math-c++.cc: Check the hypotf declaration.
7972         * doc/posix-functions/hypotf.texi: Mention the new module.
7973
7974         hypot: Prepare for hypotf module.
7975         * m4/hypot.m4: New file.
7976         * modules/hypot (Files): Add m4/hypot.m4.
7977         (configure.ac): Invoke gl_FUNC_HYPOT.
7978
7979 2012-02-29  Bruno Haible  <bruno@clisp.org>
7980
7981         hypot tests: More tests.
7982         * tests/test-hypot.c: Include <float.h>.
7983         (main): Add tests about overflow and underflow.
7984
7985 2012-02-29  Bruno Haible  <bruno@clisp.org>
7986
7987         math code: Add comments.
7988         * lib/acosl.c: Add comment about related glibc source files.
7989         * lib/asinl.c: Likewise.
7990         * lib/atanl.c: Likewise.
7991         * lib/expl.c: Likewise.
7992         * lib/logl.c: Likewise.
7993         * lib/sincosl.c: Likewise.
7994         * lib/sinl.c: Likewise.
7995         * lib/tanl.c: Likewise.
7996         * lib/trigl.c: Likewise.
7997         * lib/cosl.c: Likewise. Fix comments.
7998
7999 2012-02-28  Bruno Haible  <bruno@clisp.org>
8000
8001         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8002         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8003         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8004         HUGE_VALL are defined.
8005         (numeric_equald): Renamed from numeric_equal.
8006         (numeric_equalf, numeric_equall): New functions.
8007         (main): Check also HUGE_VALF, HUGE_VALL.
8008         * modules/math-tests (Files): Add tests/macros.h.
8009         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8010         HUGE_VALL.
8011
8012 2012-02-28  Bruno Haible  <bruno@clisp.org>
8013
8014         doc: Move ISO C11 feature notes into POSIX chapters.
8015         * doc/posix-functions/aligned_alloc.texi: Renamed from
8016         doc/glibc-functions/aligned_alloc.texi.
8017         * doc/posix-functions/quick_exit.texi: Renamed from
8018         doc/glibc-functions/quick_exit.texi.
8019         * doc/posix-headers/uchar.texi: Renamed from
8020         doc/glibc-headers/uchar.texi.
8021         * doc/posix-functions/c16rtomb.texi: Renamed from
8022         doc/glibc-functions/c16rtomb.texi.
8023         * doc/posix-functions/c32rtomb.texi: Renamed from
8024         doc/glibc-functions/c32rtomb.texi.
8025         * doc/posix-functions/mbrtoc16.texi: Renamed from
8026         doc/glibc-functions/mbrtoc16.texi.
8027         * doc/posix-functions/mbrtoc32.texi: Renamed from
8028         doc/glibc-functions/mbrtoc32.texi.
8029         * doc/gnulib.texi: Update.
8030         (Glibc uchar.h): Remove section.
8031         Suggested by Eric Blake.
8032
8033 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8034
8035         stdnoreturn: port to MSVC better
8036         MSVC standard headers use __declspec(noreturn), so #define noreturn
8037         to empty on that platform.  Reported by Bruno Haible in
8038         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8039         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8040         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8041
8042 2012-02-28  Bruno Haible  <bruno@clisp.org>
8043
8044         doc: Mention new glibc headers and functions.
8045         * doc/glibc-headers/uchar.texi: New file.
8046         * doc/glibc-functions/aligned_alloc.texi: New file.
8047         * doc/glibc-functions/c16rtomb.texi: New file.
8048         * doc/glibc-functions/c32rtomb.texi: New file.
8049         * doc/glibc-functions/clock_adjtime.texi: New file.
8050         * doc/glibc-functions/fanotify_init.texi: New file.
8051         * doc/glibc-functions/fanotify_mark.texi: New file.
8052         * doc/glibc-functions/inet6_opt_append.texi: New file.
8053         * doc/glibc-functions/inet6_opt_find.texi: New file.
8054         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8055         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8056         * doc/glibc-functions/inet6_opt_init.texi: New file.
8057         * doc/glibc-functions/inet6_opt_next.texi: New file.
8058         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8059         * doc/glibc-functions/inet6_rth_add.texi: New file.
8060         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8061         * doc/glibc-functions/inet6_rth_init.texi: New file.
8062         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8063         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8064         * doc/glibc-functions/inet6_rth_space.texi: New file.
8065         * doc/glibc-functions/login.texi: New file.
8066         * doc/glibc-functions/mbrtoc16.texi: New file.
8067         * doc/glibc-functions/mbrtoc32.texi: New file.
8068         * doc/glibc-functions/name_to_handle_at.texi: New file.
8069         * doc/glibc-functions/ntp_gettimex.texi: New file.
8070         * doc/glibc-functions/open_by_handle_at.texi: New file.
8071         * doc/glibc-functions/prlimit.texi: New file.
8072         * doc/glibc-functions/process_vm_readv.texi: New file.
8073         * doc/glibc-functions/process_vm_writev.texi: New file.
8074         * doc/glibc-functions/recvmmsg.texi: New file.
8075         * doc/glibc-functions/scandirat.texi: New file.
8076         * doc/glibc-functions/sendmmsg.texi: New file.
8077         * doc/glibc-functions/setns.texi: New file.
8078         * doc/glibc-functions/timespec_get.texi: New file.
8079         * doc/gnulib.texi: Include them.
8080         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8081         sections.
8082         Reported by Eric Blake.
8083
8084 2012-02-28  Bruno Haible  <bruno@clisp.org>
8085
8086         Avoid compilation errors with MSVC option -fp:strict.
8087         * lib/floor.c: Use MSVC specific pragma fenv_access.
8088         * lib/ceil.c: Likewise.
8089         * lib/trunc.c: Likewise.
8090         * lib/round.c: Likewise.
8091         * lib/rint.c: Likewise.
8092         * lib/fma.c: Likewise.
8093         * lib/integer_length.c: Likewise.
8094         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8096         * tests/test-floor2.c: Likewise.
8097         * tests/test-floorf2.c: Likewise.
8098         * tests/test-ceil2.c: Likewise.
8099         * tests/test-ceilf2.c: Likewise.
8100         * tests/test-trunc2.c: Likewise.
8101         * tests/test-truncf2.c: Likewise.
8102         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8103
8104 2012-02-27  Bruno Haible  <bruno@clisp.org>
8105
8106         Tests for module 'sqrtl-ieee'.
8107         * modules/sqrtl-ieee-tests: New file.
8108         * tests/test-sqrtl-ieee.c: New file.
8109
8110         New module 'sqrtl-ieee'.
8111         * modules/sqrtl-ieee: New file.
8112
8113         Tests for module 'sqrt-ieee'.
8114         * modules/sqrt-ieee-tests: New file.
8115         * tests/test-sqrt-ieee.c: New file.
8116
8117         New module 'sqrt-ieee'.
8118         * modules/sqrt-ieee: New file.
8119
8120         Tests for module 'sqrtf-ieee'.
8121         * modules/sqrtf-ieee-tests: New file.
8122         * tests/test-sqrtf-ieee.c: New file.
8123         * tests/test-sqrt-ieee.h: New file.
8124
8125         New module 'sqrtf-ieee'.
8126         * modules/sqrtf-ieee: New file.
8127
8128 2012-02-27  Bruno Haible  <bruno@clisp.org>
8129
8130         remainderl-ieee: Work around test failure on OSF/1.
8131         * m4/remainderl-ieee.m4: New file.
8132         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8133         present, test whether remainderl works with a zero second argument.
8134         Replace it if not.
8135         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8137         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8138         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8139         (Depends-on): Update conditions.
8140         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8141         (Depends-on): Add remainder-ieee.
8142         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8143         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8144         module.
8145
8146         remainderf-ieee: Work around test failure on OSF/1.
8147         * m4/remainderf-ieee.m4: New file.
8148         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8149         present, test whether remainderf works with a zero second argument.
8150         Replace it if not.
8151         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8153         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8154         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8155         (Depends-on): Update conditions.
8156         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8157         (Depends-on): Add remainder-ieee.
8158         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8159         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8160         module.
8161
8162         remainder-ieee: Work around test failure on OSF/1.
8163         * m4/remainder-ieee.m4: New file.
8164         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8165         present, test whether remainder works with a zero second argument.
8166         Replace it if not.
8167         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8169         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8170         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8171         (Depends-on): Update dependencies.
8172         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8173         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8174         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8175
8176         Tests for module 'remainderl-ieee'.
8177         * modules/remainderl-ieee-tests: New file.
8178         * tests/test-remainderl-ieee.c: New file.
8179
8180         New module 'remainderl-ieee'.
8181         * modules/remainderl-ieee: New file.
8182
8183         Tests for module 'remainder-ieee'.
8184         * modules/remainder-ieee-tests: New file.
8185         * tests/test-remainder-ieee.c: New file.
8186
8187         New module 'remainder-ieee'.
8188         * modules/remainder-ieee: New file.
8189
8190         Tests for module 'remainderf-ieee'.
8191         * modules/remainderf-ieee-tests: New file.
8192         * tests/test-remainderf-ieee.c: New file.
8193         * tests/test-remainder-ieee.h: New file.
8194
8195         New module 'remainderf-ieee'.
8196         * modules/remainderf-ieee: New file.
8197
8198 2012-02-27  Bruno Haible  <bruno@clisp.org>
8199
8200         modff, modfl: Fix configure syntax error.
8201         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8202         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8203
8204 2012-02-27  Bruno Haible  <bruno@clisp.org>
8205
8206         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8207         * m4/fmodl-ieee.m4: New file.
8208         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8209         whether fmodl works with zero arguments. Replace it if not.
8210         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8211         (Depends-on): Add fmod-ieee.
8212         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8213         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8214
8215         fmodf-ieee: Work around test failure on OSF/1.
8216         * m4/fmodf-ieee.m4: New file.
8217         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8218         whether fmodf works with zero arguments. Replace it if not.
8219         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8221         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8222         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8223         (Depends-on): Update dependencies.
8224         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8225         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8226         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8227
8228         fmodf-ieee: Work around test failure on MSVC 9.
8229         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8230         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8231
8232         fmod-ieee: Work around test failures on OSF/1, mingw.
8233         * m4/fmod-ieee.m4: New file.
8234         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8235         whether fmod works with zero arguments. Replace it if not.
8236         * lib/math.in.h (fmod): New declaration.
8237         * lib/fmod.c: New file.
8238         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8240         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8241         * modules/fmod (Files): Add lib/fmod.c.
8242         (Depends-on): Add math, isinf, trunc, fma.
8243         (configure.ac): Arrange to compile lib/fmod.c if needed.
8244         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8245         m4/signbit.m4.
8246         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8247         * tests/test-math-c++.cc: Check the declaration of fmod.
8248         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8249
8250         fmodl-ieee: Fix test failures.
8251         * lib/fmodl.c (fmodl): Treat Inf specially.
8252         * modules/fmodl (Depends-on): Add isinf.
8253
8254         Tests for module 'fmodl-ieee'.
8255         * modules/fmodl-ieee-tests: New file.
8256         * tests/test-fmodl-ieee.c: New file.
8257
8258         New module 'fmodl-ieee'.
8259         * modules/fmodl-ieee: New file.
8260
8261         Tests for module 'fmod-ieee'.
8262         * modules/fmod-ieee-tests: New file.
8263         * tests/test-fmod-ieee.c: New file.
8264
8265         New module 'fmod-ieee'.
8266         * modules/fmod-ieee: New file.
8267
8268         Tests for module 'fmodf-ieee'.
8269         * modules/fmodf-ieee-tests: New file.
8270         * tests/test-fmodf-ieee.c: New file.
8271         * tests/test-fmod-ieee.h: New file.
8272
8273         New module 'fmodf-ieee'.
8274         * modules/fmodf-ieee: New file.
8275
8276 2012-02-27  Bruno Haible  <bruno@clisp.org>
8277
8278         Tests for module 'rintl-ieee'.
8279         * modules/rintl-ieee-tests: New file.
8280         * tests/test-rintl-ieee.c: New file.
8281
8282         New module 'rintl-ieee'.
8283         * modules/rintl-ieee: New file.
8284
8285         Tests for module 'rint-ieee'.
8286         * modules/rint-ieee-tests: New file.
8287         * tests/test-rint-ieee.c: New file.
8288
8289         New module 'rint-ieee'.
8290         * modules/rint-ieee: New file.
8291
8292         Tests for module 'rintf-ieee'.
8293         * modules/rintf-ieee-tests: New file.
8294         * tests/test-rintf-ieee.c: New file.
8295         * tests/test-rint-ieee.h: New file.
8296
8297         New module 'rintf-ieee'.
8298         * modules/rintf-ieee: New file.
8299
8300 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8301
8302         regex: re_search etc. should return -2 when memory exhausted
8303         This bug was uncovered when testing 'grep'.  Without the fix,
8304         re_search and friends return -1 when memory is exhausted, but -1
8305         means no match, and this causes grep to falsely report no-match
8306         instead of memory-exhaustion.  See
8307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8308         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8309         trouble; this can occur if re_search_internal ran out of memory.
8310
8311 2012-02-26  Bruno Haible  <bruno@clisp.org>
8312
8313         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8314         * m4/modfl-ieee.m4: New file.
8315         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8316         whether modfl works with Inf. Replace it if not.
8317         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8319         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8320         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8321         (Depends-on): Update dependencies.
8322         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8323         m4/signbit.m4.
8324         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8325         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8326
8327         modfl-ieee: Fix dependencies.
8328         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8329
8330         modfl-ieee: Fix test failures.
8331         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8332         * modules/modfl (Depends-on): Add isfinite, isinf.
8333
8334         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8335         * m4/modff-ieee.m4: New file.
8336         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8337         whether modff works with NaN and Inf. Replace it if not.
8338         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8340         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8341         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8342         (Depends-on): Update dependencies.
8343         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8344         m4/signbit.m4.
8345         (Depends-on): Add modf-ieee.
8346         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8347         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8348
8349         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8350         * m4/modf-ieee.m4: New file.
8351         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8352         whether modf works with NaN and Inf. Replace it if not.
8353         * lib/math.in.h (modf): New declaration.
8354         * lib/modf.c: New file.
8355         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8357         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8358         * modules/modf (Files): Add lib/modf.c.
8359         (Depends-on): Add math, isfinite, trunc, isinf.
8360         (configure.ac): Addrange to compile lib/modf.c if needed.
8361         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8362         m4/signbit.m4.
8363         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8364         * tests/test-math-c++.cc: Check the declaration of modf.
8365         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8366
8367         Tests for module 'modfl-ieee'.
8368         * modules/modfl-ieee-tests: New file.
8369         * tests/test-modfl-ieee.c: New file.
8370
8371         New module 'modfl-ieee'.
8372         * modules/modfl-ieee: New file.
8373
8374         Tests for module 'modf-ieee'.
8375         * modules/modf-ieee-tests: New file.
8376         * tests/test-modf-ieee.c: New file.
8377
8378         New module 'modf-ieee'.
8379         * modules/modf-ieee: New file.
8380
8381         Tests for module 'modff-ieee'.
8382         * modules/modff-ieee-tests: New file.
8383         * tests/test-modff-ieee.c: New file.
8384         * tests/test-modf-ieee.h: New file.
8385
8386         New module 'modff-ieee'.
8387         * modules/modff-ieee: New file.
8388
8389 2012-02-26  Bruno Haible  <bruno@clisp.org>
8390
8391         Tests for module 'fabsl-ieee'.
8392         * modules/fabsl-ieee-tests: New file.
8393         * tests/test-fabsl-ieee.c: New file.
8394
8395         New module 'fabsl-ieee'.
8396         * modules/fabsl-ieee: New file.
8397
8398         Tests for module 'fabs-ieee'.
8399         * modules/fabs-ieee-tests: New file.
8400         * tests/test-fabs-ieee.c: New file.
8401
8402         New module 'fabs-ieee'.
8403         * modules/fabs-ieee: New file.
8404
8405         Tests for module 'fabsf-ieee'.
8406         * modules/fabsf-ieee-tests: New file.
8407         * tests/test-fabsf-ieee.c: New file.
8408         * tests/test-fabs-ieee.h: New file.
8409
8410         New module 'fabsf-ieee'.
8411         * modules/fabsf-ieee: New file.
8412
8413 2012-02-26  Bruno Haible  <bruno@clisp.org>
8414
8415         Tests for module 'fmal-ieee'.
8416         * modules/fmal-ieee-tests: New file.
8417         * tests/test-fmal-ieee.c: New file.
8418
8419         New module 'fmal-ieee'.
8420         * modules/fmal-ieee: New file.
8421
8422         Tests for module 'fma-ieee'.
8423         * modules/fma-ieee-tests: New file.
8424         * tests/test-fma-ieee.c: New file.
8425
8426         New module 'fma-ieee'.
8427         * modules/fma-ieee: New file.
8428
8429         Tests for module 'fmaf-ieee'.
8430         * modules/fmaf-ieee-tests: New file.
8431         * tests/test-fmaf-ieee.c: New file.
8432         * tests/test-fma-ieee.h: New file.
8433
8434         New module 'fmaf-ieee'.
8435         * modules/fmaf-ieee: New file.
8436
8437 2012-02-26  Bruno Haible  <bruno@clisp.org>
8438
8439         Tests for module 'ldexpl-ieee'.
8440         * modules/ldexpl-ieee-tests: New file.
8441         * tests/test-ldexpl-ieee.c: New file.
8442
8443         New module 'ldexpl-ieee'.
8444         * modules/ldexpl-ieee: New file.
8445
8446         Tests for module 'ldexp-ieee'.
8447         * modules/ldexp-ieee-tests: New file.
8448         * tests/test-ldexp-ieee.c: New file.
8449
8450         New module 'ldexp-ieee'.
8451         * modules/ldexp-ieee: New file.
8452
8453         Tests for module 'ldexpf-ieee'.
8454         * modules/ldexpf-ieee-tests: New file.
8455         * tests/test-ldexpf-ieee.c: New file.
8456         * tests/test-ldexp-ieee.h: New file.
8457
8458         New module 'ldexpf-ieee'.
8459         * modules/ldexpf-ieee: New file.
8460
8461 2012-02-26  Bruno Haible  <bruno@clisp.org>
8462
8463         Refactor frexp*-ieee tests.
8464         * tests/test-frexp-ieee.h: New file.
8465         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8466         (main): Just call test_function.
8467         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8468         (main): Just call test_function.
8469         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8470         (main): Just call test_function.
8471         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8472         * modules/frexp-ieee-tests (Files): Likewise.
8473         * modules/frexpl-ieee-tests (Files): Likewise.
8474
8475         Tests for module 'frexpl-ieee'.
8476         * modules/frexpl-ieee-tests: New file.
8477         * tests/test-frexpl-ieee.c: New file.
8478
8479         New module 'frexpl-ieee'.
8480         * modules/frexpl-ieee: New file.
8481
8482         Tests for module 'frexp-ieee'.
8483         * modules/frexp-ieee-tests: New file.
8484         * tests/test-frexp-ieee.c: New file.
8485
8486         New module 'frexp-ieee'.
8487         * modules/frexp-ieee: New file.
8488
8489         Tests for module 'frexpf-ieee'.
8490         * modules/frexpf-ieee-tests: New file.
8491         * tests/test-frexpf-ieee.c: New file.
8492
8493         New module 'frexpf-ieee'.
8494         * modules/frexpf-ieee: New file.
8495
8496 2012-02-26  Bruno Haible  <bruno@clisp.org>
8497
8498         roundl-ieee tests: More tests.
8499         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8500         (main): Add tests for [MX] shaded specification in POSIX.
8501         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8502         (Depends-on): Add isnanl-nolibm.
8503
8504         round-ieee tests: More tests.
8505         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8506         (main): Add tests for [MX] shaded specification in POSIX.
8507         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8508         (Depends-on): Add isnand-nolibm.
8509
8510         roundf-ieee tests: More tests.
8511         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8512         (main): Add tests for [MX] shaded specification in POSIX.
8513         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8514         (Depends-on): Add isnanf-nolibm.
8515
8516         truncl-ieee tests: More tests.
8517         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8518         (main): Add tests for [MX] shaded specification in POSIX.
8519         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8520         (Depends-on): Add isnanl-nolibm.
8521
8522         trunc-ieee tests: More tests.
8523         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8524         (main): Add tests for [MX] shaded specification in POSIX.
8525         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8526         (Depends-on): Add isnand-nolibm.
8527
8528         truncf-ieee tests: More tests.
8529         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8530         (main): Add tests for [MX] shaded specification in POSIX.
8531         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8532         (Depends-on): Add isnanf-nolibm.
8533
8534         ceill-ieee tests: More tests.
8535         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8536         (main): Add tests for [MX] shaded specification in POSIX.
8537         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8538         (Depends-on): Add isnanl-nolibm.
8539
8540         ceil-ieee tests: More tests.
8541         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8542         (main): Add tests for [MX] shaded specification in POSIX.
8543         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8544         (Depends-on): Add isnand-nolibm.
8545
8546         ceilf-ieee tests: More tests.
8547         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8548         (main): Add tests for [MX] shaded specification in POSIX.
8549         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8550         (Depends-on): Add isnanf-nolibm.
8551
8552         floorl-ieee tests: More tests.
8553         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8554         (main): Add tests for [MX] shaded specification in POSIX.
8555         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8556         (Depends-on): Add isnanl-nolibm.
8557
8558         floor-ieee tests: More tests.
8559         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8560         (main): Add tests for [MX] shaded specification in POSIX.
8561         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8562         (Depends-on): Add isnand-nolibm.
8563
8564         floorf-ieee tests: More tests.
8565         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8566         (main): Add tests for [MX] shaded specification in POSIX.
8567         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8568         (Depends-on): Add isnanf-nolibm.
8569
8570 2012-02-26  Bruno Haible  <bruno@clisp.org>
8571
8572         fpieee: More comments.
8573         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8574
8575 2012-02-25  Bruno Haible  <bruno@clisp.org>
8576
8577         Tests for module 'log10l'.
8578         * modules/log10l-tests: New file.
8579         * tests/test-log10l.c: New file.
8580         * tests/test-math-c++.cc: Check the declaration of log10l.
8581
8582         New module 'log10l'.
8583         * lib/math.in.h (log10l): New declaration.
8584         * lib/log10l.c: New file.
8585         * m4/log10l.m4: New file.
8586         * modules/log10l: New file.
8587         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8589         HAVE_DECL_LOG10L.
8590         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8591         HAVE_DECL_LOG10L.
8592         * doc/posix-functions/log10l.texi: Mention the new module.
8593
8594 2012-02-25  Bruno Haible  <bruno@clisp.org>
8595
8596         fmodl, remainder*: Avoid wrong results due to rounding errors.
8597         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8598         expected bounds.
8599         * lib/remainderf.c (remainderf): Likewise.
8600         * lib/remainder.c (remainder): Likewise.
8601         * lib/remainderl.c (remainderl): Likewise.
8602
8603 2012-02-25  Bruno Haible  <bruno@clisp.org>
8604
8605         Tests for module 'remainderl'.
8606         * modules/remainderl-tests: New file.
8607         * tests/test-remainderl.c: New file.
8608         * tests/test-math-c++.cc: Check the declaration of remainderl.
8609
8610         New module 'remainderl'.
8611         * lib/math.in.h (remainderl): New declaration.
8612         * lib/remainderl.c: New file.
8613         * m4/remainderl.m4: New file.
8614         * modules/remainderl: New file.
8615         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8617         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8618         HAVE_REMAINDERL.
8619         * doc/posix-functions/remainderl.texi: Mention the new module.
8620
8621 2012-02-25  Bruno Haible  <bruno@clisp.org>
8622
8623         Tests for module 'remainderf'.
8624         * modules/remainderf-tests: New file.
8625         * tests/test-remainderf.c: New file.
8626         * tests/test-math-c++.cc: Check the declaration of remainderf.
8627
8628         New module 'remainderf'.
8629         * lib/math.in.h (remainderf): New declaration.
8630         * lib/remainderf.c: New file.
8631         * m4/remainderf.m4: New file.
8632         * modules/remainderf: New file.
8633         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8635         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8636         HAVE_REMAINDERF.
8637         * doc/posix-functions/remainderf.texi: Mention the new module.
8638
8639 2012-02-25  Bruno Haible  <bruno@clisp.org>
8640
8641         remainder: Support for MSVC.
8642         * lib/math.in.h (remainder): New declaration.
8643         * lib/remainder.c: New file.
8644         * m4/remainder.m4: New file.
8645         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8646         (Depends-on): Add math, round, fma.
8647         (configure.ac): Use results of gl_FUNC_REMAINDER.
8648         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8650         HAVE_DECL_REMAINDER.
8651         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8652         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8653         * tests/test-math-c++.cc: Check the declaration of remainder.
8654         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8655         problems are fixed.
8656
8657 2012-02-25  Bruno Haible  <bruno@clisp.org>
8658
8659         Tests for module 'fmodl'.
8660         * modules/fmodl-tests: New file.
8661         * tests/test-fmodl.c: New file.
8662         * tests/test-math-c++.cc: Check the declaration of fmodl.
8663
8664         New module 'fmodl'.
8665         * lib/math.in.h (fmodl): New declaration.
8666         * lib/fmodl.c: New file.
8667         * m4/fmodl.m4: New file.
8668         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8670         REPLACE_FMODL.
8671         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8672         REPLACE_FMODL.
8673         * modules/fmodl: New file.
8674         * doc/posix-functions/fmodl.texi: Mention the new module.
8675
8676 2012-02-25  Bruno Haible  <bruno@clisp.org>
8677
8678         Tests for module 'modfl'.
8679         * modules/modfl-tests: New file.
8680         * tests/test-modfl.c: New file.
8681         * tests/test-math-c++.cc: Check the declaration of modfl.
8682
8683         New module 'modfl'.
8684         * lib/math.in.h (modfl): New declaration.
8685         * lib/modfl.c: New file.
8686         * m4/modfl.m4: New file.
8687         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8689         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8690         * modules/modfl: New file.
8691         * doc/posix-functions/modfl.texi: Mention the new module.
8692
8693 2012-02-25  Bruno Haible  <bruno@clisp.org>
8694
8695         Tests for module 'fabsl'.
8696         * modules/fabsl-tests: New file.
8697         * tests/test-fabsl.c: New file.
8698         * tests/test-math-c++.cc: Check the declaration of fabsl.
8699
8700         New module 'fabsl'.
8701         * lib/math.in.h (fabsl): New declaration.
8702         * lib/fabsl.c: New file.
8703         * m4/fabsl.m4: New file.
8704         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8706         REPLACE_FABSL.
8707         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8708         REPLACE_FABSL.
8709         * modules/fabsl: New file.
8710         * doc/posix-functions/fabsl.texi: Mention the new module.
8711
8712 2012-02-25  Bruno Haible  <bruno@clisp.org>
8713
8714         fabs tests: More tests.
8715         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8716         (zero): New variable.
8717         (main): Add tests for signed zero.
8718         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8719
8720         fabsf tests: More tests.
8721         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8722         (zero): New variable.
8723         (main): Add tests for signed zero.
8724         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8725
8726 2012-02-24  Bruno Haible  <bruno@clisp.org>
8727
8728         atanl: Provide function definition on MSVC.
8729         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8730         function pointer.
8731         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8732
8733 2012-02-24  Bruno Haible  <bruno@clisp.org>
8734
8735         acosl: Provide function definition on MSVC.
8736         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8737         function pointer.
8738         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8739
8740 2012-02-24  Bruno Haible  <bruno@clisp.org>
8741
8742         asinl: Provide function definition on MSVC.
8743         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8744         function pointer.
8745         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8746
8747 2012-02-24  Bruno Haible  <bruno@clisp.org>
8748
8749         tanl: Provide function definition on MSVC.
8750         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8751         function pointer.
8752         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8753
8754 2012-02-24  Bruno Haible  <bruno@clisp.org>
8755
8756         cosl: Provide function definition on MSVC.
8757         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8758         function pointer.
8759         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8760
8761 2012-02-24  Bruno Haible  <bruno@clisp.org>
8762
8763         sinl: Provide function definition on MSVC.
8764         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8765         function pointer.
8766         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8767
8768 2012-02-24  Bruno Haible  <bruno@clisp.org>
8769
8770         logl: Provide function definition on MSVC.
8771         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8772         function pointer.
8773         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8774
8775 2012-02-24  Bruno Haible  <bruno@clisp.org>
8776
8777         expl: Provide function definition on MSVC.
8778         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8779         function pointer.
8780         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8781
8782 2012-02-24  Bruno Haible  <bruno@clisp.org>
8783
8784         sqrtl: Provide function definition on MSVC.
8785         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8786         a function pointer.
8787         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8788
8789 2012-02-24  Bruno Haible  <bruno@clisp.org>
8790
8791         ceill: Provide function definition on MSVC.
8792         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8793         used as a function pointer.
8794         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8795
8796 2012-02-24  Bruno Haible  <bruno@clisp.org>
8797
8798         floorl: Provide function definition on MSVC.
8799         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8800         used as a function pointer.
8801         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8802
8803 2012-02-24  Bruno Haible  <bruno@clisp.org>
8804
8805         ceilf: Provide function definition on MSVC.
8806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8807         used as a function pointer.
8808         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8809
8810 2012-02-24  Bruno Haible  <bruno@clisp.org>
8811
8812         floorf: Provide function definition on MSVC.
8813         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8814         used as a function pointer.
8815         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8816
8817 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8818
8819         stdnoreturn: new module
8820         This implements a replacement for C11's <stdnoreturn.h>.
8821         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8822         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8823         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8824         * tests/test-stdnoreturn.c: New files.
8825
8826 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8827
8828         regex: fix false multibyte matches in some regular expressions
8829         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8830         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8831         * lib/regex_internal.c (re_string_skip_chars):
8832         Fix miscomputation of remain_len that may cause incomplete
8833         multi-byte character and false match.
8834
8835 2012-02-24  Jim Meyering  <meyering@redhat.com>
8836
8837         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8838         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8839         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8840         Remove now-unnecessary str''cmp obfuscation.
8841         Suggested by Akim Demaille.
8842
8843 2012-02-24  Bruno Haible  <bruno@clisp.org>
8844
8845         streq: Rename macro.
8846         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8847         * NEWS: Mention the change.
8848         * lib/mbrtowc.c (mbrtowc): Update.
8849         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8850         * lib/wcwidth.c (wcwidth): Update.
8851         Suggested by Akim Demaille and Jim Meyering.
8852
8853 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8854
8855         regex: fix typo in definition of MIN
8856         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8857         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8858
8859 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8860             Bruno Haible  <bruno@clisp.org>
8861
8862         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8863         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8864         entries into a stack-allocated buffer directly.
8865         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8866
8867 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8868             Bruno Haible  <bruno@clisp.org>
8869
8870         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8871
8872          - There were several instances of this pattern:
8873
8874              for (;;) {
8875                n = acl (f, GETACLCNT, 0, NULL);
8876                [ allocate an array A of size N ]
8877                if (acl (f, GETACL, n, a) == n)
8878                  break;
8879              }
8880
8881            This loop might never terminate if some other process is constantly
8882            manipulating the file's ACL.  The loop should be rewritten to
8883            terminate.
8884
8885          - The acl (... GETACLNT ...) call is merely an optimization; its value
8886            is merely a hint as to how big to make the array.  A better
8887            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8888            and just guess a reasonably-big size, growing the size and trying
8889            again if it's not large enough.  This guarantees termination, and
8890            saves a system call.
8891
8892         * lib/acl-internal.h: Include <limits.h>.
8893         (MIN, SIZE_MAX): New macros.
8894         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8895         a stack-allocated buffer, and use malloc if it does not fit. Don't
8896         use GETACLCNT.
8897         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8898
8899 2012-02-19  Bruno Haible  <bruno@clisp.org>
8900
8901         acl: Fix endless loop on Solaris with vxfs.
8902         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8903         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8904         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8905         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8906         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8907         Reported by Bill Jones in
8908         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8909
8910 2012-02-19  Bruno Haible  <bruno@clisp.org>
8911
8912         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8913         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8914         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8915         that this function returns 0 in some more cases.
8916
8917 2012-02-19  Bruno Haible  <bruno@clisp.org>
8918
8919         acl: Update doc references.
8920         * doc/acl-resources.txt: Update links to Solaris documentation.
8921
8922 2012-02-19  Bruno Haible  <bruno@clisp.org>
8923
8924         Fix test failure in many locales on Solaris 11.
8925         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8926         'tr' arguments.
8927         * tests/test-pipe-filter-ii1.c (main): Likewise.
8928         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8929         expressions in the C locale.
8930         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8931         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8932
8933 2012-02-19  Bruno Haible  <bruno@clisp.org>
8934
8935         gnulib-tool: Improve usage message.
8936         * gnulib-tool (func_usage): Move doc of --help and --version to the
8937         section "Operation modes".
8938
8939 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8940
8941         README-release: make it easier to execute commands
8942         * top/README-release: break commands out on to separate lines.
8943
8944 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8945
8946         GNUmakefile: simplify detection of unconfigured trees
8947         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8948         whether the tree make is being run from is already configured or
8949         not.  Related simplifications.
8950
8951 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8952
8953         * gnulib-tool (func_usage): Document --help and --version.
8954
8955 2012-02-11  Jim Meyering  <meyering@redhat.com>
8956
8957         bootstrap: don't exit 0 upon gnulib-tool failure
8958         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8959         its exit status, not 0.
8960
8961 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8962
8963         README-release: various improvements
8964         * top/README-release: Give a command to push changes for the
8965         release.  Add "distcheck" to list of other pre-release checks.
8966         Fix instance of "make stable" which should be "make TYPE".
8967
8968 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8969
8970         maint: replace FSF snail-mail addresses with URLs
8971         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8972         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8973         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8974         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8975         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8976         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8977         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8978         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8979         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8980         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8981         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8982         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8983         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8984         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8985         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8986         * lib/glthread/thread.c, lib/glthread/thread.h:
8987         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8988         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8989         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8990         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8991         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8992         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8993         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8994         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8995         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8996         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8997         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8998         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8999         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9000         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9001         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9002         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9003         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9004         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9005         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9006         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9007         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9008         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9009         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9010         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9011         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9012         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9013         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9014         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9015         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9016         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9017         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9018         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9019         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9020         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9021         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9022         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9023         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9024         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9025         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9026         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9027         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9028         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9029         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9030         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9031         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9032         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9033         * tests/test-poll.c, tests/test-quotearg-simple.c:
9034         * tests/test-quotearg.c, tests/test-quotearg.h:
9035         * tests/test-round-ieee.c, tests/test-round1.c:
9036         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9037         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9038         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9039         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9040         * tests/test-strerror.c, tests/test-strerror_r.c:
9041         * tests/test-strsignal.c, tests/test-strverscmp.c:
9042         * tests/test-xmemdup0.c:
9043         Replace FSF snail mail addresses with URLs, as per GNU coding
9044         standards.  See glibc bug
9045         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9046
9047 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9048
9049         README-release: capitalize a word and split a line
9050         * top/README-release: Fix punctuation and spacing.
9051
9052 2012-02-08  Akim Demaille  <demaille@gostai.com>
9053
9054         fatal-signal: use C prototypes (with explicit void).
9055         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9056         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9057
9058 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9059
9060         regex: spelling fix
9061         * lib/regexec.c: spelling fix
9062
9063         regex: rely on stdint.h for SIZE_MAX
9064         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9065
9066 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9067
9068         regex: merge glibc changes
9069
9070         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9071         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9072         (init_word_char): Work even if bitset words are not exactly 32 or
9073         64 bits wide.  Don't assume there are no padding bits.
9074         * lib/regex.c [_LIBC]: Do not include <config.h>.
9075         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9076         and -Wtype-limits.
9077         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9078         needless disagreement with glibc.  All uses changed.  Define it to
9079         1 only if _GNU_SOURCE, to match glibc.
9080         (_REG_RM_NAME): Remove; no longer needed, since the names in
9081         question are now all protected by __USE_GNU.
9082         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9083         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9084         * lib/regex_internal.h (MIN): New macro.
9085
9086         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9087         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9088
9089         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9090         * lib/regex_internal.c (re_string_fetch_byte_case):
9091         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9092         is miscompiled, and it turns out it is because of an incorrect
9093         attribute on re_string_fetch_byte_case.  Unlike
9094         re_string_peek_byte_case, this one is really not pure, it modifies
9095         memory (increments pstr->cur_idx), and with the pure attribute GCC
9096         assumed it doesn't and it cached the presumed value of
9097         regexp->cur_idx in a variable across the
9098          for (;; ++i)
9099            {
9100              if (i >= BRACKET_NAME_BUF_SIZE)
9101                return REG_EBRACK;
9102              if (token->type == OP_OPEN_CHAR_CLASS)
9103                ch = re_string_fetch_byte_case (regexp);
9104              else
9105                ch = re_string_fetch_byte (regexp);
9106              if (re_string_eoi(regexp))
9107                return REG_EBRACK;
9108              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9109                break;
9110              elem->opr.name[i] = ch;
9111            }
9112
9113         2011-11-29 Andreas Schwab <schwab@redhat.com>
9114         * lib/regcomp.c (build_equiv_class):
9115         Fix access after end of search string in regex matcher.
9116
9117         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9118         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9119
9120         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9121         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9122
9123         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9124         * lib/regcomp.c (parse_branch, parse_sub_exp):
9125         More regex memory leak fixes and tests.
9126         (parse_sub_exp, parse_bracket_exp):
9127         Fix memory leak for some invalid regular expressions.
9128
9129         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9130         * lib/regex_internal.c, lib/regexec.c:
9131         Fix unnecessary overallocation due to incomplete character.  When
9132         incomplete characters are found at the end of a string the code
9133         ran amok and allocated lots of memory.  Stricter limits are now in
9134         place.
9135
9136         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9137         * lib/regex.h: Update documentation.
9138
9139         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9140         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9141
9142         2010-05-05 Andreas Schwab <schwab@redhat.com>
9143         * lib/regexec.c (find_collation_sequence_value):
9144         Fix lookup of collation sequence value during regexp matching.
9145
9146         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9147         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9148
9149         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9150         * lib/regex.h: Cleanup namespace.
9151
9152         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9153         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9154
9155         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9156         * lib/regex_internal.h: Prevent some declarations and definitions
9157         to be seen when used in tests.
9158
9159         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9160         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9161         __libc_lock_* macros if not _LIBC.
9162         (struct re_dfa_t): Add lock.
9163
9164 2012-02-07  Eric Blake  <eblake@redhat.com>
9165
9166         maint.mk: also prohibit lower-case @var@
9167         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9168         lower case, like @top_srcdir@.
9169
9170 2012-02-04  Eric Blake  <eblake@redhat.com>
9171
9172         canonicalize: avoid uninitialized memory use
9173         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9174         random '/' left in dest.
9175         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9176
9177 2012-02-04  Bruno Haible  <bruno@clisp.org>
9178
9179         isatty: Fix test failure of ptsname_r on native Windows.
9180         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9181         and don't set errno.
9182         (isatty): Test first whether fd is valid. Set errno when returning 0.
9183
9184 2012-02-04  Bruno Haible  <bruno@clisp.org>
9185
9186         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9187         * tests/test-spawn-pipe-main.c: Include progname.h.
9188         (main): Invoke set_program_name.
9189         * modules/spawn-pipe-tests (Depends-on): Add progname.
9190
9191         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9192         * tests/test-nonblocking-socket-main.c: Include progname.h.
9193         (main): Invoke set_program_name.
9194         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9195
9196         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9197         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9198         (main): Invoke set_program_name.
9199         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9200
9201 2012-02-04  Eric Blake  <eblake@redhat.com>
9202
9203         canonicalize-lgpl: fix // handling
9204         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9205
9206         canonicalize: fix // handling
9207         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9208         /// to //, since only // is special.
9209
9210 2012-02-04  Bruno Haible  <bruno@clisp.org>
9211
9212         ioctl: Fix test failure on native Windows.
9213         * lib/ioctl.c: Include msvc-nothrow.h.
9214         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9215
9216 2012-02-04  Bruno Haible  <bruno@clisp.org>
9217
9218         fsync: Avoid test failure on native Windows.
9219         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9220         read-only.
9221
9222 2012-02-04  Bruno Haible  <bruno@clisp.org>
9223
9224         sys_select: Avoid syntax error on OpenBSD 5.0.
9225         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9226         currently being included, just include the system's <sys/select.h>.
9227
9228 2012-02-04  Bruno Haible  <bruno@clisp.org>
9229
9230         sys_select: Avoid syntax error on OpenBSD 5.0.
9231         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9232         <sys/select.h>, not before.
9233         Reported by Jiri B <jirib@devio.us>.
9234
9235 2012-02-04  Bruno Haible  <bruno@clisp.org>
9236
9237         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9238         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9239         global variables.
9240         * tests/test-get-rusage-data.c (main): Likewise.
9241         Reported by Jim Meyering.
9242
9243 2012-02-04  Bruno Haible  <bruno@clisp.org>
9244
9245         stdioext: Fix last commit.
9246         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9247
9248 2012-02-03  Bruno Haible  <bruno@clisp.org>
9249
9250         stdioext: Add tentative support for Plan9.
9251         * lib/stdio-impl.h: Include <errno.h>.
9252         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9253         * lib/freadable.c (freadable): Likewise.
9254         * lib/fwritable.c (fwritable): Likewise.
9255         * lib/fbufmode.c (fbufmode): Likewise.
9256         * lib/freading.c (freading): Likewise.
9257         * lib/fwriting.c (fwriting): Likewise.
9258         * lib/freadptr.c (freadptr): Likewise.
9259         * lib/freadseek.c (freadptrinc): Likewise.
9260         * lib/freadahead.c (freadahead): Likewise.
9261         * lib/fpurge.c (fpurge): Likewise.
9262         * lib/fseeko.c (rpl_fseeko): Likewise.
9263         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9264         Reported by Jens Staal <staal1978@gmail.com>.
9265
9266 2012-02-02  Jim Meyering  <meyering@redhat.com>
9267
9268         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9269         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9270         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9271         not even to try to add the attribute.  Instead, add a pragma to suppress
9272         the suggestion/warning.
9273
9274 2012-01-31  Karl Berry  <karl@gnu.org>
9275
9276         setstate doc: typo.
9277         * doc/posix-functions/setstate.texi (setstate): { not (.
9278
9279 2012-01-31  Bruno Haible  <bruno@clisp.org>
9280
9281         popen: Make more robust on Windows.
9282         * lib/popen.c: On native Windows, use the _popen based code even if
9283         HAVE_POPEN is set.
9284         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9285         environment variable on native Windows.
9286
9287 2012-01-30  Bruno Haible  <bruno@clisp.org>
9288
9289         pclose: Fix typo.
9290         * lib/stdio.in.h (pclose): Fix typo in warning message.
9291
9292 2012-01-30  Bruno Haible  <bruno@clisp.org>
9293
9294         doc about getlogin_r, setstate.
9295         * doc/posix-functions/getlogin_r.texi: List the incompatible
9296         declaration problem under "not fixed by gnulib".
9297         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9298         problem on Solaris 11 and other platforms.
9299
9300 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9301             Bruno Haible  <bruno@clisp.org>
9302
9303         poll tests: Make test more robust.
9304         * tests/test-poll.c: Include macros.h.
9305         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9306         return value of various I/O operations.
9307         * modules/poll-tests (Files): Add tests/macros.h.
9308
9309 2012-01-30  Bruno Haible  <bruno@clisp.org>
9310
9311         sys_stat: Fix support for mingw64 and MSVC.
9312         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9313         header files already do it.
9314         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9315         stat itself.
9316         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9317
9318 2012-01-30  Bruno Haible  <bruno@clisp.org>
9319
9320         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9322         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9323
9324 2012-01-29  Bruno Haible  <bruno@clisp.org>
9325
9326         quotearg: Fix test failure on MacOS X 10.5.
9327         * tests/test-quotearg-simple.c: Include localcharset.h.
9328         (main): If the locale encoding is not ASCII, bypass the tests of
9329         locale_quoting_style and clocale_quoting_style.
9330         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9331
9332 2012-01-29  Jim Meyering  <meyering@redhat.com>
9333
9334         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9335         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9336         detect uses of canonicalize_file_name.
9337
9338 2012-01-28  Bruno Haible  <bruno@clisp.org>
9339
9340         test-framework-sh: Fix test failure with AIX 7.1 diff.
9341         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9342         in column 1, like 'diff -c' does.
9343         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9344         whether 'diff -u' is used. Instead, test whether the output contains
9345         some '@' character.
9346
9347 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9348
9349         strtoimax: eliminate need for stdint.h, inttypes.h checks
9350         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9351         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9352         the prerequisites for a recently-introduced strtoimax test.
9353         I guess this might cause strtoimax to be replaced when not
9354         strictly necessary on older hosts, but this shouldn't introduce
9355         any bugs and it should make Emacs 'configure' faster on typical
9356         modern hosts.  Problem discovered when importing the latest gnulib
9357         to an Emacs test version.
9358         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9359
9360 2012-01-28  Bruno Haible  <bruno@clisp.org>
9361
9362         sys_time: Override 'struct timeval' on some native Windows platforms.
9363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9364         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9365         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9366         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9367         needs to be overridden.
9368         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9369         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9370         * tests/test-sys_select.c: Check that the tv_sec member has the same
9371         size as a 'time_t'.
9372         * tests/test-sys_time.c: Likewise.
9373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9374         is set, set also REPLACE_GETTIMEOFDAY.
9375         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9376         convert the resulting 'struct timeval' before returning.
9377         * lib/select.c: Include <sys/time.h>.
9378         (select, timeval): Undefine at the right place.
9379         * modules/select (Depends-on): Add sys_time.
9380         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9381         some Windows platforms.
9382         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9383
9384 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9385
9386         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9387         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9388         an integer.
9389         * lib/fcntl.c (dupfd): Likewise.
9390         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9391
9392 2012-01-28  Bruno Haible  <bruno@clisp.org>
9393
9394         fcntl: Avoid compilation error on native Windows.
9395         * modules/fcntl (Depends-on): Add 'close'.
9396
9397 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9398
9399         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9400         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9401         pointer to an integer.
9402         * lib/poll.c (IsConsoleHandle): Likewise.
9403         * lib/isatty.c (IsConsoleHandle): Likewise.
9404
9405 2012-01-28  Jim Meyering  <meyering@redhat.com>
9406
9407         doc: clarify README-release
9408         * top/README-release: Clarify: you should make a point to have
9409         the latest stable versions of build tools in your PATH, and the
9410         reference to buildreq is solely for its list of tool names, not
9411         for its minimal-functional version numbers.
9412         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9413
9414         maint.mk: use more readable (yet functionally equivalent) quoting
9415         It is common to quote a single quote in a single quoted string like
9416         this:  '...'\''...'.  Unless you know the idiom, that looks like
9417         gibberish, so prefer to double-quote the string when possible.
9418         Then you can use a more readable, lone single quote: "...'..."
9419         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9420         "don't" is more readable than the equivalent 'don'\''t'.
9421         (sc_cast_of_x_alloc_return_value): Likewise.
9422         (sc_cast_of_alloca_return_value): Likewise.
9423         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9424         rather than '\'':'\''.
9425
9426 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9427
9428         stdalign: relax _Alignof and tighten _Alignas test
9429         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9430         as it was too strict: alignof must divide offsetof, but it need
9431         not equal offsetof.  Inspired by Joseph S. Myers's comment
9432         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9433         Conversely, tighten the _Alignas test a bit, as the resulting
9434         alignment must be exactly 8.
9435
9436 2012-01-27  Bruno Haible  <bruno@clisp.org>
9437
9438         stdalign: Document the last change.
9439         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9440
9441 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9442
9443         stdalign: check that alignof and offsetof are consistent
9444         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9445         Problem reported for gnulib by Richard W.M. Jones in
9446         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9447
9448 2012-01-27  Jim Meyering  <meyering@redhat.com>
9449
9450         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9451         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9452         convert a sequence with gaps to the minimal containing range.
9453         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9454         * tests/test-update-copyright.sh: Test for this.
9455         The FSF confirmed it is ok to do this, assuming there is at
9456         least one significant change per year in the affected range:
9457         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9458
9459 2012-01-26  Bruno Haible  <bruno@clisp.org>
9460
9461         pipe2: refine doc about thread-safety
9462         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9463         multithread-safety problem.
9464         * doc/glibc-functions/accept4.texi: Likewise.
9465
9466 2012-01-26  Bruno Haible  <bruno@clisp.org>
9467
9468         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9469         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9470         In the test program, include <fcntl.h>, for O_RDONLY.
9471
9472 2012-01-26  Eric Blake  <eblake@redhat.com>
9473
9474         pipe2: document lack of thread-safety in replacement
9475         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9476         issue in replacement.
9477         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9478         Based on a report by Eric Wong.
9479
9480 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9481             Bruno Haible  <bruno@clisp.org>
9482
9483         malloca: Avoid warnings on x86_64 mingw64.
9484         * lib/malloca.c: Include <stdint.h>.
9485         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9486         * modules/malloca (Depends-on): Add stdint.
9487         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9488
9489 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9490
9491         obstack: remove __STDC__ conditionals
9492         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9493         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9494         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9495         m4/include_next.m4 as the only gnulib-maintained places that still
9496         refer to __STDC__.
9497
9498 2012-01-24  Bruno Haible  <bruno@clisp.org>
9499
9500         havelib: Modern quoting.
9501         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9502         the recent change to the GNU coding standards.
9503
9504 2012-01-24  Bruno Haible  <bruno@clisp.org>
9505
9506         stdint: Improve support for Android.
9507         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9508         Reported by Simon Josefsson <simon@josefsson.org>.
9509
9510 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9511
9512         doc: omit trailing empty lines from INSTALL etc.
9513         * doc/Makefile (INSTALL): Omit trailing empty lines.
9514         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9515         omit trailing empty lines.  This simplifies the build procedure.
9516
9517 2012-01-23  Jim Meyering  <meyering@redhat.com>
9518
9519         tests: avoid spurious warnings about gl_sockets_startup
9520         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9521         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9522         reporting a "statement with no effect".
9523         * tests/test-accept.c (main): Mark as "(void)".
9524         * tests/test-accept4.c (main): Likewise.
9525         * tests/test-bind.c (main): Likewise.
9526         * tests/test-connect.c (main): Likewise.
9527         * tests/test-getpeername.c (main): Likewise.
9528         * tests/test-getsockname.c (main): Likewise.
9529         * tests/test-getsockopt.c (main): Likewise.
9530         * tests/test-listen.c (main): Likewise.
9531         * tests/test-recv.c (main): Likewise.
9532         * tests/test-recvfrom.c (main): Likewise.
9533         * tests/test-send.c (main): Likewise.
9534         * tests/test-sendto.c (main): Likewise.
9535         * tests/test-setsockopt.c (main): Likewise.
9536         * tests/test-shutdown.c (main): Likewise.
9537
9538 2012-01-21  Bruno Haible  <bruno@clisp.org>
9539
9540         locale-fr.m4: Fix for Android.
9541         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9542         failure of the test program on Bionic libc.
9543
9544 2012-01-21  Jim Meyering  <meyering@redhat.com>
9545
9546         bootstrap: fail when bootstrap_post_import_hook fails
9547         Otherwise, it's far too easy to miss diagnostics emitted
9548         between gnulib-tool's output and that of running configure.
9549         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9550
9551 2012-01-17  Jim Meyering  <meyering@redhat.com>
9552
9553         maint: enable sc_trailing_blank
9554         * build-aux/pmccabe.css: Remove trailing blanks.
9555         * doc/acl-cygwin.txt: Likewise.
9556         * doc/gnu-oids.texi: Likewise
9557         * cfg.mk: Enable sc_trailing_blank.
9558         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9559
9560 2012-01-17  Jim Meyering  <meyering@redhat.com>
9561
9562         maint: enable sc_prohibit_openat_without_use
9563         * cfg.mk: Enable sc_prohibit_openat_without_use.
9564         Exempt lib/selinux-at.c.
9565
9566 2012-01-17  Jim Meyering  <meyering@redhat.com>
9567
9568         maint: enable sc_prohibit_cloexec_without_use
9569         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9570         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9571
9572 2012-01-17  Jim Meyering  <meyering@redhat.com>
9573
9574         maint: enable sc_prohibit_intprops_without_use
9575         * cfg.mk: Enable sc_prohibit_intprops_without_use
9576         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9577
9578 2012-01-17  Jim Meyering  <meyering@redhat.com>
9579
9580         maint: enable sc_prohibit_hash_pjw_without_use
9581         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9582         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9583         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9584         following " (".
9585
9586 2012-01-17  Jim Meyering  <meyering@redhat.com>
9587
9588         maint: enable double-word-prohibiting rule
9589         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9590         Exempt three files.
9591
9592 2012-01-17  Jim Meyering  <meyering@redhat.com>
9593
9594         maint: remove empty lines at EOF, but excluding modules/*
9595         Apply syntax rules at home as well as abroad.  Most changes
9596         were induced by running this:
9597           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9598             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9599             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9600         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9601         Exempt modules/* and two binary files.
9602         Also exempt doc/INSTALL*, per request from Bruno Haible.
9603         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9604         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9605         * doc/Copyright/request-assign.future: Likewise.
9606         * doc/Copyright/request-disclaim.changes: Likewise.
9607         * doc/INSTALL: Likewise.
9608         * doc/INSTALL.ISO: Likewise.
9609         * doc/INSTALL.UTF-8: Likewise.
9610         * doc/acl-cygwin.txt: Likewise.
9611         * doc/acl-resources.txt: Likewise.
9612         * doc/fdl-1.2.texi: Likewise.
9613         * doc/fdl-1.3.texi: Likewise.
9614         * doc/fdl.texi: Likewise.
9615         * lib/argp-pin.c: Likewise.
9616         * lib/round.c: Likewise.
9617         * lib/unicase/u16-totitle.c: Likewise.
9618         * lib/unictype/block_test.c: Likewise.
9619         * lib/uninorm/canonical-decomposition.c: Likewise.
9620         * m4/README: Likewise.
9621         * m4/relocatable-lib.m4: Likewise.
9622         * tests/test-isnand-nolibm.c: Likewise.
9623         * tests/test-isnand.c: Likewise.
9624         * tests/uninorm/NormalizationTest.txt: Likewise.
9625
9626 2012-01-17  Jim Meyering  <meyering@redhat.com>
9627
9628         maint: add framework to run syntax-check rules against gnulib sources
9629         * cfg.mk: New file, to disable all currently-failing tests.
9630         We'll enable them one by one, as they are made to pass.
9631         * Makefile (sc_maint): New rule.
9632
9633 2012-01-21  Bruno Haible  <bruno@clisp.org>
9634
9635         stdint: Add support for Android.
9636         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9637         include the system's <stdint.h>.
9638         Reported by Simon Josefsson <simon@josefsson.org>.
9639
9640 2012-01-19  Jim Meyering  <meyering@redhat.com>
9641
9642         bootstrap: add bootstrap_post_import_hook
9643         Bison does still need something like the gnulib_mk_hook whose
9644         invocation I had to remove along with slurp in commit 767ccd40.
9645         Technically, we could get along without it, but doing so would
9646         have required living with a warning and a mandatory post-bootstrap
9647         automake rerun.
9648         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9649         (bootstrap_post_import_hook): New function.
9650         Invoke it after gnulib-tool --import and before autoreconf.
9651
9652 2012-01-18  Jim Meyering  <meyering@redhat.com>
9653
9654         gitlog-to-changelog: don't use "no_"-prefixed variable name
9655         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9656         to enable both --cluster and --no-cluster.  Change variable name,
9657         s/\$no_cluster/$cluster/, and reverse usage to match.
9658
9659         gitlog-to-changelog: use "||", not "or" in expressions
9660         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9661         expressions.
9662
9663 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9664
9665         gitlog-to-changelog: new option --no-cluster
9666         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9667         clustering of adjacent commit messages.
9668
9669 2012-01-17  Jim Meyering  <meyering@redhat.com>
9670
9671         maint: spell file systems with two words, not one
9672         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9673         two words, not one.
9674
9675 2012-01-16  Jim Meyering  <meyering@redhat.com>
9676
9677         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9678         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9679
9680 2012-01-16  Eric Blake  <eblake@redhat.com>
9681
9682         bootstrap: cater to autoconf 2.59
9683         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9684         is not available.
9685
9686         bootstrap: properly check for libtool
9687         * build-aux/bootstrap (libtoolize): Also run libtool when older
9688         usage is detected.
9689
9690 2012-01-15  Bruno Haible  <bruno@clisp.org>
9691
9692         Improve support for MSVC 9.
9693         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9694         clashes on MSVC.
9695         * lib/fcntl.in.h: Likewise.
9696         * lib/stdlib.in.h: Likewise.
9697         * lib/sys_stat.in.h: Likewise.
9698
9699 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9700
9701         gnupload: we hold the master copy of this script now
9702         For motivation and more information, see:
9703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9704         * build-aux/gnupload: Make it clear in the heading comments that the
9705         master copy of this file is maintained by gnulib.  Since we are at
9706         it, bump its copyright year and ...
9707         ($scriptversion): ... the date in its version.
9708         ($usage): Patches and bug reports should be sent to the gnulib list,
9709         not the automake one.
9710         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9711         anymore.
9712
9713 2012-01-15  Bruno Haible  <bruno@clisp.org>
9714
9715         Fix module 'random'.
9716         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9717         initstate, setstate are declared.
9718
9719 2012-01-14  Bruno Haible  <bruno@clisp.org>
9720
9721         Tests for module 'random'.
9722         * modules/random-tests: New file.
9723         * tests/test-random.c: New file, based on tests/test-random_r.c.
9724
9725         New module 'random'.
9726         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9727         declarations.
9728         * lib/random.c: New file, based on glibc/stdlib/random.c.
9729         * m4/random.m4: New file.
9730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9731         HAVE_RANDOM.
9732         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9733         * modules/random: New file.
9734         * config/srclist.txt: Add an entry for random.c.
9735         * doc/posix-functions/random.texi: Mention the 'random' module.
9736         * doc/posix-functions/initstate.texi: Likewise.
9737         * doc/posix-functions/setstate.texi: Likewise.
9738         * doc/posix-functions/srandom.texi: Likewise.
9739
9740 2012-01-12  Bruno Haible  <bruno@clisp.org>
9741
9742         random_r: Use common idioms.
9743         * lib/random_r.c: Include <stdlib.h> first.
9744
9745         random_r: Override incompatible API on AIX, OSF/1.
9746         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9747         Override the system function if REPLACE_RANDOM_R is 1.
9748         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9749         and OSF/1, set REPLACE_RANDOM_R.
9750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9751         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9752         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9753         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9754         * doc/glibc-functions/random_r.texi: Likewise.
9755         * doc/glibc-functions/setstate_r.texi: Likewise.
9756
9757         random_r: Support for MSVC 9.
9758         * lib/random_r.c: Include stdint.h, not inttypes.h.
9759
9760 2012-01-12  Eric Blake  <eblake@redhat.com>
9761
9762         inet_ntop: guard extra work by IF_LINT
9763         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9764         better code generation when not checking for warnings.
9765         Suggested by Paul Eggert and Jim Meyering.
9766
9767         strptime: fix regression on mingw
9768         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9769         Fix regression.  Reported by Bruno Haible.
9770
9771 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9772             Bruno Haible  <bruno@clisp.org>
9773
9774         copy-file: add error-code-returning variant.
9775         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9776         (qcopy_file_preserving): New declaration.
9777         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9778         copy_file_preserving. Change return type to 'int'. Don't emit an error
9779         message here.
9780         (copy_file_preserving): New function.
9781         * tests/test-copy-file.c: Include <stdlib.h>.
9782         (main): Test qcopy_file_preserving if the environment variable
9783         NO_STDERR_OUTPUT is set.
9784         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9785         with NO_STDERR_OUTPUT
9786         * tests/test-copy-file-2.sh: Likewise.
9787
9788 2012-01-10  Bruno Haible  <bruno@clisp.org>
9789
9790         copy-file: Use 'quote' module consistently.
9791         * lib/copy-file.c (copy_file_preserving): Use quote().
9792
9793         copy-file: Refactor.
9794         * lib/copy-file.c: Include quote.h.
9795         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9796         message here.
9797         * modules/copy-file (Depends-on): Add quote.
9798
9799         acl: Export qcopy_acl.
9800         * lib/acl.h (qcopy_acl): New declaration.
9801         * lib/copy-acl.c (qcopy_acl): Make non-static.
9802
9803         acl: Rename a local variable.
9804         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9805
9806         acl: Align return values of copy_acl and qcopy_acl.
9807         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9808         maybe < -1.
9809
9810 2012-01-11  Eric Blake  <eblake@redhat.com>
9811
9812         strptime: silence gcc warnings
9813         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9814         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9815         Reported by Daniel P. Berrange.
9816
9817         inet_ntop: silence gcc warning
9818         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9819         Reported by Daniel P. Berrange.
9820
9821 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9822
9823         getloadavg test: skip the test on GNU/Linux without /proc mounted
9824         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9825         file.  When /proc is not mounted, it always fails with ENOENT.
9826         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9827         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9828
9829 2012-01-10  Bruno Haible  <bruno@clisp.org>
9830
9831         regex: Avoid link error on MSVC 9.
9832         * modules/regex (Depends-on): Add wctype.
9833
9834 2012-01-10  Bruno Haible  <bruno@clisp.org>
9835
9836         doc: Mention --with-tests option.
9837         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9838         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9839         --with-tests.
9840         Reported by Reuben Thomas.
9841
9842 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9843
9844         users.txt: order package names lexicographically.
9845         * users.txt: Order package names lexicographically.
9846
9847 2012-01-10  Jim Meyering  <meyering@redhat.com>
9848
9849         maint.mk: fix description in comment
9850         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9851
9852         ignore-value: remove deprecated ignore_ptr function
9853         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9854         * NEWS: Note this.
9855
9856 2012-01-09  Jim Meyering  <meyering@redhat.com>
9857
9858         test-init.sh: avoid a subshell
9859         * tests/test-init.sh: Remove protective subshell.
9860         Suggested by Bernhard Voelker.  While a subshell is normally
9861         required to protect against older shells (Solaris, FreeBSD) that
9862         warn about a missing program before performing redirection, the
9863         shell-selection tests performed by init.sh probably exclude any
9864         offending shell.
9865
9866 2012-01-08  Bruno Haible  <bruno@clisp.org>
9867
9868         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9869         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9870         variable.
9871
9872 2012-01-08  Bruno Haible  <bruno@clisp.org>
9873
9874         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9875         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9876         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9877         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9878         macro.
9879         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9880         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9881         * lib/spawn_faction_addopen.c: Add workaround implementation if
9882         HAVE_WORKING_POSIX_SPAWN.
9883         * modules/spawn (Makefile): Substitute
9884         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9885         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9886         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9888         (Depends-on): Update conditions.
9889         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9890         the Solaris 11 bug.
9891
9892 2012-01-08  Bruno Haible  <bruno@clisp.org>
9893
9894         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9895         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9896         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9897         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9898         macro.
9899         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9901         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9902         HAVE_WORKING_POSIX_SPAWN.
9903         * modules/spawn (Makefile): Substitute
9904         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9905         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9906         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9907         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9908         (Depends-on): Update conditions.
9909         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9910         the Solaris 11 bug.
9911
9912 2012-01-08  Bruno Haible  <bruno@clisp.org>
9913
9914         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9915         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9916         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9918         HAVE_WORKING_POSIX_SPAWN.
9919         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9920         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9921         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9922         * lib/spawn_faction_addclose.c: Add workaround implementation if
9923         HAVE_WORKING_POSIX_SPAWN.
9924         * modules/spawn (Makefile): Substitute
9925         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9926         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9927         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9929         (Depends-on): Update conditions.
9930         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9931         the Solaris 11 bug.
9932
9933 2012-01-08  Bruno Haible  <bruno@clisp.org>
9934
9935         doc: Update for Solaris 11 2011-11.
9936         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9937         * m4/printf.m4: Update comments.
9938
9939 2012-01-08  Bruno Haible  <bruno@clisp.org>
9940
9941         mktime: Avoid compilation error on Solaris 11.
9942         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9943
9944 2012-01-08  Bruno Haible  <bruno@clisp.org>
9945
9946         doc: Small fix.
9947         * doc/posix-headers/nl_types.texi: Correct platforms list.
9948
9949 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9950
9951         Add lgpl-3.0 module.
9952         * MODULES.html.sh (Support for building documentation): Add
9953         lgpl-3.0.
9954         * modules/lgpl-3.0: New file.
9955
9956 2012-01-08  Jim Meyering  <meyering@redhat.com>
9957
9958         select.c: indent with spaces, not TABs
9959         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9960
9961 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9962
9963         quotearg: do not use grave accent for left quote
9964         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9965         locale_quoting_style.
9966         (quotearg_buffer_restyled): Fix example.
9967         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9968
9969 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9970
9971         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9972         Most programs do not have translation catalogs for English and much
9973         less separate catalogs for British and American English.  Drop the
9974         suggestion to translators about these two, and provide it
9975         automatically for Unicode locales.  Like most programs, even those
9976         using American English, we use single quotation marks.  This conflicts
9977         with the American typographic convention, but works better when you
9978         cite the entire error message within double quotes.  It also tries not
9979         to clash with established practice and with what non-gnulib programs
9980         will usually do.
9981         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9982         using an UTF-8 or GB-18030 locale.  The list of other locales with
9983         quotes was provided by Bruno Haible.
9984         (quotearg_buffer_restyled): Adjust instructions to translators.
9985         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9986         text, since this would be wrong when using Unicode.
9987         * modules/quotearg: Depend on c-strcaseeq.
9988
9989 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9990
9991         quotearg: fix Wikipedia link
9992         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9993
9994 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9995
9996         Fix for mingw with MSVC9.
9997         * m4/ld-version-script.m4: Check that compiler rejects version
9998         scripts with syntax errors.  Reported by Bruno Haible
9999         <bruno@clisp.org>.
10000
10001 2012-01-06  Bruno Haible  <bruno@clisp.org>
10002
10003         Talk about "native Windows API", not "Woe32".
10004         * lib/accept4.c: Update comments to mention native Windows.
10005         * lib/execute.c: Likewise.
10006         * lib/fatal-signal.c: Likewise.
10007         * lib/localcharset.c: Likewise.
10008         * lib/nanosleep.c: Likewise.
10009         * lib/nl_langinfo.c: Likewise.
10010         * lib/pclose.c: Likewise.
10011         * lib/pipe-filter-gi.c: Likewise.
10012         * lib/pipe-filter-ii.c: Likewise.
10013         * lib/pipe.c: Likewise.
10014         * lib/pipe2.c: Likewise.
10015         * lib/popen.c: Likewise.
10016         * lib/progreloc.c: Likewise.
10017         * lib/relocatable.c: Likewise.
10018         * lib/sigaction.c: Likewise.
10019         * lib/sigprocmask.c: Likewise.
10020         * lib/spawn-pipe.h: Likewise.
10021         * lib/spawn-pipe.c: Likewise.
10022         * lib/spawni.c: Likewise.
10023         * lib/stat-time.h: Likewise.
10024         * lib/w32spawn.h: Likewise.
10025         * tests/test-isatty.c: Likewise.
10026         * lib/config.charset: More comments.
10027         * doc/gnulib-intro.texi: Mention native Windows.
10028         * doc/posix-functions/_Exit_C99.texi: Likewise.
10029         * doc/posix-headers/fcntl.texi: Likewise.
10030
10031 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10032
10033         argp: Avoid crash if translator uses % characters in a translation.
10034         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10035         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10036
10037 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10038
10039         doc: C11 and C++11 are now official
10040         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10041         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10042         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10043         * modules/stdalign:
10044         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10045
10046 2012-01-06  Bruno Haible  <bruno@clisp.org>
10047
10048         uc-is-grapheme-break tests: Tweak.
10049         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10050         message.
10051
10052 2012-01-06  Bruno Haible  <bruno@clisp.org>
10053
10054         test-init.sh: correct the test for diff -u
10055         * tests/test-init.sh: Also redirect stdout to /dev/null.
10056
10057 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10058
10059         Use ', not `, for quoting output.
10060         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10061         (print_changelog_deltas, get_tool_versions, main program):
10062         * build-aux/git-version-gen:
10063         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10064         * build-aux/move-if-change (help):
10065         * build-aux/useless-if-before-free (usage, main program):
10066         * check-module (parse_module_file, usage)
10067         (find_included_lib_files, check_module):
10068         * lib/argmatch.c (main) [TEST]:
10069         * lib/argp-help.c (_help):
10070         * lib/getopt1.c (main) [TEST]:
10071         * lib/git-merge-changelog.c (usage):
10072         * lib/xstrtol-error.c (xstrtol_error):
10073         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10074         * m4/argz.m4 (gl_FUNC_ARGZ):
10075         * m4/bison.m4 (gl_BISON):
10076         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10077         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10078         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10079         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10080         * m4/gc-random.m4 (gl_GC_RANDOM):
10081         * m4/intl.m4 (gt_CHECK_DECL):
10082         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10084         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10085         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10086         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10087         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10088         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10089         * tests/test-dirname.c (main):
10090         * tests/test-getpass.c (main):
10091         * tests/test-iconvme.c (main):
10092         * tests/test-parse-datetime.c (LOG):
10093         * tests/test-xstrtoimax.sh:
10094         * tests/test-xstrtol.sh:
10095         * tests/test-xstrtoll.sh:
10096         * tests/test-xstrtoumax.sh:
10097         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10098         * top/GNUmakefile (abort-due-to-no-makefile):
10099         Quote 'like this', not `like this', as per the recent change to
10100         the GNU coding standards.
10101
10102 2012-01-05  Bruno Haible  <bruno@clisp.org>
10103
10104         strtoimax: Don't force a replacement on systems where intmax_t is int.
10105         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10106         'intmax_t' is not larger than 'int'.
10107         Reported by Pádraig Brady <P@draigBrady.com>.
10108
10109 2012-01-05  Bruno Haible  <bruno@clisp.org>
10110
10111         doc: Mention NetBSD bugs.
10112         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10113         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10114
10115 2012-01-05  Bruno Haible  <bruno@clisp.org>
10116
10117         strtoumax tests: Enhance tests.
10118         * tests/test-strtoumax.c (main): Add tests for large values.
10119
10120 2012-01-05  Bruno Haible  <bruno@clisp.org>
10121
10122         strtoimax: Work around AIX 5.1 bug.
10123         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10124         definition.
10125         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10126         Set HAVE_STRTOIMAX.
10127         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10128         REPLACE_STRTOIMAX.
10129         * modules/inttypes-incomplete (Makefile.am): Substitute
10130         REPLACE_STRTOIMAX.
10131         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10132         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10133         (Depends-on): Update conditions.
10134         * tests/test-strtoimax.c (main): Add tests for large values.
10135         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10136
10137 2012-01-05  Bruno Haible  <bruno@clisp.org>
10138
10139         inttypes: Modernize.
10140         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10141         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10142         (Makefile.am): Update inttypes.h rule.
10143
10144 2012-01-05  Jim Meyering  <meyering@redhat.com>
10145
10146         init.sh: don't waste a subshell just to redirect stderr
10147         * tests/init.sh: In testing for diff -u and diff -c, use a
10148         stderr-redirecting exec inside `...` rather than a subshell.
10149
10150         test-init.sh: avoid failure on HP-UX 11.00
10151         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10152         resolves to diff -c or cmp.  Reported by Bruno Haible.
10153
10154 2012-01-05  Bruno Haible  <bruno@clisp.org>
10155
10156         Tests for module 'strtoull'.
10157         * modules/strtoull-tests: New file.
10158         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10159
10160 2012-01-05  Bruno Haible  <bruno@clisp.org>
10161
10162         Tests for module 'strtoll'.
10163         * modules/strtoll-tests: New file.
10164         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10165
10166 2012-01-05  Bruno Haible  <bruno@clisp.org>
10167
10168         Tests for module 'strtoul'.
10169         * modules/strtoul-tests: New file.
10170         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10171
10172 2012-01-05  Bruno Haible  <bruno@clisp.org>
10173
10174         Tests for module 'strtol'.
10175         * modules/strtol-tests: New file.
10176         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10177
10178 2012-01-04  Jim Meyering  <meyering@redhat.com>
10179
10180         test-init.sh: accommodate Solaris 5.10's different diff -u output
10181         * tests/test-init.sh: Also exempt @@ lines from the comparison
10182         of diff output, since Solaris 5.10 and GNU diff formats differ.
10183         Reported by Stefano Lattarini.
10184
10185 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10186
10187         test-posixtm: don't assume signed integer wraparound
10188         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10189         after signed integer overflow.  Inspired by (though it may not
10190         fix) Bruno Haible's bug report in
10191         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10192
10193         Spell out "Windows 9x" and "Windows XP".
10194         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10195         "Windows 9x" and "WinXP" with "Windows XP".
10196
10197 2012-01-04  Jim Meyering  <meyering@redhat.com>
10198
10199         test-vc-list-files-cvs.sh: remove obsolete comment
10200         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10201         double exit.  Now that's all encapsulated via skip_ and Exit.
10202
10203 2012-01-04  Bruno Haible  <bruno@clisp.org>
10204
10205         Talk about "native Windows API", not "Win32".
10206         * lib/classpath.c: Update comments to mention native Windows.
10207         * lib/csharpexec.c: Likewise.
10208         * lib/dup2.c: Likewise.
10209         * lib/error.c: Likewise.
10210         * lib/fcntl.c: Likewise.
10211         * lib/filename.h: Likewise.
10212         * lib/findprog.c: Likewise.
10213         * lib/get-rusage-as.c: Likewise.
10214         * lib/get-rusage-data.c: Likewise.
10215         * lib/getpagesize.c: Likewise.
10216         * lib/javaexec.c: Likewise.
10217         * lib/msvc-inval.c: Likewise.
10218         * lib/msvc-nothrow.c: Likewise.
10219         * lib/nanosleep.c: Likewise.
10220         * lib/nonblocking.c: Likewise.
10221         * lib/printf-parse.c: Likewise.
10222         * lib/setlocale.c: Likewise.
10223         * lib/sigaction.c: Likewise.
10224         * lib/strerror_r.c: Likewise.
10225         * lib/tmpdir.c: Likewise.
10226         * lib/vasnprintf.c: Likewise.
10227         * lib/w32spawn.h: Likewise.
10228         * lib/waitpid.c: Likewise.
10229         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10230         * m4/locale-ar.m4: Likewise.
10231         * m4/locale-fr.m4: Likewise.
10232         * m4/locale-ja.m4: Likewise.
10233         * m4/locale-tr.m4: Likewise.
10234         * m4/locale-zh.m4: Likewise.
10235         * m4/printf.m4: Likewise.
10236         * tests/test-cloexec.c: Likewise.
10237         * tests/test-copy-acl.sh: Likewise.
10238         * tests/test-copy-file.sh: Likewise.
10239         * tests/test-file-has-acl.sh: Likewise.
10240         * tests/test-set-mode-acl.sh: Likewise.
10241         * tests/test-dup-safer.c: Likewise.
10242         * tests/test-dup2.c: Likewise.
10243         * tests/test-dup3.c: Likewise.
10244         * tests/test-fcntl.c: Likewise.
10245         * tests/test-nonblocking-pipe.h: Likewise.
10246         * tests/test-nonblocking-socket.h: Likewise.
10247         * tests/test-pipe.c: Likewise.
10248         * tests/test-pipe2.c: Likewise.
10249         * tests/test-spawn-pipe-child.c: Likewise.
10250         * doc/acl-resources.txt: Likewise.
10251         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10252         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10253         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10254         * lib/localcharset.c: Update comments to mention native Windows.
10255         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10256         * lib/localename.c: Likewise.
10257         * lib/progreloc.c: Likewise.
10258         * lib/relocatable.c: Likewise.
10259         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10260         (windows_compute_revents): Renamed from win32_compute_revents.
10261         (windows_compute_revents_socket): Renamed from
10262         win32_compute_revents_socket.
10263         * lib/select.c: Update comments to mention native Windows.
10264         (windows_poll_handle): Renamed from win32_poll_handle.
10265         * m4/threadlib.m4: Update comments to mention native Windows.
10266         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10267         --enable-threads=windows instead of --enable-threads=win32. Set
10268         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10269         * lib/glthread/lock.h: Update comments to mention native Windows.
10270         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10271         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10272         USE_WIN32_THREADS.
10273         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10274         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10275         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10276         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10277         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10278         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10279         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10280         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10281         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10282         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10283         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10284         * tests/test-tls.c: Likewise.
10285         Rationale:
10286         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10287         on both 32-bit and 64-bit Windows systems.
10288         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10289         line of distinction is between "native Windows" on one side and Unix/
10290         POSIX systems on the other side. More details in
10291         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10292         Suggested by Paul Eggert.
10293
10294 2012-01-03  Bruno Haible  <bruno@clisp.org>
10295
10296         isatty: Support for MSVC 9.
10297         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10298         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10299         (_isatty_nothrow): New function.
10300         (isatty): Use it instead of _isatty.
10301         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10302         * lib/poll.c (IsConsoleHandle): Likewise.
10303         * lib/select.c (IsConsoleHandle): Likewise.
10304         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10305         (gl_PREREQ_ISATTY): New macro.
10306         * modules/isatty (Depends-on): Add msvc-inval.
10307         (configure.ac): Invoke gl_PREREQ_ISATTY.
10308
10309 2012-01-03  Jim Meyering  <meyering@redhat.com>
10310
10311         maint.mk: remove temporary transition aid from over 1.5 years ago
10312         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10313         purpose was to aid in the transition (avoiding silent malfunction)
10314         from that old name to the new _sc_search_regexp.  This shim was
10315         added by commit 219c504b.
10316
10317         init.sh: do not try to accommodate compare arguments starting with "-"
10318         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10319         compare arguments that start with "-".  Besides, we do not worry
10320         about this when invoking diff or cmp; why start now with sed?
10321         Using "--" to separate options from argument would trigger sed
10322         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10323         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10324
10325 2012-01-02  Bruno Haible  <bruno@clisp.org>
10326
10327         Enhance tests for module 'isatty'.
10328         * modules/isatty-tests (Depends-on): Add pipe-posix.
10329         * tests/test-isatty.c: Include <fcntl.h>.
10330         (DEV_NULL): New macro.
10331         (main): Test the resut of isatty() also on regular files, pipes, and
10332         /dev/null.
10333
10334         New module 'isatty'.
10335         * lib/unistd.in.h (isatty): New declaration.
10336         * lib/isatty.c: New file, based on an idea of
10337         Bastien Roucariès <roucaries.bastien@gmail.com>.
10338         * m4/isatty.m4: New file.
10339         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10340         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10341         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10342         REPLACE_ISATTY.
10343         * modules/isatty: New file.
10344         * doc/posix-functions/isatty.texi: Mention the new module.
10345         Suggested by Paolo Bonzini.
10346
10347 2012-01-02  Bruno Haible  <bruno@clisp.org>
10348
10349         canonicalize: Tweak 2011-12-29 commit.
10350         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10351         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10352
10353 2012-01-02  Jim Meyering  <meyering@redhat.com>
10354
10355         gitlog-to-changelog: describe input syntax in --help output
10356         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10357
10358         gitlog-to-changelog: fix typo in --help: show backslash before email @
10359         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10360         in sources, but not in actual output.
10361
10362 2011-12-30  Jim Meyering  <meyering@redhat.com>
10363
10364         gitlog-to-changelog: don't malfunction when name contains %-directive
10365         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10366         in a name string cause trouble.  E.g., with a user name of "%s",
10367         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10368
10369 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10370
10371         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10372         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10373         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10374         the "  (tiny change)" notation that is appended to the standard
10375         ChangeLog "date  name  email" header line.
10376
10377 2012-01-01  Jim Meyering  <meyering@redhat.com>
10378
10379         test-framework-sh: init.sh: fix "make dist" failure
10380         When using gnulib-tool's --with-tests option and any module that
10381         depends on test-framework-sh, "make dist" would fail due to the
10382         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10383         in the gltests directory, and not in the gllib/ directory.
10384         One way to work around that is to move the EXTRA_DIST += init.sh
10385         from the primary module to the -tests one:
10386         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10387         * modules/test-framework-sh (Makefile.am): ...not here.
10388         Reported by Tom G. Christensen in
10389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10390
10391         version-etc: update copyright year reported by --version
10392         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10393
10394 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10395
10396         canonicalize: only stat() if required
10397         * lib/canonicalize.c (canonicalize_filename_mode):
10398         Avoid calling l?stat() when both CAN_MISSING,
10399         and CAN_NOLINKS are set, as we neither need
10400         to resolve symlinks or test component existence.
10401
10402 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         doc: cover st_ino issues once; add OpenVMS etc.
10405         * doc/posix-functions/stat.texi (stat):
10406         * doc/posix-functions/lstat.texi (lstat):
10407         * doc/posix-functions/fstatat.texi (fstatat):
10408         * doc/posix-functions/fstat.texi (fstat):
10409         Move general 'struct stat' stuff to sys_stat.texi,
10410         leaving behind a pointer.
10411         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10412         Merge duplicate info about 'struct stat' problems into here.
10413         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10414         and suggest partial workarounds.
10415
10416         same-inode: port to OpenVMS
10417         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10418         three st_ino values.
10419
10420 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10421
10422         canonicalize: fix references to stat() and lstat()
10423         * lib/canonicalize.c (canonicalize_filename_mode):
10424         Ensure references always resolve to a replacement
10425         function if required (even via a macro).
10426
10427 2011-12-30  Jim Meyering  <meyering@redhat.com>
10428
10429         gitlog-to-changelog: remove a little duplication
10430         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10431         rather than twice.
10432
10433 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10434
10435         canonicalize: add support for not resolving symlinks
10436         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10437         indicate we don't want to follow symlinks.  Also
10438         provide CAN_MODE_MASK to aid setting these existing
10439         mutually exclusive values.
10440         * lib/canonicalize.c (canonicalize_filename_mode):
10441         Extract the flags from can_mode parameter, which
10442         are currently just used to select between stat()
10443         and lstat().  Also ensure that mutually exclusive
10444         values are flagged immediately as invalid.
10445         * tests/test-canonicalize.c: Verify symlinks are
10446         not followed, and that invalid flag combinations
10447         are diagnosed.
10448
10449 2011-12-25  Jim Meyering  <meyering@redhat.com>
10450
10451         gitlog-to-changelog: do not clump multi-paragraph entries
10452         Identical header lines (date,name,email+coauthors) are suppressed,
10453         thus putting all entries with those same characteristics under
10454         a single header.  However, when a log entry consists of two or
10455         more paragraphs, it may not be clear where it starts and ends.
10456         This change makes it so that such an entry is always separated
10457         from others by a header line, even when that header would
10458         otherwise be suppressed.
10459         * build-aux/gitlog-to-changelog: Implement the above.
10460         Inspired by a related request from Stefano Lattarini in
10461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10462
10463 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10464
10465         announce-gen: fix `cmd' typo in diagnostic
10466         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10467         diagnostic: a missing '$' meant that the command was not output.
10468
10469 2011-12-23  Jim Meyering  <meyering@redhat.com>
10470
10471         test-framework-sh: distribute init.sh
10472         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10473         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10474         fail due to the lack of init.sh.
10475
10476         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10477         * modules/atexit-tests: Rather than listing tests/init.sh,
10478         now that there's a module for it, simply depend on that new module.
10479         * modules/closein-tests: Likewise.
10480         * modules/exclude-tests: Likewise.
10481         * modules/getcwd-tests: Likewise.
10482         * modules/perror-tests: Likewise.
10483         * modules/pread-tests: Likewise.
10484         * modules/pwrite-tests: Likewise.
10485         * modules/vc-list-files-tests: Likewise.
10486         * modules/verify-tests: Likewise.
10487         * modules/xalloc-die-tests: Likewise.
10488         * modules/xstrtoimax-tests: Likewise.
10489         * modules/xstrtol-tests: Likewise.
10490         * modules/xstrtoll-tests: Likewise.
10491         * modules/xstrtoumax-tests: Likewise.
10492         * modules/yesno-tests: Likewise.
10493
10494 2011-12-22  Jim Meyering  <meyering@redhat.com>
10495
10496         test-framework-sh: add minimal tests of init.sh's compare function
10497         * modules/test-framework-sh-tests: New file.
10498         * tests/test-init.sh: New file.
10499
10500         test-framework-sh: new module
10501         * modules/test-framework-sh: New file.
10502         * MODULES.html.sh (Support for maintaining and releasing projects):
10503         List it.
10504
10505         init.sh: do not emit simulated diff output to stderr
10506         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10507
10508 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10509
10510         .gitignore: ignore gnulib.dvi and regex.info
10511         * doc/.gitignore:add gnulib.dvi and regex.info
10512
10513 2011-12-22  Jim Meyering  <meyering@redhat.com>
10514
10515         init.sh: correct previous change
10516         * tests/init.sh (compare): My previous change was wrong.
10517         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10518
10519         init.sh: avoid unwarranted test failure when using "set -e"
10520         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10521         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10522         a use like "compare exp out" would get evoke an unconditional failure.
10523
10524 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10525
10526         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10527         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10528         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10529         autoreconf that did not.
10530         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10531         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10532
10533 2011-12-17  Jim Meyering  <meyering@redhat.com>
10534
10535         bootstrap: remove some now-unneeded code
10536         This script arose back when gnulib-tool was young.
10537         Since then, it has seen improvements that render much of this
10538         script unnecessary.  In particular, it can now make symlinks
10539         to the files it uses.  Also, I no longer see as much value in
10540         marking files as read-only via comments.
10541         If you relied on the symlink-creation feature of the preceding
10542         version of this script, you can get most of that functionality
10543         by adding the --symlink option to the definition of
10544         gnulib_tool_option_extras in your bootstrap.conf file.
10545         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10546         Run autopoint and libtoolize *before* gnulib-tool.
10547         After it, run an abbreviated autoreconf, rather than a loop around
10548         all tools.
10549         (slirp, bt_mark_as_generated): Remove functions.
10550
10551 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         ftoastr: fix typo
10554         * lib/ftoastr.h: Fix misspelling in comment.
10555
10556 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10557
10558         * top/README-release: fix punctuation.
10559
10560 2011-12-17  Jim Meyering  <meyering@redhat.com>
10561
10562         bootstrap: correct the recent buildreq change
10563         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10564         had no effect.
10565         * build-aux/bootstrap (buildreq): Bracket each search term with
10566         "*...*", so that the shell "case" statement works as intended.
10567         Add comments.
10568
10569 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10570
10571         build: let bootstrap resort to wget when downloading .po files
10572         * build-aux/bootstrap (download_po_files): Fallback to wget when
10573         downloading the .po files via rsync fails.  This is necessary to
10574         bootstrap from behind a strict firewall.
10575
10576 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10577
10578         stdint: don't assume C++11 when compiling with g++
10579         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10581         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10582         work also in C++ before C++11, as that improperly inhibits
10583         generating a substitute stdint.h for that case.
10584
10585 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10586
10587         alloca: protect comment from gnulib-tool
10588         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10589         that gnulib-tool doesn't think it's a license, and munge it to
10590         say "GCC version 3".
10591
10592 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10593
10594         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10595         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10596         $(abs_top_builddir) instead of $(top_builddir).
10597
10598 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10599
10600         strftime-tests: also test nanoseconds
10601         * tests/test-strftime.c (T): Add a test of %N.
10602
10603 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10604
10605         inttypes, stdint: add C++11 support
10606         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10607         when including inttypes.h and stdint.h.  Support this change to
10608         the standard.
10609         * doc/posix-headers/inttypes.texi (inttypes.h):
10610         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10611         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10612         Define if not defined already, for the benefit of pre-C++11 hosts.
10613         Define the standard format macros (e.g., PRId8) always.
10614         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10615         Likewise, if __cpluspus.  Define the standard constant and limit
10616         macros (e.g., INT8_C, INT8_MAX) always.
10617         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10618         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10619         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10620         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10621         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10622         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10623         Likewise.
10624
10625 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         nonblocking tests: Fix test failure on Linux/PPC.
10628         Suggested by Prerna Saxena in
10629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10630         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10631         Set to 1100000.
10632
10633 2011-12-12  Jim Meyering  <meyering@redhat.com>
10634
10635         argmatch: don't hard-code `' when listing valid option arguments
10636         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10637         use the quote function to add quotes.  Use fputs rather than
10638         fprintf for the format string with no format directive.
10639
10640 2011-12-07  Eric Blake  <eblake@redhat.com>
10641
10642         bootstrap: detect tools required by gnulib-tool
10643         * build-aux/bootstrap (buildreq): Provide minimum implicit
10644         dependencies.
10645         * DEPENDENCIES: Mention patch as a prereq.
10646
10647 2011-12-04  Bruno Haible  <bruno@clisp.org>
10648
10649         sethostname: Port to Windows platforms.
10650         * lib/sethostname.c: Provide an alternate implementation for Windows
10651         platforms.
10652         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10653         (main): Skip the test if sethostname() fails with EPERM. On Windows
10654         platforms, don't check the result of gethostname().
10655
10656 2011-12-04  Bruno Haible  <bruno@clisp.org>
10657             Jim Meyering  <meyering@redhat.com>
10658
10659         tests: Avoid spurious error message on platforms without mktemp program.
10660         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10661
10662 2011-12-04  Bruno Haible  <bruno@clisp.org>
10663
10664         sethostname: Fix documentation.
10665         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10666         "not fixed" section.
10667
10668 2011-12-03  Bruno Haible  <bruno@clisp.org>
10669
10670         gnulib-tool: Verify that the License field is present and non-empty.
10671         * gnulib-tool (func_get_license_raw): New function, extracted from
10672         func_get_license.
10673         (func_get_license): Use it. Warn if the module is not a test module and
10674         has no license.
10675         Suggested by Jim Meyering.
10676
10677 2011-12-03  Bruno Haible  <bruno@clisp.org>
10678
10679         sethostname tests: Fix link error on mingw.
10680         * tests/test-sethostname1.c: New file, extracted from
10681         tests/test-sethostname.c.
10682         * tests/test-sethostname2.c: New file, extracted from
10683         tests/test-sethostname.c.
10684         * tests/test-sethostname.c: Remove file.
10685         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10686         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10687         (Depends-on): Add gethostname.
10688         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10689         Link the latter with $(GETHOSTNAME_LIB).
10690
10691         sethostname tests: Fix compilation error on mingw.
10692         * tests/test-sethostname.c: Don't include <sys/types.h>.
10693         (geteuid): Use a dummy value without uid_t.
10694         * modules/sethostname-tests (Depends-on): Remove sys_types.
10695
10696         sethostname tests: Avoid a gcc warning.
10697         * tests/test-sethostname.c (main): Remove an unused variable.
10698
10699         Tweak last commit.
10700         * modules/sethostname-tests (Files): Sort by decreasing importance.
10701         (configure.ac): Check for geteuid.
10702         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10703         the test when there's nothing to test. Drop an unnecessary cast.
10704         Improve an error message. Verify that the final sethostname() call
10705         succeeds.
10706
10707 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10708
10709         Add a test suite for the sethostname module.
10710         * modules/sethostname-tests: New file.  A test program
10711         for the sethostname module.
10712         * tests/test-sethostname.c: Likewise.
10713
10714 2011-12-03  Bruno Haible  <bruno@clisp.org>
10715
10716         Tweak last commit.
10717         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10718         Fix preprocessor directives indentation. Fix typos.
10719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10720         * modules/unistd (Makefile): Likewise.
10721
10722 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10723
10724         Integrate the sethostname module into unistd.
10725         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10726         into the unistd.h header.
10727         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10728         preprocessor directives.
10729         * modules/unistd: Setup the Makefile substitutions of the
10730         SETHOSTNAME preprocessor directives.
10731
10732 2011-12-03  Bruno Haible  <bruno@clisp.org>
10733
10734         Tweak last commit.
10735         * lib/sethostname.c: Don't include <string.h>.
10736         (sethostname): No need to copy the argument string to the stack. Don't
10737         call clearerr. Preserve errno when fprintf failed.
10738         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10739         Don't invoke AC_REPLACE_FUNCS.
10740         * modules/sethostname (Link): Remove empty section.
10741         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10742         failure problem.
10743
10744 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10745
10746         New module 'sethostname'.
10747         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10748         for systems that lack it.
10749         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10750         sethostname declaration and function.
10751         * modules/sethostname: New file.  Define the sethostname module.
10752
10753 2011-12-03  Bruno Haible  <bruno@clisp.org>
10754
10755         Tweak last commit.
10756         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10757
10758 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10759
10760         Split the HOST_NAME_MAX detection into a separate m4 macro.
10761         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10762         macro so it can be used by the pending sethostname module.
10763
10764 2011-12-03  Bruno Haible  <bruno@clisp.org>
10765
10766         Fix module descriptions syntax.
10767         * modules/argv-iter (License): Fix syntax.
10768         * modules/di-set (License): Likewise.
10769         * modules/ino-map (License): Likewise.
10770         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10771
10772 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10773
10774         stdalign: port to Clang 3.0
10775         Problem reported by Simon Josefsson in
10776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10777         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10778         which has <stdalign.h> but which does not define alignof.
10779         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10780
10781 2011-12-01  Eric Blake  <eblake@redhat.com>
10782
10783         mktempd: silence dd usage
10784         * build-aux/mktempd (rand_bytes): Silence dd.
10785
10786 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10787
10788         manywarnings: Don't mention gcc version in docstring.
10789         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10790         Jim Meyering <meyering@redhat.com>.
10791
10792 2011-11-30  Jim Meyering  <meyering@redhat.com>
10793
10794         hash: mark a few floating point constants with "f" suffix
10795         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10796         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10797         floating point constants with "f", since they're destined to be
10798         saved/used as "float"s.
10799
10800 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10801
10802         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10803         * tests/test-float.c (test_long_double): Correct and re-enable the
10804         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10805
10806 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10807
10808         Avoid subtracting two pointers that don't point into the same block.
10809         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10810         only pointers into the same memory block are subtracted. We cannot
10811         assume that sizeof (ptrdiff_t) == sizeof (void *).
10812
10813 2011-11-29  Eric Blake  <eblake@redhat.com>
10814
10815         maint.mk: add syntax check for use of compare from init.sh
10816         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10817         moved here from coreutils.
10818
10819         manywarnings: drop -Wunsuffixed-float-constants
10820         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10821         '1.0D', which is the only way to silence this warning for 'double'.
10822
10823 2011-11-29  Jim Meyering  <meyering@redhat.com>
10824
10825         hash: mark compute_bucket_size with the pure attribute
10826         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10827
10828         quotearg, propername: correct pragma guard expression
10829         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10830         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10831
10832 2011-11-28  Jim Meyering  <meyering@redhat.com>
10833
10834         propername: do not mark proper_name with the const attribute
10835         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10836         since it examines data pointed to by its parameter.
10837         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10838         the suggestion from -Wsuggest-attribute=const.
10839
10840         propername: mark one more function as const
10841         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10842
10843 2011-11-27  Jim Meyering  <meyering@redhat.com>
10844
10845         mark functions with const and pure attributes
10846
10847         Mark functions per suggestions from gcc-4.6 when using these options:
10848         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10849         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10850         Follow these guidelines: when possible, apply the attribute to
10851         an extern declaration, not to its definition.  Apply it to the
10852         definition only when the definition is static.
10853         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10854         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10855         * lib/base64.h (isbase64): Likewise.
10856         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10857         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10858         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10859         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10860         (c_tolower, c_toupper): Likewise.
10861         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10862         * lib/chdir-long.c (find_non_slash): Likewise.
10863         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10864         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10865         * lib/file-type.h (file_type): Likewise.
10866         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10867         * lib/filevercmp.c (verrevcmp): Likewise.
10868         * lib/freadahead.h (freadahead): Likewise.
10869         * lib/fts.c (fts_maxarglen): Likewise.
10870         * lib/hash-pjw.h (hash_pjw): Likewise.
10871         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10872         * lib/hash.c (is_prime, next_prime): Likewise.
10873         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10874         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10875         (hash_table_ok, hash_get_first, hash_string): Likewise.
10876         (compute_bucket_size): Likewise.
10877         * lib/i-ring.h (i_ring_empty): Likewise.
10878         * lib/isnan.c (isnanl): Likewise.
10879         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10880         * lib/memcasecmp.h (memcasecmp): Likewise.
10881         * lib/memchr2.h (memchr2): Likewise.
10882         * lib/memcmp2.h (memcmp2): Likewise.
10883         * lib/parse-datetime.y (lookup_zone): Likewise.
10884         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10885         [!WINDOWS_SOCKETS]: Likewise.
10886         * lib/strnlen1.h (strnlen1): Likewise.
10887         * lib/uniwidth.in.h (uc_width): Likewise.
10888         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10889         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10890         (quoting_options_from_style): Add a comment.
10891         * lib/propername.h (proper_name): Add a comment.
10892
10893 2011-11-27  Bruno Haible  <bruno@clisp.org>
10894
10895         Remove unused macros from !_LIBC code in glibc-borrowed files.
10896         * lib/fnmatch.c (STRCOLL): Remove macro.
10897         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10898         * lib/glob.c (__stat, __readdir64): Remove macros.
10899         * lib/tempname.c (__open64, __xstat64): Remove macros.
10900         Suggested by Paul Eggert.
10901
10902 2011-11-27  Bruno Haible  <bruno@clisp.org>
10903
10904         getcwd: Fix link error on MSVC 9.
10905         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10906
10907 2011-11-27  Bruno Haible  <bruno@clisp.org>
10908
10909         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10910         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10911         HAVE_OPENDIR is 0.
10912         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10913         HAVE_CLOSEDIR is 0.
10914         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10915         is 0.
10916         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10917
10918 2011-11-27  Bruno Haible  <bruno@clisp.org>
10919
10920         getcwd: Fix bug from 2011-08-17.
10921         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10922         platforms that need it.
10923         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10924         code of 4 to be a failure, not a success. This ensures that
10925         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10926
10927 2011-11-27  Bruno Haible  <bruno@clisp.org>
10928
10929         binary-io tests: Avoid test failure on mingw when libtool is used.
10930         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10931         Don't verify the size of t-bin-out1.tmp here.
10932         * tests/test-binary-io.sh: Verify it here.
10933         Reported by Simon Josefsson.
10934
10935 2011-11-26  Bruno Haible  <bruno@clisp.org>
10936
10937         Fix conflict between two instantiations of module 'unistd'.
10938         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10939         ${include_guard_prefix} also in the autoconf snippet.
10940         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10942         GNULIB_UNISTD_H_GETOPT.
10943         * modules/getopt-posix (configure.ac): Set the
10944         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10945         * modules/getopt-gnu (configure.ac): Likewise.
10946         * modules/unistd (Makefile.am): Change the substitution value of
10947         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10948         Reported by Simon Josefsson.
10949
10950 2011-11-25  Bruno Haible  <bruno@clisp.org>
10951
10952         pagealign_alloc: Doc and comments.
10953         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10954         module.
10955         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10956
10957 2011-11-25  Jim Meyering  <meyering@redhat.com>
10958
10959         test-update-copyright.sh: avoid false-positive failure
10960         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10961         around false positive failure on Cygwin/Windows.  The latter was
10962         matching erroneously-created files with names like
10963         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10964
10965 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10966
10967         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10968         * m4/valgrind-tests.m4: Check that the parameters that will be
10969         used works, not just a subset of them.  Reported by Bruno Haible
10970         <bruno@clisp.org>.
10971
10972 2011-11-24  Jim Meyering  <meyering@redhat.com>
10973
10974         test-stdalign.c: comment out long double tests
10975         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10976         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10977         error: '_Alignas' specifiers cannot reduce alignment of \
10978         'static_longdouble_alignas'.
10979
10980 2011-11-22  Jim Meyering  <meyering@redhat.com>
10981
10982         init.sh: make "compare /dev/null FILE" output more readable
10983         * tests/init.sh (compare_): Document the preferred order of arguments.
10984         (emit_diff_u_header_): New function.
10985         (compare_dev_null_): Emit a simulated diff, rather than just the
10986         contents of the unexpected file.  Suggestion from Bruno Haible.
10987
10988 2011-11-21  Jim Meyering  <meyering@redhat.com>
10989             Eric Blake  <eblake@redhat.com>
10990
10991         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10992         * tests/init.sh: Make our compare function slightly more portable.
10993         Reported by Bruno Haible in
10994         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10995
10996 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10997
10998         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10999         before using it, in code that ends up in config.h.
11000
11001 2011-11-20  Bruno Haible  <bruno@clisp.org>
11002
11003         getcwd: Work around getcwd bug on AIX 5..7.
11004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11005         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11006         Use a different value for gl_cv_func_getcwd_path_max. Move the
11007         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11008         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11009         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11010         Define HAVE_MINIMALLY_WORKING_GETCWD.
11011         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11012         where it is not even minimally working, that is, on AIX.
11013         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11014         m4/getcwd-path-max.m4.
11015         (main): Update exit code computation.
11016         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11017         getcwd does not handle long file names.
11018
11019 2011-11-20  Bruno Haible  <bruno@clisp.org>
11020
11021         getcwd: Fix bug from 2009-09-10.
11022         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11023         like "no".
11024
11025 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11026
11027         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11028
11029 2011-11-20  Bruno Haible  <bruno@clisp.org>
11030
11031         fma tests: Avoid shadowing local variables.
11032         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11033         expected.
11034
11035 2011-11-20  Bruno Haible  <bruno@clisp.org>
11036
11037         copysignf tests: Fix.
11038         * tests/test-copysignf.c: Fix signature check.
11039
11040 2011-11-20  Bruno Haible  <bruno@clisp.org>
11041
11042         fma: Remove unused code.
11043         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11044         unused macros.
11045
11046 2011-11-20  Bruno Haible  <bruno@clisp.org>
11047
11048         sethostname: Fix doc about AIX.
11049         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11050         sethostname; it has it.
11051
11052         sethostname: Mention more portability problems.
11053         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11054         problem.
11055         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11056
11057 2011-11-19  Bruno Haible  <bruno@clisp.org>
11058
11059         Depend on module fcntl-h when AT_FDCWD is used.
11060         * modules/utimens (Depends-on): Add fcntl-h.
11061         * modules/areadlinkat (Depends-on): Likewise.
11062         * modules/areadlinkat-with-size (Depends-on): Likewise.
11063         * modules/faccessat (Depends-on): Likewise.
11064         * modules/fchmodat (Depends-on): Likewise.
11065         * modules/fchownat (Depends-on): Likewise.
11066         * modules/getcwd (Depends-on): Likewise.
11067         * modules/mkdirat (Depends-on): Likewise.
11068         * modules/mkfifoat (Depends-on): Likewise.
11069         * modules/readlinkat (Depends-on): Likewise.
11070         * modules/symlinkat (Depends-on): Likewise.
11071         * modules/dup2-tests (Depends-on): Likewise.
11072         * modules/fdutimensat-tests (Depends-on): Likewise.
11073         * modules/futimens-tests (Depends-on): Likewise.
11074
11075 2011-11-19  Bruno Haible  <bruno@clisp.org>
11076
11077         euidaccess: Update a comment.
11078         * lib/euidaccess.c: Update comment about platforms with faccessat.
11079
11080 2011-11-19  Bruno Haible  <bruno@clisp.org>
11081
11082         openat: Fix file list.
11083         * modules/openat (Files): Remove lib/at-func.c.
11084
11085 2011-11-19  Bruno Haible  <bruno@clisp.org>
11086
11087         fstatat: Simplify.
11088         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11089         gnulib should define rpl_fstatat, there is a
11090         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11091
11092 2011-11-19  Bruno Haible  <bruno@clisp.org>
11093
11094         Ensure 'inline' can be used in tests/test-utimens-common.h.
11095         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11096         * modules/futimens-tests (configure.ac): Likewise.
11097         * modules/utimens-tests (configure.ac): Likewise.
11098         * modules/utimensat-tests (configure.ac): Likewise.
11099
11100 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11101
11102         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11103         not hash_insert0.
11104         (hash_insert_if_absent): Doc fix.
11105
11106 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11107
11108         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11109
11110 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11111
11112         test-getcwd: disambiguate exit status
11113         * tests/test-getcwd.c (test_long_name): Return 0..7.
11114         (main): Exit with an unambiguous exit status.  The old
11115         code yielded a mysterious mixture of two failure codes.
11116
11117         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11118         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11119         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11120         rpl_fstatat or fstatat.  This should fix the other problem
11121         reported by Kai Habel in
11122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11123         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11125         and I reproduced it on a Solaris 8 host we still have in production.
11126
11127 2011-11-18  Jim Meyering  <meyering@redhat.com>
11128
11129         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11130         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11131         Add a sentence to the comment.
11132         (hash_insert0): New function that simply calls hash_insert_if_absent.
11133         * lib/hash.h (hash_insert_if_absent): Declare it.
11134         (hash_insert0): Add deprecation attribute.
11135         (_GL_ATTRIBUTE_DEPRECATED): Define.
11136         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11137         not hash_insert0.
11138         * NEWS: Mention it, even though it's not really an incompatible change.
11139
11140 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11141
11142         openat: avoid compilation failure due to lack of <errno.h> inclusion
11143         * lib/openat.c: Include <errno.h>.
11144
11145 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11146
11147         * modules/getcwd (Depends-on): Add fdopendir.
11148         This fixes one of the two problems reported by Kai Habel in
11149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11150
11151         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11152         stdalign problem reported by Ian Beckwith in
11153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11154         * modules/crypto/gc-arcfour (Depends-on):
11155         Depend conditionally on crypto/arcfour.
11156         * modules/crypto/gc-arctwo (Depends-on):
11157         Depend conditionally on crypto/arctwo.
11158         * modules/crypto/gc-des (Depends-on):
11159         Depend conditionally on crypto/des.
11160         * modules/crypto/gc-hmac-md5 (Depends-on):
11161         Depend conditionally on crypto/hmac-md5.
11162         * modules/crypto/gc-hmac-sha1 (Depends-on):
11163         Depend conditionally on crypto/hmac-sha1.
11164         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11165         * modules/crypto/gc-md4 (Depends-on):
11166         Depend conditionally on crypto/md4.
11167         * modules/crypto/gc-md5 (Depends-on):
11168         Depend conditionally on crypto/md5.
11169         * modules/crypto/gc-rijndael (Depends-on):
11170         Depend conditionally on crypto/rijndael.
11171         * modules/crypto/gc-sha1 (Depends-on):
11172         Depend conditionally on crypto/sha1.
11173         * modules/crypto/gc-arcfour:
11174         * modules/crypto/gc-arctwo:
11175         * modules/crypto/gc-des:
11176         * modules/crypto/gc-hmac-md5:
11177         * modules/crypto/gc-hmac-sha1:
11178         * modules/crypto/gc-md2:
11179         * modules/crypto/gc-md4:
11180         * modules/crypto/gc-md5:
11181         * modules/crypto/gc-rijndael:
11182         * modules/crypto/gc-sha1:
11183         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11184         now that the conditional dependencies do the work for us.
11185
11186 2011-11-17  Jim Meyering  <meyering@redhat.com>
11187
11188         tests: factor st_ctime-comparison out of two headers
11189         * tests/test-utimens-common.h (ctime_compare): Define.
11190         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11191         * tests/test-lutimens.h (test_lutimens): Likewise.
11192         * tests/test-utimens.h (test_utimens): Likewise.
11193
11194         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11195         Invoke the test program via an init.sh-using wrapper.
11196         * tests/test-getcwd.sh: New file.
11197         * modules/getcwd-tests (Files): Add it.
11198         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11199
11200 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11201
11202         gitlog-to-changelog: support multi-author commits.
11203         The FSF cares about keeping track of all authors of patches to its
11204         projects, but Git doesn't provide obvious support for multi-author
11205         changesets. Consensus seems to be forming around the use of extra
11206         Signed-off-by inspired lines in the log message formatted as
11207         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11208         multi-author commits between version control systems.
11209         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11210         log message and output in standard ChangeLog multi-author format.
11211         Reported by Peter Rosin <peda@lysator.liu.se>
11212
11213 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11214             Bruno Haible  <bruno@clisp.org>
11215
11216         Fix some modules' file list.
11217         * modules/fstatat (Files): Add m4/lstat.m4.
11218         * modules/openat (Files): Likewise.
11219         * modules/unlinkat (Files): Likewise.
11220
11221 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11222
11223         maint.mk: fix tight-scope.mk generation in VPATH builds.
11224         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11225         reference with $(srcdir) so that the file is found correctly even
11226         when running `make syntax-check' in a VPATH build.
11227
11228 2011-11-13  Bruno Haible  <bruno@clisp.org>
11229             Jim Meyering  <meyering@redhat.com>
11230
11231         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11232         * tests/init.sh (compare): Remove "No differences encountered" or
11233         synonymous output from the 'diff' program.
11234
11235 2011-11-13  Bruno Haible  <bruno@clisp.org>
11236
11237         Makefile: Tweak indentation.
11238         * Makefile: Use tab as first character in every line that contains rule
11239         commands.
11240
11241 2011-11-13  Bruno Haible  <bruno@clisp.org>
11242
11243         Syntax check for copyright statements.
11244         * check-copyright: New file.
11245         * Makefile (sc_check_copyright): New rule.
11246
11247 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11248
11249         * build-aux/git-version-gen: Add --prefix to configure the tag
11250         match string.
11251
11252 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11253
11254         * build-aux/git-version-gen: Add --help and --version.
11255
11256 2011-11-12  Jim Meyering  <meyering@redhat.com>
11257
11258         revamp the other test-exclude?.sh scripts to use init.sh, too
11259         * tests/test-exclude1.sh: Use init.sh.
11260         * tests/test-exclude2.sh: Likewise.
11261         * tests/test-exclude3.sh: Likewise.
11262         * tests/test-exclude4.sh: Likewise.
11263         * tests/test-exclude5.sh: Likewise.
11264         * tests/test-exclude6.sh: Likewise.
11265         * tests/test-exclude7.sh: Likewise.
11266         * tests/test-exclude8.sh: Likewise.
11267         * modules/exclude-tests (Files): List init.sh.
11268
11269         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11270         These shell scripts ignored failure of the binary test-exclude,
11271         so making the latter return 77 didn't cause them to be skipped.
11272         * tests/test-exclude5.sh: Exit with test-exclude's error status
11273         when that program fails.  Revamp to use init.sh.
11274         * tests/test-exclude2.sh: Likewise.
11275
11276         test-exclude: fix a typo
11277         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11278
11279 2011-11-11  Bruno Haible  <bruno@clisp.org>
11280
11281         obstack: Fix compilation error on MSVC 9.
11282         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11283
11284 2011-11-11  Jim Meyering  <meyering@redhat.com>
11285
11286         test-exclude: skip tests rather than failing on deficient systems
11287         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11288         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11289         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11290         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11291
11292 2011-11-10  Bruno Haible  <bruno@clisp.org>
11293
11294         ptsname_r test: Avoid gcc warning on glibc systems.
11295         * tests/test-ptsname_r.c (null_ptr): New function.
11296         (test_errors): Use it.
11297
11298 2011-11-10  Bruno Haible  <bruno@clisp.org>
11299
11300         ptsname_r: Avoid compilation error on OSF/1 5.1.
11301         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11303         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11304         function is not declared or incompatibly declared.
11305         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11306         * modules/ptsname_r (Depends-on, configure.ac): Update.
11307         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11308
11309 2011-11-10  Bruno Haible  <bruno@clisp.org>
11310
11311         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11312         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11313         When cross-compiling, guess yes on all platforms except AIX.
11314         Reported by Ludovic Courtès <ludo@gnu.org>.
11315
11316 2011-11-09  Bruno Haible  <bruno@clisp.org>
11317
11318         ptsname_r tests: Fix bugs.
11319         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11320         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11321
11322 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11323
11324         fstatat: work with cross-compilation
11325         Problem reported by Ludovic Courtès in
11326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11327         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11328         "cross-compiling" and assume the bug is present.  Replace
11329         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11330         an inverted sense, to be more conservative about our assumptions.
11331         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11332
11333 2011-11-09  Bruno Haible  <bruno@clisp.org>
11334
11335         Improve MODULES.html output.
11336         * modules/mkfifoat (Description): Use the word "function".
11337         * modules/readlinkat (Description): Likewise.
11338         * modules/symlinkat (Description): Likewise.
11339
11340 2011-11-09  Eric Blake  <eblake@redhat.com>
11341
11342         ptsname_r-tests: new test module
11343         * modules/ptsname_r-tests: New module.
11344         * tests/test-ptsname_r.c: New file.
11345
11346         ptsname_r: new module
11347         * modules/ptsname_r: New module.
11348         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11349         * lib/ptsname.c (__ptsname_r): Split...
11350         * lib/ptsname_r.c: ...into new file.
11351         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11352         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11353         * modules/stdlib (Makefile.am): Substitute witnesses.
11354         * lib/stdlib.in.h (ptsname_r): Declare it.
11355         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11356         * MODULES.html.sh (Misc): Likewise.
11357         * modules/ptsname (Depends-on): Alter dependency.
11358         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11359
11360 2011-11-09  Jim Meyering  <meyering@redhat.com>
11361
11362         announce-gen: be more concise when there's only one URL+tarball
11363         * build-aux/announce-gen (get_tool_versions): When you distribute
11364         only one type of tarball, combine the first two "Here are..."
11365         sections and make the key-checking grammar independent of
11366         how many tarballs there are.
11367
11368 2011-11-09  Eric Blake  <eblake@redhat.com>
11369
11370         openpty: provide a stub on mingw
11371         * lib/pty.in.h (includes): Provide forward declarations.
11372         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11373
11374         raise: fix mingw handling of SIGPIPE
11375         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11376
11377 2011-11-08  Bruno Haible  <bruno@clisp.org>
11378
11379         More conditional dependencies.
11380         * modules/faccessat (Depends-on): Add conditions.
11381         * modules/fchmodat (Depends-on): Likewise.
11382         * modules/fchownat (Depends-on): Likewise.
11383         * modules/fstatat (Depends-on): Likewise.
11384         * modules/mkfifoat (Depends-on): Likewise.
11385         * modules/readlinkat (Depends-on): Likewise.
11386         * modules/symlinkat (Depends-on): Likewise.
11387         * modules/unlinkat (Depends-on): Likewise.
11388         * modules/utimensat (Depends-on): Likewise.
11389         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11390         * modules/linkat (Depends-on): Refine the conditions.
11391         * modules/renameat (Depends-on): Likewise.
11392
11393 2011-11-08  Bruno Haible  <bruno@clisp.org>
11394
11395         faccessat: Move AC_LIBOBJ invocation to module description.
11396         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11397         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11398         invocation from here...
11399         * modules/faccessat (configure.ac): ... to here. Invoke
11400         gl_PREREQ_FACCESSAT.
11401
11402 2011-11-08  Bruno Haible  <bruno@clisp.org>
11403
11404         faccessat: Simplify autoconf macro.
11405         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11406         gl_FUNC_EUIDACCESS.
11407
11408 2011-11-08  Bruno Haible  <bruno@clisp.org>
11409
11410         renameat: Fix dependencies.
11411         * modules/renameat (Depends-on): Add stdbool.
11412
11413 2011-11-08  Bruno Haible  <bruno@clisp.org>
11414
11415         mkfifoat: Fix module description.
11416         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11417         not gl_UNISTD_MODULE_INDICATOR.
11418
11419 2011-11-08  Bruno Haible  <bruno@clisp.org>
11420
11421         fstatat: Remove unused dependency.
11422         * modules/fstatat (Depends-on): Remove fstat.
11423
11424 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11425
11426         GNUmakefile: behave when Makefile is missing.
11427         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11428
11429 2011-11-08  Bruno Haible  <bruno@clisp.org>
11430
11431         openat: Conditionalize dependencies.
11432         * lib/openat.c: Reduce the scope of some #includes.
11433         * modules/openat (Depends-on): Add conditions.
11434
11435 2011-11-07  Jim Meyering  <meyering@redhat.com>
11436
11437         maint.mk: extract GPG key ID without using a temporary file
11438         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11439         without using a temporary file.  Based on a suggestion from Werner Koch
11440         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11441
11442 2011-11-07  Eric Blake  <eblake@redhat.com>
11443
11444         grantpt: fix typo
11445         * lib/stdlib.in.h (grantpt): Check correct function.
11446
11447         maint.mk: silence new syntax check
11448         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11449
11450 2011-11-06  Bruno Haible  <bruno@clisp.org>
11451
11452         Doc about floating-point and math API.
11453         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11454         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11455
11456 2011-11-06  Bruno Haible  <bruno@clisp.org>
11457
11458         stdalign tests: Skip the test when compiled by Sun C.
11459         * tests/test-stdalign.c (main): Skip the test on Sun C.
11460
11461 2011-11-06  Bruno Haible  <bruno@clisp.org>
11462
11463         ansi-c++-opt: Complete the 2011-06-05 change.
11464         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11465         does not support namespaces, set the variable to "no", not to ":".
11466
11467 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11468
11469         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11470
11471 2011-11-06  Bruno Haible  <bruno@clisp.org>
11472
11473         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11474         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11475         (minus_zerol) [HP-UX]: New macro.
11476         (unary_minus) [HP-UX]: New function.
11477         (copysignl) [HP-UX]: Use unary_minus function.
11478
11479 2011-11-06  Bruno Haible  <bruno@clisp.org>
11480
11481         ldexp, ldexpf, ldexpl: Enhance tests.
11482         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11483         and tests/test-ldexpl.c.
11484         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11485         LDEXP, MIN_EXP, MAX_EXP): New macros.
11486         Include test-ldexp.h.
11487         (main): Just call test_function.
11488         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11489         infinity.h, nan.h.
11490         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11491         MAX_EXP): New macros.
11492         Include test-ldexp.h.
11493         (x, y): Remove variables.
11494         (main): Just call test_function.
11495         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11496         infinity.h, nan.h.
11497         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11498         MAX_EXP): New macros.
11499         Include test-ldexp.h.
11500         (x, y): Remove variables.
11501         (main): Just call test_function.
11502         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11503         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11504         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11505         (Depends-on): Add isnand-nolibm, signbit, float.
11506         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11507         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11508         (Depends-on): Add isnanf-nolibm, signbit, float.
11509
11510 2011-11-06  Bruno Haible  <bruno@clisp.org>
11511
11512         math tests: Cosmetics.
11513         * tests/test-math-c++.cc: Reorder declarations.
11514
11515 2011-11-05  Bruno Haible  <bruno@clisp.org>
11516
11517         fma*: Simplify test.
11518         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11519         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11520
11521         Tests for module 'fmal'.
11522         * modules/fmal-tests: New file.
11523         * tests/test-fmal1.c: New file.
11524         * tests/test-fmal2.c: New file.
11525
11526         New module 'fmal'.
11527         * lib/math.in.h (fmal): New declaration.
11528         * lib/fmal.c: New file.
11529         * m4/fmal.m4: New file.
11530         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11532         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11533         REPLACE_FMAL.
11534         * modules/fmal: New file.
11535         * doc/posix-functions/fmal.texi: Mention the new module and the various
11536         bugs.
11537
11538         Tests for module 'fmaf'.
11539         * modules/fmaf-tests: New file.
11540         * tests/test-fmaf1.c: New file.
11541         * tests/test-fmaf2.c: New file.
11542
11543         New module 'fmaf'.
11544         * lib/math.in.h (fmaf): New declaration.
11545         * lib/fmaf.c: New file.
11546         * m4/fmaf.m4: New file.
11547         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11549         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11550         REPLACE_FMAF.
11551         * modules/fmaf: New file.
11552         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11553         bugs.
11554
11555         Tests for module 'fma'.
11556         * modules/fma-tests: New file.
11557         * tests/test-fma1.c: New file.
11558         * tests/test-fma1.h: New file.
11559         * tests/test-fma2.c: New file.
11560         * tests/test-fma2.h: New file.
11561
11562         New module 'fma'.
11563         * lib/math.in.h (fma): New declaration.
11564         * lib/fma.c: New file.
11565         * m4/fma.m4: New file.
11566         * m4/fegetround.m4: New file.
11567         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11569         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11570         REPLACE_FMA.
11571         * modules/fma: New file.
11572         * doc/posix-functions/fma.texi: Mention the new module and the various
11573         bugs.
11574
11575         Extend gl_MATHFUNC.
11576         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11577         Support 'void' as argument type.
11578         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11579
11580 2011-11-05  Jim Meyering  <meyering@redhat.com>
11581
11582         maint.mk: also prohibit inclusion of dirent.h without use
11583         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11584
11585 2011-11-05  Bruno Haible  <bruno@clisp.org>
11586
11587         ldexpl tests: Avoid test failure on MSVC 9.
11588         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11589         value. Needed in order to enforce the conversion from a value greater
11590         than LDBL_MAX to Infinity.
11591
11592 2011-11-05  Bruno Haible  <bruno@clisp.org>
11593
11594         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11595         * modules/at-internal: New file, extracted from modules/openat.
11596         * modules/openat-h: New file.
11597         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11598         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11599         * modules/openat (Description): Add reference to POSIX function.
11600         (Files): Remove lib/openat.h, lib/openat-proc.c.
11601         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11602         intprops, unistd.
11603         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11604         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11605         gl_FCNTL_MODULE_INDICATOR.
11606         (Include): Remove unistd.h, openat.h.
11607         * modules/areadlinkat (Files): Add lib/at-func.c.
11608         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11609         openat-die, openat-h, save-cwd.
11610         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11611         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11612         openat-die, openat-h, save-cwd, unistd.
11613         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11614         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11615         openat-h, save-cwd. Remove fcntl-h, openat.
11616         * modules/fchmodat (Files): Remove lib/openat.h.
11617         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11618         openat, stdbool, unistd.
11619         * modules/fchownat (Files): Remove lib/openat.h.
11620         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11621         openat, stdbool, sys_stat.
11622         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11623         lib/openat-proc.c.
11624         (Depends-on): Add at-internal.
11625         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11626         * modules/fstatat (Files): Remove lib/openat.h.
11627         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11628         stdbool, unistd.
11629         * modules/fts (Depends-on): Add openat-h.
11630         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11631         openat.
11632         * modules/mkdirat (Files): Remove lib/openat.h.
11633         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11634         openat, stdbool, sys_stat.
11635         * modules/mkfifoat (Files): Add lib/at-func.c.
11636         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11637         openat-h, save-cwd. Remove fcntl-h, openat.
11638         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11639         * modules/readlinkat (Files): Add lib/at-func.c.
11640         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11641         openat-h, save-cwd. Remove fcntl-h, openat.
11642         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11643         openat.
11644         * modules/selinux-at (Files): Add lib/at-func.c.
11645         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11646         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11647         * modules/symlinkat (Files): Add lib/at-func.c.
11648         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11649         openat-h, save-cwd. Remove fcntl-h, openat.
11650         * modules/unlinkat (Files): Remove lib/openat.h.
11651         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11652         stdbool.
11653         * modules/utimensat (Files): Add lib/at-func.c.
11654         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11655         openat-die, openat-h, save-cwd.
11656         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11657         * modules/fdutimensat-tests (Depends-on): Add openat.
11658         * modules/fstatat-tests (Depends-on): Add openat-h.
11659         * modules/readlinkat-tests (Depends-on): Add openat.
11660         * modules/symlinkat-tests (Depends-on): Add openat.
11661
11662 2011-11-05  Bruno Haible  <bruno@clisp.org>
11663
11664         openat: Include <stdbool.h>.
11665         * lib/openat.c: Include <stdbool.h>.
11666
11667 2011-11-04  Bruno Haible  <bruno@clisp.org>
11668
11669         fchownat, renameat, unlinkat: Fix dependencies.
11670         * modules/fchownat (Depends-on): Add fstatat.
11671         * modules/renameat (Depends-on): Likewise.
11672         * modules/unlinkat (Depends-on): Likewise.
11673
11674 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11675
11676         openat: remove direct dependency on dirent
11677         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11678         and hasn't been needed ever since fdopendir was split into its own
11679         module on 2009-08-31.
11680         * modules/openat (Depends-on): Remove dirent.
11681
11682 2011-11-04  Bruno Haible  <bruno@clisp.org>
11683
11684         renameat: Optimize code size.
11685         * modules/renameat (configure.ac): Don't compile at-func2.c if
11686         REPLACE_RENAMEAT is 1.
11687
11688 2011-11-04  Bruno Haible  <bruno@clisp.org>
11689
11690         openat tests: Fix file list.
11691         * modules/openat-tests (Files): Add tests/test-open.h.
11692
11693 2011-11-04  Bruno Haible  <bruno@clisp.org>
11694
11695         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11696         * modules/fchmodat (Depends-on): Add openat-die.
11697         * modules/fchownat (Depends-on): Likewise.
11698         * modules/linkat (Depends-on): Likewise.
11699         * modules/renameat (Depends-on): Likewise.
11700         * modules/openat (Depends-on): Add dirent.
11701
11702 2011-11-04  Jim Meyering  <meyering@redhat.com>
11703
11704         at-func*.c: fix comments
11705         * lib/at-func2.c: Correct/improve first-line comment.
11706         * lib/at-func.c: Correct grammar in first-line comment.
11707
11708 2011-11-04  Bruno Haible  <bruno@clisp.org>
11709
11710         New module 'mkdirat', split off from module 'openat'.
11711         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11712         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11713         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11714         * modules/mkdirat: New file, extracted from modules/openat.
11715         * modules/openat (Files): Remove lib/mkdirat.c.
11716         (Depends-on): Remove mkdir.
11717         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11718         (Include): Remove <sys/stat.h>.
11719         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11720         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11721         tests/test-mkdir.h.
11722         (Depends-on): Remove ignore-value.
11723         (Makefile.am): Remove rules for test-mkdirat.
11724         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11725         of module 'openat'.
11726         * NEWS: Mention the change.
11727
11728 2011-11-04  Bruno Haible  <bruno@clisp.org>
11729
11730         closedir: Avoid warning on mingw.
11731         * lib/closedir.c: Include <unistd.h>.
11732
11733 2011-11-04  Bruno Haible  <bruno@clisp.org>
11734
11735         New module 'fstatat', split off from module 'openat'.
11736         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11737         defined.
11738         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11740         gl_FUNC_FSTATAT.
11741         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11742         * modules/fstatat: New file, extracted from modules/openat.
11743         * modules/openat (Files): Remove lib/fstatat.c.
11744         (Depends-on): Remove lstat.
11745         (configure.ac): Remove AC_LIBOBJ of fstatat.
11746         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11747         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11748         tests/test-lstat.h, tests/test-stat.h.
11749         (Depends-on): Remove getcwd-lgpl.
11750         (Makefile.am): Remove rules for test-fstatat.
11751         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11752         of module 'openat'.
11753         * NEWS: Mention the change.
11754         * modules/getcwd (Depends-on): Add fstatat.
11755         * modules/linkat (Depends-on): Likewise.
11756         * modules/mkfifoat-tests (Depends-on): Likewise.
11757         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11758
11759 2011-11-03  Bruno Haible  <bruno@clisp.org>
11760
11761         New module 'unlinkat', split off from module 'openat'.
11762         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11764         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11765         * modules/unlinkat: New file, extracted from modules/openat. Correct
11766         the dependency conditions.
11767         * modules/openat (Files): Remove lib/unlinkat.c.
11768         (Depends-on): Remove rmdir, unlink.
11769         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11770         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11771         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11772         tests/test-rmdir.h, tests/test-unlink.h.
11773         (Depends-on): Remove unlinkdir.
11774         (Makefile.am): Remove rules for test-unlinkat.
11775         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11776         of module 'openat'.
11777         * NEWS: Mention the change.
11778         * modules/linkat-tests (Depends-on): Add unlinkat.
11779         * modules/mkfifoat-tests (Depends-on): Likewise.
11780         * modules/readlinkat-tests (Depends-on): Likewise.
11781
11782 2011-11-02  Bruno Haible  <bruno@clisp.org>
11783
11784         New module 'fchmodat', split off from module 'openat'.
11785         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11786         defined.
11787         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11788         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11789         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11790         * modules/fchmodat: New file, extracted from modules/openat.
11791         * modules/openat (Files): Remove lib/fchmodat.c.
11792         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11793         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11794         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11795         (Makefile.am): Remove rules for test-fchmodat.
11796         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11797         of module 'openat'.
11798         * NEWS: Mention the change.
11799
11800 2011-11-02  Jim Meyering  <meyering@redhat.com>
11801
11802         putenv: indent #definition of "environ" to placate cppi
11803         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11804
11805         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11806         Git logs are often treated as immutable, because editing them
11807         changes the SHA1 checksums of all descendants.  Thus, errors in
11808         git logs tend to stay there forever.  However, when we generate
11809         a ChangeLog file -- typically for distribution -- from that git log,
11810         we can actually make corrections in the generated file.  The key
11811         lies in recording in machine-readable/applicable form the desired
11812         corrections.  See --help for description and an example.
11813         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11814         (usage): Describe it; alphabetize option descriptions.
11815         (main): Honor the new option, carefully.
11816
11817 2011-11-01  Jim Meyering  <meyering@redhat.com>
11818
11819         gitlog-to-changelog: avoid an infloop
11820         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11821         that ends up being empty.
11822
11823 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11824
11825         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11826         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11827         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11828         contains (possibly-quoted) backslashes.  This should avoid
11829         all-too-common shell bugs if COMPLICATED contains backslashes in
11830         the "wrong" places.  Reported by David Evans in
11831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11832         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11833         because we want ASCII ranges.  Is there some reason we don't use
11834         the C locale everywhere in this script?
11835         (func_module, top level): Avoid unwanted pathname expansion when
11836         $repo_url_prefix or $repo_url_suffix_repl contain shell
11837         metacharacters like '?' and '*'.
11838
11839 2011-11-01  Bruno Haible  <bruno@clisp.org>
11840
11841         fchownat: Improve description.
11842         * modules/fchownat (Description): Add link to function.
11843
11844 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11845
11846         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11847         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11849         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11850
11851 2011-11-01  Bruno Haible  <bruno@clisp.org>
11852
11853         alignof: Avoid collision with stdalign module.
11854         * lib/alignof.h (alignof): Remove macro.
11855         * NEWS: Mention the change.
11856         Reported by Paul Eggert.
11857
11858 2011-11-01  Bruno Haible  <bruno@clisp.org>
11859
11860         New module 'fchownat', split off from module 'openat'.
11861         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11862         defined.
11863         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11865         invoke gl_FUNC_FCHOWNAT.
11866         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11867         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11868         * modules/fchownat: New file, extracted from modules/openat.
11869         * modules/openat (Files): Remove lib/fchownat.c.
11870         (Depends-on): Remove lchown.
11871         (configure.ac): Remove AC_LIBOBJ of fchownat.
11872         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11873         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11874         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11875         (Depends-on): Remove mgetgroups, usleep, stat-time.
11876         (configure.ac): Remove test for getegid.
11877         (Makefile.am): Remove rules for test-fchownat.
11878         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11879         of module 'openat'.
11880         * NEWS: Mention the change.
11881
11882 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11883
11884         stdalign: port better to MSVC and to Sun C 5.11
11885         This fixes some of the problems reported by Bruno Haible in
11886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11887         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11888         shortcomings of MSVC and of Sun C 5.11.
11889         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11890         around __declspec arg.
11891         * modules/stdalign-tests (Files): Add tests/macros.h.
11892         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11893         Include macros.h, for ASSERT.
11894         (DECLARE_ALIGNED): Remove.
11895         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11896         to catch bug), and to 1 if not (simplifies the rest of the code).
11897         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11898         (CHECK_AUTO): Remove.
11899         (CHECK_ALIGNED): Check only the alignment of the static vars,
11900         since auto var alignment isn't supported by Sun C 5.11.
11901         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11902         ASSERT failures are easier to diagnose.
11903
11904 2011-10-31  Bruno Haible  <bruno@clisp.org>
11905
11906         doc about some IRIX 5.3 problems.
11907         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11908         on IRIX 5.3.
11909         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11910         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11911         5.3.
11912         * doc/posix-functions/grantpt.texi: Likewise.
11913         * doc/posix-functions/unlockpt.texi: Likewise.
11914         * doc/posix-functions/lgamma.texi: Likewise.
11915         * doc/posix-functions/nextafter.texi: Likewise.
11916         * doc/posix-functions/remainder.texi: Likewise.
11917         * doc/posix-functions/select.texi: Mention misplaced declaration on
11918         IRIX 5.3.
11919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11920
11921 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11922
11923         gitlog-to-changelog: fix git-log invocation.
11924         git-log mishandles date strings before 1970-01-01 UTC, and there is
11925         no use to specify --since=1970-01-01 by default anyway.
11926         * build-aux/gitlog-to-changelog: By default, when no --since option
11927         was given, do not specify explicit --since option to git-log.
11928
11929 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11930
11931         gitlog-to-changelog: new option --append-dot.
11932         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11933         first non-blank line of each commit message terminated with a dot.
11934
11935 2011-10-30  Bruno Haible  <bruno@clisp.org>
11936
11937         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11938         * lib/ffsl.h: Include <config.h>.
11939         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11940
11941 2011-10-30  Jim Meyering  <meyering@redhat.com>
11942
11943         GNUmakefile: reenable "make syntax-check" for most projects
11944         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11945         build-aux variable", "syntax-check" would do nothing but succeed with
11946         the "No version control files detected..." diagnostic (unless you
11947         happened to override _build-aux via cfg.mk).
11948         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11949         to precede inclusion of maint.mk.  Otherwise, these variables would
11950         be used undefined in any project that does not override the default.
11951
11952 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11953
11954         gitlog-to-changelog: treat a message with only blank lines as empty.
11955         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11956         trailing blank lines before the code that issues a warning about an
11957         empty commit message.
11958
11959 2011-10-30  Jim Meyering  <meyering@redhat.com>
11960
11961         test-parse-datetime.c: avoid new DST-related false positive test failure
11962         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11963         based on the time/date we'll convert, not the current time.
11964         Otherwise, the moment we cross a DST boundary like today's in
11965         Europe, (CEST to CET), that offset ends up being one hour off.
11966
11967 2011-10-27  Bruno Haible  <bruno@clisp.org>
11968
11969         fstat: Tweak documentation.
11970         * modules/fstat (Description): More precise description.
11971
11972 2011-10-27  Bruno Haible  <bruno@clisp.org>
11973
11974         Update documentation regarding 'largefile' module.
11975         * doc/posix-functions/fstat.texi: Tweak wording.
11976         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11977         problems with huge directories and/or small ino_t types.
11978         * doc/posix-functions/readdir.texi: Likewise.
11979         * doc/posix-functions/rewinddir.texi: Likewise.
11980
11981 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11982
11983         maint.mk: don't maintain a second build-aux variable.
11984         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11985         depends on GNUmakefile, which already maintains a cfg.mk
11986         overridable $(_build-aux) for projects with a non-standard
11987         build-aux directory location, although without the $(srcdir)
11988         prefix.  Use that variable consistently instead of introducing a
11989         second one.  Adjust all call sites.
11990
11991 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11992
11993         Add stdalign module and use it in other modules.
11994         This is based on a previous proposal by Bruno Haible
11995         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11996
11997         stdalign: new module
11998         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11999         * modules/stdalign: New files.
12000         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12001         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12002
12003         stdalign-tests: new module
12004         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12005
12006         argp: use stdalign
12007         * lib/argp-parse.c: Include <stdalign.h>.
12008         (alignof): Remove.
12009         * modules/argp (Depends-on): Add stdalign.
12010
12011         crypto libraries: use stdalign
12012         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12013         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12014         Do not include <stdlib.h> twice, in md4.c.
12015         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12016         because we are accessing a pointer's bit-pattern, not a size.
12017         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12018         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12019         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12020         * modules/crypto/sha512: Likewise.
12021
12022         sys_socket: use stdalign, not alignof
12023         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12024         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12025
12026 2011-10-27  Bruno Haible  <bruno@clisp.org>
12027
12028         raise test: Avoid a test failure on Linux/MIPS.
12029         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12030         because 99 is a valid signal on Linux/MIPS.
12031
12032 2011-10-27  Bruno Haible  <bruno@clisp.org>
12033
12034         nonblocking tests: Fix test failure on Linux/MIPS.
12035         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12036         Set to 270000.
12037
12038 2011-10-27  Bruno Haible  <bruno@clisp.org>
12039
12040         utimensat: Work around problem on Linux/hppa.
12041         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12042         values.
12043         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12044
12045 2011-10-25  Jim Meyering  <meyering@redhat.com>
12046
12047         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12048         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12049         after symbols like NULL, size_t, etc.
12050         Reported by Alfred M. Szmidt.
12051
12052         maint.mk: exempt ENODATA from a syntax-check rule
12053         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12054         from the sc_prohibit_always-defined_macros syntax-check rule.
12055         Add a comment.  See this for more details:
12056         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12057
12058 2011-10-23  Jim Meyering  <meyering@redhat.com>
12059
12060         fts: close parent dir FD before returning from post-traversal fts_read
12061         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12062         unlink A, even though an FD open on A remained.  This is suboptimal
12063         (holding a file descriptor open longer than needed), but otherwise not
12064         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12065         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12066         that represents a real problem: it causes the removal of A to fail
12067         with e.g., "rm: cannot remove `A': Device or resource busy"
12068
12069         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12070         directory file descriptors.  After completing the final, FTS_DP,
12071         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12072         cache, but then proceeded to add a new FD to it via the subsequent
12073         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12074         final file descriptor would be closed only via fts_close's call to
12075         fd_ring_clear.  Now, it is usually closed earlier, via the final
12076         FTS_DP-returning fts_read call.
12077         * lib/fts.c (restore_initial_cwd): New function, converted from
12078         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12079         Update callers.
12080         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12081         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12082
12083 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12084             Bruno Haible  <bruno@clisp.org>
12085             Jim Meyering  <jim@meyering.net>
12086
12087         readme-release: improve safety of release prep instructions.
12088         * README-release: Don't git pull all branches when only master
12089         is needed for the release process.
12090         Run make maintainer-clean before changing trees and merging.
12091         Don't try to run ./configure right after git pull in case files
12092         that influence the bootstrap process have changed, move the
12093         ./configure step to after running ./bootstrap.
12094         Don't bootstrap "one last time"... it's the first time!
12095
12096 2011-10-22  Bruno Haible  <bruno@clisp.org>
12097
12098         errno, strerror-override: Support for MSVC 10.
12099         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12100         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12101         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12102         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12103         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12104         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12105         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12106         Assign values compatible with MSVC 10.
12107         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12108         New macros.
12109         (GNULIB_defined_EWINSOCK): New macro.
12110         * lib/strerror-override.c (strerror_override): Update accordingly.
12111         * lib/strerror-override.h: Likewise.
12112         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12113         longer equal to the corresponding errno value.
12114         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12115
12116 2011-10-22  Bruno Haible  <bruno@clisp.org>
12117
12118         perror: Recognize when test program crashes.
12119         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12120         strerror, set gl_cv_func_perror_works to no.
12121         Reported by Daniel Richard G. <skunk@iskunk.org>.
12122
12123         perror: Fix indentation.
12124         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12125
12126 2011-10-22  Bruno Haible  <bruno@clisp.org>
12127
12128         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12129         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12130         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12131         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12132         functions, not as a macro.
12133         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12134         macros.
12135         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12136         absence of macro.
12137         Suggested by Eric Blake.
12138         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12139
12140 2011-10-21  Bruno Haible  <bruno@clisp.org>
12141
12142         relocatable-prog-wrapper: Don't leave object files behind.
12143         * build-aux/install-reloc: Re-synchronize list of .o files to be
12144         removed with list of compilation units.
12145
12146 2011-10-20  Bruno Haible  <bruno@clisp.org>
12147
12148         openpty, posix_openpt: Remove code duplication.
12149         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12150         * lib/openpty.c: Include <stdlib.h>.
12151         (openpty): Use posix_openpt on all platforms except IRIX.
12152         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12153
12154 2011-10-20  Bruno Haible  <bruno@clisp.org>
12155
12156         unlockpt: Detect invalid argument.
12157         * lib/unlockpt.c: Include <fcntl.h>.
12158         (unlockpt): Check whether fd is valid, using fcntl().
12159         * modules/unlockpt (Depends-on): Add fcntl-h.
12160
12161 2011-10-20  Bruno Haible  <bruno@clisp.org>
12162
12163         openpty: Avoid compilation error on AIX 6.1.
12164         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12165
12166 2011-10-20  Bruno Haible  <bruno@clisp.org>
12167
12168         posix_openpt: Support for OpenBSD.
12169         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12170         (posix_openpt) [OpenBSD]: New code.
12171         * lib/grantpt.c: Include <fcntl.h>.
12172         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12173         * modules/grantpt (Depends-on): Add fcntl-h.
12174
12175 2011-10-20  Bruno Haible  <bruno@clisp.org>
12176
12177         posix_openpt test: Coding style.
12178         * tests/test-posix_openpt.c: Use GNU coding style.
12179
12180 2011-10-20  Bruno Haible  <bruno@clisp.org>
12181
12182         grantpt: Support --avoid=pt_chown.
12183         * modules/grantpt (Files): Add lib/pty-private.h.
12184
12185 2011-10-20  Bruno Haible  <bruno@clisp.org>
12186
12187         posix_openpt: Fix autoconf macro.
12188         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12189         unneeded check for _getpty.
12190
12191 2011-10-20  Bruno Haible  <bruno@clisp.org>
12192
12193         openpty: Update comments.
12194         * lib/openpty.c: Add comments about Minix.
12195
12196 2011-10-19  Eric Blake  <eblake@redhat.com>
12197
12198         openpty: relax license
12199         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12200
12201         pt_chown: use configmake to simplify build
12202         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12203
12204         ptsname and others: relax license
12205         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12206         * modules/unlockpt (License): Likewise.
12207         * modules/pt_chown (License): Likewise.
12208         * modules/ptsname (License): Likewise.
12209         * modules/ttyname_r (License): Likewise.
12210
12211 2011-10-19  Jim Meyering  <meyering@redhat.com>
12212
12213         posix_openpt: remove spurious #endif
12214         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12215
12216 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12217
12218         maint.mk: Respect $(build_aux) in web-manual rule.
12219         * top/maint.mk (web-manual): Find gen-announce script in user's
12220         $(build_aux) directory instead of hard-coding 'build-aux'.
12221
12222 2011-10-19  Bruno Haible  <bruno@clisp.org>
12223
12224         posix_openpt: Fix compilation error.
12225         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12226         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12227         Mention the openpty module as an alternative.
12228
12229 2011-10-19  Bruno Haible  <bruno@clisp.org>
12230
12231         Support for old NeXTstep 3.3 frexp().
12232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12233         execution time of the test to 5 seconds.
12234         Reported by Daniel Richard G. <skunk@iskunk.org>.
12235
12236 2011-10-19  Bruno Haible  <bruno@clisp.org>
12237
12238         Support for old NeXTstep 3.3 sed.
12239         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12240         part, use /.../, not \|...|. Escape periods in the header file name.
12241         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12242         Reported by Daniel Richard G. <skunk@iskunk.org>.
12243
12244 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12245
12246         Support for old NeXTstep 3.3 gcc.
12247         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12248         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12249         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12250         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12251         * lib/regex.h (_Restrict_arr_): Likewise.
12252         * lib/regex_internal.h (re_token_t): Likewise.
12253         * lib/regexec.c (check_node_accept_bytes): Likewise.
12254         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12255
12256 2011-10-18  Eric Blake  <eblake@redhat.com>
12257
12258         posix_openpt: new module
12259         * modules/posix_openpt: New module.
12260         * m4/posix_openpt.m4: New file.
12261         * lib/posix_openpt.c: Likewise.
12262         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12263         (gl_STDLIB_H_DEFAULTS): Set defaults.
12264         * modules/stdlib (Makefile.am): Substitute macros.
12265         * lib/stdlib.in.h (posix_openpt): Declare.
12266         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12267         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12268         * modules/posix_openpt-tests: New test module.
12269         * tests/test-posix_openpt.c: New test.
12270
12271 2011-10-15  Bruno Haible  <bruno@clisp.org>
12272
12273         xstrtoll: Fix compilation failure.
12274         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12275         from lib/strtol.c.
12276         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12277         some platforms.
12278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12279
12280 2011-10-15  Bruno Haible  <bruno@clisp.org>
12281
12282         vasnprintf: Optimize bit search operation.
12283         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12285         gl_DOUBLE_EXPONENT_LOCATION.
12286         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12287         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12288         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12289         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12290         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12291         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12292         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12293         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12294         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12295
12296 2011-10-15  Bruno Haible  <bruno@clisp.org>
12297
12298         vasnprintf: Fix comments.
12299         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12300
12301 2011-10-14  Bruno Haible  <bruno@clisp.org>
12302
12303         Tests for module 'integer_length_ll'.
12304         * modules/integer_length_ll-tests: New file.
12305         * tests/test-integer_length_ll.c: New file.
12306
12307         New module 'integer_length_ll'.
12308         * lib/integer_length_ll.c: New file.
12309         * modules/integer_length_ll: New file.
12310
12311 2011-10-14  Bruno Haible  <bruno@clisp.org>
12312
12313         Tests for module 'integer_length_l'.
12314         * modules/integer_length_l-tests: New file.
12315         * tests/test-integer_length_l.c: New file.
12316
12317         New module 'integer_length_l'.
12318         * lib/integer_length_l.c: New file.
12319         * modules/integer_length_l: New file.
12320
12321 2011-10-14  Bruno Haible  <bruno@clisp.org>
12322
12323         Tests for module 'integer_length'.
12324         * modules/integer_length-tests: New file.
12325         * tests/test-integer_length.c: New file.
12326
12327         New module 'integer_length'.
12328         * lib/integer_length.h: New file.
12329         * lib/integer_length.c: New file.
12330         * modules/integer_length: New file.
12331
12332 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12333
12334         popen: Fix dependency conditions.
12335         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12336
12337 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12338
12339         perror: Fix autoconf test.
12340         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12341         <stdlib.h> and <string.h>.
12342
12343 2011-10-14  Bruno Haible  <bruno@clisp.org>
12344
12345         ffsl: Optimize on 64-bit platforms.
12346         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12347         unrolling.
12348
12349 2011-10-13  Bruno Haible  <bruno@clisp.org>
12350
12351         ffsl: Optimize on 32-bit platforms.
12352         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12353         use ffs() without a loop.
12354
12355         ffsl, ffsll: Optimize for GCC.
12356         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12357         * lib/ffsl.c (GCC_BUILTIN): New macro.
12358         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12359
12360 2011-10-13  Bruno Haible  <bruno@clisp.org>
12361
12362         ffs, bcopy, memset: Support symbol renaming via config.h.
12363         * lib/ffs.c: Include <config.h>.
12364         * lib/bcopy.c: Likewise.
12365         * lib/memset.c: Likewise.
12366
12367 2011-10-10  Bruno Haible  <bruno@clisp.org>
12368
12369         atanl: Simplify for platforms where 'long double' == 'double'.
12370         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12371         alternative implementation.
12372         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12373         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12374         * modules/atanl (Depends-on): Add atan. Update conditions.
12375
12376 2011-10-10  Bruno Haible  <bruno@clisp.org>
12377
12378         acosl: Simplify for platforms where 'long double' == 'double'.
12379         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12380         alternative implementation.
12381         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12382         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12383         * modules/acosl (Depends-on): Add acos. Update conditions.
12384
12385 2011-10-10  Bruno Haible  <bruno@clisp.org>
12386
12387         asinl: Simplify for platforms where 'long double' == 'double'.
12388         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12389         alternative implementation.
12390         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12391         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12392         * modules/asinl (Depends-on): Add asin. Update conditions.
12393
12394 2011-10-10  Bruno Haible  <bruno@clisp.org>
12395
12396         tanl: Simplify for platforms where 'long double' == 'double'.
12397         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12398         implementation.
12399         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12400         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12401         * modules/tanl (Depends-on): Add tan. Update conditions.
12402         (configure.ac): Don't compile trigl.c if
12403         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12404
12405 2011-10-10  Bruno Haible  <bruno@clisp.org>
12406
12407         cosl: Simplify for platforms where 'long double' == 'double'.
12408         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12409         implementation.
12410         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12411         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12412         * modules/cosl (Depends-on): Add cos. Update conditions.
12413         (configure.ac): Don't compile sincosl.c and trigl.c if
12414         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12415
12416 2011-10-10  Bruno Haible  <bruno@clisp.org>
12417
12418         sinl: Simplify for platforms where 'long double' == 'double'.
12419         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12420         implementation.
12421         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12422         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12423         * modules/sinl (Depends-on): Add sin. Update conditions.
12424         (configure.ac): Don't compile sincosl.c and trigl.c if
12425         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12426
12427 2011-10-10  Bruno Haible  <bruno@clisp.org>
12428
12429         logl: Simplify for platforms where 'long double' == 'double'.
12430         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12431         implementation.
12432         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12433         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12434         * modules/logl (Depends-on): Add log. Update conditions.
12435
12436 2011-10-10  Bruno Haible  <bruno@clisp.org>
12437
12438         expl: Simplify for platforms where 'long double' == 'double'.
12439         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12440         implementation.
12441         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12442         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12443         * modules/expl (Depends-on): Add exp. Update conditions.
12444
12445 2011-10-10  Bruno Haible  <bruno@clisp.org>
12446
12447         sqrtl: Simplify for platforms where 'long double' == 'double'.
12448         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12449         alternative implementation.
12450         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12451         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12452         * modules/sqrtl (Depends-on): Update conditions.
12453
12454 2011-10-10  Bruno Haible  <bruno@clisp.org>
12455
12456         ldexpl: Simplify for platforms where 'long double' == 'double'.
12457         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12458         alternative implementation.
12459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12460         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12461         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12462
12463 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12464
12465         ffsll: set correct witness
12466         * modules/ffsll (configure.ac): Fix typo.
12467
12468 2011-10-10  Bruno Haible  <bruno@clisp.org>
12469
12470         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12471         * lib/printf-frexpl.c: Include <config.h>.
12472         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12473         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12474         second time.
12475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12476         gl_LONG_DOUBLE_VS_DOUBLE.
12477         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12478         conditions.
12479
12480 2011-10-10  Bruno Haible  <bruno@clisp.org>
12481
12482         frexpl: Simplify for platforms where 'long double' == 'double'.
12483         * lib/frexpl.c: Include <config.h>.
12484         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12485         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12486         time.
12487         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12488         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12489         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12490         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12491         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12492         conditions.
12493
12494 2011-10-10  Jim Meyering  <meyering@redhat.com>
12495
12496         test-renameat: don't leave behind a temporary file
12497         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12498           ERROR: files left in build directory after distclean:
12499           ./gltests/test-renameat.too
12500           make[1]: *** [distcleancheck] Error 1
12501         Reported by Tom G. Christensen.
12502
12503 2011-10-09  Bruno Haible  <bruno@clisp.org>
12504
12505         rint: Determine RINT_LIBM correctly on AIX 7.
12506         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12507         directly, not only through a function pointer. Also accept an optional
12508         4th argument with extra code.
12509         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12510         rintf() call by gcc when optimizing.
12511
12512         mathfunc.m4: Refactor.
12513         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12514         m4 variable.
12515
12516 2011-10-09  Bruno Haible  <bruno@clisp.org>
12517
12518         rintl: Simplify for platforms where 'long double' == 'double'.
12519         * lib/rintl.c: Include <config.h>.
12520         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12521         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12522         time.
12523         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12524         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12525         * modules/rintl (Depends-on): Add rint. Update conditions.
12526
12527 2011-10-09  Bruno Haible  <bruno@clisp.org>
12528
12529         roundl: Simplify for platforms where 'long double' == 'double'.
12530         * lib/roundl.c: Include <config.h>.
12531         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12532         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12533         time.
12534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12535         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12536         * modules/roundl (Depends-on): Add round. Update conditions.
12537
12538 2011-10-09  Bruno Haible  <bruno@clisp.org>
12539
12540         truncl: Simplify for platforms where 'long double' == 'double'.
12541         * lib/truncl.c: Include <config.h>.
12542         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12543         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12544         time.
12545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12546         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12547         * modules/truncl (Depends-on): Add trunc. Update conditions.
12548
12549 2011-10-09  Bruno Haible  <bruno@clisp.org>
12550
12551         ceill: Simplify for platforms where 'long double' == 'double'.
12552         * lib/ceill.c: Include <config.h>.
12553         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12554         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12555         time.
12556         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12557         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12558         * modules/ceill (Depends-on): Add ceil. Update conditions.
12559
12560 2011-10-09  Bruno Haible  <bruno@clisp.org>
12561
12562         floorl: Simplify for platforms where 'long double' == 'double'.
12563         * lib/floorl.c: Include <config.h>.
12564         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12565         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12566         time.
12567         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12568         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12569         * modules/floorl (Depends-on): Add floor. Update conditions.
12570
12571 2011-10-09  Bruno Haible  <bruno@clisp.org>
12572
12573         rint: Fix ordering constraints.
12574         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12575         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12576         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12577
12578 2011-10-09  Bruno Haible  <bruno@clisp.org>
12579
12580         copysignl: Simplify for platforms where 'long double' == 'double'.
12581         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12582         alternative.
12583         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12584         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12585         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12586
12587 2011-10-09  Bruno Haible  <bruno@clisp.org>
12588
12589         Tests for module 'rintl'.
12590         * modules/rintl-tests: New file.
12591         * tests/test-rintl.c: New file.
12592
12593         New module 'rintl'.
12594         * lib/math.in.h (rintl): New declaration.
12595         * lib/rintl.c: New file.
12596         * m4/rintl.m4: New file.
12597         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12599         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12600         * modules/rintl: New file.
12601         * tests/test-math-c++.cc: Check the declaration of rintl.
12602         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12603         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12604         * doc/posix-functions/rintl.texi: Mention the new module.
12605
12606 2011-10-09  Bruno Haible  <bruno@clisp.org>
12607
12608         Tests for module 'rintf'.
12609         * modules/rintf-tests: New file.
12610         * tests/test-rintf.c: New file.
12611
12612         New module 'rintf'.
12613         * lib/math.in.h (rintf): New declaration.
12614         * lib/rintf.c: New file.
12615         * m4/rintf.m4: New file.
12616         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12618         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12619         * modules/rintf: New file.
12620         * tests/test-math-c++.cc: Check the declaration of rintf.
12621         * doc/posix-functions/rintf.texi: Mention the new module.
12622
12623 2011-10-09  Bruno Haible  <bruno@clisp.org>
12624
12625         rint: Support for MSVC.
12626         * lib/math.in.h (rint): New declaration.
12627         * lib/rint.c: New file.
12628         * m4/rint.m4: New file.
12629         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12631         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12632         * modules/rint (Description): Fix.
12633         (Files): Add lib/rint.c, m4/rint.m4.
12634         (Depends-on): Add math.
12635         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12636         gl_MATH_MODULE_INDICATOR.
12637         * tests/test-math-c++.cc: Check the declaration of rint.
12638         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12639         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12640         * doc/posix-functions/rint.texi: Mention the replacement provided by
12641         the module.
12642
12643         rint tests: More tests.
12644         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12645         minus-zero.h, infinity.h, nan.h.
12646         (main): Skip the test if the current rounding mode is not standard. Add
12647         tests for negative numbers, minus zero, infinity, NaN.
12648         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12649         tests/nan.h.
12650         (Depends-on): Add isnand-nolibm.
12651
12652 2011-10-09  Bruno Haible  <bruno@clisp.org>
12653
12654         Tests for module 'copysignl'.
12655         * modules/copysignl-tests: New file.
12656         * tests/test-copysignl.c: New file.
12657
12658         New module 'copysignl'.
12659         * lib/math.in.h (copysignl): New declaration.
12660         * lib/copysignl.c: New file.
12661         * m4/copysignl.m4: New file.
12662         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12664         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12665         HAVE_COPYSIGNL.
12666         * modules/copysignl: New file.
12667         * tests/test-math-c++.cc: Check the declaration of copysignl.
12668         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12669         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12670         * doc/posix-functions/copysignl.texi: Mention the new module.
12671
12672 2011-10-09  Bruno Haible  <bruno@clisp.org>
12673
12674         Tests for module 'copysignf'.
12675         * modules/copysignf-tests: New file.
12676         * tests/test-copysignf.c: New file.
12677
12678         New module 'copysignf'.
12679         * lib/math.in.h (copysignf): New declaration.
12680         * lib/copysignf.c: New file.
12681         * m4/copysignf.m4: New file.
12682         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12684         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12685         HAVE_COPYSIGNF.
12686         * modules/copysignf: New file.
12687         * tests/test-math-c++.cc: Check the declaration of copysignf.
12688         * doc/posix-functions/copysignf.texi: Mention the new module.
12689
12690 2011-10-09  Bruno Haible  <bruno@clisp.org>
12691
12692         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12695         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12696         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12697         gl_SIGNAL_H_DEFAULTS.
12698
12699 2011-10-09  Bruno Haible  <bruno@clisp.org>
12700
12701         poll: Make macro safer.
12702         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12703         ac_cv_header_poll_h is not set.
12704
12705 2011-10-09  Bruno Haible  <bruno@clisp.org>
12706
12707         copysign: Provide replacement.
12708         * lib/math.in.h (copysign): New declaration.
12709         * lib/copysign.c: New file.
12710         * m4/copysign.m4: New file.
12711         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12713         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12714         HAVE_COPYSIGN.
12715         * modules/copysign (Description): Clarify.
12716         (Files): Add lib/copysign.c, m4/copysign.m4.
12717         (Depends-on): Add math, signbit.
12718         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12719         gl_MATH_MODULE_INDICATOR.
12720         * tests/test-math-c++.cc: Check the declaration of copysign.
12721         * doc/posix-functions/copysign.texi: Mention the effects of the module
12722         on Minix and MSVC.
12723
12724 2011-10-09  Bruno Haible  <bruno@clisp.org>
12725
12726         isinf: Ensure macro on AIX 5.1.
12727         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12728         macro.
12729         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12730
12731 2011-10-09  Bruno Haible  <bruno@clisp.org>
12732
12733         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12734         * modules/snprintf-posix-tests (configure.ac): Require
12735         gl_LONG_DOUBLE_VS_DOUBLE.
12736         * modules/sprintf-posix-tests (configure.ac): Likewise.
12737         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12738         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12739         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12740         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12741         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12742         tests on platforms where 'long double' is the same as 'double'.
12743         * tests/test-sprintf-posix.h (test_function): Likewise.
12744         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12745         * tests/test-vasprintf-posix.c (test_function): Likewise.
12746
12747         *printf: Fix for platforms where 'long double' == 'double'.
12748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12749         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12750         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12751         * modules/fprintf-posix (Files): Likewise.
12752         * modules/obstack-printf-posix (Files): Likewise.
12753         * modules/snprintf-posix (Files): Likewise.
12754         * modules/sprintf-posix (Files): Likewise.
12755         * modules/vasnprintf (Files): Likewise.
12756         * modules/vasnprintf-posix (Files): Likewise.
12757         * modules/vasprintf-posix (Files): Likewise.
12758         * modules/vdprintf-posix (Files): Likewise.
12759         * modules/vfprintf-posix (Files): Likewise.
12760         * modules/vsnprintf-posix (Files): Likewise.
12761         * modules/vsprintf-posix (Files): Likewise.
12762         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12763         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12764         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12765         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12766         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12767         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12768         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12769
12770         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12771         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12772         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12773         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12774         'long double'.
12775         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12776
12777         isinf: Fix for platforms where 'long double' == 'double'.
12778         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12779         Don't blindly assume 80-bit 'long double'.
12780
12781         isfinite: Fix for platforms where 'long double' == 'double'.
12782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12783         Don't blindly assume 80-bit 'long double'.
12784
12785         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12786         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12787         * modules/isfinite-tests (configure.ac): Require
12788         gl_LONG_DOUBLE_VS_DOUBLE.
12789         * modules/isinf-tests (configure.ac): Likewise.
12790         * modules/isnan-tests (configure.ac): Likewise.
12791         * modules/isnanl-tests (configure.ac): Likewise.
12792         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12793         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12794         tests on platforms where 'long double' is the same as 'double'.
12795         * tests/test-isinf.c (test_isinfl): Likewise.
12796         * tests/test-isnan.c (test_long_double): Likewise.
12797         * tests/test-isnanl.h (main): Likewise.
12798
12799 2011-10-08  Bruno Haible  <bruno@clisp.org>
12800
12801         Tests for module 'tanhf'.
12802         * modules/tanhf-tests: New file.
12803         * tests/test-tanhf.c: New file.
12804
12805         New module 'tanhf'.
12806         * lib/math.in.h (tanhf): New declaration.
12807         * lib/tanhf.c: New file.
12808         * m4/tanhf.m4: New file.
12809         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12811         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12812         * modules/tanhf: New file.
12813         * tests/test-math-c++.cc: Check the declaration of tanhf.
12814         * doc/posix-functions/tanhf.texi: Mention the new module.
12815
12816         tanh: Use a .m4 file.
12817         * m4/tanh.m4: New file.
12818         * modules/tanh (Files): Add it.
12819         (configure.ac): Just invoke gl_FUNC_TANH.
12820
12821 2011-10-08  Bruno Haible  <bruno@clisp.org>
12822
12823         Tests for module 'coshf'.
12824         * modules/coshf-tests: New file.
12825         * tests/test-coshf.c: New file.
12826
12827         New module 'coshf'.
12828         * lib/math.in.h (coshf): New declaration.
12829         * lib/coshf.c: New file.
12830         * m4/coshf.m4: New file.
12831         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12833         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12834         * modules/coshf: New file.
12835         * tests/test-math-c++.cc: Check the declaration of coshf.
12836         * doc/posix-functions/coshf.texi: Mention the new module.
12837
12838         cosh: Use a .m4 file.
12839         * m4/cosh.m4: New file.
12840         * modules/cosh (Files): Add it.
12841         (configure.ac): Just invoke gl_FUNC_COSH.
12842
12843 2011-10-08  Bruno Haible  <bruno@clisp.org>
12844
12845         Tests for module 'sinhf'.
12846         * modules/sinhf-tests: New file.
12847         * tests/test-sinhf.c: New file.
12848
12849         New module 'sinhf'.
12850         * lib/math.in.h (sinhf): New declaration.
12851         * lib/sinhf.c: New file.
12852         * m4/sinhf.m4: New file.
12853         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12855         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12856         * modules/sinhf: New file.
12857         * tests/test-math-c++.cc: Check the declaration of sinhf.
12858         * doc/posix-functions/sinhf.texi: Mention the new module.
12859
12860         sinh: Use a .m4 file.
12861         * m4/sinh.m4: New file.
12862         * modules/sinh (Files): Add it.
12863         (configure.ac): Just invoke gl_FUNC_SINH.
12864
12865 2011-10-08  Bruno Haible  <bruno@clisp.org>
12866
12867         Tests for module 'atan2f'.
12868         * modules/atan2f-tests: New file.
12869         * tests/test-atan2f.c: New file.
12870
12871         New module 'atan2f'.
12872         * lib/math.in.h (atan2f): New declaration.
12873         * lib/atan2f.c: New file.
12874         * m4/atan2f.m4: New file.
12875         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12877         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12878         * modules/atan2f: New file.
12879         * tests/test-math-c++.cc: Check the declaration of atan2f.
12880         * doc/posix-functions/atan2f.texi: Mention the new module.
12881
12882         atan2: Use a .m4 file.
12883         * m4/atan2.m4: New file.
12884         * modules/atan2 (Files): Add it.
12885         (configure.ac): Just invoke gl_FUNC_ATAN2.
12886
12887 2011-10-08  Bruno Haible  <bruno@clisp.org>
12888
12889         Tests for module 'atanf'.
12890         * modules/atanf-tests: New file.
12891         * tests/test-atanf.c: New file.
12892
12893         New module 'atanf'.
12894         * lib/math.in.h (atanf): New declaration.
12895         * lib/atanf.c: New file.
12896         * m4/atanf.m4: New file.
12897         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12899         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12900         * modules/atanf: New file.
12901         * tests/test-math-c++.cc: Check the declaration of atanf.
12902         * doc/posix-functions/atanf.texi: Mention the new module.
12903
12904         atan: Use a .m4 file.
12905         * m4/atan.m4: New file.
12906         * modules/atan (Files): Add it.
12907         (configure.ac): Just invoke gl_FUNC_ATAN.
12908
12909 2011-10-08  Bruno Haible  <bruno@clisp.org>
12910
12911         Tests for module 'acosf'.
12912         * modules/acosf-tests: New file.
12913         * tests/test-acosf.c: New file.
12914
12915         New module 'acosf'.
12916         * lib/math.in.h (acosf): New declaration.
12917         * lib/acosf.c: New file.
12918         * m4/acosf.m4: New file.
12919         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12921         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12922         * modules/acosf: New file.
12923         * tests/test-math-c++.cc: Check the declaration of acosf.
12924         * doc/posix-functions/acosf.texi: Mention the new module.
12925
12926         acos: Use a .m4 file.
12927         * m4/acos.m4: New file.
12928         * modules/acos (Files): Add it.
12929         (configure.ac): Just invoke gl_FUNC_ACOS.
12930
12931 2011-10-08  Bruno Haible  <bruno@clisp.org>
12932
12933         Tests for module 'asinf'.
12934         * modules/asinf-tests: New file.
12935         * tests/test-asinf.c: New file.
12936
12937         New module 'asinf'.
12938         * lib/math.in.h (asinf): New declaration.
12939         * lib/asinf.c: New file.
12940         * m4/asinf.m4: New file.
12941         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12943         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12944         * modules/asinf: New file.
12945         * tests/test-math-c++.cc: Check the declaration of asinf.
12946         * doc/posix-functions/asinf.texi: Mention the new module.
12947
12948         asin: Use a .m4 file.
12949         * m4/asin.m4: New file.
12950         * modules/asin (Files): Add it.
12951         (configure.ac): Just invoke gl_FUNC_ASIN.
12952
12953 2011-10-08  Bruno Haible  <bruno@clisp.org>
12954
12955         Tests for module 'tanf'.
12956         * modules/tanf-tests: New file.
12957         * tests/test-tanf.c: New file.
12958
12959         New module 'tanf'.
12960         * lib/math.in.h (tanf): New declaration.
12961         * lib/tanf.c: New file.
12962         * m4/tanf.m4: New file.
12963         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12965         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12966         * modules/tanf: New file.
12967         * tests/test-math-c++.cc: Check the declaration of tanf.
12968         * doc/posix-functions/tanf.texi: Mention the new module.
12969
12970         tan: Use a .m4 file.
12971         * m4/tan.m4: New file.
12972         * modules/tan (Files): Add it.
12973         (configure.ac): Just invoke gl_FUNC_TAN.
12974
12975 2011-10-08  Bruno Haible  <bruno@clisp.org>
12976
12977         Tests for module 'cosf'.
12978         * modules/cosf-tests: New file.
12979         * tests/test-cosf.c: New file.
12980
12981         New module 'cosf'.
12982         * lib/math.in.h (cosf): New declaration.
12983         * lib/cosf.c: New file.
12984         * m4/cosf.m4: New file.
12985         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12987         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12988         * modules/cosf: New file.
12989         * tests/test-math-c++.cc: Check the declaration of cosf.
12990         * doc/posix-functions/cosf.texi: Mention the new module.
12991
12992         cos: Use a .m4 file.
12993         * m4/cos.m4: New file.
12994         * modules/cos (Files): Add it.
12995         (configure.ac): Just invoke gl_FUNC_COS.
12996
12997 2011-10-08  Bruno Haible  <bruno@clisp.org>
12998
12999         Tests for module 'sinf'.
13000         * modules/sinf-tests: New file.
13001         * tests/test-sinf.c: New file.
13002
13003         New module 'sinf'.
13004         * lib/math.in.h (sinf): New declaration.
13005         * lib/sinf.c: New file.
13006         * m4/sinf.m4: New file.
13007         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13009         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13010         * modules/sinf: New file.
13011         * tests/test-math-c++.cc: Check the declaration of sinf.
13012         * doc/posix-functions/sinf.texi: Mention the new module.
13013
13014         sin: Use a .m4 file.
13015         * m4/sin.m4: New file.
13016         * modules/sin (Files): Add it.
13017         (configure.ac): Just invoke gl_FUNC_SIN.
13018
13019 2011-10-08  Bruno Haible  <bruno@clisp.org>
13020
13021         Tests for module 'powf'.
13022         * modules/powf-tests: New file.
13023         * tests/test-powf.c: New file.
13024
13025         New module 'powf'.
13026         * lib/math.in.h (powf): New declaration.
13027         * lib/powf.c: New file.
13028         * m4/powf.m4: New file.
13029         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13031         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13032         * modules/powf: New file.
13033         * tests/test-math-c++.cc: Check the declaration of powf.
13034         * doc/posix-functions/powf.texi: Mention the new module.
13035
13036         pow: Use a .m4 file.
13037         * m4/pow.m4: New file.
13038         * modules/pow (Files): Add it.
13039         (configure.ac): Just invoke gl_FUNC_POW.
13040
13041 2011-10-08  Bruno Haible  <bruno@clisp.org>
13042
13043         Tests for module 'log10f'.
13044         * modules/log10f-tests: New file.
13045         * tests/test-log10f.c: New file.
13046
13047         New module 'log10f'.
13048         * lib/math.in.h (log10f): New declaration.
13049         * lib/log10f.c: New file.
13050         * m4/log10f.m4: New file.
13051         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13053         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13054         * modules/log10f: New file.
13055         * tests/test-math-c++.cc: Check the declaration of log10f.
13056         * doc/posix-functions/log10f.texi: Mention the new module.
13057
13058         log10: Use a .m4 file.
13059         * m4/log10.m4: New file.
13060         * modules/log10 (Files): Add it.
13061         (configure.ac): Just invoke gl_FUNC_LOG10.
13062
13063 2011-10-08  Bruno Haible  <bruno@clisp.org>
13064
13065         Tests for module 'logf'.
13066         * modules/logf-tests: New file.
13067         * tests/test-logf.c: New file.
13068
13069         New module 'logf'.
13070         * lib/math.in.h (logf): New declaration.
13071         * lib/logf.c: New file.
13072         * m4/logf.m4: New file.
13073         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13075         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13076         * modules/logf: New file.
13077         * tests/test-math-c++.cc: Check the declaration of logf.
13078         * doc/posix-functions/logf.texi: Mention the new module.
13079
13080         log: Use a .m4 file.
13081         * m4/log.m4: New file.
13082         * modules/log (Files): Add it.
13083         (configure.ac): Just invoke gl_FUNC_LOG.
13084
13085 2011-10-08  Bruno Haible  <bruno@clisp.org>
13086
13087         Tests for module 'expf'.
13088         * modules/expf-tests: New file.
13089         * tests/test-expf.c: New file.
13090
13091         New module 'expf'.
13092         * lib/math.in.h (expf): New declaration.
13093         * lib/expf.c: New file.
13094         * m4/expf.m4: New file.
13095         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13097         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13098         * modules/expf: New file.
13099         * tests/test-math-c++.cc: Check the declaration of expf.
13100         * doc/posix-functions/expf.texi: Mention the new module.
13101
13102         exp: Use a .m4 file.
13103         * m4/exp.m4: New file.
13104         * modules/exp (Files): Add it.
13105         (configure.ac): Just invoke gl_FUNC_EXP.
13106
13107 2011-10-08  Bruno Haible  <bruno@clisp.org>
13108
13109         Tests for module 'sqrtf'.
13110         * modules/sqrtf-tests: New file.
13111         * tests/test-sqrtf.c: New file.
13112
13113         New module 'sqrtf'.
13114         * lib/math.in.h (sqrtf): New declaration.
13115         * lib/sqrtf.c: New file.
13116         * m4/sqrtf.m4: New file.
13117         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13119         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13120         * modules/sqrtf: New file.
13121         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13122         * doc/posix-functions/sqrtf.texi: Mention the new module.
13123
13124 2011-10-08  Bruno Haible  <bruno@clisp.org>
13125
13126         Tests: Avoid link failures w.r.t. libintl.
13127         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13128         $(LIBINTL).
13129         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13130         $(LIBINTL).
13131         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13132         against $(LIBINTL).
13133         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13134         $(LIBINTL).
13135         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13136         $(LIBINTL).
13137         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13138
13139 2011-10-08  Bruno Haible  <bruno@clisp.org>
13140
13141         pow tests: Defeat compiler optimizations.
13142         * tests/test-pow.c (main): Assign arguments to x and y before use.
13143
13144 2011-10-08  Bruno Haible  <bruno@clisp.org>
13145
13146         gnulib-tool: Improve last commit.
13147         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13148         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13149         ignore dependencies that are not among the modules list.
13150
13151 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13152
13153         gnulib-tool: don't follow dependencies to avoided modules
13154         This fixes a bug that is related to the previous one.
13155         * gnulib-tool (func_modules_transitive_closure)
13156         (func_emit_autoconf_snippets):
13157         Check whether a dependency is acceptable before using it.
13158         (--extract-dependencies): Report an error if --avoid is also used,
13159         since this combination of options is not yet supported.
13160
13161         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13162         Problem reported by Peter Dyballa in
13163         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13164         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13165         when echoing "$condition".
13166
13167 2011-10-07  Bruno Haible  <bruno@clisp.org>
13168
13169         Fix documentation about math functions on MacOS X.
13170         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13171         MacOS X 10.5.
13172         * doc/posix-functions/fdim.texi: Likewise.
13173         * doc/posix-functions/feclearexcept.texi: Likewise.
13174         * doc/posix-functions/fegetenv.texi: Likewise.
13175         * doc/posix-functions/fegetround.texi: Likewise.
13176         * doc/posix-functions/feholdexcept.texi: Likewise.
13177         * doc/posix-functions/feraiseexcept.texi: Likewise.
13178         * doc/posix-functions/fesetenv.texi: Likewise.
13179         * doc/posix-functions/fesetround.texi: Likewise.
13180         * doc/posix-functions/fetestexcept.texi: Likewise.
13181         * doc/posix-functions/feupdateenv.texi: Likewise.
13182         * doc/posix-functions/fmax.texi: Likewise.
13183         * doc/posix-functions/fmin.texi: Likewise.
13184         * doc/posix-functions/log2.texi: Likewise.
13185         * doc/posix-functions/modff.texi: Likewise.
13186         * doc/posix-functions/nan.texi: Likewise.
13187         * doc/posix-functions/nanf.texi: Likewise.
13188         * doc/posix-functions/nextafterf.texi: Likewise.
13189         * doc/posix-functions/remquo.texi: Likewise.
13190
13191 2011-10-07  Bruno Haible  <bruno@clisp.org>
13192
13193         modff: Drop assumption about library that defines modff.
13194         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13195         AC_CHECK_FUNCS.
13196         * modules/modff (Files): Add m4/mathfunc.m4.
13197
13198 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13199
13200         raise tests: Avoid a GCC warning.
13201         * tests/test-raise.c (handler): Use _Noreturn.
13202
13203 2011-10-07  Bruno Haible  <bruno@clisp.org>
13204
13205         Tests for module 'ldexpf'.
13206         * modules/ldexpf-tests: New file.
13207         * tests/test-ldexpf.c: New file.
13208
13209         New module 'ldexpf'.
13210         * lib/math.in.h (ldexpf): New declaration.
13211         * lib/ldexpf.c: New file.
13212         * m4/ldexpf.m4: New file.
13213         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13215         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13216         * modules/ldexpf: New file.
13217         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13218         * doc/posix-functions/ldexpf.texi: Mention the new module.
13219
13220 2011-10-06  Bruno Haible  <bruno@clisp.org>
13221
13222         frexpf: Work around problems on IRIX and mingw.
13223         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13225         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13226         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13227         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13228         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13229         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13230
13231 2011-10-06  Bruno Haible  <bruno@clisp.org>
13232
13233         fabsf: Drop assumption about library that defines fabsf.
13234         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13235         AC_CHECK_FUNCS.
13236         * modules/fabsf (Files): Add m4/mathfunc.m4.
13237
13238 2011-10-06  Bruno Haible  <bruno@clisp.org>
13239
13240         frexpf: Drop assumption about library that defines frexpf.
13241         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13242         'int *', 'float *', 'long double *', 'float', 'long double'.
13243         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13244         AC_CHECK_FUNCS.
13245         * modules/frexpf (Files): Add m4/mathfunc.m4.
13246
13247         Tests for module 'frexpf'.
13248         * modules/frexpf-tests: New file.
13249         * tests/test-frexpf.c: New file.
13250
13251         New module 'frexpf'.
13252         * lib/math.in.h (frexpf): New declaration.
13253         * lib/frexpf.c: New file.
13254         * m4/frexpf.m4: New file.
13255         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13257         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13258         * modules/frexpf: New file.
13259         * tests/test-math-c++.cc: Check the declaration of frexpf.
13260         * doc/posix-functions/frexpf.texi: Mention the new module.
13261
13262 2011-10-06  Bruno Haible  <bruno@clisp.org>
13263
13264         math: Sort function declarations of math.in.h.
13265         * lib/math.in.h (frexp, logb): Move declarations.
13266
13267 2011-10-05  Bruno Haible  <bruno@clisp.org>
13268
13269         Tests for module 'modff'.
13270         * modules/modff-tests: New file.
13271         * tests/test-modff.c: New file.
13272
13273         New module 'modff'.
13274         * lib/math.in.h (modff): New declaration.
13275         * lib/modff.c: New file.
13276         * m4/modff.m4: New file.
13277         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13279         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13280         * modules/modff: New file.
13281         * tests/test-math-c++.cc: Check the declaration of modff.
13282         * doc/posix-functions/modff.texi: Mention the new module.
13283
13284         modf tests: Make test sharper.
13285         * tests/test-modf.c (main): Strengthen upper bound.
13286
13287         modf: Use a .m4 file.
13288         * m4/modf.m4: New file.
13289         * modules/modf (Files): Add it.
13290         (configure.ac): Just invoke gl_FUNC_MODF.
13291
13292 2011-10-05  Bruno Haible  <bruno@clisp.org>
13293
13294         Tests for module 'fmodf'.
13295         * modules/fmodf-tests: New file.
13296         * tests/test-fmodf.c: New file.
13297
13298         New module 'fmodf'.
13299         * lib/math.in.h (fmodf): New declaration.
13300         * lib/fmodf.c: New file.
13301         * m4/fmodf.m4: New file.
13302         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13304         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13305         * modules/fmodf: New file.
13306         * tests/test-math-c++.cc: Check the declaration of fmodf.
13307         * doc/posix-functions/fmodf.texi: Mention the new module.
13308
13309         fmod: Use a .m4 file.
13310         * m4/fmod.m4: New file.
13311         * modules/fmod (Files): Add it.
13312         (configure.ac): Just invoke gl_FUNC_FMOD.
13313
13314 2011-10-05  Bruno Haible  <bruno@clisp.org>
13315
13316         Tests for module 'fabsf'.
13317         * modules/fabsf-tests: New file.
13318         * tests/test-fabsf.c: New file.
13319
13320         New module 'fabsf'.
13321         * lib/math.in.h (fabsf): New declaration.
13322         * lib/fabsf.c: New file.
13323         * m4/fabsf.m4: New file.
13324         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13326         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13327         * modules/fabsf: New file.
13328         * tests/test-math-c++.cc: Check the declaration of fabsf.
13329         * doc/posix-functions/fabsf.texi: Mention the new module.
13330
13331         fabs: Use a .m4 file.
13332         * m4/fabs.m4: New file.
13333         * modules/fabs (Files): Add it.
13334         (configure.ac): Just invoke gl_FUNC_FABS.
13335
13336 2011-10-05  Jim Meyering  <meyering@redhat.com>
13337
13338         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13339         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13340         ls -lL regression introduced in coreutils-8.12, it does so at the
13341         cost of an additional stat call in the common case.  Besides, now
13342         that the kernel change that prompted commit 95f7c57f has been reverted
13343         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13344         we have no use for commit 95f7c57f, "file-has-acl: use
13345         acl_extended_file_nofollow if available".
13346
13347 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13348
13349         file-has-acl: revert unintended change in behavior of ls -L
13350         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13351         derived from...
13352         (file_has_acl): ...code here.  Call it.
13353         This problem was introduced with 2011-07-22 commit 95f7c57f,
13354         "file-has-acl: use acl_extended_file_nofollow if available".
13355         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13356
13357 2011-10-03  Bruno Haible  <bruno@clisp.org>
13358
13359         poll: Avoid link errors on MSVC.
13360         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13361         * modules/poll (Depends-on): Add sockets.
13362         (Link): New section.
13363         * NEWS: Mention the change.
13364         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13365         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13366         $(LIB_POLL) instead of $(LIBSOCKET).
13367
13368 2011-10-03  Bruno Haible  <bruno@clisp.org>
13369
13370         sys_select tests: Fix link error on MSVC 9.
13371         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13372         with $(LIB_SELECT) instead of $(LIBSOCKET).
13373
13374 2011-10-03  Bruno Haible  <bruno@clisp.org>
13375
13376         sys_select: Fix compilation error on mingw.
13377         * lib/sys_select.in.h: On native Windows, include <io.h>.
13378
13379 2011-10-03  Bruno Haible  <bruno@clisp.org>
13380
13381         wmemset: Support for MSVC.
13382         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13383         whether wmemset() exists.
13384
13385 2011-10-03  Bruno Haible  <bruno@clisp.org>
13386
13387         wmemmove: Support for MSVC.
13388         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13389         whether wmemmove() exists.
13390
13391 2011-10-03  Bruno Haible  <bruno@clisp.org>
13392
13393         wmemcpy: Support for MSVC.
13394         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13395         whether wmemcpy() exists.
13396
13397 2011-10-03  Bruno Haible  <bruno@clisp.org>
13398
13399         wmemcmp: Support for MSVC.
13400         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13401         whether wmemcmp() exists.
13402
13403 2011-10-03  Bruno Haible  <bruno@clisp.org>
13404
13405         wmemchr: Support for MSVC.
13406         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13407         whether wmemchr() exists.
13408
13409 2011-10-03  Bruno Haible  <bruno@clisp.org>
13410
13411         glthread/*, strsignal: Support for MSVC.
13412         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13413         including <winsock.h> on MSVC 9.
13414         * lib/glthread/lock.h: Likewise.
13415         * lib/glthread/thread.h: Likewise.
13416         * lib/glthread/tls.h: Likewise.
13417         * lib/glthread/yield.h: Likewise.
13418         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13419         if HAVE_UNISTD_H is false.
13420         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13421
13422 2011-10-03  Bruno Haible  <bruno@clisp.org>
13423
13424         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13425         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13426         Set to 100000.
13427
13428 2011-10-03  Bruno Haible  <bruno@clisp.org>
13429
13430         acl: Fix specification.
13431         * lib/file-has-acl.c (file_has_acl): Fix specification.
13432
13433 2011-10-03  Bruno Haible  <bruno@clisp.org>
13434
13435         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13436         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13437         (compute_curr_prefix, shared_library_fullname,
13438         find_shared_library_fullname, get_shared_library_fullname, relocate):
13439         Use it together with PIC && INSTALLDIR.
13440         Reported by <jojelino@gmail.com>
13441         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13442
13443 2011-10-01  Jim Meyering  <meyering@redhat.com>
13444
13445         maint.mk: adjust a release-related rule not to require use of gzip
13446         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13447         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13448         projects that build only .tar.xz files.  Also fix an erroneous test.
13449
13450         test-linkat: don't leave behind a temporary file
13451         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13452         Otherwise, coreutils' "make distcheck" would fail with this:
13453           Only in /c/cu/tests/torture/coreutils/test/\
13454             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13455           make[2]: *** [my-distcheck] Error 1
13456
13457         float, math: add omitted file
13458         * lib/itold.c: Add file, required for yesterday's float change.
13459
13460 2011-10-01  Bruno Haible  <bruno@clisp.org>
13461
13462         isinf: Fix for OpenBSD/x86.
13463         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13464         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13465         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13466
13467 2011-10-01  Bruno Haible  <bruno@clisp.org>
13468
13469         isfinite: Fix syntax error in configure test.
13470         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13471
13472         isfinite: Fix typo.
13473         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13474         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13475
13476 2011-10-01  Bruno Haible  <bruno@clisp.org>
13477
13478         nonblocking tests: Fix test failure on Linux/IA-64.
13479         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13480         Set to 270000.
13481
13482 2011-10-01  Bruno Haible  <bruno@clisp.org>
13483
13484         mkfifoat tests: Fix a test failure on mingw.
13485         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13486         with error ENOSYS.
13487
13488 2011-09-30  Bruno Haible  <bruno@clisp.org>
13489
13490         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13491         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13492         'long double'. Set REPLACE_ITOLD.
13493         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13494         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13495         * lib/itold.c: New file.
13496         * modules/float (Files): Add lib/itold.c.
13497         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13498         (Makefile.am): Substitute REPLACE_ITOLD.
13499         * modules/math (Depends-on): Add float.
13500         (Makefile.am): Substitute REPLACE_ITOLD.
13501         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13502         * doc/posix-headers/math.texi: Likewise.
13503         * doc/posix-functions/logl.texi: Likewise.
13504
13505 2011-09-30  Bruno Haible  <bruno@clisp.org>
13506
13507         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13508         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13509         Set to 140000.
13510
13511 2011-09-30  Bruno Haible  <bruno@clisp.org>
13512
13513         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13514         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13515         invocation, say "right after AC_PROG_CC_STDC", not "right after
13516         AC_PROG_CC".
13517         Reported by Gary V. Vaughan <gary@gnu.org>.
13518
13519 2011-09-30  Bruno Haible  <bruno@clisp.org>
13520
13521         Centralize C99 requirement.
13522         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13523         * modules/stdarg (configure.ac-early): Invoke it instead of
13524         AC_PROG_CC_STDC.
13525         Reported by Gary V. Vaughan and Paul Eggert.
13526
13527 2011-09-29  Bruno Haible  <bruno@clisp.org>
13528
13529         float: Fix LDBL_MAX value on Linux/PowerPC.
13530         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13531         on Linux/PowerPC.
13532         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13533         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13534         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13535         platform.
13536         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13537
13538 2011-09-29  Bruno Haible  <bruno@clisp.org>
13539
13540         doc: Improve doc about gl_EARLY.
13541         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13542         AC_PROG_CC_STDC invocation.
13543         Reported by Gary V. Vaughan <gary@gnu.org>.
13544
13545 2011-09-28  Bruno Haible  <bruno@clisp.org>
13546
13547         fgetc, fputc, fread, fwrite tests: Fix link error.
13548         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13549         on non-MSVC platforms.
13550         * tests/test-fputc.c (main): Likewise.
13551         * tests/test-fread.c (main): Likewise.
13552         * tests/test-fwrite.c (main): Likewise.
13553         Reported by Jim Meyering.
13554
13555 2011-09-27  Bruno Haible  <bruno@clisp.org>
13556
13557         fputc, fwrite tests: Avoid test failure on MSVC.
13558         * tests/test-fgetc.c: Include msvc-inval.h.
13559         (main): Invoke gl_msvc_inval_ensure_handler.
13560         * tests/test-fputc.c: Include msvc-inval.h.
13561         (main): Invoke gl_msvc_inval_ensure_handler.
13562         * tests/test-fread.c: Include msvc-inval.h.
13563         (main): Invoke gl_msvc_inval_ensure_handler.
13564         * tests/test-fwrite.c: Include msvc-inval.h.
13565         (main): Invoke gl_msvc_inval_ensure_handler.
13566         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13567         * modules/fputc-tests (Depends-on): Likewise.
13568         * modules/fread-tests (Depends-on): Likewise.
13569         * modules/fwrite-tests (Depends-on): Likewise.
13570
13571 2011-09-27  Bruno Haible  <bruno@clisp.org>
13572
13573         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13574         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13575         (raise): Remove older, duplicated declaration.
13576         (_gl_raise_SIGPIPE): New declaration.
13577         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13578         (rpl_raise): Remove function.
13579         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13580         a gnulib-defined SIGPIPE here.
13581         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13582         'sigprocmask' has detected missing signal-blocking and the module
13583         'sigpipe' is enabled.
13584         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13585
13586 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13587
13588         base64-tests: avoid memory leak
13589         * tests/test-base64.c (main): Plug memory leak.
13590
13591         base32: new module
13592         * modules/base32: New module.
13593         * lib/base32.c: New file.
13594         * lib/base32.h: Likewise.
13595         * m4/base32.m4: Likewise.
13596         * modules/base32-tests: New test.
13597         * tests/test-base32.c: Likewise.
13598         * MODULES.html.sh (Misc): Mention it.
13599
13600 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13601
13602         gnulib: use more-standard license notice wording
13603         * gnulib-tool (func_emit_copyright_notice): When emitting a
13604         license notice into a file, use the standard wording as suggested
13605         by the current information for GNU maintainers, except say "file"
13606         rather than "program".  The new wording gives a license version
13607         number, which addresses an issue raised by Glenn Morris in
13608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13609         * m4/onceonly.m4: Use that same wording here, too.
13610
13611         dup2: minor simplification
13612         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13613         as lib/dup2.c no longer uses 'inline'.
13614
13615 2011-09-25  Bruno Haible  <bruno@clisp.org>
13616
13617         strings: Fix compilation error on MSVC.
13618         * lib/strings.in.h: Include <stddef.h> for size_t.
13619
13620 2011-09-25  Bruno Haible  <bruno@clisp.org>
13621
13622         fflush et al.: Document limitation on MSVC.
13623         * doc/posix-functions/fflush.texi: Document possible crash in handling
13624         mode other than DEFAULT_HANDLING.
13625         * doc/posix-functions/fgetc.texi: Likewise.
13626         * doc/posix-functions/fputc.texi: Likewise.
13627         * doc/posix-functions/fread.texi: Likewise.
13628         * doc/posix-functions/fwrite.texi: Likewise.
13629
13630 2011-09-25  Bruno Haible  <bruno@clisp.org>
13631
13632         msvc-inval: Allow three invalid parameter handling modes.
13633         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13634         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13635         macros.
13636         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13637         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13638         SANE_LIBRARY_HANDLING as a no-op.
13639         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13640         <stdlib.h>.
13641         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13642
13643 2011-09-25  Bruno Haible  <bruno@clisp.org>
13644
13645         msvc-inval: Make handler multithread-safe.
13646         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13647         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13648         declarations.
13649         (gl_msvc_inval_current): New declaration.
13650         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13651         Operate on the structure returned by gl_msvc_inval_current().
13652         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13653         Remove varaiables.
13654         (tls_index, tls_initialized): New variables.
13655         (not_per_thread): New variable.
13656         (gl_msvc_inval_current): New function.
13657         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13658         returned by gl_msvc_inval_current().
13659
13660 2011-09-25  Bruno Haible  <bruno@clisp.org>
13661
13662         msvc-inval: Install handler globally.
13663         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13664         !_MSC_VER.
13665         (gl_msvc_invalid_parameter_handler): Remove declaration.
13666         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13667         declarations.
13668         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13669         Install the handler globally, don't uninstall it.
13670         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13671         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13672         currently valid, call RaiseException instead.
13673         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13674         for !_MSC_VER.
13675
13676 2011-09-25  Bruno Haible  <bruno@clisp.org>
13677
13678         strerror_r-posix: Fix for MSVC 9.
13679         * lib/strerror_r.c (local_snprintf): New function.
13680         (snprintf): Define to local_snprintf, not to _snprintf.
13681
13682 2011-09-25  Bruno Haible  <bruno@clisp.org>
13683
13684         ftruncate: Support for MSVC 9.
13685         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13686         (chsize_nothrow): New function.
13687         (chsize): Redefine as a macro.
13688         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13689         * modules/ftruncate (Depends-on): Add msvc-inval.
13690
13691 2011-09-25  Bruno Haible  <bruno@clisp.org>
13692
13693         New module 'fstat'.
13694         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13695         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13696         * lib/fchdir.c (rpl_fstat): Remove function.
13697         * m4/fstat.m4: New file.
13698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13700         declared.
13701         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13702         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13703         * modules/fstat: New file.
13704         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13705         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13706         is set.
13707         * doc/posix-functions/fstat.texi: Mention the new module and the
13708         problem on MSVC.
13709         * NEWS: Mention the change.
13710         * modules/acl (Depends-on): Add fstat.
13711         * modules/chdir-safer (Depends-on): Likewise.
13712         * modules/chown (Depends-on): Likewise.
13713         * modules/copy-file (Depends-on): Likewise.
13714         * modules/fchdir (Depends-on): Likewise.
13715         * modules/fdopendir (Depends-on): Likewise.
13716         * modules/fopen (Depends-on): Likewise.
13717         * modules/fts (Depends-on): Likewise.
13718         * modules/getcwd (Depends-on): Likewise.
13719         * modules/isapipe (Depends-on): Likewise.
13720         * modules/linkat (Depends-on): Likewise.
13721         * modules/lseek (Depends-on): Likewise.
13722         * modules/mkdir-p (Depends-on): Likewise.
13723         * modules/open (Depends-on): Likewise.
13724         * modules/openat (Depends-on): Likewise.
13725         * modules/read-file (Depends-on): Likewise.
13726         * modules/renameat (Depends-on): Likewise.
13727         * modules/utimens (Depends-on): Likewise.
13728
13729 2011-09-25  Bruno Haible  <bruno@clisp.org>
13730
13731         linkat: Fix compilation on MSVC 9.
13732         * lib/linkat.c: Don't include <stdint.h>.
13733
13734 2011-09-25  Bruno Haible  <bruno@clisp.org>
13735
13736         fclose: Support for MSVC 9.
13737         * lib/fclose.c: Include msvc-inval.h.
13738         (fclose_nothrow): New function.
13739         (rpl_fclose): Use it.
13740         * modules/fclose (Depends-on): Add msvc-inval.
13741         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13742
13743 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13744
13745         dup2: minor simplifications
13746         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13747         that it's a performance win.
13748         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13749         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13750
13751 2011-09-24  Jim Meyering  <meyering@redhat.com>
13752
13753         test-futimens: avoid a warning from gcc -Wshadow
13754         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13755         to avoid a shadowing warning.
13756
13757 2011-09-24  Bruno Haible  <bruno@clisp.org>
13758
13759         fdopen: Support for MSVC 9.
13760         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13761         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13762         * lib/fdopen.c: Include msvc-inval.h.
13763         (fdopen_nothrow): New function.
13764         (rpl_fdopen): Use it.
13765         * modules/fdopen (Depends-on): Add msvc-inval.
13766         * modules/fclose-tests (Depends-on): Add fdopen.
13767         * modules/fflush-tests (Depends-on): Likewise.
13768         * modules/fgetc-tests (Depends-on): Likewise.
13769         * modules/fputc-tests (Depends-on): Likewise.
13770         * modules/fread-tests (Depends-on): Likewise.
13771         * modules/freopen-tests (Depends-on): Likewise.
13772         * modules/fseeko-tests (Depends-on): Likewise.
13773         * modules/ftello-tests (Depends-on): Likewise.
13774         * modules/fwrite-tests  (Depends-on): Likewise.
13775         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13776
13777 2011-09-24  Bruno Haible  <bruno@clisp.org>
13778
13779         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13780         * modules/fgetc-tests (Depends-on): Add unistd.
13781         * modules/fputc-tests (Depends-on): Likewise.
13782         * modules/fread-tests (Depends-on): Likewise.
13783         * modules/fwrite-tests (Depends-on): Likewise.
13784
13785 2011-09-24  Bruno Haible  <bruno@clisp.org>
13786
13787         dup: Simplify autoconf test.
13788         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13789         on gl_MSVC_INVAL's result.
13790
13791 2011-09-24  Bruno Haible  <bruno@clisp.org>
13792
13793         Tests for function fwrite().
13794         * modules/fwrite-tests: New file.
13795         * tests/test-fwrite.c: New file.
13796         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13797
13798         Tests for function fread().
13799         * modules/fread-tests: New file.
13800         * tests/test-fread.c: New file.
13801         * modules/stdio-tests (Depends-on): Add fread-tests.
13802
13803         Activate fputc tests.
13804         * modules/stdio-tests (Depends-on): Add fputc-tests.
13805
13806         Enhance fgetc, fputc tests.
13807         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13808         * tests/test-fputc.c (main): Likewise.
13809
13810 2011-09-24  Bruno Haible  <bruno@clisp.org>
13811
13812         write: Support for MSVC 9.
13813         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13814         is not 1.
13815         * lib/write.c (write_nothrow): New function.
13816         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13817         not 1. Use write_nothrow.
13818         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13819         invalid parameter handler.
13820         (gl_PREREQ_WRITE): New macro.
13821         * modules/write (Depends-on): Add msvc-inval.
13822         (configure.ac): Invoke gl_PREREQ_WRITE.
13823         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13824
13825 2011-09-24  Bruno Haible  <bruno@clisp.org>
13826
13827         read: Fix last commit.
13828         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13829
13830 2011-09-24  Bruno Haible  <bruno@clisp.org>
13831
13832         dup2: Fix last commit.
13833         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13834         (rpl_dup2): Disable fcntl workaround on native Windows.
13835
13836         sigprocmask: Make code safer.
13837         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13838         section that changes macro definitions for this compilation unit.
13839
13840 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         dup2: clarify by coalescing Windows-specific material
13843         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13844         "msvc-nothrow.h"' to the Windows-specific section, so that the
13845         Emacs source need not contain these include files.
13846         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13847         Windows-specific fixes into this function rather than just the
13848         nothrow fix, as this shortens and clarifies the code.  Always
13849         define as a function, as that's a bit cleaner than having it be
13850         sometimes a function and sometimes a macro.
13851         (rpl_dup2): Move the Windows-specific stuff out of here and into
13852         ms_windows_dup2.  Don't protect the Haiku-related fix with
13853         "#if !defined __linux__", as the same code also works around
13854         a Linux kernel bug, and it doesn't add any system calls on any
13855         platform.  Add comment about FreeBSD 6.1.
13856
13857         sigprocmask: move #include directive
13858         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13859         Windows-specific section, so that the Emacs source need not
13860         contain msvc-inval.h.
13861
13862 2011-09-23  Bruno Haible  <bruno@clisp.org>
13863
13864         read: Support for MSVC 9.
13865         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13866         is not 1.
13867         * lib/read.c (read_nothrow): New function.
13868         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13869         read_nothrow.
13870         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13871         invalid parameter handler.
13872         (gl_PREREQ_READ): New macro.
13873         * modules/read (Depends-on): Add msvc-inval.
13874         (configure.ac): Invoke gl_PREREQ_READ.
13875         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13876
13877 2011-09-23  Bruno Haible  <bruno@clisp.org>
13878
13879         close: Support for MSVC 9.
13880         * lib/close.c: Include <errno.h>, msvc-inval.h.
13881         (close_nothrow): New function.
13882         (rpl_close): Use it.
13883         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13884         invalid parameter handler.
13885         * modules/close (Depends-on): Add msvc-inval.
13886         * modules/dup2-tests (Depends-on): Add close.
13887         * modules/dup3-tests (Depends-on): Likewise.
13888         * modules/fcntl-tests (Depends-on): Likewise.
13889         * modules/spawn-pipe-tests (Depends-on): Likewise.
13890         * modules/unistd-safer-tests (Depends-on): Likewise.
13891         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13892
13893 2011-09-23  Bruno Haible  <bruno@clisp.org>
13894
13895         New module 'dup'.
13896         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13897         Allow replacement.
13898         * lib/dup.c: New file.
13899         * lib/fchdir.c (rpl_dup): Remove function.
13900         * m4/dup.m4: New file.
13901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13902         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13903         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13904         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13905         * modules/dup: New file.
13906         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13907         'dup' module is in use.
13908         * modules/fdopendir (Depends-on): Add dup.
13909         * modules/fdutimensat-tests (Depends-on): Likewise.
13910         * modules/fts (Depends-on): Likewise.
13911         * modules/futimens-tests (Depends-on): Likewise.
13912         * modules/posix_spawnp-tests (Depends-on): Likewise.
13913         * modules/unistd-safer-tests (Depends-on): Likewise.
13914         * modules/utimens-tests (Depends-on): Likewise.
13915         * doc/posix-functions/dup.texi: Mention the new module and the problem
13916         on MSVC.
13917
13918 2011-09-23  Bruno Haible  <bruno@clisp.org>
13919
13920         getdtablesize: Support for MSVC 9.
13921         * lib/getdtablesize.c: Include msvc-inval.h.
13922         (_setmaxstdio_nothrow): New function.
13923         (_setmaxstdio): Redefine it.
13924         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13925         * modules/getdtablesize (Depends-on): Add msvc-inval.
13926         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13927
13928 2011-09-23  Bruno Haible  <bruno@clisp.org>
13929
13930         signal-h: Rename from signal.
13931         * modules/signal-h: Renamed from modules/signal.
13932         * modules/pthread_sigmask (Depends-on): Update.
13933         * modules/raise (Depends-on): Likewise.
13934         * modules/sigaction (Depends-on): Likewise.
13935         * modules/sigpipe (Depends-on): Likewise.
13936         * modules/sigprocmask (Depends-on): Likewise.
13937         * modules/sys_select (Depends-on): Likewise.
13938         * modules/signal-h-tests: Renamed from modules/signal-tests.
13939         (Files, Depends-on, Makefile.am): Update.
13940         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13941         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13942         (Files, Makefile.am): Update.
13943         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13944         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13945         * modules/signal: New placeholder file.
13946         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13947         * doc/posix-headers/signal.texi: Update.
13948         * NEWS: Mention the change.
13949
13950 2011-09-23  Bruno Haible  <bruno@clisp.org>
13951
13952         sigprocmask: Avoid crashes through signal() on MSVC 9.
13953         * lib/sigprocmask.c: Include msvc-inval.h.
13954         (signal_nothrow): New function.
13955         (signal): Redefine it.
13956         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13957         * modules/sigprocmask (Depends-on): Add msvc-inval.
13958         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13959
13960 2011-09-23  Bruno Haible  <bruno@clisp.org>
13961
13962         Tests for module 'raise'.
13963         * modules/raise-tests: New file.
13964         * tests/test-raise.c: New file.
13965
13966         raise: Support for MSVC.
13967         * lib/signal.in.h (raise): New declaration.
13968         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13969         for native Windows platforms.
13970         * m4/raise.m4: New file.
13971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13972         HAVE_RAISE, REPLACE_RAISE.
13973         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13974         REPLACE_RAISE.
13975         * modules/raise (Status, Notice): Remove fields.
13976         (Files): Add m4/raise.m4.
13977         (Depends-on): Add signal, msvc-inval.
13978         (configure.ac): Use the common idioms.
13979         (Maintainer): Add me.
13980         * tests/test-signal-c++.cc: Check the signature of raise.
13981         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13982
13983 2011-09-23  Bruno Haible  <bruno@clisp.org>
13984
13985         pipe2: Fix compilation on pre-C99 compilers.
13986         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13987
13988 2011-09-23  Bruno Haible  <bruno@clisp.org>
13989
13990         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13991         * lib/msvc-nothrow.h: New file.
13992         * lib/msvc-nothrow.c: New file.
13993         * m4/msvc-nothrow.m4: New file.
13994         * modules/msvc-nothrow: New file.
13995         * lib/dup2.c: Include msvc-nothrow.h.
13996         (rpl_dup2): No need to protect _get_osfhandle call here.
13997         * lib/accept4.c: Include msvc-nothrow.h.
13998         * lib/error.c: Likewise.
13999         * lib/fcntl.c: Likewise.
14000         * lib/lseek.c: Likewise.
14001         * lib/nonblocking.c: Likewise.
14002         * lib/poll.c: Likewise.
14003         * lib/read.c: Likewise.
14004         * lib/select.c: Likewise.
14005         * lib/sockets.h: Likewise.
14006         * lib/sockets.c: Likewise.
14007         * lib/stdio-read.c: Likewise.
14008         * lib/stdio-write.c: Likewise.
14009         * lib/write.c: Likewise.
14010         * lib/w32sock.h: Likewise.
14011         * lib/w32spawn.h: Likewise.
14012         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14013         * lib/fsync.c: Likewise.
14014         * lib/isapipe.c: Likewise.
14015         * modules/dup2 (Depends-on): Add msvc-nothrow.
14016         * modules/accept4 (Depends-on): Likewise.
14017         * modules/error (Depends-on): Likewise.
14018         * modules/fcntl (Depends-on): Likewise.
14019         * modules/lseek (Depends-on): Likewise.
14020         * modules/nonblocking (Depends-on): Likewise.
14021         * modules/poll (Depends-on): Likewise.
14022         * modules/read (Depends-on): Likewise.
14023         * modules/select (Depends-on): Likewise.
14024         * modules/sockets (Depends-on): Likewise.
14025         * modules/sigpipe (Depends-on): Likewise.
14026         * modules/write (Depends-on): Likewise.
14027         * modules/accept (Depends-on): Likewise.
14028         * modules/bind (Depends-on): Likewise.
14029         * modules/connect (Depends-on): Likewise.
14030         * modules/gethostname (Depends-on): Likewise.
14031         * modules/getpeername (Depends-on): Likewise.
14032         * modules/getsockname (Depends-on): Likewise.
14033         * modules/getsockopt (Depends-on): Likewise.
14034         * modules/ioctl (Depends-on): Likewise.
14035         * modules/listen (Depends-on): Likewise.
14036         * modules/recv (Depends-on): Likewise.
14037         * modules/recvfrom (Depends-on): Likewise.
14038         * modules/send (Depends-on): Likewise.
14039         * modules/sendto (Depends-on): Likewise.
14040         * modules/setsockopt (Depends-on): Likewise.
14041         * modules/shutdown (Depends-on): Likewise.
14042         * modules/socket (Depends-on): Likewise.
14043         * modules/execute (Depends-on): Likewise.
14044         * modules/spawn-pipe (Depends-on): Likewise.
14045         * modules/flock (Depends-on): Likewise.
14046         * modules/fsync (Depends-on): Likewise.
14047         * modules/isapipe (Depends-on): Likewise.
14048         * tests/test-cloexec.c: Include msvc-nothrow.h.
14049         * tests/test-dup-safer.c: Likewise.
14050         * tests/test-dup2.c: Likewise.
14051         * tests/test-dup3.c: Likewise.
14052         * tests/test-fcntl.c: Likewise.
14053         * tests/test-pipe.c: Likewise.
14054         * tests/test-pipe2.c: Likewise.
14055         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14056         * modules/unistd-safer-tests (Depends-on): Likewise.
14057         * modules/dup2-tests (Depends-on): Likewise.
14058         * modules/dup3-tests (Depends-on): Likewise.
14059         * modules/fcntl-tests (Depends-on): Likewise.
14060         * modules/pipe-posix-tests (Depends-on): Likewise.
14061         * modules/pipe2-tests (Depends-on): Likewise.
14062
14063 2011-09-23  Bruno Haible  <bruno@clisp.org>
14064
14065         dup2: Make code more maintainable.
14066         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14067         (rpl_dup2): Use it.
14068         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14069         * modules/dup2 (configure.ac): Invoke it.
14070         Reported by Paul Eggert.
14071
14072 2011-09-23  Bruno Haible  <bruno@clisp.org>
14073
14074         msvc-inval: Fix compilation error.
14075         * lib/msvc-inval.h: Include <excpt.h>.
14076
14077 2011-09-23  Bruno Haible  <bruno@clisp.org>
14078
14079         mkdir: Tweak for MSVC 9.
14080         * lib/sys_stat.in.h: Update comments.
14081         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14082
14083         Tests for module 'chdir'.
14084         * modules/chdir-tests: New file.
14085         * tests/test-chdir.c: New file.
14086
14087         New module 'chdir'.
14088         * modules/chdir: New file.
14089         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14090         (chdir): New declaration.
14091         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14093         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14094         * tests/test-unistd-c++.cc: Check signature of chdir.
14095         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14096         * modules/chdir-long (Depends-on): Add chdir.
14097         * modules/fchdir (Depends-on): Likewise.
14098         * modules/rename (Depends-on): Likewise.
14099         * modules/savewd (Depends-on): Likewise.
14100
14101         rmdir: Support for mingw, MSVC 9.
14102         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14103         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14104
14105         getcwd: Tweak for MSVC 9.
14106         * lib/unistd.in.h: Update comments.
14107         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14108
14109 2011-09-22  Bruno Haible  <bruno@clisp.org>
14110
14111         strerror_r-posix: Avoid a link error on MSVC.
14112         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14113         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14114
14115 2011-09-22  Bruno Haible  <bruno@clisp.org>
14116
14117         select: Avoid link errors on MSVC.
14118         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14119         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14120         * modules/pselect (Link): Likewise.
14121         * NEWS: Mention the change.
14122         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14123         test-select-stdin against $(LIB_SELECT).
14124         * modules/pselect-tests (Makefile.am): Link test-pselect against
14125         $(LIB_SELECT).
14126
14127 2011-09-22  Bruno Haible  <bruno@clisp.org>
14128
14129         select: Avoid compilation error on MSVC.
14130         * lib/select.c: Don't include <stdbool.h>.
14131
14132 2011-09-21  Bruno Haible  <bruno@clisp.org>
14133
14134         Consolidate all uses of PATH_MAX in *.m4 files.
14135         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14136         macros.
14137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14138         and gl_PATHMAX_SNIPPET.
14139         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14141         * modules/chdir-long (Files): Add m4/pathmax.m4.
14142         * modules/getcwd (Files): Likewise.
14143
14144 2011-09-21  Bruno Haible  <bruno@clisp.org>
14145
14146         ftruncate: Un-deprecate, concentrate on Win32 support.
14147         * modules/ftruncate (Status, Notice): Remove sections.
14148         (Depends-on): Add largefile.
14149         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14150         non-mingw platforms.
14151         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14152         include <io.h>.
14153         * modules/perror-tests (Depends-on): Add ftruncate.
14154         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14155         'ftruncate' module.
14156
14157 2011-09-21  Bruno Haible  <bruno@clisp.org>
14158
14159         Add dependencies to new dirent related modules.
14160         * modules/opendir (Depends-on): Add closedir.
14161         * modules/getcwd (Depends-on): Add opendir, closedir.
14162         * modules/dirent-safer-tests (Depends-on): Likewise.
14163         * modules/fdopendir-tests (Depends-on): Likewise.
14164         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14165         * modules/renameat-tests (Depends-on): Likewise.
14166
14167 2011-09-21  Bruno Haible  <bruno@clisp.org>
14168
14169         opendir: Avoid compilation error on mingw.
14170         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14171         * modules/opendir (Depends-on): Add unistd.
14172
14173 2011-09-21  Bruno Haible  <bruno@clisp.org>
14174
14175         ftruncate tests: Avoid a test failure on mingw.
14176         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14177
14178 2011-09-21  Bruno Haible  <bruno@clisp.org>
14179
14180         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14181         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14182         native Windows.
14183
14184 2011-09-21  Bruno Haible  <bruno@clisp.org>
14185
14186         New module 'fdopen'.
14187         * lib/stdio.in.h (fdopen): New declaration.
14188         * lib/fdopen.c: New file.
14189         * m4/fdopen.m4: New file.
14190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14191         REPLACE_FDOPEN.
14192         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14193         REPLACE_FDOPEN.
14194         * modules/fdopen: New file.
14195         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14196         * tests/test-stdio-c++.cc: Check signature of fdopen.
14197         * doc/posix-functions/fdopen.texi: Mention the new module.
14198
14199 2011-09-21  Bruno Haible  <bruno@clisp.org>
14200
14201         unlockpt tests: Avoid test failure on NetBSD 5.1.
14202         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14203         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14204
14205 2011-09-21  Bruno Haible  <bruno@clisp.org>
14206
14207         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14208         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14209         * tests/test-getlogin_r.c (main): Likewise.
14210
14211 2011-09-20  Bruno Haible  <bruno@clisp.org>
14212
14213         time tests: Don't require pid_t.
14214         * doc/posix-headers/time.texi: Revert last change.
14215         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14216         * tests/test-time.c: Comment out the check for pid_t.
14217
14218 2011-09-20  Bruno Haible  <bruno@clisp.org>
14219
14220         fsync tests: Avoid a test failure on mingw.
14221         * tests/test-fsync.c (main): Allow a failure with EIO.
14222
14223 2011-09-20  Bruno Haible  <bruno@clisp.org>
14224
14225         euidaccess: Update comments.
14226         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14227
14228 2011-09-20  Bruno Haible  <bruno@clisp.org>
14229
14230         Ensure EBADF returns for socket functions on mingw.
14231         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14232         descriptor is invalid.
14233         * lib/bind.c (rpl_bind): Likewise.
14234         * lib/connect.c (rpl_connect): Likewise.
14235         * lib/getpeername.c (rpl_getpeername): Likewise.
14236         * lib/getsockname.c (rpl_getsockname): Likewise.
14237         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14238         * lib/listen.c (rpl_listen): Likewise.
14239         * lib/recv.c (rpl_recv): Likewise.
14240         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14241         * lib/send.c (rpl_send): Likewise.
14242         * lib/sendto.c (rpl_sendto): Likewise.
14243         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14244         * lib/shutdown.c (rpl_shutdown): Likewise.
14245
14246 2011-09-20  Bruno Haible  <bruno@clisp.org>
14247
14248         select tests: EBADF tests.
14249         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14250         test_bad_fd): New functions.
14251         (test_function): Invoke also test_bad_fd.
14252
14253 2011-09-20  Bruno Haible  <bruno@clisp.org>
14254
14255         Tests for module 'posix_spawn_file_actions_addopen.
14256         * modules/posix_spawn_file_actions_addopen-tests: New file.
14257         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14258
14259         Tests for module 'posix_spawn_file_actions_adddup2'.
14260         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14261         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14262
14263         Tests for module 'posix_spawn_file_actions_addclose'.
14264         * modules/posix_spawn_file_actions_addclose-tests: New file.
14265         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14266
14267 2011-09-20  Bruno Haible  <bruno@clisp.org>
14268
14269         Tests for module 'unlockpt'.
14270         * modules/unlockpt-tests: New file.
14271         * tests/test-unlockpt.c: New file.
14272         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14273
14274         Tests for module 'grantpt'.
14275         * modules/grantpt-tests: New file.
14276         * tests/test-grantpt.c: New file.
14277         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14278
14279 2011-09-20  Bruno Haible  <bruno@clisp.org>
14280
14281         freopen tests: EBADF tests.
14282         * tests/test-freopen.c: Include errno.h, unistd.h.
14283         (main): Add tests for EBADF, commented out for the moment.
14284
14285         fclose tests: EBADF tests.
14286         * tests/test-fclose.c (main): Add tests for EBADF.
14287
14288         fflush tests: EBADF tests.
14289         * tests/test-fflush.c: Include errno.h, macros.h.
14290         (main): Add tests for EBADF.
14291
14292         ftello tests: EBADF tests.
14293         * tests/test-ftello4.sh: New file.
14294         * tests/test-ftello4.c: New file.
14295         * modules/ftello-tests (Files): Add them.
14296         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14297
14298         fseeko tests: EBADF tests.
14299         * tests/test-fseeko4.sh: New file.
14300         * tests/test-fseeko4.c: New file.
14301         * modules/fseeko-tests (Files): Add them.
14302         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14303
14304         Tests for function fputc().
14305         * modules/fputc-tests: New file.
14306         * tests/test-fputc.c: New file.
14307         * modules/stdio-tests (Depends-on): Add fputc-tests.
14308
14309         Tests for function fgetc().
14310         * modules/fgetc-tests: New file.
14311         * tests/test-fgetc.c: New file.
14312         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14313
14314         Tests for function fdopen().
14315         * modules/fdopen-tests: New file.
14316         * tests/test-fdopen.c: New file.
14317         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14318
14319         Tests for module 'vdprintf'.
14320         * modules/vdprintf-tests: New file.
14321         * tests/test-vdprintf.c: New file.
14322
14323         Tests for module 'dprintf'.
14324         * modules/dprintf-tests: New file.
14325         * tests/test-dprintf.c: New file.
14326
14327 2011-09-20  Bruno Haible  <bruno@clisp.org>
14328
14329         Tests for module 'ioctl'.
14330         * modules/ioctl-tests: New file.
14331         * tests/test-ioctl.c: New file.
14332
14333 2011-09-20  Bruno Haible  <bruno@clisp.org>
14334
14335         fcntl tests: EBADF tests.
14336         * tests/test-fcntl.c (main): Add more tests for EBADF.
14337
14338 2011-09-20  Bruno Haible  <bruno@clisp.org>
14339
14340         utimensat tests: EBADF tests.
14341         * tests/test-utimensat.c (main): Add tests for EBADF.
14342
14343         renameat tests: EBADF tests.
14344         * tests/test-renameat.c (main): Add tests for EBADF.
14345
14346         mkfifoat tests: EBADF tests.
14347         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14348
14349         readlinkat tests: EBADF tests.
14350         * tests/test-readlinkat.c (main): Add tests for EBADF.
14351
14352         symlinkat tests: EBADF tests.
14353         * tests/test-symlinkat.c (main): Add tests for EBADF.
14354
14355         linkat tests: EBADF tests.
14356         * tests/test-linkat.c (main): Add tests for EBADF.
14357
14358         Tests for module 'faccessat'.
14359         * modules/faccessat-tests: New file.
14360         * tests/test-faccessat.c: New file.
14361
14362         fdopendir tests: EBADF tests.
14363         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14364
14365         openat tests: EBADF tests.
14366         * tests/test-fchownat.c (main): Add tests for EBADF.
14367         * tests/test-fstatat.c (main): Likewise.
14368         * tests/test-mkdirat.c (main): Likewise.
14369         * tests/test-openat.c (main): Likewise.
14370         * tests/test-unlinkat.c (main): Likewise.
14371         * tests/test-fchmodat.c: New file.
14372         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14373         (Makefile.am): Also run 'test-fchmodat'.
14374
14375 2011-09-20  Bruno Haible  <bruno@clisp.org>
14376
14377         utimens, futimens, fdutimensat tests: EBADF tests.
14378         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14379
14380         Tests for function fstat().
14381         * modules/fstat-tests: New file.
14382         * tests/test-fstat.c: New file.
14383         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14384
14385 2011-09-20  Bruno Haible  <bruno@clisp.org>
14386
14387         test-ttyname_r tests: EBADF tests.
14388         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14389
14390         Tests for module 'isatty'.
14391         * modules/isatty-tests: New file.
14392         * tests/test-isatty.c: New file.
14393
14394         Tests for module 'write'.
14395         * modules/write-tests: New file.
14396         * tests/test-write.c: New file.
14397
14398         Tests for module 'read'.
14399         * modules/read-tests: New file.
14400         * tests/test-read.c: New file.
14401
14402         pwrite tests: EBADF tests.
14403         * tests/test-pwrite.c (main): Add tests for EBADF.
14404
14405         pread tests: EBADF tests.
14406         * tests/test-pread.c (main): Add tests for EBADF.
14407
14408         lseek tests: EBADF tests.
14409         * tests/test-lseek.c (main): Add more tests for EBADF.
14410
14411         Tests for module 'ftruncate'.
14412         * modules/ftruncate-tests: New file.
14413         * tests/test-ftruncate.sh: New file.
14414         * tests/test-ftruncate.c: New file.
14415
14416         fsync tests: EBADF tests.
14417         * tests/test-fsync.c (main): Add more tests for EBADF.
14418
14419         fdatasync tests: EBADF tests.
14420         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14421
14422         Tests for module 'fchown'.
14423         * modules/fchown-tests: New file.
14424         * tests/test-fchown.c: New file.
14425
14426         Tests for module 'fchmod'.
14427         * modules/fchmod-tests: New file.
14428         * tests/test-fchmod.c: New file.
14429
14430         fchdir tests: EBADF tests.
14431         * tests/test-fchdir.c (main): Add more tests for EBADF.
14432
14433         dup2 tests: EBADF tests.
14434         * tests/test-dup2.c (main): Add more tests for EBADF.
14435
14436         Tests for module 'dup'.
14437         * modules/dup-tests: New file.
14438         * tests/test-dup.c: New file.
14439
14440         Tests for module 'close'.
14441         * modules/close-tests: New file.
14442         * tests/test-close.c: New file.
14443
14444 2011-09-20  Bruno Haible  <bruno@clisp.org>
14445
14446         Tests for module 'shutdown'.
14447         * modules/shutdown-tests: New file.
14448         * tests/test-shutdown.c: New file.
14449
14450         Tests for module 'setsockopt'.
14451         * modules/setsockopt-tests: New file.
14452         * tests/test-setsockopt.c: New file.
14453
14454         Tests for module 'sendto'.
14455         * modules/sendto-tests: New file.
14456         * tests/test-sendto.c: New file.
14457
14458         Tests for module 'send'.
14459         * modules/send-tests: New file.
14460         * tests/test-send.c: New file.
14461
14462         Tests for module 'recvfrom'.
14463         * modules/recvfrom-tests: New file.
14464         * tests/test-recvfrom.c: New file.
14465
14466         Tests for module 'recv'.
14467         * modules/recv-tests: New file.
14468         * tests/test-recv.c: New file.
14469
14470         Tests for module 'listen'.
14471         * modules/listen-tests: New file.
14472         * tests/test-listen.c: New file.
14473
14474         Tests for module 'getsockopt'.
14475         * modules/getsockopt-tests: New file.
14476         * tests/test-getsockopt.c: New file.
14477
14478         Tests for module 'getsockname'.
14479         * modules/getsockname-tests: New file.
14480         * tests/test-getsockname.c: New file.
14481
14482         Tests for module 'getpeername'.
14483         * modules/getpeername-tests: New file.
14484         * tests/test-getpeername.c: New file.
14485
14486         Tests for module 'connect'.
14487         * modules/connect-tests: New file.
14488         * tests/test-connect.c: New file.
14489
14490         Tests for module 'bind'.
14491         * modules/bind-tests: New file.
14492         * tests/test-bind.c: New file.
14493
14494         accept4 tests: Fix for native Windows.
14495         * tests/test-accept4.c: Include sockets.h.
14496         (main): Invoke gl_sockets_startup.
14497         * modules/accept4-tests (Depends-on): Add sockets.
14498
14499         accept tests: Fix for native Windows.
14500         * tests/test-accept.c: Include sockets.h.
14501         (main): Invoke gl_sockets_startup.
14502         * modules/accept-tests (Depends-on): Add sockets.
14503
14504 2011-09-19  Bruno Haible  <bruno@clisp.org>
14505
14506         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14507         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14508         do...while(0).
14509         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14510         Suggested by Paul Eggert.
14511
14512 2011-09-19  Bruno Haible  <bruno@clisp.org>
14513
14514         sched: Ensure pid_t is defined.
14515         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14516         not define pid_t.
14517         * lib/sched.in.h: Include <sys/types.h>.
14518         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14520
14521 2011-09-19  Bruno Haible  <bruno@clisp.org>
14522
14523         msvc-inval: Ensure the entire expansion is a single statement.
14524         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14525         of braces.
14526
14527 2011-09-19  Jim Meyering  <meyering@redhat.com>
14528
14529         tests: use printf, not echo in init.sh's warn_ function
14530         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14531         misbehave when given strings containing a backslash or starting
14532         with e.g., -n.  James Youngman suggested setting IFS.
14533
14534 2011-09-19  Eric Blake  <eblake@redhat.com>
14535
14536         futimens: enhance test
14537         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14538         closed non-negative fd.
14539
14540         date: accept 'hence' as opposite of 'ago'
14541         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14542         * tests/test-parse-datetime.c (main): Enhance test.
14543         Suggested by Jesse Wilson.
14544
14545 2011-09-19  Jim Meyering  <meyering@redhat.com>
14546
14547         getcwd: don't fail in a deep directory on a system without openat
14548         Before this change, getcwd would fail when called from a directory
14549         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14550         the non-openat implementation used "..", "../..", "../../..", etc.
14551         to access ancestor directories.  With too many, that string would
14552         be longer than PATH_MAX.
14553         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14554         using gnulib's openat replacement.
14555         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14556         we're using the replacement function.
14557
14558 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14559
14560         maint.mk: avoid warnings from perl about missing files
14561         * top/maint.mk (def_sym_regex): Ignore files listed in
14562         $(gl_other_headers_) that do not exist, say because a project
14563         does not use a corresponding module.
14564
14565 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14566
14567         stat: use pathmax.h only if needed
14568         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14569         This is better for Emacs, which does not have a mingw port and
14570         therefore can avoid the pathmax module.
14571
14572         utimens: remove dependency on dup2
14573         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14574         to work around the Linux kernel bug.
14575         * modules/utimens (Depends-on): Remove dup2.
14576
14577 2011-09-18  Bruno Haible  <bruno@clisp.org>
14578
14579         inet_ntop, inet_pton: Look for it also in libresolv.
14580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14581         libnsl, search for it in libresolv.
14582         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14583         Needed on Solaris 7.
14584
14585 2011-09-18  Bruno Haible  <bruno@clisp.org>
14586
14587         accept, accept4 tests: Avoid link error on Solaris.
14588         * modules/accept-tests (Makefile.am): Link test-accept against
14589         $(LIBSOCKET).
14590         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14591         $(LIBSOCKET).
14592
14593         accept4: Avoid link error on Solaris.
14594         * modules/accept4 (Link): New section.
14595
14596         socket functions: Avoid link errors on Solaris.
14597         * modules/accept (Depends-on): Add socketlib.
14598         (Link): New section.
14599         * modules/bind (Depends-on): Add socketlib.
14600         (Link): New section.
14601         * modules/connect (Depends-on): Add socketlib.
14602         (Link): New section.
14603         * modules/getpeername (Depends-on): Add socketlib.
14604         (Link): New section.
14605         * modules/getsockname (Depends-on): Add socketlib.
14606         (Link): New section.
14607         * modules/getsockopt (Depends-on): Add socketlib.
14608         (Link): New section.
14609         * modules/listen (Depends-on): Add socketlib.
14610         (Link): New section.
14611         * modules/recv (Depends-on): Add socketlib.
14612         (Link): New section.
14613         * modules/recvfrom (Depends-on): Add socketlib.
14614         (Link): New section.
14615         * modules/send (Depends-on): Add socketlib.
14616         (Link): New section.
14617         * modules/sendto (Depends-on): Add socketlib.
14618         (Link): New section.
14619         * modules/setsockopt (Depends-on): Add socketlib.
14620         (Link): New section.
14621         * modules/shutdown (Depends-on): Add socketlib.
14622         (Link): New section.
14623         * modules/socket (Depends-on): Add socketlib.
14624         (Link): New section.
14625
14626 2011-09-18  Bruno Haible  <bruno@clisp.org>
14627
14628         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14629         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14630         than 5 seconds.
14631         * modules/ptsname-tests (configure.ac): Test for alarm.
14632
14633 2011-09-18  Bruno Haible  <bruno@clisp.org>
14634
14635         posix_spawn_file_actions_add*: Fix module dependencies.
14636         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14637         posix_spawn_file_actions_init.
14638         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14639         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14640
14641 2011-09-18  Bruno Haible  <bruno@clisp.org>
14642
14643         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14644         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14645         * tests/test-renameat.c (main): Likewise.
14646
14647 2011-09-18  Bruno Haible  <bruno@clisp.org>
14648
14649         Tests for module 'accept4'.
14650         * modules/accept4-tests: New file.
14651         * tests/test-accept4.c: New file.
14652
14653 2011-09-18  Bruno Haible  <bruno@clisp.org>
14654
14655         Tests for module 'accept'.
14656         * modules/accept-tests: New file.
14657         * tests/test-accept.c: New file.
14658
14659 2011-09-18  Bruno Haible  <bruno@clisp.org>
14660
14661         dup2: Support for MSVC.
14662         * lib/dup2.c: Include msvc-inval.h.
14663         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14664         _get_osfhandle calls.
14665         * modules/dup2 (Depends-on): Add msvc-inval.
14666         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14667
14668         New module 'msvc-inval'.
14669         * lib/msvc-inval.h: New file.
14670         * lib/msvc-inval.c: New file.
14671         * m4/msvc-inval.m4: New file.
14672         * modules/msvc-inval: New file.
14673
14674 2011-09-17  Bruno Haible  <bruno@clisp.org>
14675
14676         Tests for module 'pclose'.
14677         * modules/pclose-tests: New file.
14678
14679         New module 'pclose'.
14680         * lib/stdio.in.h (pclose): New declaration.
14681         * lib/pclose.c: New file.
14682         * m4/pclose.m4: New file.
14683         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14684         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14685         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14686         * modules/pclose: New file.
14687         * modules/popen-tests (Depends-on): Add pclose.
14688         * modules/popen-safer-tests (Depends-on): Likewise.
14689         * doc/posix-functions/pclose.texi: Mention the new module.
14690
14691 2011-09-17  Bruno Haible  <bruno@clisp.org>
14692
14693         popen: Support for MSVC.
14694         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14695         * lib/popen.c (popen): Provide alternate definition for native Windows.
14696         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14698         * modules/popen (Depends-on, configure.ac): Update condition.
14699         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14700         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14701         fixed.
14702
14703 2011-09-17  Bruno Haible  <bruno@clisp.org>
14704
14705         isnanl, isnand, isnanf: Work around MSVC bug.
14706         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14707
14708 2011-09-17  Bruno Haible  <bruno@clisp.org>
14709
14710         sys_socket tests: Fix recent mistake.
14711         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14712
14713 2011-09-17  Bruno Haible  <bruno@clisp.org>
14714
14715         putenv: Support for MSVC.
14716         * modules/putenv (Depends-on): Add environ.
14717         * lib/putenv.c (environ): Disable declaration.
14718         * lib/unistd.in.h: Update comment.
14719
14720 2011-09-17  Bruno Haible  <bruno@clisp.org>
14721
14722         math: Avoid macro redefinition warnings on MSVC.
14723         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14724         Undefine before redefining.
14725
14726 2011-09-17  Bruno Haible  <bruno@clisp.org>
14727
14728         doc: Mention functions which are declared as macros.
14729         * doc/posix-functions/*[fl].texi: Mention that some functions are
14730         defined as macros with arguments only.
14731
14732 2011-09-17  Bruno Haible  <bruno@clisp.org>
14733
14734         Add dependencies to new dirent related modules.
14735         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14736         * modules/fts (Depends-on): Likewise.
14737         * modules/glob (Depends-on): Likewise.
14738         * modules/savedir (Depends-on): Likewise.
14739         * modules/scandir (Depends-on): Likewise.
14740         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14741         * modules/fdopendir (Depends-on): Add opendir.
14742
14743 2011-09-17  Bruno Haible  <bruno@clisp.org>
14744
14745         inet_pton: Support for MSVC on Windows Vista or newer.
14746         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14747         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14748         HAVE_DECL_INET_PTON is defined.
14749         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14750         On platforms with <winsock2.h>, test whether inet_pton is declared in
14751         <ws2tcpip.h>. If so, arrange to replace it.
14752         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14753         REPLACE_INET_PTON.
14754         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14755         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14756         (Depends-on, configure.ac): Update condition.
14757         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14758
14759 2011-09-17  Bruno Haible  <bruno@clisp.org>
14760
14761         inet_ntop: Support for MSVC on Windows Vista or newer.
14762         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14763         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14764         HAVE_DECL_INET_NTOP is defined.
14765         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14766         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14767         <ws2tcpip.h>. If so, arrange to replace it.
14768         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14769         REPLACE_INET_NTOP.
14770         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14771         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14772         (Depends-on, configure.ac): Update condition.
14773         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14774
14775 2011-09-16  Eric Blake  <eblake@redhat.com>
14776
14777         test-fsync: yet another enhancement
14778         * tests/test-fsync.c (main): Also test behavior on read-only text
14779         file.
14780
14781 2011-09-16  Bruno Haible  <bruno@clisp.org>
14782
14783         Enhance fsync, fdatasync tests.
14784         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14785         * tests/test-fdatasync.c (main): Likewise.
14786
14787 2011-09-16  Bruno Haible  <bruno@clisp.org>
14788
14789         Support for MSVC compiler: Ensure mode_t gets defined.
14790         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14791         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14793         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14794         * tests/test-fcntl-h.c: Check that mode_t is defined.
14795         * tests/test-sys_stat.c: Likewise.
14796         * tests/test-sys_types.c: Likewise.
14797         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14798         * doc/posix-headers/sys_stat.texi: Likewise.
14799         * doc/posix-headers/sys_types.texi: Likewise.
14800
14801 2011-09-16  Bruno Haible  <bruno@clisp.org>
14802
14803         sys_stat: Support for MSVC.
14804         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14805         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14806         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14807         MSVC.
14808
14809 2011-09-16  Bruno Haible  <bruno@clisp.org>
14810
14811         Support for MSVC compiler: Ensure off_t gets defined.
14812         * lib/unistd.in.h: Include <sys/types.h>.
14813         * tests/test-fcntl-h.c: Check that off_t is defined.
14814         * tests/test-sys_stat.c: Likewise.
14815         * tests/test-sys_types.c: Likewise.
14816
14817 2011-09-16  Eric Blake  <eblake@redhat.com>
14818
14819         fdatasync: port to Solaris
14820         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14821         * modules/fdatasync (Link): Document it.
14822         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14823
14824         fdatasync: port to MacOS X 10.7
14825         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14826         declared.
14827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14828         * modules/unistd (Makefile.am): Substitute it.
14829         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14830         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14831
14832         fdatasync: minor improvements
14833         * modules/fdatasync (Depends-on): Add condition for fsync.
14834         * lib/fdatasync.c (fdatasync): Add comment.
14835         * tests/test-unistd-c++.cc: Test fdatasync.
14836
14837         unistd: update refs to newer POSIX
14838         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14839         Suggested by Bruno Haible.
14840
14841         fdatasync: new module
14842         * modules/fsync (Description): Document difference to fdatasync.
14843         * modules/fdatasync: New module.
14844         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14845         * lib/fdatasync.c (fdatasync): Likewise.
14846         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14847         defaults.
14848         * modules/unistd (Makefile.am): Set witnesses.
14849         * lib/unistd.in.h (fdatasync): Declare.
14850         * MODULES.html.sh: Document it.
14851         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14852         * modules/fdatasync-tests: New test.
14853         * tests/test-fdatasync.c: Likewise.
14854
14855 2011-09-16  Eric Blake  <eblake@redhat.com>
14856
14857         test-fsync: enhance tests
14858         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14859         * tests/test-fsync.c (main): Enhance test.
14860
14861 2011-09-15  Bruno Haible  <bruno@clisp.org>
14862
14863         Support for MSVC compiler: Ensure ssize_t gets defined.
14864         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14865         * doc/posix-headers/stdio.texi: Likewise.
14866         * modules/stdio (Depends-on): Add ssize_t.
14867         * modules/sys_socket (Depends-on): Likewise.
14868         * modules/sys_types (Depends-on): Likewise.
14869         * modules/sys_uio (Depends-on): Likewise.
14870         * modules/unistd (Depends-on): Likewise.
14871         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14872         * tests/test-sys_types.c: Check that ssize_t is defined.
14873
14874 2011-09-14  Bruno Haible  <bruno@clisp.org>
14875
14876         Avoid using #, the m4 comment starter character, near brackets.
14877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14878         delimiter character in sed expressions.
14879         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14880         Suggested by Eric Blake.
14881
14882         Properly quote AC_CHECK_DECLS' 4th argument.
14883         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14884         argument.
14885         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14886         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14888         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14889         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14890         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14892         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14893         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14895         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14896         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14897         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14898         * m4/isinf.m4 (gl_ISINF): Likewise.
14899         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14900         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14901         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14902         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14904         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14905         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14906         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14907         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14908         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14912         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14914         Reported by Eric Blake.
14915
14916         Properly quote AC_CHECK_DECL's 4th argument.
14917         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14918         argument.
14919         * m4/argp.m4 (gl_ARGP): Likewise.
14920         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14921         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14922         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14923         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14924         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14925         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14926         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14927         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14929         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14930         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14931         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14932         Reported by Eric Blake.
14933
14934 2011-09-14  Eric Blake  <eblake@redhat.com>
14935
14936         opendir: avoid compile warning
14937         * lib/opendir.c (includes): Always include errno.h.
14938         Reported by Tatsuro MATSUOKA.
14939
14940 2011-09-14  Jim Meyering  <meyering@redhat.com>
14941
14942         maint.mk: sc_tight_scope: propagate failure from sub-make
14943         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14944         Reported by Martin von Gagern.
14945
14946 2011-09-13  Bruno Haible  <bruno@clisp.org>
14947
14948         tempname: Support for MSVC.
14949         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14950         MSVC.
14951         * modules/tempname (Depends-on): Add fcntl-h.
14952
14953 2011-09-13  Bruno Haible  <bruno@clisp.org>
14954
14955         sys_time: Support for MSVC.
14956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14957         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14958         include <winsock2.h>.
14959         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14960         function declarations that collide with POSIX.
14961         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14962         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14963
14964 2011-09-13  Bruno Haible  <bruno@clisp.org>
14965
14966         stat: Support for MSVC.
14967         * lib/stat.c: Include pathmax.h.
14968         * modules/stat (Depends-on): Add pathmax.
14969
14970         pathmax: Support for native Windows.
14971         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14972
14973 2011-09-12  Bruno Haible  <bruno@clisp.org>
14974
14975         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14976         * lib/dirent.in.h (struct dirent): New type.
14977         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14978         DT_WHT): New macros.
14979         (DIR): New type.
14980         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14981         (readdir, rewinddir): New declarations.
14982         * lib/dirent-private.h: New file.
14983         * lib/opendir.c: New file.
14984         * lib/readdir.c: New file.
14985         * lib/rewinddir.c: New file.
14986         * lib/closedir.c: New file.
14987         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14988         * m4/opendir.m4: New file.
14989         * m4/readdir.m4: New file.
14990         * m4/rewinddir.m4: New file.
14991         * m4/closedir.m4: New file.
14992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14993         REPLACE_CLOSEDIR here.
14994         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14995         readdir, rewinddir are declared.
14996         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14997         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14998         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14999         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15000         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15001         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15002         * modules/opendir: New file.
15003         * modules/readdir: New file.
15004         * modules/rewinddir: New file.
15005         * modules/closedir: New file.
15006         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15007         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15008         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15009         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15010         * NEWS: Mention the 'fchdir' change.
15011
15012 2011-09-11  Bruno Haible  <bruno@clisp.org>
15013
15014         asm-underscore.m4: Support for MSVC.
15015         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15016         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15017
15018 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15019
15020         Doc about crypt functions.
15021         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15022         needing for _GNU_SOURCE to get crypt.
15023         * doc/posix-functions/encrypt.texi: Likewise.
15024         * doc/posix-functions/setkey.texi: Likewise.
15025
15026 2011-09-11  Bruno Haible  <bruno@clisp.org>
15027
15028         doc: Update regarding MSVC 9.
15029         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15030         tested".
15031         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15032         * doc/posix-headers/*.texi: Likewise.
15033         * doc/pastposix-functions/*.texi: Likewise.
15034         * doc/glibc-functions/*.texi: Likewise.
15035         * doc/glibc-headers/*.texi: Likewise.
15036
15037 2011-09-11  Bruno Haible  <bruno@clisp.org>
15038
15039         unistd et al.: Don't assume <unistd.h> exists.
15040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15041         does not exist.
15042         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15043         exist. But include <stdlib.h>.
15044         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15045         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15046         symlink() does not exist.
15047         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15048         include <io.h> instead.
15049         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15050         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15051         include <direct.h> instead.
15052         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15054         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15055         <io.h> instead.
15056         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15057         correctly if the system does not have hard links.
15058         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15059         <direct.h> instead.
15060         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15061         it when looking for function declarations.
15062         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15063         <direct.h> and <io.h> instead.
15064         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15065
15066 2011-09-11  Bruno Haible  <bruno@clisp.org>
15067
15068         strcase: Support for MSVC.
15069         * modules/strcase (Status, Notice): Remove obsoletion mark.
15070         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15071         * doc/posix-functions/strncasecmp.texi: Likewise.
15072
15073         strings: Don't assume <strings.h> exists.
15074         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15075         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15076         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15077         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15078
15079 2011-09-11  Bruno Haible  <bruno@clisp.org>
15080
15081         dirent: Don't assume <dirent.h> exists.
15082         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15083         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15084         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15085         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15086
15087 2011-09-11  Bruno Haible  <bruno@clisp.org>
15088
15089         Fix wint_t on MSVC.
15090         * lib/wchar.in.h (wint_t): On MSVC, override it.
15091         * lib/wctype.in.h (wint_t): Likewise.
15092         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15093         MSVC.
15094         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15095         * doc/posix-headers/wctype.texi: Likewise.
15096
15097 2011-09-11  Bruno Haible  <bruno@clisp.org>
15098
15099         sys_types: Fix typo.
15100         * lib/sys_types.in.h: Fix typo in comment.
15101         Reported by Paul Eggert.
15102
15103         Support for MSVC compiler: Ensure size_t gets defined.
15104         * modules/strings (Depends-on): Add 'sys_types'.
15105         * modules/sys_uio (Depends-on): Likewise.
15106         * lib/sys_uio.in.h: Update comment.
15107
15108         C++ tests for module 'sys_types'.
15109         * modules/sys_types-c++-tests: New file.
15110         * tests/test-sys_types-c++.cc: New file.
15111
15112         Tests for module 'sys_types'.
15113         * modules/sys_types-tests: New file.
15114         * tests/test-sys_types.c: New file.
15115
15116         New module 'sys_types'.
15117         * lib/sys_types.in.h: New file.
15118         * m4/sys_types_h.m4: New file.
15119         * modules/sys_types: New file.
15120         * doc/posix-headers/sys_types.texi: Mention the new module and the
15121         size_t problem on MSVC 9.
15122
15123 2011-09-11  Bruno Haible  <bruno@clisp.org>
15124
15125         Support for MSVC compiler: Avoid division by a literal 0.
15126         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15128         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15129         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15130         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15131         * tests/infinity.h: New file.
15132         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15133         on MSVC.
15134         * tests/test-ceilf1.c: Include infinity.h.
15135         (main): Use Infinityf.
15136         * tests/test-ceil1.c: Include infinity.h.
15137         (main): Use Infinityd.
15138         * tests/test-ceill.c: Include infinity.h.
15139         (main): Use Infinityl.
15140         * tests/test-dprintf-posix.c: Include infinity.h.
15141         (test_function): Use Infinityd.
15142         * tests/test-floorf1.c: Include infinity.h.
15143         (main): Use Infinityf.
15144         * tests/test-floor1.c: Include infinity.h.
15145         (main): Use Infinityd.
15146         * tests/test-floorl.c: Include infinity.h.
15147         (main): Use Infinityl.
15148         * tests/test-fprintf-posix.c: Include infinity.h.
15149         (test_function): Use Infinityd.
15150         * tests/test-frexp.c: Include infinity.h.
15151         (main): Use Infinityd.
15152         * tests/test-frexpl.c: Include infinity.h.
15153         (main): Use Infinityl.
15154         * tests/test-isfinite.c: Include infinity.h.
15155         (test_isfinitef): Use Infinityf.
15156         (test_isfinited): Use Infinityd.
15157         (test_isfinitel): Use Infinityl.
15158         * tests/test-isinf.c: Include infinity.h.
15159         (test_isinff): Use Infinityf.
15160         (test_isinfd): Use Infinityd.
15161         (test_isinfl): Use Infinityl.
15162         * tests/test-isnan.c: Include infinity.h.
15163         (test_float): Use Infinityf.
15164         (test_double): Use Infinityd.
15165         (test_long_double): Use Infinityl.
15166         * tests/test-isnanf.h: Include infinity.h.
15167         (main): Use Infinityf.
15168         * tests/test-isnand.h: Include infinity.h.
15169         (main): Use Infinityd.
15170         * tests/test-isnanl.h: Include infinity.h.
15171         (main): Use Infinityl.
15172         * tests/test-ldexpl.c: Include infinity.h.
15173         (main): Use Infinityl.
15174         * tests/test-printf-posix.h: Include infinity.h.
15175         (test_function): Use Infinityd.
15176         * tests/test-roundf1.c: Include infinity.h.
15177         (main): Use Infinityf.
15178         * tests/test-round1.c: Include infinity.h.
15179         (main): Use Infinityd.
15180         * tests/test-roundl.c: Include infinity.h.
15181         (main): Use Infinityl.
15182         * tests/test-signbit.c: Include infinity.h.
15183         (test_signbitf): Use Infinityf.
15184         (test_signbitd): Use Infinityd.
15185         (test_signbitl): Use Infinityl.
15186         * tests/test-snprintf-posix.h: Include infinity.h.
15187         (test_function): Use Infinityd, Infinityl.
15188         * tests/test-sprintf-posix.h: Include infinity.h.
15189         (test_function): Use Infinityd, Infinityl.
15190         * tests/test-truncf1.c: Include infinity.h.
15191         (main): Use Infinityf.
15192         * tests/test-trunc1.c: Include infinity.h.
15193         (main): Use Infinityd.
15194         * tests/test-truncl.c: Include infinity.h.
15195         (main): Use Infinityl.
15196         * tests/test-vasnprintf-posix.c: Include infinity.h.
15197         (test_function): Use Infinityd, Infinityl.
15198         * tests/test-vasprintf-posix.c: Include infinity.h.
15199         (test_function): Use Infinityd, Infinityl.
15200         * modules/ceilf-tests (Files): Add tests/infinity.h.
15201         * modules/ceil-tests (Files): Likewise.
15202         * modules/ceill-tests (Files): Likewise.
15203         * modules/dprintf-posix-tests (Files): Likewise.
15204         * modules/floorf-tests (Files): Likewise.
15205         * modules/floor-tests (Files): Likewise.
15206         * modules/floorl-tests (Files): Likewise.
15207         * modules/fprintf-posix-tests (Files): Likewise.
15208         * modules/frexp-tests (Files): Likewise.
15209         * modules/frexp-nolibm-tests (Files): Likewise.
15210         * modules/frexpl-tests (Files): Likewise.
15211         * modules/frexpl-nolibm-tests (Files): Likewise.
15212         * modules/isfinite-tests (Files): Likewise.
15213         * modules/isinf-tests (Files): Likewise.
15214         * modules/isnan-tests (Files): Likewise.
15215         * modules/isnanf-tests (Files): Likewise.
15216         * modules/isnanf-nolibm-tests (Files): Likewise.
15217         * modules/isnand-tests (Files): Likewise.
15218         * modules/isnand-nolibm-tests (Files): Likewise.
15219         * modules/isnanl-tests (Files): Likewise.
15220         * modules/isnanl-nolibm-tests (Files): Likewise.
15221         * modules/ldexpl-tests (Files): Likewise.
15222         * modules/printf-posix-tests (Files): Likewise.
15223         * modules/roundf-tests (Files): Likewise.
15224         * modules/round-tests (Files): Likewise.
15225         * modules/roundl-tests (Files): Likewise.
15226         * modules/signbit-tests (Files): Likewise.
15227         * modules/snprintf-posix-tests (Files): Likewise.
15228         * modules/sprintf-posix-tests (Files): Likewise.
15229         * modules/truncf-tests (Files): Likewise.
15230         * modules/trunc-tests (Files): Likewise.
15231         * modules/truncl-tests (Files): Likewise.
15232         * modules/vasnprintf-posix-tests (Files): Likewise.
15233         * modules/vasprintf-posix-tests (Files): Likewise.
15234         * modules/vdprintf-posix-tests (Files): Likewise.
15235         * modules/vfprintf-posix-tests (Files): Likewise.
15236         * modules/vprintf-posix-tests (Files): Likewise.
15237         * modules/vsnprintf-posix-tests (Files): Likewise.
15238         * modules/vsprintf-posix-tests (Files): Likewise.
15239         * modules/xprintf-posix-tests (Files): Likewise.
15240
15241 2011-09-11  Bruno Haible  <bruno@clisp.org>
15242
15243         Ensure pid_t gets defined.
15244         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15245         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15246         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15247         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15248         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15249         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15250         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15251         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15252         * tests/test-fcntl-h.c: Check that pid_t is defined.
15253         * tests/test-sched.c: Likewise.
15254         * tests/test-termios.c: Likewise.
15255         * tests/test-time.c: Likewise.
15256         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15257         * doc/posix-headers/signal.texi: Likewise.
15258         * doc/posix-headers/sys_types.texi: Likewise.
15259         * doc/posix-headers/time.texi: Likewise.
15260
15261 2011-09-11  Bruno Haible  <bruno@clisp.org>
15262
15263         acl: Fix compilation on Solaris 10 (older version).
15264         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15265         of ACE_EVERYONE.
15266         * lib/set-mode-acl.c (qset_acl): Likewise.
15267         Reported by Christian Jullien <eligis@orange.fr>.
15268
15269 2011-09-10  Bruno Haible  <bruno@clisp.org>
15270
15271         iconv, unsetenv: Add support for MSVC compiler.
15272         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15273         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15274
15275 2011-09-10  Bruno Haible  <bruno@clisp.org>
15276
15277         *printf: Add support for MSVC compiler.
15278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15279         handles the exception caused by the %n directive. When cross-compiling,
15280         guess no on native Windows.
15281         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15282         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15283         emulate it through vsnprintf.
15284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15285         * doc/posix-functions/dprintf.texi: Update documentation regarding
15286         MSVC 9.
15287         * doc/posix-functions/fprintf.texi: Likewise.
15288         * doc/posix-functions/printf.texi: Likewise.
15289         * doc/posix-functions/snprintf.texi: Likewise.
15290         * doc/posix-functions/sprintf.texi: Likewise.
15291         * doc/posix-functions/swprintf.texi: Likewise.
15292         * doc/posix-functions/vdprintf.texi: Likewise.
15293         * doc/posix-functions/vfprintf.texi: Likewise.
15294         * doc/posix-functions/vprintf.texi: Likewise.
15295         * doc/posix-functions/vsnprintf.texi: Likewise.
15296         * doc/posix-functions/vsprintf.texi: Likewise.
15297         * doc/glibc-functions/asprintf.texi: Likewise.
15298         * doc/glibc-functions/obstack_printf.texi: Likewise.
15299         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15300         * doc/glibc-functions/vasprintf.texi: Likewise.
15301
15302 2011-09-10  Bruno Haible  <bruno@clisp.org>
15303
15304         nocrash: Add support for native Windows.
15305         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15306
15307 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15308             Bruno Haible  <bruno@clisp.org>
15309
15310         absolute-header, include-next: Add support for MSVC compiler.
15311         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15312         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15313         directory separator in #line directives.
15314         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15315         recognize also backslash as directory separator in #line directives.
15316
15317 2011-09-08  Jim Meyering  <meyering@redhat.com>
15318
15319         maint.mk: mark the post-release commit log with "maint: " prefix
15320         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15321         one-line commit-log summary.
15322
15323 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15324             Bruno Haible  <bruno@clisp.org>
15325
15326         Doc about crypt functions.
15327         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15328         systems.
15329         * doc/posix-functions/encrypt.texi: Likewise.
15330         * doc/posix-functions/setkey.texi: Likewise.
15331
15332 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15333
15334         * lib/gc.h: Fix copyright header.
15335
15336 2011-09-07  Bruno Haible  <bruno@clisp.org>
15337
15338         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15340         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15341
15342 2011-09-07  Bruno Haible  <bruno@clisp.org>
15343
15344         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15345         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15346         * lib/freopen.c: Likewise.
15347         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15348         * lib/lstat.c: Likewise.
15349         * lib/stat.c: Likewise.
15350         * lib/open.c: Use different syntax for include of <fcntl.h>.
15351         * lib/openat.c: Include fcntl.h again, explicitly.
15352
15353 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15354
15355         parse-datetime: document the newly accepted format
15356         * doc/parse-datetime.texi (Combined date and time of day items):
15357         New section.
15358
15359 2011-09-06  Bruno Haible  <bruno@clisp.org>
15360
15361         acl: Fix a test failure on newer Solaris 10 with ZFS.
15362         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15363         ENOSYS as no ACL.
15364         Reported by Jim Meyering.
15365
15366 2011-09-06  Bruno Haible  <bruno@clisp.org>
15367
15368         acl: Update for AIX >= 5.3 with NFS.
15369         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15370         ENOSYS as no ACL.
15371
15372         acl: Fix a test failure on AIX >= 5.3 with NFS.
15373         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15374         as no ACL.
15375
15376 2011-09-06  Bruno Haible  <bruno@clisp.org>
15377
15378         acl: Fix a test failure on IRIX 6.5 with NFS.
15379         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15380         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15381         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15382         * lib/copy-acl.c (qcopy_acl): Likewise.
15383
15384 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15385
15386         openat: port to AIX 7.1 with large files
15387         AIX 7.1 does a "#define openat open64at" if large files are in use,
15388         so we can't simply #undef openat.  Use the orig_openat trick (similar
15389         to orig_open in lib/open.c) to work around the problem.  Problem
15390         reported by Kevin Brott for GNU tar, in the thread containing
15391         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15392         * lib/openat.c (__need_system_fcntl_h): Define first.
15393         Include <fcntl.h> and <sys/types.h> before undefining.
15394         (orig_openat) [HAVE_OPENAT]: New inline function.
15395         (openat) [HAVE_OPENAT]: Do not undef.
15396         (rpl_openat): Use orig_openat, not openat.
15397
15398 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15399             Bruno Haible  <bruno@clisp.org>
15400
15401         acl: Avoid errors on NonStop Kernel.
15402         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15403         ENOTSUP errors.
15404
15405 2011-09-05  Bruno Haible  <bruno@clisp.org>
15406
15407         acl: Clean up Solaris code.
15408         * lib/acl-internal.h: Remove no-op #if.
15409         * lib/file-has-acl.c: Likewise.
15410         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15411         * lib/copy-acl.c (qcopy_acl): Likewise.
15412
15413 2011-09-05  Bruno Haible  <bruno@clisp.org>
15414
15415         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15416         binaries built on the original Solaris 10.
15417         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15418         trivial.
15419
15420 2011-09-05  Bruno Haible  <bruno@clisp.org>
15421
15422         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15423         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15424         10.
15425         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15426         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15427         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15428         instead of acl_get, facl_get, acl_set, facl_set.
15429
15430 2011-09-05  Bruno Haible  <bruno@clisp.org>
15431
15432         copy-file: Try unit tests on more file systems.
15433         * tests/test-copy-file-1.sh: New file.
15434         * tests/test-copy-file-2.sh: New file.
15435         * modules/copy-file-tests (Files): Add them.
15436         (Makefile.am): Add them to TESTS.
15437
15438         acl: Try unit tests on more file systems.
15439         * tests/test-file-has-acl-1.sh: New file.
15440         * tests/test-file-has-acl-2.sh: New file.
15441         * tests/test-set-mode-acl-1.sh: New file.
15442         * tests/test-set-mode-acl-2.sh: New file.
15443         * tests/test-copy-acl-1.sh: New file.
15444         * tests/test-copy-acl-2.sh: New file.
15445         * modules/acl-tests (Files): Add them.
15446         (Makefile.am): Add them to TESTS.
15447
15448 2011-09-04  Bruno Haible  <bruno@clisp.org>
15449
15450         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15451         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15452         10.
15453         (OLD_ALLOW, OLD_DENY): New macros.
15454         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15455         ACE_ACCESS_ALLOWED_ACE_TYPE.
15456         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15457         ACE_ACCESS_DENIED_ACE_TYPE.
15458         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15459         (NEW_ACE_EXECUTE): Fix value.
15460         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15461         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15462         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15463         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15464         NEW_ACE_SYNCHRONIZE): New macros.
15465         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15466         instead of acl_fromtext, acl_set, facl_set.
15467         Fixes a coreutils/tests/cp/perm failure.
15468
15469 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15470
15471         openat: test for fstatat (..., 0) bug
15472         Further testing with tar suggests that fstatat (..., 0)
15473         does not work in general, on AIX 7.1; see
15474         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15475         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15476         replacement fstatat (which is what older AIX releases were using
15477         anyway).
15478         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15479         use is now changed to orig_fstatat.  This was probably the right
15480         thing to do anyway.
15481         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15482         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15483         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15484         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15485         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15486         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15487         if the bug is found.
15488
15489         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15490         This tests for another fstatat bug on AIX 7.1:
15491         fstatat (AT_FDCWD, ..., 0) does not work.  See
15492         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15493         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15494         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15495         (rpl_fstatat): Adjust so that it works around either (or both)
15496         bugs if present.
15497         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15498
15499 2011-09-03  Karl Berry  <karl@gnu.org>
15500
15501         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15502         in index entries.
15503
15504 2011-09-02  Bruno Haible  <bruno@clisp.org>
15505
15506         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15507         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15508         values of AR, ARFLAGS, RANLIB.
15509         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15510
15511 2011-09-02  Bruno Haible  <bruno@clisp.org>
15512
15513         Find 'ar' program that fits with --host argument.
15514         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15515
15516 2011-09-02  Bruno Haible  <bruno@clisp.org>
15517
15518         tests: init.sh: Support any non-GNU diff.
15519         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15520         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15521         Solaris 8.
15522
15523 2011-09-02  Bruno Haible  <bruno@clisp.org>
15524
15525         tests: init.sh: work also with any non-GNU diff that supports -u
15526         * tests/init.sh: Relax check for diff -u support.
15527         Rather than checking for GNU diff via --version, simply check
15528         for support for -u itself.  Useful at least on OpenBSD 4.9,
15529         AIX 7.1, IRIX 6.5, and Solaris 10.
15530
15531 2011-09-01  Bruno Haible  <bruno@clisp.org>
15532
15533         strtoimax, strtoumax: Document problem on HP-UX 11.
15534         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15535         * doc/posix-functions/strtoumax.texi: Likewise.
15536
15537 2011-09-01  Bruno Haible  <bruno@clisp.org>
15538
15539         strtoumax: Avoid link error on OSF/1 with DTK cc.
15540         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15541         defined as a function.
15542         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15543         strtoumax is defined, not whether it is declared.
15544
15545 2011-09-01  Bruno Haible  <bruno@clisp.org>
15546
15547         strtoimax: Avoid link error on OSF/1 with DTK cc.
15548         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15549         defined as a function.
15550         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15551         strtoimax is defined, not whether it is declared.
15552
15553 2011-09-01  Bruno Haible  <bruno@clisp.org>
15554
15555         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15556         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15557         as a function.
15558         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15559         whether it is declared.
15560
15561 2011-09-01  Bruno Haible  <bruno@clisp.org>
15562
15563         imaxabs: Avoid link error on OSF/1 with DTK cc.
15564         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15565         as a function.
15566         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15567         whether it is declared.
15568
15569 2011-09-01  Bruno Haible  <bruno@clisp.org>
15570
15571         Tests for module 'strtoumax'.
15572         * modules/strtoumax-tests: New file.
15573         * tests/test-strtoumax.c: New file.
15574
15575         Tests for module 'strtoimax'.
15576         * modules/strtoimax-tests: New file.
15577         * tests/test-strtoimax.c: New file.
15578
15579         Tests for module 'imaxdiv'.
15580         * modules/imaxdiv-tests: New file.
15581         * tests/test-imaxdiv.c: New file.
15582
15583         Tests for module 'imaxabs'.
15584         * modules/imaxabs-tests: New file.
15585         * tests/test-imaxabs.c: New file.
15586
15587 2011-09-01  Bruno Haible  <bruno@clisp.org>
15588
15589         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15591         pthread_create.
15592
15593 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15594
15595         openat: work around AIX 7.1 fstatat issue
15596         This should fix the problem that was not properly fixed
15597         in the previous change, dated 2011-08-30.
15598         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15599         __need_system_stat_h defined.
15600         (orig_fstatat) [HAVE_FSTATAT]: New function.
15601         (rpl_fstatat): Go back to the old way of doing things,
15602         except call orig_fstatat instead of fstatat.
15603         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15604         Remove unnecessary check whether fstatat fills in st_size etc.
15605
15606 2011-09-01  Bruno Haible  <bruno@clisp.org>
15607
15608         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15609         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15610         just include the system's header.
15611
15612 2011-08-31  Jim Meyering  <meyering@redhat.com>
15613
15614         tests: avoid spurious assertion failure in test-float.c on ppc64
15615         * tests/test-float.c (test_long_double): Comment out an assertion,
15616         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15617         with gcc-4.4.4.
15618
15619         maint: indent with spaces, not TABs
15620         I need to get in the habit of running gnulib's "make check".
15621         Both of these would have been caught.
15622         * m4/largefile.m4: Indent with spaces, not TABs.
15623         * lib/parse-datetime.y (iso_8601_time): Likewise.
15624         Spotted by Pádraig Brady.
15625
15626         test-parse-datetime.c: accommodate a relatively strict gcc warning
15627         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15628         to avoid a warning from gcc's -Werror=missing-declarations.
15629         Insert a few spaces-before-funcall-parenthesis.
15630
15631 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15632
15633         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15634         The parser now accepts ISO 8601 date-time strings with "T" as the
15635         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15636         with a space between the date and time strings.  Now it also parses
15637         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15638         variants like "2004-02-29T16:21:42.333-07:00"
15639         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15640         of day representation using the 'T' separator character.
15641         * doc/parse-datetime.texi (General date syntax): replace use of
15642         deprecated --iso-8601 option with --rfc-3339 in example of date
15643         command output formats that can be parsed.
15644         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15645         lib/parse-datetime.y.
15646         (gmt_offset): New function.
15647         (main): Add additional test cases to validate ISO8601 extended
15648         date and time of day parsing.
15649
15650 2011-08-31  Bruno Haible  <bruno@clisp.org>
15651
15652         freopen: Documentation.
15653         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15654         name.
15655         Reported by Claudio Bley <claudio.bley@gmail.com>.
15656
15657 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15658
15659         freopen: Don't crash if the filename argument is NULL.
15660         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15661         NULL.
15662
15663 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15664
15665         openat: work around AIX 7.1 fstatat bug
15666         Problem reported by Kevin Brott for GNU tar, in the thread containing
15667         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15668         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15669         FSTATAT_ST_SIZE_ETC_BROKEN.
15670         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15671         rpl_fstatat.
15672         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15673         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15674         AC_CHECK_FUNCS_ONCE for fstatat.
15675         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15676         fchmodat, mkdirat, openat and unlinkat.
15677
15678 2011-08-30  Bruno Haible  <bruno@clisp.org>
15679
15680         Avoid endless recursions if config.h includes some header files.
15681         * lib/fopen.c (__need_FILE): Define already before including config.h.
15682         * lib/freopen.c (__need_FILE): Likewise.
15683         * lib/open.c (__need_system_fcntl_h): Likewise.
15684         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15685         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15686         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15687
15688 2011-08-25  Karl Berry  <karl@gnu.org>
15689
15690         * config/srclist.txt (ylwrap): new try.
15691         * build-aux/ylwrap: new file.
15692
15693 2011-08-23  Bruno Haible  <bruno@clisp.org>
15694
15695         tmpdir: Use a good default directory on native Windows.
15696         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15697         (P_tmpdir): Default to _P_tmpdir on native Windows.
15698         (path_search): On native Windows, try the value returned by GetTempPath
15699         before trying P_tmpdir.
15700         * modules/tmpdir (Depends-on): Add pathmax.
15701         Suggested by John Darrington <john@darrington.wattle.id.au>.
15702
15703 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15704
15705         doc: fix typo in README-release
15706         * top/README-release: Capitalize first word of a sentence.
15707
15708 2011-08-19  Jim Meyering  <meyering@redhat.com>
15709
15710         fts: do not exhaust memory when processing million-entry directories
15711         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15712         directory would require about 256*N bytes of memory.  Thus, it was
15713         easy to construct a directory too large to be processed by any of
15714         those tools.  With this change, fts' maximum memory utilization is
15715         now limited to around 30MB.
15716         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15717         (fts_read): When we've processed the final entry (i.e., when
15718         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15719         using the parent entry to read any remaining entries.  Dispatch
15720         depending on what fts_build returns:
15721         - NULL+stop, aka failure: stop
15722         - NULL otherwise: move up in the dir hierarchy
15723         - non-NULL: handle this new entry
15724         (fts_build): Declare and use new local, continue_readdir.
15725         Prepare to be called from fts_read, when the entries
15726         from a partially-read directory have just been exhausted.
15727         In that case, we'll skip the opendir and instead use the parent's
15728         fts_dirp and derive dir_fd from that.
15729         Finally, in the readdir loop, if we read max_entries entries,
15730         exit the loop ensuring *not* to call closedir.  This is required
15731         so that fts_dirp can be reused on a subsequent call.
15732         Prompted by Ben England's report of memory exhaustion in find
15733         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15734
15735         maint: fts: move decl of `dp' down into while loop; split a long line
15736         * lib/fts.c (fts_build): No semantic change.
15737
15738         fts: add/use new struct member, fts_dirp
15739         We are about to use this to manage any directory with
15740         too many entries to read all of them into memory at once.
15741         To do that, we'll need to save the DIR* pointer in each
15742         affected FTSENT struct.
15743         * lib/fts_.h: Include <dirent.h>.
15744         (struct FTSENT) [fts_dirp]: New member.
15745         * lib/fts.c (closedir_and_clear): Define.
15746         Use it in place of closedir so that we are sure to
15747         clear the new fts_dirp member when done with it.
15748         (fts_alloc): Initialize the new member.
15749         (fts_lfree): Free, if needed.
15750
15751         maint: fts: give __opendir2 a new parameter and rename
15752         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15753         than surreptitiously using sole caller's "dir_fd".
15754         (fts_opendir): Rename from __opendir2.
15755
15756         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15757         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15758
15759         maint: fts.c: correct off-by-one indentation
15760         * lib/fts.c (fts_build): Correct indentation, change style
15761         of a couple of block comments, and bracing style.
15762
15763         maint: fts.c: move __opendir2 #define "up" out of function body
15764         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15765
15766         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15767         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15768         out for a long time and besides was useful only on BSD systems.
15769
15770 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15771
15772         regex: port to Stratus OpenVOS
15773         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15774         define to empty, rather than attempting nonportable optimizations.
15775         Problem reported by Paul Green in:
15776         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15777         and fix suggested by Eric Blake in:
15778         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15779
15780 2011-08-17  Eric Blake  <eblake@redhat.com>
15781
15782         getcwd: fix test failures on mingw
15783         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15784         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15785         test if long directory cannot be created, and allow mingw errno.
15786
15787         getcwd-lgpl: fix m4 to match relaxed test for BSD
15788         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15789         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15790         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15791         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15792         signature problem.
15793
15794         getcwd: fix compilation on mingw64
15795         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15796         getcwd.
15797         Reported by Marc-André Lureau.
15798
15799         pipe2: silence compiler warning
15800         * lib/pipe2.c (pipe2): Hide label if it is not used.
15801
15802 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15803
15804         relocatable-prog: fix link error
15805         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15806         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15807         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15808         into modules/relocatable-lib without noticing that
15809         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15810         also needs to build relocatable.c.
15811
15812 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15813
15814         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15816         shell code: it contained a 'break' that was not in a loop.
15817         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15818         via a shell-language loop; this may have been true in old Autoconf
15819         versions, but it's not true in Autoconf 2.68.  I found this bug
15820         when testing coreutils git on Solaris 8, whose shell complains
15821         about the syntax error.
15822
15823 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15824
15825         * lib/base64.c: Fix comment to reference RFC 4648.
15826         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15827         <gvtulder@gmail.com>.
15828
15829 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15830
15831         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15832
15833         po/Makefile.in.in: fix make -q problem
15834         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15835         rule, since there's no file named 'check-macro-version' and its
15836         use as a file breaks make -q.
15837         (all): Don't depend on check-macro-version.
15838         (CHECK_MACRO_VERSION): New macro.
15839         (stamp-po): Use it.
15840
15841         configmake: fix make -q problem
15842         * modules/configmake (configmake.h): Update configmake.h's time stamp
15843         even if the file does not change.  Otherwise, 'make -q' fails.
15844         Problem reported by Simon Josefsson in
15845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15846
15847 2011-08-11  Jim Meyering  <meyering@redhat.com>
15848
15849         git-version-gen: correct the advice in a comment
15850         * build-aux/git-version-gen: Correct comment.
15851         Don't recommend to list .tarball-version in .gitignore.
15852
15853 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15854
15855         base64: fix off-by-one buffer size bug
15856         Problem and (trivial) fix reported by Gijs van Tulder in
15857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15858         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15859         * tests/test-base64.c (main): Catch the bug.
15860
15861 2011-08-10  Eric Blake  <eblake@redhat.com>
15862
15863         closein: correct comments
15864         * lib/closein.c (close_stdin): Improve comments.
15865
15866 2011-08-09  Bruno Haible  <bruno@clisp.org>
15867
15868         More tests for 'fseeko'.
15869         * tests/test-fseeko3.c: New file, from Eric Blake.
15870         * tests/test-fseeko3.sh: New file.
15871         * modules/fseeko-tests (Files): Add them.
15872         (TESTS): Add test-fseeko3.sh.
15873         (check_PROGRAMS): Add test-fseeko3.
15874
15875 2011-08-09  Eric Blake  <eblake@redhat.com>
15876
15877         fseeko: remove unneeded hack
15878         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15879
15880         fseeko: fix bug on glibc
15881         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15882         Reported by John W. Eaton.
15883
15884 2011-08-08  Bruno Haible  <bruno@clisp.org>
15885
15886         unictype/base: Fix interoperability with preinstalled libunistring.
15887         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15888         Reported by Simon Josefsson.
15889
15890 2011-08-08  Bruno Haible  <bruno@clisp.org>
15891
15892         iswblank: Detect declaration correctly.
15893         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15894         AC_CHECK_DECLS invocation.
15895
15896 2011-08-08  Bruno Haible  <bruno@clisp.org>
15897
15898         tcgetsid: Detect declaration correctly.
15899         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15900         AC_CHECK_DECLS invocation.
15901         Reported by Simon Josefsson.
15902
15903 2011-08-08  Eric Blake  <eblake@redhat.com>
15904
15905         largefile: fix typo that regressed large file support
15906         * modules/largefile (configure.ac-early): Fix section name.
15907
15908 2011-08-06  Karl Berry  <karl@gnu.org>
15909
15910         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15911         a separate module.
15912
15913 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15914
15915         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15916         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15917         get prototype for free.
15918
15919 2011-08-04  Bruno Haible  <bruno@clisp.org>
15920
15921         Tests for module 'pathmax'.
15922         * modules/pathmax-tests: New file.
15923         * tests/test-pathmax.c: New file.
15924
15925         canonicalize-lgpl: Support larger filenames on the Hurd.
15926         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15927         Reported by Paul Eggert.
15928
15929         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15930         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15931         * lib/chdir-long.h: Include pathmax.h.
15932         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15933         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15934         (PATH_MAX): Remove code that is done by pathmax.h.
15935         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15936         * lib/tmpfile.c: Add a comment.
15937         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15938         * modules/chdir-long (Depends-on): Add pathmax.
15939         * modules/getcwd (Depends-on): Add pathmax.
15940         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15941         is not defined.
15942         * doc/posix-headers/limits.texi: Mention the pathmax module.
15943         * NEWS: Mention the change.
15944
15945 2011-08-02  Bruno Haible  <bruno@clisp.org>
15946
15947         pthread_sigmask: Actually use results of gl_THREADLIB.
15948         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15949         gl_THREADLIB, not gl_[]THREADLIB.
15950         Reported by Eric Blake.
15951
15952 2011-08-02  Jim Meyering  <meyering@redhat.com>
15953
15954         maint.mk: relax the default _gl_TS_function_match regexp
15955         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15956         space between function name and "(" in an "extern" declaration.
15957         That would fail to match a decl with no space there: extern void foo();
15958
15959 2011-07-31  Iain Nicol  <iain@thenicols.net>
15960
15961         git-version-gen: document that EXTRA_DIST must include .version
15962         * build-aux/git-version-gen: In the how-to-use comment, document
15963         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15964         will fail when run from an unpacked distribution tarball.
15965
15966 2011-08-01  Bruno Haible  <bruno@clisp.org>
15967
15968         wctype-h: Fix last change.
15969         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15970         REPLACE_TOWLOWER to 0.
15971         Reported by Sam Steingold <sds@gnu.org>.
15972
15973 2011-07-31  Bruno Haible  <bruno@clisp.org>
15974
15975         frexpl: Update autoconf test.
15976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15977         according to changes of 2011-06-20.
15978
15979 2011-07-31  Bruno Haible  <bruno@clisp.org>
15980
15981         sys_utsname: Add support for Minix.
15982         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15983         <sys/utsname.h>.
15984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15985         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15986
15987 2011-07-31  Bruno Haible  <bruno@clisp.org>
15988
15989         strings: Add support for Minix.
15990         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15991         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15992         * doc/posix-headers/strings.texi: Document the Minix problem.
15993
15994 2011-07-31  Bruno Haible  <bruno@clisp.org>
15995
15996         wctype-h: Add support for Minix.
15997         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15998         REPLACE_TOWLOWER.
15999         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16000         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16001         REPLACE_ISWCNTRL.
16002
16003 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16006         This is a performance improvement for 64-bit hosts: it causes the
16007         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16008
16009 2011-07-31  Bruno Haible  <bruno@clisp.org>
16010
16011         stdioext: Add support for Minix.
16012         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16013         * lib/fpurge.c (fpurge): Likewise.
16014         * lib/freadahead.c (freadahead): Likewise.
16015         * lib/freadable.c (freadable): Likewise.
16016         * lib/freading.c (freading): Likewise.
16017         * lib/freadptr.c (freadptr): Likewise.
16018         * lib/freadseek.c (freadptrinc): Likewise.
16019         * lib/fseeko.c (rpl_fseeko): Likewise.
16020         * lib/fseterr.c (fseterr): Likewise.
16021         * lib/fwritable.c (fwritable): Likewise.
16022         * lib/fwriting.c (fwriting): Likewise.
16023         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16024         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16025
16026 2011-07-31  Bruno Haible  <bruno@clisp.org>
16027
16028         errno: Port to Minix.
16029         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16030         ECONNABORTED are defined.
16031         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16032         GNULIB_defined_ECONNABORTED): New macros.
16033         * lib/strerror-override.h (strerror_override): Test also
16034         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16035         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16036         ECONNABORTED.
16037         * doc/posix-headers/errno.texi: Mention the Minix problem.
16038
16039 2011-07-31  Bruno Haible  <bruno@clisp.org>
16040
16041         Work around declaration collisions on Minix.
16042         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16043         defined, set REPLACE_MBSINIT.
16044         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16045         defined, set REPLACE_MBRTOWC.
16046         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16047         set REPLACE_MBRLEN.
16048         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16049         defined, set REPLACE_MBSRTOWCS.
16050         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16051         defined, set REPLACE_WCRTOMB.
16052         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16053         defined, set REPLACE_WCSRTOMBS.
16054
16055 2011-07-31  Bruno Haible  <bruno@clisp.org>
16056
16057         Add support for Minix with ACK compiler.
16058         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16059         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16060         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16061
16062 2011-07-31  Bruno Haible  <bruno@clisp.org>
16063
16064         Documentation about Minix.
16065         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16066         * doc/glibc-headers/*.texi: Likewise.
16067         * doc/posix-functions/*.texi: Likewise.
16068         * doc/glibc-functions/*.texi: Likewise.
16069
16070 2011-07-31  Bruno Haible  <bruno@clisp.org>
16071
16072         snippet/warn-on-use: Fix indentation.
16073         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16074
16075 2011-07-25  Jim Meyering  <meyering@redhat.com>
16076
16077         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16078         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16079         commands.
16080
16081 2011-07-27  Jim Meyering  <meyering@redhat.com>
16082
16083         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16084         * top/maint.mk (gl_extract_significant_defines_): Now that
16085         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16086         gnulib/lib/signal.in.h, and now that we recommend to
16087         define-if-undefined those two symbols in application code,
16088         we must filter them out of the "significant" list.
16089         This avoids a "make syntax-check" failure in coreutils.
16090
16091 2011-07-26  Eric Blake  <eblake@redhat.com>
16092
16093         warnings: add comments about previous patch
16094         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16095         * m4/include_next.m4: Likewise.
16096         * m4/warn-on-use.m4: Likewise.
16097         * m4/warnings.m4: Likewise, and simplify use.
16098         Suggested by Stefano Lattarini.
16099
16100         include-next, warnings: support older autoconf
16101         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16102         AS_VAR_PUSHDEF in a way that works with older autoconf.
16103         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16104         Reported by Daniel P. Berrange.
16105
16106 2011-07-25  Bruno Haible  <bruno@clisp.org>
16107
16108         fseek, ftell: Fix doc.
16109         * doc/posix-functions/fseek.texi: Reword statement about
16110         AC_SYS_LARGEFILE.
16111         * doc/posix-functions/ftell.texi: Likewise.
16112
16113 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16114             Bruno Haible  <bruno@clisp.org>
16115
16116         Add dependencies to the 'largefile' module.
16117         * modules/fopen (Depends-on): Add 'largefile'.
16118         * modules/freopen (Depends-on): Likewise.
16119         * modules/fseeko (Depends-on): Likewise.
16120         * modules/ftello (Depends-on): Likewise.
16121         * modules/glob (Depends-on): Likewise.
16122         * modules/lseek (Depends-on): Likewise.
16123         * modules/lstat (Depends-on): Likewise.
16124         * modules/mkostemp (Depends-on): Likewise.
16125         * modules/mkostemps (Depends-on): Likewise.
16126         * modules/mkstemp (Depends-on): Likewise.
16127         * modules/mkstemps (Depends-on): Likewise.
16128         * modules/open (Depends-on): Likewise.
16129         * modules/openat (Depends-on): Likewise.
16130         * modules/pread (Depends-on): Likewise.
16131         * modules/pwrite (Depends-on): Likewise.
16132         * modules/scandir (Depends-on): Likewise.
16133         * modules/stat (Depends-on): Likewise.
16134         * modules/tmpfile (Depends-on): Likewise.
16135         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16136         since the containing module now depends on the largefile module.
16137         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16138         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16139         off_t is fixed by gnulib.
16140         * doc/posix-functions/freopen.texi: Likewise.
16141         * doc/posix-functions/fseeko.texi: Likewise.
16142         * doc/posix-functions/fstatat.texi: Likewise.
16143         * doc/posix-functions/ftello.texi: Likewise.
16144         * doc/posix-functions/glob.texi: Likewise.
16145         * doc/posix-functions/lseek.texi: Likewise.
16146         * doc/posix-functions/lstat.texi: Likewise.
16147         * doc/posix-functions/mkstemp.texi: Likewise.
16148         * doc/posix-functions/open.texi: Likewise.
16149         * doc/posix-functions/openat.texi: Likewise.
16150         * doc/posix-functions/pread.texi: Likewise.
16151         * doc/posix-functions/pwrite.texi: Likewise.
16152         * doc/posix-functions/scandir.texi: Likewise.
16153         * doc/posix-functions/stat.texi: Likewise.
16154         * doc/posix-functions/tmpfile.texi: Likewise.
16155         * doc/glibc-functions/mkostemp.texi: Likewise.
16156         * doc/glibc-functions/mkostemps.texi: Likewise.
16157         * doc/glibc-functions/mkstemps.texi: Likewise.
16158
16159 2011-07-25  Bruno Haible  <bruno@clisp.org>
16160
16161         fcntl: Move AC_LIBOBJ invocation to module description.
16162         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16163         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16164
16165         fcntl: Remove call-in from fchdir.m4.
16166         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16168
16169         dup3: Remove potential call-in from fchdir.m4.
16170         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16172
16173         dup2: Move AC_LIBOBJ invocation to module description.
16174         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16175         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16176         Don't invoke AC_LIBOBJ.
16177         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16178
16179         dup2: Remove call-in from fchdir.m4.
16180         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16182
16183         fclose: Move AC_LIBOBJ invocation to module description.
16184         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16185         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16186         to 1.
16187         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16188
16189         fclose: Remove call-in from close.m4.
16190         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16191         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16192
16193         close: Move AC_LIBOBJ invocation to module description.
16194         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16195         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16196         1.
16197         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16198
16199         close: Remove call-in from fchdir.m4.
16200         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16202
16203         open: Move AC_LIBOBJ invocation to module description.
16204         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16205         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16206         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16207
16208         open: Remove call-in from fchdir.m4.
16209         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16211
16212         fchdir: Start to remove gl_REPLACE_* idiom.
16213         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16214         (gl_FUNC_FCHDIR): Invoke it.
16215
16216 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16217
16218         * lib/ftell.c (ftell): Comment out cast.
16219
16220         close: use gl_REPLACE_FCLOSE only if defined
16221         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16222         is defined.  The close module doesn't depend on the fclose module
16223         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16225         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16226
16227 2011-07-24  Jim Meyering  <meyering@redhat.com>
16228
16229         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16230         * tests/test-select.h (test_function): Declare as "static".
16231
16232 2011-07-24  Bruno Haible  <bruno@clisp.org>
16233
16234         doc: Mention the effects of AC_SYS_LARGEFILE.
16235         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16236         on this function.
16237         * doc/posix-functions/aio_error.texi: Likewise.
16238         * doc/posix-functions/aio_fsync.texi: Likewise.
16239         * doc/posix-functions/aio_read.texi: Likewise.
16240         * doc/posix-functions/aio_return.texi: Likewise.
16241         * doc/posix-functions/aio_suspend.texi: Likewise.
16242         * doc/posix-functions/aio_write.texi: Likewise.
16243         * doc/posix-functions/fgetpos.texi: Likewise.
16244         * doc/posix-functions/fopen.texi: Likewise.
16245         * doc/posix-functions/freopen.texi: Likewise.
16246         * doc/posix-functions/fsetpos.texi: Likewise.
16247         * doc/posix-functions/fstatvfs.texi: Likewise.
16248         * doc/posix-functions/ftruncate.texi: Likewise.
16249         * doc/posix-functions/ftw.texi: Likewise.
16250         * doc/posix-functions/getrlimit.texi: Likewise.
16251         * doc/posix-functions/glob.texi: Likewise.
16252         * doc/posix-functions/lio_listio.texi: Likewise.
16253         * doc/posix-functions/lockf.texi: Likewise.
16254         * doc/posix-functions/mkstemp.texi: Likewise.
16255         * doc/posix-functions/mmap.texi: Likewise.
16256         * doc/posix-functions/nftw.texi: Likewise.
16257         * doc/posix-functions/openat.texi: Likewise.
16258         * doc/posix-functions/opendir.texi: Likewise.
16259         * doc/posix-functions/posix_fadvise.texi: Likewise.
16260         * doc/posix-functions/posix_fallocate.texi: Likewise.
16261         * doc/posix-functions/pread.texi: Likewise.
16262         * doc/posix-functions/pwrite.texi: Likewise.
16263         * doc/posix-functions/readdir.texi: Likewise.
16264         * doc/posix-functions/readdir_r.texi: Likewise.
16265         * doc/posix-functions/rewinddir.texi: Likewise.
16266         * doc/posix-functions/scandir.texi: Likewise.
16267         * doc/posix-functions/seekdir.texi: Likewise.
16268         * doc/posix-functions/setrlimit.texi: Likewise.
16269         * doc/posix-functions/statvfs.texi: Likewise.
16270         * doc/posix-functions/telldir.texi: Likewise.
16271         * doc/posix-functions/tmpfile.texi: Likewise.
16272         * doc/posix-functions/truncate.texi: Likewise.
16273         * doc/glibc-functions/fallocate.texi: Likewise.
16274         * doc/glibc-functions/fstatfs.texi: Likewise.
16275         * doc/glibc-functions/fts_children.texi: Likewise.
16276         * doc/glibc-functions/fts_read.texi: Likewise.
16277         * doc/glibc-functions/getdirentries.texi: Likewise.
16278         * doc/glibc-functions/mkostemp.texi: Likewise.
16279         * doc/glibc-functions/mkostemps.texi: Likewise.
16280         * doc/glibc-functions/mkstemps.texi: Likewise.
16281         * doc/glibc-functions/preadv.texi: Likewise.
16282         * doc/glibc-functions/pwritev.texi: Likewise.
16283         * doc/glibc-functions/sendfile.texi: Likewise.
16284         * doc/glibc-functions/statfs.texi: Likewise.
16285
16286 2011-07-24  Bruno Haible  <bruno@clisp.org>
16287
16288         doc: Fix typo.
16289         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16290
16291 2011-07-24  Bruno Haible  <bruno@clisp.org>
16292
16293         doc: Mention fsusage.
16294         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16295
16296 2011-07-24  Bruno Haible  <bruno@clisp.org>
16297
16298         doc: Mention new glibc headers and functions.
16299         * doc/glibc-headers/gshadow.texi: New file.
16300         * doc/glibc-functions/endsgent.texi: New file.
16301         * doc/glibc-functions/fgetsgent.texi: New file.
16302         * doc/glibc-functions/fgetsgent_r.texi: New file.
16303         * doc/glibc-functions/getsgent.texi: New file.
16304         * doc/glibc-functions/getsgent_r.texi: New file.
16305         * doc/glibc-functions/getsgnam.texi: New file.
16306         * doc/glibc-functions/getsgnam_r.texi: New file.
16307         * doc/glibc-functions/putsgent.texi: New file.
16308         * doc/glibc-functions/setsgent.texi: New file.
16309         * doc/glibc-functions/sgetsgent.texi: New file.
16310         * doc/glibc-functions/sgetsgent_r.texi: New file.
16311         * doc/glibc-functions/malloc_info.texi: New file.
16312         * doc/glibc-functions/preadv.texi: New file.
16313         * doc/glibc-functions/pwritev.texi: New file.
16314         * doc/glibc-functions/register_printf_modifier.texi: New file.
16315         * doc/glibc-functions/register_printf_specifier.texi: New file.
16316         * doc/glibc-functions/register_printf_type.texi: New file.
16317         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16318         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16319         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16320         * doc/glibc-functions/pthread_getname_np.texi: New file.
16321         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16322         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16323         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16324         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16325         * doc/glibc-functions/pthread_setname_np.texi: New file.
16326         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16327         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16328         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16329         * doc/glibc-functions/qsort_r.texi: New file.
16330         * doc/glibc-functions/quick_exit.texi: New file.
16331         * doc/glibc-functions/syncfs.texi: New file.
16332         * doc/gnulib.texi: Include them.
16333         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16334         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16335         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16336         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16337         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16338         * doc/glibc-functions/execvpe.texi: Likewise.
16339
16340 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         ftell: don't include <unistd.h>
16343         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16344         guaranteed to define off_t, and the ftell module depends on the
16345         stdio module.
16346
16347         ftell: do not assume wraparound signed arithmetic
16348         * lib/ftell.c: Include <limits.h>.
16349         (ftell): Don't assume wraparound signed arithmetic.
16350
16351 2011-07-24  Bruno Haible  <bruno@clisp.org>
16352
16353         close: No longer depend on module 'fclose'.
16354         * modules/close (Depends-on): Remove fclose.
16355         * NEWS: Mention the change.
16356         Suggested by Sam Steingold <sds@gnu.org>.
16357
16358 2011-07-24  Bruno Haible  <bruno@clisp.org>
16359
16360         fsusage: Enable large volume support on AIX >= 5.2.
16361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16362         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16363         instead of STAT_STATVFS.
16364         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16365
16366         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16368         f_blocks field only on MacOS X.
16369
16370         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16372         * modules/fsusage (Depends-on): Add largefile.
16373
16374 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         * README: Modernize discussion of signed integers.
16377         Assuming overflow wraparound is no longer safe.
16378         Mention ones' complement and signed magnitude.
16379
16380 2011-07-22  Bruno Haible  <bruno@clisp.org>
16381
16382         select tests, pselect tests: Refactor.
16383         * tests/test-select.h: New file, extracted from tests/test-select.c.
16384         (select_fn): New type.
16385         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16386         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16387         test_pipe): Add my_select argument.
16388         (test_function): Renamed from main. Add my_select argument.
16389         * tests/test-select.c: Move most code to tests/test-select.h. Include
16390         test-select.h.
16391         * modules/select-tests (Files): Add tests/test-select.h.
16392         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16393         (my_select, main): New functions.
16394         * modules/pselect-tests (Files): Add tests/test-select.h,
16395         tests/macros.h, tests/signature.h.
16396         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16397         (configure.ac): Check for <sys/wait.h>.
16398
16399 2011-07-22  Bruno Haible  <bruno@clisp.org>
16400
16401         sys_select tests: Check the signature of FD_*.
16402         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16403         signature tests from here...
16404         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16405         here.
16406         * modules/sys_select-tests (Files): Add tests/signature.h.
16407
16408 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16409
16410         largefile: new module, replacing large-inode
16411         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16412         * MODULES.html.sh: Add largefile, remove large-inode.
16413         * modules/largefile, m4/largefile.m4: New files.
16414         * modules/large-inode, m4/large-inode.m4: Remove.
16415
16416         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16418         implementations that use only 32 bits to count blocks.
16419         On typical hosts with 1024-byte blocks, this fails with file
16420         systems as small as 4 TiB.  Problem reported by Herb Wartens
16421         <http://debbugs.gnu.org/9140> and this should also fix a similar
16422         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16423
16424         large-inode: New module
16425         * MODULES.html.sh: Add it.
16426         * modules/large-inode, m4/large-inode.m4: New files.
16427
16428         extensions: Enable extensions on MacOS X 10.5 and later.
16429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16430
16431 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16432
16433         file-has-acl: use acl_extended_file_nofollow if available
16434         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16435         (acl_extended_file): New macro.
16436         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16437         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16438
16439 2011-07-21  Bruno Haible  <bruno@clisp.org>
16440
16441         Declare system functions in a way that works with C++.
16442         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16443         declare fdopendir as extern "C".
16444         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16445         declare frexpl as extern "C".
16446         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16447         declare gai_strerror as extern "C".
16448         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16449         programs, declare gai_strerror as extern "C".
16450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16451         declare getlogin_r as extern "C".
16452         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16453         as extern "C".
16454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16455         declare ldexpl as extern "C".
16456         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16457         as extern "C".
16458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16459         program, declare getmntinfo as extern "C".
16460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16461         stpncpy as extern "C".
16462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16463         program, declare __xpg_strerror_r as extern "C".
16464         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16465         strndup as extern "C".
16466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16467         declare memset and bzero as extern "C".
16468         Reported by Sam Steingold <sds@gnu.org>.
16469
16470 2011-07-12  Jim Meyering  <meyering@redhat.com>
16471
16472         maint.mk: prohibit inclusion of "verify.h" without use
16473         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16474
16475 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16476
16477         timer-time: A new module to check for timer_settime()
16478         * m4/timer_time.m4: Check for the posix function.
16479         * modules/timer-time: Add the new module.
16480         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16481         Mention it.
16482
16483 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16484             Bruno Haible  <bruno@clisp.org>
16485
16486         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16488         not defined, assume POSIX threads and look for pthread_sigmask in
16489         $LIBS, without changing $CPPFLAGS.
16490
16491 2011-07-19  Bruno Haible  <bruno@clisp.org>
16492
16493         strstr: Update cross-compilation guess.
16494         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16495         CPUs, guess no, in view of glibc
16496         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16497         Suggested by Eric Blake. Reported by Reuben Thomas.
16498
16499 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16500
16501         getopt-gnu: suppress core dumps from detection code
16502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16503         to suppress core dumps that may well occur on glibc systems.
16504         * modules/getopt-gnu: Depend on nocrash.
16505
16506 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16507
16508         pthread_sigmask: ensure usleep is declared
16509         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16510         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16511
16512 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16513
16514         doc: Document NonStop portability issues.
16515         * doc/posix-functions/sigaction.texi (sigaction):
16516         * doc/posix-headers/signal.texi (signal.h):
16517         Document NonStop.  See Joachim Schmitz in
16518         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16519
16520 2011-07-15  Bruno Haible  <bruno@clisp.org>
16521
16522         ffsl, ffsll: Avoid unportable behaviour.
16523         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16524
16525 2011-07-15  Bruno Haible  <bruno@clisp.org>
16526
16527         ffs: More tests.
16528         * tests/test-ffs.c (NBITS): New macro.
16529         (main): Add more tests.
16530         * tests/test-ffsl.c (NBITS): New macro.
16531         (main): Add more tests.
16532         * tests/test-ffsll.c (NBITS): New macro.
16533         (main): Add more tests.
16534
16535 2011-07-15  Eric Blake  <eblake@redhat.com>
16536
16537         ffsl, ffsll: new modules
16538         * modules/ffsl: New file.
16539         * modules/ffsll: Likewise.
16540         * m4/ffsl.m4: Likewise.
16541         * m4/ffsll.m4: Likewise.
16542         * lib/ffsl.c: Likewise.
16543         * lib/ffsl.h: Likewise.
16544         * lib/ffsll.c: Likewise.
16545         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16546         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16547         * modules/string (Makefile.am): Substitute witnesses.
16548         * lib/strings.in.h (ffsl, ffsll): Declare.
16549         * modules/ffsl-tests: New test file.
16550         * modules/ffsll-tests: Likewise.
16551         * tests/test-ffsl.c: Likewise.
16552         * tests/test-ffsll.c: Likewise.
16553         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16554         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16555         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16556
16557         ffs: fix m4 prerequisite
16558         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16559
16560         ffs: avoid undefined behavior
16561         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16562         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16563         Reported by Bruno Haible.
16564
16565 2011-07-12  Bruno Haible  <bruno@clisp.org>
16566
16567         pthread_sigmask: Rely on module 'threadlib'.
16568         * modules/pthread_sigmask (Depends-on): Add threadlib.
16569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16570         is defined.
16571
16572 2011-07-12  Bruno Haible  <bruno@clisp.org>
16573
16574         regex: Depend on module 'strcase'.
16575         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16576
16577 2011-07-12  Jim Meyering  <meyering@redhat.com>
16578
16579         warn-on-use: fix typo in file name
16580         * modules/snippet/warn-on-use (Files): Correct file name:
16581         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16582
16583 2011-07-12  Bruno Haible  <bruno@clisp.org>
16584
16585         strings: Document module.
16586         * doc/posix-headers/strings.texi: Mention module 'strings'.
16587
16588 2011-07-12  Bruno Haible  <bruno@clisp.org>
16589
16590         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16591         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16592         (Files, Makefile.am): Update.
16593         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16594         * modules/stdlib (Depends-on): Update.
16595
16596 2011-07-12  Bruno Haible  <bruno@clisp.org>
16597
16598         * NEWS: Mention the changes.
16599
16600         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16601         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16602         (Files, Makefile.am): Update.
16603         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16604         * modules/arpa_inet (Depends-on): Update.
16605         * modules/ctype (Depends-on): Update.
16606         * modules/dirent (Depends-on): Update.
16607         * modules/fcntl-h (Depends-on): Update.
16608         * modules/glob (Depends-on): Update.
16609         * modules/iconv-h (Depends-on): Update.
16610         * modules/inttypes-incomplete (Depends-on): Update.
16611         * modules/langinfo (Depends-on): Update.
16612         * modules/locale (Depends-on): Update.
16613         * modules/math (Depends-on): Update.
16614         * modules/netdb (Depends-on): Update.
16615         * modules/poll-h (Depends-on): Update.
16616         * modules/pty (Depends-on): Update.
16617         * modules/search (Depends-on): Update.
16618         * modules/signal (Depends-on): Update.
16619         * modules/spawn (Depends-on): Update.
16620         * modules/stdio (Depends-on): Update.
16621         * modules/stdlib (Depends-on): Update.
16622         * modules/string (Depends-on): Update.
16623         * modules/strings (Depends-on): Update.
16624         * modules/sys_file (Depends-on): Update.
16625         * modules/sys_ioctl (Depends-on): Update.
16626         * modules/sys_select (Depends-on): Update.
16627         * modules/sys_socket (Depends-on): Update.
16628         * modules/sys_stat (Depends-on): Update.
16629         * modules/sys_time (Depends-on): Update.
16630         * modules/sys_times (Depends-on): Update.
16631         * modules/sys_utsname (Depends-on): Update.
16632         * modules/sys_wait (Depends-on): Update.
16633         * modules/termios (Depends-on): Update.
16634         * modules/time (Depends-on): Update.
16635         * modules/unistd (Depends-on): Update.
16636         * modules/wchar (Depends-on): Update.
16637         * modules/wctype-h (Depends-on): Update.
16638         * MODULES.html.sh (Support for building libraries and executables):
16639         Update.
16640
16641         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16642         * modules/snippet/unused-parameter: Renamed from
16643         modules/unused-parameter.
16644         (Files, Makefile.am): Update.
16645         * build-aux/snippet/unused-parameter.h: Renamed from
16646         build-aux/unused-parameter.h.
16647         * modules/selinux-h (Depends-on): Update.
16648         * modules/unistr/base (Depends-on): Update.
16649         * MODULES.html.sh (Core language properties): Update.
16650
16651         Rename module 'link-warning' to 'snippet/link-warning'.
16652         * modules/snippet/link-warning: Renamed from modules/link-warning.
16653         (Files, Makefile.am): Update.
16654         * build-aux/snippet/link-warning.h: Renamed from
16655         build-aux/link-warning.h.
16656         * MODULES.html.sh (Support for building libraries and executables):
16657         Update.
16658
16659         Rename module 'c++defs' to 'snippet/c++defs'.
16660         * modules/snippet/c++defs: Renamed from modules/c++defs.
16661         (Files, Makefile.am): Update.
16662         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16663         * modules/arpa_inet (Depends-on): Update.
16664         * modules/ctype (Depends-on): Update.
16665         * modules/dirent (Depends-on): Update.
16666         * modules/fcntl-h (Depends-on): Update.
16667         * modules/glob (Depends-on): Update.
16668         * modules/iconv-h (Depends-on): Update.
16669         * modules/langinfo (Depends-on): Update.
16670         * modules/locale (Depends-on): Update.
16671         * modules/math (Depends-on): Update.
16672         * modules/netdb (Depends-on): Update.
16673         * modules/poll-h (Depends-on): Update.
16674         * modules/pty (Depends-on): Update.
16675         * modules/search (Depends-on): Update.
16676         * modules/signal (Depends-on): Update.
16677         * modules/spawn (Depends-on): Update.
16678         * modules/stdio (Depends-on): Update.
16679         * modules/stdlib (Depends-on): Update.
16680         * modules/string (Depends-on): Update.
16681         * modules/strings (Depends-on): Update.
16682         * modules/sys_ioctl (Depends-on): Update.
16683         * modules/sys_select (Depends-on): Update.
16684         * modules/sys_socket (Depends-on): Update.
16685         * modules/sys_stat (Depends-on): Update.
16686         * modules/sys_time (Depends-on): Update.
16687         * modules/sys_wait (Depends-on): Update.
16688         * modules/termios (Depends-on): Update.
16689         * modules/time (Depends-on): Update.
16690         * modules/unistd (Depends-on): Update.
16691         * modules/wchar (Depends-on): Update.
16692         * modules/wctype-h (Depends-on): Update.
16693
16694         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16695         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16696         (Files, Makefile.am): Update.
16697         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16698         * modules/argv-iter (Depends-on): Update.
16699         * modules/arpa_inet (Depends-on): Update.
16700         * modules/dirent (Depends-on): Update.
16701         * modules/fcntl-h (Depends-on): Update.
16702         * modules/fnmatch (Depends-on): Update.
16703         * modules/getopt-posix (Depends-on): Update.
16704         * modules/glob (Depends-on): Update.
16705         * modules/iconv-h (Depends-on): Update.
16706         * modules/inttypes-incomplete (Depends-on): Update.
16707         * modules/locale (Depends-on): Update.
16708         * modules/math (Depends-on): Update.
16709         * modules/netdb (Depends-on): Update.
16710         * modules/search (Depends-on): Update.
16711         * modules/signal (Depends-on): Update.
16712         * modules/spawn (Depends-on): Update.
16713         * modules/stdio (Depends-on): Update.
16714         * modules/stdlib (Depends-on): Update.
16715         * modules/string (Depends-on): Update.
16716         * modules/strings (Depends-on): Update.
16717         * modules/sys_socket (Depends-on): Update.
16718         * modules/sys_stat (Depends-on): Update.
16719         * modules/sys_time (Depends-on): Update.
16720         * modules/sys_times (Depends-on): Update.
16721         * modules/sys_utsname (Depends-on): Update.
16722         * modules/time (Depends-on): Update.
16723         * modules/unistd (Depends-on): Update.
16724         * modules/wchar (Depends-on): Update.
16725         * MODULES.html.sh (Support for building libraries and executables):
16726         Update.
16727
16728 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         Improvements on _Noreturn and related modules.
16731
16732         modules/_Exit-tests: test _Noreturn too
16733         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16734         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16735         (main): Use them.
16736
16737         stdnoreturn, stdnoreturn-tests: remove modules
16738         They're not needed here and a bit premature for use elsewhere.  See
16739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16740         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16741         * tests/test-stdnoreturn.c: Remove files.
16742         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16743         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16744         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16745         and using noreturn.
16746         * modules/openat, modules/sigpipe-die, modules/xalloc:
16747         * modules/xmemdup0, modules/xstrtol:
16748         Remove dependency on stdnoreturn.
16749
16750         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16751         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16752         Reparenthesize to avoid GCC warning.
16753         Support Microsoft's syntax.
16754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16755
16756         _Noreturn-tests: remove module
16757         * modules/_Noreturn-tests: Remove.
16758         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16759         * tests/test-_Noreturn.c: Remove.
16760         * tests/test-stdnoreturn.c: Merge from the old
16761         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16762
16763 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16764
16765         _Noreturn, stdnoreturn, and related modules.
16766
16767         * top/maint.mk: Adjust to new noreturn support.
16768         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16769         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16770
16771         xalloc: use stdnoreturn.h
16772         * lib/xalloc.h: Include <stdnoreturn.h>.
16773         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16774         * modules/xalloc (Depends-on): Add stdnoreturn.
16775
16776         xstrtol: use stdnoreturn.h
16777         * lib/xstrtol.h: Include <stdnoreturn.h>.
16778         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16779         * modules/xstrtol (Depends-on): Add stdnoreturn.
16780
16781         xmemdup0: use stdnoreturn.h
16782         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16783         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16784         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16785
16786         sigpipe-die: use stdnoreturn.h
16787         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16788         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16789         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16790
16791         openat: use stdnoreturn.h
16792         * lib/openat.h: Include <stdnoreturn.h>.
16793         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16794         * modules/openat (Depends-on): Add stdnoreturn.
16795
16796         * lib/openat-die.c (openat_save_fail): Modernize comment.
16797
16798         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16799
16800         * lib/glthread/thread.h: Modernize comment.
16801
16802         obstack: use _Noreturn
16803         * lib/obstack.c (__attribute__): Remove macro.
16804         (print_and_abort): Use _Noreturn.
16805
16806         c-stack: use _Noreturn
16807         * lib/c-stack.c (die, overflow_handler, segv_handler):
16808         Use _Noreturn rather than __attribute__((noreturn)).
16809
16810         argmatch-tests, exclude_tests: use _Noreturn
16811         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16812         Remove.
16813         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16814
16815         stdlib: use _Noreturn
16816         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16817         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16818         * modules/stdlib (Depends-on): Add _Noreturn.
16819         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16820
16821         stdnoreturn-tests: new module
16822         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16823
16824         stdnoreturn: new module
16825         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16826         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16827
16828         _Noreturn-tests: new module
16829         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16830
16831         _Noreturn: new module
16832         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16833         New section, mentioning it.
16834         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16835
16836         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16837
16838 2011-07-11  Eric Blake  <eblake@redhat.com>
16839
16840         ffs: new module
16841         * modules/ffs: New file.
16842         * m4/ffs.m4: Likewise.
16843         * lib/ffs.c: Likewise.
16844         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16845         * modules/strings (Makefile.am): Substitute witness.
16846         (Depends-on): Add c++defs.
16847         * lib/strings.in.h (ffs): Declare.
16848         * modules/ffs-tests: New test file.
16849         * tests/test-ffs.c: Test new module.
16850         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16851         * doc/posix-functions/ffs.texi (ffs): Likewise.
16852
16853         regex: avoid compiler warning
16854         * lib/regex.c (includes): Include <strings.h>, for use of
16855         strcasecmp in regcomp.c.
16856         Reported by Joachim Schmitz.
16857
16858 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16859
16860         stdint: respect system's intmax_t if INTMAX_MAX
16861         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16862         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16863         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16864         long but int64_t is long long, and where we will clash with the
16865         system intmax_t if we override it.  See
16866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16867         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16868         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16869         similarly for UINTMAX_C.
16870
16871 2011-07-08  Bruno Haible  <bruno@clisp.org>
16872
16873         pthread_sigmask tests: Avoid a compiler warning.
16874         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16875         non-zero.
16876
16877         sigprocmask tests: A better way to avoid a compiler warning.
16878         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16879         (main): Complain if system() returns non-zero.
16880         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16881
16882 2011-07-08  Bruno Haible  <bruno@clisp.org>
16883
16884         pthread_sigmask: Work around IRIX bug.
16885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16886         bug.
16887         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16888         there may be unblocked pending signals.
16889         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16890
16891 2011-07-08  Bruno Haible  <bruno@clisp.org>
16892
16893         pthread_sigmask: Work around Cygwin bug.
16894         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16895         bug.
16896         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16897         the system's pthread_sigmask function.
16898         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16899
16900 2011-07-08  Bruno Haible  <bruno@clisp.org>
16901
16902         pthread_sigmask: Work around bug in single-threaded implementation.
16903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16904         FreeBSD, HP-UX, Solaris bug.
16905         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16906         * lib/pthread_sigmask.c: Include <stddef.h>.
16907         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16908         the system's pthread_sigmask function.
16909         * modules/pthread_sigmask (configure.ac): Invoke
16910         gl_PREREQ_PTHREAD_SIGMASK.
16911         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16912         HP-UX, Solaris.
16913
16914 2011-07-08  Eric Blake  <eblake@redhat.com>
16915
16916         test-sigprocmask: avoid compiler warning
16917         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16918         * tests/test-sigprocmask.c (main): Use it to silence warning.
16919         Reported by Jim Meyering.
16920
16921         test-snprintf: avoid compiler warning
16922         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16923         * tests/test-vsnprintf.c (main): Likewise.
16924         Reported by Jim Meyering.
16925
16926 2011-07-08  Bruno Haible  <bruno@clisp.org>
16927
16928         Tests for module 'pthread_sigmask'.
16929         * modules/pthread_sigmask-tests: New file.
16930         * tests/test-pthread_sigmask1.c: New file, based on
16931         tests/test-sigprocmask.c.
16932         * tests/test-pthread_sigmask2.c: New file.
16933
16934 2011-07-08  Jim Meyering  <meyering@redhat.com>
16935
16936         test-getopt.h: avoid warning about an unused variable
16937         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16938
16939 2011-07-07  Jim Meyering  <meyering@redhat.com>
16940
16941         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16942         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16943         now that it no longer contains leading TABs.
16944         Remove unused "url=FIXME" statement.
16945
16946 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16947
16948         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16950         When gl_THREADLIB is not in use, assume that the POSIX sematics
16951         are desired.  This is better for Emacs, which uses POSIX semantics
16952         on GNUish and/or POSIXish platforms, and does not use threads at
16953         all otherwise.
16954
16955         pthread_sigmask: fix typo when testing for libraries
16956         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16957         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16958
16959 2011-07-08  Eric Blake  <eblake@redhat.com>
16960
16961         fts: introduce FTS_NOATIME
16962         * lib/fts_.h (FTS_NOATIME): New bit flag.
16963         (FTS_OPTIONMASK): Adjust.
16964         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16965         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16966
16967 2011-07-08  Bruno Haible  <bruno@clisp.org>
16968
16969         Tests for module 'thread'.
16970         * modules/thread-tests: New file.
16971         * tests/test-thread_self.c: New file.
16972         * tests/test-thread_create.cc: New file.
16973
16974 2011-07-08  Bruno Haible  <bruno@clisp.org>
16975
16976         thread: Avoid gcc warnings when using gl_thread_self().
16977         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16978         'void *'.
16979         (gl_thread_self_pointer): Update.
16980
16981 2011-07-07  Bruno Haible  <bruno@clisp.org>
16982
16983         signal-c++-tests: Check declaration of pthread_sigmask.
16984         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16985         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16986         $(LIB_PTHREAD_SIGMASK).
16987
16988 2011-07-07  Bruno Haible  <bruno@clisp.org>
16989
16990         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16991         * lib/signal.in.h (pthread_sigmask): Override if
16992         REPLACE_PTHREAD_SIGMASK is 1.
16993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16994         REPLACE_PTHREAD_SIGMASK.
16995         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16996         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16997         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16998         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16999         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17000
17001 2011-07-07  Bruno Haible  <bruno@clisp.org>
17002
17003         pthread_sigmask: Ensure declaration in <signal.h>.
17004         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17005         include <pthread.h>.
17006         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17007         problem.
17008
17009 2011-07-07  Bruno Haible  <bruno@clisp.org>
17010
17011         pthread_sigmask: Document the module.
17012         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17013
17014 2011-07-07  Bruno Haible  <bruno@clisp.org>
17015
17016         pthread_sigmask: Follow gnulib conventions.
17017         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17018         gl_PTHREAD_SIGMASK.
17019         * modules/pthread_sigmask (configure.ac): Update.
17020
17021 2011-07-07  Bruno Haible  <bruno@clisp.org>
17022
17023         pthread_sigmask: Make declaration C++ safe.
17024         * lib/signal.in.h: In two special conditions, just do an #include_next.
17025         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17026         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17027         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17028         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17029         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17030         not REPLACE_PTHREAD_MASK.
17031         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17032         not REPLACE_PTHREAD_MASK.
17033         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17034
17035 2011-07-07  Bruno Haible  <bruno@clisp.org>
17036
17037         pthread_sigmask: Fix return value.
17038         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17039         * lib/pthread_sigmask.c: New file.
17040         * modules/pthread_sigmask (Files): Add it.
17041         (configure.ac): Invoke AC_LIBOBJ.
17042
17043 2011-07-07  Eric Blake  <eblake@redhat.com>
17044
17045         getopt: more portable argv creation
17046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17047         const, use char arrays rather than strings.
17048         Suggested by Paul Eggert.
17049
17050 2011-07-07  Bruno Haible  <bruno@clisp.org>
17051
17052         Tests for module 'sigprocmask'.
17053         * modules/sigprocmask-tests: New file.
17054         * tests/test-sigprocmask.c: New file.
17055
17056 2011-07-07  Bruno Haible  <bruno@clisp.org>
17057
17058         float tests: Tweak.
17059         * tests/test-float.c (main): Tweak skip message.
17060
17061 2011-07-07  Eric Blake  <eblake@redhat.com>
17062
17063         getopt: avoid compiler warning during configure
17064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17065         assigning string literals to non-const pointer.
17066
17067         getopt-gnu: avoid crash in glibc getopt
17068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17069         * tests/test-getopt.h (test_getopt): Enhance test.
17070         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17071         * doc/posix-functions/getopt.texi (getopt): Document it.
17072         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17073         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17074         Likewise.
17075
17076 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17077
17078         getopt: handle W; without long options in getopt [BZ #12922]
17079         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17080         but no long options are defined, just return 'W'.
17081
17082 2011-07-07  Bruno Haible  <bruno@clisp.org>
17083
17084         Avoid literal tabs.
17085         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17086         variable containing a tab instead of a literal tab.
17087         Reported by Jim Meyering.
17088
17089 2011-07-07  Bruno Haible  <bruno@clisp.org>
17090
17091         Comments.
17092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17093
17094 2011-07-06  Bruno Haible  <bruno@clisp.org>
17095
17096         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17097         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17098         <winsock2.h>.
17099         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17100         lib/sys_socket.in.h.
17101         (close, gethostname): Hide declarations from <winsock2.h>.
17102         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17103         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17104         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17105         (select): Don't override if gnulib's <sys/select.h> was already
17106         included.
17107         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17108         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17109         setsockopt, shutdown, select): Tweak indentation.
17110
17111 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17112
17113         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17114         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17115         in an application that does not use the sys_select module.
17116
17117 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17118
17119         poll: do not return 0 on timeout=-1
17120         * lib/poll.c: Loop with yield if no events occurred.
17121
17122 2011-07-06  Eric Blake  <eblake@redhat.com>
17123
17124         pthread_sigmask: always replace when not using pthread
17125         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17126         replacement when using some threading other than pthread.  Fix
17127         logic bug.
17128
17129 2011-07-06  Bruno Haible  <bruno@clisp.org>
17130
17131         Comments.
17132         * m4/printf.m4: Update comments about mingw.
17133
17134 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         sys_select: define sigset_t more portably
17137         * lib/sys_select.in.h: Always include <sys/types.h>, since
17138         we now need sigset_t and mingw defines it there.
17139         Include <signal.h> before split inclusion guard, to avoid
17140         mishaps on Solaris, whose <signal.h> eventually includes us.
17141         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17142         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17143         which come from ...
17144         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17145         gl_CHECK_TYPE_SIGSET_T.
17146         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17147         does the real work.
17148         * modules/sys_select (Depends-on): Add 'signal'.
17149
17150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17151         Suggested by Bruno Haible.
17152
17153         pselect: Use pthread_sigmask, not sigprocmask.
17154         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17155         multithreaded apps better than sigprocmask does.
17156         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17157         sigprocmask directly.
17158
17159 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17160
17161         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17162         Don't #undef,  since we don't need any underlying pselect.
17163         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17164         (Depends-on): Add select.
17165         (Link): Add $(LIBSOCKET).
17166         These changes suggested by Bruno Haible.
17167
17168         pselect: document better
17169         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17170         * doc/posix-functions/pselect.texi (pselect): Document new module.
17171
17172         pthread_sigmask: new module
17173         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17174         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17175         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17176         This is done only as a macro; I don't know how well that'll
17177         work for C++.  Move <sys/types.h> include before the include_next,
17178         to avoid mishap on Solaris.
17179         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17180         * modules/signal (Makefile.am): Substitute the check's results.
17181         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17182
17183         test-pselect: new module
17184         * modules/pselect-tests, tests/test-pselect.c: New files.
17185         * tests/test-select.c, tests/test-sys_select-c++.cc:
17186         If TEST_PSELECT is defined, test pselect instead of testing select.
17187
17188         * tests/test-sys_select.c (sigset_t): Test for it, too.
17189         Suggested by Bruno Haible.
17190
17191 2011-07-05  Eric Blake  <eblake@redhat.com>
17192
17193         snprintf: guarantee %1$d, for libintl
17194         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17195         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17196         * doc/posix-functions/snprintf.texi (snprintf): Update.
17197         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17198         * tests/test-snprintf.c (main): Enhance test.
17199         * tests/test-vsnprintf.c (main): Likewise.
17200
17201 2011-07-05  Jim Meyering  <meyering@redhat.com>
17202
17203         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17204         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17205         per Bruno's request, to accommodate this idiom (no space after "#")
17206         even when the function is inside an #if block:
17207         char *
17208         gets (char *s)
17209         #undef gets
17210         {
17211           ...
17212         }
17213
17214 2011-07-04  Jim Meyering  <meyering@redhat.com>
17215
17216         maint: indent with spaces, not TABs, and add a rule to check this
17217         * tests/test-userspec.c: Indent with spaces, not TABs.
17218         * tests/test-argp.c: Likewise.
17219         * tests/test-c-stack2.sh: Likewise.
17220         * tests/test-parse-duration.sh: Likewise
17221         * m4/strtod.m4: Likewise.
17222         * m4/alloca.m4: Likewise.
17223         * m4/pselect.m4: Likewise.
17224         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17225
17226 2011-07-03  Jim Meyering  <meyering@redhat.com>
17227
17228         maint.mk: correct omissions in prohibit_argmatch_without_use check
17229         This rule would mistakenly report that argmatch.h is included without
17230         use even when both the argmatch and invalid_arg macro were used.
17231         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17232         of argmatch and invalid_arg.
17233
17234 2011-07-03  Bruno Haible  <bruno@clisp.org>
17235
17236         Comments about EINTR.
17237         * lib/safe-read.h: Explain the purpose of this module.
17238         * lib/safe-write.h: Likewise.
17239         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17240         module.
17241         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17242         module.
17243         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17244
17245 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17246
17247         xnanosleep: Rewrite to use new dtotimespec module.
17248         It has the conversion code that used to be in xnanosleep.
17249         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17250         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17251         (TIME_T_MAX): Remove.
17252         (xnanosleep): Rewrite in terms of dtotimespec.
17253         * modules/xnanosleep (Depends-on): Add dtotimespec.
17254         Remove intprops, stdbool.
17255
17256         timespec-add, timespec-sub: new modules
17257         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17258         * lib/timespec-add.c, lib/timespec-sub.c:
17259         * modules/timespec-add, modules/timespec-sub: New files.
17260
17261         dtotimespec: new module
17262         * lib/timespec.h (dtotimespec): New decl.
17263         * lib/dtotimespec.c, modules/dtotimespec: New files.
17264
17265         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17266
17267         pselect: new module
17268         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17269         (pselect): New decls.
17270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17271         since the standard pselect decl uses 'restrict'.
17272         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17273         HAVE_PSELECT, REPLACE_PSELECT.
17274         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17275         HAVE_PSELECT, REPLACE_PSELECT.
17276         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17277
17278         sys_select: don't depend on sys_socket
17279         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17281         This fix works on GNU and GNU-like platforms, but has not been tested
17282         on native Windows.
17283         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17285         gl_HEADER_SYS_SOCKET.
17286         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17287         gl_PREREQ_SYS_H_WINSOCK2.
17288
17289 2011-06-29  Eric Blake  <eblake@redhat.com>
17290
17291         pipe2: fix C89 compile problem
17292         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17293         Reported by Bruno Haible.
17294
17295         pipe, pipe2: don't corrupt fd on error
17296         * lib/pipe.c (pipe): Leave fd unchanged on error.
17297         * lib/pipe2.c (pipe2): Likewise.
17298         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17299         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17300
17301 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17302
17303         mmap-anon: do not use regular expressions inadvertently
17304         * m4/mmap-anon.m4: Remove trailing period from strings sought
17305         in the output.
17306
17307 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17308
17309         nanosleep: fix integer overflow problem
17310         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17311         arithmetic wraps around on overflow.
17312
17313         nanosleep: simplify carrying
17314         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17315         first call to the underyling nanosleep, not for the last one.
17316         This doesn't fix any bugs, but it simplifies the computation of
17317         the remaining delay.  Found while auditing integer overflow issues.
17318
17319         dup2: remove test for existence of fcntl
17320         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17321         "#if HAVE_FCNTL", in the configure-time test program.
17322         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17323         and therefore speeds up "configure" a bit.  Found while
17324         adding the dup2 module to Emacs.
17325
17326 2011-06-24  Eric Blake  <eblake@redhat.com>
17327
17328         maint.mk: enhance useless header checks
17329         * top/maint.mk (_sc_header_without_use): Check both include
17330         styles.
17331         (sc_prohibit_assert_without_use)
17332         (sc_prohibit_close_stream_without_use)
17333         (sc_prohibit_getopt_without_use)
17334         (sc_prohibit_quotearg_without_use)
17335         (sc_prohibit_quote_without_use)
17336         (sc_prohibit_long_options_without_use)
17337         (sc_prohibit_inttostr_without_use)
17338         (sc_prohibit_ignore_value_without_use)
17339         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17340         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17341         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17342         (sc_prohibit_hash_pjw_without_use)
17343         (sc_prohibit_safe_read_without_use)
17344         (sc_prohibit_argmatch_without_use)
17345         (sc_prohibit_canonicalize_without_use)
17346         (sc_prohibit_root_dev_ino_without_use)
17347         (sc_prohibit_openat_without_use)
17348         (sc_prohibit_c_ctype_without_use)
17349         (sc_prohibit_signal_without_use)
17350         (sc_prohibit_stdio--_without_use)
17351         (sc_prohibit_stdio-safer_without_use)
17352         (sc_prohibit_strings_without_use)
17353         (sc_prohibit_intprops_without_use)
17354         (sc_prohibit_stddef_without_use)
17355         (sc_prohibit_xfreopen_without_use): Update clients.
17356
17357 2011-06-24  Jim Meyering  <meyering@redhat.com>
17358
17359         syntax-check: keep one maint.mk rule in sync with its header
17360         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17361         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17362         I prefer to avoid temporary files here, so use <(...), but that
17363         is not supported by /bin/sh, so...
17364         (SHELL): Define to /bin/bash.
17365
17366 2011-06-24  Eric Blake  <eblake@redhat.com>
17367
17368         maint.mk: update sc_prohibit_intprops_without_use
17369         * top/maint.mk (_intprops_names): Match recent changes.
17370
17371 2011-06-24  Bruno Haible  <bruno@clisp.org>
17372
17373         strerror-override: No-op tweak.
17374         * lib/strerror-override.h (strerror_override): Reorder conditions,
17375         for consistency with lib/strerror-override.c.
17376
17377 2011-06-23  Eric Blake  <eblake@redhat.com>
17378
17379         maint.mk: test further PATH_MAX issues
17380         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17381         (sc_prohibit_path_max_allocation): ...and also test alloca.
17382         Suggested by Jim Meyering.
17383
17384 2011-06-22  Eric Blake  <eblake@redhat.com>
17385
17386         maint.mk: add syntax-check to avoid char[PATH_MAX]
17387         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17388
17389         stat: be robust to PATH_MAX definition
17390         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17391         * modules/stat (Depends-on): Add verify.
17392
17393         link: work around IRIX bug
17394         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17395         * lib/link.c (rpl_link): Work around it.
17396         * tests/test-link.h (test_link): Enhance test.
17397         * doc/posix-functions/link.texi (link): Document the bug.
17398
17399         getopt: silence clang warning
17400         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17401         dereference.
17402         Reported by Gustavo Martin Domato.
17403
17404 2011-06-22  Jim Meyering  <meyering@redhat.com>
17405
17406         bootstrap: do not insert a blank line into each .gitignore file
17407         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17408
17409 2011-06-21  Eric Blake  <eblake@redhat.com>
17410
17411         perror: test for output mismatch
17412         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17413         perror on IRIX.
17414
17415         strerror_r: fix OpenBSD behavior on out-of-range
17416         * lib/strerror_r.c (strerror_r): Always use maximal string.
17417         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17418
17419         strerror_r: fix OpenBSD behavior on 0
17420         * lib/strerror-override.c (strerror_override): Also override 0
17421         when needed.
17422         * lib/strerror-override.h (strerror_override): Likewise.
17423         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17424         earlier.
17425         * lib/strerror_r.c (strerror_r): Likewise.
17426         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17427         behavior...
17428         (gl_FUNC_STRERROR_0): ...into new macro.
17429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17430         is overridden.
17431         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17432         * modules/strerror-override (Files): Add strerror.m4.
17433         (configure.ac): Also provide override for 0 when needed.
17434         * doc/posix-functions/strerror.texi (strerror): Document this.
17435         * doc/posix-functions/perror.texi (perror): Likewise.
17436
17437         perror: adjust array size
17438         * modules/perror (Depends-on): Add strerror-override.
17439         * lib/perror.c (perror): Use it to avoid magic number.
17440
17441         strerror-override: reduce size
17442         * lib/strerror-override.c (strerror_override): Use fewer lines.
17443
17444 2011-06-20  Bruno Haible  <bruno@clisp.org>
17445
17446         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17447         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17448
17449 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         alloca: port to compilers that can optimize like GCC 4.6.0
17452         * lib/alloca.c (find_stack_direction): New signature, taken from
17453         Autoconf git.  This works with GCC 4.6.0.  This code should never
17454         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17455         be used with other compilers that optimize as well as GCC 4.6.0 does.
17456         (alloca): Adjust to new signature.
17457         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17458         New macro, which patches Autoconf in a similar way.
17459
17460         c-stack: stop worrying about stack direction
17461         * lib/c-stack.c (find_stack_direction): Remove.
17462         (segv_handler): Don't worry about stack direction growth, as it's
17463         too much of a pain to configure this correctly, given how compilers
17464         are optimizing-away our stack-growth detection code.  Instead, assume
17465         that any access to just before or just after the stack is OK.
17466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17467         Don't require AC_FUNC_ALLOCA; no longer needed.
17468
17469 2011-06-20  Eric Blake  <eblake@redhat.com>
17470
17471         test-stat: don't allocate PATH_MAX bytes
17472         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17473         PATH_MAX-sized buffer.
17474         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17475         * modules/stat-tests (Depends-on): Likewise.
17476         * tests/test-fstatat.c (includes): Drop pathmax.h.
17477         * tests/test-stat.c (includes): Likewise.
17478         Reported by Bruno Haible.
17479
17480 2011-06-20  Bruno Haible  <bruno@clisp.org>
17481
17482         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17483         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17484         * lib/float.c: New file.
17485         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17486         REPLACE_FLOAT_LDBL.
17487         * modules/float (Files): Add lib/float.c.
17488         (configure.ac): Invoke AC_LIBOBJ.
17489         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17490
17491 2011-06-20  Bruno Haible  <bruno@clisp.org>
17492
17493         Tests for module 'float'.
17494         * modules/float-tests: New file.
17495         * tests/test-float.c: New file.
17496
17497 2011-06-19  Bruno Haible  <bruno@clisp.org>
17498
17499         isinf: Coding style.
17500         * lib/isinf.c: Use GNU coding style.
17501
17502 2011-06-19  Bruno Haible  <bruno@clisp.org>
17503
17504         linkat test: Avoid test failure on AIX 7.1.
17505         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17506         * tests/test-link.h (test_link): Likewise.
17507
17508 2011-06-19  Bruno Haible  <bruno@clisp.org>
17509
17510         pread test: Avoid test failure on OpenBSD 4.9.
17511         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17512
17513 2011-06-19  Bruno Haible  <bruno@clisp.org>
17514
17515         sprintf-posix: Fix test failure on AIX 7.1.
17516         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17517         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17518         on AIX.
17519         * doc/posix-functions/fprintf.texi: Likewise.
17520         * doc/posix-functions/printf.texi: Likewise.
17521         * doc/posix-functions/snprintf.texi: Likewise.
17522         * doc/posix-functions/sprintf.texi: Likewise.
17523         * doc/posix-functions/vdprintf.texi: Likewise.
17524         * doc/posix-functions/vfprintf.texi: Likewise.
17525         * doc/posix-functions/vprintf.texi: Likewise.
17526         * doc/posix-functions/vsnprintf.texi: Likewise.
17527         * doc/posix-functions/vsprintf.texi: Likewise.
17528
17529 2011-06-19  Bruno Haible  <bruno@clisp.org>
17530
17531         roundl-ieee: Fix test failure on AIX 7.1.
17532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17533         * doc/posix-functions/roundl.texi: Mention problem with negative
17534         arguments.
17535
17536 2011-06-19  Bruno Haible  <bruno@clisp.org>
17537
17538         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17539         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17540         * doc/posix-functions/round.texi: Mention problem with negative
17541         arguments.
17542         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17543
17544 2011-06-19  Bruno Haible  <bruno@clisp.org>
17545
17546         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17548         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17549         * doc/posix-functions/roundf.texi: Mention problem with negative
17550         arguments.
17551         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17552
17553 2011-06-19  Bruno Haible  <bruno@clisp.org>
17554
17555         ceilf-ieee: Work around bug on MacOS X 10.5.
17556         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17557
17558         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17559         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17560         IEEE compliant, avoid compiler optimizations.
17561         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17562         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17563         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17564         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17565         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17566         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17568         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17569         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17570         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17571
17572 2011-06-19  Bruno Haible  <bruno@clisp.org>
17573
17574         ceilf-ieee: Work around bug on AIX 7.1.
17575         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17576         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17577
17578 2011-06-19  Bruno Haible  <bruno@clisp.org>
17579
17580         ceil-ieee: Work around bug on AIX 7.1.
17581         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17582         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17583
17584 2011-06-18  Bruno Haible  <bruno@clisp.org>
17585
17586         fsync test: Avoid test failure on MacOS X and AIX.
17587         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17588         EINVAL.
17589
17590 2011-06-18  Bruno Haible  <bruno@clisp.org>
17591
17592         openat, fdopendir tests: Fix link errors.
17593         * modules/openat-tests (Depends-on): Add progname.
17594         * modules/fdopendir-tests (Depends-on): Likewise.
17595         * tests/test-fchownat.c: Include progname.h.
17596         (main): Call set_program_name.
17597         * tests/test-fstatat.c: Include progname.h.
17598         (main): Call set_program_name.
17599         * tests/test-mkdirat.c: Include progname.h.
17600         (main): Call set_program_name.
17601         * tests/test-openat.c: Include progname.h.
17602         (main): Call set_program_name.
17603         * tests/test-unlinkat.c: Include progname.h.
17604         (main): Call set_program_name.
17605         * tests/test-fdopendir.c: Include progname.h.
17606         (main): Call set_program_name.
17607
17608 2011-06-18  Bruno Haible  <bruno@clisp.org>
17609
17610         Doc update.
17611         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17612         HP-UX.
17613         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17614
17615 2011-06-18  Bruno Haible  <bruno@clisp.org>
17616
17617         getcwd tests: Avoid compilation error on HP-UX 11.31.
17618         * modules/getcwd-tests (Depends-on): Add pathmax.
17619         * tests/test-getcwd.c: Include pathmax.h.
17620
17621 2011-06-18  Bruno Haible  <bruno@clisp.org>
17622
17623         isfinite, isinf: Fix link error on AIX 6 and 7.
17624         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17625         needed, also test the macro with a 'float' argument.
17626         * m4/isinf.m4 (gl_ISINF): Likewise.
17627
17628 2011-06-18  Bruno Haible  <bruno@clisp.org>
17629
17630         getloadavg: Don't clobber LIBS. Regression from previous commit.
17631         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17632         AC_CHECK_LIB from here...
17633         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17634         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17635         gl_func_getloadavg_done.
17636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17637
17638 2011-06-18  Bruno Haible  <bruno@clisp.org>
17639
17640         clean-temp: Improve documentation.
17641         * lib/clean-temp.h: Explain better how to use this module.
17642         Reported by John Darrington <john@darrington.wattle.id.au>.
17643
17644 2011-06-17  Bruno Haible  <bruno@clisp.org>
17645
17646         pread, pwrite: Avoid cc warning on AIX.
17647         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17648         (pwrite): Likewise.
17649
17650 2011-06-17  Bruno Haible  <bruno@clisp.org>
17651
17652         spawn-pipe tests: Fix link error.
17653         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17655
17656 2011-06-17  Bruno Haible  <bruno@clisp.org>
17657
17658         Tests: Remove unnecessary dependency.
17659         * modules/canonicalize-tests (Depends-on): Remove progname.
17660         * modules/chown-tests (Depends-on): Likewise.
17661         * modules/dirname-tests (Depends-on): Likewise.
17662         * modules/fdopendir-tests (Depends-on): Likewise.
17663         * modules/fdutimensat-tests (Depends-on): Likewise.
17664         * modules/hash-tests (Depends-on): Likewise.
17665         * modules/lchown-tests (Depends-on): Likewise.
17666         * modules/linkat-tests (Depends-on): Likewise.
17667         * modules/renameat-tests (Depends-on): Likewise.
17668         * modules/spawn-pipe-tests (Depends-on): Likewise.
17669         * modules/utimensat-tests (Depends-on): Likewise.
17670
17671 2011-06-17  Bruno Haible  <bruno@clisp.org>
17672
17673         spawn-pipe tests: Fix link error.
17674         * tests/test-spawn-pipe-child.c: Undefine fflush.
17675
17676 2011-06-17  Bruno Haible  <bruno@clisp.org>
17677
17678         Fix tests link errors.
17679         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17680         * modules/chown-tests (Makefile.am): Don't link test-chown with
17681         LIBINTL.
17682         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17683         LIBINTL.
17684         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17685         LIBINTL.
17686         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17687         LIBINTL.
17688
17689 2011-06-16  Bruno Haible  <bruno@clisp.org>
17690
17691         crypto/gc-sha1: Fix recent regression.
17692         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17693         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17694
17695         crypto/gc-md5: Fix recent regression.
17696         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17697
17698         crypto/gc-md4: Fix recent regression.
17699         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17700         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17701
17702         crypto/gc-arctwo: Fix recent regression.
17703         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17704         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17705
17706         crypto/gc-rijndael: Fix recent regression.
17707         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17708         (configure.ac): Invoke AC_LIBOBJ here.
17709         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17711
17712         crypto/gc-hmac-sha1: Fix recent regression.
17713         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17714         (configure.ac): Invoke AC_LIBOBJ here.
17715         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17717
17718         crypto/gc-hmac-md5: Fix recent regression.
17719         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17720         (configure.ac): Invoke AC_LIBOBJ here.
17721         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17723
17724         crypto/gc-des: Fix recent regression.
17725         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17726         (configure.ac): Invoke AC_LIBOBJ here.
17727         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17729
17730         crypto/gc-arcfour: Fix recent regression.
17731         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17732         (configure.ac): Invoke AC_LIBOBJ here.
17733         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17735
17736 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17737
17738         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17739         After the 2011-05-21 change, this macro requires
17740         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17742
17743 2011-06-16  Bruno Haible  <bruno@clisp.org>
17744
17745         fprintftime: Move AC_LIBOBJ invocations to module description.
17746         * m4/fprintftime.m4: Remove file.
17747         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17748         (configure.ac): Remove gl_FPRINTFTIME call.
17749         (Makefile.am): Augment lib_SOURCES.
17750         Reported by Jim Meyering.
17751
17752 2011-06-16  Bruno Haible  <bruno@clisp.org>
17753
17754         tmpfile-safer: Finish 2011-05-23 commit.
17755         * m4/stdio-safer.m4: Really remove file.
17756         Reported by Jim Meyering.
17757
17758 2011-06-16  Bruno Haible  <bruno@clisp.org>
17759
17760         syntax-check: Fix typo.
17761         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17762         printf-posix.m4.
17763         Reported by Jim Meyering.
17764
17765 2011-06-13  Jim Meyering  <meyering@redhat.com>
17766
17767         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17768         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17769
17770 2011-05-23  Bruno Haible  <bruno@clisp.org>
17771
17772         yesno: Move AC_LIBOBJ invocations to module description.
17773         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17774         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17775
17776 2011-05-23  Bruno Haible  <bruno@clisp.org>
17777
17778         xstrtol: Move AC_LIBOBJ invocations to module description.
17779         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17780         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17781
17782 2011-05-23  Bruno Haible  <bruno@clisp.org>
17783
17784         xstrtold: Move AC_LIBOBJ invocations to module description.
17785         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17786         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17787
17788 2011-05-23  Bruno Haible  <bruno@clisp.org>
17789
17790         xstrtod: Move AC_LIBOBJ invocations to module description.
17791         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17792         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17793
17794 2011-05-23  Bruno Haible  <bruno@clisp.org>
17795
17796         xnanosleep: Move AC_LIBOBJ invocations to module description.
17797         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17798         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17799
17800 2011-05-23  Bruno Haible  <bruno@clisp.org>
17801
17802         xgetcwd: Move AC_LIBOBJ invocations to module description.
17803         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17804         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17805
17806 2011-05-23  Bruno Haible  <bruno@clisp.org>
17807
17808         xalloc: Move AC_LIBOBJ invocations to module description.
17809         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17810         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17811
17812 2011-05-23  Bruno Haible  <bruno@clisp.org>
17813
17814         write-any-file: Move AC_LIBOBJ invocations to module description.
17815         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17816         invocation.
17817         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17818
17819 2011-05-23  Bruno Haible  <bruno@clisp.org>
17820
17821         utimens: Move AC_LIBOBJ invocations to module description.
17822         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17823         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17824
17825 2011-05-23  Bruno Haible  <bruno@clisp.org>
17826
17827         utimecmp: Move AC_LIBOBJ invocations to module description.
17828         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17829         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17830
17831 2011-05-23  Bruno Haible  <bruno@clisp.org>
17832
17833         userspec: Move AC_LIBOBJ invocations to module description.
17834         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17835         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17836
17837 2011-05-23  Bruno Haible  <bruno@clisp.org>
17838
17839         unlinkdir: Move AC_LIBOBJ invocations to module description.
17840         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17841         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17842
17843 2011-05-23  Bruno Haible  <bruno@clisp.org>
17844
17845         unistd-safer: Move AC_LIBOBJ invocations to module description.
17846         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17847         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17848
17849 2011-05-23  Bruno Haible  <bruno@clisp.org>
17850
17851         tempname: Move AC_LIBOBJ invocations to module description.
17852         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17853         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17854
17855 2011-05-23  Bruno Haible  <bruno@clisp.org>
17856
17857         strftime: Move AC_LIBOBJ invocations to module description.
17858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17859         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17860
17861 2011-05-23  Bruno Haible  <bruno@clisp.org>
17862
17863         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17864         * m4/stdlib-safer.m4: Remove file.
17865         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17866         (configure.ac): Remove gl_STDLIB_SAFER call.
17867         (Makefile.am): Augment lib_SOURCES.
17868
17869 2011-05-23  Bruno Haible  <bruno@clisp.org>
17870
17871         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17872         * m4/stdio-safer.m4: Remove file.
17873         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17874         (configure.ac): Remove gl_TMPFILE_SAFER call.
17875         (Makefile.am): Augment lib_SOURCES.
17876
17877 2011-05-23  Bruno Haible  <bruno@clisp.org>
17878
17879         popen-safer: Move AC_LIBOBJ invocations to module description.
17880         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17881         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17882         (configure.ac): Remove gl_POPEN_SAFER call.
17883         (Makefile.am): Augment lib_SOURCES.
17884
17885 2011-05-23  Bruno Haible  <bruno@clisp.org>
17886
17887         freopen-safer: Move AC_LIBOBJ invocations to module description.
17888         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17889         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17890         (configure.ac): Remove gl_FREOPEN_SAFER call.
17891         (Makefile.am): Augment lib_SOURCES.
17892
17893 2011-05-23  Bruno Haible  <bruno@clisp.org>
17894
17895         fopen-safer: Move AC_LIBOBJ invocations to module description.
17896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17897         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17898         (configure.ac): Remove gl_FOPEN_SAFER call.
17899         (Makefile.am): Augment lib_SOURCES.
17900
17901 2011-05-23  Bruno Haible  <bruno@clisp.org>
17902
17903         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17904         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17905         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17906
17907 2011-05-23  Bruno Haible  <bruno@clisp.org>
17908
17909         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17910         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17911         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17912
17913 2011-05-23  Bruno Haible  <bruno@clisp.org>
17914
17915         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17916         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17917         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17918
17919 2011-05-23  Bruno Haible  <bruno@clisp.org>
17920
17921         settime: Move AC_LIBOBJ invocations to module description.
17922         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17923         * modules/settime (Makefile.am): Augment lib_SOURCES.
17924
17925 2011-05-23  Bruno Haible  <bruno@clisp.org>
17926
17927         savedir: Move AC_LIBOBJ invocations to module description.
17928         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17929         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17930
17931 2011-05-23  Bruno Haible  <bruno@clisp.org>
17932
17933         save-cwd: Move AC_LIBOBJ invocations to module description.
17934         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17935         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17936
17937 2011-05-23  Bruno Haible  <bruno@clisp.org>
17938
17939         same: Move AC_LIBOBJ invocations to module description.
17940         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17941         * modules/same (Makefile.am): Augment lib_SOURCES.
17942
17943 2011-05-23  Bruno Haible  <bruno@clisp.org>
17944
17945         safe-write: Move AC_LIBOBJ invocations to module description.
17946         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17947         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17948         instead of gl_SAFE_WRITE.
17949         (Makefile.am): Augment lib_SOURCES.
17950
17951 2011-05-23  Bruno Haible  <bruno@clisp.org>
17952
17953         safe-read: Move AC_LIBOBJ invocations to module description.
17954         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17955         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17956         of gl_SAFE_READ.
17957         (Makefile.am): Augment lib_SOURCES.
17958
17959 2011-05-23  Bruno Haible  <bruno@clisp.org>
17960
17961         safe-alloc: Move AC_LIBOBJ invocations to module description.
17962         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17963         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17964
17965 2011-05-23  Bruno Haible  <bruno@clisp.org>
17966
17967         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17968         * m4/rijndael.m4: Remove file.
17969         * modules/crypto/rijndael (Files): Remove it.
17970         (configure.ac): Remove gl_RIJNDAEL call.
17971         (Makefile.am): Augment lib_SOURCES.
17972
17973 2011-05-23  Bruno Haible  <bruno@clisp.org>
17974
17975         readtokens: Move AC_LIBOBJ invocations to module description.
17976         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17977         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17978
17979 2011-05-23  Bruno Haible  <bruno@clisp.org>
17980
17981         read-file: Move AC_LIBOBJ invocations to module description.
17982         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17983         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17984         of gl_FUNC_READ_FILE.
17985         (Makefile.am): Augment lib_SOURCES.
17986
17987 2011-05-23  Bruno Haible  <bruno@clisp.org>
17988
17989         quotearg: Move AC_LIBOBJ invocations to module description.
17990         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17991         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17992
17993 2011-05-23  Bruno Haible  <bruno@clisp.org>
17994
17995         quote: Move AC_LIBOBJ invocations to module description.
17996         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17997         * modules/quote (Makefile.am): Augment lib_SOURCES.
17998
17999 2011-05-23  Bruno Haible  <bruno@clisp.org>
18000
18001         posixver: Move AC_LIBOBJ invocations to module description.
18002         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18003         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18004
18005 2011-05-23  Bruno Haible  <bruno@clisp.org>
18006
18007         posixtm: Move AC_LIBOBJ invocations to module description.
18008         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18009         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18010
18011 2011-05-23  Bruno Haible  <bruno@clisp.org>
18012
18013         physmem: Move AC_LIBOBJ invocations to module description.
18014         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18015         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18016
18017 2011-05-23  Bruno Haible  <bruno@clisp.org>
18018
18019         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18020         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18021         invocation.
18022         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18023
18024 2011-05-23  Bruno Haible  <bruno@clisp.org>
18025
18026         mpsort: Move AC_LIBOBJ invocations to module description.
18027         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18028         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18029
18030 2011-05-23  Bruno Haible  <bruno@clisp.org>
18031
18032         modechange: Move AC_LIBOBJ invocations to module description.
18033         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18034         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18035
18036 2011-05-23  Bruno Haible  <bruno@clisp.org>
18037
18038         mkdir-p: Move AC_LIBOBJ invocations to module description.
18039         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18040         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18041
18042 2011-05-23  Bruno Haible  <bruno@clisp.org>
18043
18044         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18045         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18046         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18047
18048 2011-05-23  Bruno Haible  <bruno@clisp.org>
18049
18050         mgetgroups: Move AC_LIBOBJ invocations to module description.
18051         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18052         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18053
18054 2011-05-23  Bruno Haible  <bruno@clisp.org>
18055
18056         memxor: Move AC_LIBOBJ invocations to module description.
18057         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18058         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18059
18060 2011-05-23  Bruno Haible  <bruno@clisp.org>
18061
18062         memcoll: Move AC_LIBOBJ invocations to module description.
18063         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18064         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18065
18066 2011-05-23  Bruno Haible  <bruno@clisp.org>
18067
18068         memcasecmp: Move AC_LIBOBJ invocations to module description.
18069         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18070         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18071
18072 2011-05-23  Bruno Haible  <bruno@clisp.org>
18073
18074         crypto/md5: Move AC_LIBOBJ invocations to module description.
18075         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18076         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18077
18078 2011-05-23  Bruno Haible  <bruno@clisp.org>
18079
18080         crypto/md4: Move AC_LIBOBJ invocations to module description.
18081         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18082         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18083
18084 2011-05-23  Bruno Haible  <bruno@clisp.org>
18085
18086         crypto/md2: Move AC_LIBOBJ invocations to module description.
18087         * m4/md2.m4: Remove file.
18088         * modules/crypto/md2 (Files): Remove it.
18089         (configure.ac): Remove gl_MD2 call.
18090         (Makefile.am): Augment lib_SOURCES.
18091
18092 2011-05-23  Bruno Haible  <bruno@clisp.org>
18093
18094         long-options: Move AC_LIBOBJ invocations to module description.
18095         * m4/long-options.m4: Remove file.
18096         * modules/long-options (Files): Remove it.
18097         (configure.ac): Remove gl_LONG_OPTIONS call.
18098         (Makefile.am): Augment lib_SOURCES.
18099
18100 2011-05-23  Bruno Haible  <bruno@clisp.org>
18101
18102         i-ring: Move AC_LIBOBJ invocations to module description.
18103         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18104         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18105
18106 2011-05-23  Bruno Haible  <bruno@clisp.org>
18107
18108         idcache: Move AC_LIBOBJ invocations to module description.
18109         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18110         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18111
18112 2011-05-23  Bruno Haible  <bruno@clisp.org>
18113
18114         human: Move AC_LIBOBJ invocations to module description.
18115         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18116         * modules/human (Makefile.am): Augment lib_SOURCES.
18117
18118 2011-05-23  Bruno Haible  <bruno@clisp.org>
18119
18120         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18121         * m4/hmac-sha1.m4: Remove file.
18122         * modules/crypto/hmac-sha1 (Files): Remove it.
18123         (configure.ac): Remove gl_HMAC_SHA1 call.
18124         (Makefile.am): Augment lib_SOURCES.
18125
18126 2011-05-23  Bruno Haible  <bruno@clisp.org>
18127
18128         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18129         * m4/hmac-md5.m4: Remove file.
18130         * modules/crypto/hmac-md5 (Files): Remove it.
18131         (configure.ac): Remove gl_HMAC_MD5 call.
18132         (Makefile.am): Augment lib_SOURCES.
18133
18134 2011-05-23  Bruno Haible  <bruno@clisp.org>
18135
18136         hash: Move AC_LIBOBJ invocations to module description.
18137         * m4/hash.m4: Remove file.
18138         * modules/hash (Files): Remove it.
18139         (configure.ac): Remove gl_HASH call.
18140         (Makefile.am): Augment lib_SOURCES.
18141
18142 2011-05-23  Bruno Haible  <bruno@clisp.org>
18143
18144         hard-locale: Move AC_LIBOBJ invocations to module description.
18145         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18146         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18147
18148 2011-05-23  Bruno Haible  <bruno@clisp.org>
18149
18150         getugroups: Move AC_LIBOBJ invocations to module description.
18151         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18152         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18153
18154 2011-05-23  Bruno Haible  <bruno@clisp.org>
18155
18156         gettime: Move AC_LIBOBJ invocations to module description.
18157         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18158         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18159
18160 2011-05-23  Bruno Haible  <bruno@clisp.org>
18161
18162         getndelim2: Move AC_LIBOBJ invocations to module description.
18163         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18164         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18165
18166 2011-05-23  Bruno Haible  <bruno@clisp.org>
18167
18168         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18169         * m4/gc-pbkdf2-sha1.m4: Remove file.
18170         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18171         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18172         (Makefile.am): Augment lib_SOURCES.
18173
18174 2011-05-23  Bruno Haible  <bruno@clisp.org>
18175
18176         fts: Move AC_LIBOBJ invocations to module description.
18177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18178         * modules/fts (configure.ac): ... to here.
18179
18180 2011-05-23  Bruno Haible  <bruno@clisp.org>
18181
18182         file-type: Move AC_LIBOBJ invocations to module description.
18183         * m4/file-type.m4: Remove file.
18184         * modules/file-type (Files): Remove it.
18185         (configure.ac): Remove gl_FILE_TYPE call.
18186         (Makefile.am): Augment lib_SOURCES.
18187
18188 2011-05-23  Bruno Haible  <bruno@clisp.org>
18189
18190         filenamecat*: Respect rules for use of AC_LIBOBJ.
18191         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18192         Remove AC_LIBOBJ invocation.
18193         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18194         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18195
18196 2011-05-23  Bruno Haible  <bruno@clisp.org>
18197
18198         filemode: Move AC_LIBOBJ invocations to module description.
18199         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18200         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18201
18202 2011-05-23  Bruno Haible  <bruno@clisp.org>
18203
18204         openat-safer: Move AC_LIBOBJ invocations to module description.
18205         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18206         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18207
18208 2011-05-23  Bruno Haible  <bruno@clisp.org>
18209
18210         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18211         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18212         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18213
18214 2011-05-23  Bruno Haible  <bruno@clisp.org>
18215
18216         exclude: Move AC_LIBOBJ invocations to module description.
18217         * m4/exclude.m4: Remove file.
18218         * modules/exclude (Files): Remove it.
18219         (configure.ac): Remove gl_EXCLUDE call.
18220         (Makefile.am): Augment lib_SOURCES.
18221
18222 2011-05-23  Bruno Haible  <bruno@clisp.org>
18223
18224         dirname*: Respect rules for use of AC_LIBOBJ.
18225         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18226         invocations.
18227         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18228         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18229
18230 2011-05-23  Bruno Haible  <bruno@clisp.org>
18231
18232         dirent-safer: Move AC_LIBOBJ invocations to module description.
18233         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18234         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18235
18236 2011-05-23  Bruno Haible  <bruno@clisp.org>
18237
18238         crypto/des: Move AC_LIBOBJ invocations to module description.
18239         * m4/des.m4: Remove file.
18240         * modules/crypto/des (Files): Remove it.
18241         (configure.ac): Remove gl_DES call.
18242         (Makefile.am): Augment lib_SOURCES.
18243
18244 2011-05-23  Bruno Haible  <bruno@clisp.org>
18245
18246         cycle-check: Move AC_LIBOBJ invocations to module description.
18247         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18248         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18249
18250 2011-05-23  Bruno Haible  <bruno@clisp.org>
18251
18252         c-strtold: Move AC_LIBOBJ invocations to module description.
18253         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18254         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18255
18256 2011-05-23  Bruno Haible  <bruno@clisp.org>
18257
18258         c-strtod: Move AC_LIBOBJ invocations to module description.
18259         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18260         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18261
18262 2011-05-23  Bruno Haible  <bruno@clisp.org>
18263
18264         crc: Move AC_LIBOBJ invocations to module description.
18265         * m4/crc.m4: Remove file.
18266         * modules/crc (Files): Remove it.
18267         (configure.ac): Remove gl_CRC call.
18268         (Makefile.am): Augment lib_SOURCES.
18269
18270 2011-05-23  Bruno Haible  <bruno@clisp.org>
18271
18272         close-stream: Move AC_LIBOBJ invocations to module description.
18273         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18274         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18275
18276 2011-05-23  Bruno Haible  <bruno@clisp.org>
18277
18278         closeout: Move AC_LIBOBJ invocations to module description.
18279         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18280         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18281
18282 2011-05-23  Bruno Haible  <bruno@clisp.org>
18283
18284         closein: Move AC_LIBOBJ invocations to module description.
18285         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18286         * modules/closein (Makefile.am): Augment lib_SOURCES.
18287
18288 2011-05-23  Bruno Haible  <bruno@clisp.org>
18289
18290         cloexec: Move AC_LIBOBJ invocations to module description.
18291         * m4/cloexec.m4: Remove file.
18292         * modules/cloexec (Files): Remove it.
18293         (configure.ac): Remove gl_CLOEXEC call.
18294         (Makefile.am): Augment lib_SOURCES.
18295
18296 2011-05-23  Bruno Haible  <bruno@clisp.org>
18297
18298         check-version: Move AC_LIBOBJ invocations to module description.
18299         * m4/check-version.m4: Remove file.
18300         * modules/check-version (Files): Remove it.
18301         (configure.ac): Remove gl_CHECK_VERSION call.
18302         (Makefile.am): Augment lib_SOURCES.
18303
18304 2011-05-23  Bruno Haible  <bruno@clisp.org>
18305
18306         chdir-safer: Move AC_LIBOBJ invocations to module description.
18307         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18308         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18309
18310 2011-05-23  Bruno Haible  <bruno@clisp.org>
18311
18312         canonicalize: Move AC_LIBOBJ invocations to module description.
18313         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18314         AC_LIBOBJ invocation.
18315         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18316
18317 2011-05-23  Bruno Haible  <bruno@clisp.org>
18318
18319         canon-host: Move AC_LIBOBJ invocations to module description.
18320         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18321         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18322         instead of gl_CANON_HOST.
18323         (Makefile.am): Augment lib_SOURCES.
18324
18325 2011-05-23  Bruno Haible  <bruno@clisp.org>
18326
18327         backupfile: Move AC_LIBOBJ invocations to module description.
18328         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18329         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18330
18331 2011-05-23  Bruno Haible  <bruno@clisp.org>
18332
18333         argmatch: Move AC_LIBOBJ invocations to module description.
18334         * m4/argmatch.m4: Remove file.
18335         * modules/argmatch (Files): Remove it.
18336         (configure.ac): Remove gl_ARGMATCH call.
18337         (Makefile.am): Augment lib_SOURCES.
18338
18339 2011-05-23  Bruno Haible  <bruno@clisp.org>
18340
18341         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18342         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18343         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18344
18345 2011-05-23  Bruno Haible  <bruno@clisp.org>
18346
18347         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18348         * m4/arcfour.m4: Remove file.
18349         * modules/crypto/arcfour (Files): Remove it.
18350         (configure.ac): Remove gl_ARCFOUR call.
18351         (Makefile.am): Augment lib_SOURCES.
18352
18353 2011-05-22  Bruno Haible  <bruno@clisp.org>
18354
18355         write: Move AC_LIBOBJ invocations to module description.
18356         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18357         * modules/write (configure.ac): ... to here.
18358
18359 2011-05-22  Bruno Haible  <bruno@clisp.org>
18360
18361         wmemset: Move AC_LIBOBJ invocations to module description.
18362         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18363         here...
18364         * modules/wmemset (configure.ac): ... to here.
18365
18366 2011-05-22  Bruno Haible  <bruno@clisp.org>
18367
18368         wmemmove: Move AC_LIBOBJ invocations to module description.
18369         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18370         here...
18371         * modules/wmemmove (configure.ac): ... to here.
18372
18373 2011-05-22  Bruno Haible  <bruno@clisp.org>
18374
18375         wmemcpy: Move AC_LIBOBJ invocations to module description.
18376         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18377         here...
18378         * modules/wmemcpy (configure.ac): ... to here.
18379
18380 2011-05-22  Bruno Haible  <bruno@clisp.org>
18381
18382         wmemcmp: Move AC_LIBOBJ invocations to module description.
18383         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18384         here...
18385         * modules/wmemcmp (configure.ac): ... to here.
18386
18387 2011-05-22  Bruno Haible  <bruno@clisp.org>
18388
18389         wmemchr: Move AC_LIBOBJ invocations to module description.
18390         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18391         here...
18392         * modules/wmemchr (configure.ac): ... to here.
18393
18394 2011-05-22  Bruno Haible  <bruno@clisp.org>
18395
18396         wcswidth: Move AC_LIBOBJ invocations to module description.
18397         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18398         here...
18399         * modules/wcswidth (configure.ac): ... to here.
18400
18401 2011-05-22  Bruno Haible  <bruno@clisp.org>
18402
18403         wcwidth: Respect rules for use of AC_LIBOBJ.
18404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18405         invocation from here...
18406         * modules/wcwidth (configure.ac): ... to here.
18407         (Depends-on): Update conditions.
18408
18409 2011-05-22  Bruno Haible  <bruno@clisp.org>
18410
18411         wctype: Move AC_LIBOBJ invocations to module description.
18412         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18413         invocation from here...
18414         * modules/wctype (configure.ac): ... to here.
18415         (Depends-on): Update conditions.
18416
18417 2011-05-22  Bruno Haible  <bruno@clisp.org>
18418
18419         wctrans: Move AC_LIBOBJ invocations to module description.
18420         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18421         invocation from here...
18422         * modules/wctrans (configure.ac): ... to here.
18423
18424 2011-05-22  Bruno Haible  <bruno@clisp.org>
18425
18426         wctomb: Move AC_LIBOBJ invocations to module description.
18427         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18428         invocations from here...
18429         * modules/wctomb (configure.ac): ... to here.
18430
18431 2011-05-22  Bruno Haible  <bruno@clisp.org>
18432
18433         wctob: Move AC_LIBOBJ invocations to module description.
18434         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18435         gl_PREREQ_WCTOB invocations from here...
18436         * modules/wctob (configure.ac): ... to here.
18437         (Depends-on): Update conditions.
18438
18439 2011-05-22  Bruno Haible  <bruno@clisp.org>
18440
18441         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18442         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18443         here...
18444         * modules/wcsxfrm (configure.ac): ... to here.
18445
18446 2011-05-22  Bruno Haible  <bruno@clisp.org>
18447
18448         wcstok: Move AC_LIBOBJ invocations to module description.
18449         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18450         * modules/wcstok (configure.ac): ... to here.
18451
18452 2011-05-22  Bruno Haible  <bruno@clisp.org>
18453
18454         wcsstr: Move AC_LIBOBJ invocations to module description.
18455         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18456         * modules/wcsstr (configure.ac): ... to here.
18457
18458 2011-05-22  Bruno Haible  <bruno@clisp.org>
18459
18460         wcsspn: Move AC_LIBOBJ invocations to module description.
18461         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18462         * modules/wcsspn (configure.ac): ... to here.
18463
18464 2011-05-22  Bruno Haible  <bruno@clisp.org>
18465
18466         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18467         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18468         gl_PREREQ_WCSRTOMBS invocations from here...
18469         * modules/wcsrtombs (configure.ac): ... to here.
18470
18471 2011-05-22  Bruno Haible  <bruno@clisp.org>
18472
18473         wcsrchr: Move AC_LIBOBJ invocations to module description.
18474         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18475         here...
18476         * modules/wcsrchr (configure.ac): ... to here.
18477
18478 2011-05-22  Bruno Haible  <bruno@clisp.org>
18479
18480         wcspbrk: Move AC_LIBOBJ invocations to module description.
18481         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18482         here...
18483         * modules/wcspbrk (configure.ac): ... to here.
18484
18485 2011-05-22  Bruno Haible  <bruno@clisp.org>
18486
18487         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18488         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18489         gl_PREREQ_WCSNRTOMBS invocations from here...
18490         * modules/wcsnrtombs (configure.ac): ... to here.
18491
18492 2011-05-22  Bruno Haible  <bruno@clisp.org>
18493
18494         wcsnlen: Move AC_LIBOBJ invocations to module description.
18495         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18496         here...
18497         * modules/wcsnlen (configure.ac): ... to here.
18498
18499 2011-05-22  Bruno Haible  <bruno@clisp.org>
18500
18501         wcsncpy: Move AC_LIBOBJ invocations to module description.
18502         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18503         here...
18504         * modules/wcsncpy (configure.ac): ... to here.
18505
18506 2011-05-22  Bruno Haible  <bruno@clisp.org>
18507
18508         wcsncmp: Move AC_LIBOBJ invocations to module description.
18509         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18510         here...
18511         * modules/wcsncmp (configure.ac): ... to here.
18512
18513 2011-05-22  Bruno Haible  <bruno@clisp.org>
18514
18515         wcsncat: Move AC_LIBOBJ invocations to module description.
18516         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18517         here...
18518         * modules/wcsncat (configure.ac): ... to here.
18519
18520 2011-05-22  Bruno Haible  <bruno@clisp.org>
18521
18522         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18523         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18524         from here...
18525         * modules/wcsncasecmp (configure.ac): ... to here.
18526
18527 2011-05-22  Bruno Haible  <bruno@clisp.org>
18528
18529         wcslen: Move AC_LIBOBJ invocations to module description.
18530         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18531         * modules/wcslen (configure.ac): ... to here.
18532
18533 2011-05-22  Bruno Haible  <bruno@clisp.org>
18534
18535         wcsdup: Move AC_LIBOBJ invocations to module description.
18536         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18537         * modules/wcsdup (configure.ac): ... to here.
18538
18539 2011-05-22  Bruno Haible  <bruno@clisp.org>
18540
18541         wcscspn: Move AC_LIBOBJ invocations to module description.
18542         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18543         here...
18544         * modules/wcscspn (configure.ac): ... to here.
18545
18546 2011-05-22  Bruno Haible  <bruno@clisp.org>
18547
18548         wcscpy: Move AC_LIBOBJ invocations to module description.
18549         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18550         * modules/wcscpy (configure.ac): ... to here.
18551
18552 2011-05-22  Bruno Haible  <bruno@clisp.org>
18553
18554         wcscoll: Move AC_LIBOBJ invocations to module description.
18555         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18556         here...
18557         * modules/wcscoll (configure.ac): ... to here.
18558
18559 2011-05-22  Bruno Haible  <bruno@clisp.org>
18560
18561         wcscmp: Move AC_LIBOBJ invocations to module description.
18562         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18563         * modules/wcscmp (configure.ac): ... to here.
18564
18565 2011-05-22  Bruno Haible  <bruno@clisp.org>
18566
18567         wcschr: Move AC_LIBOBJ invocations to module description.
18568         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18569         * modules/wcschr (configure.ac): ... to here.
18570
18571 2011-05-22  Bruno Haible  <bruno@clisp.org>
18572
18573         wcscat: Move AC_LIBOBJ invocations to module description.
18574         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18575         * modules/wcscat (configure.ac): ... to here.
18576
18577 2011-05-22  Bruno Haible  <bruno@clisp.org>
18578
18579         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18580         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18581         here...
18582         * modules/wcscasecmp (configure.ac): ... to here.
18583
18584 2011-05-22  Bruno Haible  <bruno@clisp.org>
18585
18586         wcrtomb: Move AC_LIBOBJ invocations to module description.
18587         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18588         invocations from here...
18589         * modules/wcrtomb (configure.ac): ... to here.
18590
18591 2011-05-22  Bruno Haible  <bruno@clisp.org>
18592
18593         wcpncpy: Move AC_LIBOBJ invocations to module description.
18594         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18595         here...
18596         * modules/wcpncpy (configure.ac): ... to here.
18597
18598 2011-05-22  Bruno Haible  <bruno@clisp.org>
18599
18600         wcpcpy: Move AC_LIBOBJ invocations to module description.
18601         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18602         * modules/wcpcpy (configure.ac): ... to here.
18603
18604 2011-05-22  Bruno Haible  <bruno@clisp.org>
18605
18606         waitpid: Move AC_LIBOBJ invocations to module description.
18607         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18608         invocation from here...
18609         * modules/waitpid (configure.ac): ... to here.
18610
18611 2011-05-22  Bruno Haible  <bruno@clisp.org>
18612
18613         utimensat: Move AC_LIBOBJ invocations to module description.
18614         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18615         here...
18616         * modules/utimensat (configure.ac): ... to here.
18617
18618 2011-05-22  Bruno Haible  <bruno@clisp.org>
18619
18620         usleep: Move AC_LIBOBJ invocations to module description.
18621         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18622         here...
18623         * modules/usleep (configure.ac): ... to here.
18624
18625 2011-05-22  Bruno Haible  <bruno@clisp.org>
18626
18627         unlockpt: Move AC_LIBOBJ invocations to module description.
18628         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18629         gl_PREREQ_UNLOCKPT invocations from here...
18630         * modules/unlockpt (configure.ac): ... to here.
18631
18632 2011-05-22  Bruno Haible  <bruno@clisp.org>
18633
18634         unlink: Respect rules for use of AC_LIBOBJ.
18635         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18636         * modules/unlink (configure.ac): ... to here.
18637
18638 2011-05-22  Bruno Haible  <bruno@clisp.org>
18639
18640         uname: Move AC_LIBOBJ invocations to module description.
18641         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18642         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18643         here...
18644         * modules/uname (configure.ac): ... to here.
18645
18646 2011-05-22  Bruno Haible  <bruno@clisp.org>
18647
18648         ttyname_r: Move AC_LIBOBJ invocations to module description.
18649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18650         gl_PREREQ_TTYNAME_R invocations from here...
18651         * modules/ttyname_r (configure.ac): ... to here.
18652
18653 2011-05-22  Bruno Haible  <bruno@clisp.org>
18654
18655         tsearch: Move AC_LIBOBJ invocations to module description.
18656         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18657         invocations from here...
18658         * modules/tsearch (configure.ac): ... to here.
18659
18660 2011-05-22  Bruno Haible  <bruno@clisp.org>
18661
18662         towctrans: Move AC_LIBOBJ invocations to module description.
18663         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18664         AC_LIBOBJ invocation from here...
18665         * modules/towctrans (configure.ac): ... to here.
18666
18667 2011-05-22  Bruno Haible  <bruno@clisp.org>
18668
18669         tmpfile: Move AC_LIBOBJ invocations to module description.
18670         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18671         invocations from here...
18672         * modules/tmpfile (configure.ac): ... to here.
18673
18674 2011-05-22  Bruno Haible  <bruno@clisp.org>
18675
18676         times: Move AC_LIBOBJ invocations to module description.
18677         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18678         * modules/times (configure.ac): ... to here.
18679
18680 2011-05-22  Bruno Haible  <bruno@clisp.org>
18681
18682         time_r: Move AC_LIBOBJ invocations to module description.
18683         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18684         invocations from here...
18685         * modules/time_r (configure.ac): ... to here.
18686
18687 2011-05-22  Bruno Haible  <bruno@clisp.org>
18688
18689         timegm: Move AC_LIBOBJ invocations to module description.
18690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18691         invocations from here...
18692         * modules/timegm (configure.ac): ... to here.
18693
18694 2011-05-22  Bruno Haible  <bruno@clisp.org>
18695
18696         tcgetsid: Move AC_LIBOBJ invocations to module description.
18697         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18698         and gl_PREREQ_TCGETSID invocations from here...
18699         * modules/tcgetsid (configure.ac): ... to here.
18700         (Depends-on): Update conditions.
18701
18702 2011-05-22  Bruno Haible  <bruno@clisp.org>
18703
18704         symlinkat: Move AC_LIBOBJ invocations to module description.
18705         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18706         here...
18707         * modules/symlinkat (configure.ac): ... to here.
18708
18709 2011-05-22  Bruno Haible  <bruno@clisp.org>
18710
18711         symlink: Move AC_LIBOBJ invocations to module description.
18712         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18713         here...
18714         * modules/symlink (configure.ac): ... to here.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         strverscmp: Move AC_LIBOBJ invocations to module description.
18719         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18721         from here...
18722         * modules/strverscmp (configure.ac): ... to here.
18723
18724 2011-05-22  Bruno Haible  <bruno@clisp.org>
18725
18726         strtok_r: Move AC_LIBOBJ invocations to module description.
18727         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18728         and gl_PREREQ_STRTOK_R invocations from here...
18729         * modules/strtok_r (configure.ac): ... to here.
18730         (Depends-on): Update conditions.
18731
18732 2011-05-22  Bruno Haible  <bruno@clisp.org>
18733
18734         strtoumax: Move AC_LIBOBJ invocations to module description.
18735         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18737         from here...
18738         * modules/strtoumax (configure.ac): ... to here.
18739
18740 2011-05-22  Bruno Haible  <bruno@clisp.org>
18741
18742         strtoimax: Move AC_LIBOBJ invocations to module description.
18743         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18745         from here...
18746         * modules/strtoimax (configure.ac): ... to here.
18747
18748 2011-05-22  Bruno Haible  <bruno@clisp.org>
18749
18750         strtoull: Move AC_LIBOBJ invocations to module description.
18751         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18753         from here...
18754         * modules/strtoull (configure.ac): ... to here.
18755
18756 2011-05-22  Bruno Haible  <bruno@clisp.org>
18757
18758         strtoll: Move AC_LIBOBJ invocations to module description.
18759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18760         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18761         here...
18762         * modules/strtoll (configure.ac): ... to here.
18763
18764 2011-05-22  Bruno Haible  <bruno@clisp.org>
18765
18766         strtoul: Move AC_LIBOBJ invocations to module description.
18767         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18768         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18769         * modules/strtoul (configure.ac): ... to here.
18770
18771 2011-05-22  Bruno Haible  <bruno@clisp.org>
18772
18773         strtol: Move AC_LIBOBJ invocations to module description.
18774         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18775         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18776         * modules/strtol (configure.ac): ... to here.
18777
18778 2011-05-22  Bruno Haible  <bruno@clisp.org>
18779
18780         strtod: Move AC_LIBOBJ invocations to module description.
18781         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18782         invocations from here...
18783         * modules/strtod (configure.ac): ... to here.
18784
18785 2011-05-22  Bruno Haible  <bruno@clisp.org>
18786
18787         strstr*: Move AC_LIBOBJ invocations to module description.
18788         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18789         invocations from here...
18790         * modules/strstr-simple (configure.ac): ... to here.
18791         * modules/strstr (configure.ac): ... and here.
18792
18793 2011-05-22  Bruno Haible  <bruno@clisp.org>
18794
18795         strsignal: Move AC_LIBOBJ invocations to module description.
18796         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18797         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18798         * modules/strsignal (configure.ac): ... to here.
18799         (Depends-on): Update conditions.
18800
18801 2011-05-22  Bruno Haible  <bruno@clisp.org>
18802
18803         strsep: Move AC_LIBOBJ invocations to module description.
18804         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18806         here...
18807         * modules/strsep (configure.ac): ... to here.
18808
18809 2011-05-22  Bruno Haible  <bruno@clisp.org>
18810
18811         strptime: Move AC_LIBOBJ invocations to module description.
18812         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18813         gl_PREREQ_STRPTIME invocations from here...
18814         * modules/strptime (configure.ac): ... to here.
18815
18816 2011-05-22  Bruno Haible  <bruno@clisp.org>
18817
18818         strpbrk: Move AC_LIBOBJ invocations to module description.
18819         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18821         here...
18822         * modules/strpbrk (configure.ac): ... to here.
18823
18824 2011-05-22  Bruno Haible  <bruno@clisp.org>
18825
18826         strnlen: Move AC_LIBOBJ invocations to module description.
18827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18828         invocations from here...
18829         * modules/strnlen (configure.ac): ... to here.
18830
18831 2011-05-22  Bruno Haible  <bruno@clisp.org>
18832
18833         strndup: Move AC_LIBOBJ invocations to module description.
18834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18835         invocations from here...
18836         * modules/strndup (configure.ac): ... to here.
18837         (Depends-on): Update conditions.
18838
18839 2011-05-22  Bruno Haible  <bruno@clisp.org>
18840
18841         strncat: Move AC_LIBOBJ invocations to module description.
18842         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18843         invocations from here...
18844         * modules/strncat (configure.ac): ... to here.
18845
18846 2011-05-22  Bruno Haible  <bruno@clisp.org>
18847
18848         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18849         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18850         invocations from here...
18851         * modules/strdup (configure.ac): ... to here.
18852         * modules/strdup-posix (configure.ac): ... and here.
18853
18854 2011-05-22  Bruno Haible  <bruno@clisp.org>
18855
18856         strcspn: Move AC_LIBOBJ invocations to module description.
18857         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18859         here...
18860         * modules/strcspn (configure.ac): ... to here.
18861
18862 2011-05-22  Bruno Haible  <bruno@clisp.org>
18863
18864         strchrnul: Move AC_LIBOBJ invocations to module description.
18865         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18866         gl_PREREQ_STRCHRNUL invocations from here...
18867         * modules/strchrnul (configure.ac): ... to here.
18868
18869 2011-05-22  Bruno Haible  <bruno@clisp.org>
18870
18871         strcasestr*: Move AC_LIBOBJ invocations to module description.
18872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18873         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18874         * modules/strcasestr-simple (configure.ac): ... to here.
18875         * modules/strcasestr (configure.ac): ... and here.
18876
18877 2011-05-22  Bruno Haible  <bruno@clisp.org>
18878
18879         strcase: Move AC_LIBOBJ invocations to module description.
18880         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18881         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18882         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18883         gl_PREREQ_STRNCASECMP invocations from here...
18884         * modules/strcase (configure.ac): ... to here.
18885
18886 2011-05-22  Bruno Haible  <bruno@clisp.org>
18887
18888         stpncpy: Move AC_LIBOBJ invocations to module description.
18889         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18890         here...
18891         * modules/stpncpy (configure.ac): ... to here.
18892
18893 2011-05-22  Bruno Haible  <bruno@clisp.org>
18894
18895         stpcpy: Move AC_LIBOBJ invocations to module description.
18896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18898         here...
18899         * modules/stpcpy (configure.ac): ... to here.
18900
18901 2011-05-21  Bruno Haible  <bruno@clisp.org>
18902
18903         stat: Move AC_LIBOBJ invocations to module description.
18904         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18905         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18906         here...
18907         * modules/stat (configure.ac): ... to here.
18908
18909 2011-05-21  Bruno Haible  <bruno@clisp.org>
18910
18911         sleep: Move AC_LIBOBJ invocations to module description.
18912         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18913         * modules/sleep (configure.ac): ... to here.
18914
18915 2011-05-21  Bruno Haible  <bruno@clisp.org>
18916
18917         signbit: Move AC_LIBOBJ invocations to module description.
18918         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18919         * modules/signbit (configure.ac): ... to here.
18920
18921 2011-05-21  Bruno Haible  <bruno@clisp.org>
18922
18923         sigprocmask: Move AC_LIBOBJ invocations to module description.
18924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18925         gl_PREREQ_SIGPROMASK invocations from here...
18926         * modules/sigprocmask (configure.ac): ... to here.
18927
18928 2011-05-21  Bruno Haible  <bruno@clisp.org>
18929
18930         sigaction: Move AC_LIBOBJ invocations to module description.
18931         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18932         gl_PREREQ_SIGACTION invocations from here...
18933         * modules/sigaction (configure.ac): ... to here.
18934
18935 2011-05-21  Bruno Haible  <bruno@clisp.org>
18936
18937         sig2str: Move AC_LIBOBJ invocations to module description.
18938         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18940         here...
18941         * modules/sig2str (configure.ac): ... to here.
18942
18943 2011-05-21  Bruno Haible  <bruno@clisp.org>
18944
18945         setlocale: Move AC_LIBOBJ invocations to module description.
18946         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18947         gl_PREREQ_SETLOCALE invocations from here...
18948         * modules/setlocale (configure.ac): ... to here.
18949
18950 2011-05-21  Bruno Haible  <bruno@clisp.org>
18951
18952         unsetenv: Move AC_LIBOBJ invocations to module description.
18953         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18954         and gl_PREREQ_UNSETENV invocations from here...
18955         * modules/unsetenv (configure.ac): ... to here.
18956         (Depends-on): Update.
18957
18958 2011-05-21  Bruno Haible  <bruno@clisp.org>
18959
18960         setenv: Move AC_LIBOBJ invocations to module description.
18961         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18962         here...
18963         * modules/setenv (configure.ac): ... to here.
18964
18965 2011-05-21  Bruno Haible  <bruno@clisp.org>
18966
18967         selinux-h: Move AC_LIBOBJ invocations to module description.
18968         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18969         AC_LIBOBJ invocation from here...
18970         * modules/selinux-h (configure.ac): ... to here.
18971
18972 2011-05-21  Bruno Haible  <bruno@clisp.org>
18973
18974         select: Respect rules for use of AC_LIBOBJ.
18975         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18976         here...
18977         * modules/select (configure.ac): ... to here.
18978
18979 2011-05-21  Bruno Haible  <bruno@clisp.org>
18980
18981         scandir: Move AC_LIBOBJ invocations to module description.
18982         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18983         invocations from here...
18984         * modules/scandir (configure.ac): ... to here.
18985
18986 2011-05-21  Bruno Haible  <bruno@clisp.org>
18987
18988         rpmatch: Move AC_LIBOBJ invocations to module description.
18989         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18991         here...
18992         * modules/rpmatch (configure.ac): ... to here.
18993
18994 2011-05-21  Bruno Haible  <bruno@clisp.org>
18995
18996         rmdir: Respect rules for use of AC_LIBOBJ.
18997         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18998         * modules/rmdir (configure.ac): ... to here.
18999
19000 2011-05-21  Bruno Haible  <bruno@clisp.org>
19001
19002         renameat: Move AC_LIBOBJ invocations to module description.
19003         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19004         here...
19005         * modules/renameat (configure.ac): ... to here.
19006
19007 2011-05-21  Bruno Haible  <bruno@clisp.org>
19008
19009         rename: Respect rules for use of AC_LIBOBJ.
19010         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19011         here...
19012         * modules/rename (configure.ac): ... to here.
19013
19014 2011-05-21  Bruno Haible  <bruno@clisp.org>
19015
19016         remove: Move AC_LIBOBJ invocations to module description.
19017         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19018         here...
19019         * modules/remove (configure.ac): ... to here.
19020
19021 2011-05-21  Bruno Haible  <bruno@clisp.org>
19022
19023         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19024         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19025         macro.
19026         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19027         * modules/relocatable-lib (configure.ac): ... to here.
19028         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19029         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19030
19031 2011-05-21  Bruno Haible  <bruno@clisp.org>
19032
19033         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19034         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19035         here...
19036         * modules/relocatable-prog (configure.ac): ... to here.
19037
19038 2011-05-21  Bruno Haible  <bruno@clisp.org>
19039
19040         regex: Move AC_LIBOBJ invocations to module description.
19041         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19042         invocations from here...
19043         * modules/regex (configure.ac): ... to here.
19044
19045 2011-05-21  Bruno Haible  <bruno@clisp.org>
19046
19047         realloc-*: Move AC_LIBOBJ invocations to module description.
19048         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19049         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19050         AC_LIBOBJ invocations from here...
19051         * modules/realloc-gnu (configure.ac): ... to here.
19052         * modules/realloc-posix (configure.ac): ... and here.
19053
19054 2011-05-21  Bruno Haible  <bruno@clisp.org>
19055
19056         readutmp: Move AC_LIBOBJ invocations to module description.
19057         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19058         * modules/readutmp (configure.ac): ... to here.
19059
19060 2011-05-21  Bruno Haible  <bruno@clisp.org>
19061
19062         readlinkat: Move AC_LIBOBJ invocations to module description.
19063         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19064         here...
19065         * modules/readlinkat (configure.ac): ... to here.
19066
19067 2011-05-21  Bruno Haible  <bruno@clisp.org>
19068
19069         readlink: Move AC_LIBOBJ invocations to module description.
19070         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19071         gl_PREREQ_READLINK invocations from here...
19072         * modules/readlink (configure.ac): ... to here.
19073
19074 2011-05-21  Bruno Haible  <bruno@clisp.org>
19075
19076         readline: Move AC_LIBOBJ invocations to module description.
19077         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19078         gl_PREREQ_READLINE invocations from here...
19079         * modules/readline (configure.ac): ... to here.
19080
19081 2011-05-21  Bruno Haible  <bruno@clisp.org>
19082
19083         read: Move AC_LIBOBJ invocations to module description.
19084         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19085         * modules/read (configure.ac): ... to here.
19086
19087 2011-05-21  Bruno Haible  <bruno@clisp.org>
19088
19089         rawmemchr: Move AC_LIBOBJ invocations to module description.
19090         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19092         from here...
19093         * modules/rawmemchr (configure.ac): ... to here.
19094
19095 2011-05-21  Bruno Haible  <bruno@clisp.org>
19096
19097         random_r: Move AC_LIBOBJ invocations to module description.
19098         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19099         gl_PREREQ_RANDOM_R invocations from here...
19100         * modules/random_r (configure.ac): ... to here.
19101
19102 2011-05-21  Bruno Haible  <bruno@clisp.org>
19103
19104         pwrite: Move AC_LIBOBJ invocations to module description.
19105         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19106         * modules/pwrite (configure.ac): ... to here.
19107
19108 2011-05-21  Bruno Haible  <bruno@clisp.org>
19109
19110         putenv: Move AC_LIBOBJ invocations to module description.
19111         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19112         * modules/putenv (configure.ac): ... to here.
19113
19114 2011-05-21  Bruno Haible  <bruno@clisp.org>
19115
19116         login_tty: Move AC_LIBOBJ invocations to module description.
19117         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19118         * modules/login_tty (configure.ac): ... to here.
19119
19120 2011-05-21  Bruno Haible  <bruno@clisp.org>
19121
19122         openpty: Move AC_LIBOBJ invocations to module description.
19123         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19124         * modules/openpty (configure.ac): ... to here.
19125
19126 2011-05-21  Bruno Haible  <bruno@clisp.org>
19127
19128         forkpty: Move AC_LIBOBJ invocations to module description.
19129         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19130         * modules/forkpty (configure.ac): ... to here.
19131
19132 2011-05-21  Bruno Haible  <bruno@clisp.org>
19133
19134         ptsname: Move AC_LIBOBJ invocations to module description.
19135         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19136         invocations from here...
19137         * modules/ptsname (configure.ac): ... to here.
19138
19139 2011-05-21  Bruno Haible  <bruno@clisp.org>
19140
19141         pread: Move AC_LIBOBJ invocations to module description.
19142         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19143         * modules/pread (configure.ac): ... to here.
19144
19145 2011-05-21  Bruno Haible  <bruno@clisp.org>
19146
19147         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19148         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19149         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19150         * modules/posix_spawn (configure.ac): ... to here.
19151         * modules/posix_spawnp (configure.ac): ... and here.
19152
19153 2011-05-21  Bruno Haible  <bruno@clisp.org>
19154
19155         popen: Move AC_LIBOBJ invocations to module description.
19156         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19157         invocations from here...
19158         * modules/popen (configure.ac): ... to here.
19159
19160 2011-05-21  Bruno Haible  <bruno@clisp.org>
19161
19162         poll: Move AC_LIBOBJ invocations to module description.
19163         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19164         invocations from here...
19165         * modules/poll (configure.ac): ... to here.
19166
19167 2011-05-21  Bruno Haible  <bruno@clisp.org>
19168
19169         pipe-posix: Move AC_LIBOBJ invocations to module description.
19170         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19171         * modules/pipe-posix (configure.ac): ... to here.
19172
19173 2011-05-21  Bruno Haible  <bruno@clisp.org>
19174
19175         openat: Respect rules for use of AC_LIBOBJ.
19176         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19177         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19178         * modules/openat (configure.ac): ... to here.
19179
19180 2011-05-21  Bruno Haible  <bruno@clisp.org>
19181
19182         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19183         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19184         invocation from here...
19185         * modules/obstack-printf (configure.ac): ... to here.
19186         * modules/obstack-printf-posix (configure.ac): ... and here.
19187
19188 2011-05-21  Bruno Haible  <bruno@clisp.org>
19189
19190         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19191         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19192         from here...
19193         * modules/nl_langinfo (configure.ac): ... to here.
19194
19195 2011-05-21  Bruno Haible  <bruno@clisp.org>
19196
19197         nanosleep: Move AC_LIBOBJ invocations to module description.
19198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19199         gl_PREREQ_NANOSLEEP invocations from here...
19200         * modules/nanosleep (configure.ac): ... to here.
19201
19202 2011-05-21  Bruno Haible  <bruno@clisp.org>
19203
19204         mountlist: Move AC_LIBOBJ invocations to module description.
19205         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19206         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19207         * modules/mountlist (configure.ac): ... to here.
19208
19209 2011-05-21  Bruno Haible  <bruno@clisp.org>
19210
19211         mktime: Respect rules for use of AC_LIBOBJ.
19212         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19213         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19214         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19215         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19216         * modules/mktime (configure.ac): ... to here.
19217         * modules/mktime-internal (configure.ac): ... and here.
19218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19219
19220 2011-05-21  Bruno Haible  <bruno@clisp.org>
19221
19222         mkstemps: Move AC_LIBOBJ invocations to module description.
19223         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19224         here...
19225         * modules/mkstemps (configure.ac): ... to here.
19226
19227 2011-05-21  Bruno Haible  <bruno@clisp.org>
19228
19229         mkstemp: Move AC_LIBOBJ invocations to module description.
19230         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19231         gl_PREREQ_MKSTEMP invocations from here...
19232         * modules/mkstemp (configure.ac): ... to here.
19233
19234 2011-05-21  Bruno Haible  <bruno@clisp.org>
19235
19236         mkostemps: Move AC_LIBOBJ invocations to module description.
19237         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19238         here...
19239         * modules/mkostemps (configure.ac): ... to here.
19240
19241 2011-05-21  Bruno Haible  <bruno@clisp.org>
19242
19243         mkostemp: Move AC_LIBOBJ invocations to module description.
19244         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19245         gl_PREREQ_MKOSTEMP invocations from here...
19246         * modules/mkostemp (configure.ac): ... to here.
19247
19248 2011-05-21  Bruno Haible  <bruno@clisp.org>
19249
19250         mknod: Move AC_LIBOBJ invocations to module description.
19251         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19252         * modules/mknod (configure.ac): ... to here.
19253
19254 2011-05-21  Bruno Haible  <bruno@clisp.org>
19255
19256         mkfifoat: Move AC_LIBOBJ invocations to module description.
19257         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19258         here...
19259         * modules/mkfifoat (configure.ac): ... to here.
19260
19261 2011-05-21  Bruno Haible  <bruno@clisp.org>
19262
19263         mkfifo: Respect rules for use of AC_LIBOBJ.
19264         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19265         here...
19266         * modules/mkfifo (configure.ac): ... to here.
19267
19268 2011-05-21  Bruno Haible  <bruno@clisp.org>
19269
19270         mkdtemp: Move AC_LIBOBJ invocations to module description.
19271         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19272         invocations from here...
19273         * modules/mkdtemp (configure.ac): ... to here.
19274
19275 2011-05-21  Bruno Haible  <bruno@clisp.org>
19276
19277         mkdir: Move AC_LIBOBJ invocations to module description.
19278         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19279         * modules/mkdir (configure.ac): ... to here.
19280
19281 2011-05-21  Bruno Haible  <bruno@clisp.org>
19282
19283         memset: Move AC_LIBOBJ invocations to module description.
19284         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19286         here...
19287         * modules/memset (configure.ac): ... to here.
19288
19289 2011-05-21  Bruno Haible  <bruno@clisp.org>
19290
19291         memrchr: Move AC_LIBOBJ invocations to module description.
19292         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19294         here...
19295         * modules/memrchr (configure.ac): ... to here.
19296
19297 2011-05-21  Bruno Haible  <bruno@clisp.org>
19298
19299         mempcpy: Move AC_LIBOBJ invocations to module description.
19300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19301         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19302         here...
19303         * modules/mempcpy (configure.ac): ... to here.
19304
19305 2011-05-21  Bruno Haible  <bruno@clisp.org>
19306
19307         memmove: Move AC_LIBOBJ invocations to module description.
19308         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19310         here...
19311         * modules/memmove (configure.ac): ... to here.
19312
19313 2011-05-21  Bruno Haible  <bruno@clisp.org>
19314
19315         memmem*: Move AC_LIBOBJ invocations to module description.
19316         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19317         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19318         here...
19319         (gl_FUNC_MEMMEM): ... and here...
19320         * modules/memmem-simple (configure.ac): ... to here.
19321         * modules/memmem (configure.ac): ... and here.
19322
19323 2011-05-21  Bruno Haible  <bruno@clisp.org>
19324
19325         memcpy: Move AC_LIBOBJ invocations to module description.
19326         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19328         here...
19329         * modules/memcpy (configure.ac): ... to here.
19330
19331 2011-05-21  Bruno Haible  <bruno@clisp.org>
19332
19333         memcmp: Simplify autoconf macro.
19334         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19335         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19336         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19337
19338 2011-05-21  Bruno Haible  <bruno@clisp.org>
19339
19340         memcmp: Move AC_LIBOBJ invocations to module description.
19341         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19342         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19343         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19344         * modules/memcmp (configure.ac): ... to here.
19345         (Depends-on): Update conditions.
19346
19347 2011-05-21  Bruno Haible  <bruno@clisp.org>
19348
19349         memchr: Respect rules for use of AC_LIBOBJ.
19350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19351         invocations from here...
19352         * modules/memchr (configure.ac): ... to here.
19353
19354 2011-05-21  Bruno Haible  <bruno@clisp.org>
19355
19356         mbtowc: Move AC_LIBOBJ invocations to module description.
19357         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19358         invocations from here...
19359         * modules/mbtowc (configure.ac): ... to here.
19360
19361 2011-05-21  Bruno Haible  <bruno@clisp.org>
19362
19363         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19364         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19365         gl_PREREQ_MBSRTOWCS invocations from here...
19366         * modules/mbsrtowcs (configure.ac): ... to here.
19367
19368 2011-05-21  Bruno Haible  <bruno@clisp.org>
19369
19370         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19371         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19372         gl_PREREQ_MBSNRTOWCS invocations from here...
19373         * modules/mbsnrtowcs (configure.ac): ... to here.
19374
19375 2011-05-21  Bruno Haible  <bruno@clisp.org>
19376
19377         mbsinit: Move AC_LIBOBJ invocations to module description.
19378         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19379         invocations from here...
19380         * modules/mbsinit (configure.ac): ... to here.
19381
19382 2011-05-21  Bruno Haible  <bruno@clisp.org>
19383
19384         mbrlen: Move AC_LIBOBJ invocations to module description.
19385         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19386         invocations from here...
19387         * modules/mbrlen (configure.ac): ... to here.
19388
19389 2011-05-21  Bruno Haible  <bruno@clisp.org>
19390
19391         mbrtowc: Respect rules for use of AC_LIBOBJ.
19392         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19393         invocations from here...
19394         * modules/mbrtowc (configure.ac): ... to here.
19395
19396 2011-05-21  Bruno Haible  <bruno@clisp.org>
19397
19398         malloc-*: Move AC_LIBOBJ invocations to module description.
19399         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19400         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19401         AC_LIBOBJ invocations from here...
19402         * modules/malloc-gnu (configure.ac): ... to here.
19403         * modules/malloc-posix (configure.ac): ... and here.
19404
19405 2011-05-21  Bruno Haible  <bruno@clisp.org>
19406
19407         lstat, openat: Respect rules for use of AC_LIBOBJ.
19408         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19409         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19410         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19411         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19412         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19413         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19414         here.
19415         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19416
19417 2011-05-21  Bruno Haible  <bruno@clisp.org>
19418
19419         lseek: Move AC_LIBOBJ invocations to module description.
19420         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19421         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19422         * modules/lseek (configure.ac): ... to here.
19423
19424 2011-05-21  Bruno Haible  <bruno@clisp.org>
19425
19426         linkat: Move AC_LIBOBJ invocations to module description.
19427         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19428         here...
19429         * modules/linkat (configure.ac): ... to here.
19430
19431 2011-05-21  Bruno Haible  <bruno@clisp.org>
19432
19433         link: Respect rules for use of AC_LIBOBJ.
19434         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19435         * modules/link (configure.ac): ... to here.
19436
19437 2011-05-21  Bruno Haible  <bruno@clisp.org>
19438
19439         lchown: Move AC_LIBOBJ invocations to module description.
19440         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19441         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19442         * modules/lchown (configure.ac): ... to here.
19443
19444 2011-05-21  Bruno Haible  <bruno@clisp.org>
19445
19446         iswctype: Move AC_LIBOBJ invocations to module description.
19447         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19448         here...
19449         * modules/iswctype (configure.ac): ... to here.
19450
19451 2011-05-21  Bruno Haible  <bruno@clisp.org>
19452
19453         iswblank: Move AC_LIBOBJ invocations to module description.
19454         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19455         here...
19456         * modules/iswblank (configure.ac): ... to here.
19457
19458 2011-05-21  Bruno Haible  <bruno@clisp.org>
19459
19460         atanl: Move AC_LIBOBJ invocations to module description.
19461         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19462         * modules/atanl (configure.ac): ... to here.
19463
19464 2011-05-21  Bruno Haible  <bruno@clisp.org>
19465
19466         acosl: Move AC_LIBOBJ invocations to module description.
19467         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19468         * modules/acosl (configure.ac): ... to here.
19469
19470 2011-05-21  Bruno Haible  <bruno@clisp.org>
19471
19472         asinl: Respect rules for use of AC_LIBOBJ.
19473         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19474         * modules/asinl (configure.ac): ... to here.
19475
19476 2011-05-21  Bruno Haible  <bruno@clisp.org>
19477
19478         tanl: Move AC_LIBOBJ invocations to module description.
19479         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19480         * modules/tanl (configure.ac): ... to here.
19481
19482 2011-05-21  Bruno Haible  <bruno@clisp.org>
19483
19484         cosl: Move AC_LIBOBJ invocations to module description.
19485         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19486         * modules/cosl (configure.ac): ... to here.
19487
19488 2011-05-21  Bruno Haible  <bruno@clisp.org>
19489
19490         sinl: Move AC_LIBOBJ invocations to module description.
19491         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19492         * modules/sinl (configure.ac): ... to here.
19493
19494 2011-05-21  Bruno Haible  <bruno@clisp.org>
19495
19496         logl: Move AC_LIBOBJ invocations to module description.
19497         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19498         * modules/logl (configure.ac): ... to here.
19499
19500 2011-05-21  Bruno Haible  <bruno@clisp.org>
19501
19502         expl: Move AC_LIBOBJ invocations to module description.
19503         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19504         * modules/expl (configure.ac): ... to here.
19505
19506 2011-05-21  Bruno Haible  <bruno@clisp.org>
19507
19508         roundl: Move AC_LIBOBJ invocations to module description.
19509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19510         * modules/roundl (configure.ac): ... to here.
19511
19512 2011-05-21  Bruno Haible  <bruno@clisp.org>
19513
19514         round: Move AC_LIBOBJ invocations to module description.
19515         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19516         * modules/round (configure.ac): ... to here.
19517
19518 2011-05-21  Bruno Haible  <bruno@clisp.org>
19519
19520         roundf: Move AC_LIBOBJ invocations to module description.
19521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19522         * modules/roundf (configure.ac): ... to here.
19523
19524 2011-05-21  Bruno Haible  <bruno@clisp.org>
19525
19526         truncl: Move AC_LIBOBJ invocations to module description.
19527         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19528         * modules/truncl (configure.ac): ... to here.
19529
19530 2011-05-21  Bruno Haible  <bruno@clisp.org>
19531
19532         trunc: Move AC_LIBOBJ invocations to module description.
19533         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19534         * modules/trunc (configure.ac): ... to here.
19535
19536 2011-05-21  Bruno Haible  <bruno@clisp.org>
19537
19538         truncf: Move AC_LIBOBJ invocations to module description.
19539         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19540         * modules/truncf (configure.ac): ... to here.
19541
19542 2011-05-21  Bruno Haible  <bruno@clisp.org>
19543
19544         ceill: Move AC_LIBOBJ invocations to module description.
19545         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19546         * modules/ceill (configure.ac): ... to here.
19547
19548 2011-05-21  Bruno Haible  <bruno@clisp.org>
19549
19550         ceil: Move AC_LIBOBJ invocations to module description.
19551         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19552         * modules/ceil (configure.ac): ... to here.
19553
19554 2011-05-21  Bruno Haible  <bruno@clisp.org>
19555
19556         ceilf: Move AC_LIBOBJ invocations to module description.
19557         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19558         * modules/ceilf (configure.ac): ... to here.
19559
19560 2011-05-21  Bruno Haible  <bruno@clisp.org>
19561
19562         floorl: Respect rules for use of AC_LIBOBJ.
19563         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19564         * modules/floorl (configure.ac): ... to here.
19565
19566 2011-05-21  Bruno Haible  <bruno@clisp.org>
19567
19568         floor: Respect rules for use of AC_LIBOBJ.
19569         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19570         * modules/floor (configure.ac): ... to here.
19571
19572 2011-05-21  Bruno Haible  <bruno@clisp.org>
19573
19574         floorf: Move AC_LIBOBJ invocations to module description.
19575         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19576         * modules/floorf (configure.ac): ... to here.
19577
19578 2011-05-20  Bruno Haible  <bruno@clisp.org>
19579
19580         sqrtl: Respect rules for use of AC_LIBOBJ.
19581         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19582         * modules/sqrtl (configure.ac): ... to here.
19583
19584 2011-05-20  Bruno Haible  <bruno@clisp.org>
19585
19586         ldexpl: Respect rules for use of AC_LIBOBJ.
19587         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19588         * modules/ldexpl (configure.ac): ... to here.
19589
19590 2011-05-20  Bruno Haible  <bruno@clisp.org>
19591
19592         frexpl*: Respect rules for use of AC_LIBOBJ.
19593         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19594         invocation from here...
19595         * modules/frexpl (configure.ac): ... to here.
19596         * modules/frexpl-nolibm (configure.ac): ... and here.
19597
19598 2011-05-20  Bruno Haible  <bruno@clisp.org>
19599
19600         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19601         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19602         invocation from here...
19603         * modules/frexp (configure.ac): ... to here.
19604         * modules/frexp-nolibm (configure.ac): ... and here.
19605
19606 2011-05-20  Bruno Haible  <bruno@clisp.org>
19607
19608         isnan: Respect rules for use of AC_LIBOBJ.
19609         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19610         invocations here.
19611         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19612         REPLACE_ISNAN.
19613         * modules/isnand (configure.ac): Likewise.
19614         * modules/isnanl (configure.ac): Likewise.
19615
19616 2011-05-20  Bruno Haible  <bruno@clisp.org>
19617
19618         isnanl*: Respect rules for use of AC_LIBOBJ.
19619         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19620         invocation from here...
19621         * modules/isnanl (configure.ac): ... to here.
19622         * modules/isnanl-nolibm (configure.ac): ... and here.
19623
19624 2011-05-20  Bruno Haible  <bruno@clisp.org>
19625
19626         isnand*: Move AC_LIBOBJ invocations to module description.
19627         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19628         invocation from here...
19629         * modules/isnand (configure.ac): ... to here.
19630         * modules/isnand-nolibm (configure.ac): ... and here.
19631
19632 2011-05-20  Bruno Haible  <bruno@clisp.org>
19633
19634         isnanf*: Move AC_LIBOBJ invocations to module description.
19635         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19636         invocation from here...
19637         * modules/isnanf (configure.ac): ... to here.
19638         * modules/isnanf-nolibm (configure.ac): ... and here.
19639
19640 2011-05-20  Bruno Haible  <bruno@clisp.org>
19641
19642         isnan*: Separate the AC_LIBOBJ invocations.
19643         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19644         AC_LIBOBJ invocation.
19645         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19646         here.
19647         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19648         AC_LIBOBJ invocation.
19649         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19650         here.
19651         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19652         AC_LIBOBJ invocation.
19653         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19654         here.
19655         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19656
19657 2011-05-08  Bruno Haible  <bruno@clisp.org>
19658
19659         isinf: Move AC_LIBOBJ invocations to module description.
19660         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19661         * modules/isinf (configure.ac): ... to here.
19662
19663 2011-05-08  Bruno Haible  <bruno@clisp.org>
19664
19665         isfinite: Move AC_LIBOBJ invocations to module description.
19666         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19667         * modules/isfinite (configure.ac): ... to here.
19668
19669 2011-05-08  Bruno Haible  <bruno@clisp.org>
19670
19671         isblank: Move AC_LIBOBJ invocations to module description.
19672         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19673         here...
19674         * modules/isblank (configure.ac): ... to here.
19675
19676 2011-05-08  Bruno Haible  <bruno@clisp.org>
19677
19678         isapipe: Move AC_LIBOBJ invocations to module description.
19679         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19680         gl_PREREQ_ISAPIPE invocations from here...
19681         * modules/isapipe (configure.ac): ... to here.
19682         (Depends-on): Update condition.
19683
19684 2011-05-08  Bruno Haible  <bruno@clisp.org>
19685
19686         ioctl: Move AC_LIBOBJ invocations to module description.
19687         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19688         invocations from here...
19689         * modules/ioctl (configure.ac): ... to here.
19690         (Depends-on): Update condition.
19691
19692 2011-05-08  Bruno Haible  <bruno@clisp.org>
19693
19694         imaxdiv: Move AC_LIBOBJ invocations to module description.
19695         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19696         invocations from here...
19697         * modules/imaxdiv (configure.ac): ... to here.
19698
19699 2011-05-08  Bruno Haible  <bruno@clisp.org>
19700
19701         imaxabs: Move AC_LIBOBJ invocations to module description.
19702         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19703         invocations from here...
19704         * modules/imaxabs (configure.ac): ... to here.
19705
19706 2011-05-08  Bruno Haible  <bruno@clisp.org>
19707
19708         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19710         AC_LIBOBJ invocations from here...
19711         * modules/getaddrinfo (configure.ac): ... to here.
19712         (Depends-on): Add conditions.
19713
19714 2011-05-08  Bruno Haible  <bruno@clisp.org>
19715
19716         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19717         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19718         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19719         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19720         (gl_PREREQ_INET_PTON): ... from here.
19721         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19722         gl_PREREQ_INET_PTON here.
19723         (Depends-on): Update condition.
19724
19725 2011-05-08  Bruno Haible  <bruno@clisp.org>
19726
19727         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19729         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19730         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19731         (gl_PREREQ_INET_NTOP): ... from here.
19732         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19733         gl_PREREQ_INET_NTOP here.
19734         (Depends-on): Update condition.
19735
19736 2011-05-08  Bruno Haible  <bruno@clisp.org>
19737
19738         iconv_open: Move AC_LIBOBJ invocations to module description.
19739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19740         AC_LIBOBJ invocations from here...
19741         * modules/iconv_open (configure.ac): ... to here.
19742
19743 2011-05-08  Bruno Haible  <bruno@clisp.org>
19744
19745         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19746         If module 'iconv_open' is among the main modules and module
19747         'iconv_open-utf' is among the tests dependencies, then
19748         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19749         return the special iconv_t values. Therefore iconv() and iconv_close()
19750         must support these special iconv_t values, already in lib, not only in
19751         tests.
19752         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19754         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19755         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19756         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19757         (Depends-on): Add the dependencies of iconv_open-utf.
19758         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19759         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19760         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19761
19762 2011-05-08  Bruno Haible  <bruno@clisp.org>
19763
19764         group-member: Move AC_LIBOBJ invocations to module description.
19765         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19766         gl_PREREQ_GROUP_MEMBER invocations from here...
19767         * modules/group-member (configure.ac): ... to here.
19768
19769 2011-05-08  Bruno Haible  <bruno@clisp.org>
19770
19771         grantpt: Move AC_LIBOBJ invocations to module description.
19772         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19773         invocations from here...
19774         * modules/grantpt (configure.ac): ... to here.
19775
19776 2011-05-08  Bruno Haible  <bruno@clisp.org>
19777
19778         glob: Move AC_LIBOBJ invocations to module description.
19779         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19780         from here...
19781         * modules/glob (configure.ac): ... to here.
19782
19783 2011-05-08  Bruno Haible  <bruno@clisp.org>
19784
19785         getusershell: Move AC_LIBOBJ invocations to module description.
19786         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19787         Move AC_LIBOBJ invocation from here...
19788         * modules/getusershell (configure.ac): ... to here.
19789         (Depends-on): Update condition.
19790
19791 2011-05-08  Bruno Haible  <bruno@clisp.org>
19792
19793         gettimeofday: Move AC_LIBOBJ invocations to module description.
19794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19795         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19796         gl_PREREQ_GETTIMEOFDAY invocations from here...
19797         * modules/gettimeofday (configure.ac): ... to here.
19798
19799 2011-05-08  Bruno Haible  <bruno@clisp.org>
19800
19801         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19802         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19803         just gl_FUNC_TZSET.
19804         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19805         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19807         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19808
19809 2011-05-08  Bruno Haible  <bruno@clisp.org>
19810
19811         getsubopt: Move AC_LIBOBJ invocations to module description.
19812         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19813         gl_PREREQ_GETSUBOPT invocations from here...
19814         * modules/getsubopt (configure.ac): ... to here.
19815
19816 2011-05-08  Bruno Haible  <bruno@clisp.org>
19817
19818         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19819         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19820         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19821         * modules/getpass-gnu (configure.ac): ... to here.
19822
19823 2011-05-08  Bruno Haible  <bruno@clisp.org>
19824
19825         getpass: Move AC_LIBOBJ invocations to module description.
19826         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19827         gl_PREREQ_GETPASS invocations from here...
19828         * modules/getpass (configure.ac): ... to here.
19829
19830 2011-05-08  Bruno Haible  <bruno@clisp.org>
19831
19832         getpagesize: Move AC_LIBOBJ invocations to module description.
19833         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19834         from here...
19835         * modules/getpagesize (configure.ac): ... to here.
19836
19837 2011-05-08  Bruno Haible  <bruno@clisp.org>
19838
19839         getopt: Move AC_LIBOBJ invocations to module description.
19840         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19841         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19842         invocations from here...
19843         * modules/getopt-gnu (configure.ac): ... to here.
19844         * modules/getopt-posix (configure.ac): ... and here.
19845         (Depends-on): Update condition.
19846
19847 2011-05-08  Bruno Haible  <bruno@clisp.org>
19848
19849         getopt, argp: Respect rules for use of AC_LIBOBJ.
19850         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19851         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19852         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19853         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19854
19855 2011-05-08  Bruno Haible  <bruno@clisp.org>
19856
19857         getlogin_r: Move AC_LIBOBJ invocations to module description.
19858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19859         gl_PREREQ_GETLOGIN_R invocations from here...
19860         * modules/getlogin_r (configure.ac): ... to here.
19861
19862 2011-05-08  Bruno Haible  <bruno@clisp.org>
19863
19864         getlogin: Move AC_LIBOBJ invocations to module description.
19865         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19866         here...
19867         * modules/getlogin (configure.ac): ... to here.
19868
19869 2011-05-08  Bruno Haible  <bruno@clisp.org>
19870
19871         getloadavg: Move AC_LIBOBJ invocations to module description.
19872         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19873         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19874         * modules/getloadavg (configure.ac): ... to here.
19875
19876 2011-05-08  Bruno Haible  <bruno@clisp.org>
19877
19878         gethrxtime: Move AC_LIBOBJ invocations to module description.
19879         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19880         LIB_GETHRXTIME from here...
19881         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19882         invocations from here...
19883         * modules/gethrxtime (configure.ac): ... to here.
19884
19885 2011-05-08  Bruno Haible  <bruno@clisp.org>
19886
19887         gethostname: Move AC_LIBOBJ invocations to module description.
19888         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19889         gl_PREREQ_GETHOSTNAME invocations from here...
19890         * modules/gethostname (configure.ac): ... to here.
19891
19892 2011-05-08  Bruno Haible  <bruno@clisp.org>
19893
19894         getgroups: Move AC_LIBOBJ invocations to module description.
19895         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19896         here...
19897         * modules/getgroups (configure.ac): ... to here.
19898
19899 2011-05-08  Bruno Haible  <bruno@clisp.org>
19900
19901         getdtablesize: Move AC_LIBOBJ invocations to module description.
19902         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19903         invocation from here...
19904         * modules/getdtablesize (configure.ac): ... to here.
19905
19906 2011-05-08  Bruno Haible  <bruno@clisp.org>
19907
19908         getdomainname: Move AC_LIBOBJ invocations to module description.
19909         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19910         gl_PREREQ_GETDOMAINNAME invocations from here...
19911         * modules/getdomainname (configure.ac): ... to here.
19912
19913 2011-05-08  Bruno Haible  <bruno@clisp.org>
19914
19915         getline: Move AC_LIBOBJ invocations to module description.
19916         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19917         invocations from here...
19918         * modules/getline (configure.ac): ... to here.
19919
19920 2011-05-08  Bruno Haible  <bruno@clisp.org>
19921
19922         getline: Simplify.
19923         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19924         It's already handled through the module dependency.
19925
19926 2011-05-08  Bruno Haible  <bruno@clisp.org>
19927
19928         getdelim: Move AC_LIBOBJ invocations to module description.
19929         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19930         and gl_PREREQ_GETDELIM invocations from here...
19931         * modules/getdelim (configure.ac): ... to here.
19932         (Depends-on): Fix condition.
19933
19934 2011-05-08  Bruno Haible  <bruno@clisp.org>
19935
19936         getcwd: Move AC_LIBOBJ invocations to module description.
19937         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19938         invocations from here...
19939         * modules/getcwd (configure.ac): ... to here.
19940
19941 2011-05-08  Bruno Haible  <bruno@clisp.org>
19942
19943         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19944         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19945         here...
19946         * modules/getcwd-lgpl (configure.ac): ... to here.
19947
19948 2011-05-07  Bruno Haible  <bruno@clisp.org>
19949
19950         crypto/gc: Move AC_LIBOBJ invocations to module description.
19951         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19952         * modules/crypto/gc (configure.ac): ... to here.
19953
19954 2011-05-07  Bruno Haible  <bruno@clisp.org>
19955
19956         fwriting: Move AC_LIBOBJ invocations to module description.
19957         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19958         here...
19959         * modules/fwriting (configure.ac): ... to here.
19960
19961 2011-05-07  Bruno Haible  <bruno@clisp.org>
19962
19963         fwritable: Move AC_LIBOBJ invocations to module description.
19964         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19965         here...
19966         * modules/fwritable (configure.ac): ... to here.
19967
19968 2011-05-07  Bruno Haible  <bruno@clisp.org>
19969
19970         futimens: Move AC_LIBOBJ invocations to module description.
19971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19972         here...
19973         * modules/futimens (configure.ac): ... to here.
19974
19975 2011-05-07  Bruno Haible  <bruno@clisp.org>
19976
19977         ftruncate: Move AC_LIBOBJ invocations to module description.
19978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19979         gl_PREREQ_FTRUNCATE invocations from here...
19980         * modules/ftruncate (configure.ac): ... to here.
19981
19982 2011-05-07  Bruno Haible  <bruno@clisp.org>
19983
19984         fsync: Move AC_LIBOBJ invocations to module description.
19985         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19986         invocations from here...
19987         * modules/fsync (configure.ac): ... to here.
19988
19989 2011-05-07  Bruno Haible  <bruno@clisp.org>
19990
19991         fsusage: Move AC_LIBOBJ invocations to module description.
19992         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19993         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19994         * modules/fsusage (configure.ac): ... to here.
19995
19996 2011-05-07  Bruno Haible  <bruno@clisp.org>
19997
19998         freopen: Move AC_LIBOBJ invocations to module description.
19999         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20000         invocations from here...
20001         * modules/freopen (configure.ac): ... to here.
20002
20003 2011-05-07  Bruno Haible  <bruno@clisp.org>
20004
20005         free: Move AC_LIBOBJ invocations to module description.
20006         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20007         invocations from here...
20008         * modules/free (configure.ac): ... to here.
20009
20010 2011-05-07  Bruno Haible  <bruno@clisp.org>
20011
20012         freadable: Move AC_LIBOBJ invocations to module description.
20013         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20014         here...
20015         * modules/freadable (configure.ac): ... to here.
20016
20017 2011-05-07  Bruno Haible  <bruno@clisp.org>
20018
20019         fpurge: Move AC_LIBOBJ invocations to module description.
20020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20021         invocations from here...
20022         * modules/fpurge (configure.ac): ... to here.
20023
20024 2011-05-07  Bruno Haible  <bruno@clisp.org>
20025
20026         fpending: Move AC_LIBOBJ invocations to module description.
20027         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20028         gl_FUNC_FPENDING.
20029         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20030         invocations from here...
20031         * modules/fpending (configure.ac): ... to here.
20032
20033 2011-05-07  Bruno Haible  <bruno@clisp.org>
20034
20035         fopen: Move AC_LIBOBJ invocations to module description.
20036         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20037         invocations from here...
20038         * modules/fopen (configure.ac): ... to here.
20039
20040 2011-05-07  Bruno Haible  <bruno@clisp.org>
20041
20042         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20043         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20044         gl_FUNC_FNMATCH_POSIX.
20045         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20046         invocations from here...
20047         * modules/fnmatch (configure.ac): ... to here.
20048         * modules/fnmatch-gnu (configure.ac): ... and here.
20049
20050 2011-05-07  Bruno Haible  <bruno@clisp.org>
20051
20052         flock: Move AC_LIBOBJ invocations to module description.
20053         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20054         invocations from here...
20055         * modules/flock (configure.ac): ... to here.
20056
20057 2011-05-07  Bruno Haible  <bruno@clisp.org>
20058
20059         fileblocks: Move AC_LIBOBJ invocations to module description.
20060         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20061         gl_PREREQ_FILEBLOCKS invocations from here...
20062         * modules/fileblocks (configure.ac): ... to here.
20063
20064 2011-05-06  Bruno Haible  <bruno@clisp.org>
20065
20066         fflush: Move AC_LIBOBJ invocations to module description.
20067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20068         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20069         invocations from here...
20070         * modules/fflush (configure.ac): ... to here.
20071
20072 2011-05-06  Bruno Haible  <bruno@clisp.org>
20073
20074         fdopendir: Move AC_LIBOBJ invocations to module description.
20075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20076         here...
20077         * modules/fdopendir (configure.ac): ... to here.
20078         (Depends-on): Improve conditions.
20079
20080 2011-05-06  Bruno Haible  <bruno@clisp.org>
20081
20082         _Exit: Move AC_LIBOBJ invocations to module description.
20083         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20084         invocations from here...
20085         * modules/_Exit (configure.ac): ... to here.
20086
20087 2011-05-21  Bruno Haible  <bruno@clisp.org>
20088
20089         euidaccess: Respect rules for use of AC_LIBOBJ.
20090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20092         from here...
20093         * modules/euidaccess (configure.ac): ... to here.
20094
20095 2011-05-06  Bruno Haible  <bruno@clisp.org>
20096
20097         error: Move AC_LIBOBJ invocations to module description.
20098         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20099         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20100         invocations from here...
20101         * modules/error (configure.ac): ... to here.
20102
20103 2011-05-06  Bruno Haible  <bruno@clisp.org>
20104
20105         duplocale: Move AC_LIBOBJ invocations to module description.
20106         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20107         gl_PREREQ_DUPLOCALE invocations from here...
20108         * modules/duplocale (configure.ac): ... to here.
20109
20110 2011-05-05  Bruno Haible  <bruno@clisp.org>
20111
20112         dirfd: Move AC_LIBOBJ invocations to module description.
20113         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20114         gl_FUNC_DIRFD.
20115         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20116         here...
20117         * modules/dirfd (configure.ac): ... to here.
20118         (Depends-on): Fix condition.
20119
20120 2011-05-05  Bruno Haible  <bruno@clisp.org>
20121
20122         chown: Respect rules for use of AC_LIBOBJ.
20123         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20124         * modules/chown (configure.ac): ... to here.
20125
20126 2011-05-05  Bruno Haible  <bruno@clisp.org>
20127
20128         chdir-long: Move AC_LIBOBJ invocations to module description.
20129         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20130         gl_PREREQ_CHDIR_LONG invocations from here...
20131         * modules/chdir-long (configure.ac): ... to here.
20132
20133 2011-05-05  Bruno Haible  <bruno@clisp.org>
20134
20135         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20136         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20137         from here...
20138         * modules/canonicalize-lgpl (configure.ac): ... to here.
20139
20140 2011-05-05  Bruno Haible  <bruno@clisp.org>
20141
20142         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20143         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20144         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20145         REPLACE_CALLOC.
20146         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20147         * modules/calloc-gnu (configure.ac): Likewise.
20148
20149 2011-05-05  Bruno Haible  <bruno@clisp.org>
20150
20151         btowc: Move AC_LIBOBJ invocations to module description.
20152         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20153         invocations from here...
20154         * modules/btowc (configure.ac): ... to here.
20155
20156 2011-05-21  Bruno Haible  <bruno@clisp.org>
20157
20158         atexit: Move AC_LIBOBJ invocations to module description.
20159         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20161         here...
20162         * modules/atexit (configure.ac): ... to here.
20163
20164 2011-05-05  Bruno Haible  <bruno@clisp.org>
20165
20166         atoll: Move AC_LIBOBJ invocations to module description.
20167         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20168         invocations from here...
20169         * modules/atoll (configure.ac): ... to here.
20170
20171 2011-05-05  Bruno Haible  <bruno@clisp.org>
20172
20173         argz: Move AC_LIBOBJ invocations to module description.
20174         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20175         * modules/argz (configure.ac): ... to here.
20176
20177 2011-05-05  Bruno Haible  <bruno@clisp.org>
20178
20179         alphasort: Move AC_LIBOBJ invocations to module description.
20180         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20181         gl_PREREQ_ALPHASORT invocations from here...
20182         * modules/alphasort (configure.ac): ... to here.
20183
20184 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20185
20186         verify: new macro verify_expr; verify_true deprecated
20187         * NEWS: Mention this.
20188         * doc/verify.texi (Compile-time Assertions): Document this.
20189         * lib/verify.h (verify_true): Deprecate.
20190         (verify_expr): New macro.
20191         * tests/test-verify.c (function): Test verify_expr.
20192
20193 2011-06-14  Jim Meyering  <meyering@redhat.com>
20194
20195         init.sh: give more portable redirection-related advice in a comment
20196         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20197         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20198         for lots of discussion.  Stefano Lattarini suggested the solution
20199         of putting "9>&2" after the command.  Reported by Bruno Haible.
20200
20201 2011-06-13  Bruno Haible  <bruno@clisp.org>
20202
20203         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20205         'none'.
20206
20207 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         ftoastr: use strtof only if HAVE_STRTOF
20210         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20212         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20213         * modules/ftoastr (configure.ac): Check for strtof.
20214
20215 2011-06-13  Bruno Haible  <bruno@clisp.org>
20216
20217         gnulib-tool: Addendum to 2011-06-08 commit.
20218         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20219         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20220
20221 2011-06-13  Bruno Haible  <bruno@clisp.org>
20222
20223         fseeko: Provide a non-inline replacement of fseek().
20224         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20225         * modules/fseeko (Depends-on): Add fseek.
20226         * modules/fseek (License): Change to LGPLv2+.
20227
20228 2011-06-13  Bruno Haible  <bruno@clisp.org>
20229
20230         ftello: Provide a non-inline replacement of ftell().
20231         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20232         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20233         not have ftello() (such as on mingw).
20234         * modules/ftello (Depends-on): Add ftell.
20235         * modules/ftell (License): Change to LGPLv2+.
20236
20237 2011-05-07  Bruno Haible  <bruno@clisp.org>
20238
20239         ftell: Move AC_LIBOBJ invocations to module description.
20240         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20241         * modules/ftell (configure.ac): ... to here.
20242
20243 2011-05-07  Bruno Haible  <bruno@clisp.org>
20244
20245         ftello: Respect rules for use of AC_LIBOBJ.
20246         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20247         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20248         here...
20249         * modules/ftello (configure.ac): ... to here.
20250
20251 2011-05-07  Bruno Haible  <bruno@clisp.org>
20252
20253         fseeko: Simplify.
20254         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20255         (gl_FUNC_FSEEKO): Inline it here.
20256
20257 2011-05-07  Bruno Haible  <bruno@clisp.org>
20258
20259         fseek: Move AC_LIBOBJ invocations to module description.
20260         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20261         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20262         * modules/fseek (configure.ac): ... to here.
20263
20264 2011-05-07  Bruno Haible  <bruno@clisp.org>
20265
20266         fseek: Respect rules for use of AC_LIBOBJ.
20267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20268         here...
20269         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20270
20271 2011-05-07  Bruno Haible  <bruno@clisp.org>
20272
20273         fseeko: Respect rules for use of AC_LIBOBJ.
20274         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20275         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20276         here...
20277         * modules/fseeko (configure.ac): ... to here.
20278
20279 2011-06-13  Bruno Haible  <bruno@clisp.org>
20280
20281         gnulib-tool: Allow comments in the 'Depends-on' section.
20282         * doc/gnulib.texi (Module description): Mention comment syntax in the
20283         Depends-on section.
20284         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20285
20286 2011-06-13  Bruno Haible  <bruno@clisp.org>
20287
20288         file-set.h: guard __attibute__ use, now that it's not always defined
20289         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20290         versions that support it.  This fixes a coreutils build failure with
20291         the vendor cc on HP-UX 11.31.
20292
20293 2011-06-12  Bruno Haible  <bruno@clisp.org>
20294
20295         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20296         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20297         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20298         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20299         (acl, aclsort): New declarations.
20300         (aclv_nontrivial): New declaration.
20301         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20302         (file_has_acl): Read also the second kind of HP-UX ACLs.
20303         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20304         kind of HP-UX ACLs if the first kind fails.
20305         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20306         second kind of HP-UX ACLs.
20307         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20308         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20309         agree.
20310         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20311         hpuxjfs.
20312         Handle hpuxjfs.
20313         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20314         hpuxjfs.
20315         Handle hpuxjfs.
20316         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20317         (func_test_same_acls): Use both lsacl and getacl.
20318         Handle hpuxjfs.
20319         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20320         (func_test_same_acls): Use both lsacl and getacl.
20321         Handle hpuxjfs.
20322
20323 2011-06-12  Bruno Haible  <bruno@clisp.org>
20324
20325         acl: Complete the 2010-08-10 fix.
20326         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20327         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20328         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20329         explicitly.
20330         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20331         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20332
20333 2011-06-12  Bruno Haible  <bruno@clisp.org>
20334
20335         spawn-pipe tests: Comments.
20336         * tests/test-spawn-pipe-child.c (main): Update comment.
20337         Reported by James Youngman <jay@gnu.org>.
20338
20339 2011-06-11  James Youngman  <jay@gnu.org>
20340
20341         New module 'stat-size'.
20342         * modules/stat-size: New module.  Provides macros for accessing
20343         file size information in instances of struct stat.  Depends on the
20344         fileblocks module because it calls st_blocks.
20345         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20346         * doc/gnulib.texi: Include stat-size.texi.
20347         * doc/stat-size.texi: Documentation for this module.
20348         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20349         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20350         AC_STRUCT_ST_BLOCKS.
20351
20352 2011-06-09  Bruno Haible  <bruno@clisp.org>
20353
20354         thread: Support pthreads-win32.
20355         * lib/glthread/thread.h (gl_thread_self): Define differently on
20356         pthreads-win32.
20357         (gl_null_thread): New declaration.
20358         (gl_thread_self_pointer): New macro.
20359         * lib/glthread/thread.c (gl_null_thread): New constant.
20360         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20361         gl_thread_self.
20362         * tests/test-tls.c: Likewise.
20363         Suggested by Paul Eggert. Reported by Eric Blake.
20364
20365 2011-06-09  Bruno Haible  <bruno@clisp.org>
20366
20367         thread: Fix confusion between NULL and 0.
20368         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20369         Reported by Paul Eggert.
20370
20371 2011-06-09  Bruno Haible  <bruno@clisp.org>
20372
20373         spawn-pipe tests: Avoid test failure on HP-UX 11.
20374         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20375         is closed.
20376
20377 2011-06-09  Bruno Haible  <bruno@clisp.org>
20378
20379         acl tests: Fix compilation error on HP-UX 11.
20380         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20381
20382 2011-06-09  Bruno Haible  <bruno@clisp.org>
20383
20384         rmdir: Avoid test failure on HP-UX 10.20.
20385         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20386         EEXIST.
20387
20388 2011-06-08  Eric Blake  <eblake@redhat.com>
20389
20390         perror: fix test on mingw
20391         * modules/perror-tests (Depends-on): Add dup2.
20392
20393         strerror_r-posix: fix on MacOS
20394         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20396         logic bug.
20397         * lib/strerror_r.c (strerror_r): Fix the bug.
20398         * lib/strerror.c (strerror): Likewise.
20399         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20400         problem.
20401         * doc/posix-functions/strerror.texi (strerror): Likewise.
20402         * doc/posix-functions/perror.texi (perror): Likewise.
20403         * tests/test-strerror.c (main): Enhance test.
20404         * tests/test-strerror_r.c (main): Likewise.
20405
20406 2011-06-08  Bruno Haible  <bruno@clisp.org>
20407
20408         gnulib-tool: Better isolation between different gnulib-tool invocations.
20409         * gnulib-tool: New option --witness-c-macro.
20410         (witness_c_macro): New variable.
20411         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20412         AM_CPPFLAGS define it as a C macro.
20413         (func_emit_tests_Makefile_am): Likewise.
20414         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20415         read it from there.
20416         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20417         m4_define, not AC_DEFUN.
20418         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20419         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20420         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20421         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20422         s|...|...|, to substitute the values of the GNULIB_* module indicator
20423         variables.
20424         * modules/dirent (Makefile.am): Likewise.
20425         * modules/fcntl-h (Makefile.am): Likewise.
20426         * modules/iconv-h (Makefile.am): Likewise.
20427         * modules/langinfo (Makefile.am): Likewise.
20428         * modules/locale (Makefile.am): Likewise.
20429         * modules/math (Makefile.am): Likewise.
20430         * modules/netdb (Makefile.am): Likewise.
20431         * modules/poll-h (Makefile.am): Likewise.
20432         * modules/pty (Makefile.am): Likewise.
20433         * modules/search (Makefile.am): Likewise.
20434         * modules/signal (Makefile.am): Likewise.
20435         * modules/spawn (Makefile.am): Likewise.
20436         * modules/stdio (Makefile.am): Likewise.
20437         * modules/stdlib (Makefile.am): Likewise.
20438         * modules/string (Makefile.am): Likewise.
20439         * modules/sys_ioctl (Makefile.am): Likewise.
20440         * modules/sys_select (Makefile.am): Likewise.
20441         * modules/sys_socket (Makefile.am): Likewise.
20442         * modules/sys_stat (Makefile.am): Likewise.
20443         * modules/sys_times (Makefile.am): Likewise.
20444         * modules/sys_utsname (Makefile.am): Likewise.
20445         * modules/sys_wait (Makefile.am): Likewise.
20446         * modules/termios (Makefile.am): Likewise.
20447         * modules/time (Makefile.am): Likewise.
20448         * modules/unistd (Makefile.am): Likewise.
20449         * modules/wchar (Makefile.am): Likewise.
20450
20451 2011-06-08  Eric Blake  <eblake@redhat.com>
20452
20453         strerror: simplify replacement
20454         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20455         * modules/strerror (configure.ac): No prereqs needed here...
20456         * modules/strerror-override (configure.ac): ...but this needs it.
20457         (Files): Add file for needed prereq macro.
20458
20459 2011-06-08  Bruno Haible  <bruno@clisp.org>
20460
20461         strerror_r-posix: Tweaks.
20462         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20463         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20464         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20465         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20466         (gl_FUNC_STRERROR_R): ... to here.
20467         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20468
20469 2011-06-07  Eric Blake  <eblake@redhat.com>
20470
20471         perror: document fixed bugs
20472         * doc/posix-functions/perror.texi (perror): Document recent
20473         patches.
20474
20475 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20476
20477         stat-time: get_stat_birthtime failure is better-defined
20478         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20479         return a timestamp whose tv_sec and tv_nsec values are both -1.
20480         Previously, the spec said only that the tv_nsec value was negative.
20481         This upward-compatible change simplifies GNU tar a bit.
20482
20483 2011-06-07  Eric Blake  <eblake@redhat.com>
20484
20485         strerror_r-posix: work around cygwin 1.7.9
20486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20487         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20488         bug without replacing strerror_r.
20489         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20490         strerror_r is buggy, but without requiring strerror_r compilation.
20491         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20492
20493         test-perror: relax test to ignore cygwin bug
20494         * tests/test-perror2.c (main): Relax test on requiring detection
20495         of stream errors, and use unbuffered stream.
20496         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20497         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20498         * doc/posix-functions/fputc.texi (fputc): Likewise.
20499         * doc/posix-functions/fputs.texi (fputs): Likewise.
20500         * doc/posix-functions/fputws.texi (fputws): Likewise.
20501         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20502         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20503         * doc/posix-functions/getopt.texi (getopt): Likewise.
20504         * doc/posix-functions/perror.texi (perror): Likewise.
20505         * doc/posix-functions/printf.texi (printf): Likewise.
20506         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20507         * doc/posix-functions/psignal.texi (psignal): Likewise.
20508         * doc/posix-functions/putc.texi (putc): Likewise.
20509         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20510         Likewise.
20511         * doc/posix-functions/putchar.texi (putchar): Likewise.
20512         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20513         Likewise.
20514         * doc/posix-functions/puts.texi (puts): Likewise.
20515         * doc/posix-functions/putwc.texi (putwc): Likewise.
20516         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20517         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20518         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20519         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20520         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20521         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20522         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20523         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20524
20525 2011-05-22  Bruno Haible  <bruno@clisp.org>
20526
20527         strerror: Move AC_LIBOBJ invocations to module description.
20528         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20529         gl_PREREQ_STRERROR invocations from here...
20530         * modules/strerror (configure.ac): ... to here.
20531
20532 2011-05-21  Bruno Haible  <bruno@clisp.org>
20533
20534         perror: Use common idiom.
20535         * modules/perror (configure.ac): Reorder statements.
20536
20537 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20538
20539         tests: fix usage message in 'mktempd_'
20540         * tests/init.sh (mktempd_): In the usage message, use literal
20541         'mktempd_', not '$ME' (which is even undefined), as the name of
20542         the subroutine.
20543
20544 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20545
20546         tests init: new function 'fatal_', for hard errors
20547         Before this patch, the only way offered by tests/init.sh to
20548         properly signal a hard error was the `framework_failure_'
20549         function.  But the error message issued by that function,
20550         as its name would suggest, refers to a set-up failure in the
20551         testsuite, while hard errors can obviously also be due to
20552         other reasons.  The best way to fix this inconsistency is to
20553         introduce a new function with a more general error message.
20554         * tests/init.sh (fatal_): New function.
20555
20556 2011-06-06  Eric Blake  <eblake@redhat.com>
20557
20558         canonicalize-lgpl: use common idiom
20559         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20560         over newer POSIX -Rf.
20561         Reported by Bruno Haible.
20562
20563         canonicalize-lgpl: work around AIX realpath bug
20564         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20565         * doc/posix-functions/realpath.texi (realpath): Document it.
20566         Reported by Bruno Haible.
20567
20568         strerror: work around FreeBSD bug
20569         * lib/strerror.c (strerror): Special case 0.
20570         Reported by Bruno Haible.
20571
20572         strerror-override: avoid bloating errno module
20573         * modules/errno (Files, configure.ac): Move replacement strings...
20574         * modules/strerror-override: ...to new module.
20575         * modules/strerror (Depends-on): Add strerror-override.
20576         * modules/strerror_r-posix (Depends-on): Likewise.
20577         * MODULES.html.sh: Document new module.
20578         Reported by Bruno Haible.
20579
20580 2011-06-06  Bruno Haible  <bruno@clisp.org>
20581
20582         spawn-pipe tests: Rename program.
20583         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20584         * tests/test-spawn-pipe-child.c: Update comment.
20585         * tests/test-spawn-pipe.sh: Update.
20586         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20587
20588         spawn-pipe tests: Link the child program only against libc.
20589         * tests/test-spawn-pipe-child.c: New file, extracted from
20590         tests/test-spawn-pipe.c.
20591         (main): Expect only one argument.
20592         (is_open): New function, copied from tests/test-pipe.c.
20593         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20594         (child_main): Remove function.
20595         (test_pipe): Pass only one argument to the child program.
20596         (main): Remove child process code. Expect the child program's name as
20597         first argument.
20598         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20599         argument.
20600         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20601         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20602         test-spawn-pipe-child against no libraries.
20603
20604 2011-06-06  Bruno Haible  <bruno@clisp.org>
20605
20606         careadlinkat: Avoid mismatch between ssize_t and int.
20607         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20608         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20609
20610 2011-06-06  Jim Meyering  <meyering@redhat.com>
20611
20612         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20613         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20614         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20615
20616 2011-06-05  Bruno Haible  <bruno@clisp.org>
20617
20618         ansi-c++-opt: Interoperability with libtool.
20619         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20620         set the variable to "no", not to ":".
20621         * NEWS: Mention the change.
20622
20623 2011-06-05  Bruno Haible  <bruno@clisp.org>
20624
20625         acl: Fix test failure on AIX 7.
20626         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20627         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20628
20629 2011-06-05  Bruno Haible  <bruno@clisp.org>
20630
20631         pipe-filter-ii: Fix test failure on AIX and IRIX.
20632         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20633         with EAGAIN, retry with a smaller buffer size.
20634
20635 2011-06-05  Bruno Haible  <bruno@clisp.org>
20636
20637         localename: Fix link dependencies.
20638         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20639         * modules/localename-tests (Makefile.am): Link test-localename with
20640         $(LIBTHREAD).
20641
20642 2011-06-05  Bruno Haible  <bruno@clisp.org>
20643
20644         error: Avoid gcc warning.
20645         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20646
20647 2011-06-05  Bruno Haible  <bruno@clisp.org>
20648
20649         unsetenv: Avoid gcc warning.
20650         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20651
20652 2011-06-05  Bruno Haible  <bruno@clisp.org>
20653
20654         setenv: Avoid gcc warning.
20655         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20656
20657 2011-06-05  Bruno Haible  <bruno@clisp.org>
20658
20659         sys_select: Ensure memset is declared also on AIX 7.
20660         * lib/sys_select.in.h: Include <string.h> also on AIX.
20661         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20662         self-contained also on AIX 7.1.
20663
20664 2011-06-04  Jim Meyering  <meyering@redhat.com>
20665
20666         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20667         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20668         function name, "error".
20669         (_gl_translatable_diag_func_re): New configurable variable.
20670
20671 2011-06-04  Bruno Haible  <bruno@clisp.org>
20672
20673         getopt: Avoid gcc warning.
20674         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20675
20676 2011-06-04  Bruno Haible  <bruno@clisp.org>
20677
20678         strerror_r: Fix comments.
20679         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20680         commit.
20681
20682 2011-06-04  Bruno Haible  <bruno@clisp.org>
20683
20684         perror: Fix compilation error.
20685         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20686         Undefine fprintf, not sprintf.
20687         * modules/perror (Depends-on): Remove intprops, verify.
20688
20689 2011-06-04  Bruno Haible  <bruno@clisp.org>
20690
20691         setlocale: Enable replacement on Cygwin 1.5.
20692         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20693         Cygwin 1.5.x.
20694         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20695         LC_CTYPE category also exists on Cygwin 1.5.x.
20696
20697 2011-06-04  Bruno Haible  <bruno@clisp.org>
20698
20699         strerror-override: Don't disable symbol renamings.
20700         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20701         * lib/strerror-override.c: Include config.h.
20702         (strerror_override): Don't undefine.
20703
20704 2011-06-03  Bruno Haible  <bruno@clisp.org>
20705
20706         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20707         * lib/localename.h: Update copyright header.
20708         * lib/localename.c: Likewise.
20709         * lib/relocatable.h: Likewise.
20710         * lib/relocatable.c: Likewise.
20711
20712 2011-06-02  Bruno Haible  <bruno@clisp.org>
20713
20714         doc: Fix a module name.
20715         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20716
20717 2011-06-02  Bruno Haible  <bruno@clisp.org>
20718
20719         pipe2: Remove dependency on 'nonblocking' module.
20720         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20721         O_NONBLOCK is defined by gnulib.
20722         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20723         is zero.
20724         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20725         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20726         defined by gnulib.
20727         (get_nonblocking_flag): New function.
20728         (main): Test O_NONBLOCK flag only if it is nonzero.
20729         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20730
20731 2011-06-03  Jim Meyering  <meyering@redhat.com>
20732
20733         maint: three new prohibit-header-without-use rules
20734         Prohibit use of cloexec.h, posixver.h, same.h without use.
20735         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20736         (sc_prohibit_posixver_without_use): Likewise.
20737         (sc_prohibit_same_without_use): Likewise.
20738
20739 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20740
20741         allocator: 'die' routine is now given requested size
20742         * lib/allocator.h (struct allocator.die): New size arg.
20743         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20744         If the actual problem is an ssize_t limitation, not a size_t or
20745         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20746
20747 2011-06-01  Eric Blake  <eblake@redhat.com>
20748
20749         strerror: drop strerror_r dependency
20750         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20751         * lib/strerror-override.c (strerror_override): ...to new file.
20752         * lib/strerror-override.h: Add prototype.
20753         * lib/strerror-impl.h: Delete.
20754         * lib/strerror.c (strerror): New implementation.
20755         * modules/errno (Files): Add new files.
20756         (configure.ac): Compile new file as appropriate.
20757         * modules/strerror (Files): Drop unused file.
20758         (Depends-on): Drop strerror_r-posix.
20759         * MODULES.html.sh: Document strerror_r-posix.
20760         Requested by Sam Steingold.
20761
20762         perror: call strerror_r directly
20763         * modules/perror (Files): Drop strerror-impl.h.
20764         * lib/perror.c (perror): Use our own stack buffer, rather than
20765         calling a wrapper that uses static storage.
20766         * doc/posix-functions/perror.texi (perror): Document a limitation
20767         of our replacement.
20768
20769         strerror_r: fix includes for FreeBSD
20770         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20771         since we use abort on some platforms.
20772         Reported by Matthias Bolte.
20773
20774 2011-05-31  Bruno Haible  <bruno@clisp.org>
20775
20776         Fix link errors in tests: openat-die uses gettext-h.
20777         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20778         against $(LIBINTL).
20779         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20780         against $(LIBINTL).
20781         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20782         $(LIBINTL).
20783         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20784         against $(LIBINTL).
20785         * modules/linkat-tests (Makefile.am): Link test-linkat against
20786         $(LIBINTL).
20787         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20788         $(LIBINTL).
20789         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20790         against $(LIBINTL).
20791         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20792         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20793         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20794         $(LIBINTL).
20795         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20796         $(LIBINTL).
20797         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20798         $(LIBINTL).
20799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20800
20801 2011-05-31  Bruno Haible  <bruno@clisp.org>
20802
20803         Fix link errors in tests: wait-process uses gettext-h.
20804         * modules/nonblocking-pipe-tests (Makefile.am): Set
20805         test_nonblocking_pipe_main_LDADD.
20806         * modules/nonblocking-socket-tests (Makefile.am): Link
20807         test-nonblocking-socket-main against $(LIBINTL).
20808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20809
20810 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20811
20812         assert-h: work around 'verify' incompatibility
20813         * lib/verify.h: Use @...@ directives, not ifdef.
20814         * modules/assert-h (assert.h): Implement the directives.
20815         (assert.h): Substitute the symbol-prefix more consistently.
20816
20817 2011-05-29  Jim Meyering  <meyering@redhat.com>
20818
20819         trim: remove three superfluous assignments
20820         * lib/trim.c (trim2): Remove three superfluous assignments
20821         and correct brace positioning.
20822
20823 2011-05-29  Bruno Haible  <bruno@clisp.org>
20824
20825         wctype-h: Avoid namespace pollution on Solaris 2.6.
20826         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20827         identifiers.
20828         * doc/posix-headers/wctype.texi: Mention the problem.
20829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20830
20831 2011-05-28  Jim Meyering  <meyering@redhat.com>
20832
20833         parse-datetime.y: accommodate -Wstrict-overflow
20834         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20835         placate -Wstrict-overflow.
20836
20837         trim: avoid a warning from -O2 -Wstrict-overflow
20838         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20839
20840 2011-05-29  Bruno Haible  <bruno@clisp.org>
20841
20842         gnulib-tool: Fix bug in yesterday's commit.
20843         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20844         twice.
20845
20846 2011-05-29  Bruno Haible  <bruno@clisp.org>
20847
20848         Allow multiple gnulib generated include files to be combined.
20849         * gnulib-tool (func_compute_include_guard_prefix): New function.
20850         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20851         ${gl_include_guard_prefix} references.
20852         (func_import, func_create_testdir): Invoke
20853         func_compute_include_guard_prefix.
20854         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20855         * lib/ctype.in.h: Likewise.
20856         * lib/dirent.in.h: Likewise.
20857         * lib/errno.in.h: Likewise.
20858         * lib/fcntl.in.h: Likewise.
20859         * lib/float.in.h: Likewise.
20860         * lib/getopt.in.h: Likewise.
20861         * lib/iconv.in.h: Likewise.
20862         * lib/langinfo.in.h: Likewise.
20863         * lib/locale.in.h: Likewise.
20864         * lib/math.in.h: Likewise.
20865         * lib/netdb.in.h: Likewise.
20866         * lib/netinet_in.in.h: Likewise.
20867         * lib/poll.in.h: Likewise.
20868         * lib/pthread.in.h: Likewise.
20869         * lib/pty.in.h: Likewise.
20870         * lib/sched.in.h: Likewise.
20871         * lib/se-selinux.in.h: Likewise.
20872         * lib/search.in.h: Likewise.
20873         * lib/signal.in.h: Likewise.
20874         * lib/spawn.in.h: Likewise.
20875         * lib/stdarg.in.h: Likewise.
20876         * lib/stddef.in.h: Likewise.
20877         * lib/stdint.in.h: Likewise.
20878         * lib/stdio.in.h: Likewise.
20879         * lib/stdlib.in.h: Likewise.
20880         * lib/string.in.h: Likewise.
20881         * lib/strings.in.h: Likewise.
20882         * lib/sys_file.in.h: Likewise.
20883         * lib/sys_ioctl.in.h: Likewise.
20884         * lib/sys_select.in.h: Likewise.
20885         * lib/sys_socket.in.h: Likewise.
20886         * lib/sys_stat.in.h: Likewise.
20887         * lib/sys_time.in.h: Likewise.
20888         * lib/sys_times.in.h: Likewise.
20889         * lib/sys_uio.in.h: Likewise.
20890         * lib/sys_utsname.in.h: Likewise.
20891         * lib/sys_wait.in.h: Likewise.
20892         * lib/sysexits.in.h: Likewise.
20893         * lib/termios.in.h: Likewise.
20894         * lib/time.in.h: Likewise.
20895         * lib/unistd.in.h: Likewise.
20896         * lib/wchar.in.h: Likewise.
20897         * lib/wctype.in.h: Likewise.
20898         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20899         * modules/ctype (Makefile.am): Likewise.
20900         * modules/dirent (Makefile.am): Likewise.
20901         * modules/errno (Makefile.am): Likewise.
20902         * modules/fcntl-h (Makefile.am): Likewise.
20903         * modules/float (Makefile.am): Likewise.
20904         * modules/getopt-posix (Makefile.am): Likewise.
20905         * modules/iconv-h (Makefile.am): Likewise.
20906         * modules/langinfo (Makefile.am): Likewise.
20907         * modules/locale (Makefile.am): Likewise.
20908         * modules/math (Makefile.am): Likewise.
20909         * modules/netdb (Makefile.am): Likewise.
20910         * modules/netinet_in (Makefile.am): Likewise.
20911         * modules/poll-h (Makefile.am): Likewise.
20912         * modules/pthread (Makefile.am): Likewise.
20913         * modules/pty (Makefile.am): Likewise.
20914         * modules/sched (Makefile.am): Likewise.
20915         * modules/search (Makefile.am): Likewise.
20916         * modules/selinux-h (Makefile.am): Likewise.
20917         * modules/signal (Makefile.am): Likewise.
20918         * modules/spawn (Makefile.am): Likewise.
20919         * modules/stdarg (Makefile.am): Likewise.
20920         * modules/stddef (Makefile.am): Likewise.
20921         * modules/stdint (Makefile.am): Likewise.
20922         * modules/stdio (Makefile.am): Likewise.
20923         * modules/stdlib (Makefile.am): Likewise.
20924         * modules/string (Makefile.am): Likewise.
20925         * modules/strings (Makefile.am): Likewise.
20926         * modules/sys_file (Makefile.am): Likewise.
20927         * modules/sys_ioctl (Makefile.am): Likewise.
20928         * modules/sys_select (Makefile.am): Likewise.
20929         * modules/sys_socket (Makefile.am): Likewise.
20930         * modules/sys_stat (Makefile.am): Likewise.
20931         * modules/sys_time (Makefile.am): Likewise.
20932         * modules/sys_times (Makefile.am): Likewise.
20933         * modules/sys_uio (Makefile.am): Likewise.
20934         * modules/sys_utsname (Makefile.am): Likewise.
20935         * modules/sys_wait (Makefile.am): Likewise.
20936         * modules/sysexits (Makefile.am): Likewise.
20937         * modules/termios (Makefile.am): Likewise.
20938         * modules/time (Makefile.am): Likewise.
20939         * modules/unistd (Makefile.am): Likewise.
20940         * modules/wchar (Makefile.am): Likewise.
20941         * modules/wctype-h (Makefile.am): Likewise.
20942         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20943
20944 2011-05-29  Bruno Haible  <bruno@clisp.org>
20945
20946         assert-h: Allow multiple gnulib generated replacements to coexist.
20947         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20948
20949 2011-05-29  Bruno Haible  <bruno@clisp.org>
20950
20951         argp: Allow coexistence with strerror_r-posix module.
20952         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20953         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20954         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20955         not the glibc signature.
20956
20957 2011-05-28  Bruno Haible  <bruno@clisp.org>
20958
20959         gnulib-tool: Alternative structure of testdirs, similar to --import.
20960         * gnulib-tool: New option --single-configure.
20961         (func_usage): Document it.
20962         (single_configure): New variable.
20963         (func_modules_transitive_closure_separately,
20964         func_modules_transitive_closure_separately,
20965         func_determine_use_libtests, func_modules_add_dummy_separately,
20966         func_modules_to_filelist_separately): New functions, extracted from
20967         func_import.
20968         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20969         (func_import): Use the new functions.
20970         (func_create_testdir): Set final_modules. Handle $single_configure =
20971         true case.
20972
20973 2011-05-28  Bruno Haible  <bruno@clisp.org>
20974
20975         getloadavg: Remove an unreliable safety check.
20976         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20977         getloadavg.c is in place.
20978         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20979         Reported by Sam Steingold <sds@gnu.org>.
20980
20981 2011-05-28  Bruno Haible  <bruno@clisp.org>
20982
20983         doc: Cleanup yet another file produced by texinfo.tex.
20984         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20985
20986 2011-05-28  Bruno Haible  <bruno@clisp.org>
20987
20988         Finish the conditional dependencies mechanism.
20989         * gnulib-tool: New option --no-conditional-dependencies.
20990         (func_usage): Document it. Don't mark --conditional-dependencies as
20991         experimental.
20992         (cond_dependencies): The possible values can now be true, false, empty.
20993         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20994         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20995         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20996
20997 2011-05-28  Bruno Haible  <bruno@clisp.org>
20998
20999         doc: Use a recent texinfo.tex.
21000         * doc/Makefile (tex_opts): New variable.
21001         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21002
21003 2011-05-28  Jim Meyering  <meyering@redhat.com>
21004
21005         intprops.h: adjust comment to match code change
21006         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21007         only once, it *may* have side effects.  Also fix an unrelated typo.
21008         (_GL_INT_SIGNED): Likewise.
21009
21010 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21011
21012         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21013
21014 2011-05-26  Bruno Haible  <bruno@clisp.org>
21015
21016         mbsrchr: Avoid collision with system function on Interix.
21017         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21018         Reported by Markus Duft <mduft@gentoo.org>.
21019
21020 2011-05-15  James Youngman  <jay@gnu.org>
21021
21022         getopt: for ambiguous options, enumerate the possibilities.
21023         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21024         the ambiguous options when an ambiguous prefix is given. This was
21025         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21026         glibc change was
21027         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21028
21029 2011-05-25  Eric Blake  <eblake@redhat.com>
21030
21031         getcwd: work around mingw bug
21032         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21033         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21034         Reported by Matthias Bolte.
21035
21036 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21037
21038         test-intprops: disable -Wtype-limits diagnostics
21039         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21040         diagnostics.  Otherwise, the integer overflow macros generate many
21041         diagnostics.  Reported by Jim Meyering in
21042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21043
21044         intprops: shorten, to pacify gcc -Woverlength-strings
21045         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21046         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21047         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21048         likely to run afoul of C compiler limits for string constant lengths.
21049         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21050
21051 2011-05-24  Eric Blake  <eblake@redhat.com>
21052
21053         docs: document recently fixed glibc printf bug
21054         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21055         * doc/posix-functions/printf.texi (printf): Likewise.
21056         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21057         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21058
21059         closein-tests: convert to init.sh
21060         * modules/closein-tests (Files): Add init.sh
21061         * tests/test-closein.sh Use it.
21062
21063         yesno-tests: convert to init.sh
21064         * modules/yesno-tests (Files): Add init.sh.
21065         * tests/test-yesno.sh: Use it.
21066
21067         atexit-tests: ensure reliable exit status
21068         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21069         Reported by Bruno Haible.
21070
21071 2011-05-24  Bruno Haible  <bruno@clisp.org>
21072
21073         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21075         gl_PREREQ_STRERROR_R invocations from here...
21076         * modules/strerror_r-posix (configure.ac): ... to here.
21077
21078 2011-05-24  Eric Blake  <eblake@redhat.com>
21079
21080         strerror_r: fix missing header
21081         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21082
21083         strerror_r: fix AIX test failures
21084         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21085         ERANGE failure.
21086
21087         strerror_r: fix Solaris test failures
21088         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21089         failures.
21090         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21091
21092         strerror_r: enforce POSIX recommendations
21093         * lib/strerror_r.c (safe_copy): New helper method.
21094         (strerror_r): Guarantee a non-empty string.
21095         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21096         recent POSIX rulings and to match our strerror guarantees.
21097         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21098
21099 2011-05-24  Jim Meyering  <meyering@redhat.com>
21100
21101         test-perror2.c: avoid warning about unused variable
21102         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21103
21104 2011-05-24  Eric Blake  <eblake@redhat.com>
21105
21106         perror: avoid spurious test failure on HP-UX
21107         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21108
21109         tests: fix logic bug in init.sh
21110         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21111         shell.
21112
21113 2011-05-24  Jim Meyering  <meyering@redhat.com>
21114
21115         utimensat: do not reference an out-of-scope buffer
21116         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21117         declared in an inner scope, yet "times" would be dereferenced outside
21118         the scope in which "ts" was valid.
21119         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21120         of ts[2] "out/up", so that the use of aliased "times" (via
21121         "times = ts;") does not end up referencing an out-of-scope "ts"
21122
21123         opendir-safer.c: don't clobber errno; don't close negative FD
21124         * lib/opendir-safer.c (opendir_safer):
21125         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21126         file descriptor, and more importantly, don't clobber the
21127         offending errno value with EINVAL.  Before, upon failure
21128         of dup_safer, we would pass the negative file descriptor to
21129         fdopendir, which would clobber errno.
21130
21131 2011-05-23  Bruno Haible  <bruno@clisp.org>
21132
21133         idcache: Fix module description.
21134         * modules/idcache (Include): Set to "idcache.h".
21135
21136 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21137
21138         gnulib-tool: fix portability problem with MacOS sed
21139         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21140         before the "}".  Problem reported by Leo in
21141         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21142         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21143         sed_extract_condition1, sed_extract_condition2.
21144
21145 2011-05-23  Bruno Haible  <bruno@clisp.org>
21146
21147         hash: Simplify autoconf macro.
21148         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21149
21150 2011-05-23  Bruno Haible  <bruno@clisp.org>
21151
21152         getugroups: Fix module description.
21153         * modules/getugroups (Include): Set to "getugroups.h".
21154
21155 2011-05-23  Bruno Haible  <bruno@clisp.org>
21156
21157         linkat: Simplify autoconf macro.
21158         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21159
21160 2011-05-23  Bruno Haible  <bruno@clisp.org>
21161             Eric Blake  <eblake@redhat.com>
21162
21163         linkat, renameat: Update dependencies.
21164         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21165         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21166         symlinkat.
21167
21168 2011-05-23  Jim Meyering  <meyering@redhat.com>
21169
21170         maint.mk: more tight_scope improvements
21171         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21172         (_gl_TS_headers): Define only in if-0'd block.
21173         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21174         sometimes we must *not* use it.  Adjust uses accordingly.
21175         (sc_tight_scope): Use much simpler grep-based test to determine
21176         whether we skip this rule.
21177
21178         maint.mk: generalize/improve the tight-scope rule
21179         * top/maint.mk: Emit a warning when the test is skipped.
21180         (_gl_TS_dir): Add $(srcdir)/ prefix.
21181         (_gl_TS_function_match): Simplify, rather than trying
21182         to enumerate common types.  Otherwise, it would fail to match an
21183         "extern unsigned char const *" declaration in idutils.
21184         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21185         a way to support use of that type of macro.
21186         (_gl_TS_var_match): Simplify regexp.
21187         (_gl_TS_obj_files): New configurable variable.
21188         (_gl_TS_headers): Likewise.
21189
21190 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21191
21192         verify: fix bug when gnulib <assert.h> is also included
21193         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21194         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21195         Perhaps there's a better way, but this fixes the immediate problem.
21196         Problem reported by Bruno Haible in
21197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21198
21199 2011-05-22  Bruno Haible  <bruno@clisp.org>
21200
21201         xgetcwd: Simplify autoconf macro.
21202         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21203
21204 2011-05-22  Bruno Haible  <bruno@clisp.org>
21205
21206         New module 'mktime-internal'.
21207         * modules/mktime-internal: New file.
21208         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21209         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21210         mktime_internal as a C macro if libc has __mktime_internal.
21211         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21212         conditions.
21213         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21214
21215 2011-05-22  Bruno Haible  <bruno@clisp.org>
21216
21217         timegm: Correct mktime replacement statements.
21218         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21219         defining mktime as a C macro. This completes a 2009-07-28 commit.
21220
21221 2011-05-22  Bruno Haible  <bruno@clisp.org>
21222
21223         timegm: Simplify autoconf macro.
21224         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21225
21226 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21227
21228         clock-time: change to LGPLv2+.
21229         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21230         BSD-like but we have no mark for that; this is good enough for now.
21231
21232 2011-05-21  Bruno Haible  <bruno@clisp.org>
21233
21234         strerror_r: Fix comments.
21235         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21236
21237 2011-05-21  Bruno Haible  <bruno@clisp.org>
21238
21239         relocatable-prog-wrapper: Fix possible link error.
21240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21241         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21242         (gl_FUNC_SETENV): ... to here.
21243         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21244         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21245
21246 2011-05-21  Bruno Haible  <bruno@clisp.org>
21247
21248         relocatable-prog-wrapper: Assume strerror() exists.
21249         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21250         m4/strerror.m4.
21251         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21252         * lib/relocwrapper.c: Remove mention of strerror module.
21253         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21255         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21256         C macro.
21257
21258 2011-05-21  Bruno Haible  <bruno@clisp.org>
21259
21260         select: Simplify replacement idiom.
21261         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21262         Win32 platforms.
21263         * lib/sys_select.in.h (select): Simplify accordingly.
21264         * modules/select (Depends-on): Likewise.
21265
21266 2011-05-21  Bruno Haible  <bruno@clisp.org>
21267
21268         mkdir-p: Simplify autoconf macro.
21269         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21270         gl_FUNC_LCHOWN.
21271
21272 2011-05-21  Eric Blake  <eblake@redhat.com>
21273
21274         strerror_r: avoid clobbering strerror on cygwin
21275         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21276         fall back instead to sys_errlist.
21277         * modules/strerror (configure.ac): Add witness.
21278         * tests/test-strerror_r.c (main): Enhance test.
21279         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21280         * tests/test-perror2.c (main): Free memory before exit.
21281
21282 2011-05-21  Bruno Haible  <bruno@clisp.org>
21283
21284         mkdtemp: Use gnulib naming conventions.
21285         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21286         * modules/mkdtemp (configure.ac): Update.
21287
21288 2011-05-20  Eric Blake  <eblake@redhat.com>
21289
21290         strerror_r: avoid corrupting errno on Solaris
21291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21292         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21293
21294         strerror_r: avoid compiler warning
21295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21296
21297         strerror_r: simplify AIX code
21298         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21299
21300         test-perror: avoid spurious failure on FreeBSD
21301         * modules/perror-tests (Depends-on): Add strerror, now that
21302         strerror_r no longer pulls it in.
21303
21304 2011-05-20  Bruno Haible  <bruno@clisp.org>
21305
21306         strerror_r-posix: Remove unused dependencies.
21307         * modules/strerror_r-posix (Depends-on): Remove strerror.
21308         Reported by Eric Blake.
21309
21310 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21311
21312         intprops: remove assumption about A|B representation
21313         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21314         is a valid integer if both A and B are.  Although this is true for
21315         all known practical hosts, the C standard doesn't guarantee it,
21316         and the code need not assume it.  Also, this change may work around
21317         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21319
21320 2011-05-20  Eric Blake  <eblake@redhat.com>
21321
21322         perror: work around FreeBSD bug
21323         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21324         is broken.  Move AC_LIBOBJ...
21325         * modules/perror (configure.ac): Here.
21326         * doc/posix-functions/perror.texi (perror): Document this.
21327         * tests/test-perror2.c (main): Enhance test.
21328
21329         test-perror: check for strerror interactions
21330         * tests/macros.h (STREQ): Add macro.
21331         * modules/perror-tests (Files): Add second test.
21332         * tests/test-perror2.c (main): New file.
21333         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21334
21335         test-perror: rewrite to use init script
21336         * modules/perror-tests (Files): Add init.sh.
21337         * tests/test-perror.sh: Use temporary directory.
21338
21339 2011-05-20  Jim Meyering  <meyering@redhat.com>
21340
21341         maint: replace misused "a" with "an"
21342         * doc/intprops.texi: "a integer"
21343         * doc/regex.texi: "a explanation"
21344         * lib/alignof.h: "a object"
21345         * lib/argmatch.h: "a explanation"
21346         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21347         * lib/stdint.in.h: "a integer"
21348         * lib/userspec.c: "a owner"
21349         * doc/gnulib.texi: Fix "a idea", and reword.
21350
21351 2011-05-19  Jim Meyering  <meyering@redhat.com>
21352
21353         maint: correct misuse of "a" and "an"
21354         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21355         * lib/argp-help.c: "an docum...": s/an/a/
21356         * lib/argp-parse.c: "An vector": s/An/A/
21357         * lib/execute.c: "an native": s/an/a/
21358         * lib/spawn-pipe.c: Likewise.
21359         * lib/gc.h: "an Gc_rc": s/an/a/
21360         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21361         * lib/fts.c: "an stat.st_dev": s/an/a/
21362
21363 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         intprops-tests: work around HP-UX 11.23 cc bug with constants
21366         * tests/test-intprops.c (VERIFY): New macro.
21367         (main): Use it, instead of verify, to work around the compiler bug; see
21368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21369
21370         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21371         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21372         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21373         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21374         (_GL_REMAINDER_OVERFLOW): Use it.
21375
21376         intprops-tests: revert unsigned part of previous change
21377         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21378         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21379         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21381
21382 2011-05-19  Bruno Haible  <bruno@clisp.org>
21383
21384         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21385         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21386         strerror_r() returned without filling the buffer.
21387         Reported by Eric Blake.
21388
21389 2011-05-19  Eric Blake  <eblake@redhat.com>
21390
21391         strerror_r: guarantee unchanged errno
21392         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21393         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21394         failure.
21395         * tests/test-strerror_r.c (main): Enhance test.
21396
21397 2011-05-19  Bruno Haible  <bruno@clisp.org>
21398
21399         strerror_r: Reorder #if blocks.
21400         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21401         for consistency with the previous commit.
21402
21403 2011-05-19  Bruno Haible  <bruno@clisp.org>
21404
21405         perror: Avoid clobbering the strerror buffer when possible.
21406         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21407         * lib/strerror.c: Include it.
21408         * modules/strerror (Files): Add lib/strerror-impl.h.
21409         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21410         (my_strerror): New function, defined through lib/strerror-impl.h.
21411         (perror): Use it instead of strerror.
21412         * modules/perror (Files): Add lib/strerror-impl.h.
21413         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21414
21415 2011-05-19  Eric Blake  <eblake@redhat.com>
21416
21417         strerror_r: fix on newer cygwin
21418         * lib/strerror_r.c (strerror_r): Cygwin now has
21419         __xpg_strerror_r, use it.
21420
21421 2011-05-19  Bruno Haible  <bruno@clisp.org>
21422
21423         strerror_r: Avoid clobbering the strerror buffer when possible.
21424         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21425         (sys_nerr, sys_errlist): New declarations.
21426         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21427         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21428         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21429
21430 2011-05-19  Bruno Haible  <bruno@clisp.org>
21431
21432         strerror_r: Fix test failure on mingw.
21433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21434         EXTEND_STRERROR_R.
21435         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21436         macros from errno.in.h instead.
21437
21438 2011-05-19  Eric Blake  <eblake@redhat.com>
21439
21440         strerror: relax test for Solaris
21441         * tests/test-strerror.c (main): Permit Solaris behavior.
21442         * tests/test-strerror_r.c (main): Likewise.
21443
21444         strerror: enforce POSIX ruling on strerror(0)
21445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21447         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21448         * doc/posix-functions/strerror.texi (strerror): Document it.
21449         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21450         * tests/test-strerror.c (main): Strengthen test.
21451         * tests/test-strerror_r.c (main): Likewise.
21452
21453 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         intprop-tests: port to older and more-pedantic compilers
21456         * modules/intprops-tests (Files): Add tests/macros.h.
21457         * tests/test-intprops.c: Include macros.h.
21458         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21459         it's no longer documented to expand to an integer constant expression.
21460         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21461         argument is floating point, as it's no longer documented to expand
21462         to an integer constant expression in that case.
21463         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21464         compiler bugs reported by Bruno Haible.  See
21465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21466         (U0, U1): New constants, to work around the same bugs.  Also,
21467         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21468
21469         intprops: work around C compiler bugs
21470         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21471         bug in Sun C 5.11 2010/08/13 and other compilers; see
21472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21473
21474         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21475         * doc/intprops.texi (Integer Type Determination): Fix
21476         documentation for TYPE_IS_INTEGER: it returns an constant
21477         expression, not an integer constant expression.  Fix doc for
21478         TYPE_SIGNED: it returns an integer constant expression only if its
21479         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21480         hardly worth documented that way....)
21481
21482 2011-05-18  Bruno Haible  <bruno@clisp.org>
21483
21484         strerror_r: Avoid clobbering the strerror buffer when possible.
21485         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21486         Handle gnulib defined errno values here. When strerror() returns NULL
21487         or an empty string, return EINVAL.
21488         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21489         gnulib defined errno values here.
21490         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21491
21492 2011-05-18  Eric Blake  <eblake@redhat.com>
21493
21494         fnmatch: avoid compiler warning
21495         * lib/fnmatch_loop.c (FCT): Use correct type.
21496         Reported by Matthias Bolte.
21497
21498 2011-05-13  Jim Meyering  <meyering@redhat.com>
21499
21500         maint.mk: three new prohibit_<HDR>_without_use rules
21501         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21502         (sc_prohibit_stdio-safer_without_use): Likewise.
21503         (sc_prohibit_xfreopen_without_use): Likewise.
21504
21505 2011-05-17  Jim Meyering  <meyering@redhat.com>
21506
21507         announce-gen: fail if the NEWS delta is empty
21508         If there's nothing noteworthy in NEWS, then either you forgot
21509         or you shouldn't be releasing.
21510         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21511
21512 2011-05-17  Pádraig Brady <P@draigBrady.com>
21513
21514         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21515         reserved symbols starting with double underscore from the check.
21516
21517 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21518
21519         intprops: add doc
21520         * doc/intprops.texi: New file, documenting intprops.
21521         * doc/gnulib.texi (Particular Modules): Include it.
21522
21523         verify: add doc to gnulib manual and fix example
21524         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21525         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21526         (Compile-time Assertions): Fix example so it can't overflow.
21527
21528 2011-05-17  Jim Meyering  <meyering@redhat.com>
21529
21530         warnings.m4: don't usurp save_CPPFLAGS variable name
21531         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21532
21533         doc: fix typo
21534         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21535
21536 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21537             Bruno Haible  <bruno@clisp.org>
21538
21539         doc: Tweak recent change.
21540         * README (Portability guidelines): Tweak new text.
21541         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21542         Interix 6.1.
21543
21544 2011-05-16  Eric Blake  <eblake@redhat.com>
21545
21546         inttypes: avoid autoconf warning
21547         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21548         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21549
21550 2011-05-16  Sam Steingold <sds@gnu.org>
21551         and Eric Blake  <eblake@redhat.com>
21552
21553         vc-list-files: accept multiple directory operands
21554         * build-aux/vc-list-files: Iterate over all remaining operands.
21555
21556 2011-05-16  Bruno Haible  <bruno@clisp.org>
21557
21558         Fix confusion regarding deprecated modules.
21559         * modules/calloc (Status, Notice): Mark module as deprecated, not
21560         obsolete.
21561         * modules/fnmatch-posix (Status, Notice): Likewise.
21562         * modules/getdate (Status, Notice): Likewise.
21563         * modules/getopt (Status, Notice): Likewise.
21564         * modules/malloc (Status, Notice): Likewise.
21565         * modules/pipe (Status, Notice): Likewise.
21566         * modules/realloc (Status, Notice): Likewise.
21567         * modules/rename-dest-slash (Status, Notice): Likewise.
21568         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21569         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21570         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21571         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21572         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21573
21574 2011-05-16  Bruno Haible  <bruno@clisp.org>
21575
21576         doc: List the target platforms.
21577         * doc/gnulib-intro.texi (Target Platforms): New section.
21578         * doc/gnulib.texi (Introduction): Update menu.
21579         * README (Portability guidelines): Refer to the new section. Update
21580         statement about oldest supported environment. Remove rationale why
21581         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21582         unportable C89 function.
21583         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21584         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21585
21586 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21587
21588         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21589
21590 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21591
21592         intprops-tests: new module
21593         * modules/intprops-tests, tests/test-intprops.c: New files.
21594
21595         intprops: add safe, portable integer overflow checking
21596         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21597         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21598         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21599         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21600         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21601         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21602         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21603         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21604         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21605         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21606         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21607
21608 2011-05-12  James Youngman  <jay@gnu.org>
21609
21610         Add a test for glibc's Bugzilla bug #12378.
21611         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21612         doesn't allow the literal matching of a lone "[" (which is
21613         required by POSIX).
21614         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21615
21616 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21617
21618         Sync glibc change fixing Bugzilla bug #12378.
21619         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21620         beginning and fall back to matching as normal character if the
21621         string ends before the matching ']' is found.  This is what POSIX
21622         requires.
21623
21624 2011-05-13  Eric Blake  <eblake@redhat.com>
21625
21626         getcwd-lgpl: relax test for FreeBSD
21627         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21628         issue.
21629         * tests/test-getcwd-lgpl.c (main): Relax test.
21630         Reported by Matthias Bolte.
21631
21632 2011-05-11  Eric Blake  <eblake@redhat.com>
21633
21634         test-fflush: silence compiler warning
21635         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21636
21637 2011-05-11  Bruno Haible  <bruno@clisp.org>
21638
21639         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21640         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21641         * modules/canonicalize (Depends-on): Add 'nocrash'.
21642         * modules/canonicalize-lgpl (Depends-on): Likewise.
21643         * doc/posix-functions/realpath.texi: Update platforms list.
21644         Reported by Ryan Schmidt <ryandesign@macports.org>.
21645
21646 2011-05-11  Bruno Haible  <bruno@clisp.org>
21647
21648         group-member: Declare function in <unistd.h>.
21649         * lib/unistd.in.h (group_member): New declaration.
21650         * lib/group-member.h: Remove file.
21651         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21652         * tests/test-unistd-c++.cc: Check signature of group_member.
21653         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21654         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21655         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21656         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21657         HAVE_GROUP_MEMBER.
21658         * modules/group-member (Files): Remove lib/group-member.h.
21659         (Depends-on): Add unistd. Specify conditions.
21660         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21661         (Include): Change to <unistd.h>.
21662         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21663         HAVE_GROUP_MEMBER.
21664         * NEWS: Mention the change.
21665         * lib/euidaccess.c: Don't include group-member.h.
21666
21667 2011-05-11  Bruno Haible  <bruno@clisp.org>
21668
21669         group-member: Document module.
21670         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21671         module.
21672
21673 2011-05-11  Bruno Haible  <bruno@clisp.org>
21674
21675         fclose: Fix mistake earlier today.
21676         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21677
21678 2011-05-11  Eric Blake  <eblake@redhat.com>
21679
21680         fclose: preserve fflush errors
21681         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21682         Reported by Jim Meyering.
21683
21684         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21685         * build-aux/bootstrap (check_versions): When no specific version
21686         is required, merely check that the app produces an exit status
21687         that indicates its existence.
21688
21689         maint.mk: drop redundant check
21690         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21691         the same but better.
21692
21693 2011-05-11  Bruno Haible  <bruno@clisp.org>
21694
21695         fclose: Fix possible link error.
21696         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21697         unregister_shadow_fd. Improve comments.
21698         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21699         Eric Blake.
21700
21701 2011-05-11  Jim Meyering  <meyering@redhat.com>
21702
21703         maint.mk: improve "can not" detection and generalize rule name
21704         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21705         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21706         Use the same technique as in sc_prohibit_doubled_word, so that
21707         we recognize "can not" also when the words are separated by a newline.
21708         Suggested by Eric Blake.
21709         (perl_filename_lineno_text_): Define.  Factored out of...
21710         (prohibit_doubled_word_): ...here.  Use the new definition.
21711         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21712         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21713         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21714
21715 2011-05-10  Eric Blake  <eblake@redhat.com>
21716
21717         fclose: avoid double close race when possible
21718         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21719         all but WINDOWS_SOCKETS.
21720
21721 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21722
21723         openat: correct new comment
21724         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21725
21726 2011-05-10  Jim Meyering  <meyering@redhat.com>
21727
21728         openat: add comments
21729         * lib/openat-proc.c (openat_proc_name): Add comments,
21730         mostly from Eric Blake.
21731
21732 2011-05-09  Eric Blake  <eblake@redhat.com>
21733
21734         openat: reduce syscalls in first probe of /proc
21735         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21736         be a directory.  Simplify the probe for .. bugs.
21737         * modules/openat (Depends-on): Drop same-inode.
21738         Reported by Bastien ROUCARIES.
21739
21740 2011-05-09  Jim Meyering  <meyering@redhat.com>
21741
21742         maint.mk: change semantics/name of tight_scope variables
21743         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21744         Rename variables to align with semantics that make them more useful.
21745
21746         maint.mk: tweak new rule's name not to impinge
21747         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21748         (sc_tight_scope): Use new rule name rather than $@-0.
21749
21750         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21751         * top/maint.mk (sc_tight_scope): New rule.
21752         (sc_tight_scope-0): New rule, ifdef'd out.
21753         (_gl_TS_dir): Default.
21754         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21755         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21756
21757 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21758
21759         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21760         Haible <bruno@clisp.org>.
21761
21762 2011-05-08  Bruno Haible  <bruno@clisp.org>
21763
21764         Comments.
21765         * m4/isnanf.m4: Add comment.
21766         * m4/isnanl.m4: Likewise.
21767
21768 2011-05-08  Bruno Haible  <bruno@clisp.org>
21769
21770         glob: Remove obsolete macro.
21771         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21772
21773 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21774
21775         intprops: Sun C 5.11 supports __typeof__
21776         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21777         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21778         which is new.
21779         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21780
21781         intprops: switch to usual gnulib indenting and naming
21782         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21783         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21784
21785         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21786
21787 2011-05-08  Jim Meyering  <meyering@redhat.com>
21788
21789         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21790         * top/maint.mk (release-prep): Use make's --no-print-directory
21791         option when generating the announcement.  This eliminates the
21792         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21793         generated announcement template.
21794
21795 2011-05-08  Bruno Haible  <bruno@clisp.org>
21796
21797         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21798         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21799         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21800
21801 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21802
21803         ignore-value, verify: Omit include files from lib_SOURCES.
21804         * modules/ignore-value, modules/verify (Makefile.am):
21805         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21806         that leads Automake to duplicate use of am__objects_... variables
21807         in Makefile.in.  See
21808         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21809
21810 2011-05-07  Bruno Haible  <bruno@clisp.org>
21811
21812         fclose: Simplify autoconf macro.
21813         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21814         defined.
21815
21816 2011-05-07  Bruno Haible  <bruno@clisp.org>
21817
21818         canonicalize-lgpl: Fix autoconf macro ordering bug.
21819         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21820         gl_STDLIB_H_DEFAULTS.
21821
21822 2011-05-06  Eric Blake  <eblake@redhat.com>
21823
21824         maintainer-makefile: make sc_po_check easier to tune
21825         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21826         to probe for strings, such as an alternate location for gnulib.
21827
21828         fclose: guarantee behavior on seekable stdin
21829         * modules/fclose (Depends-on): Add fflush.
21830         * doc/posix-functions/fclose.texi (fclose): Document this.
21831         * tests/test-fclose.c (main): Make test for this unconditional.
21832
21833 2011-05-06  Bruno Haible  <bruno@clisp.org>
21834
21835         fflush, fpurge: Relicense under LGPLv2+.
21836         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21837         * modules/fpurge (License): Likewise.
21838         With permission from Eric Blake and Jim Meyering.
21839         Suggested by Eric Blake.
21840
21841 2011-05-06  Karl Berry  <karl@gnu.org>
21842
21843         * MODULES.html.sh (func_all_modules): remove exit.
21844
21845 2011-05-06  Jim Meyering  <meyering@redhat.com>
21846
21847         maint.mk: use info-gnu@ as the default only for a stable release
21848         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21849         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21850         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21851         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21852
21853 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21854
21855         assert-h: new module, which supports C1X-style static_assert
21856         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21857         * lib/verify.h: Revamp so that this can be copied into assert.h,
21858         while retaining the ability to use it standalone as before.
21859         Rename private identifiers so as not to encroach on the
21860         standard C namespace, since this is now used by assert.h.
21861         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21862         the old verify_true.
21863         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21864         the old verify_true.  Use _GL_VERIFY_TYPE.
21865         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21866         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21867         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21868         defined when this file is copied into the replacement assert.h.
21869         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21870         and _Static_assert is not built in.
21871         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21872         defined, and use the new macros mentioned above.
21873         * doc/posix-headers/assert.texi: Document this.
21874
21875 2011-05-05  Bruno Haible  <bruno@clisp.org>
21876
21877         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21879         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21880         gl_REPLACE_FCLOSE here.
21881         * modules/fflush (Depends-on): Remove fclose.
21882         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21883         combination with module 'fclose'.
21884
21885 2011-05-05  Bruno Haible  <bruno@clisp.org>
21886
21887         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21888         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21889         gl_FUNC_FFLUSH.
21890         (gl_FUNC_FFLUSH): Use it.
21891         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21892         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21893         gl_REPLACE_FSEEKO here.
21894
21895 2011-05-05  Bruno Haible  <bruno@clisp.org>
21896
21897         tzset: Relicense under LGPL.
21898         * modules/tzset (License): Change to LGPL.
21899         No agreement needed; it's a no-op.
21900
21901         strtoimax, strtoumax: Relicense under LGPL.
21902         * modules/strtoimax (License): Change to LGPL.
21903         * modules/strtoumax (License): Likewise.
21904         With permission from Jim Meyering, Paul Eggert:
21905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21907
21908         getgroups: Relicense under LGPL.
21909         * modules/getgroups (License): Change to LGPL.
21910         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21914
21915         nanosleep: Relicense under LGPL.
21916         * modules/nanosleep (License): Change to LGPL.
21917         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21918         Haible:
21919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21923
21924         futimens: Relicense under LGPL.
21925         * modules/futimens (License): Change to LGPL.
21926         With permission from Eric Blake:
21927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21928
21929         fflush: Relicense under LGPL.
21930         * modules/fflush (License): Change to LGPL.
21931         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21935
21936         tmpfile: Relicense under LGPL.
21937         * modules/tmpfile (License): Change to LGPL.
21938         With permission from Ben Pfaff:
21939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21940
21941         isfinite: Relicense under LGPL.
21942         * modules/isfinite (License): Change to LGPL.
21943         With permission from Ben Pfaff, Bruno Haible:
21944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21946
21947         acosl..tanl: Relicense under LGPL.
21948         * modules/acosl (License): Change to LGPL.
21949         * modules/asinl (License): Likewise.
21950         * modules/atanl (License): Likewise.
21951         * modules/cosl (License): Likewise.
21952         * modules/expl (License): Likewise.
21953         * modules/logl (License): Likewise.
21954         * modules/sinl (License): Likewise.
21955         * modules/sqrtl (License): Likewise.
21956         * modules/tanl (License): Likewise.
21957         Source code originally from glibc and Paolo Bonzini. Agreements:
21958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21960
21961 2011-05-05  Bruno Haible  <bruno@clisp.org>
21962
21963         signal: Define sighandler_t.
21964         * lib/signal.in.h (sighandler_t): New type.
21965         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21966         whether sighandler_t is defined.
21967         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21968         * modules/signal (Depends-on): Add extensions.
21969         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21970         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21971         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21972
21973 2011-05-05  Eric Blake  <eblake@redhat.com>
21974
21975         maint: remove useless REPLACE_*_H macros
21976         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21977         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21978         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21979         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21980         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21981         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21982         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21983         * m4/btowc.m4: Update callers.
21984         * m4/dirfd.m4: Likewise.
21985         * m4/duplocale.m4: Likewise.
21986         * m4/fchdir.m4: Likewise.
21987         * m4/fdopendir.m4: Likewise.
21988         * m4/inet_ntop.m4: Likewise.
21989         * m4/inet_pton.m4: Likewise.
21990         * m4/ioctl.m4: Likewise.
21991         * m4/mbrlen.m4: Likewise.
21992         * m4/mbrtowc.m4: Likewise.
21993         * m4/mbsinit.m4: Likewise.
21994         * m4/mbsnrtowcs.m4: Likewise.
21995         * m4/mbsrtowcs.m4: Likewise.
21996         * m4/poll.m4: Likewise.
21997         * m4/setlocale.m4: Likewise.
21998         * m4/wcrtomb.m4: Likewise.
21999         * m4/wcsnrtombs.m4: Likewise.
22000         * m4/wcsrtombs.m4: Likewise.
22001         * m4/wctob.m4: Likewise.
22002         * m4/wcwidth.m4: Likewise.
22003         * modules/posix_spawn: Likewise.
22004         * modules/posix_spawn_file_actions_addclose: Likewise.
22005         * modules/posix_spawn_file_actions_adddup2: Likewise.
22006         * modules/posix_spawn_file_actions_addopen: Likewise.
22007         * modules/posix_spawn_file_actions_destroy: Likewise.
22008         * modules/posix_spawn_file_actions_init: Likewise.
22009         * modules/posix_spawnattr_destroy: Likewise.
22010         * modules/posix_spawnattr_getflags: Likewise.
22011         * modules/posix_spawnattr_getpgroup: Likewise.
22012         * modules/posix_spawnattr_getschedparam: Likewise.
22013         * modules/posix_spawnattr_getschedpolicy: Likewise.
22014         * modules/posix_spawnattr_getsigdefault: Likewise.
22015         * modules/posix_spawnattr_getsigmask: Likewise.
22016         * modules/posix_spawnattr_init: Likewise.
22017         * modules/posix_spawnattr_setflags: Likewise.
22018         * modules/posix_spawnattr_setpgroup: Likewise.
22019         * modules/posix_spawnattr_setschedparam: Likewise.
22020         * modules/posix_spawnattr_setschedpolicy: Likewise.
22021         * modules/posix_spawnattr_setsigdefault: Likewise.
22022         * modules/posix_spawnattr_setsigmask: Likewise.
22023         * modules/posix_spawnp: Likewise.
22024
22025 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22026
22027         Add option to do-release-commit-and-tag to specify branch.
22028         * build-aux/do-release-commit-and-tag: Add --branch.
22029
22030 2011-05-03  Bruno Haible  <bruno@clisp.org>
22031
22032         Avoid unnecessary compilation units, through conditional dependencies.
22033         * modules/accept (Depends-on): Add conditions to the dependencies.
22034         * modules/acosl (Depends-on): Likewise.
22035         * modules/argz (Depends-on): Likewise.
22036         * modules/asinl (Depends-on): Likewise.
22037         * modules/atanl (Depends-on): Likewise.
22038         * modules/atoll (Depends-on): Likewise.
22039         * modules/bind (Depends-on): Likewise.
22040         * modules/btowc (Depends-on): Likewise.
22041         * modules/canonicalize-lgpl (Depends-on): Likewise.
22042         * modules/ceil (Depends-on): Likewise.
22043         * modules/ceilf (Depends-on): Likewise.
22044         * modules/ceill (Depends-on): Likewise.
22045         * modules/chdir-long (Depends-on): Likewise.
22046         * modules/chown (Depends-on): Likewise.
22047         * modules/close (Depends-on): Likewise.
22048         * modules/connect (Depends-on): Likewise.
22049         * modules/cosl (Depends-on): Likewise.
22050         * modules/dirfd (Depends-on): Likewise.
22051         * modules/dprintf (Depends-on): Likewise.
22052         * modules/dprintf-posix (Depends-on): Likewise.
22053         * modules/error (Depends-on): Likewise.
22054         * modules/euidaccess (Depends-on): Likewise.
22055         * modules/expl (Depends-on): Likewise.
22056         * modules/faccessat (Depends-on): Likewise.
22057         * modules/fchdir (Depends-on): Likewise.
22058         * modules/fclose (Depends-on): Likewise.
22059         * modules/fcntl (Depends-on): Likewise.
22060         * modules/fdopendir (Depends-on): Likewise.
22061         * modules/fflush (Depends-on): Likewise.
22062         * modules/floor (Depends-on): Likewise.
22063         * modules/floorf (Depends-on): Likewise.
22064         * modules/floorl (Depends-on): Likewise.
22065         * modules/fnmatch (Depends-on): Likewise.
22066         * modules/fopen (Depends-on): Likewise.
22067         * modules/fprintf-posix (Depends-on): Likewise.
22068         * modules/frexp (Depends-on): Likewise.
22069         * modules/frexp-nolibm (Depends-on): Likewise.
22070         * modules/frexpl (Depends-on): Likewise.
22071         * modules/frexpl-nolibm (Depends-on): Likewise.
22072         * modules/fseek (Depends-on): Likewise.
22073         * modules/fsusage (Depends-on): Likewise.
22074         * modules/ftell (Depends-on): Likewise.
22075         * modules/ftello (Depends-on): Likewise.
22076         * modules/futimens (Depends-on): Likewise.
22077         * modules/getcwd (Depends-on): Likewise.
22078         * modules/getcwd-lgpl (Depends-on): Likewise.
22079         * modules/getdelim (Depends-on): Likewise.
22080         * modules/getdomainname (Depends-on): Likewise.
22081         * modules/getgroups (Depends-on): Likewise.
22082         * modules/gethostname (Depends-on): Likewise.
22083         * modules/getline (Depends-on): Likewise.
22084         * modules/getlogin_r (Depends-on): Likewise.
22085         * modules/getopt-posix (Depends-on): Likewise.
22086         * modules/getpeername (Depends-on): Likewise.
22087         * modules/getsockname (Depends-on): Likewise.
22088         * modules/getsockopt (Depends-on): Likewise.
22089         * modules/getsubopt (Depends-on): Likewise.
22090         * modules/getusershell (Depends-on): Likewise.
22091         * modules/glob (Depends-on): Likewise.
22092         * modules/grantpt (Depends-on): Likewise.
22093         * modules/iconv_open (Depends-on): Likewise.
22094         * modules/iconv_open-utf (Depends-on): Likewise.
22095         * modules/inet_ntop (Depends-on): Likewise.
22096         * modules/inet_pton (Depends-on): Likewise.
22097         * modules/ioctl (Depends-on): Likewise.
22098         * modules/isapipe (Depends-on): Likewise.
22099         * modules/isfinite (Depends-on): Likewise.
22100         * modules/isinf (Depends-on): Likewise.
22101         * modules/lchown (Depends-on): Likewise.
22102         * modules/ldexpl (Depends-on): Likewise.
22103         * modules/link (Depends-on): Likewise.
22104         * modules/linkat (Depends-on): Likewise.
22105         * modules/listen (Depends-on): Likewise.
22106         * modules/logl (Depends-on): Likewise.
22107         * modules/lstat (Depends-on): Likewise.
22108         * modules/mbrlen (Depends-on): Likewise.
22109         * modules/mbrtowc (Depends-on): Likewise.
22110         * modules/mbsinit (Depends-on): Likewise.
22111         * modules/mbsnrtowcs (Depends-on): Likewise.
22112         * modules/mbsrtowcs (Depends-on): Likewise.
22113         * modules/mbtowc (Depends-on): Likewise.
22114         * modules/memcmp (Depends-on): Likewise.
22115         * modules/mkdir (Depends-on): Likewise.
22116         * modules/mkdtemp (Depends-on): Likewise.
22117         * modules/mkfifo (Depends-on): Likewise.
22118         * modules/mkfifoat (Depends-on): Likewise.
22119         * modules/mknod (Depends-on): Likewise.
22120         * modules/mkostemp (Depends-on): Likewise.
22121         * modules/mkostemps (Depends-on): Likewise.
22122         * modules/mkstemp (Depends-on): Likewise.
22123         * modules/mkstemps (Depends-on): Likewise.
22124         * modules/mktime (Depends-on): Likewise.
22125         * modules/nanosleep (Depends-on): Likewise.
22126         * modules/open (Depends-on): Likewise.
22127         * modules/openat (Depends-on): Likewise.
22128         * modules/perror (Depends-on): Likewise.
22129         * modules/poll (Depends-on): Likewise.
22130         * modules/popen (Depends-on): Likewise.
22131         * modules/posix_spawn (Depends-on): Likewise.
22132         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22133         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22134         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22135         * modules/posix_spawnp (Depends-on): Likewise.
22136         * modules/pread (Depends-on): Likewise.
22137         * modules/printf-posix (Depends-on): Likewise.
22138         * modules/ptsname (Depends-on): Likewise.
22139         * modules/putenv (Depends-on): Likewise.
22140         * modules/pwrite (Depends-on): Likewise.
22141         * modules/readline (Depends-on): Likewise.
22142         * modules/readlink (Depends-on): Likewise.
22143         * modules/readlinkat (Depends-on): Likewise.
22144         * modules/recv (Depends-on): Likewise.
22145         * modules/recvfrom (Depends-on): Likewise.
22146         * modules/regex (Depends-on): Likewise.
22147         * modules/remove (Depends-on): Likewise.
22148         * modules/rename (Depends-on): Likewise.
22149         * modules/renameat (Depends-on): Likewise.
22150         * modules/rmdir (Depends-on): Likewise.
22151         * modules/round (Depends-on): Likewise.
22152         * modules/roundf (Depends-on): Likewise.
22153         * modules/roundl (Depends-on): Likewise.
22154         * modules/rpmatch (Depends-on): Likewise.
22155         * modules/select (Depends-on): Likewise.
22156         * modules/send (Depends-on): Likewise.
22157         * modules/sendto (Depends-on): Likewise.
22158         * modules/setenv (Depends-on): Likewise.
22159         * modules/setlocale (Depends-on): Likewise.
22160         * modules/setsockopt (Depends-on): Likewise.
22161         * modules/shutdown (Depends-on): Likewise.
22162         * modules/sigaction (Depends-on): Likewise.
22163         * modules/signbit (Depends-on): Likewise.
22164         * modules/sigprocmask (Depends-on): Likewise.
22165         * modules/sinl (Depends-on): Likewise.
22166         * modules/sleep (Depends-on): Likewise.
22167         * modules/snprintf (Depends-on): Likewise.
22168         * modules/snprintf-posix (Depends-on): Likewise.
22169         * modules/socket (Depends-on): Likewise.
22170         * modules/sprintf-posix (Depends-on): Likewise.
22171         * modules/sqrtl (Depends-on): Likewise.
22172         * modules/stat (Depends-on): Likewise.
22173         * modules/strchrnul (Depends-on): Likewise.
22174         * modules/strdup-posix (Depends-on): Likewise.
22175         * modules/strerror (Depends-on): Likewise.
22176         * modules/strerror_r-posix (Depends-on): Likewise.
22177         * modules/strndup (Depends-on): Likewise.
22178         * modules/strnlen (Depends-on): Likewise.
22179         * modules/strptime (Depends-on): Likewise.
22180         * modules/strsep (Depends-on): Likewise.
22181         * modules/strsignal (Depends-on): Likewise.
22182         * modules/strstr-simple (Depends-on): Likewise.
22183         * modules/strtod (Depends-on): Likewise.
22184         * modules/strtoimax (Depends-on): Likewise.
22185         * modules/strtok_r (Depends-on): Likewise.
22186         * modules/strtoumax (Depends-on): Likewise.
22187         * modules/symlink (Depends-on): Likewise.
22188         * modules/symlinkat (Depends-on): Likewise.
22189         * modules/tanl (Depends-on): Likewise.
22190         * modules/tcgetsid (Depends-on): Likewise.
22191         * modules/tmpfile (Depends-on): Likewise.
22192         * modules/trunc (Depends-on): Likewise.
22193         * modules/truncf (Depends-on): Likewise.
22194         * modules/truncl (Depends-on): Likewise.
22195         * modules/uname (Depends-on): Likewise.
22196         * modules/unlink (Depends-on): Likewise.
22197         * modules/unlockpt (Depends-on): Likewise.
22198         * modules/unsetenv (Depends-on): Likewise.
22199         * modules/usleep (Depends-on): Likewise.
22200         * modules/utimensat (Depends-on): Likewise.
22201         * modules/vasprintf (Depends-on): Likewise.
22202         * modules/vdprintf (Depends-on): Likewise.
22203         * modules/vdprintf-posix (Depends-on): Likewise.
22204         * modules/vfprintf-posix (Depends-on): Likewise.
22205         * modules/vprintf-posix (Depends-on): Likewise.
22206         * modules/vsnprintf (Depends-on): Likewise.
22207         * modules/vsnprintf-posix (Depends-on): Likewise.
22208         * modules/vsprintf-posix (Depends-on): Likewise.
22209         * modules/wcrtomb (Depends-on): Likewise.
22210         * modules/wcscasecmp (Depends-on): Likewise.
22211         * modules/wcscspn (Depends-on): Likewise.
22212         * modules/wcsdup (Depends-on): Likewise.
22213         * modules/wcsncasecmp (Depends-on): Likewise.
22214         * modules/wcsnrtombs (Depends-on): Likewise.
22215         * modules/wcspbrk (Depends-on): Likewise.
22216         * modules/wcsrtombs (Depends-on): Likewise.
22217         * modules/wcsspn (Depends-on): Likewise.
22218         * modules/wcsstr (Depends-on): Likewise.
22219         * modules/wcstok (Depends-on): Likewise.
22220         * modules/wcswidth (Depends-on): Likewise.
22221         * modules/wctob (Depends-on): Likewise.
22222         * modules/wctomb (Depends-on): Likewise.
22223         * modules/wctype (Depends-on): Likewise.
22224         * modules/wcwidth (Depends-on): Likewise.
22225         * modules/write (Depends-on): Likewise.
22226
22227 2011-05-03  Bruno Haible  <bruno@clisp.org>
22228
22229         Support for conditional dependencies.
22230         * doc/gnulib.texi (Module description): Document the syntax of
22231         conditional dependencies.
22232         * gnulib-tool: New option --conditional-dependencies.
22233         (func_usage): Document it.
22234         (cond_dependencies): New variable.
22235         (func_get_automake_snippet_conditional,
22236         func_get_automake_snippet_unconditional): New functions, extracted from
22237         func_get_automake_snippet.
22238         (func_get_automake_snippet): Use them.
22239         (sed_first_32_chars): New variable.
22240         (func_module_shellfunc_name): New function.
22241         (func_module_shellvar_name): New function.
22242         (func_module_conditional_name): New function.
22243         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22244         func_cond_module_condition): New functions.
22245         (func_modules_transitive_closure): Add support for conditional
22246         dependencies.
22247         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22248         conditional automake snippet in an automake conditional.
22249         (func_emit_autoconf_snippets): Emit shell functions that contain the
22250         code for conditional modules.
22251         (func_import, func_create_testdir): Update specification.
22252
22253 2011-05-03  Eric Blake  <eblake@redhat.com>
22254
22255         test-getaddrinfo: report error information
22256         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22257
22258 2011-05-03  Jim Meyering  <meyering@redhat.com>
22259
22260         bootstrap: avoid build failure when $GZIP is set
22261         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22262         program name.  If defined at all, it is supposed to list gzip options.
22263         Reported by Alan Curry in http://debbugs.gnu.org/8609
22264
22265 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22266
22267         readme-release: new module with release instructions
22268         * modules/readme-release: New module.
22269         * top/README-release: New file, from coreutils, grep, diffutils.
22270         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22271
22272 2011-05-02  Eric Blake  <eblake@redhat.com>
22273
22274         fflush: also replace fclose when fixing fflush
22275         * modules/fflush (Depends-on): Add fclose.
22276         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22277         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22278         memstreams with no backing fd.
22279         * doc/posix-functions/fclose.texi (fclose): Document the use of
22280         fflush module to fix the bug.
22281         * tests/test-fclose.c (main): Relax test when fclose is used in
22282         isolation.
22283
22284         fclose: add some tests
22285         * modules/fclose-tests: New test module.
22286         * tests/test-fclose.c: New file.
22287         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22288
22289         fclose: reduced dependencies
22290         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22291         simpler lseek.
22292         * lib/fclose.c (rpl_fclose): Likewise.
22293         Reported by Simon Josefsson.
22294
22295         exit: drop remaining clients
22296         * modules/argmatch (Depends-on): Replace exit with stdlib.
22297         * modules/copy-file (Depends-on): Likewise.
22298         * modules/execute (Depends-on): Likewise.
22299         * modules/exitfail (Depends-on): Likewise.
22300         * modules/obstack (Depends-on): Likewise.
22301         * modules/pagealign_alloc (Depends-on): Likewise.
22302         * modules/pipe-filter-gi (Depends-on): Likewise.
22303         * modules/pipe-filter-ii (Depends-on): Likewise.
22304         * modules/savewd (Depends-on): Likewise.
22305         * modules/spawn-pipe (Depends-on): Likewise.
22306         * modules/wait-process (Depends-on): Likewise.
22307         * modules/xsetenv (Depends-on): Likewise.
22308         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22309         * modules/git-merge-changelog (Depends-on): Likewise.
22310         * modules/long-options (Depends-on): Likewise.
22311         * modules/pt_chown (Depends-on): Likewise.
22312         * modules/sysexits (Depends-on): Likewise.
22313
22314         freading: relax license from LGPLv3+ to LGPLv2+
22315         * modules/freading (License): Relax LGPL version.
22316
22317 2011-05-02  Bruno Haible  <bruno@clisp.org>
22318
22319         fchdir: Remove unused dependencies.
22320         * modules/fchdir (Depends-on): Remove include_next.
22321
22322 2011-05-02  Bruno Haible  <bruno@clisp.org>
22323
22324         gnulib-tool: Refactor.
22325         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22326         from func_emit_autoconf_snippets.
22327         (func_emit_autoconf_snippets): Use it.
22328
22329 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22330
22331         * NEWS: Document removal of 'exit'.
22332         * modules/exit: Remove file.
22333
22334 2011-05-01  Bruno Haible  <bruno@clisp.org>
22335
22336         Update DEPENDENCIES.
22337         * DEPENDENCIES (gettext): Recommend the newest release.
22338         Reported by Simon Josefsson.
22339
22340 2011-05-01  Bruno Haible  <bruno@clisp.org>
22341
22342         gnulib-tool: Reduce code duplication.
22343         * gnulib-tool (func_emit_autoconf_snippets): New function.
22344         (func_import, func_create_testdir): Use it.
22345
22346 2011-04-30  Eric Blake  <eblake@redhat.com>
22347
22348         fclose: don't fail on non-seekable input stream
22349         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22350         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22351         since fflush is allowed to fail in that case.
22352
22353 2011-04-30  Bruno Haible  <bruno@clisp.org>
22354
22355         dup3: cleanup
22356         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22357
22358 2011-04-30  Bruno Haible  <bruno@clisp.org>
22359
22360         netdb: Make it work in C++ mode.
22361         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22362         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22363         module.
22364         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22365         gl_MODULE_INDICATOR_FOR_TESTS.
22366         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22367         * modules/netdb-c++-tests: New file.
22368         * tests/test-netdb-c++.cc: New file.
22369
22370 2011-04-30  Bruno Haible  <bruno@clisp.org>
22371
22372         New modules 'vfscanf', 'vscanf'.
22373         * modules/vfscanf: New file.
22374         * modules/vscanf: New file.
22375         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22376         here.
22377         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22378         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22379
22380 2011-04-30  Bruno Haible  <bruno@clisp.org>
22381
22382         passfd: Add comments.
22383         * lib/passfd.c: Add comments about platforms.
22384
22385 2011-04-30  Bruno Haible  <bruno@clisp.org>
22386
22387         sys_uio: Make <sys/uio.h> self-contained.
22388         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22389         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22390
22391 2011-04-30  Bruno Haible  <bruno@clisp.org>
22392
22393         sys_socket: Ensure 'struct iovec' definition.
22394         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22395         <sys/socket.h>.
22396         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22397
22398 2011-04-30  Bruno Haible  <bruno@clisp.org>
22399
22400         sys_uio: Protect definition of 'struct iovec'.
22401         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22402         it as a C struct.
22403
22404 2011-04-30  Bruno Haible  <bruno@clisp.org>
22405
22406         manywarnings: fix indentation
22407         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22408
22409 2011-04-30  Pádraig Brady <P@draigBrady.com>
22410
22411         manywarnings: add -Wno-missing-field-initializers if needed.
22412         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22413         option if it's needed to allow initialization with { 0, }
22414
22415 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22416
22417         announce-gen: cosmetic improvement
22418         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22419
22420 2011-04-29  Jim Meyering  <meyering@redhat.com>
22421
22422         vc-list-files: indent with spaces, not TABs
22423         * build-aux/vc-list-files: Convert leading TABs to spaces,
22424         to match the style of most other files in gnulib.
22425
22426         announce-gen: indent with spaces, not TABs
22427         * build-aux/announce-gen: Convert all TABs to spaces, to match
22428         the style of most other files in gnulib.
22429
22430 2011-04-29  Eric Blake  <eblake@redhat.com>
22431
22432         quotearg: avoid uninitialized variable use
22433         * lib/quotearg.c (quoting_options_from_style): Initialize
22434         remaining fields, and ensure that custom styles are only used via
22435         quoting_options rather than quoting_style.
22436
22437 2011-04-29  Jim Meyering  <meyering@redhat.com>
22438
22439         maint.mk: remove unused VC-tag variable
22440         * top/maint.mk (VC-tag): Remove unused variable.
22441
22442 2011-04-29  Bruno Haible  <bruno@clisp.org>
22443
22444         netdb: fix gai_strerror replacements
22445         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22446         * modules/netdb: Substitute it.
22447
22448 2011-04-29  Jim Meyering  <meyering@redhat.com>
22449
22450         test-getcwd.c: avoid new set-but-not-used warning
22451         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22452         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22453         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22454         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22455
22456         test-hash.c: avoid a new shadowing warning
22457         * tests/test-hash.c (main): Don't shadow "dup".
22458
22459 2011-04-28  Eric Blake  <eblake@redhat.com>
22460
22461         getaddrinfo: fix gai_strerror signature
22462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22463         and work around mingw with UNICODE defined.
22464         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22465         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22466         * modules/netdb (Makefile.am): Substitute it.
22467         * lib/netdb.in.h (gai_strerror): Declare replacement.
22468         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22469         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22470         the fix.
22471
22472         getsockopt: avoid compiler warning
22473         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22474         Reported by Matthias Bolte.
22475
22476         tests: drop unused link dependency
22477         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22478         * modules/dirent-safer-tests (Makefile.am): Likewise.
22479         * modules/fdopendir-tests (Makefile.am): Likewise.
22480         * modules/mkfifoat-tests (Makefile.am): Likewise.
22481         * modules/openat-safer-tests (Makefile.am): Likewise.
22482         * modules/openat-tests (Makefile.am): Likewise.
22483         * modules/readlinkat-tests (Makefile.am): Likewise.
22484         * modules/symlinkat-tests (Makefile.am): Likewise.
22485         * modules/linkat-tests (Makefile.am): Likewise.
22486         (Depends-on): Switch to filenamecat-lgpl.
22487         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22488         LIBINTL.
22489         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22490         * tests/test-linkat.c (main): Don't require xalloc.
22491
22492         hash, mgetgroups: drop xalloc dependency
22493         * lib/hash.c (includes): Adjust includes.
22494         * lib/mgetgroups.c (includes): Likewise.
22495         (xgetgroups): Move...
22496         * lib/xgetgroups.c: ...to new file.
22497         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22498         * modules/xgetgroups: New file, split from...
22499         * modules/mgetgroups: ...here.
22500         (Depends-on): Add xalloc-oversized.
22501         * modules/hash (Depends-on): Likewise.
22502         * modules/hash-tests (Depends-on): Drop xalloc.
22503         (test_hash_LDADD): Drop unused library.
22504         * tests/test-hash.c (main): Break xalloc dependency.
22505         (includes): Drop unused include.
22506
22507         xalloc-oversized: new module
22508         * modules/xalloc-oversized: New module.
22509         * modules/xalloc (Depends-on): Add it.
22510         * lib/xalloc.h (xalloc_oversized): Move...
22511         * lib/xalloc-oversized.h: ...into new file.
22512
22513         utimecmp: drop dependency on xmalloc
22514         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22515         due to memory pressure.
22516         * modules/utimecmp (Depends-on): Drop xalloc.
22517
22518 2011-04-27  Eric Blake  <eblake@redhat.com>
22519
22520         getcwd: fix mingw bugs
22521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22522         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22523         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22524
22525 2011-04-27  Bruno Haible  <bruno@clisp.org>
22526
22527         mkstemps: Ensure declaration on MacOS X 10.5.
22528         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22529         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22530         MacOS X.
22531
22532 2011-04-27  Bruno Haible  <bruno@clisp.org>
22533
22534         mkstemp: More documentation.
22535         * doc/posix-functions/mkstemp.texi: Document header file problem on
22536         MacOS X.
22537
22538 2011-04-27  Bruno Haible  <bruno@clisp.org>
22539
22540         mkstemp: Tweak configure message when cross-compiling.
22541         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22542         result as a guess.
22543
22544 2011-04-27  Bruno Haible  <bruno@clisp.org>
22545
22546         clean-temp: Clarify what it does.
22547         * lib/clean-temp.h: Add more comments.
22548         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22549         module.
22550         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22551         * doc/glibc-functions/mkstemps.texi: Likewise.
22552         * doc/glibc-functions/mkostemps.texi: Likewise.
22553
22554 2011-04-27  Eric Blake  <eblake@redhat.com>
22555
22556         fchdir: avoid extra chdir and fix test
22557         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22558         getcwd-lgpl.
22559         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22560         have to be canonical.
22561         (canonicalize_file_name): Drop unused macro.
22562         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22563
22564         filenamecat-lgpl: fix licence
22565         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22566         when it was first created.
22567
22568         linkat, renameat: add missing dependency
22569         * modules/linkat (Depends-on): Require getcwd-lgpl.
22570         * modules/renameat (Depends-on): Likewise.
22571
22572         tests: reduce dependencies
22573         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22574         * tests/test-renameat.c (main): Likewise.
22575         * modules/linkat-tests (Depends-on): Relax dependency.
22576         * modules/renameat-tests (Depends-on): Likewise.
22577         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22578         dependency explicit.
22579
22580         save-cwd: reduce default dependency
22581         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22582         * lib/save-cwd.c: Update comments.
22583         * NEWS: Document the semantic change.
22584
22585         getcwd: enhance tests
22586         * tests/test-getcwd-lgpl.c: New file, taken from...
22587         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22588         repeat long path stress tests from m4 probe.
22589         * modules/getcwd-lgpl-tests: New module.
22590         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22591         * m4/getcwd-abort-bug.m4: Update comment.
22592         * m4/getcwd-path-max.m4: Likewise.
22593
22594         getcwd-lgpl: new module
22595         * modules/getcwd-lgpl: New module.
22596         * lib/getcwd-lgpl.c: New file.
22597         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22598         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22599         * modules/getcwd (configure.ac): Set C witness.
22600         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22601
22602         getcwd: tweak comments
22603         * m4/getcwd-abort-bug.m4: Fix comments.
22604         * m4/getcwd-path-max.m4: Likewise.
22605         * m4/getcwd.m4: Likewise.
22606
22607 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22608         and Eric Blake  <eblake@redhat.com>
22609
22610         mkstemp: replace if system version uses wrong permissions
22611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22612         read/write mode bits set in file created by mkstemp.
22613         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22614
22615 2011-04-27  Eric Blake  <eblake@redhat.com>
22616
22617         passfd: avoid compiler warning
22618         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22619         Reported by Laine Stump.
22620
22621 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22622
22623         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22624         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22625
22626 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22627         and Eric Blake  <eblake@redhat.com>
22628
22629         mkstemp: mention clean-temp module
22630         * lib/mkstemp.c: Add comment.
22631         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22632
22633 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22634
22635         inttypes: also provide default values for 32-bit tests
22636         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22637         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22638
22639 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22640
22641         strtoumax: remove dependency on strtoimax
22642         This is like the strtoull change of yesterday.
22643         * modules/strtoumax (Files): Add lib/strtoimax.c.
22644         (Depends-on): Remove strtoimax and add verify.
22645
22646         inttypes-incomplete: new module
22647         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22648         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22649         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22650         of gl_INTTYPES_H.
22651         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22652         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22653         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22654         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22655         * modules/strtoumax, modules/xstrtol (Depends-on):
22656         Depend on inttypes-incomplete, not inttypes.
22657         * modules/inttypes-incomplete: New module, containing the contents
22658         of the old modules/inttypes module, except that the Files: section
22659         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22660         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22661         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22662         (Depends-on): Depend only on inttypes-incomplete.
22663         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22664
22665         inttypes: omit now-redundant strtoimax and strtoumax work
22666         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22667         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22668
22669         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22670         This supports apps that need pointers to strtoimax and strtoumax,
22671         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22672         nonexistent functions.  See
22673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22674         et seq.
22675         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22677         a macro.
22678         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22679
22680 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22681
22682         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22683
22684 2011-04-25  Bruno Haible  <bruno@clisp.org>
22685
22686         strtol, strtoul: Mark modules as obsolete.
22687         * modules/strtol (Status, Notice): New sections.
22688         * modules/strtoul (Status, Notice): New sections.
22689
22690 2011-04-25  Bruno Haible  <bruno@clisp.org>
22691
22692         strtod: Remove check for strtod, unless supporting old platforms.
22693         * modules/strtod-obsolete: New file.
22694         * m4/strtod-obsolete.m4: New file.
22695         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22696         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22697         * modules/strtod (Depends-on): Add strtod-obsolete.
22698         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22699
22700 2011-04-25  Bruno Haible  <bruno@clisp.org>
22701
22702         strcase: Make module obsolete.
22703         * modules/strcase (Status, Notice): New sections.
22704
22705 2011-04-25  Bruno Haible  <bruno@clisp.org>
22706
22707         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22708         * modules/dup2-obsolete: New file.
22709         * m4/dup2-obsolete.m4: New file.
22710         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22711         gl_FUNC_DUP2_OBSOLETE is not also defined.
22712         * modules/dup2 (Depends-on): Add dup2-obsolete.
22713         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22714
22715 2011-04-25  Bruno Haible  <bruno@clisp.org>
22716
22717         strnlen: Avoid memchr related link error on old obsolete platforms.
22718         * modules/memchr-obsolete: New file.
22719         * m4/memchr-obsolete.m4: New file.
22720         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22721         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22722         * modules/memchr (Depends-on): Add memchr-obsolete.
22723         * modules/strnlen (Depends-on): Likewise.
22724         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22725
22726 2011-04-25  Jim Meyering  <meyering@redhat.com>
22727
22728         maint.mk: makefile_at_at_check extend and clean up
22729         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22730         in addition to */Makefile.am.
22731         Exempt legitimate uses of @VAR@ notation, e.g.,
22732         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22733         Remove obsolete coreutils-specific comment.
22734         Prompted by discussion here:
22735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22736
22737 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22738
22739         strtoul: remove dependency on strtol
22740         This is so that 'configure' need not check for strtol merely because
22741         the application needs strtoul.
22742         * modules/strtoul (Files): Add lib/strtol.c.
22743         (Depends-on): Remove strtol.
22744
22745         strtoull: remove dependency on strtoul
22746         This is like the strtoll change.
22747         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22748         (Depends-on): Remove strtoul.
22749
22750         strtoll: remove dependency on strtol
22751         This is so that 'configure' need not check for strtol merely because
22752         the application needs strtoll.
22753         * modules/strtoll (Files): Add lib/strtol.c.
22754         (Depends-on): Remove strtol.
22755
22756 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22757
22758         inttypes: Move some configure check to module 'imaxdiv'.
22759         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22760         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22761         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22762
22763 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22764
22765         inttypes: Move some configure check to module 'imaxabs'.
22766         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22767         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22768         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22769
22770 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22771
22772         inttypes: Remove configure tests that are not needed since 2009-12-31.
22773         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22774         gl_cv_header_working_inttypes_h.
22775
22776 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22777
22778         * modules/strnlen (Depends-on): Remove memchr.
22779         The strnlen implementation doesn't need the memchr module's fixes; see
22780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22781
22782         strtol: remove dependency on wchar
22783         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22784         * modules/strtol (Depends-on): Remove wchar.
22785
22786 2011-04-21  Eric Blake  <eblake@redhat.com>
22787
22788         passfd: fix test regression on Linux
22789         * modules/passfd-tests (configure.ac): Correct socketpair check.
22790
22791         passfd: speed up configure and drop unused code
22792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22793         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22794         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22795         Instead of probing at configure for unix_scm_rights_bsd44_way,
22796         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22797         check to a struct member probe.
22798         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22799         (sendfd, recvfd): Update preprocessor checks.
22800         * modules/passfd (Files): Reflect rename, and drop unused file.
22801         (Depends-on): Drop unused dependency.
22802
22803         passfd: allow compilation on mingw
22804         * modules/sys_socket (Depends-on): Add sys_uio.
22805         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22806         iovec and a minimal struct msghdr.
22807         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22808         * tests/test-sys_socket.c (main): Enhance test.
22809         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22810         guaranteed to provide what we need.
22811         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22812         * modules/passfd-tests (Depends-on): Add sys_wait.
22813         * tests/test-passfd.c (main): Skip test on mingw, for now.
22814         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22815         partial 'struct msghdr' implementation.
22816
22817         sys_uio: new module
22818         * modules/sys_uio: New module.
22819         * modules/sys_uio-tests: Likewise.
22820         * lib/sys_uio.in.h: New file.
22821         * m4/sys_uio_h.m4: Likewise.
22822         * tests/test-sys_uio.c: Likewise.
22823         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22824         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22825
22826 2011-04-20  Jim Meyering  <meyering@redhat.com>
22827
22828         useless-if-before-free: avoid false-positive
22829         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22830         disjunct so that it too requires a terminating ";".  Without that,
22831         this script would identify as useless one statement from gcc that
22832         was not:
22833           if (aligned_ptr)
22834             free (((void **) aligned_ptr) [-1]);
22835
22836 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22837
22838         doc: update users.txt.
22839         * users.txt: Add barcode.
22840
22841 2011-04-19  Bruno Haible  <bruno@clisp.org>
22842
22843         ioctl: Remove link dependency on native Windows.
22844         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22845         (gl_close_fn, gl_ioctl_fn): New types.
22846         (struct fd_hook): Renamed from struct close_hook. Change type of
22847         private_close_fn field. Add private_ioctl_fn field.
22848         (close_hook_fn): Add parameter for primary close method.
22849         (execute_close_hooks, execute_all_close_hooks): Likewise.
22850         (ioctl_hook_fn): New type.
22851         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22852         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22853         argument.
22854         (unregister_fd_hook): Renamed from unregister_close_hook.
22855         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22856         Don't include <unistd.h>.
22857         (close): Remove undef.
22858         (anchor): Update.
22859         (execute_close_hooks): Add argument for primary close method.
22860         (execute_all_close_hooks): Likewise.
22861         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22862         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22863         argument. Allow each argument to be NULL.
22864         (unregister_fd_hook): Renamed from unregister_close_hook.
22865         * lib/close.c (rpl_close): Pass 'close' function pointer to
22866         execute_all_close_hooks.
22867         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22868         (primary_ioctl): New function.
22869         (ioctl): Don't call ioctlsocket here. Instead, call
22870         execute_all_ioctl_hooks.
22871         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22872         close method.
22873         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22874         (fd_sockets_hook): Renamed from close_sockets_hook.
22875         (gl_sockets_startup, gl_sockets_cleanup): Update.
22876         * modules/fd-hook: Renamed from modules/close-hook. Update.
22877         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22878         * modules/sockets (Depends-on): Likewise.
22879         * modules/ioctl (Depends-on): Add fd-hook.
22880         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22881         GNULIB_SOCKET.
22882
22883 2011-04-19  Bruno Haible  <bruno@clisp.org>
22884
22885         Move the support of O_NONBLOCK in open() to the 'open' module.
22886         * modules/nonblocking (Depends-on): Remove 'open'.
22887         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22888         gl_cv_have_open_O_NONBLOCK.
22889         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22890         O_NONBLOCK support.
22891         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22892
22893 2011-04-17  Bruno Haible  <bruno@clisp.org>
22894
22895         pipe2: Simplify code.
22896         * lib/pipe2.c (pipe2): Reduce code duplication.
22897
22898 2011-04-17  Bruno Haible  <bruno@clisp.org>
22899
22900         nonblocking: Add comment.
22901         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22902
22903 2011-04-17  Bruno Haible  <bruno@clisp.org>
22904
22905         nonblocking: Add tests for sockets.
22906         * tests/test-nonblocking-socket.sh: New file.
22907         * tests/test-nonblocking-socket-main.c: New file.
22908         * tests/test-nonblocking-socket-child.c: New file.
22909         * tests/test-nonblocking-socket.h: New file.
22910         * tests/socket-server.h: New file.
22911         * tests/socket-client.h: New file.
22912         * modules/nonblocking-socket-tests: New file.
22913         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22914
22915 2011-04-17  Bruno Haible  <bruno@clisp.org>
22916
22917         nonblocking: Add tests for pipes.
22918         * tests/test-nonblocking-pipe.sh: New file.
22919         * tests/test-nonblocking-pipe-main.c: New file.
22920         * tests/test-nonblocking-pipe-child.c: New file.
22921         * tests/test-nonblocking-pipe.h: New file.
22922         * tests/test-nonblocking-writer.h: New file.
22923         * tests/test-nonblocking-reader.h: New file.
22924         * tests/test-nonblocking-misc.h: New file.
22925         * modules/nonblocking-pipe-tests: New file.
22926         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22927
22928 2011-04-16  Bruno Haible  <bruno@clisp.org>
22929
22930         gettext: Clarify the needed programmer actions.
22931         * modules/gettext (Notice): New field.
22932         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22933
22934 2011-04-16  Bruno Haible  <bruno@clisp.org>
22935
22936         strchrnul: Tweak last commit.
22937         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22938         bug.
22939         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22940         as in _GL_FUNCDECL_SYS.
22941         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22942         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22943
22944 2011-04-15  Eric Blake  <eblake@redhat.com>
22945
22946         strchrnul: work around cygwin bug
22947         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22950         * modules/string (Makefile.am): Substitute it.
22951         * lib/string.in.h (strchrnul): Use it.
22952
22953 2011-04-15  Bruno Haible  <bruno@clisp.org>
22954
22955         Don't require lib/stdio-write.c when only module 'stdio' is used.
22956         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22957         invocation.
22958         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22959
22960 2011-04-14  Bruno Haible  <bruno@clisp.org>
22961
22962         Support non-blocking pipe I/O in read() on native Windows.
22963         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22964         (read): New declaration.
22965         * lib/read.c: New file.
22966         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22967         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22968         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22969         vscanf): New declarations.
22970         * lib/stdio-read.c: New file.
22971         * m4/read.m4: New file.
22972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22973         REPLACE_READ.
22974         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22975         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22976         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22977         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22978         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22979         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22980         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22981         * modules/read: New file.
22982         * modules/nonblocking (Files): Add lib/stdio-read.c.
22983         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22984         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22985         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22986         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22987         * modules/pread (Depends-on): Add read.
22988         * modules/safe-read (Depends-on): Likewise.
22989         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22990         gets, scanf, vfscanf, vscanf): Verify signatures.
22991         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22992         problem with non-blocking pipes.
22993         * doc/posix-functions/fgetc.texi: Likewise.
22994         * doc/posix-functions/fgets.texi: Likewise.
22995         * doc/posix-functions/fread.texi: Likewise.
22996         * doc/posix-functions/fscanf.texi: Likewise.
22997         * doc/posix-functions/getc.texi: Likewise.
22998         * doc/posix-functions/getchar.texi: Likewise.
22999         * doc/posix-functions/gets.texi: Likewise.
23000         * doc/posix-functions/scanf.texi: Likewise.
23001         * doc/posix-functions/vfscanf.texi: Likewise.
23002         * doc/posix-functions/vscanf.texi: Likewise.
23003
23004 2011-04-14  Bruno Haible  <bruno@clisp.org>
23005
23006         Support non-blocking pipe I/O in write() on native Windows.
23007         * lib/write.c (rpl_write): Split a write request that failed merely
23008         because the byte count was larger than the pipe buffer's size.
23009         * doc/posix-functions/write.texi: Mention the problem with large byte
23010         counts.
23011
23012 2011-04-14  Bruno Haible  <bruno@clisp.org>
23013
23014         wchar: Ensure that wchar_t gets defined on uClibc.
23015         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23016         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23017
23018 2011-04-13  Bruno Haible  <bruno@clisp.org>
23019
23020         safe-write, full-read: Avoid unnecessary compilation units.
23021         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23022         (Depends-on): Remove safe-read. Add ssize_t.
23023         * modules/full-read (Files): Add lib/full-write.c.
23024         (Depends-on): Add full-write.
23025
23026 2011-04-13  Bruno Haible  <bruno@clisp.org>
23027
23028         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23029         * modules/pwrite (Depends-on): Add 'write'.
23030
23031 2011-04-13  Bruno Haible  <bruno@clisp.org>
23032
23033         Support non-blocking pipe I/O in write() on native Windows.
23034         * lib/unistd.in.h (write): Enable replacement also if
23035         GNULIB_UNISTD_H_NONBLOCKING is 1.
23036         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23037         (rpl_write): When failing to write on a non-blocking pipe, change
23038         errno from ENOSPC to EAGAIN.
23039         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23040         putchar, puts, vfprintf, vprintf): Enable replacement also if
23041         GNULIB_STDIO_H_NONBLOCKING is 1.
23042         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23043         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23044         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23045         CALL_WITH_SIGPIPE_EMULATION.
23046         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23047         * m4/nonblocking.m4: New file.
23048         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23049         for non-blocking I/O support.
23050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23051         GNULIB_UNISTD_H_NONBLOCKING.
23052         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23053         required for non-blocking I/O support.
23054         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23055         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23056         lib/stdio-write.c, m4/asm-underscore.m4.
23057         (Depends-on): Add stdio, unistd.
23058         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23059         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23060         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23061         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23062         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23063         problem with non-blocking pipes.
23064         * doc/posix-functions/fputc.texi: Likewise.
23065         * doc/posix-functions/fputs.texi: Likewise.
23066         * doc/posix-functions/fwrite.texi: Likewise.
23067         * doc/posix-functions/printf.texi: Likewise.
23068         * doc/posix-functions/putc.texi: Likewise.
23069         * doc/posix-functions/putchar.texi: Likewise.
23070         * doc/posix-functions/puts.texi: Likewise.
23071         * doc/posix-functions/vfprintf.texi: Likewise.
23072         * doc/posix-functions/vprintf.texi: Likewise.
23073         * doc/posix-functions/write.texi: Likewise.
23074
23075 2011-04-10  Jim Meyering  <meyering@redhat.com>
23076
23077         maint.mk: prohibit doubled words
23078         Detect them also when they're separated by a newline.
23079         There are 3 ways to customize it:
23080           - disable the test on a per file basis, as usual with rules using
23081             $(VC_LIST_EXCEPT)
23082           - replace the default doubled-word-selecting regexp (affects all files)
23083           - ignore a particular file-vs-doubled-word match
23084         I nearly used that last one to ignore the "is is" match in
23085         coreutils' NEWS file, since the text was "ls -is is ..."
23086         To do that, I would have added this line to cfg.mk:
23087           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23088         but it would have ignored any "is is" match in NEWS.
23089         Low probability, but still...
23090         Instead, I changed the text, slightly:
23091           -  ls -is is now consistent with ls -lis in ignoring values returned
23092           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23093         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23094         (prohibit_doubled_word_): Define.
23095         (sc_prohibit_doubled_word): New rule.
23096         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23097
23098 2011-04-10  Jim Meyering  <meyering@redhat.com>
23099
23100         maint: fix doubled-word typo in comment
23101         * m4/gethostname.m4: s/is is/it is/
23102         * m4/getdomainname.m4: Likewise.
23103
23104 2011-04-10  Jim Meyering  <meyering@redhat.com>
23105
23106         maint: remove doubled word: s/it it/it/
23107         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23108
23109 2011-04-10  Jim Meyering  <meyering@redhat.com>
23110
23111         maint.mk: remove useless semicolon and backslash
23112         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23113         semicolon and backslash.
23114
23115 2011-04-10  Bruno Haible  <bruno@clisp.org>
23116
23117         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23118         * modules/stdint-tests (Depends-on): Add wchar.
23119
23120 2011-04-10  Jim Meyering  <meyering@redhat.com>
23121
23122         maint: remove doubled words in comments, e.g., s/a a/a/
23123         * lib/strptime.c (day_of_the_week): s/the the/the/
23124         * tests/test-chown.h (test_chown): s/a a/a/
23125
23126         test-chown.h: correct a cast
23127         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23128         when the destination is a stat.st_gid.
23129
23130 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23131
23132         getaddrinfo: Fix test for sa_len member.
23133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23134         include <sys/types.h> before <sys/socket.h>.
23135
23136 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23137
23138         maint: change "can not" to "cannot"
23139         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23140         boundaries.
23141
23142 2011-04-09  Jim Meyering  <meyering@redhat.com>
23143
23144         maint: change "a a" to "a"
23145         * tests/test-lchown.h (test_lchown): s/a a/a/
23146
23147         maint.mk: prohibit \<the the\>
23148         * top/maint.mk (sc_prohibit_the_the): New rule.
23149
23150         maint: fix "the the" in comment
23151         * lib/count-one-bits.h: s/the the/the/
23152
23153         maint: change "can not" to "cannot"
23154         But do not change the occurrences in maintain.texi or in
23155         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23156         * doc/gnulib-tool.texi: s/can not/cannot/
23157         * doc/posix-functions/accept.texi (accept): Likewise.
23158         * doc/posix-functions/socket.texi (socket): Likewise.
23159         * lib/mbrtowc.c: Likewise.
23160
23161         maint.mk: prohibit use of "can not"
23162         * top/maint.mk (sc_prohibit_can_not): New rule.
23163         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23164
23165 2011-04-09  Bruno Haible  <bruno@clisp.org>
23166
23167         careadlinkat: Guard against misuse of careadlinkatcwd.
23168         * lib/careadlinkat.c: Include <stdlib.h>.
23169         (careadlinkatcwd): Check that the fd argument is as expected.
23170
23171 2011-04-09  Bruno Haible  <bruno@clisp.org>
23172
23173         careadlinkat: Use common coding style.
23174         * lib/careadlinkat.c: Move gnulib includes after system includes.
23175
23176 2011-04-09  Bruno Haible  <bruno@clisp.org>
23177
23178         careadlinkat: Clarify specification.
23179         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23180         (careadlinkatcwd): Add comment.
23181         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23182
23183 2011-04-09  Bruno Haible  <bruno@clisp.org>
23184
23185         areadlinkat: Avoid link error on many platforms.
23186         * modules/areadlinkat (Depends-on): Add areadlink.
23187
23188 2011-04-09  Bruno Haible  <bruno@clisp.org>
23189
23190         allocator, careadlinkat: Fix double-inclusion guard.
23191         * lib/allocator.h: Fix double-inclusion guard.
23192         * lib/careadlinkat.h: Likewise.
23193
23194 2011-04-09  Bruno Haible  <bruno@clisp.org>
23195
23196         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23197         * lib/relocwrapper.c: Update dependencies hierarchy.
23198         * build-aux/install-reloc: Update list of files to be compiled.
23199         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23200         lib/allocator.[hc].
23201
23202 2011-04-08  Eric Blake  <eblake@redhat.com>
23203
23204         strftime: silence gnulib-tool warning
23205         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23206
23207 2011-04-08  Bruno Haible  <bruno@clisp.org>
23208
23209         verify: Fix syntax error with GCC 4.6 in C++ mode.
23210         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23211         (HAVE_STATIC_ASSERT): New macro.
23212         (verify_true, verify): Use 'static_assert' if it is supported and
23213         '_Static_assert' is not supported.
23214
23215 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23216
23217         allocator: New module.
23218         * modules/allocator, lib/allocator.c: New files.
23219         * lib/allocator.h (stdlib_allocator): New decl.
23220         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23221         Remove.  Do not include <stdlib.h>.
23222         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23223         * modules/careadlinkat (Files): Remove lib/allocator.h.
23224         (Depends-on): Add allocator.
23225
23226         stdlib: let modules use system malloc, realloc
23227         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23228         if !_GL_USE_STDLIB_ALLOC.
23229         (malloc, realloc): Limit this change to a smaller scope.
23230
23231         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23232         (malloc, realloc): Don't #undef; no longer needed.
23233         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23234         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23235         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23236         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23237         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23238         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23239         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23240         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23241
23242         careadlinkat: rename members to avoid problem
23243         * lib/allocator.h (struct allocator): Rename members from
23244         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23245         and realloc are #define'd.  Reported by Eric Blake in
23246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23247         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23248
23249 2011-04-08  Eric Blake  <eblake@redhat.com>
23250
23251         nonblocking: reduce dependency
23252         * tests/test-nonblocking.c: Only test sockets when in use.
23253         * modules/nonblocking-tests (Depends-on): Drop socket.
23254         (Makefile.am): Link even if sockets are not present.
23255         * modules/pipe2-tests (Makefile.am): Likewise.
23256         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23257
23258         pipe2: fix O_NONBLOCK support on mingw
23259         * modules/pipe2 (Depends-on): Add nonblocking.
23260         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23261         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23262         * tests/test-nonblocking.c (main): Likewise.
23263         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23264
23265         fcntl-h: fix O_ACCMODE on cygwin
23266         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23267         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23268
23269         pipe-filter: drop O_NONBLOCK workarounds
23270         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23271         * modules/pipe-filter-ii (Depends-on): Likewise.
23272         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23273
23274         nonblocking: provide O_NONBLOCK for mingw
23275         * modules/nonblocking (Depends-on): Add open.
23276         (configure.ac): Set new witness macro.
23277         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23278         * modules/fcntl-h (Makefile.am): Substitute it.
23279         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23280         nonblocking module is in use.
23281         * lib/nonblocking.c: Adjust portability test.
23282         * lib/open.c (open): Don't let native open see gnulib flag.
23283         * tests/test-fcntl-h.c (main): Enhance test.
23284         * tests/test-open.h (test_open): Likewise.
23285         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23286
23287         careadlinkat: fix compilation error on mingw
23288         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23289         within struct allocator.
23290
23291 2011-04-06  Eric Blake  <eblake@redhat.com>
23292
23293         binary-io: relicense under LGPLv2+
23294         * modules/binary-io (License): Relax to LGPLv2+.
23295         Requested for libvirt, and required by pipe2.
23296
23297 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23298
23299         verify: use _Static_assert if available
23300         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23301         (verify_true, verify): Use it if available.  This generates better
23302         diagnostics with GCC 4.6.0 and later.
23303
23304 2011-04-05  Bruno Haible  <bruno@clisp.org>
23305
23306         Remove leftover generated .h files after config.status changed.
23307
23308         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23309         GL_GENERATE_ALLOCA_H.
23310         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23311         GL_GENERATE_ALLOCA_H evaluates to false.
23312
23313         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23314         GL_GENERATE_ARGZ_H.
23315         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23316         evaluates to false.
23317
23318         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23319         GL_GENERATE_BYTESWAP_H.
23320         * modules/byteswap (Makefile.am): Remove byteswap.h if
23321         GL_GENERATE_BYTESWAP_H evaluates to false.
23322
23323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23324         GL_GENERATE_ERRNO_H.
23325         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23326         evaluates to false.
23327
23328         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23329         GL_GENERATE_FLOAT_H.
23330         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23331         evaluates to false.
23332
23333         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23334         GL_GENERATE_FNMATCH_H.
23335         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23336         GL_GENERATE_FNMATCH_H evaluates to false.
23337
23338         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23339         GL_GENERATE_GLOB_H.
23340         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23341         evaluates to false.
23342
23343         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23344         automake conditional GL_GENERATE_ICONV_H.
23345         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23346         evaluates to false.
23347
23348         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23349         GL_GENERATE_NETINET_IN_H.
23350         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23351         GL_GENERATE_NETINET_IN_H evaluates to false.
23352
23353         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23354         conditional GL_GENERATE_PTHREAD_H.
23355         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23356         * modules/pthread (Makefile.am): Remove pthread.h if
23357         GL_GENERATE_PTHREAD_H evaluates to false.
23358
23359         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23360         GL_GENERATE_SCHED_H.
23361         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23362         evaluates to false.
23363
23364         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23365         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23366         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23367         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23368
23369         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23370         GL_GENERATE_STDARG_H.
23371         * modules/stdarg (Makefile.am): Remove stdarg.h if
23372         GL_GENERATE_STDARG_H evaluates to false.
23373
23374         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23375         GL_GENERATE_STDBOOL_H.
23376         * modules/stdbool (Makefile.am): Remove stdbool.h if
23377         GL_GENERATE_STDBOOL_H evaluates to false.
23378
23379         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23380         conditional GL_GENERATE_STDDEF_H.
23381         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23382         * modules/stddef (Makefile.am): Remove stddef.h if
23383         GL_GENERATE_STDDEF_H evaluates to false.
23384
23385         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23386         GL_GENERATE_STDINT_H.
23387         * modules/stdint (Makefile.am): Remove stdint.h if
23388         GL_GENERATE_STDINT_H evaluates to false.
23389
23390         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23391         GL_GENERATE_SYSEXITS_H.
23392         * modules/sysexits (Makefile.am): Remove sysexits.h if
23393         GL_GENERATE_SYSEXITS_H evaluates to false.
23394
23395         Reported by Karl Berry and Ralf Wildenhues.
23396
23397 2011-04-05  Bruno Haible  <bruno@clisp.org>
23398
23399         Ensure to rebuild generated .h files when config.status has changed.
23400         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23401         config.status.
23402         * modules/ctype (Makefile.am): Likewise.
23403         * modules/dirent (Makefile.am): Likewise.
23404         * modules/errno (Makefile.am): Likewise.
23405         * modules/fcntl-h (Makefile.am): Likewise.
23406         * modules/float (Makefile.am): Likewise.
23407         * modules/getopt-posix (Makefile.am): Likewise.
23408         * modules/glob (Makefile.am): Likewise.
23409         * modules/iconv-h (Makefile.am): Likewise.
23410         * modules/inttypes (Makefile.am): Likewise.
23411         * modules/langinfo (Makefile.am): Likewise.
23412         * modules/locale (Makefile.am): Likewise.
23413         * modules/math (Makefile.am): Likewise.
23414         * modules/netdb (Makefile.am): Likewise.
23415         * modules/netinet_in (Makefile.am): Likewise.
23416         * modules/poll-h (Makefile.am): Likewise.
23417         * modules/pthread (Makefile.am): Likewise.
23418         * modules/pty (Makefile.am): Likewise.
23419         * modules/sched (Makefile.am): Likewise.
23420         * modules/search (Makefile.am): Likewise.
23421         * modules/selinux-h (Makefile.am): Likewise.
23422         * modules/signal (Makefile.am): Likewise.
23423         * modules/spawn (Makefile.am): Likewise.
23424         * modules/stdarg (Makefile.am): Likewise.
23425         * modules/stdbool (Makefile.am): Likewise.
23426         * modules/stddef (Makefile.am): Likewise.
23427         * modules/stdint (Makefile.am): Likewise.
23428         * modules/stdio (Makefile.am): Likewise.
23429         * modules/stdlib (Makefile.am): Likewise.
23430         * modules/string (Makefile.am): Likewise.
23431         * modules/strings (Makefile.am): Likewise.
23432         * modules/sys_file (Makefile.am): Likewise.
23433         * modules/sys_ioctl (Makefile.am): Likewise.
23434         * modules/sys_select (Makefile.am): Likewise.
23435         * modules/sys_socket (Makefile.am): Likewise.
23436         * modules/sys_stat (Makefile.am): Likewise.
23437         * modules/sys_time (Makefile.am): Likewise.
23438         * modules/sys_times (Makefile.am): Likewise.
23439         * modules/sys_utsname (Makefile.am): Likewise.
23440         * modules/sys_wait (Makefile.am): Likewise.
23441         * modules/sysexits (Makefile.am): Likewise.
23442         * modules/termios (Makefile.am): Likewise.
23443         * modules/time (Makefile.am): Likewise.
23444         * modules/unistd (Makefile.am): Likewise.
23445         * modules/wchar (Makefile.am): Likewise.
23446         * modules/wctype-h (Makefile.am): Likewise.
23447         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23448
23449 2011-04-05  Bruno Haible  <bruno@clisp.org>
23450
23451         pipe2: Relicense under LGPLv2+.
23452         * modules/pipe2 (License): Change to LGPLv2+.
23453         Requested by Eric Blake, for libvirt.
23454
23455 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23456
23457         bootstrap: compute gnulib_extra_files after updating build_aux
23458         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23459         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23460
23461 2011-04-05  Eric Blake  <eblake@redhat.com>
23462
23463         bootstrap: preserve git whitelist item sorting
23464         * build-aux/bootstrap (sort_patterns): New function.
23465         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23466
23467 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23468
23469         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23470         sc_space_tab check.
23471
23472 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23473
23474         areadlink, areadlinkat: rewrite in terms of careadlinkat
23475         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23476         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23477         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23478         (malloc, realloc): Remove #undefs.
23479         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23480         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23481         readlink, ssize_t, stdint, unistd.
23482         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23483         areadlink, stdint.
23484
23485         careadlinkat: new module
23486         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23487         * modules/careadlinkat: New files, written by me with
23488         a review and feedback from Ben Pfaff in
23489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23490
23491 2011-04-01  Bruno Haible  <bruno@clisp.org>
23492
23493         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23494         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23495         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23496         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23497         Reported by Bruce Korb <bruce.korb@gmail.com>.
23498
23499 2011-04-01  Bruno Haible  <bruno@clisp.org>
23500
23501         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23502         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23503         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23504         * modules/wcpcpy (Depends-on): Add extensions.
23505         * modules/wcpncpy (Depends-on): Likewise.
23506         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23507         systems.
23508         * doc/posix-functions/wcpncpy.texi: Likewise.
23509         * doc/posix-functions/wcwidth.texi: Likewise.
23510
23511 2011-03-31  Eric Blake  <eblake@redhat.com>
23512
23513         nonblocking: fix mingw test failures
23514         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23515         non-blocking flag on regular file.
23516         (get_nonblocking_flag): Set errno on invalid fd.
23517         * tests/test-nonblocking.c (main): Avoid test failure on
23518         directories if fchdir is not active.
23519         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23520
23521 2011-03-31  Bruno Haible  <bruno@clisp.org>
23522
23523         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23524         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23525         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23526         Reported by Simon Josefsson <simon@josefsson.org>.
23527
23528 2011-03-31  Bruno Haible  <bruno@clisp.org>
23529         and Eric Blake  <eblake@redhat.com>
23530
23531         nonblocking: new module
23532         * modules/nonblocking: New module.
23533         * modules/nonblocking-tests: Likewise.
23534         * lib/nonblocking.h: New file.
23535         * lib/nonblocking.c: Likewise.
23536         * tests/test-nonblocking.c: New test.
23537         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23538
23539 2011-03-30  Bruno Haible  <bruno@clisp.org>
23540
23541         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23542         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23543         instead of 'printf' format for GCC >= 4.4.
23544         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23545         (fprintf, printf, vfprintf, vprintf): Declare with
23546         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23547         the system's vfprintf() function.
23548         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23549
23550 2011-03-30  Eric Blake  <eblake@redhat.com>
23551
23552         passfd: fix scoping bug
23553         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23554         before sendmsg/recvmsg.
23555
23556         passfd: standardize coding conventions
23557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23558         can be learned at compile time.
23559         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23560         ifdefs.
23561         (sendfd, recvfd): Follow gnulib code conventions.
23562
23563         passfd: fix incorrect sendmsg arguments
23564         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23565         incorrect msg_controllen value.
23566         * modules/passfd-tests (Depends-on): Check for alarm.
23567         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23568         Reported by Bastien ROUCARIES.
23569
23570 2011-03-30  Bruno Haible  <bruno@clisp.org>
23571
23572         c-strcasestr: Relicense under LGPLv2+.
23573         * modules/c-strcasestr (License): Change to LGPLv2+.
23574         Requested by Eric Blake, for libvirt.
23575
23576 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23577
23578         * users.txt: Add libidn2.  Fix libtasn1 link.
23579
23580 2011-03-30  Jim Meyering  <meyering@redhat.com>
23581
23582         tests: readlink* ("",... fails with EINVAL on newer kernels
23583         readlink and readlinkat have typically failed with ENOENT for
23584         the invalid, empty file name,  "".  However, with the advent
23585         of linux-2.6.39, they fail with EINVAL.
23586         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23587         when operating on the empty file name.
23588         * tests/test-readlink.h (test_readlink): Likewise.
23589
23590 2011-03-29  Bruno Haible  <bruno@clisp.org>
23591
23592         Relicense some modules under LGPLv2+, for libidn2.
23593         * modules/array-mergesort (License): Change to LGPLv2+.
23594         * modules/c-strcaseeq (License): Likewise.
23595         * modules/striconveh (License): Likewise.
23596         * modules/striconveha (License): Likewise.
23597         * modules/uniconv/base (License): Likewise.
23598         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23599         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23600         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23601         * modules/unictype/base (License): Likewise.
23602         * modules/unictype/bidiclass-of (License): Likewise.
23603         * modules/unictype/category-M (License): Likewise.
23604         * modules/unictype/category-none (License): Likewise.
23605         * modules/unictype/category-of (License): Likewise.
23606         * modules/unictype/category-test (License): Likewise.
23607         * modules/unictype/category-test-withtable (License): Likewise.
23608         * modules/unictype/combining-class (License): Likewise.
23609         * modules/unictype/joiningtype-of (License): Likewise.
23610         * modules/unictype/scripts (License): Likewise.
23611         * modules/uninorm/base (License): Likewise.
23612         * modules/uninorm/canonical-decomposition (License): Likewise.
23613         * modules/uninorm/composition (License): Likewise.
23614         * modules/uninorm/decompose-internal (License): Likewise.
23615         * modules/uninorm/decomposition-table (License): Likewise.
23616         * modules/uninorm/nfc (License): Likewise.
23617         * modules/uninorm/nfd (License): Likewise.
23618         * modules/uninorm/u32-normalize (License): Likewise.
23619         * modules/unistr/base (License): Likewise.
23620         * modules/unistr/u32-cpy (License): Likewise.
23621         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23622         * modules/unistr/u32-to-u8 (License): Likewise.
23623         * modules/unistr/u32-uctomb (License): Likewise.
23624         * modules/unistr/u8-check (License): Likewise.
23625         * modules/unistr/u8-mblen (License): Likewise.
23626         * modules/unistr/u8-mbtouc (License): Likewise.
23627         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23628         * modules/unistr/u8-mbtoucr (License): Likewise.
23629         * modules/unistr/u8-prev (License): Likewise.
23630         * modules/unistr/u8-strlen (License): Likewise.
23631         * modules/unistr/u8-to-u32 (License): Likewise.
23632         * modules/unistr/u8-uctomb (License): Likewise.
23633         * modules/unitypes (License): Likewise.
23634         Requested by Simon Josefsson.
23635
23636 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23637
23638         lib-symbol-visibility: Add a notice.
23639         * modules/lib-symbol-visibility (Notice): New field.
23640
23641 2011-03-29  Bruno Haible  <bruno@clisp.org>
23642
23643         getaddrinfo: Doc fix.
23644         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23645         section "fixed in Gnulib".
23646
23647 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23648
23649         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23650         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23651
23652 2011-03-26  Bruno Haible  <bruno@clisp.org>
23653
23654         unictype/property-byname: Reduce the number of load-time relocations.
23655         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23656         (UC_PROPERTY_INDEX_*): New enumeration values.
23657         (uc_property_byname): Convert an index from the lookup table to an
23658         uc_property_t.
23659         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23660         values.
23661
23662 2011-03-26  Bruno Haible  <bruno@clisp.org>
23663
23664         unictype/property-byname: Allow omitted word separators and aliases.
23665         * lib/unictype/pr_byname.gperf: Add property names without word
23666         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23667         for 'space'.
23668
23669 2011-03-26  Bruno Haible  <bruno@clisp.org>
23670
23671         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23672         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23673         also hyphens to space.
23674         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23675         without spaces.
23676         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23677
23678 2011-03-26  Bruno Haible  <bruno@clisp.org>
23679
23680         unictype/joiningtype-byname: Recognize long names as well.
23681         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23682         a long name.
23683         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23684         unictype/joiningtype_byname.h.
23685         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23686         * lib/unictype/joiningtype_byname.gperf: New file.
23687         * modules/unictype/joiningtype-byname (Files): Add
23688         lib/unictype/joiningtype_byname.gperf.
23689         (Depends-on): Add gperf.
23690         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23691         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23692         long names.
23693
23694         Tests for module 'unictype/joiningtype-longname'.
23695         * modules/unictype/joiningtype-longname-tests: New file.
23696         * tests/unictype/test-joiningtype_longname.c: New file.
23697
23698         New module 'unictype/joiningtype-longname'.
23699         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23700         * lib/unictype/joiningtype_longname.c: New file.
23701         * modules/unictype/joiningtype-longname: New file.
23702         * modules/unictype/joiningtype-all (Depends-on): Add
23703         unictype/joiningtype-longname.
23704
23705 2011-03-26  Bruno Haible  <bruno@clisp.org>
23706
23707         unictype/bidiclass-byname: Recognize long names as well.
23708         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23709         name.
23710         * lib/unictype/bidi_byname.c: Include <string.h>,
23711         unictype/bidi_byname.h.
23712         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23713         * lib/unictype/bidi_byname.gperf: New file.
23714         * modules/unictype/bidiclass-byname (Files): Add
23715         lib/unictype/bidi_byname.gperf.
23716         (Depends-on): Add gperf.
23717         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23718         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23719         long names.
23720
23721         Tests for module 'unictype/bidiclass-longname'.
23722         * modules/unictype/bidiclass-longname-tests: New file.
23723         * tests/unictype/test-bidi_longname.c: New file.
23724
23725         New module 'unictype/bidiclass-longname'.
23726         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23727         * lib/unictype/bidi_longname.c: New file.
23728         * modules/unictype/bidiclass-longname: New file.
23729         * modules/unictype/bidiclass-all (Depends-on): Add
23730         unictype/bidiclass-longname.
23731
23732 2011-03-26  Bruno Haible  <bruno@clisp.org>
23733
23734         unictype/bidi*: Rename modules.
23735         * modules/unictype/bidiclass-all: Renamed from
23736         modules/unictype/bidicategory-all.
23737         * modules/unictype/bidiclass-name: Renamed from
23738         modules/unictype/bidiclass-name.
23739         (Description): Update.
23740         * modules/unictype/bidiclass-name-tests: Renamed from
23741         modules/unictype/bidicategory-name-tests.
23742         * modules/unictype/bidiclass-byname: Renamed from
23743         modules/unictype/bidicategory-byname.
23744         (Description): Update.
23745         * modules/unictype/bidiclass-byname-tests: Renamed from
23746         modules/unictype/bidicategory-byname-tests.
23747         * modules/unictype/bidiclass-of: Renamed from
23748         modules/unictype/bidicategory-of.
23749         (Description): Update.
23750         * modules/unictype/bidiclass-of-tests: Renamed from
23751         modules/unictype/bidicategory-of-tests.
23752         * modules/unictype/bidiclass-test: Renamed from
23753         modules/unictype/bidicategory-test.
23754         (Description): Update.
23755         * modules/unictype/bidiclass-test-tests: Renamed from
23756         modules/unictype/bidicategory-test-tests.
23757         * modules/unictype/bidicategory-all: New file, a simple redirection.
23758         * modules/unictype/bidicategory-name: Likewise.
23759         * modules/unictype/bidicategory-byname: Likewise.
23760         * modules/unictype/bidicategory-of: Likewise.
23761         * modules/unictype/bidicategory-test: Likewise.
23762         * modules/unictype/property-bidi-* (Dependencies): Update.
23763         * lib/unictype/bidi_*.c: Update comment.
23764
23765 2011-03-26  Bruno Haible  <bruno@clisp.org>
23766
23767         unictype/bidi*: Rename functions, part 2.
23768         * modules/unictype/bidicategory-name (configure.ac): Update required
23769         libunistring version.
23770         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23771
23772 2011-03-25  Bruno Haible  <bruno@clisp.org>
23773
23774         New module 'unictype/combining-class-all'.
23775         * modules/unictype/combining-class-all: New file.
23776
23777         Tests for module 'unictype/combining-class-byname'.
23778         * modules/unictype/combining-class-byname-tests: New file.
23779         * tests/unictype/test-combiningclass_byname.c: New file.
23780
23781         New module 'unictype/combining-class-byname'.
23782         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23783         * lib/unictype/combiningclass_byname.c: New file.
23784         * lib/unictype/combiningclass_byname.gperf: New file.
23785         * modules/unictype/combining-class-byname: New file.
23786
23787         Tests for module 'unictype/combining-class-longname'.
23788         * modules/unictype/combining-class-longname-tests: New file.
23789         * tests/unictype/test-combiningclass_longname.c: New file.
23790
23791         New module 'unictype/combining-class-longname'.
23792         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23793         * lib/unictype/combiningclass_longname.c: New file.
23794         * modules/unictype/combining-class-longname: New file.
23795
23796         Tests for module 'unictype/combining-class-name'.
23797         * modules/unictype/combining-class-name-tests: New file.
23798         * tests/unictype/test-combiningclass_name.c: New file.
23799
23800         New module 'unictype/combining-class-name'.
23801         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23802         * lib/unictype/combiningclass_name.c: New file.
23803         * modules/unictype/combining-class-name: New file.
23804
23805 2011-03-25  Bruno Haible  <bruno@clisp.org>
23806
23807         unictype/combining-class: Rename source files.
23808         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23809         of unictype/combining.h.
23810         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23811         Update.
23812         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23813         * modules/unictype/combining-class (Description): Fix.
23814         (Files, Makefile.am): Update.
23815         * tests/unictype/test-combiningclass.c: Renamed from
23816         tests/unictype/test-combining.c.
23817         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23818
23819 2011-03-25  Bruno Haible  <bruno@clisp.org>
23820
23821         unictype: Update list of canonical combining classes.
23822         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23823
23824 2011-03-25  Bruno Haible  <bruno@clisp.org>
23825
23826         unictype/category-byname: Recognize long names as well.
23827         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23828         a long name.
23829         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23830         unictype/categ_byname.h.
23831         (UC_CATEGORY_INDEX_*): New enumeration values.
23832         (uc_general_category_byname): Use uc_general_category_lookup and
23833         convert from index to value.
23834         * lib/unictype/categ_byname.gperf: New file.
23835         * modules/unictype/category-byname (Files): Add
23836         lib/unictype/categ_byname.gperf.
23837         (Depends-on): Add gperf.
23838         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23839         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23840         long names.
23841
23842         Tests for module 'unictype/category-longname'.
23843         * modules/unictype/category-longname-tests: New file.
23844         * tests/unictype/test-categ_longname.c: New file.
23845
23846         New module 'unictype/category-longname'.
23847         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23848         * lib/unictype/categ_longname.c: New file.
23849         * modules/unictype/category-longname: New file.
23850         * modules/unictype/category-all (Depends-on): Add it.
23851
23852 2011-03-25  Bruno Haible  <bruno@clisp.org>
23853
23854         Tests for module 'unictype/category-LC'.
23855         * modules/unictype/category-LC-tests: New file.
23856         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23857
23858         New module 'unictype/category-LC'.
23859         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23860         (UC_CATEGORY_LC): New declaration.
23861         (UC_CASED_LETTER): New macro.
23862         * lib/gen-uni-tables.c (is_category_LC): New function.
23863         (output_categories): Also handle category LC.
23864         (UC_CATEGORY_MASK_LC): New enumeration value.
23865         (general_category_byname): Also handle category LC.
23866         * lib/unictype/categ_LC.c: New file.
23867         * lib/unictype/categ_LC.h: New file, automatically generated.
23868         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23869         category LC.
23870         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23871         * modules/unictype/category-LC: New file.
23872         * modules/unictype/category-byname (Depends-on): Add
23873         unictype/category-LC.
23874         * modules/unictype/category-all (Depends-on): Likewise.
23875
23876 2011-03-25  Eric Blake  <eblake@redhat.com>
23877
23878         xmalloc: revert yesterday's regression
23879         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23880         realloc's underlying behavior (allowing allocation of zero-size
23881         objects, especially if malloc-gnu is also in use).
23882
23883 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23884
23885         maint.mk: add missing version to VC-tag
23886         * top/maint.mk: git tag was missing actual tag name; add it.
23887
23888         valgrind: do leak checking, and exit with code 1 on error (not 0)
23889         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23890         to VALGRIND.
23891
23892 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23893
23894         posix-modules: say what it does.
23895         * posix-modules: Add a line to the --help output saying what it does.
23896
23897 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23898
23899         xmalloc: Do not leak if underlying realloc is C99 compatible.
23900         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23901         This avoids a leak on C99-based systems.  See
23902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23903
23904 2011-03-24  Eric Blake  <eblake@redhat.com>
23905
23906         realloc: document portability problem
23907         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23908         passing 0 size to realloc.
23909
23910 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23911
23912         doc: update users.txt
23913         * users.txt: Add cvsps, tmpwatch
23914
23915 2011-03-23  Matt Rice  <ratmice@gmail.com>
23916
23917         doc: update users.txt
23918         * users.txt: Add gdb.
23919
23920 2011-03-23  Jim Meyering  <meyering@redhat.com>
23921
23922         doc: update users.txt
23923         Looking through matches up to the following URL (there are still
23924         several more pages), I found several projects that use gnulib:
23925         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23926         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23927         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23928
23929 2011-03-22  Bruno Haible  <bruno@clisp.org>
23930
23931         unictype/bidi*: Rename functions.
23932         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23933         uc_bidi_class, uc_is_bidi_class): New declarations.
23934         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23935         uc_bidi_category_byname.
23936         (uc_bidi_category_byname): New function.
23937         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23938         u_bidi_category_name.
23939         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23940         (uc_bidi_category_name): New function.
23941         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23942         uc_bidi_category.
23943         (uc_bidi_category): New function.
23944         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23945         uc_is_bidi_category. Invoke uc_bidi_class.
23946         (uc_is_bidi_category): New function.
23947         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23948         instead of uc_bidi_category_byname.
23949         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23950         instead of uc_bidi_category_name.
23951         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23952         uc_bidi_category.
23953         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23954         instead of uc_is_bidi_category.
23955
23956 2011-03-21  Bruno Haible  <bruno@clisp.org>
23957
23958         New module 'unictype/joininggroup-all'.
23959         * modules/unictype/joininggroup-all: New file.
23960
23961         Tests for module 'unictype/joininggroup-of'.
23962         * modules/unictype/joininggroup-of-tests: New file.
23963         * tests/unictype/test-joininggroup_of.c: New file.
23964         * tests/unictype/test-joininggroup_of.h: New file, automatically
23965         generated by gen-uni-tables.
23966
23967         New module 'unictype/joininggroup-of'.
23968         * modules/unictype/joininggroup-of: New file.
23969         * lib/unictype/joininggroup_of.c: New file.
23970         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23971         gen-uni-tables.
23972
23973         Tests for module 'unictype/joininggroup-byname'.
23974         * modules/unictype/joininggroup-byname-tests: New file.
23975         * tests/unictype/test-joininggroup_byname.c: New file.
23976
23977         New module 'unictype/joininggroup-byname'.
23978         * modules/unictype/joininggroup-byname: New file.
23979         * lib/unictype/joininggroup_byname.c: New file.
23980         * lib/unictype/joininggroup_byname.gperf: New file.
23981
23982         Tests for module 'unictype/joininggroup-name'.
23983         * modules/unictype/joininggroup-name-tests: New file.
23984         * tests/unictype/test-joininggroup_name.c: New file.
23985
23986         New module 'unictype/joininggroup-name'.
23987         * modules/unictype/joininggroup-name: New file.
23988         * lib/unictype/joininggroup_name.c: New file.
23989         * lib/unictype/joininggroup_name.h: New file.
23990
23991         New module 'unictype/joiningtype-all'.
23992         * modules/unictype/joiningtype-all: New file.
23993
23994         Tests for module 'unictype/joiningtype-of'.
23995         * modules/unictype/joiningtype-of-tests: New file.
23996         * tests/unictype/test-joiningtype_of.c: New file.
23997         * tests/unictype/test-joiningtype_of.h: New file, automatically
23998         generated by gen-uni-tables.
23999
24000         New module 'unictype/joiningtype-of'.
24001         * modules/unictype/joiningtype-of: New file.
24002         * lib/unictype/joiningtype_of.c: New file.
24003         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24004         gen-uni-tables.
24005
24006         Tests for module 'unictype/joiningtype-byname'.
24007         * modules/unictype/joiningtype-byname-tests: New file.
24008         * tests/unictype/test-joiningtype_byname.c: New file.
24009
24010         New module 'unictype/joiningtype-byname'.
24011         * modules/unictype/joiningtype-byname: New file.
24012         * lib/unictype/joiningtype_byname.c: New file.
24013
24014         Tests for module 'unictype/joiningtype-name'.
24015         * modules/unictype/joiningtype-name-tests: New file.
24016         * tests/unictype/test-joiningtype_name.c: New file.
24017
24018         New module 'unictype/joiningtype-name'.
24019         * modules/unictype/joiningtype-name: New file.
24020         * lib/unictype/joiningtype_name.c: New file.
24021
24022         unictype: Add support for Arabic shaping properties.
24023         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24024         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24025         declarations.
24026         (UC_JOINING_GROUP_*): New enumeration values.
24027         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24028         declarations.
24029         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24030         (unicode_joining_type): New variable.
24031         (UC_JOINING_GROUP_*): New enumeration values.
24032         (unicode_joining_group): New variable.
24033         (fill_arabicshaping, joining_type_as_c_identifier,
24034         output_joining_type_test, output_joining_type,
24035         joining_group_as_c_identifier, output_joining_group_test,
24036         output_joining_group): New functions.
24037         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24038         fill_arabicshaping and output_joining_type_test, output_joining_type,
24039         output_joining_group_test, output_joining_group.
24040         Reported by Simon Josefsson.
24041
24042 2011-03-21  Jim Meyering  <meyering@redhat.com>
24043
24044         strftime: fix a bug in yesterday's change
24045         * lib/strftime.c (add): Accommodate width's initial value of -1.
24046         Otherwise, nstrftime would copy uninitialized data into
24047         the result buffer.
24048
24049 2011-03-21  Jim Meyering  <meyering@redhat.com>
24050
24051         tests: add strftime-tests module
24052         * tests/test-strftime.c: New file.
24053         * modules/strftime-tests: New module.
24054
24055 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24056
24057         strftime: don't assume a byte count fits in 'int'
24058         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24059         found this problem by static analysis, using gcc -Wstrict-overflow
24060         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24061         on an integer overflow having undefined behavior, but it turns out
24062         that the argument is a size, which might not fit in 'int' anyway,
24063
24064 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24065
24066         stdio: don't require ignore_value around fwrite
24067
24068         This patch works around libc bug 11959
24069         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24070         Without this patch, applications must often write
24071         ignore_value (fwrite (...)) even though the ignore_value is
24072         not helpful here.  It's common to write many objects, using
24073         fwrite/printf/etc., and then use ferror to detect output error.
24074
24075         I considered making this patch optional, but decided against it,
24076         because libc is obviously being inconsistent here: there is no
24077         reason libc should insist that user code must inspect fwrite
24078         return's value without also insisting that it inspect printf's,
24079         putchar's, etc.  If user code wants to have a strict style where
24080         all these functions' values are checked (so that ferror need not
24081         be checked), we could add support for that style in a new gnulib
24082         module, but in the meantime it's better to be consistent and to
24083         support common usage.
24084
24085         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24086         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24087         that we are compiling in checking mode, and if not C++, and
24088         if not already wrapping fwrite for some other reason.
24089         (fwrite): #define to rpl_fwrite if the latter is defined.
24090
24091 2011-03-20  Bruno Haible  <bruno@clisp.org>
24092
24093         verror: Fix compilation error introduced on 2011-02-13.
24094         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24095         instead of __attribute__.
24096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24097
24098 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24099             Bruno Haible  <bruno@clisp.org>
24100
24101         socklen: do not depend on sys_socket
24102         While trying to modify Emacs to use gnulib's socklen module,
24103         I discovered a circular dependency: socklen depends on sys_socket
24104         and vice versa.  Emacs can use socklen, but it does not need
24105         sys_socket because it has its own substitute for sys/socket.h.
24106         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24107         gl_TYPE_SOCKLEN_T.
24108         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24109         gl_PREREQ_SYS_H_SOCKET.
24110         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24111         gl_PREREQ_SYS_H_SOCKET.
24112         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24113         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24114         * modules/socklen (Depends-on): Do not depend on sys_socket.
24115         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24116
24117 2011-03-20  Jim Meyering  <meyering@redhat.com>
24118
24119         maint.mk: sort file names *after* new transformation
24120         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24121         prefix would have led to an unwarranted failure in GNU parted.
24122         Sort after that transformation.
24123
24124 2011-03-19  Jim Meyering  <meyering@redhat.com>
24125
24126         maint.mk: fix po-file syntax-check rule
24127         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24128         Patch by Bruno Haible.
24129
24130 2011-03-19  Bruno Haible  <bruno@clisp.org>
24131
24132         socklen: Update comment.
24133         * m4/socklen.m4: Update comment about platforms.
24134
24135 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24136             Bruno Haible  <bruno@clisp.org>
24137
24138         inet_ntop, inet_pton: Simplify.
24139         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24140         documented to provide socklen_t and we already depend on sys_socket.
24141         * modules/inet_pton (Depends-on): Likewise.
24142         * lib/arpa_inet.in.h: Adjust comment.
24143
24144 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24145             Bruno Haible  <bruno@clisp.org>
24146
24147         netdb: Simplify.
24148         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24149         documented to provide socklen_t and we already depend on sys_socket.
24150         * lib/netdb.in.h: Adjust comment.
24151
24152 2011-03-19  Bruno Haible  <bruno@clisp.org>
24153
24154         sys_socket, netdb: Document problem with socklen_t.
24155         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24156         platforms.
24157         * doc/posix-headers/netdb.texi: Likewise.
24158
24159 2011-03-18  Eric Blake  <eblake@redhat.com>
24160
24161         maint.mk: let po check work in VPATH build
24162         * top/maint.mk (po_file): Allow cfg.mk override.
24163         (sc_po_check): Allow VPATH use.
24164         Reported by Jiri Denemark.
24165
24166 2011-03-16  Jim Meyering  <meyering@redhat.com>
24167
24168         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24169         Before, you would have had to create one .x-sc_ file per rule in order
24170         to exempt offending files.  Now, you may instead use a Make variable --
24171         usually defined in cfg.mk -- whose name identifies the affected rule.
24172         * top/maint.mk (_sc_excl): Define.
24173         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24174         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24175
24176 2011-03-13  Bruno Haible  <bruno@clisp.org>
24177
24178         ignore-value tests: Avoid warnings.
24179         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24180         empty for gcc < 3.4.
24181
24182 2011-03-13  Bruno Haible  <bruno@clisp.org>
24183
24184         passfd: Fix link error on Solaris.
24185         * modules/passfd (Description): Correct.
24186         (Depends-on): Add socketlib.
24187         (Link): New section.
24188         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24189
24190 2011-03-13  Bruno Haible  <bruno@clisp.org>
24191
24192         passfd: Fix link error on AIX 5.2.
24193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24194
24195 2011-03-13  Bruno Haible  <bruno@clisp.org>
24196
24197         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24198         * lib/sys_socket.in.h: Include <stddef.h>.
24199         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24200         CMSG_FIRSTHDR. Remove unused variable.
24201
24202 2011-03-13  Bruno Haible  <bruno@clisp.org>
24203
24204         passfd: Fix compilation error on OpenBSD.
24205         * lib/passfd.c: Include <sys/uio.h>.
24206
24207 2011-03-13  Bruno Haible  <bruno@clisp.org>
24208
24209         passfd test: Fix warnings.
24210         * tests/test-passfd.c: Include <sys/wait.h>.
24211         (main): Fix typo.
24212
24213 2011-03-13  Bruno Haible  <bruno@clisp.org>
24214
24215         passfd module, part 4, tweaks.
24216         * tests/test-passfd.c: Reorder includes.
24217         (main): Fix perror and printf calls.
24218
24219 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24220
24221         passfd module, part 4.
24222         * modules/passfd-tests: New file.
24223         * tests/test-passfd.c: New file.
24224
24225 2011-03-13  Jim Meyering  <meyering@redhat.com>
24226
24227         Makefile: rely on GNU make; derive syntax-check rule names
24228         Rather than requiring that each sc_ rule be listed as a dependent
24229         of "check", use features of GNU make to derive the list.
24230         * Makefile (syntax-check-rules): Define.
24231         (check): Depend on the new variable, not the hard-coded list.
24232
24233 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24234             Bruno Haible  <bruno@clisp.org>
24235
24236         passfd module, part 3.
24237         * lib/passfd.h (recvfd): Add a flags argument.
24238         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24239         (recvfd): Add a flags argument.
24240         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24241         exists.
24242         * modules/passfd (Depends-on): Add cloexec.
24243         Suggested by Eric Blake.
24244
24245 2011-03-13  Bruno Haible  <bruno@clisp.org>
24246
24247         passfd module, part 2, tweaks.
24248         * modules/passfd (Files): Reorder.
24249         (Depends-on): Remove errno.
24250         (Include): Remove <sys/socket.h>, <sys/un.h>.
24251         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24252         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24253         specification header. Include <sys/socket.h> always. Don't include
24254         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24255         (sendfd): Clarify that it sets errno when it fails.
24256         (recvfd): Fix specification.
24257
24258 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24259
24260         passfd module, part 2.
24261         * modules/passfd: New file.
24262         * lib/passfd.h: New file.
24263         * lib/passfd.c: New file.
24264
24265 2011-03-12  Bruno Haible  <bruno@clisp.org>
24266
24267         wcswidth, mbswidth: Avoid integer overflow.
24268         * lib/wcswidth.c: Include <limits.h>.
24269         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24270         * lib/mbswidth.c: Include <limits.h>.
24271         (mbsnwidth): Avoid 'int' overflow.
24272         Reported by Jim Meyering.
24273
24274 2011-03-12  Bruno Haible  <bruno@clisp.org>
24275
24276         futimens, utimensat: Avoid endless recursion on Solaris 10.
24277         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24278         Solaris.
24279         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24280         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24281
24282 2011-03-11  Jim Meyering  <meyering@redhat.com>
24283
24284         maint.mk: relax a regexp to accommodate other formatting styles
24285         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24286         between "ngettext" and the following "(".
24287
24288 2011-03-11  Pádraig Brady <P@draigBrady.com>
24289
24290         maint.mk: suppress a false positive warning
24291         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24292         diagnostics are marked with ngettext.
24293
24294 2011-03-10  Eric Blake  <eblake@redhat.com>
24295
24296         wchar: add explicit dependencies, for Tru64
24297         * modules/mbmemcasecoll (Depends-on): Add wchar.
24298         * modules/mbtowc (Depends-on): Likewise.
24299         * modules/vasnprintf (Depends-on): Likewise.
24300         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24301         * modules/wctomb (Depends-on): Likewise.
24302         Reported by Peter O'Gorman.
24303
24304 2011-03-08  Bruno Haible  <bruno@clisp.org>
24305
24306         passfd module, part 1, tweaks.
24307         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24308         Improve indentation. Improve AC_MSG_CHECKING messages.
24309         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24310         gl_SOCKET_FAMILIES.
24311
24312 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24313
24314         passfd module, part 1.
24315         * m4/afunix.m4: New file.
24316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24317         sockets.
24318
24319 2011-03-08  Bruno Haible  <bruno@clisp.org>
24320
24321         regex-quote: New API.
24322         * lib/regex-quote.h: Include <stdbool.h>.
24323         (struct regex_quote_spec): New type.
24324         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24325         New declarations.
24326         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24327         'const struct regex_quote_spec *' argument.
24328         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24329         (pcre_special): New constant.
24330         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24331         New functions.
24332         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24333         'const struct regex_quote_spec *' argument.
24334         * modules/regex-quote (Depends-on): Add stdbool.
24335         * tests/test-regex-quote.c (check): Update for new API. Add test for
24336         anchored results.
24337         * NEWS: Mention the API change.
24338         Reported by Reuben Thomas and Eric Blake.
24339
24340 2011-03-06  Bruno Haible  <bruno@clisp.org>
24341
24342         regex-quote: Fix creation of POSIX extended regular expressions.
24343         * lib/regex-quote.c (ere_special): Add grouping and alternation
24344         operators.
24345
24346 2011-03-05  Bruno Haible  <bruno@clisp.org>
24347
24348         doc: Improve doc regarding autopoint vs. gnulib.
24349         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24350         disable autopoint while running autoreconf.
24351         Suggested by Ralf Wildenhues.
24352
24353 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24354
24355         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24356         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24357
24358 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24359
24360         parse-duration: remove xalloc.h dependency
24361         * lib/parse-duration.c (parse_period): handle NULL return from
24362         strdup instead of calling xstrdup().
24363         * modules/parse-duration: remove "xalloc" dependency
24364
24365 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24366
24367         bootstrap: honor m4_base when running aclocal
24368         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24369
24370 2011-03-02  Jim Meyering  <meyering@redhat.com>
24371
24372         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24373         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24374         on request from Matt Booth.
24375
24376 2011-03-01  Eric Blake  <eblake@redhat.com>
24377
24378         test-link: work on Hurd
24379         * tests/test-link.h (test_link): Hurd rejects linking directories
24380         with EISDIR instead of the POSIX-mandated EPERM.
24381
24382 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24383
24384         stdio: simplify by moving files to printf-posix, sigpipe
24385         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24386         since this symbol is needed only if printf is replaced.
24387         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24388         Require gl_ASM_SYMBOL_PREFIX.
24389         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24390         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24391         (Depends-on): Add 'raise'.
24392         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24393         * modules/stdio (Files): Remove lib/stdio-write.c,
24394         m4/asm-underscore.m4.
24395         (Depends-on): Remove 'raise'.
24396
24397         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24398         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24399         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24400         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24401
24402 2011-02-28  Bruno Haible  <bruno@clisp.org>
24403
24404         localcharset: Assume ANSI C behaviour of free().
24405         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24406         calling free().
24407         Suggested by Simon Josefsson <simon@josefsson.org>.
24408
24409 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24410             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24411             Bruno Haible  <bruno@clisp.org>  (tiny change)
24412
24413         On Cygwin, use /proc file system instead of win32 API.
24414         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24415         Win32 file names.
24416         (DllMain): Simplify by removing Cygwin specific code.
24417         (find_shared_library_fullname): Use Linux specific implementation also
24418         for Cygwin.
24419         (get_shared_library_fullname): Update accordingly.
24420         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24421         Win32 file names.
24422         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24423         Cygwin specific code.
24424
24425 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24426             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24427
24428         Fix OpenMP flag detection for various Fortran compilers.
24429         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24430         OpenMP-conditional compilation construct, to force compile
24431         failure with missing OpenMP flag.
24432         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24433
24434 2011-02-25  Eric Blake  <eblake@redhat.com>
24435
24436         strstr: expand test coverage
24437         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24438         compilation.
24439         * tests/test-memmem.c (main): Duplicate tests.
24440         * tests/test-strcasestr.c (main): Likewise.
24441         * tests/test-c-strcasestr.c (main): Likewise.
24442
24443 2011-02-25  Jim Meyering  <meyering@redhat.com>
24444
24445         maint.mk: detect missing-NL-at-EOF, too
24446         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24447         it also detects when a file lacks a newline at EOF.
24448         (require_exactly_one_NL_at_EOF_): Renamed from
24449         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24450         since people may well have .x-sc_... file names tied to the
24451         existing name.  Suggested by Eric Blake.
24452
24453 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24454
24455         dirname: move m4/dos.m4 functionality into lib/dosname.h
24456
24457         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24458         extracts symbols from it, puts them into config.h; but it's much
24459         easier to use the symbols directly.  filename.h already does this,
24460         but it disagrees with dos.m4 in some respects.  This patch
24461         introduces a different include file dosname.h that packages up
24462         dos.m4, and then later we can work on merging filename.h and
24463         dosname.h.  Applications that need only the easy-to-configure
24464         symbols should consider including dosname.h rather than dirname.h.
24465         * NEWS: Mention incompatible changes.
24466         * m4/dos.m4: Remove.
24467         * lib/dosname.h, modules/dosname: New files.
24468         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24469         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24470         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24471         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24472         Include dosname.h, not dirname.h.
24473         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24474         Include dosname.h, for definitions of symbols like ISSLASH
24475         that used to be in config.h.
24476         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24477         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24478         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24479         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24480         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24481         * modules/rmdir (Files): Likewise.
24482         * modules/stat (Files): Likewise.
24483         * modules/unlink (Files): Likewise.
24484         * modules/dirname-lgpl (Depends-on): Add dosname.
24485         * modules/lstat (Depends-on): Likewise.
24486         * modules/openat (Depends-on): Likewise.
24487         * modules/rmdir (Depends-on): Likewise.
24488         * modules/savewd (Depends-on): Likewise.
24489         * modules/stat (Depends-on): Likewise.
24490         * modules/unlink (Depends-on): Likewise.
24491         * modules/openat (Depends-on): Remove dirname-lgpl.
24492         * modules/savewd (Depends-on): Likewise.
24493         * tests/test-dirname.c: Do not use removed symbols like
24494         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24495         the remaining symbols, e.g., ISSLASH ('\\').
24496
24497 2011-02-25  Eric Blake  <eblake@redhat.com>
24498
24499         strstr: revert patches that introduced bug and pessimization
24500         * lib/str-two-way.h: Add another reference.
24501         (two_way_short_needle, two_way_long_needle): Revert changes from
24502         2011-02-24; they pessimize search speed.
24503         (critical_factorization): Partially revert changes from
24504         2010-06-22; they violate the requirement that the left half of the
24505         needle be smaller than the period of the needle.
24506
24507 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24508
24509         filenamecat: remove unnecessary dependency on dirname-lgpl
24510         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24511         is no direct dependency, just an indirect one via filenamecat-lgpl.
24512
24513         remove: remove unnecessary use of m4/dos.m4
24514         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24515         * modules/remove (FILES): Remove m4/dos.m4.
24516
24517         * lib/openat-proc.c: Don't include dirname.h; not needed.
24518
24519         backupfile: remove unnecessary use of m4/dos.m4
24520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24521         of its symbols are used by the backupfile code.  backupfile.c does
24522         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24523         for the rare case of programs that want all their backup file
24524         names to live within 8+3 limits, and dos.m4 doesn't address that.
24525         * modules/backupfile (Files): Remove m4/dos.m4.
24526
24527 2011-02-24  Jim Meyering  <meyering@redhat.com>
24528
24529         strstr: fix a bug whereby strstr would mistakenly return NULL
24530         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24531         in period calculation.
24532         (two_way_long_needle): Likewise.
24533         The original problem was reported by Mike Stump in
24534         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24535         Ralf Wildenhues provided the short needle and haystack.
24536         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24537         Add a more involved test to trigger the bug in two_way_long_needle.
24538
24539 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24540
24541         gnulib-tool: remove use of bold display in help screen
24542         * gnulib-tool (func_usage): Do not use bold display anymore in the
24543         help screen.  That was just meant to be a temporary emphasis for a
24544         backward-incompatible change.
24545
24546 2011-02-23  Bruno Haible  <bruno@clisp.org>
24547
24548         Fix misindentation of preprocessor directives.
24549         * lib/argp-namefrob.h: Reindent preprocessor directives.
24550         * lib/getopt_int.h (struct _getopt_data): Likewise.
24551         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24552         * lib/vasnprintf.c (decode_long_double): Likewise.
24553         * tests/test-argmatch.c: Insert blank lines, for clarity.
24554         * tests/test-exclude.c: Likewise.
24555
24556 2011-02-22  Bruno Haible  <bruno@clisp.org>
24557
24558         ioctl: Fix for MacOS X in 64-bit mode.
24559         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24560         value.
24561         Suggested by Eric Blake.
24562         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24563
24564 2011-02-22  Jim Meyering  <meyering@redhat.com>
24565
24566         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24567         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24568         in lib/.
24569
24570 2011-02-22  Eric Blake  <eblake@redhat.com>
24571
24572         maint: avoid any CDPATH issue
24573         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24574
24575         maint: adjust cpp indentation for my modules, as well
24576         * Makefile (sc_cpp_indent_check): Add my name.
24577         * lib/fbufmode.c: Filter through cppi.
24578         * lib/fpurge.c: Likewise.
24579         * lib/freadable.c: Likewise.
24580         * lib/freading.c: Likewise.
24581         * lib/fwritable.c: Likewise.
24582         * lib/fwriting.c: Likewise.
24583         * lib/sigaction.c: Likewise.
24584
24585 2011-02-22  Jim Meyering  <meyering@redhat.com>
24586
24587         maint: adjust cpp indentation to reflect nesting depth
24588         I.e., in a block of code that begins with an unnested "#if",
24589         put one space between the "#" in column 1 and following token.
24590         For example,
24591         -#include <sys/vfs.h>
24592         +# include <sys/vfs.h>
24593         Do this only in .c files that are part of a module I maintain.
24594         * lib/linkat.c: Filter through cppi.
24595         * lib/nanosleep.c: Likewise.
24596         * lib/openat.c: Likewise.
24597         * lib/openat-die.c: Likewise.
24598         * lib/dup3.c: Likewise.
24599         * lib/fchownat.c: Likewise.
24600         * lib/flock.c: Likewise.
24601         * lib/fsync.c: Likewise.
24602         * lib/fts.c: Likewise.
24603         * lib/getpass.c: Likewise.
24604         * lib/gettimeofday.c: Likewise.
24605         * lib/userspec.c: Likewise.
24606         * Makefile (sc_cpp_indent_check): New rule, to check this.
24607
24608 2011-02-22  Bruno Haible  <bruno@clisp.org>
24609
24610         New module 'wctomb'.
24611         * lib/stdlib.in.h (wctomb): New declaration.
24612         * lib/wctomb.c: New file.
24613         * lib/wctomb-impl.h: New file.
24614         * m4/wctomb.m4: New file.
24615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24616         REPLACE_WCTOMB.
24617         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24618         REPLACE_WCTOMB.
24619         * modules/wctomb: New file.
24620         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24621         * doc/posix-functions/wctomb.texi: Mention the new module.
24622         * modules/wctob (Depends-on): Add wctomb.
24623
24624 2011-02-22  Bruno Haible  <bruno@clisp.org>
24625
24626         New module 'mbtowc'.
24627         * lib/stdlib.in.h (mbtowc): New declaration.
24628         * lib/mbtowc.c: New file.
24629         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24630         * m4/mbtowc.m4: New file.
24631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24632         REPLACE_MBTOWC.
24633         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24634         REPLACE_MBTOWC.
24635         * modules/mbtowc: New file.
24636         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24637         * doc/posix-functions/mbtowc.texi: Mention the new module.
24638         * modules/btowc (Depends-on): Add mbtowc.
24639
24640 2011-02-22  Bruno Haible  <bruno@clisp.org>
24641
24642         wcrtomb: Add more tests for native Windows platforms.
24643         * tests/test-wcrtomb-w32-1.sh: New file.
24644         * tests/test-wcrtomb-w32-2.sh: New file.
24645         * tests/test-wcrtomb-w32-3.sh: New file.
24646         * tests/test-wcrtomb-w32-4.sh: New file.
24647         * tests/test-wcrtomb-w32-5.sh: New file.
24648         * tests/test-wcrtomb-w32.c: New file.
24649         * modules/wcrtomb-tests (Files): Add them.
24650         (Makefile.am): Arrange to run these tests.
24651         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24652         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24653
24654 2011-02-20  Bruno Haible  <bruno@clisp.org>
24655
24656         wcrtomb: Enhance test.
24657         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24658
24659 2011-02-20  Bruno Haible  <bruno@clisp.org>
24660
24661         mbrtowc: Tiny optimization.
24662         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24663
24664 2011-02-20  Jim Meyering  <meyering@redhat.com>
24665
24666         test-exclude.c: remove unmatched #endif
24667         * tests/test-exclude.c: Remove stray #endif, left over from
24668         the change of a week ago.
24669
24670 2011-02-19  Jim Meyering  <meyering@redhat.com>
24671
24672         git-version-gen: skip "-dirty" check when appropriate
24673         * build-aux/git-version-gen: Don't run any git commands when the
24674         version string comes from .tarball-version.  Prior to this, we
24675         would run git update-index --refresh even from a just-unpacked
24676         tarball directory, and that could affect a .git/ directory in a
24677         parent of the build directory.  Reported by Mike Frysinger.
24678
24679 2011-02-19  Bruno Haible  <bruno@clisp.org>
24680
24681         unictype/property-byname: Reduce the size of the 'data' segment.
24682         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24683
24684 2011-02-19  Bruno Haible  <bruno@clisp.org>
24685
24686         unictype/scripts: Reduce the size of the 'data' segment.
24687         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24688         '%pic'.
24689         * lib/unictype/scripts_byname.gperf: Regenerated.
24690
24691 2011-02-19  Bruno Haible  <bruno@clisp.org>
24692
24693         stdint: Update documentation.
24694         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24695
24696 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24697
24698         stdint: omit redundant check for wchar.h
24699         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24700         always tests whether wchar.h exists, so remove the now-redundant test.
24701
24702 2011-02-18  Bruno Haible  <bruno@clisp.org>
24703
24704         stdint: Cut dependency to module 'wchar'.
24705         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24706         include the necessary prerequisites.
24707         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24708         * modules/stdint (Depends-on): Remove wchar.
24709         (Makefile.am): Substitute HAVE_WCHAR_H.
24710         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24711
24712 2011-02-18  Eric Blake  <eblake@redhat.com>
24713
24714         longlong: skip, rather than fail, on cross-compilation
24715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24716         when cross-compiling; regression from 2011-02-16.
24717
24718 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24719
24720         * NEWS: Mention 2011-02-08 change to stdlib.
24721
24722 2011-02-17  Bruno Haible  <bruno@clisp.org>
24723
24724         getloadavg: Add comments about platforms.
24725         * m4/getloadavg.m4: Add comment.
24726         * lib/getloadavg.c: Likewise.
24727
24728 2011-02-17  Bruno Haible  <bruno@clisp.org>
24729
24730         getloadavg: Fix link error on Solaris 2.6.
24731         * modules/getloadavg (Link): New section.
24732         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24733         linking test-getloadavg.
24734         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24735         getloadavg.
24736
24737 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24738
24739         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24740         It was 'int', but this doesn't match the IRIX 6.5 manual.
24741         Suggested by Bruno Haible in
24742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24743
24744 2011-02-17  Bruno Haible  <bruno@clisp.org>
24745
24746         havelib: Fix comments.
24747         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24748         change.
24749
24750 2011-02-17  Bruno Haible  <bruno@clisp.org>
24751
24752         havelib: Update config.rpath.
24753         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24754
24755 2011-02-17  Bruno Haible  <bruno@clisp.org>
24756
24757         getloadavg test: Add some plausibility checks.
24758         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24759         is improbable.
24760
24761 2011-02-16  Eric Blake  <eblake@redhat.com>
24762
24763         maintainer-makefile: make syntax-check a no-op from tarballs
24764         * top/maint.mk (no-vc-detected): New rule.
24765         (local-checks-available): Use it to avoid hanging if someone tries
24766         'make syntax-check' from a tarball.  Also append to any non-syntax
24767         checks already defined in cfg.mk.
24768
24769 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24770
24771         longlong: tune, particularly for common case of c99
24772
24773         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24774         or running anything if c99, or if unsigned long long int does not
24775         work.  In either case, we know the answer without further tests.
24776         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24777         it at most once, and use its results for both long long int and
24778         unsigned long long int.  This is more likely to be efficient in
24779         the common case where the program wants to check for both long
24780         long int and unsigned long long int.
24781         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24782         since the answer is already known.
24783
24784 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24785
24786         getloadavg: set errno
24787         * lib/getloadavg.c: Set errno when returning -1.  If no other
24788         error number looks appropriate, set it to ENOSYS if the getloadavg
24789         looks like it can't possibly ever work, ENOTSUP otherwise.
24790         Suggested by Bruno Haible in
24791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24792
24793         getloadavg: trim unused parts and speed up 'configure'
24794         * NEWS: Document this.
24795         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24796         always compiled if getloadavg is absent.
24797         Move test code to ...
24798         * tests/test-getloadavg.c: New file, containing previous
24799         contents of test from lib/getloadavg.c.  It also contains
24800         suggestions by Bruno Haible in
24801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24802         * modules/getloadavg-tests: New file.
24803         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24804         Do tests in the same order as they're needed for getloadavg.c.
24805         Omit setgid-related tests that generate symbols KMEM_GROUP,
24806         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24807         Do only the tests that are needed to see whether the system has
24808         getloadavg, moving the other tests into ...
24809         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24810         NLIST_NAME_UNION; nobody should be using it.  Do not define
24811         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24812         relevant, as the user of this module shouldn't care how getloadavg
24813         is implemented.
24814
24815         getloadavg: omit unused var
24816         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24817
24818 2011-02-15  Jim Meyering  <meyering@redhat.com>
24819
24820         doc: update users.txt
24821         * users.txt: Update iwhd's URL.
24822
24823 2011-02-13  Bruno Haible  <bruno@clisp.org>
24824
24825         Consistent macro naming for macros that use GCC __attribute__.
24826         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24827         _ATTRIBUTE_NONNULL_.
24828         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24829         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24830         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24831         ATTRIBUTE_DEPRECATED.
24832         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24833         ATTRIBUTE_NORETURN.
24834         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24835         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24836         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24837         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24838         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24839         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24840         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24841         ATTRIBUTE_SENTINEL.
24842         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24843         ATTRIBUTE_RETURN_CHECK.
24844         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24845         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24846         ATTRIBUTE_NORETURN.
24847         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24848         Reported by Paul Eggert.
24849
24850 2011-02-13  Bruno Haible  <bruno@clisp.org>
24851
24852         Don't interfere with a program's definition of __attribute__.
24853         * lib/argp.h (__attribute__): Remove definition.
24854         (_GL_ATTRIBUTE_FORMAT): New macro.
24855         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24856         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24857         (_GL_ATTRIBUTE_FORMAT): New macro.
24858         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24859         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24860         GCC 3 or newer.
24861         * lib/error.h (__attribute__): Remove definition.
24862         (_GL_ATTRIBUTE_FORMAT): New macro.
24863         (error, error_at_line): Use it.
24864         * lib/hash.h (__attribute__): Remove definition.
24865         (ATTRIBUTE_WUR): Update definition. Define always.
24866         * lib/openat.h (__attribute__): Remove definition.
24867         (ATTRIBUTE_NORETURN): Update definition. Define always.
24868         * lib/sigpipe-die.h (__attribute__): Remove definition.
24869         (ATTRIBUTE_NORETURN): Update definition. Define always.
24870         * lib/vasnprintf.h (__attribute__): Remove definition.
24871         (_GL_ATTRIBUTE_FORMAT): New macro.
24872         (asnprintf, vasnprintf): Use it.
24873         * lib/xalloc.h (__attribute__): Remove definition.
24874         (ATTRIBUTE_NORETURN): Update definition. Define always.
24875         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24876         * lib/xmemdup0.h (__attribute__): Remove definition.
24877         (ATTRIBUTE_NORETURN): Update definition. Define always.
24878         * lib/xprintf.h (__attribute__): Remove definition.
24879         (_GL_ATTRIBUTE_FORMAT): New macro.
24880         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24881         * lib/xstrtol.h (__attribute__): Remove definition.
24882         (ATTRIBUTE_NORETURN): Update definition. Define always.
24883         * lib/xvasprintf.h (__attribute__): Remove definition.
24884         (_GL_ATTRIBUTE_FORMAT): New macro.
24885         (xasprintf, xvasprintf): Use it.
24886         * tests/test-argmatch.c (__attribute__): Remove definition.
24887         (ATTRIBUTE_NORETURN): Update definition. Define always.
24888         * tests/test-exclude.c (__attribute__): Remove definition.
24889         (ATTRIBUTE_NORETURN): Update definition. Define always.
24890         Reported by Paul Eggert.
24891
24892 2011-02-13  Bruno Haible  <bruno@clisp.org>
24893
24894         mbrtowc: Add more tests for native Windows platforms.
24895         * tests/test-mbrtowc-w32-1.sh: New file.
24896         * tests/test-mbrtowc-w32-2.sh: New file.
24897         * tests/test-mbrtowc-w32-3.sh: New file.
24898         * tests/test-mbrtowc-w32-4.sh: New file.
24899         * tests/test-mbrtowc-w32-5.sh: New file.
24900         * tests/test-mbrtowc-w32.c: New file.
24901         * modules/mbrtowc-tests (Files): Add them.
24902         (Makefile.am): Arrange to run these tests.
24903         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24904         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24905
24906 2011-02-13  Bruno Haible  <bruno@clisp.org>
24907
24908         mbrtowc: Work around native Windows bug.
24909         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24910         guess when no suitable locale for testing was found.
24911         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24912
24913 2011-02-13  Bruno Haible  <bruno@clisp.org>
24914
24915         mbsinit: Work around mingw bug.
24916         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24917         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24918         Windows.
24919         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24920
24921 2011-02-13  Bruno Haible  <bruno@clisp.org>
24922
24923         mbsinit: Don't crash for a NULL argument.
24924         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24925         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24926
24927 2011-02-13  Bruno Haible  <bruno@clisp.org>
24928
24929         Don't interfere with a program's definition of __attribute__.
24930         * lib/stdio.in.h (__attribute__): Remove definition.
24931         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24932         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24933         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24934         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24935         * lib/string.in.h (__attribute__): Remove definition.
24936         Reported by Paul Eggert.
24937
24938 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24939
24940         stdlib: don't get in the way of non-GCC __attribute__
24941         See thread starting at
24942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24943         Revert previous stdlib change, installing the following instead:
24944         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24945         to get in the way of a non-GCC compiler that supports __attribute__.
24946         (_GL_ATTRIBUTE_RETURN): New macro.
24947         (_Exit): Use it instead of __attribute__.
24948
24949 2011-02-12  Bruno Haible  <bruno@clisp.org>
24950
24951         quotearg test: Avoid test failure on mingw.
24952         * tests/test-quotearg.sh: Convert the locale identifier from native
24953         Windows syntax to Unix syntax.
24954
24955 2011-02-12  Bruno Haible  <bruno@clisp.org>
24956
24957         setlocale: Prefer gnulib's override over libintl's override.
24958         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24959         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24960         GNULIB_defined_setlocale is set.
24961
24962 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24963
24964         stdlib: support non-GCC __attribute__
24965
24966         Fix a serious and tricky problem encountered when attempting to
24967         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24968         5.5, but it crashed due to memory corruption on Solaris 10 with
24969         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24970         bits that are otherwise zero.  This tagging is optional inside
24971         Emacs but is preferred and is used when __attribute__ ((__aligned
24972         (8))) works, as it does with both recent-enough GCC and with Sun C
24973         5.11.  However, Sun C 5.11 is not GCC and does not #define
24974         __GNUC__ and __GNUC_MINOR__.
24975
24976         When I added the getloadavg module to Emacs, it brought in
24977         stdlib.in.h, which contained this fragment:
24978
24979            #ifndef __attribute__
24980            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24981            #  define __attribute__(Spec)   /* empty */
24982            # endif
24983            #endif
24984
24985         When files that include <stdlib.h> were compiled with Sun C 5.11,
24986         the above code disabled __attribute__ ((__aligned (8))), which
24987         caused variables to not be properly aligned, which eventually led
24988         to the pointer corruption mentioned above.  (This was a bit hard
24989         to diagnose, unfortunately.)
24990
24991         Several "#define __attribute__(X) /* empty */" code snippets need
24992         to be eradicated from Gnulib to work with non-GCC compilers that
24993         support __attribute__.  The Autoconf way to do this is to test for
24994         each kind of attribute that we want support for, and selectively
24995         enable that in source code.
24996
24997         Fix this problem just for stdlib.h, by adding a test for the
24998         __noreturn__ attribute, and change stdlib.in.h to use that test
24999         when needed.  This technique can be easily generalized to the
25000         other *.in.h files and attributes, and a similar technique can be
25001         used for *.h and *.c files.  This patch is enough to solve the
25002         problem for Emacs + getloadavg, and I thought I'd publish it for
25003         feedback before undertaking further, similar fixes in other
25004         modules.
25005
25006         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25007         because it's not needed for stdlib.h.  It merely substitutes the
25008         value directly into stdlib.h.  We may well need to #define it, or
25009         similar symbols, for other modules, but it's nice to also have an
25010         option to not #define it for applications like Emacs that do not
25011         need it.
25012
25013         * lib/stdlib.in.h (__attribute__): Do not #define.
25014         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25015         be defined only if the _Exit module is also used.
25016         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25018         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25019         platforms.
25020         * modules/_Exit (Files): Add m4/attribute.m4.
25021         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25022         * m4/attribute.m4: New file.
25023
25024 2011-02-12  Bruno Haible  <bruno@clisp.org>
25025
25026         wcsrtombs: Work around bug on native Windows.
25027         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25028         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25029         instead of len.
25030         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25031
25032 2011-02-12  Bruno Haible  <bruno@clisp.org>
25033
25034         mbsrtowcs: Work around bug on native Windows.
25035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25036         against mingw bug.
25037         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25038
25039 2011-02-12  Bruno Haible  <bruno@clisp.org>
25040
25041         Avoid setlocale bugs in tests.
25042         * modules/btowc (Dependencies): Add setlocale.
25043         * modules/c-strcase (Dependencies): Likewise.
25044         * modules/mbmemcasecmp (Dependencies): Likewise.
25045         * modules/mbmemcasecoll (Dependencies): Likewise.
25046         * modules/mbrtowc (Dependencies): Likewise.
25047         * modules/mbscasecmp (Dependencies): Likewise.
25048         * modules/mbscasestr (Dependencies): Likewise.
25049         * modules/mbschr (Dependencies): Likewise.
25050         * modules/mbscspn (Dependencies): Likewise.
25051         * modules/mbsinit (Dependencies): Likewise.
25052         * modules/mbsncasecmp (Dependencies): Likewise.
25053         * modules/mbsnrtowcs (Dependencies): Likewise.
25054         * modules/mbspbrk (Dependencies): Likewise.
25055         * modules/mbspcasecmp (Dependencies): Likewise.
25056         * modules/mbsrchr (Dependencies): Likewise.
25057         * modules/mbsrtowcs (Dependencies): Likewise.
25058         * modules/mbsspn (Dependencies): Likewise.
25059         * modules/mbsstr (Dependencies): Likewise.
25060         * modules/nl_langinfo (Dependencies): Likewise.
25061         * modules/quotearg (Dependencies): Likewise.
25062         * modules/unicase/locale-language (Dependencies): Likewise.
25063         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25064         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25065         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25066         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25067         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25068         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25069         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25070         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25071         * modules/vasnprintf-posix (Dependencies): Likewise.
25072         * modules/wcrtomb (Dependencies): Likewise.
25073         * modules/wcsnrtombs (Dependencies): Likewise.
25074         * modules/wcsrtombs (Dependencies): Likewise.
25075
25076 2011-02-12  Bruno Haible  <bruno@clisp.org>
25077
25078         setlocale: Workaround native Windows bug.
25079         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25080         succeeds but sets LC_CTYPE to "C", report a failure.
25081         * tests/test-setlocale2.sh: New file.
25082         * tests/test-setlocale2.c: New file.
25083         * modules/setlocale-tests (Files): Add the new files.
25084         (Makefile.am): Enable test-setlocale2.sh test.
25085         * doc/posix-functions/setlocale.texi: Mention workaround.
25086
25087 2011-02-11  Bruno Haible  <bruno@clisp.org>
25088
25089         Tests for module 'setlocale'.
25090         * modules/setlocale-tests: New file.
25091         * tests/test-setlocale1.sh: New file.
25092         * tests/test-setlocale1.c: New file.
25093
25094         New module 'setlocale'.
25095         * lib/locale.in.h (setlocale): New declaration.
25096         * lib/setlocale.c: New file, based on
25097         gettext/gettext-runtime/intl/setlocale.c.
25098         * m4/setlocale.m4: New file.
25099         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25100         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25101         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25102         REPLACE_SETLOCALE.
25103         * modules/setlocale: New file.
25104         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25105         * doc/posix-functions/setlocale.texi: Mention the new module.
25106
25107 2011-02-11  Bruno Haible  <bruno@clisp.org>
25108
25109         Prepare for locale dependent tests on mingw.
25110         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25111         because it has the wrong locale encoding.
25112         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25113         French_France.1252 instead of "fr".
25114         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25115         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25116         because it has the wrong locale encoding.
25117         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25118         native Windows, try Turkish_Turkey.65001.
25119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25120         Chinese_China.54936.
25121
25122         Prepare for locale dependent tests on mingw.
25123         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25124         differently.
25125         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25126         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25127         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25128         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25129
25130 2011-02-11  Eric Blake  <eblake@redhat.com>
25131
25132         strptime: avoid compiler warnings
25133         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25134         compiler warnings about dead code.
25135         Reported by Daniel P. Berrange.
25136
25137 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25138
25139         doc: update users.txt
25140         * users.txt: Add rcs.
25141
25142 2011-02-10  John W. Eaton  <jwe@gnu.org>
25143
25144         doc: update users.txt
25145         * users.txt: Add octave.
25146
25147 2011-02-10  Jim Meyering  <meyering@redhat.com>
25148
25149         doc: update users.txt
25150         * users.txt: Add iwhd.
25151
25152 2011-02-09  Bruno Haible  <bruno@clisp.org>
25153
25154         gnulib-tool: Make copyright notice adjustment more robust.
25155         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25156         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25157         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25158         License".
25159         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25160
25161 2011-02-06  Bruno Haible  <bruno@clisp.org>
25162
25163         New module 'towctrans'.
25164         * modules/towctrans: New file.
25165         * lib/wctype.in.h (towctrans): New declaration.
25166         * lib/towctrans.c: New file.
25167         * lib/towctrans-impl.h: New file.
25168         * m4/towctrans.m4: New file.
25169         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25170         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25171         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25172         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25173         * doc/posix-functions/towctrans.texi: Mention the new module.
25174
25175 2011-02-06  Bruno Haible  <bruno@clisp.org>
25176
25177         New module 'wctrans'.
25178         * modules/wctrans: New file.
25179         * lib/wctype.in.h (wctrans): New declaration.
25180         * lib/wctrans.c: New file.
25181         * lib/wctrans-impl.h: New file.
25182         * m4/wctrans.m4: New file.
25183         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25184         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25185         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25186         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25187         * doc/posix-functions/wctrans.texi: Mention the new module.
25188
25189 2011-02-06  Bruno Haible  <bruno@clisp.org>
25190
25191         New module 'iswctype'.
25192         * modules/iswctype: New file.
25193         * lib/wctype.in.h (iswctype): New declaration.
25194         * lib/iswctype.c: New file.
25195         * lib/iswctype-impl.h: New file.
25196         * m4/iswctype.m4: New file.
25197         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25198         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25199         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25200         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25201         * doc/posix-functions/iswctype.texi: Mention the new module and the
25202         HP-UX 11.00 problem.
25203
25204 2011-02-06  Bruno Haible  <bruno@clisp.org>
25205
25206         New module 'wctype'.
25207         * modules/wctype: Change to represent the wctype() substitute.
25208         * lib/wctype.in.h (wctype): New declaration.
25209         * lib/wctype.c: New file.
25210         * lib/wctype-impl.h: New file.
25211         * m4/wctype.m4: New file.
25212         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25213         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25214         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25215         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25216         * doc/posix-functions/wctype.texi: Mention the new module and the
25217         HP-UX 11.00 problem.
25218
25219 2011-02-06  Bruno Haible  <bruno@clisp.org>
25220
25221         wctype-h: Ensure wctype_t and wctrans_t are defined.
25222         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25223         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25224         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25225         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25226         HAVE_WCTRANS_T.
25227         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25228
25229 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25230
25231         flock: fix license typo
25232
25233         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25234         omitted.
25235
25236 2011-02-08  Bruno Haible  <bruno@clisp.org>
25237
25238         Split large sed scripts, for HP-UX sed.
25239         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25240         to avoid HP-UX limit of 99 commands, in the near future.
25241         * modules/stdlib (Makefile.am): Likewise.
25242         * modules/unistd (Makefile.am): Likewise.
25243         * modules/wchar (Makefile.am): Likewise.
25244         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25245         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25247
25248 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25249             Bruno Haible  <bruno@clisp.org>
25250
25251         stdlib: improve random_r modularization
25252         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25253         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25254         you also need the random_r module to get this material right.
25255         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25256         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25257         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25258
25259 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25260
25261         stdlib: don't depend on stdint
25262         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25263         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25264         be independent of whether stdint.h is needed.
25265         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25266         here, instead of ...
25267         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25268         struct random_data should be using the random_r module, not just
25269         the stdlib module (which wouldn't make sense: what package needs
25270         just struct random_data without also needing random_r?).
25271         * modules/stdlib (Depends-on): Remove stdint.
25272
25273         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25274         See the thread rooted at
25275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25276         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25277         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25278         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25279         __VMS)); previously it was always included (via fcntl--.h).
25280         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25281         hand; this is good enough for load averages.  Also, do not use
25282         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25283         flags directly if available and don't bother otherwise.  (Packages
25284         that need the extra reliability should use the modules that define
25285         these flags on older platforms that lack them.)
25286         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25287         fcntl-safer.
25288
25289 2011-02-08  Jim Meyering  <meyering@redhat.com>
25290
25291         di-set.h, ino-map.h: add multiple-inclusion guard
25292         Technically, the guard is required only for ino-map.h, due to its
25293         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25294         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25295         * lib/ino-map.h: Likewise.
25296
25297 2011-02-06  Bruno Haible  <bruno@clisp.org>
25298
25299         iswblank: Ensure declaration on glibc systems.
25300         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25301         * modules/iswblank (Dependencies): Add 'extensions'.
25302         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25303
25304 2011-02-06  Bruno Haible  <bruno@clisp.org>
25305
25306         New module 'iswblank'.
25307         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25308         * modules/iswblank: New file.
25309         * modules/wctype-h (Files): Remove lib/iswblank.c.
25310         (Makefile.am): Substitute GNULIB_ISWBLANK.
25311         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25312         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25313         (gl_WCTYPE_H_DEFAULTS): New macro.
25314         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25315         * modules/iswblank-tests: New file.
25316         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25317         * tests/test-wctype-h.c (main): Remove iswblank tests.
25318         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25319         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25320         of 'wctype-h'.
25321         * NEWS: Mention the change.
25322         * modules/mbchar (Depends-on): Add iswblank.
25323
25324 2011-02-08  Bruno Haible  <bruno@clisp.org>
25325
25326         di-set tests: Refactor.
25327         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25328         unnecessary includes.
25329         (ASSERT): Remove macro.
25330         (main): Make C90 compliant by avoiding variable declaration after
25331         statement.
25332         * modules/di-set-tests (Files): Add tests/macros.h.
25333
25334 2011-02-08  Bruno Haible  <bruno@clisp.org>
25335
25336         ino-map tests: Refactor.
25337         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25338         unnecessary includes.
25339         (ASSERT): Remove macro.
25340         (main): Make C90 compliant by avoiding variable declaration after
25341         statement.
25342         * modules/ino-map-tests (Files): Add tests/macros.h.
25343
25344 2011-02-08  Jim Meyering  <meyering@redhat.com>
25345
25346         di-set: add "const" to a cast
25347         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25348         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25349
25350 2011-02-06  Bruno Haible  <bruno@clisp.org>
25351
25352         Rename module 'wctype' to 'wctype-h'.
25353         * modules/wctype-h: Renamed from modules/wctype.
25354         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25355         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25356         (Files, Depends-on, Makefile.am): Update.
25357         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25358         (Files, Makefile.am): Update.
25359         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25360         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25361         * doc/posix-headers/wctype.texi: Update.
25362         * doc/posix-functions/iswalnum.texi: Update.
25363         * doc/posix-functions/iswalpha.texi: Update.
25364         * doc/posix-functions/iswblank.texi: Update.
25365         * doc/posix-functions/iswcntrl.texi: Update.
25366         * doc/posix-functions/iswdigit.texi: Update.
25367         * doc/posix-functions/iswgraph.texi: Update.
25368         * doc/posix-functions/iswlower.texi: Update.
25369         * doc/posix-functions/iswprint.texi: Update.
25370         * doc/posix-functions/iswpunct.texi: Update.
25371         * doc/posix-functions/iswspace.texi: Update.
25372         * doc/posix-functions/iswupper.texi: Update.
25373         * doc/posix-functions/iswxdigit.texi: Update.
25374         * doc/posix-functions/towlower.texi: Update.
25375         * doc/posix-functions/towupper.texi: Update.
25376         * NEWS: Mention the change.
25377         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25378         * modules/mbchar (Dependencies): Likewise.
25379         * modules/mbswidth (Dependencies): Likewise.
25380         * modules/quotearg (Dependencies): Likewise.
25381         * modules/regex (Dependencies): Likewise.
25382         * modules/wcscasecmp (Dependencies): Likewise.
25383         * modules/wcsncasecmp (Dependencies): Likewise.
25384         * modules/wcwidth (Dependencies): Likewise.
25385
25386 2011-02-06  Bruno Haible  <bruno@clisp.org>
25387
25388         New module 'wcswidth'.
25389         * modules/wcswidth: New file.
25390         * lib/wchar.in.h (wcswidth): New declaration.
25391         * lib/wcswidth.c: New file.
25392         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25393         * m4/wcswidth.m4: New file.
25394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25396         REPLACE_WCSWIDTH.
25397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25398         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25399         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25400         * doc/posix-functions/wcswidth.texi: Mention the new module.
25401
25402 2011-02-06  Bruno Haible  <bruno@clisp.org>
25403
25404         New module 'wcstok'.
25405         * modules/wcstok: New file.
25406         * lib/wchar.in.h (wcstok): New declaration.
25407         * lib/wcstok.c: New file.
25408         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25409         * m4/wcstok.m4: New file.
25410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25413         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25414         * doc/posix-functions/wcstok.texi: Mention the new module.
25415
25416 2011-02-06  Bruno Haible  <bruno@clisp.org>
25417
25418         New module 'wcsstr'.
25419         * modules/wcsstr: New file.
25420         * lib/wchar.in.h (wcsstr): New declaration.
25421         * lib/wcsstr.c: New file.
25422         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25423         * m4/wcsstr.m4: New file.
25424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25427         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25428         * doc/posix-functions/wcsstr.texi: Mention the new module.
25429
25430 2011-02-06  Bruno Haible  <bruno@clisp.org>
25431
25432         New module 'wcspbrk'.
25433         * modules/wcspbrk: New file.
25434         * lib/wchar.in.h (wcspbrk): New declaration.
25435         * lib/wcspbrk.c: New file.
25436         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25437         * m4/wcspbrk.m4: New file.
25438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25441         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25442         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25443
25444 2011-02-06  Bruno Haible  <bruno@clisp.org>
25445
25446         New module 'wcsspn'.
25447         * modules/wcsspn: New file.
25448         * lib/wchar.in.h (wcsspn): New declaration.
25449         * lib/wcsspn.c: New file.
25450         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25451         * m4/wcsspn.m4: New file.
25452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25455         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25456         * doc/posix-functions/wcsspn.texi: Mention the new module.
25457
25458 2011-02-06  Bruno Haible  <bruno@clisp.org>
25459
25460         New module 'wcscspn'.
25461         * modules/wcscspn: New file.
25462         * lib/wchar.in.h (wcscspn): New declaration.
25463         * lib/wcscspn.c: New file.
25464         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25465         * m4/wcscspn.m4: New file.
25466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25469         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25470         * doc/posix-functions/wcscspn.texi: Mention the new module.
25471
25472 2011-02-06  Bruno Haible  <bruno@clisp.org>
25473
25474         New module 'wcsrchr'.
25475         * modules/wcsrchr: New file.
25476         * lib/wchar.in.h (wcsrchr): New declaration.
25477         * lib/wcsrchr.c: New file.
25478         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25479         * m4/wcsrchr.m4: New file.
25480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25483         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25484         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25485
25486 2011-02-06  Bruno Haible  <bruno@clisp.org>
25487
25488         New module 'wcschr'.
25489         * modules/wcschr: New file.
25490         * lib/wchar.in.h (wcschr): New declaration.
25491         * lib/wcschr.c: New file.
25492         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25493         * m4/wcschr.m4: New file.
25494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25497         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25498         * doc/posix-functions/wcschr.texi: Mention the new module.
25499
25500 2011-02-06  Bruno Haible  <bruno@clisp.org>
25501
25502         New module 'wcsdup'.
25503         * modules/wcsdup: New file.
25504         * lib/wchar.in.h (wcsdup): New declaration.
25505         * lib/wcsdup.c: New file.
25506         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25507         * m4/wcsdup.m4: New file.
25508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25511         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25512         * doc/posix-functions/wcsdup.texi: Mention the new module.
25513
25514 2011-02-06  Bruno Haible  <bruno@clisp.org>
25515
25516         New module 'wcsxfrm'.
25517         * modules/wcsxfrm: New file.
25518         * lib/wchar.in.h (wcsxfrm): New declaration.
25519         * lib/wcsxfrm.c: New file.
25520         * lib/wcsxfrm-impl.h: New file.
25521         * m4/wcsxfrm.m4: New file.
25522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25525         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25526         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25527
25528 2011-02-06  Bruno Haible  <bruno@clisp.org>
25529
25530         New module 'wcscoll'.
25531         * modules/wcscoll: New file.
25532         * lib/wchar.in.h (wcscoll): New declaration.
25533         * lib/wcscoll.c: New file.
25534         * lib/wcscoll-impl.h: New file.
25535         * m4/wcscoll.m4: New file.
25536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25539         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25540         * doc/posix-functions/wcscoll.texi: Mention the new module.
25541
25542 2011-02-06  Bruno Haible  <bruno@clisp.org>
25543
25544         New module 'wcsncasecmp'.
25545         * modules/wcsncasecmp: New file.
25546         * lib/wchar.in.h (wcsncasecmp): New declaration.
25547         * lib/wcsncasecmp.c: New file.
25548         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25549         * m4/wcsncasecmp.m4: New file.
25550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25553         HAVE_WCSNCASECMP.
25554         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25555         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25556
25557 2011-02-06  Bruno Haible  <bruno@clisp.org>
25558
25559         New module 'wcscasecmp'.
25560         * modules/wcscasecmp: New file.
25561         * lib/wchar.in.h (wcscasecmp): New declaration.
25562         * lib/wcscasecmp.c: New file.
25563         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25564         * m4/wcscasecmp.m4: New file.
25565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25568         HAVE_WCSCASECMP.
25569         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25570         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25571
25572 2011-02-05  Bruno Haible  <bruno@clisp.org>
25573
25574         New module 'wcsncmp'.
25575         * modules/wcsncmp: New file.
25576         * lib/wchar.in.h (wcsncmp): New declaration.
25577         * lib/wcsncmp.c: New file.
25578         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25579         * m4/wcsncmp.m4: New file.
25580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25583         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25584         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25585
25586 2011-02-05  Bruno Haible  <bruno@clisp.org>
25587
25588         New module 'wcscmp'.
25589         * modules/wcscmp: New file.
25590         * lib/wchar.in.h (wcscmp): New declaration.
25591         * lib/wcscmp.c: New file.
25592         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25593         * m4/wcscmp.m4: New file.
25594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25597         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25598         * doc/posix-functions/wcscmp.texi: Mention the new module.
25599
25600 2011-02-05  Bruno Haible  <bruno@clisp.org>
25601
25602         New module 'wcsncat'.
25603         * modules/wcsncat: New file.
25604         * lib/wchar.in.h (wcsncat): New declaration.
25605         * lib/wcsncat.c: New file.
25606         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25607         * m4/wcsncat.m4: New file.
25608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25611         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25612         * doc/posix-functions/wcsncat.texi: Mention the new module.
25613
25614 2011-02-05  Bruno Haible  <bruno@clisp.org>
25615
25616         New module 'wcscat'.
25617         * modules/wcscat: New file.
25618         * lib/wchar.in.h (wcscat): New declaration.
25619         * lib/wcscat.c: New file.
25620         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25621         * m4/wcscat.m4: New file.
25622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25625         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25626         * doc/posix-functions/wcscat.texi: Mention the new module.
25627
25628 2011-02-05  Bruno Haible  <bruno@clisp.org>
25629
25630         New module 'wcpncpy'.
25631         * modules/wcpncpy: New file.
25632         * lib/wchar.in.h (wcpncpy): New declaration.
25633         * lib/wcpncpy.c: New file.
25634         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25635         * m4/wcpncpy.m4: New file.
25636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25638         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25639         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25640         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25641
25642 2011-02-05  Bruno Haible  <bruno@clisp.org>
25643
25644         New module 'wcsncpy'.
25645         * modules/wcsncpy: New file.
25646         * lib/wchar.in.h (wcsncpy): New declaration.
25647         * lib/wcsncpy.c: New file.
25648         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25649         * m4/wcsncpy.m4: New file.
25650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25653         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25654         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25655
25656 2011-02-05  Bruno Haible  <bruno@clisp.org>
25657
25658         New module 'wcpcpy'.
25659         * modules/wcpcpy: New file.
25660         * lib/wchar.in.h (wcpcpy): New declaration.
25661         * lib/wcpcpy.c: New file.
25662         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25663         * m4/wcpcpy.m4: New file.
25664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25666         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25667         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25668         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25669
25670 2011-02-05  Bruno Haible  <bruno@clisp.org>
25671
25672         New module 'wcscpy'.
25673         * modules/wcscpy: New file.
25674         * lib/wchar.in.h (wcscpy): New declaration.
25675         * lib/wcscpy.c: New file.
25676         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25677         * m4/wcscpy.m4: New file.
25678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25681         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25682         * doc/posix-functions/wcscpy.texi: Mention the new module.
25683
25684 2011-02-05  Bruno Haible  <bruno@clisp.org>
25685
25686         New module 'wcsnlen'.
25687         * modules/wcsnlen: New file.
25688         * lib/wchar.in.h (wcsnlen): New declaration.
25689         * lib/wcsnlen.c: New file.
25690         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25691         * m4/wcsnlen.m4: New file.
25692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25695         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25696         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25697
25698 2011-02-05  Bruno Haible  <bruno@clisp.org>
25699
25700         New module 'wcslen'.
25701         * modules/wcslen: New file.
25702         * lib/wchar.in.h (wcslen): New declaration.
25703         * lib/wcslen.c: New file.
25704         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25705         * m4/wcslen.m4: New file.
25706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25709         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25710         * doc/posix-functions/wcslen.texi: Mention the new module.
25711
25712 2011-02-05  Bruno Haible  <bruno@clisp.org>
25713
25714         New module 'wmemset'.
25715         * modules/wmemset: New file.
25716         * lib/wchar.in.h (wmemset): New declaration.
25717         * lib/wmemset.c: New file.
25718         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25719         * m4/wmemset.m4: New file.
25720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25722         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25723         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25724         * doc/posix-functions/wmemset.texi: Mention the new module.
25725
25726 2011-02-05  Bruno Haible  <bruno@clisp.org>
25727
25728         New module 'wmemmove'.
25729         * modules/wmemmove: New file.
25730         * lib/wchar.in.h (wmemmove): New declaration.
25731         * lib/wmemmove.c: New file.
25732         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25733         * m4/wmemmove.m4: New file.
25734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25736         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25737         HAVE_WMEMMOVE.
25738         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25739         * doc/posix-functions/wmemmove.texi: Mention the new module.
25740
25741 2011-02-05  Bruno Haible  <bruno@clisp.org>
25742
25743         New module 'wmemcpy'.
25744         * modules/wmemcpy: New file.
25745         * lib/wchar.in.h (wmemcpy): New declaration.
25746         * lib/wmemcpy.c: New file.
25747         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25748         * m4/wmemcpy.m4: New file.
25749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25751         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25752         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25753         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25754
25755 2011-02-05  Bruno Haible  <bruno@clisp.org>
25756
25757         New module 'wmemcmp'.
25758         * modules/wmemcmp: New file.
25759         * lib/wchar.in.h (wmemcmp): New declaration.
25760         * lib/wmemcmp.c: New file.
25761         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25762         * m4/wmemcmp.m4: New file.
25763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25765         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25766         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25767         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25768
25769 2011-02-07  Jim Meyering  <meyering@redhat.com>
25770
25771         di-set, ino-map: new modules, from coreutils
25772         * lib/di-set.c: New file.
25773         * lib/di-set.h: Likewise.
25774         * lib/ino-map.c: Likewise.
25775         * lib/ino-map.h: Likewise.
25776         * modules/di-set: Likewise.
25777         * modules/di-set-tests: Likewise.
25778         * modules/ino-map: Likewise.
25779         * modules/ino-map-tests: Likewise.
25780         * tests/test-di-set.c: Likewise.
25781         * tests/test-ino-map.c: Likewise.
25782
25783 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25784
25785         getloadavg: merge minor changes from Emacs
25786
25787         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25788         (getloadavg): Use memset, not bzero.
25789
25790         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25791         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25792         clash (bug#86).
25793
25794 2010-11-14  Bruno Haible  <bruno@clisp.org>
25795
25796         Allow multiple gnulib generated replacements to coexist.
25797         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25798         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25799         * lib/langinfo.in.h (nl_item): Likewise.
25800         * lib/math.in.h (_NaN, NAN): Likewise.
25801         * lib/netdb.in.h (struct addrinfo): Likewise.
25802         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25803         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25804         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25805         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25806         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25807         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25808         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25809         pthread_mutexattr_init, pthread_mutexattr_settype,
25810         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25811         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25812         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25813         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25814         * lib/sched.in.h (struct sched_param): Likewise.
25815         * lib/se-selinux.in.h (security_class_t, security_context_t,
25816         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25817         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25818         lsetfilecon, fsetfilecon, security_check_context,
25819         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25820         Likewise.
25821         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25822         Likewise.
25823         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25824         _gl_function_taking_int_returning_void_t, union sigval,
25825         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25826         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25827         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25828         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25829         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25830         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25831         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25832         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25833         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25834         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25835         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25836         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25837         socklen_t, rpl_fd_isset): Likewise.
25838         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25839         * lib/sys_time.in.h (struct timeval): Likewise.
25840         * lib/sys_times.in.h (struct tms): Likewise.
25841         * lib/sys_utsname.in.h (struct utsname):
25842         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25843         * lib/unistd.in.h (getpagesize): Likewise.
25844         * lib/wchar.in.h (mbstate_t): Likewise.
25845         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25846         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25847         towlower, towupper): Likewise.
25848         Reported by Sam Steingold <sds@gnu.org>.
25849
25850 2011-02-05  Eric Blake  <eblake@redhat.com>
25851
25852         unsetenv: work around Haiku issues
25853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25854         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25855
25856 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25857
25858         libposix: avoid calling error() within libposix
25859         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25860         is defined.
25861
25862 2011-02-05  Eric Blake  <eblake@redhat.com>
25863
25864         strerror_r-posix: port to cygwin
25865         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25866         implementation.
25867         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25868         * tests/test-strerror_r.c (main): Fix test.
25869         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25870         issue.
25871
25872 2011-02-05  Bruno Haible  <bruno@clisp.org>
25873
25874         New module 'wmemchr'.
25875         * modules/wmemchr: New file.
25876         * lib/wchar.in.h (wmemchr): New declaration.
25877         * lib/wmemchr.c: New file.
25878         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25879         * m4/wmemchr.m4: New file.
25880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25882         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25883         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25884         * doc/posix-functions/wmemchr.texi: Mention the new module.
25885
25886 2011-02-04  Eric Blake  <eblake@redhat.com>
25887
25888         fdopendir: detect FreeBSD bug
25889         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25890         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25891
25892 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25893
25894         stdbool: do not define HAVE_STDBOOL_H
25895         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25896         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25897         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25898         imported from the latest Autoconf git.  It was motivated by Emacs,
25899         which uses gnulib but does not need HAVE_STDBOOL_H.
25900
25901 2011-02-04  Bruno Haible  <bruno@clisp.org>
25902
25903         wcsnrtombs: Prepare for new module wwcsnrtombs.
25904         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25905         * lib/wcsnrtombs.c: Include it.
25906         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25907
25908         wcsrtombs: Prepare for new module wwcsrtombs.
25909         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25910         * lib/wcsrtombs.c: Include it.
25911         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25912
25913         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25914         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25915         * lib/mbsnrtowcs.c: Include it.
25916         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25917
25918         mbsrtowcs: Prepare for new module mbsrtowwcs.
25919         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25920         * lib/mbsrtowcs.c: Include it.
25921         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25922
25923 2011-02-04  Bruno Haible  <bruno@clisp.org>
25924
25925         vasnprintf: Reduce use of malloc for small format strings.
25926         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25927         (arguments): Add room for the first 7 arguments.
25928         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25929         (char_directives, u8_directives, u16_directives, u32_directives): Add
25930         room for the first 7 directives.
25931         * lib/printf-parse.c: Include <string.h>.
25932         (PRINTF_PARSE): Change memory handling code so that it uses the first
25933         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25934         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25935         Reported by Pádraig Brady <P@draigbrady.com>.
25936
25937 2011-01-31  Eric Blake  <eblake@redhat.com>
25938
25939         dup2: work around Haiku bug
25940         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25941         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25942         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25943         * tests/test-dup2.c (main): Enhance test.
25944
25945 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25946
25947         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25948         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25949         declared by eglibc 2.11.2.
25950         * lib/stdio.in.h: Likewise.
25951
25952 2011-01-31  Eric Blake  <eblake@redhat.com>
25953
25954         ignore-value: add missing test dependency
25955         * tests/test-ignore-value.c: Revert previous change; stdio.h
25956         provides off_t.
25957         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25958
25959 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25960
25961         mktime: clarify long_int width checking
25962         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25963         the top level, to make it clearer that the assumption about
25964         long_int width is being checked.  See
25965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25966
25967 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25968
25969         ignore-value: Fix self-test.
25970         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25971
25972 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25973
25974         TYPE_MAXIMUM: avoid theoretically undefined behavior
25975         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25976         negative number, which the C Standard says has undefined behavior.
25977         In practice this is not a problem, but might as well do it by the book.
25978         Reported by Rich Felker and Eric Blake; see
25979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25980         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25981         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25983         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25984         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25985         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25986
25987         mktime: #undef mktime before #defining it
25988         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25989
25990         mktime: systematically normalize tm_isdst comparisons
25991         * lib/mktime.c (isdst_differ): New function.
25992         (__mktime_internal): Use it systematically for all isdst comparisons.
25993         This completes the fix for libc BZ #6723, and removes the need for
25994         normalizing tm_isdst.  See
25995         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25996         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25997
25998         mktime: fix some integer overflow issues and sidestep the rest
25999
26000         This was prompted by a bug report by Benjamin Lindner for MinGW
26001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26002         His bug is due to signed integer overflow (0 - INT_MIN), and I
26003         I scanned through mktime.c looking for other integer overflow
26004         problems, fixing all the bugs I found.
26005
26006         Although the C Standard says the resulting code is still not safe
26007         in the presence of integer overflow, in practice it should be good
26008         enough for all real-world two's-complement implementations, except
26009         for debugging environments that deliberately trap on integer
26010         overflow (e.g., gcc -ftrapv).
26011
26012         * lib/mktime.c (WRAPV): New macro.
26013         (SHR): Also check that long_int and time_t shift right in the
26014         usual way, before using the fast-but-unportable method.
26015         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26016         used.  The code already assumed two's complement, so there's
26017         no need to test for alternatives.  All uses removed.
26018         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26019         the C standard.  Problem reported by Rich Felker in
26020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26021         (twos_complement_arithmetic): Also check long_int and time_t.
26022         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26023         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26024         (__mktime_internal): Avoid integer overflow with unary subtraction
26025         in two instances where -1 - X is an adequate replacement for -X,
26026         since the calculations are approximate.
26027
26028 2011-01-29  Eric Blake  <eblake@redhat.com>
26029
26030         mktime: avoid infinite loop
26031         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26032         type; behavior is still undefined but portable to all known targets.
26033         Reported by Rich Felker.
26034
26035 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26036
26037         rename, unlink, same-inode: Relicense.
26038         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26039         * modules/unlink (License): Likewise.
26040         * modules/same-inode (License): Likewise.
26041
26042 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26043
26044         mktime: avoid problems on NetBSD 5 / i386
26045         * lib/mktime.c (long_int): New type.  This works around a problem
26046         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26047         but time_t is 64 bits, and where I expect the existing code is
26048         wrong in some cases.
26049         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26050         (ydhms_diff): Bring back the compile-time check for wide-enough
26051         year and yday.
26052
26053         mktime: fix misspelling in comment
26054         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26055         This merges all recent glibc changes of importance.
26056
26057 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26058
26059         move-if-change: cope with concurrent mv of identical file.
26060         * build-aux/move-if-change (CMPPROG): Accept environment
26061         variable as an override for `cmp'.
26062         (usage): Document CMPPROG.
26063         Adjust comparison to drop stdout.  Cope with failure of mv if
26064         the target file exists and is identical to the source, for
26065         parallel builds.
26066         Report from H.J. Lu against binutils in PR binutils/12283.
26067
26068 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26069
26070         * users.txt: Mention sharutils.
26071
26072 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26073
26074         * users.txt: Mention OATH Toolkit.
26075
26076 2011-01-27  Bruno Haible  <bruno@clisp.org>
26077
26078         Prepare for supporting FreeBSD 10.
26079         * build-aux/config.libpath: Remove handling of freebsd1*.
26080
26081 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26082
26083         Prepare for supporting FreeBSD 10.
26084         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26085         match FreeBSD 10.0.
26086
26087 2011-01-27  Bruno Haible  <bruno@clisp.org>
26088
26089         vma-iter, get-rusage-as: Add OpenBSD support.
26090         * modules/vma-iter (configure.ac): Test for mquery.
26091         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26092         * lib/vma-iter.c: Include <sys/mman.h>.
26093         (vma_iterate): Add an implementation based on mquery().
26094         * lib/resource-ext.h (get_rusage_as): Update comments.
26095         * lib/get-rusage-as.c: Likewise.
26096         * lib/get-rusage-data.c: Likewise.
26097
26098 2011-01-26  Karl Berry  <karl@gnu.org>
26099
26100         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26101         variables to make it easier to override the makeinfo program used.
26102
26103 2011-01-26  Eric Blake  <eblake@redhat.com>
26104
26105         fcntl: work around Haiku F_DUPFD bugs
26106         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26107         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26108         cloexec bit on duplication.
26109         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26110
26111 2011-01-26  Bruno Haible  <bruno@clisp.org>
26112
26113         Enable memory leak tests on AIX.
26114         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26115         * tests/test-fprintf-posix3.c (main): Likewise.
26116
26117 2011-01-26  Bruno Haible  <bruno@clisp.org>
26118
26119         Tests for module 'get-rusage-data'.
26120         * modules/get-rusage-data-tests: New file.
26121         * tests/test-get-rusage-data.c: New file.
26122
26123         New module 'get-rusage-data'.
26124         * lib/resource-ext.h (get_rusage_data): New declaration.
26125         * lib/get-rusage-data.c: New file.
26126         * modules/get-rusage-data: New file.
26127
26128 2011-01-25  Bruno Haible  <bruno@clisp.org>
26129
26130         get-rusage-as: Allow for easier testing.
26131         * lib/resource-ext.h (get_rusage_as): Add comment.
26132         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26133         (main): New function for interactive testing.
26134
26135 2011-01-25  Bruno Haible  <bruno@clisp.org>
26136
26137         vma-iter: Treat Haiku like BeOS.
26138         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26139         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26140
26141 2011-01-25  Eric Blake  <eblake@redhat.com>
26142
26143         c-stack: fix regression on cygwin when libsigsegv is present
26144         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26145
26146 2011-01-24  Bruno Haible  <bruno@clisp.org>
26147
26148         vma-iter: Avoid empty intervals.
26149         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26150         on an empty interval.
26151
26152 2011-01-24  Jim Meyering  <meyering@redhat.com>
26153
26154         u64: remove unnecessary #include
26155         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26156
26157 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26158
26159         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26160         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26161
26162 2011-01-23  Bruno Haible  <bruno@clisp.org>
26163
26164         New module 'vma-iter'.
26165         * lib/vma-iter.h: New file.
26166         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26167         * modules/vma-iter: New file.
26168         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26169         for get_rusage_as_via_iterator.
26170         (vma_iterate_callback): New function.
26171         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26172         * modules/get-rusage-as (Depends-on): Add vma-iter.
26173
26174 2011-01-23  Bruno Haible  <bruno@clisp.org>
26175
26176         uninorm: Tweak includes.
26177         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26178         Reported by Jim Meyering.
26179
26180 2011-01-23  Bruno Haible  <bruno@clisp.org>
26181
26182         get-rusage-as: Improve on NetBSD.
26183         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26184         /proc, like on FreeBSD.
26185
26186 2011-01-23  Jim Meyering  <meyering@redhat.com>
26187
26188         xreadlink.h: remove unnecessary #include
26189         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26190
26191         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26192         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26193
26194 2011-01-23  Bruno Haible  <bruno@clisp.org>
26195
26196         get-rusage-as: Fix bug.
26197         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26198         original limit when aborting the first loop.
26199
26200 2011-01-23  Bruno Haible  <bruno@clisp.org>
26201
26202         wctype: Ensure valid C syntax.
26203         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26204         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26205
26206 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26207
26208         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26210         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26211         as they are needed only for configure's test case.
26212         This removes two unnecessary symbols from config.h.
26213
26214         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26215         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26217         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26218         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26219         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26220         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26221         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26222         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26223         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26226         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26227         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26228         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26229         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26230         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26231         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26232
26233 2011-01-21  Eric Blake  <eblake@redhat.com>
26234
26235         maintainer-makefile: work with older git for submodule check
26236         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26237         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26238         Reported by Matthias Bolte.
26239
26240         bootstrap: minor portability fixes
26241         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26242         (usage): Omit leading capital and trailing . on help phrases, per
26243         GNU Coding Standards.
26244         (check_versions, top level): Prefix messages with script name.
26245
26246 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26247
26248         bootstrap: support --no-git option
26249         * build-aux/bootstrap: Add --no-git option, to be used when
26250         --gnulib-srcdir points to the exact desired checkout.
26251
26252 2011-01-21  Eric Blake  <eblake@redhat.com>
26253
26254         strerror_r-posix: work with glibc 2.13
26255         * lib/strerror_r.c (strerror_r): Fix return type.
26256
26257 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26258             Bruno Haible  <bruno@clisp.org>
26259
26260         uN_strstr: New unit tests.
26261         * modules/unistr/u8-strstr-tests: New file.
26262         * modules/unistr/u16-strstr-tests: New file.
26263         * modules/unistr/u32-strstr-tests: New file.
26264         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26265         * tests/unistr/test-u8-strstr.c: New file.
26266         * tests/unistr/test-u16-strstr.c: New file.
26267         * tests/unistr/test-u32-strstr.c: New file.
26268
26269 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26270             Bruno Haible  <bruno@clisp.org>
26271
26272         Make uN_strstr functions O(n) worst-case.
26273         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26274         16-bit and 32-bit unit cases, use the unibyte algorithm from
26275         lib/mbsstr.c.
26276         * lib/unistr/u8-strstr.c: Include <string.h>.
26277         (UNIT_IS_UINT8_T): New macro.
26278         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26279         (U_STRLEN, U_STRNLEN): New macros.
26280         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26281         (U_STRLEN, U_STRNLEN): New macros.
26282         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26283         (configure.ac): Update required libunistring version.
26284         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26285         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26286         malloca.
26287         (configure.ac): Update required libunistring version.
26288         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26289         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26290         malloca.
26291         (configure.ac): Update required libunistring version.
26292
26293 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26294             Bruno Haible  <bruno@clisp.org>
26295
26296         Prepare for faster uN_strstr functions.
26297         * lib/str-kmp.h: Support definable UNITs.
26298         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26299         needle_len argument.
26300         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26301         * lib/mbscasestr.c (mbscasestr): Likewise.
26302
26303 2011-01-21  Pádraig Brady <P@draigBrady.com>
26304
26305         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26306         * tests/test-malloca.c (main): Unset the environment variable
26307         to greatly speed up the test.
26308         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26309         * modules/malloca-tests: Depend on unsetenv.
26310
26311 2011-01-21  Pádraig Brady <P@draigBrady.com>
26312
26313         ignore-value: remove stdint dependency
26314         * lib/ignore-value.h: Remove <stdint.h>
26315         * modules/ignore-value: Remove stdint dependency.
26316
26317 2011-01-21  Jim Meyering  <meyering@redhat.com>
26318
26319         maint.mk: adjust variable name to be consistent with other gl_ vars
26320         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26321         to be lower case.
26322
26323 2011-01-20  Jim Meyering  <meyering@redhat.com>
26324
26325         maint.mk: make "check" depend on public-submodule-commit by default
26326         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26327
26328 2011-01-20  Bruno Haible  <bruno@clisp.org>
26329
26330         mbfile, mbiter: Complete change from 2008-12-21.
26331         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26332         * m4/mbiter.m4 (gl_MBITER): Likewise.
26333
26334 2011-01-20  Jim Meyering  <meyering@redhat.com>
26335
26336         init.sh: insert space between each function name and "()"
26337         * tests/init.sh: Make it a little easier to see that a function's
26338         name is "warn_", and not "warn" when looking at the first part of
26339         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26340
26341 2011-01-20  Jim Meyering  <meyering@redhat.com>
26342
26343         mountlist: clean up code formatting
26344         * lib/mountlist.c (read_file_system_list): Split a long line,
26345         correct bracing style, use NULL in place of "(struct statfs *)0",
26346         don't parenthesize return value, add spaces around "=" and after
26347         ";-in-for-stmt".
26348
26349 2011-01-14  Markus Duft <mduft@gentoo.org>
26350
26351         mountlist: add support for Interix
26352         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26353         Apply statvfs to all entries of /dev/fs.
26354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26355         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26356
26357 2011-01-20  Jim Meyering  <meyering@redhat.com>
26358
26359         maint.mk: improve the public-submodule-commit rule
26360         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26361         to suppress printing of its commands... unless V=1.
26362         Add git submodule's --quiet option to suppress printing of e.g.,
26363         "Entering gnulib" output.
26364         "cd" into $(srcdir) before running git submodule.
26365
26366 2011-01-20  Bruno Haible  <bruno@clisp.org>
26367
26368         include_next: Fix bug introduced on 2011-01-18.
26369         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26370         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26371         ac_cv_header_... variable if the second argument is not 'check'.
26372         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26373         gl_NEXT_HEADERS_INTERNAL.
26374
26375 2011-01-20  Bruno Haible  <bruno@clisp.org>
26376
26377         Allow the user to avoid the GNULIB_TEST_* macros.
26378         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26379         Suggested by Paul Eggert.
26380
26381 2011-01-14  Jim Meyering  <meyering@redhat.com>
26382
26383         bootstrap: avoid failure when there is no .gitmodules file
26384         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26385         has been assigned to, even when its value is the empty string.
26386         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26387         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26388         Reported by John W. Eaton <jwe@gnu.org>.
26389
26390 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26391
26392         assume <ctype.h>, ..., <time.h> exist
26393         For years gnulib has been assuming the existence of the headers
26394         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26395         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26396         them, since they don't appear to be needed.
26397         * README (Portability guidelines): Document this.
26398         * lib/flock.c: Assume <fcntl.h> exists.
26399         * lib/regex_internal.h: Assume <locale.h> exists.
26400         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26402         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26403         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26404         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26405         * m4/regex.m4 (gl_REGEX): Likewise.
26406         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26407         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26408         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26409         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26410         * tests/test-argp.c: Likewise.
26411         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26412
26413         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26414         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26415         AA_APPLE_UNIVERSAL_BUILD.  See
26416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26417         * NEWS: Document this.
26418
26419 2011-01-19  Eric Blake  <eblake@redhat.com>
26420
26421         c-stack: assume stack overflow if SA_SIGINFO unsupported
26422         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26423         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26424         sigaction will work.
26425         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26426         behavior match Linux.
26427         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26428
26429         stdbool-tests: accommodate Haiku
26430         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26431
26432         binary-io: fix O_TEXT on Haiku
26433         * modules/binary-io (Depends-on): Add fcntl-h.
26434         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26435         than blindly undefining O_TEXT.
26436         Reported by Scott McCreary.
26437
26438 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26439
26440         include_next: do not check for standard headers like stddef.h
26441
26442         I found this problem when modifying Emacs to use gnulib.
26443         I noticed that it added HAVE_STDDEF_H to config.h, even though
26444         gnulib always assumes <stddef.h> exists as per README and this
26445         symbol is unnecessary.
26446         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26447         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26448         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26449         faster for headers like stddef.h that are known to exist.
26450         (gl_CHECK_NEXT_HEADERS): Use it.
26451         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26452         rather than gl_CHECK_NEXT_HEADERS.
26453         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26454         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26455
26456 2011-01-18  Eric Blake  <eblake@redhat.com>
26457
26458         ansi-c++-opt: skip C++ dependency style if C++ is unused
26459         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26460         tests when we know C++ compilation is not desired.
26461         Reported by Scott McCreary.
26462
26463 2011-01-18  Bruno Haible  <bruno@clisp.org>
26464
26465         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26466         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26467         (main): Perform test also when getrlimit and setrlimit don't exist or
26468         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26469         limiting the address space size using setrlimit, compare the address
26470         space size before and after the the test.
26471         * tests/test-dprintf-posix2.c: Likewise.
26472         * tests/test-fprintf-posix3.sh: Update skip messages.
26473         * tests/test-dprintf-posix2.sh: Likewise.
26474         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26475         * modules/dprintf-posix-tests (Depends-on): Likewise.
26476         Reported by Bruce Korb <bkorb@gnu.org> and
26477         Gary V. Vaughan <gary@gnu.org>.
26478
26479 2011-01-18  Bruno Haible  <bruno@clisp.org>
26480
26481         get-rusage-as: Improvement for Cygwin.
26482         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26483         areas that are merely reserved.
26484
26485 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26486
26487         strftime: remove dependencies on multibyte modules
26488
26489         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26490         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26491         only if __osf__ is defined, and I suspect OSF doesn't need these
26492         other modules.  If my guess is wrong, we'll need to come up with a
26493         variant of strftime that doesn't need the multibyte modules.
26494
26495         I discovered this problem when attempting modify Emacs to use the
26496         strftime module.  With the previous gnulib, this caused Emacs to
26497         need 31 new files, ranging from lib/config.charset to
26498         m4/wint_t.m4.  This was overkill and I expect would be offputting
26499         to the Emacs maintainers.  After this change, only 6 new files are
26500         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26501         stdbool.m4, and tm_gmtoff.m4.
26502
26503         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26504         Suggested by Bruno Haible in
26505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26506         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26507         and do not check for wchar.h.
26508         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26509         (Depends-on): Remove mbrlen, mbsinit, wchar.
26510
26511 2011-01-18  Bruno Haible  <bruno@clisp.org>
26512
26513         Tests for module 'get-rusage-as'.
26514         * modules/get-rusage-as-tests: New file.
26515         * tests/test-get-rusage-as.c: New file.
26516
26517         New module 'get-rusage-as'.
26518         * modules/get-rusage-as: New file.
26519         * lib/resource-ext.h: New file.
26520         * lib/get-rusage-as.c: New file.
26521
26522 2011-01-17  Eric Blake  <eblake@redhat.com>
26523
26524         sigaction: relax license from LGPLv3+ to LGPLv2+
26525         * modules/sigaction (License): Relax to LGPLv2+.
26526
26527 2011-01-14  Bruno Haible  <bruno@clisp.org>
26528
26529         filemode: Make function declarations usable in C++ mode.
26530         * lib/filemode.h: Enclose function declarations in extern "C" block.
26531         Reported by John W. Eaton <jwe@gnu.org>.
26532
26533 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26534
26535         save-cwd: no longer include "xgetcwd.h"
26536         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26537         This avoids a compilation failure in projects that use save-cwd
26538         without also using the xgetcwd module.
26539
26540 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26543         This is so that a program like Emacs, which needs only dtoastr,
26544         does not have to bother with distributing and compiling ftoastr
26545         and ldtoastr.
26546         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26547         * modules/dtoastr, modules/ldtoastr: New files.
26548         * modules/ftoastr: Now works just for 'float'.
26549         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26550         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26551         dtoastr.c, ldtoastr.c.
26552
26553 2011-01-11  Jim Meyering  <meyering@redhat.com>
26554
26555         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26556         There is no need to work around the lack of the fchdir function,
26557         since gnulib can now provide a replacement when required.
26558         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26559         * modules/save-cwd (Depends-on): Add fchdir.
26560
26561 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26562
26563         openat, save-cwd: avoid xmalloc
26564
26565         This removes a direct (but undocumented) dependency of openat on
26566         xalloc, along with an indirect dependency via save-cwd.  It also
26567         removes a dependency of save-cwd on xgetcwd, and thereby
26568         indirectly on xalloc.  This change causes the openat substitute
26569         to fall back on save_cwd when memory is tight, and for save_cwd to
26570         fail instead of dying when memory is tight, but that's good enough.
26571         Problem and initial idea for fix reported by Bastien Roucaries in
26572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26573
26574         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26575         xalloc.h (for xmalloc).
26576         (openat_proc_name): Use malloc, not xmalloc.
26577         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26578         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26579
26580         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26581         This avoids heap allocation for file names whose lengths are in
26582         the range 512..1023, with the upper bound increasing to at most
26583         4031 depending on the platform's PATH_MAX.  (We do not want
26584         pathmax.h here as it might supply a non-constant PATH_MAX.)
26585         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26586         Perhaps they should be moved to malloca.h?
26587         (OPENAT_BUFFER_SIZE): Use them.
26588
26589 2011-01-10  Bruno Haible  <bruno@clisp.org>
26590
26591         doc: Update users.txt.
26592         * users.txt: Add recutils.
26593
26594 2011-01-09  Karl Berry  <karl@gnu.org>
26595
26596         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26597
26598         * doc/configmake.texi: New file.
26599         * doc/gnulib.texi: Include it.
26600         * modules/configmake: Move documentation from here.
26601
26602 2011-01-09  Bruno Haible  <bruno@clisp.org>
26603
26604         Update to Unicode 6.0.0.
26605         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26606         (get_lbp): Update for Unicode 6.0.0.
26607         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26608         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26609         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26610         U+11001, U+11038..U+11046. Remove U+06DE.
26611         (uc_width): Fix bounds of planes.
26612         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26613         lib/uniwidth/width.c.
26614         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26615         trailing whitespace removed.
26616         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26617         without comments, but with the original copyright notice.
26618         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26619         * lib/unicase/ignorable.h: Likewise.
26620         * lib/unicase/tocasefold.h: Likewise.
26621         * lib/unicase/tolower.h: Likewise.
26622         * lib/unicase/totitle.h: Likewise.
26623         * lib/unicase/toupper.h: Likewise.
26624         * lib/unictype/bidi_of.h: Likewise.
26625         * lib/unictype/blocks.h: Likewise.
26626         * lib/unictype/categ_C.h: Likewise.
26627         * lib/unictype/categ_Cn.h: Likewise.
26628         * lib/unictype/categ_L.h: Likewise.
26629         * lib/unictype/categ_Ll.h: Likewise.
26630         * lib/unictype/categ_Lm.h: Likewise.
26631         * lib/unictype/categ_Lo.h: Likewise.
26632         * lib/unictype/categ_Lu.h: Likewise.
26633         * lib/unictype/categ_M.h: Likewise.
26634         * lib/unictype/categ_Mc.h: Likewise.
26635         * lib/unictype/categ_Me.h: Likewise.
26636         * lib/unictype/categ_Mn.h: Likewise.
26637         * lib/unictype/categ_N.h: Likewise.
26638         * lib/unictype/categ_Nd.h: Likewise.
26639         * lib/unictype/categ_No.h: Likewise.
26640         * lib/unictype/categ_P.h: Likewise.
26641         * lib/unictype/categ_Po.h: Likewise.
26642         * lib/unictype/categ_S.h: Likewise.
26643         * lib/unictype/categ_Sc.h: Likewise.
26644         * lib/unictype/categ_Sk.h: Likewise.
26645         * lib/unictype/categ_Sm.h: Likewise.
26646         * lib/unictype/categ_So.h: Likewise.
26647         * lib/unictype/categ_of.h: Likewise.
26648         * lib/unictype/combining.h: Likewise.
26649         * lib/unictype/ctype_alnum.h: Likewise.
26650         * lib/unictype/ctype_alpha.h: Likewise.
26651         * lib/unictype/ctype_graph.h: Likewise.
26652         * lib/unictype/ctype_lower.h: Likewise.
26653         * lib/unictype/ctype_print.h: Likewise.
26654         * lib/unictype/ctype_punct.h: Likewise.
26655         * lib/unictype/ctype_upper.h: Likewise.
26656         * lib/unictype/decdigit.h: Likewise.
26657         * lib/unictype/digit.h: Likewise.
26658         * lib/unictype/numeric.h: Likewise.
26659         * lib/unictype/pr_alphabetic.h: Likewise.
26660         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26661         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26662         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26663         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26664         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26665         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26666         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26667         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26668         * lib/unictype/pr_case_ignorable.h: Likewise.
26669         * lib/unictype/pr_cased.h: Likewise.
26670         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26671         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26672         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26673         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26674         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26675         * lib/unictype/pr_combining.h: Likewise.
26676         * lib/unictype/pr_composite.h: Likewise.
26677         * lib/unictype/pr_currency_symbol.h: Likewise.
26678         * lib/unictype/pr_decimal_digit.h: Likewise.
26679         * lib/unictype/pr_deprecated.h: Likewise.
26680         * lib/unictype/pr_format_control.h: Likewise.
26681         * lib/unictype/pr_grapheme_base.h: Likewise.
26682         * lib/unictype/pr_grapheme_extend.h: Likewise.
26683         * lib/unictype/pr_grapheme_link.h: Likewise.
26684         * lib/unictype/pr_id_continue.h: Likewise.
26685         * lib/unictype/pr_id_start.h: Likewise.
26686         * lib/unictype/pr_ideographic.h: Likewise.
26687         * lib/unictype/pr_lowercase.h: Likewise.
26688         * lib/unictype/pr_math.h: Likewise.
26689         * lib/unictype/pr_numeric.h: Likewise.
26690         * lib/unictype/pr_other_alphabetic.h: Likewise.
26691         * lib/unictype/pr_other_id_continue.h: Likewise.
26692         * lib/unictype/pr_other_math.h: Likewise.
26693         * lib/unictype/pr_punctuation.h: Likewise.
26694         * lib/unictype/pr_sentence_terminal.h: Likewise.
26695         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26696         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26697         * lib/unictype/pr_unified_ideograph.h: Likewise.
26698         * lib/unictype/pr_uppercase.h: Likewise.
26699         * lib/unictype/pr_xid_continue.h: Likewise.
26700         * lib/unictype/pr_xid_start.h: Likewise.
26701         * lib/unictype/scripts.h: Likewise.
26702         * lib/unictype/scripts_byname.gperf: Likewise.
26703         * lib/unictype/sy_java_ident.h: Likewise.
26704         * lib/unigbrk/gbrkprop.h: Likewise.
26705         * lib/unilbrk/lbrkprop1.h: Likewise.
26706         * lib/unilbrk/lbrkprop2.h: Likewise.
26707         * lib/uninorm/decomposition-table2.h: Likewise.
26708         * lib/uniwbrk/wbrkprop.h: Likewise.
26709         * tests/unicase/test-cased.c: Likewise.
26710         * tests/unicase/test-ignorable.c: Likewise.
26711         * tests/unicase/test-uc_tolower.c: Likewise.
26712         * tests/unicase/test-uc_totitle.c: Likewise.
26713         * tests/unicase/test-uc_toupper.c: Likewise.
26714         * tests/unictype/test-categ_C.c: Likewise.
26715         * tests/unictype/test-categ_Cn.c: Likewise.
26716         * tests/unictype/test-categ_L.c: Likewise.
26717         * tests/unictype/test-categ_Ll.c: Likewise.
26718         * tests/unictype/test-categ_Lm.c: Likewise.
26719         * tests/unictype/test-categ_Lo.c: Likewise.
26720         * tests/unictype/test-categ_Lu.c: Likewise.
26721         * tests/unictype/test-categ_M.c: Likewise.
26722         * tests/unictype/test-categ_Mc.c: Likewise.
26723         * tests/unictype/test-categ_Me.c: Likewise.
26724         * tests/unictype/test-categ_Mn.c: Likewise.
26725         * tests/unictype/test-categ_N.c: Likewise.
26726         * tests/unictype/test-categ_Nd.c: Likewise.
26727         * tests/unictype/test-categ_No.c: Likewise.
26728         * tests/unictype/test-categ_P.c: Likewise.
26729         * tests/unictype/test-categ_Po.c: Likewise.
26730         * tests/unictype/test-categ_S.c: Likewise.
26731         * tests/unictype/test-categ_Sc.c: Likewise.
26732         * tests/unictype/test-categ_Sk.c: Likewise.
26733         * tests/unictype/test-categ_Sm.c: Likewise.
26734         * tests/unictype/test-categ_So.c: Likewise.
26735         * tests/unictype/test-ctype_alnum.c: Likewise.
26736         * tests/unictype/test-ctype_alpha.c: Likewise.
26737         * tests/unictype/test-ctype_graph.c: Likewise.
26738         * tests/unictype/test-ctype_lower.c: Likewise.
26739         * tests/unictype/test-ctype_print.c: Likewise.
26740         * tests/unictype/test-ctype_punct.c: Likewise.
26741         * tests/unictype/test-ctype_upper.c: Likewise.
26742         * tests/unictype/test-decdigit.h: Likewise.
26743         * tests/unictype/test-digit.h: Likewise.
26744         * tests/unictype/test-numeric.h: Likewise.
26745         * tests/unictype/test-pr_alphabetic.c: Likewise.
26746         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26747         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26748         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26749         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26750         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26751         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26752         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26753         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26754         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26755         * tests/unictype/test-pr_cased.c: Likewise.
26756         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26757         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26758         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26759         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26760         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26761         * tests/unictype/test-pr_combining.c: Likewise.
26762         * tests/unictype/test-pr_composite.c: Likewise.
26763         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26764         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26765         * tests/unictype/test-pr_deprecated.c: Likewise.
26766         * tests/unictype/test-pr_format_control.c: Likewise.
26767         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26768         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26769         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26770         * tests/unictype/test-pr_id_continue.c: Likewise.
26771         * tests/unictype/test-pr_id_start.c: Likewise.
26772         * tests/unictype/test-pr_ideographic.c: Likewise.
26773         * tests/unictype/test-pr_lowercase.c: Likewise.
26774         * tests/unictype/test-pr_math.c: Likewise.
26775         * tests/unictype/test-pr_numeric.c: Likewise.
26776         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26777         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26778         * tests/unictype/test-pr_other_math.c: Likewise.
26779         * tests/unictype/test-pr_punctuation.c: Likewise.
26780         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26781         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26782         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26783         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26784         * tests/unictype/test-pr_uppercase.c: Likewise.
26785         * tests/unictype/test-pr_xid_continue.c: Likewise.
26786         * tests/unictype/test-pr_xid_start.c: Likewise.
26787         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26788         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26789         changes.
26790         * lib/unictype/categ_Cc.h: Likewise.
26791         * lib/unictype/categ_Cf.h: Likewise.
26792         * lib/unictype/categ_Co.h: Likewise.
26793         * lib/unictype/categ_Cs.h: Likewise.
26794         * lib/unictype/categ_Lt.h: Likewise.
26795         * lib/unictype/categ_Nl.h: Likewise.
26796         * lib/unictype/categ_Pc.h: Likewise.
26797         * lib/unictype/categ_Pd.h: Likewise.
26798         * lib/unictype/categ_Pe.h: Likewise.
26799         * lib/unictype/categ_Pf.h: Likewise.
26800         * lib/unictype/categ_Pi.h: Likewise.
26801         * lib/unictype/categ_Ps.h: Likewise.
26802         * lib/unictype/categ_Z.h: Likewise.
26803         * lib/unictype/categ_Zl.h: Likewise.
26804         * lib/unictype/categ_Zp.h: Likewise.
26805         * lib/unictype/categ_Zs.h: Likewise.
26806         * lib/unictype/ctype_blank.h: Likewise.
26807         * lib/unictype/ctype_cntrl.h: Likewise.
26808         * lib/unictype/ctype_digit.h: Likewise.
26809         * lib/unictype/ctype_space.h: Likewise.
26810         * lib/unictype/ctype_xdigit.h: Likewise.
26811         * lib/unictype/mirror.h: Likewise.
26812         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26813         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26815         * lib/unictype/pr_bidi_control.h: Likewise.
26816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26818         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26819         * lib/unictype/pr_bidi_pdf.h: Likewise.
26820         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26821         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26822         * lib/unictype/pr_dash.h: Likewise.
26823         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26824         * lib/unictype/pr_diacritic.h: Likewise.
26825         * lib/unictype/pr_extender.h: Likewise.
26826         * lib/unictype/pr_hex_digit.h: Likewise.
26827         * lib/unictype/pr_hyphen.h: Likewise.
26828         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26829         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26830         * lib/unictype/pr_ignorable_control.h: Likewise.
26831         * lib/unictype/pr_iso_control.h: Likewise.
26832         * lib/unictype/pr_join_control.h: Likewise.
26833         * lib/unictype/pr_left_of_pair.h: Likewise.
26834         * lib/unictype/pr_line_separator.h: Likewise.
26835         * lib/unictype/pr_logical_order_exception.h: Likewise.
26836         * lib/unictype/pr_non_break.h: Likewise.
26837         * lib/unictype/pr_not_a_character.h: Likewise.
26838         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26839         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26840         * lib/unictype/pr_other_id_start.h: Likewise.
26841         * lib/unictype/pr_other_lowercase.h: Likewise.
26842         * lib/unictype/pr_other_uppercase.h: Likewise.
26843         * lib/unictype/pr_paired_punctuation.h: Likewise.
26844         * lib/unictype/pr_paragraph_separator.h: Likewise.
26845         * lib/unictype/pr_pattern_syntax.h: Likewise.
26846         * lib/unictype/pr_pattern_white_space.h: Likewise.
26847         * lib/unictype/pr_private_use.h: Likewise.
26848         * lib/unictype/pr_quotation_mark.h: Likewise.
26849         * lib/unictype/pr_radical.h: Likewise.
26850         * lib/unictype/pr_soft_dotted.h: Likewise.
26851         * lib/unictype/pr_space.h: Likewise.
26852         * lib/unictype/pr_titlecase.h: Likewise.
26853         * lib/unictype/pr_variation_selector.h: Likewise.
26854         * lib/unictype/pr_white_space.h: Likewise.
26855         * lib/unictype/pr_zero_width.h: Likewise.
26856         * lib/unictype/sy_c_ident.h: Likewise.
26857         * lib/unictype/sy_c_whitespace.h: Likewise.
26858         * lib/unictype/sy_java_whitespace.h: Likewise.
26859         * lib/uninorm/composition-table.gperf: Likewise.
26860         * lib/uninorm/decomposition-table1.h: Likewise.
26861         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26862         LB8.
26863         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26864         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26865         * modules/unictype/*: Bump version number of expected libunistring
26866         version.
26867
26868 2011-01-09  Bruno Haible  <bruno@clisp.org>
26869
26870         Update to Unicode 5.2.0.
26871         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26872         trailing whitespace removed.
26873
26874 2011-01-09  Bruno Haible  <bruno@clisp.org>
26875
26876         New Unicode character properties, from Unicode 5.2.0.
26877         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26878         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26879         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26880         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26881         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26882         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26883         uc_is_property_cased, uc_is_property_case_ignorable,
26884         uc_is_property_changes_when_lowercased,
26885         uc_is_property_changes_when_uppercased,
26886         uc_is_property_changes_when_titlecased,
26887         uc_is_property_changes_when_casefolded,
26888         uc_is_property_changes_when_casemapped): New declarations.
26889         * lib/unictype/pr_byname.gperf: Add the new properties.
26890         * modules/unictype/property-byname (Depends-on): Depend on the new
26891         properties modules.
26892         * modules/unictype/property-all (Depends-on): Likewise.
26893         * MODULES.html.sh (Unicode string functions): Add
26894         unictype/property-case-ignorable, unictype/property-cased,
26895         unictype/property-changes-when-casefolded,
26896         unictype/property-changes-when-casemapped,
26897         unictype/property-changes-when-lowercased,
26898         unictype/property-changes-when-titlecased,
26899         unictype/property-changes-when-uppercased.
26900
26901         New module 'unictype/property-changes-when-casemapped'.
26902         * modules/unictype/property-changes-when-casemapped: New file.
26903         * lib/unictype/pr_changes_when_casemapped.c: New file.
26904         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26905         generated by gen-uni-tables.
26906         * modules/unictype/property-changes-when-casemapped-tests: New file.
26907         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26908         automatically generated by gen-uni-tables.
26909
26910         New module 'unictype/property-changes-when-casefolded'.
26911         * modules/unictype/property-changes-when-casefolded: New file.
26912         * lib/unictype/pr_changes_when_casefolded.c: New file.
26913         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26914         generated by gen-uni-tables.
26915         * modules/unictype/property-changes-when-casefolded-tests: New file.
26916         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26917         automatically generated by gen-uni-tables.
26918
26919         New module 'unictype/property-changes-when-titlecased'.
26920         * modules/unictype/property-changes-when-titlecased: New file.
26921         * lib/unictype/pr_changes_when_titlecased.c: New file.
26922         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26923         generated by gen-uni-tables.
26924         * modules/unictype/property-changes-when-titlecased-tests: New file.
26925         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26926         automatically generated by gen-uni-tables.
26927
26928         New module 'unictype/property-changes-when-uppercased'.
26929         * modules/unictype/property-changes-when-uppercased: New file.
26930         * lib/unictype/pr_changes_when_uppercased.c: New file.
26931         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26932         generated by gen-uni-tables.
26933         * modules/unictype/property-changes-when-uppercased-tests: New file.
26934         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26935         automatically generated by gen-uni-tables.
26936
26937         New module 'unictype/property-changes-when-lowercased'.
26938         * modules/unictype/property-changes-when-lowercased: New file.
26939         * lib/unictype/pr_changes_when_lowercased.c: New file.
26940         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26941         generated by gen-uni-tables.
26942         * modules/unictype/property-changes-when-lowercased-tests: New file.
26943         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26944         automatically generated by gen-uni-tables.
26945
26946         New module 'unictype/property-case-ignorable'.
26947         * modules/unictype/property-case-ignorable: New file.
26948         * lib/unictype/pr_case_ignorable.c: New file.
26949         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26950         by gen-uni-tables.
26951         * modules/unictype/property-case-ignorable-tests: New file.
26952         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26953         generated by gen-uni-tables.
26954
26955         New module 'unictype/property-cased'.
26956         * modules/unictype/property-cased: New file.
26957         * lib/unictype/pr_cased.c: New file.
26958         * lib/unictype/pr_cased.h: New file, automatically generated by
26959         gen-uni-tables.
26960         * modules/unictype/property-cased-tests: New file.
26961         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26962         gen-uni-tables.
26963
26964 2011-01-09  Bruno Haible  <bruno@clisp.org>
26965
26966         Update to Unicode 5.2.0.
26967         * lib/gen-uni-tables.c (output_predicate, output_category,
26968         output_combclass, output_bidi_category, output_decimal_digit_test,
26969         output_decimal_digit, output_digit_test, output_digit,
26970         output_numeric_test, output_numeric, output_mirror, output_scripts,
26971         output_scripts_byname, output_blocks, output_ident_category): Fix
26972         comment header.
26973         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26974         get_wbp.
26975         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26976         items.
26977         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26978         Changes_When_Lowercased, Changes_When_Uppercased,
26979         Changes_When_Titlecased, Changes_When_Casefolded,
26980         Changes_When_Casemapped.
26981         (is_property_alphabetic, is_property_default_ignorable_code_point):
26982         Update for Unicode 5.2.0.
26983         (is_property_cased, is_property_case_ignorable,
26984         is_property_changes_when_lowercased,
26985         is_property_changes_when_uppercased,
26986         is_property_changes_when_titlecased,
26987         is_property_changes_when_casefolded,
26988         is_property_changes_when_casemapped): New functions.
26989         (output_properties): Output also the properties cased, case_ignorable,
26990         changes_when_lowercased, changes_when_uppercased,
26991         changes_when_titlecased, changes_when_casefolded,
26992         changes_when_casemapped.
26993         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26994         Unicode TR#11 revision 17 -> 19.
26995         (LBP_CP): New enumeration value.
26996         (LBP_*): Adjust values accordingly.
26997         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26998         TR#14 revision 22 -> 24.
26999         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27000         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27001         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27002         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27003         is_WBP_MIDLETTER.
27004         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27005         the code1 and code2 of each composition rule.
27006         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27007         * lib/unicase/ignorable.h: Likewise.
27008         * lib/unicase/tocasefold.h: Likewise.
27009         * lib/unicase/tolower.h: Likewise.
27010         * lib/unicase/totitle.h: Likewise.
27011         * lib/unicase/toupper.h: Likewise.
27012         * lib/unictype/bidi_of.h: Likewise.
27013         * lib/unictype/blocks.h: Likewise.
27014         * lib/unictype/categ_C.h: Likewise.
27015         * lib/unictype/categ_Cf.h: Likewise.
27016         * lib/unictype/categ_Cn.h: Likewise.
27017         * lib/unictype/categ_L.h: Likewise.
27018         * lib/unictype/categ_Ll.h: Likewise.
27019         * lib/unictype/categ_Lm.h: Likewise.
27020         * lib/unictype/categ_Lo.h: Likewise.
27021         * lib/unictype/categ_Lu.h: Likewise.
27022         * lib/unictype/categ_M.h: Likewise.
27023         * lib/unictype/categ_Mc.h: Likewise.
27024         * lib/unictype/categ_Mn.h: Likewise.
27025         * lib/unictype/categ_N.h: Likewise.
27026         * lib/unictype/categ_Nd.h: Likewise.
27027         * lib/unictype/categ_Nl.h: Likewise.
27028         * lib/unictype/categ_No.h: Likewise.
27029         * lib/unictype/categ_P.h: Likewise.
27030         * lib/unictype/categ_Pd.h: Likewise.
27031         * lib/unictype/categ_Po.h: Likewise.
27032         * lib/unictype/categ_S.h: Likewise.
27033         * lib/unictype/categ_Sc.h: Likewise.
27034         * lib/unictype/categ_So.h: Likewise.
27035         * lib/unictype/categ_of.h: Likewise.
27036         * lib/unictype/combining.h: Likewise.
27037         * lib/unictype/ctype_alnum.h: Likewise.
27038         * lib/unictype/ctype_alpha.h: Likewise.
27039         * lib/unictype/ctype_graph.h: Likewise.
27040         * lib/unictype/ctype_lower.h: Likewise.
27041         * lib/unictype/ctype_print.h: Likewise.
27042         * lib/unictype/ctype_punct.h: Likewise.
27043         * lib/unictype/ctype_upper.h: Likewise.
27044         * lib/unictype/decdigit.h: Likewise.
27045         * lib/unictype/digit.h: Likewise.
27046         * lib/unictype/numeric.h: Likewise.
27047         * lib/unictype/pr_alphabetic.h: Likewise.
27048         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27049         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27050         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27051         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27052         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27053         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27054         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27055         * lib/unictype/pr_combining.h: Likewise.
27056         * lib/unictype/pr_composite.h: Likewise.
27057         * lib/unictype/pr_currency_symbol.h: Likewise.
27058         * lib/unictype/pr_dash.h: Likewise.
27059         * lib/unictype/pr_decimal_digit.h: Likewise.
27060         * lib/unictype/pr_deprecated.h: Likewise.
27061         * lib/unictype/pr_diacritic.h: Likewise.
27062         * lib/unictype/pr_extender.h: Likewise.
27063         * lib/unictype/pr_grapheme_base.h: Likewise.
27064         * lib/unictype/pr_grapheme_extend.h: Likewise.
27065         * lib/unictype/pr_grapheme_link.h: Likewise.
27066         * lib/unictype/pr_id_continue.h: Likewise.
27067         * lib/unictype/pr_id_start.h: Likewise.
27068         * lib/unictype/pr_ideographic.h: Likewise.
27069         * lib/unictype/pr_ignorable_control.h: Likewise.
27070         * lib/unictype/pr_logical_order_exception.h: Likewise.
27071         * lib/unictype/pr_lowercase.h: Likewise.
27072         * lib/unictype/pr_numeric.h: Likewise.
27073         * lib/unictype/pr_other_alphabetic.h: Likewise.
27074         * lib/unictype/pr_punctuation.h: Likewise.
27075         * lib/unictype/pr_sentence_terminal.h: Likewise.
27076         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27077         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27078         * lib/unictype/pr_unified_ideograph.h: Likewise.
27079         * lib/unictype/pr_uppercase.h: Likewise.
27080         * lib/unictype/pr_xid_continue.h: Likewise.
27081         * lib/unictype/pr_xid_start.h: Likewise.
27082         * lib/unictype/pr_zero_width.h: Likewise.
27083         * lib/unictype/scripts.h: Likewise.
27084         * lib/unictype/scripts_byname.gperf: Likewise.
27085         * lib/unictype/sy_java_ident.h: Likewise.
27086         * lib/unigbrk/gbrkprop.h: Likewise.
27087         * lib/unilbrk/lbrkprop1.h: Likewise.
27088         * lib/unilbrk/lbrkprop2.h: Likewise.
27089         * lib/unilbrk/lbrktables.h: Likewise.
27090         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27091         LBP_CP. Implement rule LB30.
27092         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27093         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27094         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27095         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27096         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27097         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27098         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27099         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27100         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27101         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27102         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27103         bits instead of 16 bits in the code1 and code2 of each composition
27104         rule.
27105         (uc_composition): Update for Unicode 5.2.0.
27106         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27107         * lib/uninorm/decomposition-table2.h: Likewise.
27108         * lib/uniwbrk/wbrkprop.h: Likewise.
27109         * tests/unicase/test-cased.c: Likewise.
27110         * tests/unicase/test-ignorable.c: Likewise.
27111         * tests/unicase/test-uc_tolower.c: Likewise.
27112         * tests/unicase/test-uc_totitle.c: Likewise.
27113         * tests/unicase/test-uc_toupper.c: Likewise.
27114         * tests/unictype/test-categ_C.c: Likewise.
27115         * tests/unictype/test-categ_Cf.c: Likewise.
27116         * tests/unictype/test-categ_Cn.c: Likewise.
27117         * tests/unictype/test-categ_L.c: Likewise.
27118         * tests/unictype/test-categ_Ll.c: Likewise.
27119         * tests/unictype/test-categ_Lm.c: Likewise.
27120         * tests/unictype/test-categ_Lo.c: Likewise.
27121         * tests/unictype/test-categ_Lu.c: Likewise.
27122         * tests/unictype/test-categ_M.c: Likewise.
27123         * tests/unictype/test-categ_Mc.c: Likewise.
27124         * tests/unictype/test-categ_Mn.c: Likewise.
27125         * tests/unictype/test-categ_N.c: Likewise.
27126         * tests/unictype/test-categ_Nd.c: Likewise.
27127         * tests/unictype/test-categ_Nl.c: Likewise.
27128         * tests/unictype/test-categ_No.c: Likewise.
27129         * tests/unictype/test-categ_P.c: Likewise.
27130         * tests/unictype/test-categ_Pd.c: Likewise.
27131         * tests/unictype/test-categ_Po.c: Likewise.
27132         * tests/unictype/test-categ_S.c: Likewise.
27133         * tests/unictype/test-categ_Sc.c: Likewise.
27134         * tests/unictype/test-categ_So.c: Likewise.
27135         * tests/unictype/test-ctype_alnum.c: Likewise.
27136         * tests/unictype/test-ctype_alpha.c: Likewise.
27137         * tests/unictype/test-ctype_graph.c: Likewise.
27138         * tests/unictype/test-ctype_lower.c: Likewise.
27139         * tests/unictype/test-ctype_print.c: Likewise.
27140         * tests/unictype/test-ctype_punct.c: Likewise.
27141         * tests/unictype/test-ctype_upper.c: Likewise.
27142         * tests/unictype/test-decdigit.h: Likewise.
27143         * tests/unictype/test-digit.h: Likewise.
27144         * tests/unictype/test-numeric.h: Likewise.
27145         * tests/unictype/test-pr_alphabetic.c: Likewise.
27146         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27147         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27148         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27149         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27150         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27152         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27153         * tests/unictype/test-pr_combining.c: Likewise.
27154         * tests/unictype/test-pr_composite.c: Likewise.
27155         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27156         * tests/unictype/test-pr_dash.c: Likewise.
27157         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27158         * tests/unictype/test-pr_deprecated.c: Likewise.
27159         * tests/unictype/test-pr_diacritic.c: Likewise.
27160         * tests/unictype/test-pr_extender.c: Likewise.
27161         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27162         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27163         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27164         * tests/unictype/test-pr_id_continue.c: Likewise.
27165         * tests/unictype/test-pr_id_start.c: Likewise.
27166         * tests/unictype/test-pr_ideographic.c: Likewise.
27167         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27168         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27169         * tests/unictype/test-pr_lowercase.c: Likewise.
27170         * tests/unictype/test-pr_numeric.c: Likewise.
27171         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27172         * tests/unictype/test-pr_punctuation.c: Likewise.
27173         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27174         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27175         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27176         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27177         * tests/unictype/test-pr_uppercase.c: Likewise.
27178         * tests/unictype/test-pr_xid_continue.c: Likewise.
27179         * tests/unictype/test-pr_xid_start.c: Likewise.
27180         * tests/unictype/test-pr_zero_width.c: Likewise.
27181         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27182         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27183         changed behaviour: line breaking is now disallowed between a letter
27184         or '=' and '('.
27185         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27186         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27187         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27188         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27189         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27190         lib/uniwidth/width.c.
27191         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27192         without comments, but with the original copyright notice.
27193         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27194         changes.
27195         * lib/unictype/categ_Cc.h: Likewise.
27196         * lib/unictype/categ_Co.h: Likewise.
27197         * lib/unictype/categ_Cs.h: Likewise.
27198         * lib/unictype/categ_Lt.h: Likewise.
27199         * lib/unictype/categ_Me.h: Likewise.
27200         * lib/unictype/categ_Pc.h: Likewise.
27201         * lib/unictype/categ_Pe.h: Likewise.
27202         * lib/unictype/categ_Pf.h: Likewise.
27203         * lib/unictype/categ_Pi.h: Likewise.
27204         * lib/unictype/categ_Ps.h: Likewise.
27205         * lib/unictype/categ_Sk.h: Likewise.
27206         * lib/unictype/categ_Sm.h: Likewise.
27207         * lib/unictype/categ_Z.h: Likewise.
27208         * lib/unictype/categ_Zl.h: Likewise.
27209         * lib/unictype/categ_Zp.h: Likewise.
27210         * lib/unictype/categ_Zs.h: Likewise.
27211         * lib/unictype/ctype_blank.h: Likewise.
27212         * lib/unictype/ctype_cntrl.h: Likewise.
27213         * lib/unictype/ctype_digit.h: Likewise.
27214         * lib/unictype/ctype_space.h: Likewise.
27215         * lib/unictype/ctype_xdigit.h: Likewise.
27216         * lib/unictype/mirror.h: Likewise.
27217         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27218         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27219         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27220         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27221         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27222         * lib/unictype/pr_bidi_control.h: Likewise.
27223         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27224         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27225         * lib/unictype/pr_bidi_pdf.h: Likewise.
27226         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27227         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27228         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27229         * lib/unictype/pr_format_control.h: Likewise.
27230         * lib/unictype/pr_hex_digit.h: Likewise.
27231         * lib/unictype/pr_hyphen.h: Likewise.
27232         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27233         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27234         * lib/unictype/pr_iso_control.h: Likewise.
27235         * lib/unictype/pr_join_control.h: Likewise.
27236         * lib/unictype/pr_left_of_pair.h: Likewise.
27237         * lib/unictype/pr_line_separator.h: Likewise.
27238         * lib/unictype/pr_math.h: Likewise.
27239         * lib/unictype/pr_non_break.h: Likewise.
27240         * lib/unictype/pr_not_a_character.h: Likewise.
27241         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27242         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27243         * lib/unictype/pr_other_id_continue.h: Likewise.
27244         * lib/unictype/pr_other_id_start.h: Likewise.
27245         * lib/unictype/pr_other_lowercase.h: Likewise.
27246         * lib/unictype/pr_other_math.h: Likewise.
27247         * lib/unictype/pr_other_uppercase.h: Likewise.
27248         * lib/unictype/pr_paired_punctuation.h: Likewise.
27249         * lib/unictype/pr_paragraph_separator.h: Likewise.
27250         * lib/unictype/pr_pattern_syntax.h: Likewise.
27251         * lib/unictype/pr_pattern_white_space.h: Likewise.
27252         * lib/unictype/pr_private_use.h: Likewise.
27253         * lib/unictype/pr_quotation_mark.h: Likewise.
27254         * lib/unictype/pr_radical.h: Likewise.
27255         * lib/unictype/pr_soft_dotted.h: Likewise.
27256         * lib/unictype/pr_space.h: Likewise.
27257         * lib/unictype/pr_titlecase.h: Likewise.
27258         * lib/unictype/pr_variation_selector.h: Likewise.
27259         * lib/unictype/pr_white_space.h: Likewise.
27260         * lib/unictype/sy_c_ident.h: Likewise.
27261         * lib/unictype/sy_c_whitespace.h: Likewise.
27262         * lib/unictype/sy_java_whitespace.h: Likewise.
27263         * modules/uni*/*: Bump version number of expected libunistring version.
27264         Reported by Simon Josefsson.
27265
27266 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27267
27268         useless-if-before-free: fix typo in --help and make the internal,
27269         automatic version date update process work once again.
27270         --help output contained a NUL character instead of the
27271         backslash-zero that was intended.  Also, the "must lie within
27272         the first 8 lines" line is on line 9, and hence not getting
27273         automatically updated.
27274         * build-aux/useless-if-before-free: Fix the former by adding a
27275         backslash, and the latter by condensing the three lines of what-it-does
27276         to a single line, leaving one line of slack for the future.
27277
27278 2011-01-09  Bruno Haible  <bruno@clisp.org>
27279
27280         uniwidth/width: Fix width of U+1D173..U+1D17A.
27281         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27282         symbolic_width, output_width_property_test): New functions.
27283         (main): Invoke output_nonspacing_property, output_width_property_test.
27284         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27285         U+1D173..U+1D17A.
27286         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27287         1.
27288         * modules/uniwidth/*: Bump version number of expected libunistring
27289         version.
27290         * modules/unilbrk/*: Likewise.
27291
27292 2011-01-08  Bruno Haible  <bruno@clisp.org>
27293
27294         uninorm tests: Preserve copyright of Unicode data file.
27295         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27296         Mention modifications.
27297
27298 2011-01-08  Bruno Haible  <bruno@clisp.org>
27299
27300         gen-uni-tables: Prepare for Unicode 5.2.0.
27301         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27302         (debug_output_lbp, output_lbp): Update.
27303
27304 2011-01-08  Bruno Haible  <bruno@clisp.org>
27305
27306         unilbrk: Clarify gen-uni-tables.c code.
27307         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27308         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27309         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27310
27311 2011-01-07  Bruno Haible  <bruno@clisp.org>
27312
27313         strtod: Restore errno when successfully parsing Infinity or NaN.
27314         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27315         restore the original errno.
27316
27317 2011-01-07  Bruno Haible  <bruno@clisp.org>
27318
27319         remove test: Avoid failure on HP-UX 11.
27320         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27321
27322 2011-01-07  Bruno Haible  <bruno@clisp.org>
27323
27324         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27325         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27326         error code.
27327
27328 2011-01-07  Pádraig Brady <P@draigBrady.com>
27329
27330         ignore-value: fixup comments, and add Eric Blake
27331         as an author since he rewrote the macros.
27332         * lib/ignore-value.h (ignore_value):  State that
27333         we now support aggregates.  Also specify exactly
27334         when the GCC warn_unused_result feature was added.
27335
27336 2011-01-06  Eric Blake  <eblake@redhat.com>
27337
27338         ignore-value: support aggregate types
27339         * lib/ignore-value.h (ignore_value): Provide separate gcc
27340         definition.
27341         * modules/ignore-value-tests: New test module.
27342         * tests/test-ignore-value.c: New test.
27343
27344         maint.mk: improve sc_prohibit_strcmp regex
27345         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27346         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27347         definition of STRNEQ.
27348
27349         signal: work around Haiku issue with SIGBUS
27350         * lib/siglist.h: Add comment.
27351         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27352         strsignal's favoring of SIGSEGV.
27353         * tests/test-signal.c (main): Avoid test failure.
27354         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27355         Reported by Scott McCreary.
27356
27357         maint.mk: add pre-release check to ensure submodule commits are public
27358         * top/maint.mk (public-submodule-commit): New rule.
27359         (submodule-checks): New variable.
27360         (alpha beta stable): Depend on the variable.
27361
27362 2011-01-05  Pádraig Brady <P@draigBrady.com>
27363         and Jim Meyering  <meyering@redhat.com>
27364
27365         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27366         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27367         (ATTRIBUTE_DEPRECATED): Define.
27368         (_ignore_case): New function.
27369         (ignore_value): New macro, to replace the old function.
27370         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27371         * modules/ignore-value (Depends-on): Add stdint.
27372
27373 2011-01-04  Eric Blake  <eblake@redhat.com>
27374
27375         doc: regenerate INSTALL
27376         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27377         @firstparagraphindent support, now that autoconf dropped it.
27378         (INSTALL_PRELUDE): Reinstate old macro.
27379         * doc/install.texi: Resync from autoconf.
27380         * doc/INSTALL: Reflect recent autoconf update.
27381         * doc/INSTALL.ISO: Likewise.
27382         * doc/INSTALL.UTF-8: Likewise.
27383         Reported by Karl Berry.
27384
27385 2011-01-04  Bruce Korb  <address@hidden>
27386
27387         git-version-gen: avoid a sub-shell
27388         * build-aux/git-version-gen: Redirect stderr in `...` via
27389         "exec 2>...", rather than via an added sub-shell.
27390
27391 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27392
27393         git-version-gen: use (...) rather than sh -c '...'
27394         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27395         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27396
27397 2011-01-03  Jim Meyering  <meyering@redhat.com>
27398
27399         git-version-gen: convert leading TABs to spaces
27400         * build-aux/git-version-gen: Expand leading TABs.
27401
27402         git-version-gen: handle failed "git rev-list"
27403         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27404         from git and proceeding as if it had succeeded but printed no SHA1
27405         checksums, suppress the diagnostic and handle the failure.
27406         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27407
27408         git-version-gen: include command name in one more diagnostic
27409         * build-aux/git-version-gen: When the required .tarball-version file
27410         was missing or unreadable, you might see the diagnostic from "cat",
27411         but no trace of the name of the invoking script.  Now, you still see
27412         the diagnostic from cat, but also get one from "git-version-gen: ".
27413         Inspired by a patch from Bruce Korb.
27414
27415         update-copyright: adjust test to match changed code
27416         * tests/test-update-copyright.sh: Change test's expected output
27417         to match new actual output.
27418
27419 2011-01-02  Bruno Haible  <bruno@clisp.org>
27420
27421         getlogin_r: Avoid test failure on HP-UX 11.
27422         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27423         ERANGE when the second argument is zero.
27424         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27425         portability problem.
27426
27427 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27428
27429         * build-aux/update-copyright: doc Simon's changes
27430
27431 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27432
27433         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27434         environment variable.
27435
27436 2011-01-02  Bruno Haible  <bruno@clisp.org>
27437
27438         unigbrk: Avoid gcc warnings.
27439         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27440         unused variable.
27441         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27442         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27443         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27444         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27445         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27446         Change type of first argument to 'const char *'.
27447         (main): Remove unused variable.
27448         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27449         type of first argument to 'const char *'.
27450         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27451         Likewise.
27452         (main): Change type of variable 's'.
27453         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27454         to 'int'.
27455
27456 2011-01-02  Bruno Haible  <bruno@clisp.org>
27457
27458         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27459         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27460         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27461         bug.
27462         * lib/pwrite.c: Undo 2010-12-31 patch.
27463         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27464
27465 2011-01-02  Bruno Haible  <bruno@clisp.org>
27466
27467         pread: Fix test whether it works.
27468         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27469
27470 2011-01-02  Bruno Haible  <bruno@clisp.org>
27471
27472         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27473         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27474         ends in "6". Don't require a specific month name. Try also the locale
27475         names found on HP-UX 11 and Solaris 7.
27476
27477 2011-01-02  Bruno Haible  <bruno@clisp.org>
27478
27479         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27480         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27481         C linkage.
27482         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27483
27484 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27485
27486         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27487         for consistency, since the "cluster" term is not used elsewhere.
27488         * lib/unigbrk.in.h: Update name.
27489         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27490         * lib/unigbrk/u16-grapheme-next.c: Update name.
27491         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27492         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27493         * lib/unigbrk/u32-grapheme-next.c: Update name.
27494         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27495         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27496         * lib/unigbrk/u8-grapheme-next.c: Update name.
27497         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27498         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27499         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27500         Suggested by Bruno Haible.
27501
27502 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27503
27504         Remove module 'u8-grapheme-len' as too redundant with
27505         'u8-grapheme-next'.
27506         * modules/unigbrk/u8-grapheme-len: Delete file.
27507         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27508         * lib/unigbrk.in.h: Remove prototype for deleted function.
27509         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27510         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27511
27512         Remove module 'u16-grapheme-len' as too redundant with
27513         'u16-grapheme-next'.
27514         * modules/unigbrk/u16-grapheme-len: Delete file.
27515         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27516         * lib/unigbrk.in.h: Remove prototype for deleted function.
27517         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27518         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27519
27520         Remove module 'u32-grapheme-len' as too redundant with
27521         'u32-grapheme-next'.
27522         * modules/unigbrk/u32-grapheme-len: Delete file.
27523         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27524         * lib/unigbrk.in.h: Remove prototype for deleted function.
27525         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27526         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27527
27528         Suggested by Bruno Haible.
27529
27530 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27531
27532         * unigbrk.in.h: Fix typo: "ben" => "been".
27533         Reported by Bruno Haible.
27534
27535 2011-01-01  Jim Meyering  <meyering@redhat.com>
27536
27537         maint: update almost all copyright ranges to include 2011
27538         Run the new "make update-copyright" rule.
27539
27540 2011-01-01  Jim Meyering  <meyering@redhat.com>
27541
27542         maint: update-copyright: exempt doc/INSTALL*
27543         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27544         since they are generated.  Suggested by Bruno Haible.
27545
27546 2011-01-01  Jim Meyering  <meyering@redhat.com>
27547
27548         maint: refine the update-copyright rule
27549         * Makefile (update-copyright): Also exclude any file that includes
27550         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27551         code that merely generates the comment.
27552
27553 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27554
27555         New module 'u8-grapheme-len'.
27556         * modules/unigbrk/u8-grapheme-len: New file.
27557         * modules/unigbrk/u8-grapheme-len-tests: New file.
27558         * lib/unigbrk.in.h: Add prototype for new function.
27559         * lib/unigbrk/u8-grapheme-len.c: New file.
27560         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27561
27562         New module 'u16-grapheme-len'.
27563         * modules/unigbrk/u16-grapheme-len: New file.
27564         * modules/unigbrk/u16-grapheme-len-tests: New file.
27565         * lib/unigbrk.in.h: Add prototype for new function.
27566         * lib/unigbrk/u16-grapheme-len.c: New file.
27567         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27568
27569         New module 'u32-grapheme-len'.
27570         * modules/unigbrk/u32-grapheme-len: New file.
27571         * modules/unigbrk/u32-grapheme-len-tests: New file.
27572         * lib/unigbrk.in.h: Add prototype for new function.
27573         * lib/unigbrk/u32-grapheme-len.c: New file.
27574         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27575
27576         New module 'u8-grapheme-next'.
27577         * modules/unigbrk/u8-grapheme-next: New file.
27578         * modules/unigbrk/u8-grapheme-next-tests: New file.
27579         * lib/unigbrk.in.h: Add prototype for new function.
27580         * lib/unigbrk/u8-grapheme-next.c: New file.
27581         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27582
27583         New module 'u16-grapheme-next'.
27584         * modules/unigbrk/u16-grapheme-next: New file.
27585         * modules/unigbrk/u16-grapheme-next-tests: New file.
27586         * lib/unigbrk.in.h: Add prototype for new function.
27587         * lib/unigbrk/u16-grapheme-next.c: New file.
27588         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27589
27590         New module 'u32-grapheme-next'.
27591         * modules/unigbrk/u32-grapheme-next: New file.
27592         * modules/unigbrk/u32-grapheme-next-tests: New file.
27593         * lib/unigbrk.in.h: Add prototype for new function.
27594         * lib/unigbrk/u32-grapheme-next.c: New file.
27595         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27596
27597         New module 'u8-grapheme-prev'.
27598         * modules/unigbrk/u8-grapheme-prev: New file.
27599         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27600         * lib/unigbrk.in.h: Add prototype for new function.
27601         * lib/unigbrk/u8-grapheme-prev.c: New file.
27602         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27603
27604         New module 'u16-grapheme-prev'.
27605         * modules/unigbrk/u16-grapheme-prev: New file.
27606         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27607         * lib/unigbrk.in.h: Add prototype for new function.
27608         * lib/unigbrk/u16-grapheme-prev.c: New file.
27609         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27610
27611         New module 'u32-grapheme-prev'.
27612         * modules/unigbrk/u32-grapheme-prev: New file.
27613         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27614         * lib/unigbrk.in.h: Add prototype for new function.
27615         * lib/unigbrk/u32-grapheme-prev.c: New file.
27616         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27617
27618         New module 'u8-grapheme-breaks'.
27619         * modules/unigbrk/u8-grapheme-breaks: New file.
27620         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27621         * lib/unigbrk.in.h: Add prototype for new function.
27622         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27623         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27624
27625         New module 'u16-grapheme-breaks'.
27626         * modules/unigbrk/u16-grapheme-breaks: New file.
27627         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27628         * lib/unigbrk.in.h: Add prototype for new function.
27629         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27630         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27631
27632         New module 'u32-grapheme-breaks'.
27633         * modules/unigbrk/u32-grapheme-breaks: New file.
27634         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27635         * lib/unigbrk.in.h: Add prototype for new function.
27636         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27637         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27638
27639         New module 'ulc-grapheme-breaks'.
27640         * modules/unigbrk/ulc-grapheme-breaks: New file.
27641         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27642         * m4/locale-ar.m4: New file.
27643         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27644         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27645         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27646
27647 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27648
27649         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27650         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27651         modified how this file was generated before I initially submitted
27652         the module, but failed to regenerate it.  This meant that several
27653         of the level2 entries were wrong.
27654         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27655         Remove the division-by-2 that is folded into the table now that
27656         gbrkprop.h has been regenerated properly.  Now -1 entries are
27657         handled correctly.
27658
27659         New module 'unigbrk/uc-gbrk-prop-tests'.
27660         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27661         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27662         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27663         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27664
27665 2011-01-01  Bruno Haible  <bruno@clisp.org>
27666
27667         Avoid use of hexadecimal escapes.
27668         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27669         instead of hexadecimal escapes.
27670
27671 2011-01-01  Jim Meyering  <meyering@redhat.com>
27672
27673         maint: new rule to update copyright year ranges
27674         * Makefile (update-copyright): New rule.
27675
27676         maint: indent with TABs in Makefile
27677         * Makefile: Expand leading sequences of spaces to TABs
27678
27679         version-etc: update the copyright year it reports
27680         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27681
27682 2010-12-31  Bruno Haible  <bruno@clisp.org>
27683
27684         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27685         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27686         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27687         zero.
27688
27689 2010-12-31  Bruno Haible  <bruno@clisp.org>
27690
27691         pwrite: Work around HP-UX 11.11 bug.
27692         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27693         works and set REPLACE_PWRITE if not.
27694         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27695         function.
27696         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27697
27698 2010-12-31  Bruno Haible  <bruno@clisp.org>
27699
27700         pread: Work around HP-UX 11 bugs.
27701         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27702         and set REPLACE_PREAD if not.
27703         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27704
27705 2010-12-31  Eric Blake  <eblake@redhat.com>
27706
27707         nl_langinfo: fix YESEXPR on Irix 6.5
27708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27709         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27710         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27711         it.
27712
27713 2010-12-31  Bruno Haible  <bruno@clisp.org>
27714
27715         iconv: Document HP-UX 11 bug.
27716         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27717
27718 2010-12-31  Bruno Haible  <bruno@clisp.org>
27719
27720         ldexpl: Fix link error on HP-UX 11.
27721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27722         LDEXPL_LIBM, using $ISNANL_LIBM.
27723
27724 2010-12-31  Eric Blake  <eblake@redhat.com>
27725
27726         ftello: avoid compilation failure with SunStudio c89
27727         * lib/ftello.c (ftello): Use lseek, not llseek.
27728
27729         tests: avoid failing coreutils tests on cygwin
27730         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27731         (create_exe_shims_): Return 0 when skipping.
27732
27733 2010-12-31  Bruno Haible  <bruno@clisp.org>
27734
27735         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27736         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27737
27738 2010-12-31  Bruno Haible  <bruno@clisp.org>
27739
27740         waitpid: Fix link error in C++ mode.
27741         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27742
27743 2010-12-31  Bruno Haible  <bruno@clisp.org>
27744
27745         isnan: Use GCC built-ins when possible.
27746         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27747         __builtin_isnan.
27748         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27749         (isnan): Define using GCC built-ins for GCC >= 4.0.
27750
27751 2010-12-31  Bruno Haible  <bruno@clisp.org>
27752
27753         isnand: Fix mistake.
27754         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27755         __builtin_isnand.
27756
27757 2010-12-31  Bruno Haible  <bruno@clisp.org>
27758
27759         open: Avoid C++ error on HP-UX 11.
27760         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27761
27762 2010-12-31  Bruno Haible  <bruno@clisp.org>
27763
27764         time_r: Add missing declarations on HP-UX 11.
27765         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27766         instead of HAVE_LOCALTIME_R.
27767         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27768         HAVE_LOCALTIME_R always.
27769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27770         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27771         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27772         HAVE_LOCALTIME_R.
27773         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27774         * doc/posix-functions/localtime_r.texi: Likewise.
27775
27776 2010-12-29  Eric Blake  <eblake@redhat.com>
27777
27778         mountlist: tweak previous commit
27779         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27780         Reported by Paul Eggert.
27781
27782         mountlist: fix local drive detection on cygwin
27783         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27784         that works for cygwin.
27785
27786 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27787
27788         ftoastr, snprintf: ftoastr + snprintf module
27789         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27790         since the snprintf module now should be good enough here.
27791         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27792         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27793         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27794         GNULIB_SNPRINTF only for the test directory, and the latter
27795         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27796         seems to suffice by itself.
27797
27798 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27799
27800         alloca: one step towards thread-safety
27801         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27802         need for a static variable.  All callers changed.  This does not
27803         make the alloca replacement thread-safe, but it's one step.
27804
27805         tests: minor indenting change
27806         * tests/init.sh: Sync from coreutils housekeeping patch
27807         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27808         to keep lines within 80 columns.
27809
27810 2010-12-28  Jim Meyering  <meyering@redhat.com>
27811
27812         regex: don't infloop on persistent failing calloc
27813         * lib/regexec.c (build_trtable): Return failure indication upon
27814         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27815         In glibc, this was fixed for version 2.13:
27816         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27817
27818 2010-12-28  Bruno Haible  <bruno@clisp.org>
27819             Paul Eggert <eggert@cs.ucla.edu>
27820
27821         linkat: Make implementation robust against system behaviour variations.
27822         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27823         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27824         way, and to -2 if it needs a generic runtime test.
27825         * lib/linkat.c (solaris_optimized_link_immediate,
27826         solaris_optimized_link_follow): New functions.
27827         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27828         (check_same_link): Use it.
27829
27830 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27831
27832         New module 'unigbrk/base'.
27833         * modules/unigbrk/base: New file.
27834         * lib/unigbrk.in.h: New file.
27835
27836         New module 'unigbrk/uc-gbrk-prop'.
27837         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27838         * modules/unigbrk/uc-gbrk-prop: New file.
27839         * lib/unigbrk/gbrkprop.h: New file.
27840         * lib/unigbrk/uc-gbrk-prop.c: New file.
27841
27842         New module 'unigbrk/uc-is-grapheme-break'.
27843         * modules/unigbrk/uc-is-grapheme-break: New file.
27844         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27845         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27846         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27847         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27848         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27849
27850         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27851
27852 2010-12-27  Bruno Haible  <bruno@clisp.org>
27853
27854         linkat test: Avoid failure on Solaris 11 2010-11.
27855         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27856
27857 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27858
27859         utimens: work around glibc rounding bug on more platforms
27860         * lib/utimens.c (fdutimens): Work around rounding bug even if
27861         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27863
27864 2010-12-27  Bruno Haible  <bruno@clisp.org>
27865
27866         select tests: Improve comments.
27867         * tests/test-select.c (do_select): Add comments.
27868
27869 2010-12-27  Bruno Haible  <bruno@clisp.org>
27870
27871         select tests: Safer way of handling timeout.
27872         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27873         at every invocation.
27874
27875 2010-12-27  Bruno Haible  <bruno@clisp.org>
27876
27877         select tests: Use 'bool' where appropriate.
27878         * tests/test-select.c (connect_to_socket): Change argument type to
27879         'bool'.
27880
27881 2010-12-27  Bruno Haible  <bruno@clisp.org>
27882
27883         select tests: Use existing modules.
27884         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27885         (configure.ac): Don't test for unistd.h.
27886         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27887         declared in <unistd.h>.
27888
27889 2010-12-27  Bruno Haible  <bruno@clisp.org>
27890
27891         mbrtowc: Work around a Solaris 7 bug.
27892         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27893         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27894         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27895         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27896         MBRTOWC_NULL_ARG1_BUG.
27897         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27898         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27899         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27900         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27901
27902 2010-12-27  Jim Meyering  <meyering@redhat.com>
27903
27904         read-file.c: tweak syntax
27905         * lib/read-file.c (fread_file): Remove space after "*" in function
27906         definitions.
27907
27908 2010-12-27  Bruno Haible  <bruno@clisp.org>
27909
27910         times test: Avoid gcc warnings on OSF/1.
27911         * tests/test-times.c (main): Cast printf arguments from clock_t to
27912         'long int'.
27913
27914 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27915
27916         utimens: work around glibc rounding bug on older Linux kernels
27917         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27918         on Linux with a glibc whose utimes might not work, then work
27919         around a longstanding glibc bug involving rounding rather than
27920         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27921         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27922
27923 2010-12-26  Bruno Haible  <bruno@clisp.org>
27924
27925         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27926         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27927         _GL_CXXALIAS_SYS.
27928         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27929
27930 2010-12-26  Bruno Haible  <bruno@clisp.org>
27931
27932         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27933         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27935         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27936         looking for the declaration.
27937         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27938         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27939         problem.
27940         * doc/posix-functions/inet_pton.texi: Likewise.
27941
27942 2010-12-26  Bruno Haible  <bruno@clisp.org>
27943
27944         arpa_inet: Use the common idioms with C++ support.
27945         * lib/arpa_inet.in.h: Include c++defs.h.
27946         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27947         support.
27948         * modules/arpa_inet (Depends-on): Add c++defs.
27949         (Makefile.am): Substitute the contents of c++defs.h.
27950         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27951         * modules/arpa_inet-c++-tests: New file.
27952         * tests/test-arpa_inet-c++.cc: New file.
27953
27954 2010-12-25  Bruno Haible  <bruno@clisp.org>
27955
27956         Fix more C++ link errors on Solaris 8.
27957         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27958         $(LIB_EACCESS).
27959         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27960         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27961         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27962         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27963         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27964
27965 2010-12-25  Bruno Haible  <bruno@clisp.org>
27966
27967         printf-posix: Fix link error when a non-GCC compiler is used.
27968         * lib/stdio.in.h (printf): When not using GCC, override printf
27969         correctly.
27970         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27971
27972 2010-12-25  Bruno Haible  <bruno@clisp.org>
27973
27974         strerror_r-posix: Update doc.
27975         * doc/posix-functions/strerror_r.texi: Update doc about the return
27976         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27977
27978 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27979
27980         utimens: simplify the logic of the previous change
27981         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27982         This should not affect whether the test succeeds or fails.
27983
27984         utimens: configure better on hosts with NFS clock skew
27985         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27986         uses the clock of the local host.  It might use the clock of the
27987         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27989
27990 2010-12-25  Bruno Haible  <bruno@clisp.org>
27991
27992         ptsname test: Avoid failure on Solaris.
27993         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27994         open a pseudo-terminal; don't use BSD-style ptys.
27995         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27996
27997 2010-12-25  Bruno Haible  <bruno@clisp.org>
27998
27999         ptsname: Avoid ERANGE failure on some systems.
28000         * lib/ptsname.c (buffer): Increase size.
28001
28002 2010-12-25  Bruno Haible  <bruno@clisp.org>
28003
28004         rename, renameat: Avoid test failures at NFS mounted locations.
28005         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28006         so that subsequent mkdir calls succeed.
28007
28008 2010-12-25  Bruno Haible  <bruno@clisp.org>
28009
28010         iswblank: Fix C++ link error on Solaris 8.
28011         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28012         _GL_FUNCDECL_SYS.
28013
28014 2010-12-25  Bruno Haible  <bruno@clisp.org>
28015
28016         unistd: Fix C++ link error on Solaris 8.
28017         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28018
28019 2010-12-25  Bruno Haible  <bruno@clisp.org>
28020
28021         readlink doc: Mention an old glibc bug.
28022         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28023
28024 2010-12-25  Bruno Haible  <bruno@clisp.org>
28025
28026         fcntl-h: Fix for use of C++ on glibc systems.
28027         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28028         also on glibc systems in C++ mode.
28029         Reported by Gary V. Vaughan <gary@gnu.org>.
28030
28031 2010-12-25  Bruno Haible  <bruno@clisp.org>
28032
28033         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28034         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28035
28036 2010-12-25  Bruno Haible  <bruno@clisp.org>
28037
28038         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28039         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28040         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28041         test whether truncl works according to ISO C 99 with IEC 60559.
28042         * m4/truncl-ieee.m4: New file.
28043         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28044         m4/signbit.m4.
28045         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28046
28047 2010-12-25  Bruno Haible  <bruno@clisp.org>
28048
28049         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28050         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28051         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28052         test whether ceill works according to ISO C 99 with IEC 60559.
28053         * m4/ceill-ieee.m4: New file.
28054         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28055         m4/signbit.m4.
28056         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28057
28058 2010-12-25  Bruno Haible  <bruno@clisp.org>
28059
28060         Ensure all prerequisites of <wchar.h> are included.
28061         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28062         before <wchar.h>.
28063         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28064         gl_MBRLEN_NUL_RETVAL): Likewise.
28065         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28066         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28067         AC_FUNC_MBRTOWC): Likewise.
28068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28069         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28071         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28072         Likewise.
28073         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28074         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28075         (gl_WCHAR_H): Improve comments.
28076         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28077
28078 2010-12-25  Bruno Haible  <bruno@clisp.org>
28079
28080         strtok_r: Fix C syntax error in autoconf macro.
28081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28082         characters in test program.
28083
28084 2010-12-24  Bruno Haible  <bruno@clisp.org>
28085
28086         ceil, trunc, round: Fix gcc warnings.
28087         * lib/ceil.c (MIN): Undefine before redefining.
28088         * lib/trunc.c (MIN): Likewise.
28089         * lib/round.c (MIN): Likewise.
28090         Include <math.h> first.
28091
28092 2010-12-24  Bruno Haible  <bruno@clisp.org>
28093
28094         select tests: Avoid failures on OSF/1 5.1.
28095         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28096         failure of closing the last socket; it may fail with ECONNRESET.
28097
28098 2010-12-24  Eric Blake  <eblake@redhat.com>
28099
28100         stdint: avoid HP-UX 10.20 preprocessor bug
28101         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28102         than #if.
28103         * tests/test-floor2.c (main): Likewise.
28104         Reported by Peter O'Gorman.
28105
28106         pipe: make obsoletion transition easier
28107         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28108         * modules/pipe (Files): Include revived file.
28109         (Include): Drop reference, to mirror getdate's behavior.
28110
28111 2010-12-24  Bruno Haible  <bruno@clisp.org>
28112
28113         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28114         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28115         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28117
28118 2010-12-24  Bruno Haible  <bruno@clisp.org>
28119
28120         gethostname: Ensure declaration on NonStop Kernel.
28121         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28123
28124 2010-12-24  Bruno Haible  <bruno@clisp.org>
28125
28126         sys_select: Ensure all necessary types on NonStop Kernel.
28127         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28128         include <sys/time.h>.
28129         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28130         NonStop Kernel.
28131         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28132
28133 2010-12-24  Bruno Haible  <bruno@clisp.org>
28134
28135         sys_select: Remove unneeded include.
28136         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28137         have <sys/select.h>.
28138
28139 2010-12-24  Bruno Haible  <bruno@clisp.org>
28140
28141         gethostname: Provide a fallback for HOST_NAME_MAX.
28142         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28143         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28144         instead.
28145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28146
28147 2010-12-24  Bruno Haible  <bruno@clisp.org>
28148
28149         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28150         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28151         (SA_RESTART): Likewise.
28152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28153
28154 2010-12-24  Bruno Haible  <bruno@clisp.org>
28155
28156         signal: Define NSIG.
28157         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28158         * tests/test-signal.c (nsig): New variable.
28159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28160
28161 2010-12-24  Bruno Haible  <bruno@clisp.org>
28162
28163         rename, renameat: Avoid test failures on OSF/1 5.1.
28164         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28165         alternative error codes.
28166         * tests/test-renameat.c (main): Likewise.
28167
28168 2010-12-24  Bruno Haible  <bruno@clisp.org>
28169
28170         *printf: Detect large precisions bug on Solaris 10/SPARC.
28171         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28172         by Paul Eggert.
28173         * tests/test-snprintf-posix.h (test_function): Add this test code here
28174         too.
28175         * tests/test-sprintf-posix.h (test_function): Likewise.
28176         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28177         * tests/test-vasprintf-posix.c (test_function): Likewise.
28178         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28179         around by gnulib.
28180         * doc/posix-functions/printf.texi: Likewise.
28181         * doc/posix-functions/snprintf.texi: Likewise.
28182         * doc/posix-functions/sprintf.texi: Likewise.
28183         * doc/posix-functions/vfprintf.texi: Likewise.
28184         * doc/posix-functions/vprintf.texi: Likewise.
28185         * doc/posix-functions/vsnprintf.texi: Likewise.
28186         * doc/posix-functions/vsprintf.texi: Likewise.
28187         * doc/posix-functions/dprintf.texi: Undo last commit.
28188         * doc/posix-functions/vdprintf.texi: Likewise.
28189
28190 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28191
28192         tests: port test-fdutimensat.c to Solaris 8
28193         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28194         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28195         On Solaris 8, it fails with errno == ENOSYS, because there is no
28196         futimens (so it can't use the fd), and there is no lutimens (so it
28197         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28198
28199         vsnprintf: make more consistent with snprintf; doc fixes
28200
28201         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28202         the byte count return problem was promoted from the snprintf-posix
28203         to the snprintf module.
28204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28206         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28207         * tests/test-snprintf.c (main): Check the byte count returned.
28208         * tests/test-vsnprintf.c (main): Likewise.
28209
28210 2010-12-23  Eric Blake  <eblake@redhat.com>
28211
28212         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28213         * modules/sigpipe (License): Relax license.
28214
28215 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28216
28217         doc: document Solaris printf bug with large float precisions
28218         * doc/posix-functions/dprintf.texi (dprintf):
28219         * doc/posix-functions/fprintf.texi (fprintf):
28220         * doc/posix-functions/printf.texi (printf):
28221         * doc/posix-functions/snprintf.texi (snprintf):
28222         * doc/posix-functions/sprintf.texi (sprintf):
28223         * doc/posix-functions/vdprintf.texi (vdprintf):
28224         * doc/posix-functions/vfprintf.texi (vfprintf):
28225         * doc/posix-functions/vprintf.texi (vprintf):
28226         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28227         * doc/posix-functions/vsprintf.texi (vsprintf):
28228         Mention that these functions mishandle large floating point
28229         precisions on Solaris 10.  The same bug is also present in Solaris
28230         8, and I assume earlier.  This causes "cd gnulib-tests; make
28231         check" to fail on Solaris 8 (and I assume, later) when building
28232         the latest coreutils, in test-vasprintf-posix's call to
28233         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28234         the wide flavors (e.g., wprintf) so this patch just updates the
28235         documentation for the narrow ones.
28236
28237         test-posixtm.c: add two tests
28238         * tests/test-posixtm.c: Add two tests, to highlight the
28239         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28240         around this bug; this is merely to document it.
28241
28242 2010-12-22  Bruno Haible  <bruno@clisp.org>
28243
28244         getlogin_r: Work around portability problem on OSF/1.
28245         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28246         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28247         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28248         test for a truncated result.
28249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28250         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28251         * modules/getlogin_r (Depends-on): Add memchr.
28252         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28253
28254 2010-12-22  Bruno Haible  <bruno@clisp.org>
28255
28256         ptsname: Avoid test failure on OSF/1 5.1.
28257         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28258         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28259         (same_slave): New function.
28260         (main): Use it to compare ptsname's result with the expected file name.
28261
28262 2010-12-22  Bruno Haible  <bruno@clisp.org>
28263
28264         Port extended stdio modules to HP NonStop Kernel.
28265         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28266         macros.
28267         * lib/fbufmode.c: Update comments.
28268         * lib/fflush.c: Likewise.
28269         * lib/fpurge.c: Likewise.
28270         * lib/freadable.c: Likewise.
28271         * lib/freadahead.c: Likewise.
28272         * lib/freading.c: Likewise.
28273         * lib/freadptr.c: Likewise.
28274         * lib/freadseek.c: Likewise.
28275         * lib/fseeko.c: Likewise.
28276         * lib/fseterr.c: Likewise.
28277         * lib/fwritable.c: Likewise.
28278         * lib/fwriting.c: Likewise.
28279         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28280
28281 2010-12-22  Bruno Haible  <bruno@clisp.org>
28282
28283         ttyname_r: Work around bug on OSF/1 5.1.
28284         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28285         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28286         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28287         present.
28288         * lib/ttyname_r.c (ttyname_r): Update comments.
28289
28290 2010-12-22  Bruno Haible  <bruno@clisp.org>
28291
28292         round: Implement result sign according to IEEE 754.
28293         * lib/round.c (MIN, MINUS_ZERO): New macros.
28294         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28295         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28296         * tests/test-round-ieee.c (main): Likewise.
28297         * tests/test-roundl-ieee.c (main): Likewise.
28298
28299         trunc: Implement result sign according to IEEE 754.
28300         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28301         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28302         * tests/test-trunc2.c: Include minus-zero.h.
28303         (MINUS_ZERO): New macro.
28304         (trunc_reference): Keep in sync with lib/trunc.c.
28305         * tests/test-truncf2.c: Include minus-zero.h.
28306         (MINUS_ZERO): New macro.
28307         (truncf_reference): Keep in sync with lib/trunc.c.
28308         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28309         * tests/test-trunc-ieee.c (main): Likewise.
28310         * tests/test-truncl-ieee.c (main): Likewise.
28311
28312         ceil: Implement result sign according to IEEE 754.
28313         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28314         (FUNC): Return -0.0 for -1 < x < 0.
28315         * tests/test-ceil2.c: Include minus-zero.h.
28316         (MINUS_ZERO): New macro.
28317         (ceil_reference): Keep in sync with lib/ceil.c.
28318         * tests/test-ceilf2.c: Include minus-zero.h.
28319         (MINUS_ZERO): New macro.
28320         (ceilf_reference): Keep in sync with lib/ceil.c.
28321         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28322         * tests/test-ceil-ieee.c (main): Likewise.
28323         * tests/test-ceill-ieee.c (main): Likewise.
28324
28325         floor: Implement result sign according to IEEE 754.
28326         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28327         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28328         * tests/test-floorf2.c (floorf_reference): Likewise.
28329         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28330         * tests/test-floor-ieee.c (main): Likewise.
28331         * tests/test-floorl-ieee.c (main): Likewise.
28332
28333 2010-12-22  Bruno Haible  <bruno@clisp.org>
28334
28335         getaddrinfo: Update doc.
28336         * doc/posix-functions/gai_strerror.texi: Return type is also different
28337         on AIX and HP-UX.
28338
28339 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28340
28341         getaddrinfo, inet_ntop: Update doc for Solaris.
28342         * doc/posix-functions/gai_strerror.texi: Return type is also an
28343         issue on Solaris 9 and earlier.
28344         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28345         on Solaris 10 and earlier.
28346
28347 2010-12-21  Bruno Haible  <bruno@clisp.org>
28348
28349         New module 'roundl-ieee'.
28350         * modules/roundl-ieee: New file.
28351         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28352         test whether roundl works according to ISO C 99 with IEC 60559.
28353         * m4/roundl-ieee.m4: New file.
28354         * modules/roundl-ieee-tests: New file.
28355         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28356         * tests/test-roundl.c (main): Remove signbit tests.
28357         * modules/roundl-tests (Depends-on): Remove signbit.
28358         * doc/posix-functions/roundl.texi: Mention the new module.
28359
28360 2010-12-21  Bruno Haible  <bruno@clisp.org>
28361
28362         New module 'truncl-ieee'.
28363         * modules/truncl-ieee: New file.
28364         * modules/truncl-ieee-tests: New file.
28365         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28366         * tests/test-truncl.c (main): Remove signbit tests.
28367         * modules/truncl-tests (Depends-on): Remove signbit.
28368         * doc/posix-functions/truncl.texi: Mention the new module.
28369
28370 2010-12-21  Bruno Haible  <bruno@clisp.org>
28371
28372         New module 'ceill-ieee'.
28373         * modules/ceill-ieee: New file.
28374         * modules/ceill-ieee-tests: New file.
28375         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28376         * tests/test-ceill.c (main): Remove signbit tests.
28377         * modules/ceill-tests (Depends-on): Remove signbit.
28378         * doc/posix-functions/ceill.texi: Mention the new module.
28379
28380 2010-12-21  Bruno Haible  <bruno@clisp.org>
28381
28382         New module 'floorl-ieee'.
28383         * modules/floorl-ieee: New file.
28384         * modules/floorl-ieee-tests: New file.
28385         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28386         * tests/test-floorl.c (main): Remove signbit tests.
28387         * modules/floorl-tests (Depends-on): Remove signbit.
28388         * doc/posix-functions/floorl.texi: Mention the new module.
28389
28390 2010-12-21  Bruno Haible  <bruno@clisp.org>
28391
28392         New module 'round-ieee'.
28393         * modules/round-ieee: New file.
28394         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28395         whether round works according to ISO C 99 with IEC 60559.
28396         * m4/round-ieee.m4: New file.
28397         * modules/round-ieee-tests: New file.
28398         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28399         * tests/test-round1.c (main): Remove signbit tests.
28400         * modules/round-tests (Depends-on): Remove 'signbit'.
28401         * doc/posix-functions/round.texi: Mention the new module.
28402
28403 2010-12-21  Bruno Haible  <bruno@clisp.org>
28404
28405         New module 'trunc-ieee'.
28406         * modules/trunc-ieee: New file.
28407         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28408         whether trunc works according to ISO C 99 with IEC 60559.
28409         * m4/trunc-ieee.m4: New file.
28410         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28412         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28413         * modules/trunc-ieee-tests: New file.
28414         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28415         * tests/test-trunc1.c (main): Remove signbit tests.
28416         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28417         * doc/posix-functions/trunc.texi: Mention the new module.
28418
28419 2010-12-21  Bruno Haible  <bruno@clisp.org>
28420
28421         New module 'ceil-ieee'.
28422         * modules/ceil-ieee: New file.
28423         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28424         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28425         ISO C 99 with IEC 60559.
28426         * m4/ceil-ieee.m4: New file.
28427         * modules/ceil (Files): Add lib/ceil.c.
28428         (Depends-on): Add 'float'.
28429         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28430         * lib/math.in.h (ceil): New declaration.
28431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28432         REPLACE_CEIL.
28433         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28434         * modules/ceil-ieee-tests: New file.
28435         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28436         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28437         * doc/posix-functions/ceil.texi: Mention the new module.
28438
28439 2010-12-21  Bruno Haible  <bruno@clisp.org>
28440
28441         New module 'floor-ieee'.
28442         * modules/floor-ieee: New file.
28443         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28444         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28445         ISO C 99 with IEC 60559.
28446         * m4/floor-ieee.m4: New file.
28447         * modules/floor (Files): Add lib/floor.c.
28448         (Depends-on): Add 'float'.
28449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28450         * lib/math.in.h (floor): New declaration.
28451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28452         REPLACE_FLOOR.
28453         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28454         * modules/floor-ieee-tests: New file.
28455         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28456         * tests/test-math-c++.cc: Check the signature of 'floor'.
28457         * doc/posix-functions/floor.texi: Mention the new module.
28458
28459 2010-12-21  Bruno Haible  <bruno@clisp.org>
28460
28461         New module 'roundf-ieee'.
28462         * modules/roundf-ieee: New file.
28463         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28464         test whether roundf works according to ISO C 99 with IEC 60559.
28465         * m4/roundf-ieee.m4: New file.
28466         * modules/roundf-ieee-tests: New file.
28467         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28468         * tests/test-roundf1.c (main): Remove signbit tests.
28469         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28470         * doc/posix-functions/roundf.texi: Mention the new module.
28471
28472 2010-12-21  Bruno Haible  <bruno@clisp.org>
28473
28474         New module 'truncf-ieee'.
28475         * modules/truncf-ieee: New file.
28476         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28477         test whether truncf works according to ISO C 99 with IEC 60559.
28478         * m4/truncf-ieee.m4: New file.
28479         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28481         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28482         * modules/truncf-ieee-tests: New file.
28483         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28484         * tests/test-truncf1.c (main): Remove signbit tests.
28485         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28486         * doc/posix-functions/truncf.texi: Mention the new module.
28487
28488 2010-12-21  Bruno Haible  <bruno@clisp.org>
28489
28490         New module 'ceilf-ieee'.
28491         * modules/ceilf-ieee: New file.
28492         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28493         test whether ceilf works according to ISO C 99 with IEC 60559.
28494         * m4/ceilf-ieee.m4: New file.
28495         * modules/ceilf-ieee-tests: New file.
28496         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28497         * tests/test-ceilf1.c (main): Remove signbit tests.
28498         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28499         * doc/posix-functions/ceilf.texi: Mention the new module.
28500
28501 2010-12-21  Bruno Haible  <bruno@clisp.org>
28502
28503         New module 'floorf-ieee'.
28504         * modules/floorf-ieee: New file.
28505         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28506         test whether floorf works according to ISO C 99 with IEC 60559.
28507         * m4/floorf-ieee.m4: New file.
28508         * modules/floorf-ieee-tests: New file.
28509         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28510         * tests/test-floorf1.c (main): Remove signbit tests.
28511         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28512         * doc/posix-functions/floorf.texi: Mention the new module.
28513
28514 2010-12-21  Bruno Haible  <bruno@clisp.org>
28515
28516         Support for minus zero in autoconf macros.
28517         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28518         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28519         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28520         * tests/minus-zero.h: Update comments.
28521
28522 2010-12-21  Bruno Haible  <bruno@clisp.org>
28523
28524         Tests for module 'ceil'.
28525         * modules/ceil-tests: New file.
28526         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28527         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28528
28529 2010-12-21  Bruno Haible  <bruno@clisp.org>
28530
28531         Tests for module 'floor'.
28532         * modules/floor-tests: New file.
28533         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28534         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28535
28536 2010-12-21  Bruno Haible  <bruno@clisp.org>
28537
28538         math: Fix indentation.
28539         * lib/math.in.h (floorf): Fix indentation.
28540
28541 2010-12-21  Bruno Haible  <bruno@clisp.org>
28542
28543         Fix cross-compilation guesses on Solaris.
28544         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28545         not match "solaris2.10".
28546         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28547         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28548         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28549
28550 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28551
28552         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28553         This fixes a problem observed with the latest coreutils snapshot
28554         that caused a test to fail on Solaris 8.  src/csplit.c's call
28555         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28556         earlier, instead of returning the number of bytes that would have
28557         been generated; this causes csplit to incorrectly report memory
28558         exhaustion.
28559         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28560         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28561         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28562         comments to match.
28563         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28564         Fix typo in matching older versions of Solaris: "solaris2.10"
28565         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28566         only for guessing while cross-compiling.
28567         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28568
28569 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28570
28571         ftoastr: fix comment again
28572         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28573         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28574         Also, simplify example a bit by using flags = 0.
28575
28576 2010-12-20  Bruno Haible  <bruno@clisp.org>
28577
28578         round*, trunc*: Update documentation regarding glibc.
28579         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28580         * doc/posix-functions/round.texi: Likewise.
28581         * doc/posix-functions/roundl.texi: Likewise.
28582         * doc/posix-functions/truncf.texi: Likewise.
28583         * doc/posix-functions/trunc.texi: Likewise.
28584         * doc/posix-functions/truncl.texi: Likewise.
28585
28586 2010-12-20  Bruno Haible  <bruno@clisp.org>
28587
28588         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28589         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28590         * doc/posix-functions/round.texi: Likewise.
28591         * doc/posix-functions/roundl.texi: Likewise.
28592
28593 2010-12-20  Bruno Haible  <bruno@clisp.org>
28594
28595         ttyname_r: Add missing declaration on HP-UX 11.
28596         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28597         HAVE_TTYNAME_R.
28598         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28599         declared. Set HAVE_TTYNAME_R always.
28600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28601         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28602         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28603         HAVE_TTYNAME_R.
28604         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28605
28606 2010-12-20  Bruno Haible  <bruno@clisp.org>
28607
28608         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28609         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28610         * doc/posix-functions/getlogin_r.texi: Likewise.
28611         * tests/test-getlogin.c: Include <errno.h>.
28612         (main): Avoid test failure on HP-UX 11.11.
28613         * tests/test-getlogin_r.c (main): Likewise.
28614
28615 2010-12-20  Bruno Haible  <bruno@clisp.org>
28616
28617         getlogin_r: Add missing declaration on HP-UX 11.
28618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28619         declared also when it exists as a function.
28620         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28621
28622 2010-12-20  Bruno Haible  <bruno@clisp.org>
28623
28624         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28625         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28626         through wcrtomb.
28627
28628 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28629
28630         ftoastr: fix comment
28631         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28633
28634 2010-12-19  Bruno Haible  <bruno@clisp.org>
28635
28636         isnan: Ensure it is a macro.
28637         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28638         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28639         Solaris.
28640
28641 2010-12-19  Bruno Haible  <bruno@clisp.org>
28642
28643         ldexpl test: Fix link error on OSF/1 5.1.
28644         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28645
28646 2010-12-19  Bruno Haible  <bruno@clisp.org>
28647
28648         wctype: Make it work in C++ mode on OSF/1 5.1.
28649         * lib/wctype.in.h (iswblank): Declare but not define here.
28650         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28651         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28652         * modules/wctype (Files): Add lib/iswblank.c.
28653
28654 2010-12-19  Bruno Haible  <bruno@clisp.org>
28655
28656         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28657         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28658         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28659
28660 2010-12-19  Bruno Haible  <bruno@clisp.org>
28661
28662         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28663         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28664         _POSIX_PII_SOCKET.
28665         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28666         * doc/posix-functions/recvfrom.texi: Likewise.
28667         * doc/posix-functions/send.texi: Likewise.
28668         * doc/posix-functions/sendto.texi: Likewise.
28669
28670 2010-12-19  Bruno Haible  <bruno@clisp.org>
28671
28672         tcgetsid: Add missing declaration on OSF/1 5.1.
28673         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28674         HAVE_TCGETSID.
28675         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28676         Don't set HAVE_TCGETSID.
28677         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28678         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28679         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28680         HAVE_TCGETSID.
28681         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28682
28683 2010-12-19  Bruno Haible  <bruno@clisp.org>
28684
28685         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28686         * lib/stdio.in.h: During the include_next statement, let recursive
28687         includes of this file include only the system header file.
28688
28689 2010-12-19  Bruno Haible  <bruno@clisp.org>
28690
28691         iconv_open: Fix regression from 2010-12-04.
28692         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28693         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28694
28695 2010-12-19  Bruno Haible  <bruno@clisp.org>
28696
28697         stdbool test: Avoid a gcc warning.
28698         * tests/test-stdbool.c (main): Fail if e1 is false.
28699         Reported by Jim Meyering.
28700
28701 2010-12-19  Jim Meyering  <meyering@redhat.com>
28702
28703         setenv: restore to working order
28704         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28705         mistakenly removed.
28706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28707         HAVE_SETENV.
28708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28709         HAVE_SETENV.
28710
28711 2010-12-19  Bruno Haible  <bruno@clisp.org>
28712
28713         Document some different function declarations on OSF/1 5.1.
28714         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28715         * doc/posix-functions/inet_ntop.texi: Likewise.
28716         * doc/posix-functions/gethostname.texi: Likewise.
28717         * lib/unistd.in.h (gethostname): Update comment.
28718
28719 2010-12-19  Bruno Haible  <bruno@clisp.org>
28720
28721         doc: Mention vasprintf-posix module.
28722         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28723         the 'vasprintf-posix' module.
28724         * doc/glibc-functions/vasprintf.texi: Likewise.
28725
28726 2010-12-19  Bruno Haible  <bruno@clisp.org>
28727
28728         unsetenv: Add missing declaration on OSF/1 5.1.
28729         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28730         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28731         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28733         not HAVE_UNSETENV.
28734         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28735         HAVE_UNSETENV.
28736         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28737
28738 2010-12-19  Bruno Haible  <bruno@clisp.org>
28739
28740         setenv: Add missing declaration on OSF/1 5.1.
28741         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28742         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28743         declared. Don't set HAVE_SETENV.
28744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28745         not HAVE_SETENV.
28746         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28747         HAVE_SETENV.
28748         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28749
28750 2010-12-19  Bruno Haible  <bruno@clisp.org>
28751
28752         nl_langinfo tests: Avoid gcc warning.
28753         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28754
28755 2010-12-19  Bruno Haible  <bruno@clisp.org>
28756
28757         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28758         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28759         _GL_CXXALIAS_SYS.
28760
28761 2010-12-19  Bruno Haible  <bruno@clisp.org>
28762
28763         stdbool: Relax test.
28764         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28765         address to 'bool' work in static initializer, for compilers other than
28766         GCC.
28767
28768 2010-12-19  Bruno Haible  <bruno@clisp.org>
28769
28770         ftello: Add missing declaration on OSF/1 5.1.
28771         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28772         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28774         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28775         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28776
28777 2010-12-19  Bruno Haible  <bruno@clisp.org>
28778
28779         fseeko: Add missing declaration on OSF/1 5.1.
28780         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28783         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28784         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28785
28786 2010-12-19  Bruno Haible  <bruno@clisp.org>
28787
28788         fchdir: Add missing declaration on OSF/1 5.1.
28789         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28792         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28793         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28794
28795 2010-12-19  Bruno Haible  <bruno@clisp.org>
28796
28797         relocatable-prog-wrapper: Separate from relocatable-prog.
28798         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28799         uninstall-relocwrapper rule here.
28800         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28801         Reported by Ian Beckwith <ianb@erislabs.net>.
28802
28803 2010-12-19  Bruno Haible  <bruno@clisp.org>
28804
28805         unistr/u8-mbsnlen: Add missing dependency.
28806         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28807         Reported by Ian Beckwith <ianb@erislabs.net>.
28808
28809 2010-12-19  Bruno Haible  <bruno@clisp.org>
28810
28811         iconv: Make it possible again to use this module without 'iconv-h'.
28812         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28813         if it is not defined.
28814         Reported by Ian Beckwith <ianb@erislabs.net>.
28815
28816 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28817
28818         acl: port to Solaris 8 when copying from tmpfs to ufs
28819         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28820         error number.  Problem observed on Solaris 8 with latest
28821         coreutils, with "mv A B", where A is on a tmpfs file system and B
28822         is on a ufs file system.  This caused coreutils' mv/part-symlink
28823         test to fail.
28824
28825         tests: set fail=0 at start
28826         * tests/init.sh (setup_): Move fail=0 initialization here ...
28827         (mktempd_): ... from here, so that tests can rely on fail being
28828         set to 0 initially.  This fixes a problem in coreutils; see:
28829         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28830
28831 2010-12-18  Bruno Haible  <bruno@clisp.org>
28832
28833         memmem-simple: Stylistic changes.
28834         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28835         Fix preprocessor directive indentation.
28836
28837 2010-12-15  Pádraig Brady <P@draigBrady.com>
28838
28839         memmem, memmem-simple: reorganize and expand empty needle check
28840         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28841         functional checks to memmem-simple so that one has a fully functional
28842         memmem by using just this module.
28843         Restrict the performance only check to the memmem module.
28844         Also expand the empty needle check to ensure the correct
28845         pointer is returned, not just a non NULL pointer.
28846         * doc/glibc-functions/memmem.texi: Rearrange the portability
28847         documentation to correlate with the rearranged checks.
28848         Clarify exactly how the memmem and memmem-simple modules
28849         relate to each other.
28850
28851 2010-12-15  Pádraig Brady <P@draigBrady.com>
28852             Bruno Haible  <bruno@clisp.org>
28853
28854         Improve cross-compilation guesses for uClibc.
28855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28856         that uClibc does not have the glibc bug.
28857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28859
28860 2010-12-14  Eric Blake  <eblake@redhat.com>
28861
28862         configmake: provide fallbacks for oldest supported autotools
28863         * m4/configmake.m4: New file.
28864         * modules/configmake (Files): Ship it.
28865         (configure.ac): Use it to guarantee fallbacks.
28866
28867 2010-12-13  Pádraig Brady <P@draigBrady.com>
28868
28869         read-file: Improve handling of large files
28870         * lib/read-file.c (fread_file): Minimize realloc()s
28871         for regular files, and better manage sizes around SIZE_MAX.
28872
28873 2010-12-13  Eric Blake  <eblake@redhat.com>
28874
28875         cloexec, fcntl: relax license
28876         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28877         consent from all contributors.
28878         * modules/fcntl (License): Likewise.
28879
28880 2010-12-10  Bruno Haible  <bruno@clisp.org>
28881
28882         Tests for module 'pipe-posix'.
28883         * modules/pipe-posix-tests: New file.
28884         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28885
28886 2010-12-10  Bruno Haible  <bruno@clisp.org>
28887
28888         pipe-posix: Make it work in C++ mode.
28889         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28890         (pipe): Use common idiom, not a macro definition.
28891         * lib/pipe.c: New file.
28892         * m4/pipe.m4: New file.
28893         * modules/pipe-posix (Description): Enhance.
28894         (Files): Add lib/pipe.c, m4/pipe.m4.
28895         (configure.ac): Invoke gl_FUNC_PIPE.
28896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28897         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28898         * tests/test-unistd-c++.cc: Check the signature of pipe.
28899
28900 2010-12-10  Bruno Haible  <bruno@clisp.org>
28901
28902         Rename module 'pipe' to 'spawn-pipe'.
28903         * modules/spawn-pipe: New file, renamed from modules/pipe.
28904         (Files, configure.ac, Makefile.am): Update.
28905         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28906         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28907         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28908         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28909         "spawn-pipe.h" instead of "pipe.h".
28910         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28911         to gl_SPAWN_PIPE.
28912         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28913         (Files, Makefile.am): Update.
28914         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28915         Update.
28916         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28917         Include "spawn-pipe.h" instead of "pipe.h".
28918         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28919         * lib/javacomp.c: Likewise.
28920         * lib/javaversion.c: Likewise.
28921         * lib/pipe-filter-gi.c: Likewise.
28922         * lib/pipe-filter-ii.c: Likewise.
28923         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28924         * modules/javacomp (Depends-on): Likewise.
28925         * modules/javaversion (Depends-on): Likewise.
28926         * modules/pipe-filter-gi (Depends-on): Likewise.
28927         * modules/pipe-filter-ii (Depends-on): Likewise.
28928         * MODULES.html.sh (Executing programs): Update.
28929         * NEWS: Mention the change.
28930
28931 2010-12-10  Eric Blake  <eblake@redhat.com>
28932
28933         pipe-posix: new module
28934         * modules/pipe-posix: New file.
28935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28936         (gl_UNISTD_H): Check for declaration.
28937         * modules/unistd (Makefile.am): Substitute it.
28938         * lib/unistd.in.h (pipe): Provide it for mingw.
28939         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28940         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28941
28942 2010-12-07  Bruno Haible  <bruno@clisp.org>
28943
28944         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28945         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28946         u8_strcmp_gnu.
28947         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28948
28949 2010-12-06  Bruno Haible  <bruno@clisp.org>
28950
28951         Update internal documentation.
28952         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28953
28954 2010-12-04  Bruno Haible  <bruno@clisp.org>
28955
28956         Put more information about failed tests into the test return codes.
28957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28958         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28959         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28961         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28962         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28963         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28964         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28965         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28968         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28969         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28970         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28971         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28972         returns a bit mask.
28973         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28974         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28975         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28976         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28977         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28978         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28981         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28983         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28984         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28985         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28987         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28988         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28989         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28990         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28991         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28992         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28994         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28996         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28997         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28998         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28999         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29000         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29001         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29002         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29003         gl_PRINTF_PRECISION): Likewise.
29004         * m4/regex.m4 (gl_REGEX): Likewise.
29005         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29006         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29007         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29008         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29012         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29013         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29014         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29015         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29016         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29017         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29019         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29020         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29021         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29024         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29025         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29026         enumerated value.
29027         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29028
29029 2010-12-04  Bruno Haible  <bruno@clisp.org>
29030
29031         Update for Solaris 11 2010-11.
29032         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29033         Express, released in November 2010.
29034
29035 2010-12-04  Bruno Haible  <bruno@clisp.org>
29036
29037         nproc: Relax license.
29038         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29039         and Paul Eggert.
29040         Requested by Ludovic Courtès <ludo@gnu.org>.
29041
29042 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29043
29044         utimecmp: fine-grained src to nearby coarse-grained dest
29045
29046         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29047         and the source is on a file system with higher-resolution time
29048         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29049         not work, and the time stamps are close together, the algorithm to
29050         determine the exact resolution from the read-back mtime was buggy:
29051         it had a "!=" where it should have had an "==".  This bug has been
29052         in the code ever since it was introduced to gnulib.
29053         Problem reported by Dan Jacobson in
29054         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29055
29056 2010-11-30  Bruno Haible  <bruno@clisp.org>
29057
29058         strerror_r-posix: Fix autoconf test.
29059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29060
29061 2010-11-28  Bruno Haible  <bruno@clisp.org>
29062             Paul Eggert  <eggert@cs.ucla.edu>
29063
29064         Tests for module 'getdomainname'.
29065         * modules/getdomainname-tests: New file.
29066         * tests/test-getdomainname.c: New file, based on
29067         tests/test-gethostname.c.
29068
29069 2010-11-28  Bruno Haible  <bruno@clisp.org>
29070             Paul Eggert  <eggert@cs.ucla.edu>
29071
29072         getdomainname: Use the system function when possible.
29073         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29074         (getdomainname): Replace if needed. Provide the declaration if it is
29075         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29076         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29077         (getdomainname): When the system has getdomainname, call the system
29078         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29079         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29080         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29081         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29082         the function if its second argument is of type 'int' or if it is found
29083         in libnsl.
29084         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29085         <sys/systeminfo.h> and sysinfo().
29086         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29088         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29089         HAVE_GETDOMAINNAME.
29090         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29091         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29092         * doc/glibc-functions/getdomainname.texi: Document the problems with
29093         the getdomainname declaration.
29094
29095 2010-11-28  Bruno Haible  <bruno@clisp.org>
29096
29097         sys_socket: Ensure ss_family field on AIX.
29098         * lib/sys_socket.in.h (ss_family): New macro definition.
29099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29100         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29101         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29102         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29103         * modules/sys_socket (Makefile.am): Substitute
29104         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29105         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29106
29107 2010-11-27  Bruno Haible  <bruno@clisp.org>
29108
29109         readline: Improve configure output.
29110         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29111         "checking for readline..." result understandable.
29112
29113 2010-11-27  Bruno Haible  <bruno@clisp.org>
29114
29115         *printf-posix: Detect a bug on Solaris 10/x86.
29116         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29117         for floating-point output.
29118         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29119         directive.
29120         * tests/test-snprintf-posix.h (test_function): Likewise.
29121         * tests/test-sprintf-posix.h (test_function): Likewise.
29122         * tests/test-vasprintf-posix.c (test_function): Likewise.
29123         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29124         * doc/posix-functions/printf.texi: Likewise.
29125         * doc/posix-functions/snprintf.texi: Likewise.
29126         * doc/posix-functions/sprintf.texi: Likewise.
29127         * doc/posix-functions/vfprintf.texi: Likewise.
29128         * doc/posix-functions/vprintf.texi: Likewise.
29129         * doc/posix-functions/vsnprintf.texi: Likewise.
29130         * doc/posix-functions/vsprintf.texi: Likewise.
29131         * doc/glibc-functions/obstack_printf.texi: Likewise.
29132         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29133
29134 2010-11-27  Bruno Haible  <bruno@clisp.org>
29135
29136         Fix link error when module libunistring-optional is in use.
29137         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29138         * modules/striconveha-tests (Makefile.am): Likewise.
29139
29140 2010-11-27  Bruno Haible  <bruno@clisp.org>
29141
29142         regex: Mention link dependencies.
29143         * modules/regex (Link): New section.
29144         * modules/rpmatch (Link): Likewise.
29145         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29146
29147 2010-11-27  Bruno Haible  <bruno@clisp.org>
29148
29149         ftoastr: Fix compilation error on Solaris.
29150         * lib/ftoastr.c: Include <config.h>.
29151
29152 2010-11-27  Bruno Haible  <bruno@clisp.org>
29153
29154         getloadavg: Update documentation.
29155         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29156
29157 2010-11-27  Bruno Haible  <bruno@clisp.org>
29158
29159         sys_socket: Fix test whether the functions are declared.
29160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29161         not <sys/select.h>.
29162
29163 2010-11-27  Bruno Haible  <bruno@clisp.org>
29164
29165         getpass: Make sure to get system declaration on some platforms.
29166         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29167         gl_USE_SYSTEM_EXTENSIONS.
29168         * modules/getpass (Depends-on): Add extensions.
29169
29170 2010-11-26  Bruno Haible  <bruno@clisp.org>
29171
29172         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29173         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29174         'iconv' module is present.
29175         (ICONV_CONST): New macro.
29176         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29177         ICONV_CONST.
29178         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29179         set ICONV_CONST.
29180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29181         here.
29182         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29183         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29184         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29185         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29186         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29187         present.
29188
29189 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29190
29191         ftoastr: comment fix
29192         * lib/ftoastr.c: "little" -> "little or no" in comment
29193
29194 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29195
29196         stdint: port to GCC 4.3 + OSX + Octave
29197         On this platform, stdint.h is buggy and defines int64_t to long
29198         long int.  The replacement defined it to long int, causing
29199         problems with C++ style name mangling.  Instead, trust the system
29200         definition if INT64_MAX is defined, and likewise for the unsigned
29201         variant.   Problem reported by Jarno Rajahalme in
29202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29203         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29204         and don't mess with int64_t and INT64_MAX in this case.
29205         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29206
29207 2010-11-24  Bruno Haible  <bruno@clisp.org>
29208
29209         doc: Corrections regarding MacOS X 10.4 and 10.5.
29210         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29211         MacOS X.
29212         Reported by Simon Josefsson.
29213
29214 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29215
29216         Uninstall ".bin" files installed by relocwrapper.
29217         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29218         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29219         unless it is already there.
29220
29221 2010-11-21  Bruno Haible  <bruno@clisp.org>
29222
29223         Update for NetBSD 5.0.
29224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29225         NetBSD; the test fails on NetBSD 5.0.
29226         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29227         about NetBSD.
29228
29229 2010-11-21  Bruno Haible  <bruno@clisp.org>
29230
29231         Update for HP-UX 11.23 and HP-UX 11.31.
29232         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29233         HP-UX.
29234
29235 2010-11-21  Bruno Haible  <bruno@clisp.org>
29236
29237         Update for MacOS X 10.5.
29238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29239         MacOS X; the test fails on MacOS X 10.5.8.
29240         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29241         about MacOS X.
29242
29243 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29244
29245         bootstrap: add bootstrap_sync option.
29246         See discussion at
29247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29248         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29249         * build-aux/bootstrap: Accept --bootstrap-sync to update
29250         bootstrap if it is not identical to the local gnulib's
29251         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29252         enable this by default.  Accept --no-bootstrap-sync to disable
29253         it.
29254
29255 2010-11-20  Bruno Haible  <bruno@clisp.org>
29256
29257         Ensure that <features.h> is included before __GLIBC__ is tested.
29258         * lib/printf-parse.h: Include <features.h>.
29259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29260         Reported by Mike Frysinger <vapier@gentoo.org>.
29261
29262         Ensure that <features.h> is included before __GLIBC__ is tested.
29263         * lib/wchar.in.h: Include <features.h>.
29264         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29265         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29266         Reported by Mike Frysinger <vapier@gentoo.org>.
29267
29268         Ensure that <features.h> is included before __GLIBC__ is tested.
29269         * lib/arpa_inet.in.h: Include <features.h>.
29270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29271         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29272         Reported by Mike Frysinger <vapier@gentoo.org>.
29273
29274         Ensure that <features.h> is included before __GLIBC__ is tested.
29275         * build-aux/link-warning.h: Include <features.h>.
29276         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29277         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29278         Reported by Mike Frysinger <vapier@gentoo.org>.
29279
29280         Ensure that <features.h> is included before __GLIBC__ is tested.
29281         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29282         Reported by Mike Frysinger <vapier@gentoo.org>.
29283
29284 2010-11-20  Bruno Haible  <bruno@clisp.org>
29285
29286         memmem: Fix autoconf test.
29287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29288
29289 2010-11-20  Bruno Haible  <bruno@clisp.org>
29290
29291         Port to uClibc.
29292         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29293         * lib/fcntl.in.h: Likewise.
29294         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29295         * lib/mbrtowc.c (mbrtowc): Likewise.
29296         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29297         * lib/strerror_r.c: Likewise.
29298         * lib/unistr/u8-strnlen.c: Likewise.
29299         * lib/vasnprintf.c (decimal_point_char): Likewise.
29300         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29301         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29303         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29304         * tests/test-sigaction.c (handler, main): Likewise.
29305         * lib/freading.h: Treat uClibc like a non-glibc platform.
29306         * lib/freading.c: Likewise.
29307         * lib/gettext.h: Likewise.
29308         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29309         Likewise.
29310         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29311         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29312         * lib/propername.c (proper_name_utf8): Likewise.
29313         * lib/spawn.in.h: Likewise.
29314         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29315         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29316         mem_cd_iconveh_internal): Likewise.
29317         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29318         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29319         strstr, strcasestr): Likewise.
29320         * lib/unicodeio.c (unicode_to_mb): Likewise.
29321         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29322         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29323         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29324         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29325         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29326         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29327         * lib/unistr/u8-stpncpy.c: Likewise.
29328         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29329         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29332         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29333         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29337         Likewise.
29338         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29339         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29342         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29343         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29345         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29346         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29347         * tests/test-striconveha.c (main): Likewise.
29348         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29349         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29350         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29351         * doc/posix-functions/getline.texi: Likewise.
29352         Reported by Mike Frysinger <vapier@gentoo.org>.
29353
29354 2010-11-20  Bruno Haible  <bruno@clisp.org>
29355
29356         nproc: Fix condition.
29357         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29358         HAVE_PTHREAD_AFFINITY_NP.
29359
29360 2010-11-20  Bruno Haible  <bruno@clisp.org>
29361
29362         Fix a comment.
29363         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29364
29365 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29366
29367         ftoastr: don't assume snprintf
29368         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29369         Implement a subset of snprintf here, by using sprintf safely.
29370         * modules/ftoastr (Depends-on): Remove snprintf.
29371
29372 2010-11-19  Jim Meyering  <meyering@redhat.com>
29373
29374         test-rename.h: fix compilation failure
29375         * tests/test-rename.h (test_rename): Add omitted "}".
29376
29377 2010-11-17  Jim Meyering  <meyering@redhat.com>
29378
29379         maint.mk: add a URL discussing the no-@acronym policy
29380         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29381
29382 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29383
29384         ftoastr: depend on snprintf, improve comments
29385         * lib/ftoastr.c: Also mention Loitsch's draft.
29386         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29387         needed in the current implementation, but it might simplify
29388         speeding up the code later.
29389         * modules/ftoastr: Depend on snprintf; this improves portability.
29390         Suggested by Bruno Haible in the same email.
29391
29392         ftoastr: port to hosts lacking strtof and strtold
29393         Problem reported by Bruno Haible in
29394         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29395         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29396         environment and strtold (and presumably strtof) are not available.
29397         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29398         (configure.ac): Require gl_C99_STRTOLD.
29399
29400 2010-11-18  Bruno Haible  <bruno@clisp.org>
29401
29402         c-strtold: Avoid link error on AIX 7.
29403         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29404         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29405         (gl_C_STRTOLD): Test whether strtold_l exists.
29406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29407
29408 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29409
29410         intprops: new macro INT_BITS_STRLEN_BOUND
29411         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29412         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29413         not exposed.  Also, it uses a slightly tighter bound than before;
29414         though this makes no practical difference, we might as well be as
29415         tight as we easily can.
29416
29417         ftoastr: new module, for lossless conversion of floats to short strings
29418         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29419         * modules/ftoastr: New files.
29420
29421 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29422
29423         bootstrap: port to Solaris sed
29424         * build-aux/bootstrap (get_version): Port to Solaris sed.
29425         See Ralf Wildenhues's note in
29426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29427
29428 2010-11-14  Jim Meyering  <meyering@redhat.com>
29429
29430         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29431         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29432         and move definition closer to sole use.
29433
29434 2010-11-13  Jim Meyering  <meyering@redhat.com>
29435
29436         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29437         Now we require at least autoconf-2.59, which means the work-around
29438         is no longer needed.
29439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29441         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29442         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29443         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29444
29445 2010-11-13  Bruno Haible  <bruno@clisp.org>
29446
29447         rename, renameat: Avoid test failures at NFS mounted locations.
29448         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29449         functions.
29450         (test_rename): Use assert_nonexistent.
29451         * tests/test-rename.c: Include <dirent.h>.
29452         * tests/test-renameat.c: Likewise.
29453         Reported by Gary V. Vaughan <gary@gnu.org>.
29454
29455         rename, renameat: Document Linux bug with NFS
29456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29457         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29458         * doc/posix-functions/renameat.texi: Likewise.
29459         Suggested by Eric Blake.
29460
29461 2010-11-13  Bruno Haible  <bruno@clisp.org>
29462
29463         rename test: Add comments.
29464         * tests/test-rename.h (test_rename): Add structure and comments.
29465
29466 2010-11-13  Eric Blake  <eblake@redhat.com>
29467
29468         maintainer-makefile: cover a few more files
29469         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29470         scripts generated within C files, for libvirt.
29471
29472 2010-11-13  Bruno Haible  <bruno@clisp.org>
29473
29474         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29475         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29476         character, return the number of bytes that belong together, not always
29477         1.
29478         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29479         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29480         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29481         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29482         number of bytes of an invalid character.
29483         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29484         (main): Invoke it.
29485         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29486         results.
29487         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29488         malformed byte sequences.
29489         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29490         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29491         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29492         Reported by Ben Pfaff and Paolo Bonzini.
29493
29494 2010-11-13  Bruno Haible  <bruno@clisp.org>
29495
29496         openat: Work around glibc bug with fchownat() and empty file names.
29497         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29498         (gl_FUNC_FCHOWNAT): Invoke it.
29499         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29500         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29501         Reported by Gary V. Vaughan <gary@gnu.org>.
29502
29503 2010-11-13  Bruno Haible  <bruno@clisp.org>
29504
29505         openat: Ensure autoconf macro ordering.
29506         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29507         gl_USE_SYSTEM_EXTENSIONS.
29508         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29509
29510 2010-11-13  Bruno Haible  <bruno@clisp.org>
29511
29512         Update comments.
29513         * lib/unistr/u8-check.c: Update file name in comments.
29514         * lib/unistr/u8-mblen.c: Likewise.
29515         * lib/unistr/u8-prev.c: Likewise.
29516         * lib/unistr/u8-strmblen.c: Likewise.
29517         * lib/unistr/u8-strmbtouc.c: Likewise.
29518
29519 2010-11-13  Jim Meyering  <meyering@redhat.com>
29520
29521         tests: avoid test failure on Solaris 10 due to lack of PATH export
29522         * tests/test-update-copyright.sh: Don't forget to export PATH.
29523
29524         init.sh: ensure that IFS is defined, just in case...
29525         * tests/init.sh (setup_): Ensure that IFS is defined,
29526         so that saving and restoring it works as expected.  This
29527         appears to be useful at least for an old version of dash
29528         from a long time ago (RH 6).  See here for details:
29529         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29530
29531         maint.mk: tighten "test a == b" check
29532         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29533         test to files that contain something like #!/bin/sh.
29534         Without this, coreutils would get two false positives in
29535         the comments of C source files.
29536
29537 2010-11-12  Eric Blake  <eblake@redhat.com>
29538
29539         bootstrap: fix typo in previous attempt
29540         * build-aux/bootstrap (buildreq): Correct the grouping.
29541         Reported by Paul Eggert.
29542
29543         maintainer-makefile: prohibit test x == x
29544         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29545         Based on a report by Matthias Bolte.
29546
29547         bootstrap: allow FreeBSD gzip
29548         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29549         which has no '.' and goes to stderr.
29550         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29551         Reported by Matthias Bolte.
29552
29553         maintainer-makefile: check for i18n setup
29554         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29555         will likely work.
29556
29557 2010-11-12  Bruno Haible  <bruno@clisp.org>
29558
29559         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29560         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29561         * lib/nanosleep.c (nanosleep): Likewise.
29562
29563 2010-11-11  Bruno Haible  <bruno@clisp.org>
29564
29565         fcntl-h: Fix for use of C++ on glibc systems.
29566         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29567         also on glibc systems in C++ mode.
29568         Reported by Gary V. Vaughan <gary@gnu.org>.
29569
29570 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29571
29572         mknod: avoid false failure with dash
29573         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29574
29575 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29576
29577         unlink: Fix "is it should" typo in diagnostic.
29578         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29579         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29580
29581 2010-11-11  Bruno Haible  <bruno@clisp.org>
29582
29583         Tests for module 'strerror_r-posix'.
29584         * modules/strerror_r-posix-tests: New file.
29585         * tests/test-strerror_r.c: New file.
29586         * tests/test-string-c++.cc: Check the signature of strerror_r.
29587
29588         New module 'strerror_r-posix'.
29589         * lib/string.in.h (strerror_r): New declaration.
29590         * lib/strerror_r.c: New file.
29591         * m4/strerror_r.m4: New file.
29592         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29593         of strerror_r.
29594         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29595         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29596         * modules/strerror_r-posix: New file.
29597         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29598         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29599         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29600         portability problems.
29601
29602 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29603
29604         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29605         line is also considered for output. Quoted function name in shell
29606         command, so temporary files for functions like MyClass::operator()
29607         are removed correctly without errors.
29608
29609 2010-11-09  Bruno Haible  <bruno@clisp.org>
29610
29611         * doc/posix-functions/strerror.texi: List more failing platforms.
29612
29613         * doc/posix-functions/strerror.texi: Add a comment.
29614
29615 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29616
29617         fdopendir: fix bug on MacOS X when low on file descriptors
29618
29619         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29620         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29621         All callers changed.
29622         (fdopendir): Invoke save_cwd at the top level, not after using
29623         multiple dup() calls to use up file descriptors.  Then retry
29624         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29625         less than the maximum number of open file descriptors, because
29626         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29627         on Mac OS X 10.6.4 for tar 1.24
29628         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29629         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29630         and for tar 1.25
29631         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29632
29633 2010-11-07  Bruno Haible  <bruno@clisp.org>
29634
29635         vasnprintf: Support I flag on glibc systems.
29636         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29637         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29638         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29639         snprintf function.
29640         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29641         glibc systems.
29642         * tests/test-vasnprintf-posix3.c: New file.
29643         * modules/vasnprintf-posix-tests (Files): Add it.
29644         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29645
29646 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29647
29648         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29649         * MODULES.html.sh: For compiler warnings, use name
29650         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29651
29652 2010-11-05  Eric Blake  <eblake@redhat.com>
29653
29654         ceil, floor: avoid spurious failure with icc
29655         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29656         [denormals-as-zero] when optimizing without -mieee-fp option.
29657         * tests/test-floorf2.c (floorf_reference): Likewise.
29658         * tests/test-ceilf1.c (dummy): New function.
29659         (main): Use it to outsmart icc's optimization.
29660         * tests/test-floorf1.c (dummy, main): Likewise.
29661
29662         tests: require working signbit
29663         * modules/ceilf-tests (Depends-on): Add signbit.
29664         * modules/ceill-tests (Depends-on): Likewise.
29665         * modules/floorf-tests (Depends-on): Likewise.
29666         * modules/floorl-tests (Depends-on): Likewise.
29667         * modules/round-tests (Depends-on): Likewise.
29668         * modules/roundf-tests (Depends-on): Likewise.
29669         * modules/roundl-tests (Depends-on): Likewise.
29670         * modules/trunc-tests (Depends-on): Likewise.
29671         * modules/truncf-tests (Depends-on): Likewise.
29672         * modules/truncl-tests (Depends-on): Likewise.
29673
29674         strtod: work around icc bug
29675         * lib/strtod.c (minus_zero): Define to working value.
29676         (strtod): Use it to avoid icc bug.
29677
29678         copysign: enhance tests
29679         * modules/copysign-tests (Files): Add minus-zero.h.
29680         * tests/test-copysign.c (main): Also test zeros.
29681
29682 2010-11-04  Eric Blake  <eblake@redhat.com>
29683
29684         ceil, floor, round, trunc: enhance tests of -0
29685         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29686         * tests/test-ceill.c (main): Likewise.
29687         * tests/test-floorf1.c (main): Likewise.
29688         * tests/test-floorl.c (main): Likewise.
29689         * tests/test-round1.c (main): Likewise.
29690         * tests/test-roundf1.c (main): Likewise.
29691         * tests/test-roundl.c (main): Likewise.
29692         * tests/test-trunc1.c (main): Likewise.
29693         * tests/test-truncf1.c (main): Likewise.
29694         * tests/test-truncl.c (main): Likewise.
29695
29696 2010-11-04  Eric Blake  <eblake@redhat.com>
29697
29698         frexp, tests: work around ICC bug with -zero
29699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29700         works with more compilers.
29701         * tests/minus-zero.h: New file.
29702         * modules/ceilf-tests (Files): Include it.
29703         * modules/ceill-tests (Files): Likewise.
29704         * modules/floorf-tests (Files): Likewise.
29705         * modules/floorl-tests (Files): Likewise.
29706         * modules/frexp-nolibm-tests (Files): Likewise.
29707         * modules/frexp-tests (Files): Likewise.
29708         * modules/frexpl-nolibm-tests (Files): Likewise.
29709         * modules/frexpl-tests (Files): Likewise.
29710         * modules/isnan-tests (Files): Likewise.
29711         * modules/isnand-nolibm-tests (Files): Likewise.
29712         * modules/isnand-tests (Files): Likewise.
29713         * modules/isnanf-nolibm-tests (Files): Likewise.
29714         * modules/isnanf-tests (Files): Likewise.
29715         * modules/isnanl-nolibm-tests (Files): Likewise.
29716         * modules/isnanl-tests (Files): Likewise.
29717         * modules/round-tests (Files): Likewise.
29718         * modules/roundf-tests (Files): Likewise.
29719         * modules/roundl-tests (Files): Likewise.
29720         * modules/ldexpl-tests (Files): Likewise.
29721         * modules/signbit-tests (Files): Likewise.
29722         * modules/snprintf-posix-tests (Files): Likewise.
29723         * modules/sprintf-posix-tests (Files): Likewise.
29724         * modules/strtod-tests (Files): Likewise.
29725         * modules/trunc-tests (Files): Likewise.
29726         * modules/truncf-tests (Files): Likewise.
29727         * modules/truncl-tests (Files): Likewise.
29728         * modules/vsnprintf-posix-tests (Files): Likewise.
29729         * modules/vsprintf-posix-tests (Files): Likewise.
29730         * modules/vasnprintf-posix-tests (Files): Likewise.
29731         * modules/vasprintf-posix-tests (Files): Likewise.
29732         * tests/test-ceilf1.c (main): Use it.
29733         * tests/test-ceill.c (main): Likewise.
29734         * tests/test-floorf1.c (main): Likewise.
29735         * tests/test-floorl.c (main): Likewise.
29736         * tests/test-frexp.c (main): Likewise.
29737         * tests/test-frexpl.c (main): Likewise.
29738         * tests/test-isnan.c (main): Likewise.
29739         * tests/test-isnand.h (main): Likewise.
29740         * tests/test-isnanf.h (main): Likewise.
29741         * tests/test-isnanl.h (main): Likewise.
29742         * tests/test-ldexpl.c (main): Likewise.
29743         * tests/test-round.c (main): Likewise.
29744         * tests/test-roundf.c (main): Likewise.
29745         * tests/test-roundl.c (main): Likewise.
29746         * tests/test-signbit.c (test_signbitf, test_signbitd)
29747         (test_signbitl): Likewise.
29748         * tests/test-snprintf-posix.h (test_function): Likewise.
29749         * tests/test-sprintf-posix.h (test_function): Likewise.
29750         * tests/test-strtod.c (main): Likewise.
29751         * tests/test-trunc1.c (main): Likewise.
29752         * tests/test-truncf1.c (main): Likewise.
29753         * tests/test-truncl.c (main): Likewise.
29754
29755         isnanl: work around icc bug
29756         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29757
29758 2010-11-03  Eric Blake  <eblake@redhat.com>
29759
29760         tests: fix compiler warnings
29761         * tests/test-getopt.h (test_getopt): Fix condition.
29762         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29763         * tests/test-pipe2.c (main): Likewise.
29764         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29765
29766         utimens: fix broken m4 test
29767         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29768
29769 2010-10-28  Bruno Haible  <bruno@clisp.org>
29770
29771         posix_spawn*, getdtablesize: Relax license.
29772         * modules/posix_spawn (License): Change to LGPLv2+.
29773         * modules/posix_spawnp (License): Likewise.
29774         * modules/posix_spawn-internal (License): Likewise.
29775         * modules/posix_spawnattr_init (License): Likewise.
29776         * modules/posix_spawnattr_getflags (License): Likewise.
29777         * modules/posix_spawnattr_setflags (License): Likewise.
29778         * modules/posix_spawnattr_getpgroup (License): Likewise.
29779         * modules/posix_spawnattr_setpgroup (License): Likewise.
29780         * modules/posix_spawnattr_getschedparam (License): Likewise.
29781         * modules/posix_spawnattr_setschedparam (License): Likewise.
29782         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29783         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29784         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29785         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29786         * modules/posix_spawnattr_getsigmask (License): Likewise.
29787         * modules/posix_spawnattr_setsigmask (License): Likewise.
29788         * modules/posix_spawnattr_destroy (License): Likewise.
29789         * modules/posix_spawn_file_actions_init (License): Likewise.
29790         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29791         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29792         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29793         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29794         * modules/getdtablesize (License): Likewise.
29795         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29796
29797 2010-10-26  Bruno Haible  <bruno@clisp.org>
29798
29799         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29800         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29801         Cygwin and mingw.
29802         Suggested by Eric Blake.
29803
29804 2010-10-26  Bruno Haible  <bruno@clisp.org>
29805
29806         stdio: Work around compilation error due to renameat() on Solaris 10.
29807         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29808         * lib/renameat.c: Don't include <unistd.h> here.
29809         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29810         Reported by Paul Eggert and Eric Blake.
29811
29812 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29813
29814         renameat: port to Solaris 10, which declares renameat in unistd.h
29815
29816         * lib/renameat.c: Include unistd.h before stdio.h, because
29817         Solaris 10 declares renameat in unistd.h.  Problem encountered
29818         when building GNU tar 1.24 on Solaris 10.
29819
29820 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29821
29822         fdopendir: fix C89 compilation
29823         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29824         compilers.
29825
29826 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29827
29828         inttostr: simplify by removing unnecessary redundancy
29829         * lib/anytostr.c: Don't include verify.h.
29830         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29831         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29832         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29833         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29834         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29835         Likewise.
29836         * modules/inttostr (Depends-on): Remove 'verify'.
29837
29838 2010-10-23  Bruno Haible  <bruno@clisp.org>
29839
29840         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29841         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29842         Reported by Eric Blake.
29843
29844 2010-10-23  Bruno Haible  <bruno@clisp.org>
29845
29846         Tests: Fix LOCALE_JA on MirBSD 10.
29847         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29848         to an UTF-8 locale.
29849         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29850         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29851         Reported by Eric Blake.
29852
29853 2010-10-21  Bruno Haible  <bruno@clisp.org>
29854
29855         nl_langinfo test: Avoid test failure on NetBSD 5.
29856         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29857         Reported by Eric Blake.
29858
29859 2010-10-21  Eric Blake  <eblake@redhat.com>
29860
29861         c-stack: work around libsigsegv 2.8 bug
29862         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29863         overflow on at least PowerPC64.
29864
29865 2010-10-17  Bruno Haible  <bruno@clisp.org>
29866
29867         userspec: Drop redundant file.
29868         * modules/userspec (Files): Remove lib/inttostr.h.
29869
29870 2010-10-17  Bruno Haible  <bruno@clisp.org>
29871
29872         nl_langinfo tests: Silence some warnings.
29873         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29874         Reported by Jim Meyering.
29875
29876 2010-10-17  Bruno Haible  <bruno@clisp.org>
29877
29878         Make use of GCC's attribute __alloc_size__.
29879         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29880         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29881         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29882         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29883         __alloc_size__.
29884         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29885         Suggested by Jim Meyering.
29886
29887 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29888
29889         bootstrap: anchor .gitignore entries.
29890         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29891         with...
29892         (insert_vc_ignore): ... this new function, which prepends `/' to
29893         all .gitignore entries before passing them to
29894         insert_sorted_if_absent.
29895
29896 2010-10-16  Bruno Haible  <bruno@clisp.org>
29897
29898         nextafter: Fix configure check.
29899         * modules/nextafter (configure.ac): Correct expected prototype.
29900
29901 2010-10-16  Bruno Haible  <bruno@clisp.org>
29902
29903         termios: Update documentation.
29904         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29905
29906 2010-10-16  Bruno Haible  <bruno@clisp.org>
29907
29908         tests: Make them compile with TinyCC.
29909         * tests/test-strstr.c (main): Remove parentheses around array
29910         initializer.
29911
29912 2010-10-15  Eric Blake  <eblake@redhat.com>
29913
29914         ignore-value: make header idempotent
29915         * lib/ignore-value.h: Add double-inclusion guards.
29916         Reported by Stefan Berger.
29917
29918 2010-10-15  Jim Meyering  <meyering@redhat.com>
29919
29920         GNUmakefile: handle "stable" target, not "major"
29921         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29922         lists in maint.mk and announce-gen.  Without this, "make stable"
29923         would fail to ensure that $(VERSION) is up to date.
29924
29925 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29926
29927         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29928         & co.
29929
29930 2010-10-14  Bruno Haible  <bruno@clisp.org>
29931
29932         vasnprintf: Don't set errno to 0.
29933         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29934         block that sets it to 0.
29935         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29936
29937 2010-10-14  Bruno Haible  <bruno@clisp.org>
29938
29939         socketlib: Fix.
29940         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29941         gl_PREREQ_SYS_H_WINSOCK2.
29942         Reported by Ian Beckwith <ianb@erislabs.net>.
29943
29944 2010-10-13  Jim Meyering  <meyering@redhat.com>
29945
29946         test-select-stdin.c: avoid warn_unused_result warnings
29947         * tests/test-select-stdin.c: Include "macros.h".
29948         ASSERT that read and fflush succeed.
29949
29950 2010-10-13  Jim Meyering  <meyering@redhat.com>
29951
29952         git-version-gen: do require git-VC'd files in cwd
29953         * build-aux/git-version-gen: Reject a git version string
29954         if there are no commits associated with the current directory.
29955         This avoids an unlikely false-positive (unrelated dir whose parent
29956         repository also contains a tag matching v*), as pointed out
29957         by Giuseppe Scrivano in
29958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29959
29960 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29961
29962         argv-iter: omit nonconforming declaration
29963         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29964         enum arg_iter_err declaration, which doesn't conform to C99.
29965         Solaris 10 cc warns about this.
29966
29967 2010-10-13  Eric Blake  <eblake@redhat.com>
29968
29969         termios: fix compilation on mingw
29970         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29971         (gl_TERMIOS_H): Adjust it on mingw.
29972         * modules/termios (Makefile.am): Substitute new key.
29973         * lib/termios.in.h (includes): Make include_next conditional.
29974         * doc/posix-headers/termios.texi (termios.h): Update
29975         documentation.
29976         Reported by Daniel P. Berrange.
29977
29978 2010-10-13  Jim Meyering  <meyering@redhat.com>
29979
29980         git-version-gen: don't require that .git/ be in the current dir
29981         * build-aux/git-version-gen: Adjust this script so that it works
29982         when run from any working directory beneath the top-level .git/-
29983         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29985
29986         test-select: avoid warn_unused_result warnings
29987         * tests/test-select.c: Include "macros.h".
29988         ASSERT that each call to read, write, and pipe succeeds.
29989         While not technically required, also check each "close".
29990         * modules/select-tests (Files): Add tests/macros.h.
29991
29992         test-symlinkat: remove declaration of unused local
29993         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29994
29995         test-inttostr: avoid shadowing warnings
29996         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29997         and use malloc rather than the stack for the same reason as
29998         mentioned in the comment justifying the other allocation.
29999
30000 2010-10-11  Bruno Haible  <bruno@clisp.org>
30001
30002         stdlib: Allow multiple gnulib generated replacements to coexist.
30003         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30004         Reported by Sam Steingold <sds@gnu.org>.
30005
30006 2010-10-11  Jim Meyering  <meyering@redhat.com>
30007
30008         fix a documentation typo
30009         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30010
30011 2010-10-11  Eric Blake  <eblake@redhat.com>
30012
30013         futimens: work around Solaris 11 bug
30014         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30015         * tests/test-futimens.h (test_futimens): Enhance, rather than
30016         weaken test.
30017         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30018
30019 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30020
30021         Indentation.
30022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30023         higher-level operators more to the left.
30024
30025 2010-10-11  Jim Meyering  <meyering@redhat.com>
30026
30027         test-futimens: avoid unwarranted test failure on Solaris 5.11
30028         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30029         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30030         because it tries to dereference the NULL name argument.
30031
30032 2010-10-11  Bruno Haible  <bruno@clisp.org>
30033
30034         Indentation.
30035         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30036         indentation.
30037
30038 2010-10-11  Jim Meyering  <meyering@redhat.com>
30039
30040         spawn.in.h: make indentation consistent with parentheses
30041         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30042         Make indentation consistent with parentheses.
30043
30044 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30045
30046         Fix mismatched parens in previous commit
30047         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30048         parens.
30049
30050 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30051
30052         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30053
30054         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30055         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30056         * lib/malloca.c: Include "verify.h".
30057         (verify1): Remove, replacing with a verify call.
30058         * lib/relocwrapper.c (verify1): Likewise.
30059         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30060         Likewise.
30061         * modules/malloca (Depends-on): Add 'verify'.
30062         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30063         * modules/vasnprintf (Depends-on): Add 'verify'.
30064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30071
30072         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30073
30074         Formerly the style was sometimes 2*X - 1, because the C standard
30075         was wrongly thought to disallow ?: in integral constant expressions.
30076         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30077         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30078         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30079         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30080         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30081         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30082         verify that time_t cannot be floating.
30083
30084 2010-10-08  Eric Blake  <eblake@redhat.com>
30085
30086         time: enforce recent POSIX ruling that time_t is integral
30087         * lib/time.in.h (__time_t_must_be_integral): Detect any
30088         problematic systems, allowing the rest of gnulib to assume POSIX.
30089
30090 2010-10-08  Jim Meyering  <meyering@redhat.com>
30091
30092         fdopendir: fix a bug on systems lacking openat and /proc support
30093         OpenBSD 4.7 is one such system.  The most noticeable effect was
30094         failure of any application making nontrivial use of fts: rm, du,
30095         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30096           ./rm: traversal failed: `a': Bad file descriptor
30097         Debugging that, you see that even though FD 6 was closed just
30098         prior to the opendir call in fd_clone_opendir, its resulting
30099         dir->dd_fd was 8, rather than the expected value of 6:
30100
30101         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30102         93                close (fd);
30103         (gdb) n
30104         94                dir = fd_clone_opendir (dupfd);
30105         (gdb) n
30106         95                saved_errno = errno;
30107         (gdb) p dir->dd_fd
30108         $11 = 8
30109
30110         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30111         The problem is that on OpenBSD, fd_clone_opendir has to resort
30112         to using the old-style save/restore CWD mechanism, due to its
30113         lack of openat/proc support, and *that* would steal the FD (6)
30114         that opendir was supposed to use.
30115
30116         The fix is to squirrel away the desired FD so that save_cwd uses a
30117         different one, and then free the dest FD right before calling opendir.
30118         That guarantees opendir will use the required file descriptor.
30119
30120         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30121
30122 2010-10-08  Bruno Haible  <bruno@clisp.org>
30123
30124         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30125         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30126
30127 2010-10-08  Bruno Haible  <bruno@clisp.org>
30128
30129         nanosleep: Make replacement POSIX compliant.
30130         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30131         is out of range.
30132         Reported by Jim Meyering.
30133
30134 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         bootstrap: add hook for altering gnulib.mk, for Bison
30137         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30138         the Bison bootstrapping process can rewrite file names and variables
30139         in this file before later parts of 'bootstrap' use the file.
30140         Bison wants to include lib/gnulib.mk from the top-level makefile,
30141         so it needs the file names in this file to be relative to the top
30142         level, not relative to lib; plus it needs variable names to be
30143         rewritten.
30144         (slurp): Use the new function.
30145
30146         bootstrap: reformat for readability
30147         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30148
30149 2010-10-08  Eric Blake  <eblake@redhat.com>
30150
30151         docs: update cygwin progress
30152         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30153         1.7.7.
30154         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30155         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30156         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30157         * doc/posix-functions/carg.texi (carg): Likewise.
30158         * doc/posix-functions/cargf.texi (cargf): Likewise.
30159         * doc/posix-functions/casin.texi (casin): Likewise.
30160         * doc/posix-functions/casinf.texi (casinf): Likewise.
30161         * doc/posix-functions/casinh.texi (casinh): Likewise.
30162         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30163         * doc/posix-functions/catan.texi (catan): Likewise.
30164         * doc/posix-functions/catanf.texi (catanf): Likewise.
30165         * doc/posix-functions/catanh.texi (catanh): Likewise.
30166         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30167         * doc/posix-functions/ccos.texi (ccos): Likewise.
30168         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30169         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30170         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30171         * doc/posix-functions/cexp.texi (cexp): Likewise.
30172         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30173         * doc/posix-functions/cimag.texi (cimag): Likewise.
30174         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30175         * doc/posix-functions/clog.texi (clog): Likewise.
30176         * doc/posix-functions/clogf.texi (clogf): Likewise.
30177         * doc/posix-functions/conj.texi (conj): Likewise.
30178         * doc/posix-functions/conjf.texi (conjf): Likewise.
30179         * doc/posix-functions/cpow.texi (cpow): Likewise.
30180         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30181         * doc/posix-functions/cproj.texi (cproj): Likewise.
30182         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30183         * doc/posix-functions/creal.texi (creal): Likewise.
30184         * doc/posix-functions/crealf.texi (crealf): Likewise.
30185         * doc/posix-functions/csin.texi (csin): Likewise.
30186         * doc/posix-functions/csinf.texi (csinf): Likewise.
30187         * doc/posix-functions/csinh.texi (csinh): Likewise.
30188         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30189         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30190         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30191         * doc/posix-functions/ctan.texi (ctan): Likewise.
30192         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30193         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30194         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30195         * doc/posix-headers/complex.texi (complex.h): Likewise.
30196
30197 2010-10-07  Jim Meyering  <meyering@redhat.com>
30198
30199         parse-datetime: avoid compilation failure on OpenBSD 4.7
30200         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30201         This works around a compilation failure on OpenBSD 4.7:
30202         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30203
30204 2010-10-07  Eric Blake  <eblake@redhat.com>
30205
30206         docs: update cygwin progress
30207         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30208         1.7.6.
30209         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30210         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30211         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30212         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30213         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30214         Likewise.
30215         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30216         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30217         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30218         Likewise.
30219         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30220         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30221         Likewise.
30222         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30223         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30224         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30225         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30226         Likewise.
30227         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30228         Likewise.
30229         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30230
30231         docs: update parse-datetime history
30232         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30233         documentation of this function's history and alternatives.
30234
30235         cygwin: use more robust version check
30236         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30237         exclude an eventual cygwin 1.9.1.
30238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30240         (gl_FUNC_STRCASESTR): Likewise.
30241         Reported by Bruno Haible.
30242
30243 2010-10-06  Bruno Haible  <bruno@clisp.org>
30244
30245         string, sys_select: Avoid #including large headers unless necessary.
30246         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30247         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30248         OSF/1, BeOS, Haiku.
30249         Reported by Jim Meyering.
30250
30251 2010-10-05  Eric Blake  <eblake@redhat.com>
30252
30253         memmem, strstr, strcasestr: fix bug with long periodic needle
30254         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30255         periodic needle having false positive.
30256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30257         and cygwin 1.7.7.
30258         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30260         (gl_FUNC_STRCASESTR): Likewise.
30261         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30262         * tests/test-memmem.c (main): Expose the bug.
30263         * tests/test-strcasestr.c (main): Likewise.
30264         * tests/test-strstr.c (main): Likewise.
30265         * tests/test-c-strcasestr.c (main): Likewise.
30266         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30267         * doc/posix-functions/strstr.texi (strstr): Likewise.
30268         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30269         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30270
30271 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30272
30273         parse-datetime: do some more renaming
30274         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30275         parse_datetime, not get_date.  Mention the renaming.
30276         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30277         in comments.
30278         * m4/bison.m4: Likewise.
30279
30280 2010-10-05  Eric Blake  <eblake@redhat.com>
30281
30282         parse-datetime: better name than get_date
30283         * NEWS: Reword the deprecation notice.
30284         * modules/get_date: Rename to modules/parse-datetime.
30285         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30286         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30287         * lib/get_date.y: Rename to lib/parse-datetime.y.
30288         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30289         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30290         * doc/getdate.texi: Provide fallback wrapper.
30291         * lib/getdate.h: Move guts, and wrap...
30292         * lib/parse-datetime.h: ...new file.
30293         * lib/parse-datetime.y (get_date): Rename...
30294         (parse_datetime): ...to this.
30295         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30296         (gl_PARSE_DATETIME): ...to this.
30297         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30298         documentation.
30299         * modules/getdate (Files): Provide fallback docs and header.
30300         (Notice, Depends-on): Update references.
30301         * tests/test-parse-datetime.c: Likewise.
30302         * DEPENDENCIES: Likewise.
30303         * MODULES.html.sh (Date and time <time.h>): Likewise.
30304         * doc/parse-datetime.texi (Date input formats)
30305         (Authors of parse_datetime): Likewise.
30306         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30307         (Include): Likewise.
30308         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30309         * gnulib-tool: Likewise.
30310         * m4/bison.m4 (gl_BISON): Likewise.
30311         Suggested by Bruno Haible.
30312
30313 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30314
30315         more ports to Solaris tr, which needs [] around ranges
30316         * gnulib-tool: Solaris tr needs [] around ranges.
30317         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30318         * tests/test-pipe-filter-gi1.c (main): Likewise.
30319         * tests/test-pipe-filter-ii1.c (main): Likewise.
30320
30321 2010-10-05  Eric Blake  <eblake@redhat.com>
30322
30323         bootstrap: fix Solaris regression
30324         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30325         around ranges.
30326         Reported by Pádraig Brady.
30327
30328         bootstrap: work with pkg-config
30329         * build-aux/bootstrap (check_versions): Also transliterate - in
30330         prerequisite name.
30331         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30332         prerequisites that were already found, to avoid confusion.
30333         Reported by Justin Clift.
30334
30335         faccessat: remove unused wrappers
30336         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30337         presence of these wrappers dragged in -lgen on Solaris.
30338         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30339
30340 2010-10-05  Jim Meyering  <meyering@redhat.com>
30341
30342         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30343         * Makefile (sc_pragma_columns): New syntax-check rule.
30344
30345 2010-10-04  Bruno Haible  <bruno@clisp.org>
30346
30347         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30348         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30349         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30350         Reported by Bruce Korb and Eric Blake.
30351
30352 2010-10-04  Bruno Haible  <bruno@clisp.org>
30353
30354         threadlib: Make option --with-libpth-prefix work.
30355         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30356         use $LIBPTH, not just -lpth.
30357
30358 2010-10-04  Bruno Haible  <bruno@clisp.org>
30359
30360         Avoid line length limitation from HP NonStop system header files.
30361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30362         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30363         * lib/ctype.in.h: Likewise.
30364         * lib/dirent.in.h: Likewise.
30365         * lib/errno.in.h: Likewise.
30366         * lib/fcntl.in.h: Likewise.
30367         * lib/float.in.h: Likewise.
30368         * lib/getopt.in.h: Likewise.
30369         * lib/iconv.in.h: Likewise.
30370         * lib/inttypes.in.h: Likewise.
30371         * lib/langinfo.in.h: Likewise.
30372         * lib/locale.in.h: Likewise.
30373         * lib/math.in.h: Likewise.
30374         * lib/netdb.in.h: Likewise.
30375         * lib/netinet_in.in.h: Likewise.
30376         * lib/poll.in.h: Likewise.
30377         * lib/pthread.in.h: Likewise.
30378         * lib/pty.in.h: Likewise.
30379         * lib/sched.in.h: Likewise.
30380         * lib/se-selinux.in.h: Likewise.
30381         * lib/search.in.h: Likewise.
30382         * lib/signal.in.h: Likewise.
30383         * lib/spawn.in.h: Likewise.
30384         * lib/stdarg.in.h: Likewise.
30385         * lib/stddef.in.h: Likewise.
30386         * lib/stdint.in.h: Likewise.
30387         * lib/stdio.in.h: Likewise.
30388         * lib/stdlib.in.h: Likewise.
30389         * lib/string.in.h: Likewise.
30390         * lib/strings.in.h: Likewise.
30391         * lib/sys_file.in.h: Likewise.
30392         * lib/sys_ioctl.in.h: Likewise.
30393         * lib/sys_select.in.h: Likewise.
30394         * lib/sys_socket.in.h: Likewise.
30395         * lib/sys_stat.in.h: Likewise.
30396         * lib/sys_time.in.h: Likewise.
30397         * lib/sys_times.in.h: Likewise.
30398         * lib/sys_utsname.in.h: Likewise.
30399         * lib/sys_wait.in.h: Likewise.
30400         * lib/sysexits.in.h: Likewise.
30401         * lib/termios.in.h: Likewise.
30402         * lib/time.in.h: Likewise.
30403         * lib/unistd.in.h: Likewise.
30404         * lib/wchar.in.h: Likewise.
30405         * lib/wctype.in.h: Likewise.
30406         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30407         * modules/ctype (Makefile.am): Likewise.
30408         * modules/dirent (Makefile.am): Likewise.
30409         * modules/errno (Makefile.am): Likewise.
30410         * modules/fcntl-h (Makefile.am): Likewise.
30411         * modules/float (Makefile.am): Likewise.
30412         * modules/getopt-posix (Makefile.am): Likewise.
30413         * modules/iconv-h (Makefile.am): Likewise.
30414         * modules/inttypes (Makefile.am): Likewise.
30415         * modules/langinfo (Makefile.am): Likewise.
30416         * modules/locale (Makefile.am): Likewise.
30417         * modules/math (Makefile.am): Likewise.
30418         * modules/netdb (Makefile.am): Likewise.
30419         * modules/netinet_in (Makefile.am): Likewise.
30420         * modules/poll-h (Makefile.am): Likewise.
30421         * modules/pthread (Makefile.am): Likewise.
30422         * modules/pty (Makefile.am): Likewise.
30423         * modules/sched (Makefile.am): Likewise.
30424         * modules/search (Makefile.am): Likewise.
30425         * modules/selinux-h (Makefile.am): Likewise.
30426         * modules/signal (Makefile.am): Likewise.
30427         * modules/spawn (Makefile.am): Likewise.
30428         * modules/stdarg (Makefile.am): Likewise.
30429         * modules/stddef (Makefile.am): Likewise.
30430         * modules/stdint (Makefile.am): Likewise.
30431         * modules/stdio (Makefile.am): Likewise.
30432         * modules/stdlib (Makefile.am): Likewise.
30433         * modules/string (Makefile.am): Likewise.
30434         * modules/strings (Makefile.am): Likewise.
30435         * modules/sys_file (Makefile.am): Likewise.
30436         * modules/sys_ioctl (Makefile.am): Likewise.
30437         * modules/sys_select (Makefile.am): Likewise.
30438         * modules/sys_socket (Makefile.am): Likewise.
30439         * modules/sys_stat (Makefile.am): Likewise.
30440         * modules/sys_time (Makefile.am): Likewise.
30441         * modules/sys_times (Makefile.am): Likewise.
30442         * modules/sys_utsname (Makefile.am): Likewise.
30443         * modules/sys_wait (Makefile.am): Likewise.
30444         * modules/sysexits (Makefile.am): Likewise.
30445         * modules/termios (Makefile.am): Likewise.
30446         * modules/time (Makefile.am): Likewise.
30447         * modules/unistd (Makefile.am): Likewise.
30448         * modules/wchar (Makefile.am): Likewise.
30449         * modules/wctype (Makefile.am): Likewise.
30450
30451 2010-10-04  Bruno Haible  <bruno@clisp.org>
30452
30453         read-file tests: Avoid a test failure on NonStop Kernel.
30454         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30455         a regular file.
30456         Reported by Joachim Schmitz <schmitz@hp.com>.
30457
30458 2010-10-03  Bruno Haible  <bruno@clisp.org>
30459
30460         gnulib-tool: Fixes for --create-testdir with --libtool.
30461         * gnulib-tool (func_get_automake_snippet): Don't augment
30462         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30463         an executable.
30464         (func_create_testdir): Handle module 'alloca' like func_import.
30465         Reported by Bruce Korb <bruce.korb@gmail.com>.
30466
30467 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30468
30469         Avoid some lines longer than 80 characters.
30470         * lib/stdint.in.h: Break long comment lines.
30471         * lib/math.in.h: Likewise.
30472         (_GL_NUM_UINT_WORDS): New macro, for readability.
30473         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30474         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30475         * lib/stdlib.in.h: Likewise.
30476         * lib/spawn.in.h: Likewise.
30477         * lib/sys_socket.in.h: Update an URL.
30478         * lib/sys_stat.in.h: Break long line.
30479
30480 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30481
30482         Improve pmccabe2html.
30483         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30484         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30485         when the sources change. Remove the line in the HTML about "Used
30486         ranges" (which implied that there might be other unused ranges),
30487         rename "Resume" to "Summary" (easier to understand for more users).
30488         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30489         styles, and some unnecessary blank lines.
30490
30491 2010-10-03  Bruno Haible  <bruno@clisp.org>
30492             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30493
30494         acl: Add support for ACLs on NonStop Kernel.
30495         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30496         Check whether the function aclsort() exists.
30497         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30498         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30499         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30500         (acl_nontrivial [HAVE_ACLSORT]: New function.
30501         (file_has_acl): Implement for NonStop Kernel.
30502         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30503         (qset_acl): Implement for NonStop Kernel.
30504         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30505         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30506         (main): Implement for NonStop Kernel.
30507         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30508         Kernel. Handle this flavor.
30509         * tests/test-set-mode-acl.sh: Likewise.
30510         * tests/test-copy-acl.sh: Likewise.
30511         * tests/test-copy-file.sh: Likewise.
30512
30513 2010-10-03  Bruno Haible  <bruno@clisp.org>
30514
30515         Info about ACLs on NonStop Kernel.
30516         * doc/acl-resources.txt: Add info about NonStop Kernel.
30517         References by Joachim Schmitz <schmitz@hp.com>.
30518
30519 2010-10-02  Bruno Haible  <bruno@clisp.org>
30520
30521         Define missing EDQUOT on NonStop Kernel.
30522         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30523         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30524         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30525         missing.
30526         * doc/posix-headers/errno.texi: Mention the NSK bug.
30527         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30528         Reported by Joachim Schmitz <schmitz@hp.com>.
30529
30530 2010-10-02  Bruno Haible  <bruno@clisp.org>
30531
30532         Update doc for POSIX:2008.
30533         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30534         Update URL of POSIX specification.
30535
30536 2010-10-02  Bruno Haible  <bruno@clisp.org>
30537
30538         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30539         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30540         from gnulib, not from Automake.
30541
30542 2010-10-02  Bruno Haible  <bruno@clisp.org>
30543
30544         New module 'system-posix'.
30545         * modules/system-posix: New file.
30546         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30547         module is present.
30548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30549         GNULIB_SYSTEM_POSIX.
30550         * modules/stdlib (Depends-on): Remove sys_wait.
30551         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30552         * doc/posix-functions/system.texi: Mention the new module.
30553         * doc/posix-headers/stdlib.texi: Likewise.
30554         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30555         define test_sys_wait_macros to a no-op.
30556         Reported by Sam Steingold <sds@gnu.org>.
30557
30558 2010-09-30  Bruno Haible  <bruno@clisp.org>
30559
30560         More renaming from 'getdate' to 'get_date'.
30561         * doc/get_date.texi: Renamed from doc/getdate.texi.
30562         * modules/get_date (Files): Update.
30563         * MODULES.html.sh (Date and time <time.h>): Update.
30564         * DEPENDENCIES: Update.
30565         * gnulib-tool: Update comment.
30566         * m4/bison.m4 (gl_BISON): Likewise.
30567         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30568
30569 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30570
30571         bootstrap: support ACLOCAL_FLAGS during aclocal
30572         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30573         can add additional -I dir for third-party .m4 files.
30574
30575 2010-09-30  Eric Blake  <eblake@redhat.com>
30576
30577         bootstrap: use glibtoolize on MacOS
30578         * build-aux/bootstrap (check_versions): Convert libtool into
30579         libtoolize.
30580         (tool search): Move libtool check earlier, and look for
30581         glibtoolize for MacOS.
30582         (gnulib_tool_options): Auto-add --libtool when appropriate.
30583         Reported by Justin Clift.
30584
30585         poll: fix typo that broke test on MacOS
30586         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30587         Reported by Justin Clift.
30588
30589         getdate: rename to get_date
30590         Note: getdate.h is not renamed, to minimize client impact.
30591         * modules/getdate: Mark obsolete.  Move old contents...
30592         * modules/get_date: ...to new module name.
30593         * modules/getdate-tests: Move...
30594         * modules/get_date-tests: ...here.
30595         * m4/getdate.m4: Move...
30596         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30597         * lib/getdate.y: Move...
30598         * lib/get_date.y: ...here.
30599         * tests/test-getdate.c: Move...
30600         * tests/test-get_date.c: ...here.
30601         * doc/posix-functions/getdate.texi (getdate): Update name.
30602         * NEWS: Mention the change.
30603
30604 2010-09-29  Bruno Haible  <bruno@clisp.org>
30605
30606         Separate the module 'waitpid' from the module 'sys_wait'.
30607         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30608         present.
30609         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30610         gl_MODULE_INDICATOR_FOR_TESTS.
30611         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30612         * modules/sys_wait (Depends-on): Remove waitpid.
30613         (Makefile.am): Substitute GNULIB_WAITPID.
30614         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30615         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30616         signature only if the 'waitpid' module is present.
30617         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30618         * NEWS: Mention the change.
30619         * modules/grantpt (Depends-on): Add waitpid.
30620         * modules/wait-process (Depends-on): Likewise.
30621
30622 2010-09-29  Bruno Haible  <bruno@clisp.org>
30623
30624         More tests for module 'sys_wait'.
30625         * modules/sys_wait-c++-tests: New file.
30626         * tests/test-sys_wait-c++.cc: New file.
30627         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30628         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30629
30630 2010-09-29  Bruno Haible  <bruno@clisp.org>
30631
30632         New module 'waitpid'.
30633         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30634         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30635         Don't include <process.h>.
30636         (waitpid): Declare only, using modern idiom.
30637         * m4/waitpid.m4: New file.
30638         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30639         * modules/waitpid: New file.
30640         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30641         (Makefile.am): Update.
30642         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30643
30644 2010-09-28  Bruno Haible  <bruno@clisp.org>
30645
30646         poll: Assume ANSI C.
30647         * lib/poll.c (poll): Use an ANSI C declaration.
30648
30649 2010-09-28  Bruno Haible  <bruno@clisp.org>
30650
30651         poll-h: Create poll.h on all platforms.
30652         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30653         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30654         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30655         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30656         (gl_REPLACE_POLL_H): Don't set POLL_H.
30657         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30658         * modules/poll-h (Depends-on): Add include_next.
30659         (Makefile.am): Create poll.h unconditionally. Substitute also
30660         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30661
30662 2010-09-28  Bruno Haible  <bruno@clisp.org>
30663
30664         Tests for module 'poll-h'.
30665         * modules/poll-h-c++-tests: New file.
30666         * tests/test-poll-h-c++.cc: New file.
30667
30668         Tests for module 'poll-h'.
30669         * modules/poll-h-tests: New file.
30670         * tests/test-poll-h.c: New file.
30671
30672 2010-09-28  Bruno Haible  <bruno@clisp.org>
30673
30674         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30675         * modules/poll-h (Depends-on): Add 'extensions'.
30676
30677 2010-09-28  Bruno Haible  <bruno@clisp.org>
30678
30679         New module 'poll-h'.
30680         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30681         (poll): Use modern idiom.
30682         * modules/poll-h: New file.
30683         * modules/poll (Files): Remove lib/poll.in.h.
30684         (Depends-on): Add poll-h.
30685         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30686         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30687         * m4/poll_h.m4: New file.
30688         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30689         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30690         and invoke gl_REPLACE_POLL_H.
30691         * lib/poll.c: Use common idiom.
30692         * tests/test-poll.c: Likewise.
30693         * doc/posix-headers/poll.texi: Mention the poll-h module.
30694         Suggested by Eric Blake.
30695
30696 2010-09-26  Bruno Haible  <bruno@clisp.org>
30697
30698         sys_wait: Implement WSTOPSIG.
30699         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30700         Reported by Simon Josefsson.
30701
30702 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30703
30704         stdlib, sys_wait: Avoid compilation error on mingw.
30705         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30706
30707 2010-09-26  Bruno Haible  <bruno@clisp.org>
30708
30709         stdlib tests: Avoid code duplication.
30710         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30711         * modules/sys_wait-tests (Files): Likewise.
30712         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30713         * tests/test-stdlib.c: Include test-sys_wait.h.
30714         (main): Invoke test_sys_wait_macros.
30715         * tests/test-sys_wait.c: Include test-sys_wait.h.
30716         (main): Invoke test_sys_wait_macros.
30717
30718 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30719
30720         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30721         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30722         sure Windows sockets are working before calling getaddrinfo.
30723         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30724         * doc/gnulib.texi (Windows sockets): Fix typo.
30725
30726 2010-09-25  Bruno Haible  <bruno@clisp.org>
30727
30728         Tests for module 'regex-quote'.
30729         * modules/regex-quote-tests: New file.
30730         * tests/test-regex-quote.c: New file.
30731
30732         New module 'regex-quote'.
30733         * lib/regex-quote.h: New file.
30734         * lib/regex-quote.c: New file.
30735         * modules/regex-quote: New file.
30736         Suggested by Reuben Thomas <rrt@sc3d.org>.
30737
30738 2010-09-24  Bruno Haible  <bruno@clisp.org>
30739
30740         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30741         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30742
30743 2010-09-23  Bruno Haible  <bruno@clisp.org>
30744
30745         setenv: Relax license.
30746         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30747         Blake.
30748         Requested by Eric Blake.
30749
30750 2010-09-22  Bruno Haible  <bruno@clisp.org>
30751
30752         termios: Relax license.
30753         * modules/termios (License): Change to LGPLv2+.
30754         Requested by Eric Blake.
30755
30756 2010-09-22  Bruno Haible  <bruno@clisp.org>
30757
30758         threadlib: Allow the package to change the default to 'no'.
30759         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30760         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30761         Reported by Paul Eggert.
30762
30763 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30764             Bruno Haible  <bruno@clisp.org>
30765
30766         Fix endless loop in mbmemcasecoll.
30767         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30768         byte.
30769         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30770
30771 2010-09-22  Bruno Haible  <bruno@clisp.org>
30772
30773         Tests for module 'memcoll'.
30774         * modules/memcoll-tests: New file.
30775         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30776
30777         memcoll, xmemcoll: Clarify size vs. length.
30778         * modules/memcoll.c (memcoll0): Clarify specification.
30779         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30780         passed to collate_error.
30781
30782 2010-09-22  Bruno Haible  <bruno@clisp.org>
30783
30784         Tests for module 'memcasecmp'.
30785         * modules/memcasecmp-tests: New file.
30786         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30787
30788 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30789
30790         * lib/pthread.in.h: Add split double-inclusion guard, and include
30791         system <pthread.h> if there is one.  Use @@-style as in other
30792         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30793         pthread.h doesn't.
30794         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30795         (pthread_mutexattr_settype, pthread_mutex_trylock):
30796         New static inline functions, if there's no system <pthread.h>.
30797         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30798         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30799         Approximate with mutexes if the system lacks spinlocks, as in
30800         MacOS.
30801         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30802         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30803         @@-style.  Check for spinlocks separately.
30804         (gl_PTHREAD_DEFAULTS): New macro.
30805         * modules/pthread: Redo to use a more typical style for in.h files.
30806
30807 2010-09-21  Eric Blake  <eblake@redhat.com>
30808
30809         net_if: enhance tests
30810         * tests/test-net_if.c (main): Move signature checks earlier.
30811         Print failures to stderr.
30812         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30813         Document the bug that we do not yet fix.
30814
30815 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30816
30817         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30818         about gnulib, not GSS.
30819
30820 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30821
30822         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30823         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30824         for Emacs.
30825         * build-aux/pmccabe2html: Make Makefile.am example code more
30826         cut-and-paste friendly.
30827
30828 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30829
30830         * tests/test-net_if.c: New file.
30831         * modules/net_if-tests: New file.
30832
30833 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30834
30835         pthread: add pthread_spin_destroy
30836         * lib/pthread.in.h (pthread_spin_destroy): New function.
30837
30838 2010-09-19  Bruno Haible  <bruno@clisp.org>
30839
30840         gnulib-tool: Fix --help output.
30841         * gnulib-tool (func_usage): Fix help message.
30842         Reported by Reuben Thomas <rrt@sc3d.org>.
30843
30844 2010-09-18  Jim Meyering  <meyering@redhat.com>
30845
30846         maint.mk: avoid unexpanded \n in two diagnostics
30847         * top/maint.mk (sc_prohibit_always_true_header_tests):
30848         Don't use a literal \n in a halt=... assignment.  It would not be
30849         expanded, and the two \n bytes would appear in the diagnostic output
30850         rather than the desired newline.  Use halt=$$(printf ... instead.
30851         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30852
30853 2010-09-18  Bruno Haible  <bruno@clisp.org>
30854
30855         netinet_in: Doc tweak.
30856         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30857         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30858
30859 2010-09-18  Jim Meyering  <meyering@redhat.com>
30860
30861         init.sh: correct an outdated comment
30862         * tests/init.sh (create_exe_shims_):  s/function/alias/
30863
30864         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30865         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30866         a file named "*.exe" is removed between the glob expansion and the
30867         processing of that oddly named file.
30868
30869 2010-09-17  Eric Blake  <eblake@redhat.com>
30870
30871         mirbsd: add some more support
30872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30873         in BSD family.
30874         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30875         devices as OpenBSD.
30876         * m4/host-os.m4 (mirbsd): Add MirBSD.
30877
30878         tests: fix unportable assumption on sys/wait.h
30879         * tests/test-sys_wait.c (main): Relax test.
30880         * tests/test-stdlib.c (main): Likewise.
30881
30882         init.sh: accommodate directory with no .exes
30883         * tests/init.sh: Accomodate directory containing only scripts.
30884
30885         tests: avoid compiler warning
30886         * tests/test-stdlib.c (main): Use the variable.
30887
30888         fdutimens, fdutimensat: update signature, again
30889         * lib/utimens.h (gl_futimens): Delete, and move signature...
30890         (fdutimens): ...here.
30891         (fdutimensat): Rearrange signature.
30892         (lutimensat): Rename variable for clarity.
30893         * lib/fdutimensat.c (fdutimensat): Update signature.
30894         * lib/utimens.c (fdutimens): Likewise.
30895         (gl_futimens): Delete.
30896         (utimens, lutimens): Update callers.
30897         * lib/futimens.c (futimens): Likewise.
30898         * tests/test-fdutimensat.c: Likewise.
30899         * tests/test-utimens.c: Likewise.
30900         * tests/test-futimens.h: Update comment.
30901         * NEWS: Mention this.
30902         Suggested by Paul Eggert.
30903
30904 2010-09-17  Bruno Haible  <bruno@clisp.org>
30905
30906         Take over the maintenance of some older macros from Autoconf.
30907         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30908         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30909         GNU Autoconf.
30910         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30911         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30912
30913 2010-09-17  Eric Blake  <eblake@redhat.com>
30914
30915         fdutimensat: drop atflag validation
30916         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30917         with valid fd, to close a race scenario where futimens is
30918         unsupported and FILE was replaced by a symlink.
30919         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30920         accordingly.
30921         Suggested by Paul Eggert.
30922
30923 2010-09-16  Bruno Haible  <bruno@clisp.org>
30924
30925         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30926         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30927
30928 2010-09-16  Bruno Haible  <bruno@clisp.org>
30929
30930         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30931         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30932         login_tty exists.
30933         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30934
30935 2010-09-16  Bruno Haible  <bruno@clisp.org>
30936
30937         login_tty: Make the replacement code work on BSD systems.
30938         * lib/login_tty.c: Include <sys/ioctl.h>.
30939         (login_tty): Use ioctl TIOCSCTTY when available.
30940         * modules/login_tty (Depends-on): Add sys_ioctl.
30941         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30942
30943 2010-09-16  Bruno Haible  <bruno@clisp.org>
30944
30945         login_tty: Stricter unit test.
30946         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30947         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30948         and tcgetsid() after login_tty.
30949         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30950
30951 2010-09-16  Bruno Haible  <bruno@clisp.org>
30952
30953         New module 'tcgetsid'.
30954         * lib/tcgetsid.c: New file.
30955         * m4/tcgetsid.m4: New file.
30956         * modules/tcgetsid: New file.
30957         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30958         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30959         GNULIB_TCGETSID, HAVE_TCGETSID.
30960         * lib/termios.in.h: Include <sys/types.h>.
30961         (tcgetsid): New declaration.
30962         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30963         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30964         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30965         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30966
30967 2010-09-16  Bruno Haible  <bruno@clisp.org>
30968
30969         Tests for module 'termios'.
30970         * modules/termios-c++-tests: New file.
30971         * modules/termios-tests: New file.
30972         * tests/test-termios-c++.cc: New file.
30973         * tests/test-termios.c: New file.
30974
30975         New module 'termios'.
30976         * modules/termios: New file.
30977         * lib/termios.in.h: New file.
30978         * m4/termios_h.m4: New file.
30979         * doc/posix-headers/termios.texi: Mention the new module.
30980
30981 2010-09-16  Eric Blake  <eblake@redhat.com>
30982
30983         fdutimensat: add an atflag parameter
30984         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30985         * lib/utimens.h (fdutimensat): Update prototype.
30986         * tests/test-fdutimensat.c: Adjust test to match.
30987         * NEWS: Document the change.
30988         Suggested by Paul Eggert.
30989
30990 2010-09-16  Bruno Haible  <bruno@clisp.org>
30991
30992         Fix typos in comments.
30993         * lib/striconveh.h: Fix typo in comment.
30994         * lib/login_tty.c (login_tty): Likewise.
30995
30996 2010-09-15  Bruno Haible  <bruno@clisp.org>
30997
30998         stdlib: clarify MirBSD WEXITSTATUS bug
30999         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31000         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31001
31002 2010-09-15  Eric Blake  <eblake@redhat.com>
31003
31004         stdlib: work around MirBSD WEXITSTATUS bug
31005         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31006         * modules/stdlib (Depends-on): Add sys_wait.
31007         * tests/test-sys_wait.c (main): Enhance test.
31008         * tests/test-stdlib.c (main): Likewise.
31009         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31010
31011         docs: mention MacOS issue with WEXITSTATUS(constant)
31012         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31013         issue.
31014         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31015
31016         strnlen: add tests
31017         * modules/strnlen-tests: New file.
31018         * tests/test-strnlen.c: Likewise.
31019
31020 2010-09-14  Bruno Haible  <bruno@clisp.org>
31021
31022         unistr/base: Avoid link errors when module 'libunistring' is also used.
31023         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31024         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31025         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31026         Declare also when HAVE_LIBUNISTRING is set.
31027         Reported by Pádraig Brady <P@draigbrady.com>.
31028
31029 2010-09-14  Eric Blake  <eblake@redhat.com>
31030
31031         test-rawmemchr: make more robust
31032         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31033         (Depends-on, configure.ac): Add needed prerequisites to use it.
31034         * modules/memchr-tests (Files, Depends-on, configure.ac):
31035         Likewise, to avoid implicit reliance on memchr module prereqs.
31036         * tests/test-memchr.c (main): Ensure proper masking.
31037         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31038         reads.
31039
31040         memchr: detect glibc Alpha bug
31041         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31042         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31043         Alpha.
31044         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31045         * tests/test-memchr.c (main): Enhance test.
31046         Reported by Nelson H. F. Beebe.
31047
31048 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31049
31050         fts, getcwd, glob: audit for dirfd returning -1
31051         * lib/fts.c (opendir): Remove #define; no longer used.
31052         (opendirat): New arg PDIR_FD.  All callers changed.
31053         (fts_build, _opendir2): Use new opendirat to avoid the need for
31054         dirfd, or for checking whether dirfd returns a negative value.
31055         Don't use opendir; always use openat followed by fdopendir.
31056         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31057         it.
31058         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31059         returns -1 here.
31060         * modules/fts (Depends-on): Remove dirfd.
31061         * modules/getcwd (Depends-on): Likewise.
31062
31063 2010-09-13  Eric Blake  <eblake@redhat.com>
31064
31065         float: fix broken MirBSD header
31066         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31067         * doc/posix-headers/float.texi (float.h): Document it.
31068
31069 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31070
31071         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31072         * lib/fts.c (opendirat): New arg extra_flags.
31073         (__opendir2): Use it to avoid following symlinks when opening
31074         a directory, if symlinks are not supposed to be followed.  See
31075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31076
31077         fdopendir: preserve argument fd before returning
31078         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31079         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31080         (fdopendir): Use them, arranging for FD to be open to the same
31081         directory that it was when it started.  (It might be temporarily
31082         closed while fdopendir is running, so this not thread- or
31083         signal-safe.)  Be careful to do the right thing even when file
31084         descriptors are scarce and dup fails with errno == EMFILE.  See
31085         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31086
31087 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31088
31089         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31090         * NEWS: Document change.
31091         * m4/regex.m4: Disable test for regoff_t size.
31092
31093 2010-09-13  Jim Meyering  <meyering@redhat.com>
31094
31095         fts: don't operate on an invalid file descriptor after failed dup
31096         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31097         negative file descriptor.
31098
31099 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31100
31101         savedir: add streamsavedir, deprecate fdsavedir
31102         * NEWS: Mention deprecation of fdsavedir.
31103         * lib/savedir.c (streamsavedir): New extern function, whose name
31104         ends in "savedir" to be consistent with the others.  This differs
31105         from savedirstream in that it doesn't close its argument.  The
31106         next version of GNU tar will use this instead of fdsavedir, to
31107         avoid some race conditions and conserve file descriptors.
31108         (savedirstream): Reimplement as a wrapper around streamsavedir.
31109         (fdsavedir): Add a comment deprecating this function.  As far as
31110         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31111         * lib/savedir.h (streamsavedir): New decl.
31112         (fdsavedir): Add a comment deprecating this.
31113
31114 2010-09-10  Bruno Haible  <bruno@clisp.org>
31115
31116         langinfo: Fix last commit.
31117         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31118         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31120
31121 2010-09-10  Bruno Haible  <bruno@clisp.org>
31122
31123         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31124         * lib/progreloc.c (O_EXEC): Define fallback.
31125
31126 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31127
31128         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31129         * NEWS: Document recent changes to fcntl-h.
31130         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31131         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31132         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31133         Similarly for O_SEARCH; this last was already true, but not documented.
31134         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31135         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31136         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31137         Likewise.
31138         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31139         is zero, not whether it is defined.
31140         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31141         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31142         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31143
31144 2010-09-10  Bruno Haible  <bruno@clisp.org>
31145
31146         langinfo, nl_langinfo: Fix for IRIX 5.3.
31147         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31148         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31149         HAVE_LANGINFO_YESEXPR.
31150         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31151         HAVE_LANGINFO_YESEXPR.
31152         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31153         HAVE_LANGINFO_T_FMT_AMPM is 0.
31154         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31155         HAVE_LANGINFO_YESEXPR is 0.
31156         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31157         NOEXPR.
31158         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31159         * doc/posix-functions/nl_langinfo.texi: Likewise.
31160         Reported by Eric Blake.
31161
31162 2010-09-10  Bruno Haible  <bruno@clisp.org>
31163
31164         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31165         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31166         on FreeBSD 8.0 and OpenBSD 4.6.
31167         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31168         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31169         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31170         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31171         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31172         ac_includes_default.
31173         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31174
31175 2010-09-09  Eric Blake  <eblake@redhat.com>
31176
31177         strsignal: work around NetBSD bug
31178         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31179         * lib/string.in.h (includes): Likewise.
31180         * doc/posix-functions/strsignal.texi (strsignal): Document the
31181         bug.
31182         Reported by Nelson H. F. Beebe.
31183
31184         gnulib-tool: work with NetBSD /bin/sh
31185         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31186         (func_get_description, func_get_comment, func_get_status)
31187         (func_get_notice, func_get_applicability, func_get_filelist)
31188         (func_get_dependencies, func_get_autoconf_early_snippet)
31189         (func_get_autoconf_snippet, func_get_automake_snippet)
31190         (func_get_include_directive, func_get_link_directive)
31191         (func_get_license, func_get_maintainer, func_import): Avoid
31192         shell syntax errors from parsing syntax extensions.
31193
31194 2010-09-09  Bruno Haible  <bruno@clisp.org>
31195
31196         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31197         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31198         a reliable way to determine whether the 'alias' command works.
31199
31200 2010-09-08  Jim Meyering  <meyering@redhat.com>
31201
31202         init.sh: penalize a set-x-impaired shell; don't disqualify it
31203         * tests/init.sh: Too many shells corrupt application stderr when
31204         you set -x, so we can't afford to disqualify them, since at least
31205         on Irix-6.5, that would disqualify all bourne shells.
31206         Instead, use a two-pass approach.
31207         On the first pass, try to find a shell that meets the stricter
31208         condition that set -x does not corrupt stderr.
31209         If no shell meets the stricter condition, retest each candidate
31210         shell, but without that extra condition.  Finally, when
31211         VERBOSE=yes is requested and set -x might cause trouble, simply
31212         issue a warning and refrain from enabling debug output.
31213
31214 2010-09-08  Eric Blake  <eblake@redhat.com>
31215
31216         unsetenv: fix OpenBSD bug
31217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31218         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31219         documentation.
31220         Reported by Jim Meyering.
31221
31222         strtod: work around IRIX 6.5 bug
31223         * lib/strtod.c (strtod): Reparse number on shorter string if
31224         exponent parse was invalid.
31225         * tests/test-strtod.c (main): Add check for "0x1p 2".
31226         Reported by Tom G. Christensen.
31227
31228         getopt: optimize previous patch
31229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31230         empty variable.  Speed up awk script.
31231         Reported by Paolo Bonzini.
31232
31233 2010-09-08  Jim Meyering  <meyering@redhat.com>
31234
31235         test.sh: disqualify shells for which set -x corrupts stderr
31236         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31237         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31238         appear in stderr output.  For example, this command:
31239             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31240         prints "P=1" on those two systems:
31241
31242 2010-09-08  Bruno Haible  <bruno@clisp.org>
31243
31244         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31245         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31246         commands, because some shells ignore redirections when there is an
31247         error in the command lookup.
31248         Reported by Eric Blake.
31249
31250 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31251
31252         * lib/regex.h: Fix a mention of `regex_compile' (should be
31253         `re_compile_pattern').
31254         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31255         (re_set_registers): Correct name of parameter in comment.
31256
31257         * doc/regex.texi: Add documentation for missing syntax flags.
31258         Remove commented-out documentation of defunct syntax option
31259         RE_NO_EMPTY_ALTS.
31260         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31261         Add documentation of re_set_registers.
31262         Document trick to re-use a pattern buffer by setting fastmap manually.
31263         Update documentation of struct re_pattern_buffer per public members.
31264         Uncomment documentation of equivalence class operators and
31265         collating symbol operators, since they are now implemented,
31266         Explain leftmost-longest matching in relation to alternatives.
31267         Tidy documentation of substring matching.
31268         Remove POSIX documentation, which is done better in
31269         glibc, and refer the reader there. Keep BSD API documentation, as
31270         that is not readily available elsewhere.
31271
31272 2010-09-07  Eric Blake  <eblake@redhat.com>
31273
31274         getopt: handle POSIXLY_CORRECT set but not exported
31275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31276         export state of POSIXLY_CORRECT, due to bash set -o posix.
31277         Reported by Dustin J. Mitchell.
31278
31279 2010-09-05  Bruno Haible  <bruno@clisp.org>
31280
31281         gnulib-tool: Highlight the changed options.
31282         * gnulib-tool (func_usage): Display the --import, --add-import,
31283         --remove-import explanations in bold font.
31284
31285 2010-09-06  Karl Berry  <karl@gnu.org>
31286
31287         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31288
31289 2010-09-05  Bruno Haible  <bruno@clisp.org>
31290
31291         uniwidth/width: Update comment.
31292         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31293         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31294
31295 2010-09-05  Bruno Haible  <bruno@clisp.org>
31296
31297         isinf, isnan: Relax license.
31298         * modules/isinf (License): Change from GPL to LGPL, with consent from
31299         Ben Pfaff.
31300         * modules/isnan (License): Likewise.
31301         Requested by Ludovic Courtès.
31302
31303 2010-09-04  Bruno Haible  <bruno@clisp.org>
31304
31305         gnulib-tool: Help migration from --import to --add-import or --update.
31306         * gnulib-tool: Emit a verbose error message when --import is used
31307         without any module name.
31308
31309 2010-09-04  Bruno Haible  <bruno@clisp.org>
31310
31311         Update doc about gnulib-tool.
31312         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31313         'gnulib-tool --update' in more detail.
31314         Reported by Eric Blake.
31315
31316 2010-09-04  Bruno Haible  <bruno@clisp.org>
31317
31318         gnulib-tool: Change --import. New options --add/remove-import.
31319         * gnulib-tool: New options --add-import, --remove-import.
31320         (func_usage): Document them.
31321         (have_associative): Define always.
31322         (func_import): In import mode, don't merge the specified settings with
31323         the cached settings. Implement remove-import mode.
31324         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31325         Explain when to use them versus --import.
31326         (Simple update): Use --add-import instead of --import.
31327         * NEWS: Mention the change.
31328
31329 2010-09-04  Bruno Haible  <bruno@clisp.org>
31330
31331         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31332         separate gnulib.mk.
31333
31334 2010-09-04  Bruno Haible  <bruno@clisp.org>
31335
31336         gnulib-tool: Don't talk about CVS any more.
31337         * gnulib-tool (func_usage, func_import): Write "version control"
31338         instead of CVS.
31339
31340 2010-09-04  Jim Meyering  <meyering@redhat.com>
31341
31342         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31343         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31344         false positives (whose names may be ill-chosen) when searching
31345         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31346         would cause a false-positive.
31347
31348         avoid coreutils "make distcheck" failure
31349         Coreutils tests with an absolute build directory name that contains
31350         a space.  Not quoting this directory name caused a failure.
31351         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31352         * tests/test-vc-list-files-cvs.sh: Likewise.
31353
31354 2010-09-04  Bruno Haible  <bruno@clisp.org>
31355
31356         gnulib-tool: Avoid error when run in a package without Makefile.am.
31357         * gnulib-tool: When collecting the m4dirs in a package that does not
31358         have a Makefile.am, eliminate those directories that contain no
31359         gnulib-cache.m4. Fix expression that counts these directories.
31360
31361 2010-09-04  Bruno Haible  <bruno@clisp.org>
31362
31363         update-copyright test: Improve output when perl is missing or too old.
31364         * tests/test-update-copyright.sh: Move test of Perl version down after
31365         the test whether Perl exists. Provide an explanation relating Perl's
31366         error message to Automake's SKIP: message.
31367
31368 2010-09-04  Bruno Haible  <bruno@clisp.org>
31369
31370         Don't augment PATH in TESTS_ENVIRONMENT.
31371         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31372         set abs_aux_dir instead of augmenting PATH.
31373         * modules/vc-list-files-tests (Makefile.am): Likewise.
31374         * tests/test-update-copyright.sh: Augment PATH here.
31375         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31376         path_prepend_.
31377         * tests/test-vc-list-files-git.sh: Likewise.
31378
31379 2010-09-04  Jim Meyering  <meyering@redhat.com>
31380
31381         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31382         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31383
31384 2010-09-04  Bruno Haible  <bruno@clisp.org>
31385
31386         strdup: Fix compilation error in C++ mode.
31387         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31388         the macro.
31389
31390 2010-09-04  Bruno Haible  <bruno@clisp.org>
31391
31392         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31393         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31394         macro into a function.
31395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31396
31397 2010-09-04  Bruno Haible  <bruno@clisp.org>
31398
31399         Set PATH_SEPARATOR the same way autoconf does.
31400         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31401         the value of PATH_SEPARATOR the same way autoconf-generated configure
31402         scripts do.
31403         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31404         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31405
31406 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31407
31408         Set PATH_SEPARATOR the same way autoconf does.
31409         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31410         the same way autoconf-generated configure scripts do.
31411         * posix-modules: Likewise.
31412
31413 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31414
31415         hash: fix safe_hasher const typo
31416         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31417         const; otherwise, there is a type error later.
31418
31419 2010-09-02  Jim Meyering  <meyering@redhat.com>
31420
31421         test-update-copyright.sh: require perl 5.8.0
31422         * tests/test-update-copyright.sh: Require 5.8.0,
31423         which Tom G. Christensen has confirmed is adequate,
31424         while 5.6.1 is not.
31425
31426 2010-09-02  Eric Blake  <eblake@redhat.com>
31427
31428         tests: init.sh improvements for re-exec'ing with zsh
31429         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31430         -vx through shell re-exec.
31431         Reported by Tom G. Christensen.
31432
31433         wctype: fix typo in previous commit
31434         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31435         Reported by Ludovic Courtès.
31436
31437 2010-09-02  Jim Meyering  <meyering@redhat.com>
31438
31439         test-update-copyright.sh: skip test if Perl is too old
31440         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31441         Reported by Tom G. Christensen.
31442
31443 2010-09-02  Bruno Haible  <bruno@clisp.org>
31444
31445         wctype: Avoid compilation error on IRIX 6.5.30.
31446         * lib/wctype.in.h (iswblank): Declare with a replacement if
31447         REPLACE_ISWBLANK is set.
31448         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31449         declared. Set REPLACE_ISWBLANK.
31450         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31451         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31452         * doc/posix-headers/wctype.texi: Likewise.
31453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31454
31455 2010-09-01  Bruno Haible  <bruno@clisp.org>
31456
31457         New module 'socketlib'.
31458         * modules/socketlib: New file.
31459         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31460         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31461         * modules/sockets (Depends-on): Add socketlib.
31462         Suggested by Sam Steingold <sds@gnu.org>.
31463
31464 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31465
31466         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31467
31468         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31469         when one needs search access to a directory but not read access.
31470         On systems where it is available, it works in some cases where
31471         O_RDONLY does not, namely on directories that are searchable but
31472         not readable, and which need only to be searchable.  If O_SEARCH
31473         is not available, fall back to the traditional method of using
31474         O_RDONLY.
31475
31476         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31477         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31478         when opening a directory that needs only to be searchable.
31479         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31480         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31481         * lib/openat-proc.c (openat_proc_name): Likewise.
31482         * lib/openat.c (openat_needs_fchdir): Likewise.
31483         * lib/save-cwd.c (save_cwd): Likewise.
31484         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31485
31486 2010-08-28  Bruno Haible  <bruno@clisp.org>
31487
31488         New module 'host-cpu-c-abi'.
31489         * modules/host-cpu-c-abi: New file.
31490         * m4/host-cpu-c-abi.m4: New file, based on part of
31491         clisp/src/m4/general.m4.
31492         Requested by Sam Steingold <sds@gnu.org>.
31493
31494 2010-08-31  Eric Blake  <eblake@redhat.com>
31495         and Jim Meyering  <meyering@redhat.com>
31496
31497         hash: factor, and guard against misbehaving hasher function
31498         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31499         of table->hasher's return value.  Also protect against a hash value
31500         so large that adding it to table->bucket results in a NULL pointer.
31501         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31502         Use it in place of open-coded check-and-abort.
31503
31504 2010-08-30  Bruno Haible  <bruno@clisp.org>
31505
31506         hash: silence spurious clang warning
31507         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31508         Reported by Eric Blake.
31509
31510 2010-08-30  Eric Blake  <eblake@redhat.com>
31511
31512         strstr, memmem, strcasestr: avoid leaked shell message
31513         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31514         FreeBSD.
31515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31517
31518         tests: silence clang warning
31519         * tests/test-malloca.c (do_allocation): Avoid dead store.
31520
31521 2010-08-29  Bruno Haible  <bruno@clisp.org>
31522
31523         gettext: Fix recent mistake.
31524         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31525
31526 2010-08-29  Bruno Haible  <bruno@clisp.org>
31527
31528         selinux-h: Offer a --without-selinux option.
31529         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31530         --without-selinux was specified, skip all tests and define
31531         HAVE_SELINUX_SELINUX_H to 0.
31532         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31533         set LIB_SELINUX to empty.
31534         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31535         gl_LIBSELINUX. If --without-selinux was specified, replace
31536         selinux/context.h.
31537         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31538
31539 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31540             Bruno Haible  <bruno@clisp.org>
31541
31542         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31543         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31544         of HAVE_REALLOC.
31545         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31546         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31547         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31548         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31549
31550 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31551             Bruno Haible  <bruno@clisp.org>
31552
31553         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31554         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31555         HAVE_CALLOC.
31556         * lib/xmalloc.c: Update accordingly.
31557         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31558         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31559         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31560
31561 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31562             Bruno Haible  <bruno@clisp.org>
31563
31564         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31565         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31566         HAVE_MALLOC.
31567         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31568         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31569         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31570
31571 2010-08-29  Bruno Haible  <bruno@clisp.org>
31572
31573         Update modules list.
31574         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31575         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31576         (String handling <string.h>): Add astrxfrm.
31577         (File system functions): Add readlinkat.
31578
31579 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31580
31581         Tests for module 'realloc-gnu'.
31582         * modules/realloc-gnu-tests: New file.
31583         * tests/test-realloc-gnu.c: New file.
31584
31585         Tests for module 'calloc-gnu'.
31586         * modules/calloc-gnu-tests: New file.
31587         * tests/test-calloc-gnu.c: New file.
31588
31589         Tests for module 'malloc-gnu'.
31590         * modules/malloc-gnu-tests: New file.
31591         * tests/test-malloc-gnu.c: New file.
31592
31593 2010-08-28  Bruno Haible  <bruno@clisp.org>
31594
31595         Rename module 'realloc' -> 'realloc-gnu'.
31596         * modules/realloc-gnu: New file, copied from modules/realloc.
31597         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31598         obsolete.
31599         * modules/mgetgroups (Depends-on): Update.
31600         * doc/posix-functions/realloc.texi: Update.
31601         * NEWS: Mention the change.
31602
31603         Rename module 'calloc' -> 'calloc-gnu'.
31604         * modules/calloc-gnu: New file, copied from modules/calloc.
31605         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31606         obsolete.
31607         * doc/posix-functions/calloc.texi: Update.
31608         * NEWS: Mention the change.
31609
31610         Rename module 'malloc' -> 'malloc-gnu'.
31611         * modules/malloc-gnu: New file, copied from modules/malloc.
31612         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31613         obsolete.
31614         * modules/argp (Depends-on): Update.
31615         * modules/regex (Depends-on): Update.
31616         * doc/posix-functions/malloc.texi: Update.
31617         * NEWS: Mention the change.
31618
31619 2010-08-28  Eric Blake  <eblake@redhat.com>
31620
31621         pread, pwrite: add missing dependency
31622         * modules/pread (Depends-on): Add extensions.
31623         * modules/pwrite (Depends-on): Likewise.
31624
31625 2010-08-28  Bruno Haible  <bruno@clisp.org>
31626
31627         unistr/u*-strchr: Fix tests dependencies.
31628         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31629         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31630         Reported by Ian Beckwith <ianb@erislabs.net>.
31631
31632 2010-08-28  Bruno Haible  <bruno@clisp.org>
31633
31634         read-file: Don't occupy too much unused memory.
31635         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31636
31637 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31638             Eric Blake  <eblake@redhat.com>
31639             Bruno Haible  <bruno@clisp.org>
31640
31641         read-file: Avoid memory reallocations with regular files.
31642         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31643         (fread_file): With regular files, use the remaining length as the
31644         initial buffer size.  Check against overflow.
31645         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31646         sys_stat.
31647
31648 2010-08-28  Bruno Haible  <bruno@clisp.org>
31649
31650         ftello: Relax license.
31651         * modules/ftello (License): Relax to LGPLv2+.
31652         Reported by Eric Blake.
31653
31654 2010-08-28  Bruno Haible  <bruno@clisp.org>
31655
31656         Avoid relocwrapper link errors due to gnulib replacement functions.
31657         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31658         function.
31659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31660
31661 2010-08-28  Bruno Haible  <bruno@clisp.org>
31662
31663         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31664         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31665         defined.
31666         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31667         Suggested by Eric Blake.
31668
31669 2010-08-28  Bruno Haible  <bruno@clisp.org>
31670
31671         sys_socket, netdb: Ensure socklen_t gets defined.
31672         * modules/sys_socket (Depends-on): Add socklen.
31673         * modules/netdb (Depends-on): Likewise.
31674         * modules/getaddrinfo (Depends-on): Remove socklen.
31675         * modules/getsockopt (Depends-on): Likewise.
31676         * modules/setsockopt (Depends-on): Likewise.
31677         * tests/test-sys_socket.c: Check that socklen_t is defined.
31678         * tests/test-netdb.c: Likewise.
31679         * m4/socklen.m4: Update comments.
31680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31681
31682 2010-08-27  Eric Blake  <eblake@redhat.com>
31683
31684         login_tty: add missing dependency
31685         * modules/login_tty (Depends-on): Add pty.
31686
31687 2010-08-26  Eric Blake  <eblake@redhat.com>
31688
31689         lib-symbol-versions: fix m4 quoting
31690         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31691         format for AC_LINK_IFELSE.
31692
31693         glob: fix compile test
31694         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31695
31696         btowc: fix missing file
31697         * modules/btowc (Files): Also ship locale-fr.m4.
31698
31699         lseek: fix link test
31700         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31701         AC_LINK_IFELSE.
31702
31703         include_next: silence autoconf 2.68 warning
31704         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31705         AC_COMPILE_IFELSE as special.
31706         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31707         autoconf < 2.68.
31708
31709         acl: fix compilation test
31710         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31711         AC_COMPILE_IFELSE.
31712
31713 2010-08-26  Bruno Haible  <bruno@clisp.org>
31714
31715         Modernize AC_TRY_RUN invocations.
31716         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31717         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31718         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31719         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31720         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31721         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31722         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31724         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31725         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31727         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31728         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31729         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31731         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31732         gl_MBRLEN_NUL_RETVAL): Likewise.
31733         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31735         Likewise.
31736         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31737         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31738         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31739         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31740         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31741         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31742         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31743         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31744         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31745         Likewise.
31746         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31747         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31749         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31752         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31753         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31754         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31756
31757 2010-08-26  Bruno Haible  <bruno@clisp.org>
31758
31759         Modernize AC_TRY_LINK invocations.
31760         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31761         AC_TRY_LINK.
31762         * m4/argp.m4 (gl_ARGP): Likewise.
31763         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31764         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31765         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31767         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31768         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31769         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31770         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31771         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31772         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31773         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31774         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31775         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31776         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31777         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31778         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31779         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31780         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31781         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31782         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31783         Likewise.
31784         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31785         Likewise.
31786         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31787         Likewise.
31788         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31790         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31791         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31792         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31793         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31794         * m4/servent.m4 (gl_SERVENT): Likewise.
31795         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31796         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31797         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31798         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31799         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31800         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31801         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31803         * modules/tsearch-tests (configure.ac): Likewise.
31804
31805 2010-08-26  Bruno Haible  <bruno@clisp.org>
31806
31807         Modernize AC_TRY_COMPILE invocations.
31808         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31809         AC_TRY_COMPILE.
31810         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31811         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31812         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31813         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31814         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31815         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31816         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31817         * m4/lock.m4 (gl_LOCK): Likewise.
31818         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31819         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31820         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31821         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31822         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31823         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31824         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31826         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31827         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31828         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31829         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31830         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31831         extraneous semicolon.
31832
31833 2010-08-26  Jim Meyering  <meyering@redhat.com>
31834
31835         stat-time: relax license LGPL
31836         * modules/stat-time (License): Change from GPL to LGPL,
31837         with consent from all contributors, for use in libguile.
31838         Requested by Ludovic Courtès.
31839
31840 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31841
31842         poll: return immediately on POLLHUP.
31843         * lib/poll.c (poll): Always set timeout before wait_timeout is
31844         computed.
31845
31846 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31847
31848         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31849         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31850         rmdir ("dir/.//"), unlinkat.
31851
31852 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31853
31854         stdbool: avoid spurious failure with modern xlc
31855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31856
31857 2010-08-24  Bruno Haible  <bruno@clisp.org>
31858
31859         getloadavg: simplify code
31860         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31861         gl_have_func. Update comments.
31862
31863 2010-08-24  Eric Blake  <eblake@redhat.com>
31864
31865         getloadavg: don't define SVR4 on cygwin
31866         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31867         only define SVR4 when -lkvm is required.
31868         Reported by Yaakov Selkowitz.
31869
31870 2010-08-24  Bruno Haible  <bruno@clisp.org>
31871
31872         priv-set: fix comment
31873         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31874
31875 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31876
31877         priv-set: fix comments
31878         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31879         to match code, as suggested by David Bartley in:
31880         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31881
31882 2010-08-23  Eric Blake  <eblake@redhat.com>
31883
31884         stdbool: avoid rejecting clang
31885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31886         * tests/test-stdbool.c: Enable more tests if using the system
31887         <stdbool.h> instead of the gnulib replacement.
31888         (main): Move xlc bug test to a runtime test for all compilers.
31889         Reported by Anders Kaseorg.
31890
31891         argz: fix shell quoting issue
31892         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31893         Reported by Charles Wilson.
31894
31895 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31896             Erik Faye-Lund <kusmabite@gmail.com>
31897
31898         poll, select: handle ERROR_BROKEN_PIPE.
31899         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31900         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31901         * lib/select.c (win32_compute_revents): Do not mark a pipe
31902         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31903
31904 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31905
31906         fts: allow compilation with C++
31907         * lib/fts_.h: Specify extern "C" linkage with C++.
31908
31909 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31910
31911         Fix gnulib-tool sed script de-commentation for AIX sed.
31912         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31913         sed.
31914
31915 2010-08-17  Eric Blake  <eblake@redhat.com>
31916
31917         test-stddef: test for (some) offsetof bugs
31918         * tests/test-stddef.c: Enhance test to ensure correct type of
31919         offsetof.
31920         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31921         that we are not fixing at this time.
31922
31923 2010-08-15  Bruno Haible  <bruno@clisp.org>
31924
31925         stpncpy: Allow stpncpy to be defined as a macro.
31926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31927         if it's already correctly declared.
31928         * lib/string.in.h (stpncpy): Undefine before redefining.
31929         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31930
31931 2010-08-14  Bruno Haible  <bruno@clisp.org>
31932
31933         Rename module 'memxfrm' to 'amemxfrm'.
31934         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31935         (amemxfrm): Renamed from memxfrm.
31936         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31937         (amemxfrm): Renamed from memxfrm.
31938         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31939         * NEWS: Mention the change.
31940         * MODULES.html.sh (String handling <string.h>): Update.
31941         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31942         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31943         * lib/unicase/u16-casexfrm.c: Likewise.
31944         * lib/unicase/u32-casexfrm.c: Likewise.
31945         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31946         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31947         * lib/uninorm/u16-normxfrm.c: Likewise.
31948         * lib/uninorm/u32-normxfrm.c: Likewise.
31949         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31950         memxfrm.
31951         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31952         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31953         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31954         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31955         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31956         Suggested by Paul Eggert.
31957
31958 2010-08-14  Bruno Haible  <bruno@clisp.org>
31959
31960         Tests for module 'astrxfrm'.
31961         * modules/astrxfrm-tests: New file.
31962         * tests/test-astrxfrm.c: New file.
31963
31964         New module 'astrxfrm'.
31965         * lib/astrxfrm.h: New file.
31966         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31967         * modules/astrxfrm: New file.
31968
31969 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31970
31971         regex: Tweak doc.
31972         * doc/regex.texi (Overview): Don't mention regex.c.
31973         (GNU Regular Expression Compiling): Likewise.
31974         (Match-end-of-line Operator): Mention 'not_eol'.
31975
31976 2010-08-14  Brian Gough  <bjg@gnu.org>
31977             Bruno Haible  <bruno@clisp.org>
31978
31979         git-merge-changelog: add doc relating to use with bzr and hg.
31980         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31981
31982 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31983
31984         pthread: fix pthread.h creation for srcdir != builddir
31985         * modules/pthread (Makefile.am): Fix the rule to work also in a
31986         non-srcdir build.
31987
31988 2010-08-13  Karl Berry  <karl@gnu.org>
31989
31990         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31991         * doc/posix-*/*: force line break before @url of POSIX
31992         specifications.
31993         Suggested by Werner Lemberg.
31994
31995 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31996
31997         strtod: fix const diagnostic
31998         * lib/strtod.c (strtod): Don't assign const char * to char *,
31999         as this elicits a warning from GCC when warnings are enabled.
32000
32001 2010-08-10  Pádraig Brady <P@draigbrady.com>
32002         and Eric Blake  <eblake@redhat.com>
32003
32004         copy-acl: ignore ENOTSUP on HP-UX
32005         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32006         so that it is available for HP-UX.
32007         * lib/copy-acl.c (qcopy_acl): Use it.
32008         Reported by Patrick M. Callahan.
32009
32010 2010-08-10  Eric Blake  <eblake@redhat.com>
32011
32012         open, chown: relax license
32013         * modules/open (License): Change to LGPLv2+, with consent by all
32014         authors, for use in augeas.
32015         * modules/chown (License): Likewise.
32016         * modules/lchown (Likewise): Likewise.
32017         Requested by Adam Stokes.
32018
32019 2010-08-09  Karl Berry  <karl@gnu.org>
32020
32021         * build-aux/ar-lib: new file, import from Automake.
32022         * config/srclist.txt: autocheck for updates.
32023
32024 2010-08-09  Eric Blake  <eblake@redhat.com>
32025
32026         readlinkat: adjust client modules
32027         * modules/areadlinkat (Depends-on): Use readlinkat, not
32028         symlinkat.
32029         * modules/areadlinkat-with-size (Depends-on): Likewise.
32030
32031         mknod: be more vocal about danger of running tests as root
32032         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32033         root, since that is just asking for problems.
32034         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32035
32036         readlinkat: split into its own module
32037         * modules/symlinkat: Split readlinkat...
32038         * modules/readlinkat: ...into separate module.
32039         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32040         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32041         * lib/symlinkat.c (readlinkat): Move...
32042         * lib/readlinkat.c: ...into new file.
32043         * modules/symlinkat-tests: Split readlinkat test...
32044         * modules/readlinkat-tests: ...into separate module.
32045         * tests/test-symlinkat.c: Split...
32046         * tests/test-readlinkat.c: ...into new file.
32047         * NEWS: Document the split.
32048         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32049         * lib/unistd.in.h (readlinkat): Likewise.
32050         Suggested by Bruno Haible.
32051
32052 2010-08-08  Bruno Haible  <bruno@clisp.org>
32053
32054         memxfrm: Speed up.
32055         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32056         that usually only one call to strxfrm is necessary for each string
32057         part.
32058         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32059
32060 2010-08-07  Karl Berry  <karl@gnu.org>
32061
32062         * doc/posix-headers/limits.texi,
32063         * doc/posix-functions/malloc.texi,
32064         * doc/posix-functions/strsignal.texi: missing @item.
32065         * doc/ld-version-script.texi: spurious leading i.
32066         * doc/regex.texi (Interval Operators): no commas inside @var.
32067
32068 2010-08-01  Bruno Haible  <bruno@clisp.org>
32069
32070         Integrate the regex documentation.
32071         * doc/gnulib.texi: Define 'cn' index.
32072         (Regular expressions): New a chapter that includes regex.texi and
32073         regexprops-generic.texi.
32074         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32075         syntax.
32076
32077         Whitespace cleanup.
32078         * doc/regex.texi: Remove trailing spaces.
32079
32080         Add regex documentation.
32081         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32082         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32083         Written by Kathy A. Hargreaves and Karl Berry.
32084
32085 2010-08-01  Bruno Haible  <bruno@clisp.org>
32086
32087         link: Update documentation.
32088         * doc/posix-functions/link.texi: Update regarding Solaris.
32089
32090 2010-07-31  Bruno Haible  <bruno@clisp.org>
32091
32092         Update modules list.
32093         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32094         (String handling <string.h>): Add memcmp2, memxfrm.
32095         (Container data structures): Add xlist, xsublist, xoset.
32096         (Core language properties): Add alignof, unused-parameter.
32097         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32098         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32099         (Unibyte characters <ctype.h>): New section.
32100         (String handling <string.h>): New section.
32101         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32102         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32103         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32104         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32105         tan, tanh, tanl, y0, y1, yn.
32106         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32107         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32108         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32109         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32110         unlockpt, vdprintf, vdprintf-posix.
32111         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32112         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32113         xconcat-filename.
32114         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32115         getdtablesize, pipe2, pipe2-safer.
32116         (Security): New section.
32117         (Networking functions): Add accept4.
32118         (Signal handling): Add sigpipe.
32119         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32120         mbmemcasecoll.
32121         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32122         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32123         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32124         pipe-filter-ii.
32125         (Misc): Add argp-version-etc, login_tty, parse-duration.
32126
32127 2010-07-31  Bruno Haible  <bruno@clisp.org>
32128
32129         Improve doc in MODULES.html.
32130         * modules/linkat (Description): Add the word "function".
32131         * modules/mkfifo (Description): Likewise.
32132         * modules/mknod (Description): Likewise.
32133         * modules/remove (Description): Likewise.
32134         * modules/renameat (Description): Likewise.
32135         * modules/stat (Description): Likewise.
32136         * modules/symlink (Description): Likewise.
32137         * modules/unlink (Description): Likewise.
32138
32139 2010-07-31  Bruno Haible  <bruno@clisp.org>
32140
32141         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32142         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32143         option --enable/disable-c++ instead of --enable/disable-cxx.
32144         * NEWS: Mention the change.
32145
32146 2010-07-31  Bruno Haible  <bruno@clisp.org>
32147
32148         readlink, areadlink: Relax test a bit.
32149         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32150         alternative to ENOTDIR.
32151         * tests/test-areadlink.h (test_areadlink): Likewise.
32152         Reported by Rainer Tammer.
32153
32154 2010-07-31  Bruno Haible  <bruno@clisp.org>
32155
32156         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32157         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32158         character, perform the search using U_STRCHR.
32159         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32160         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32161         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32162         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32163         Suggested by Paolo Bonzini.
32164
32165 2010-07-31  Bruno Haible  <bruno@clisp.org>
32166
32167         unistr/u*-strstr: Fix dependencies.
32168         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32169         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32170         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32171
32172 2010-07-31  Bruno Haible  <bruno@clisp.org>
32173
32174         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32175         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32176         the beginning of the loop.
32177         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32178         cases in 'switch' statement.
32179
32180         unistr/u8-strchr: Fix several bugs.
32181         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32182         the string. When not found, return NULL, not a pointer near the end.
32183
32184         More tests for unistr/u8-strchr.
32185         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32186         that the function does not read past the first occurrence of the byte
32187         being searched.
32188         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32189         * tests/unistr/test-u16-strchr.c (main): New function.
32190         * tests/unistr/test-u32-strchr.c (main): New function.
32191
32192 2010-07-31  Bruno Haible  <bruno@clisp.org>
32193
32194         posix-modules: Ignore backup files of documentation files.
32195         * posix-modules: grep only through files named *.texi.
32196
32197 2010-07-31  Bruno Haible  <bruno@clisp.org>
32198
32199         symlinkat: Fix documentation.
32200         * doc/posix-functions/readlinkat.texi: Fix module name.
32201
32202 2010-07-31  Bruno Haible  <bruno@clisp.org>
32203
32204         fchownat: Replace also when chown has the trailing slash bug.
32205         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32206         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32207         introduced on 2010-04-10.
32208         Reported by Rainer Tammer.
32209
32210 2010-07-31  Bruno Haible  <bruno@clisp.org>
32211
32212         linkat: Work around AIX 7.1 bug.
32213         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32214         whether linkat handles trailing slash correctly. If not, replace linkat
32215         and define LINKAT_TRAILING_SLASH_BUG.
32216         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32217         check whether (fd1,file1) points to a directory if file1 or file2 ends
32218         in a slash. Code taken from lib/link.c.
32219         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32220         Reported by Rainer Tammer.
32221
32222 2010-07-31  Bruno Haible  <bruno@clisp.org>
32223
32224         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32225         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32226         This disables an xlc optimization that was causing wrong test results.
32227         Reported by Rainer Tammer.
32228
32229 2010-07-31  Bruno Haible  <bruno@clisp.org>
32230
32231         iconv: Work around AIX 6.1..7.1 bug.
32232         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32233         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32234         cross-compiling, guess no on all versions of AIX.
32235         Reported by Rainer Tammer.
32236
32237 2010-07-31  Bruno Haible  <bruno@clisp.org>
32238
32239         readlink: Relax test a bit.
32240         * tests/test-readlink.h (test_readlink): Allow different errno value
32241         when readlink is called with a file name that ends in / and refers to
32242         a file.
32243         Suggested by Eric Blake.
32244         Reported by Rainer Tammer.
32245
32246 2010-07-31  Bruno Haible  <bruno@clisp.org>
32247
32248         copysign: Does not require -lm on glibc systems.
32249         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32250         gl_COMMON_DOUBLE_MATHFUNC.
32251         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32252
32253 2010-07-31  Bruno Haible  <bruno@clisp.org>
32254
32255         duplocale: Work around AIX 7.1 bug.
32256         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32257         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32258         * lib/duplocale.c (rpl_duplocale): Update comment.
32259         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32260         Reported by Rainer Tammer.
32261
32262 2010-07-30  Bruno Haible  <bruno@clisp.org>
32263
32264         dirfd: Avoid link error on AIX 7.1.
32265         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32266         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32267         exist, set REPLACE_DIRFD.
32268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32269         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32270         * doc/posix-functions/dirfd.texi: Update.
32271         Reported by Rainer Tammer.
32272
32273 2010-07-30  Eric Blake  <eblake@redhat.com>
32274
32275         strtod: next round of AIX fixes
32276         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32277         exponent.
32278         * tests/test-strtod.c (main): Enhance tests.
32279         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32280         Reported by Rainer Tammer.
32281
32282         futimens: fix configure check
32283         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32284         Reported by Bruno Haible.
32285
32286 2010-07-30  Bruno Haible  <bruno@clisp.org>
32287
32288         getline: Update regarding AIX.
32289         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32290         Reported by Rainer Tammer.
32291
32292 2010-07-30  Bruno Haible  <bruno@clisp.org>
32293
32294         wcwidth: Drop replacement on AIX 7.
32295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32296         AIX 7.
32297         Reported by Rainer Tammer.
32298
32299 2010-07-30  Bruno Haible  <bruno@clisp.org>
32300
32301         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32303         a 'char *'.
32304         Reported by Rainer Tammer.
32305
32306 2010-07-30  Bruno Haible  <bruno@clisp.org>
32307
32308         unlink: Update regarding AIX.
32309         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32310         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32311         Reported by Rainer Tammer.
32312
32313 2010-07-30  Bruno Haible  <bruno@clisp.org>
32314
32315         symlink: Update regarding AIX.
32316         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32317         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32318         Reported by Rainer Tammer.
32319
32320 2010-07-30  Bruno Haible  <bruno@clisp.org>
32321
32322         strndup: Update regarding AIX.
32323         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32324         AIX 7.
32325         Reported by Rainer Tammer.
32326
32327 2010-07-30  Bruno Haible  <bruno@clisp.org>
32328
32329         stat: Update regarding AIX.
32330         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32331         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32332         Reported by Rainer Tammer.
32333
32334 2010-07-30  Bruno Haible  <bruno@clisp.org>
32335
32336         truncl: Fix autoconf test.
32337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32338         whether truncl works.
32339         Reported by Rainer Tammer.
32340
32341 2010-07-30  Bruno Haible  <bruno@clisp.org>
32342
32343         round: Update regarding AIX.
32344         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32345         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32346         Reported by Rainer Tammer.
32347
32348 2010-07-30  Bruno Haible  <bruno@clisp.org>
32349
32350         rename: Update regarding AIX.
32351         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32352         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32353         Reported by Rainer Tammer.
32354
32355 2010-07-30  Bruno Haible  <bruno@clisp.org>
32356
32357         printf.m4: Update regarding AIX.
32358         * m4/printf.m4: Update comments regarding AIX.
32359         Reported by Rainer Tammer.
32360
32361 2010-07-30  Bruno Haible  <bruno@clisp.org>
32362
32363         iconv: Update regarding AIX.
32364         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32365         AIX 7.
32366         Reported by Rainer Tammer.
32367
32368 2010-07-30  Bruno Haible  <bruno@clisp.org>
32369
32370         getopt: Update regarding AIX.
32371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32372         no on AIX.
32373         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32374         Reported by Rainer Tammer.
32375
32376 2010-07-30  Bruno Haible  <bruno@clisp.org>
32377
32378         ldexpl; Update regarding AIX.
32379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32380         on AIX 7.
32381         Reported by Rainer Tammer.
32382
32383 2010-07-30  Bruno Haible  <bruno@clisp.org>
32384
32385         frexpl: Update regarding AIX.
32386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32387         on AIX 7.
32388         Reported by Rainer Tammer.
32389
32390 2010-07-30  Bruno Haible  <bruno@clisp.org>
32391
32392         open, fopen: Update regarding AIX.
32393         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32394         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32395         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32396         * doc/posix-functions/fopen.texi: Likewise.
32397         Reported by Rainer Tammer.
32398
32399 2010-07-30  Bruno Haible  <bruno@clisp.org>
32400
32401         chown: Update doc regarding AIX.
32402         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32403         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32404         Reported by Rainer Tammer.
32405
32406 2010-07-30  Eric Blake  <eblake@redhat.com>
32407
32408         strtod: fix bug in replacement function on AIX
32409         * lib/strtod.c (strtod): Special case broken "0x" parse in
32410         underlying strtod.
32411         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32412         * doc/posix-functions/strtod.texi (strtod): Likewise.
32413         Reported by Rainer Tammer.
32414
32415 2010-07-30  Bruno Haible  <bruno@clisp.org>
32416
32417         mbrlen: Fix cross-compilation guess for AIX.
32418         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32419         guess. Leftover from 2008-12-22.
32420
32421 2010-07-30  Bruno Haible  <bruno@clisp.org>
32422
32423         mbrtowc: Fix cross-compilation guess for AIX.
32424         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32425         guess. Leftover from 2008-12-21.
32426
32427 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32428
32429         init.sh: work around trap limitation of some shells
32430         * tests/init.sh (setup_): Move exit trap outside of shell function.
32431
32432 2010-07-29  Eric Blake  <eblake@redhat.com>
32433
32434         strtod: aid debugging
32435         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32436         understanding why strtod is rejected.
32437
32438 2010-07-28  Bruno Haible  <bruno@clisp.org>
32439
32440         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32441         * lib/unistr/u8-chr.c: Include <string.h>.
32442         * tests/unistr/test-u8-chr.c: Likewise.
32443         * tests/unistr/test-u16-chr.c: Likewise.
32444         * tests/unistr/test-u32-chr.c: Likewise.
32445         * tests/unistr/test-u8-strchr.c: Likewise.
32446         * tests/unistr/test-u16-strchr.c: Likewise.
32447         * tests/unistr/test-u32-strchr.c: Likewise.
32448         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32449         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32450         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32451         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32452
32453 2010-07-28  Bruno Haible  <bruno@clisp.org>
32454
32455         Use spaces for indentation, not tabs.
32456         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32457
32458 2010-07-27  Bruno Haible  <bruno@clisp.org>
32459
32460         mbspcasecmp: Fix function specification.
32461         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32462         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32463         Reported by Eric Blake <eblake@redhat.com>.
32464
32465 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32466
32467         timespec: use cast and not conditional, as truncation isn't possible
32468         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32469         instead of a conditional.  Comment about the situation in more detail.
32470         This undoes most of the 2009-10-29 patch.
32471
32472 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32473
32474         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32475         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32476         * lib/unistr/u8-strchr.c: Likewise.
32477         * modules/unistr/u8-chr: Depend on memchr.
32478
32479         unistr/u*-strchr: add tests
32480         * modules/unistr/u8-strchr-tests: New file.
32481         * modules/unistr/u16-strchr-tests: New file.
32482         * modules/unistr/u32-strchr-tests: New file.
32483         * tests/unistr/test-strchr.h: New file.
32484         * tests/unistr/test-u8-strchr.c: New file.
32485         * tests/unistr/test-u16-strchr.c: New file.
32486         * tests/unistr/test-u32-strchr.c: New file.
32487
32488         unistr/u*-chr: test multibyte sequences more
32489         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32490         test vector.
32491         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32492         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32493         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32494
32495         unistr/u*-chr: test multibyte sequences
32496         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32497
32498         unistr/u*-chr: prepare for multibyte tests
32499         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32500         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32501         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32502         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32503         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32504         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32505
32506 2010-07-18  Bruno Haible  <bruno@clisp.org>
32507
32508         unistr/u8-strchr: Optimize non-ASCII argument case.
32509         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32510         because the first byte often matches anyway.
32511         Reported by Pádraig Brady <P@draigbrady.com>.
32512
32513 2010-07-15  Karl Berry  <karl@gnu.org>
32514
32515         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32516
32517 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32518
32519         getcwd: on Solaris, work better if ancestors are inaccessible
32520         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32521         buffer and size, try again with a large buffer.  This works better
32522         on Solaris, since its getcwd succeeds even if the path to the root
32523         is inaccessible, and this is helpful in common cases such as .zfs
32524         hidden directories.  Problem reported by J Chapman Flack in
32525         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32526         Use system getcwd if it's declared, not merely if it's partly
32527         working; use the partly-working test only to avoid needless effort
32528         if the system getcwd fails.
32529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32530         comment that was already obsolete and is now even more obsolete.
32531         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32532         now might call strdup.
32533
32534 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32535
32536         pthread: Add enough so that coreutils/src/sort.c compiles.
32537         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32538         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32539         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32540         Include <sys/types.h>, in case it defines pthread_t.
32541         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32542         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32543         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32544         (pthread_rwlockattr_t, pthread_spinlock_t):
32545         New typedefs, if HAVE_PTHREAD_T is not defined.
32546         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32547         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32548         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32549         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32550         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32551         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32552         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32553         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32554         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32555         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32556         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32557         New macros.
32558         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32559         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32560         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32561         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32562         (pthread_spin_unlock): New dummy functions.
32563         (pthread_create): Return EAGAIN; don't set errno.
32564         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32565         require AC_C_INLINE.
32566         * modules/pthread (Depends-on): Add sched, time.
32567         (pthread.h): Use AM_V_GEN.
32568
32569 2010-07-13  Bruno Haible  <bruno@clisp.org>
32570
32571         striconveh: Don't malloc memory if the result buffer is sufficient.
32572         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32573         buffer if its size is sufficient.
32574         Reported by Ludovic Courtès <ludo@gnu.org>.
32575
32576 2010-07-13  Bruno Haible  <bruno@clisp.org>
32577
32578         strtod: Add safety check.
32579         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32580
32581 2010-07-12  Bruno Haible  <bruno@clisp.org>
32582
32583         Unify tests that set gl_cv_func_ldexpl_no_libm.
32584         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32585         gl_FUNC_LDEXPL.
32586         (gl_FUNC_LDEXPL): Invoke it.
32587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32588
32589 2010-07-12  Bruno Haible  <bruno@clisp.org>
32590
32591         Unify tests that set gl_cv_func_ldexp_no_libm.
32592         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32593         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32594         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32595         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32596         * modules/strtod (Files): Add m4/ldexp.m4.
32597
32598 2010-07-12  Bruno Haible  <bruno@clisp.org>
32599
32600         Unify tests that set gl_cv_func_frexpl_no_libm.
32601         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32602         gl_FUNC_FREXPL_NO_LIBM.
32603         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32605
32606 2010-07-12  Bruno Haible  <bruno@clisp.org>
32607
32608         Unify tests that set gl_cv_func_frexp_no_libm.
32609         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32610         gl_FUNC_FREXP_NO_LIBM.
32611         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32612         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32613
32614 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32615
32616         memcoll: clarify sizes versus lengths, document better, and tweak perf
32617         * lib/memcoll.c (strcoll_loop, memcoll0):
32618         Improve quality of descriptive comments.  Name variables
32619         consistently as to whether they are lengths (which do not include
32620         terminating null) versus sizes (which do).
32621         * lib/xmemcoll.c (xmemcoll0): Likewise.
32622         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32623         returned when s1size == 0; this is easier to compile and saves
32624         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32625
32626 2010-07-12  Bruno Haible  <bruno@clisp.org>
32627
32628         Tests for module '_Exit'.
32629         * modules/_Exit-tests: New file.
32630         * tests/test-_Exit.sh: New file.
32631         * tests/test-_Exit.c: New file.
32632
32633         New module '_Exit'.
32634         * lib/stdlib.in.h (__attribute__): New macro.
32635         (_Exit): New declaration.
32636         * lib/_Exit.c: New file.
32637         * m4/_Exit.m4: New file.
32638         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32639         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32640         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32641         * modules/_Exit: New file.
32642         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32643         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32644
32645 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32646
32647         strtod: make it more-accurate typically, and don't require libm
32648         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32649         Include limits.h.  Don't include string.h.
32650         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32651         (locale_isspace): New function, so that no casts are needed to
32652         check whether *s is a space.
32653         (ldexp): Provide an unused dummy if not available.
32654         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32655         (strtod): Use them.  This implementation prefers to use the
32656         underlying strtod if available, falling back on our own code
32657         only to fix known bugs.  This is more likely to produce an
32658         accurate result.  Also, it avoids the use of libm functions.
32659         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32660         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32661         was absent, but it caused a test failure with coreutils.
32662         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32663         with libm.
32664         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32665         * modules/strtod-tests (Makefile.am): Likewise.
32666
32667 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32668             Bruno Haible  <bruno@clisp.org>
32669
32670         unistr/u8-strchr: Optimize ASCII argument case.
32671         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32672
32673 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32674
32675         (x)memcoll: minor tweaks
32676         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32677         is after the type that it qualifies.
32678         (memcoll0): Likewise.
32679         * lib/memcoll.h (memcoll0): Likewise.
32680         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32681         * lib/xmemcoll.h (xmemcoll0): Likewise.
32682         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32683         differs from memcoll in that the NUL byte is part of the argument.
32684         Omit the abort-checks, as performance is a real issue here.  Plus,
32685         the checks were wrong anyway (an off-by-one error).  Omit local
32686         variable 'diff', as it's a bit clearer that way.
32687         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32688         no longer needed.
32689
32690 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32691
32692         (x)memcoll: speedup when input is known to be NUL delimited
32693         * lib/memcoll.c: Include stdlib.
32694         (memcoll0): New function.
32695         (strcoll_loop): New function, refactored for use in both memcoll
32696         and memcoll0.
32697         * lib/memcoll.h (memcoll0): Add prototype.
32698         * lib/xmemcoll.c (xmemcoll0): New function.
32699         (collate_error): New function, refactored for use in both xmemcoll
32700         and xmemcoll0.
32701         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32702         * m4/memcoll.m4: add inline invocation.
32703
32704 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32705
32706         * build-aux/bootstrap: Remove any local translations
32707         from the translation project synchronization directory,
32708         so that local only translations are not distributed.
32709
32710 2010-07-04  Bruno Haible  <bruno@clisp.org>
32711
32712         fsusage: Clarify which code applies to which platforms.
32713         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32714         platform.
32715         * lib/fsusage.c (get_fs_usage): Likewise.
32716
32717 2010-07-04  Bruno Haible  <bruno@clisp.org>
32718
32719         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32720         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32721         Reported by Martin Lambers <marlam@marlam.de>.
32722
32723 2010-07-04  Jim Meyering  <meyering@redhat.com>
32724
32725         hash: once again explicitly disallow insertion of NULL
32726         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32727         inserting a NULL pointer cannot work with these functions.
32728         Add a comment with details.
32729         This reverts part of the 2010-07-01 commit, 5bef1a35
32730         "hash: extend module to deal with non-pointer keys".
32731
32732 2010-07-01  Bruno Haible  <bruno@clisp.org>
32733
32734         stdbool: Update doc.
32735         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32736         Info from Christian Weisgerber <naddy@mips.inka.de>.
32737
32738 2010-07-01  Jim Meyering  <meyering@redhat.com>
32739
32740         hash: extend module to deal with non-pointer keys
32741         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32742         but that allows insertion of non-pointer entries.
32743         Do not disallow an ENTRY value of NULL.
32744         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32745         * lib/hash.h (hash_insert0): Declare.
32746
32747 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32748
32749         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32750         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32751         not present (i.e. with autoconf 2.59 and when using gettextize, not
32752         gnulib), require AC_GNU_SOURCE instead.
32753
32754 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32755
32756         idpriv-drop: Fix tests.
32757         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32758         not to the test-idpriv-droptemp program.
32759
32760 2010-06-29  Bruno Haible  <bruno@clisp.org>
32761
32762         string: Fix syntax error with g++ 2.96.
32763         * lib/string.in.h (__pure__): Remove definition.
32764         (_GL_ATTRIBUTE_PURE): New macro.
32765         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32766         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32767         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32768
32769 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32770
32771         unitypes: Fix bug introduced on 2010-05-18.
32772         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32773
32774 2010-06-22  Eric Blake  <eblake@redhat.com>
32775
32776         memmem: slight optimization
32777         * lib/str-two-way.h (critical_factorization): Update comments.
32778         Reduce work during factorization phase.
32779         Reported by Carlos Bueno <carlos@bueno.org>.
32780
32781 2010-06-21  Bruno Haible  <bruno@clisp.org>
32782
32783         Fix HAVE_CALLOC_POSIX misnomer.
32784         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32785         !HAVE_CALLOC_POSIX.
32786         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32787         HAVE_CALLOC_POSIX.
32788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32789         instead of HAVE_CALLOC_POSIX.
32790         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32791         HAVE_CALLOC_POSIX.
32792
32793         Use modern idiom for calloc() replacement.
32794         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32795         AC_FUNC_CALLOC.
32796         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32797         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32798         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32799         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32800         (gl_REPLACE_CALLOC): New macro.
32801
32802 2010-06-21  Bruno Haible  <bruno@clisp.org>
32803
32804         Fix HAVE_REALLOC_POSIX misnomer.
32805         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32806         !HAVE_REALLOC_POSIX.
32807         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32808         HAVE_REALLOC_POSIX.
32809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32810         instead of HAVE_REALLOC_POSIX.
32811         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32812         HAVE_REALLOC_POSIX.
32813
32814         Use modern idiom for realloc() replacement.
32815         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32816         AC_FUNC_REALLOC.
32817         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32818         Autoconf's AC_FUNC_REALLOC.
32819         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32820         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32821         (gl_REPLACE_REALLOC): New macro.
32822         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32823
32824 2010-06-21  Bruno Haible  <bruno@clisp.org>
32825
32826         Fix HAVE_MALLOC_POSIX misnomer.
32827         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32828         !HAVE_MALLOC_POSIX.
32829         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32830         HAVE_MALLOC_POSIX.
32831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32832         instead of HAVE_MALLOC_POSIX.
32833         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32834         HAVE_MALLOC_POSIX.
32835
32836         Use modern idiom for malloc() replacement.
32837         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32838         AC_FUNC_MALLOC.
32839         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32840         Autoconf's AC_FUNC_MALLOC.
32841         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32842         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32843         (gl_REPLACE_MALLOC): New macro.
32844         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32845
32846 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32847
32848         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32849         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32850         This macro takes 3 arguments, not 4.
32851
32852 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32853
32854         ipv6: fix detection under mingw
32855         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32856         in6_addr.
32857
32858 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32859
32860         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32861         that strtod() works when cross-compiling to a glibc version known
32862         to work.
32863
32864 2010-06-15  Bruno Haible  <bruno@clisp.org>
32865
32866         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32867
32868 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32869
32870         select: Correct timeout.
32871         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32872
32873 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32874
32875         git-version-gen: init shell var to avoid env var influence
32876         * build-aux/git-version-gen (v): Init shell var to empty.
32877
32878 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32879
32880         priv-set: Don't assume that priv.h exists merely because getppriv does.
32881         See Jan Andersen's bug report about AIX 5L in
32882         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32883         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32884         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32885         * lib/priv-set.h: Likewise.
32886         * tests/test-priv-set.c: Likewise.
32887
32888 2010-06-13  Bruno Haible  <bruno@clisp.org>
32889
32890         relocatable: Make it easier to test whether to install wrappers.
32891         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32892         RELOCATABLE_VIA_WRAPPER.
32893
32894 2010-06-13  Bruno Haible  <bruno@clisp.org>
32895
32896         gnulib-tool: Display specified modules and dependencies differently.
32897         * gnulib-tool (func_show_module_list): New function.
32898         (func_import, func_create_testdir): Invoke it.
32899         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32900
32901 2010-06-13  Bruno Haible  <bruno@clisp.org>
32902
32903         gnulib-tool: Align code of func_import and func_create_testdir.
32904         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32905         specified_modules.
32906
32907 2010-06-12  Jim Meyering  <meyering@redhat.com>
32908
32909         test-inttostr: avoid spurious failure on Solaris 9
32910         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32911         to accept "%ju".  Reported by Bruno Haible.
32912
32913 2010-06-11  Jim Meyering  <meyering@redhat.com>
32914
32915         test-sys_socket: mark variables as used more readably
32916         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32917         as "used" explicitly via (void) statement casts.  This is more
32918         readable than using them in an artificial return expression.
32919         Suggestion from Bruno Haible.
32920
32921 2010-06-11  Bruno Haible  <bruno@clisp.org>
32922
32923         Avoid some more warnings from "gcc -Wwrite-strings".
32924         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32925         to 'const char *'.
32926         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32927         * tests/test-c-strcasestr.c (main): Likewise.
32928         * tests/test-mbscasestr1.c (main): Likewise.
32929         * tests/test-mbscasestr2.c (main): Likewise.
32930         * tests/test-memmem.c (main): Likewise.
32931         * tests/test-strstr.c (main): Likewise.
32932         * tests/test-strcasestr.c (main): Likewise.
32933
32934 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32935
32936         init.sh: change framework_failure_ to fail with status 99, not 1
32937         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32938         automake's parallel-tests rule that this is an unexpected failure,
32939         even if the test is listed in XFAIL_TESTS.
32940
32941 2010-06-11  Jim Meyering  <meyering@redhat.com>
32942
32943         test-inttostr: avoid warnings about 4-6KB literal strings
32944         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32945         Include "macros.h", for its definition of ASSERT.
32946         (CK): s/assert/ASSERT/
32947         * modules/inttostr-tests (Files): Add macros.h.
32948
32949         init.sh: don't use $ME_ or skip_ before they are defined
32950         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32951         their first uses.  Also hoist their companions: warn_, fail_,
32952         framework_failure_, $stderr_fileno.  Prompted by a patch from
32953         Stefano Lattarini.
32954
32955         test-sys_socket: avoid set-but-not-used warnings from gcc
32956         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32957         avoid warning about set-but-not-used variables.
32958
32959         test-xvasprintf: avoid 'const' discard warnings
32960         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32961         "const" when assigning from literal strings.
32962         (test_xasprintf): Add "void" in function argument list to placate
32963         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32964
32965         tests: avoid compilation warnings in argmatch and exclude tests...
32966         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32967         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32968         Since it always exits, declare with the "noreturn" attribute.
32969         * tests/test-argmatch.c: Likewise.
32970
32971         tests: avoid 'const' discard warnings in mbsstr tests
32972         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32973         * tests/test-mbsstr2.c (main): Likewise.
32974
32975         test-verify: avoid warning from gcc's -Wmissing-declarations
32976         * tests/test-verify.c (function): Declare to be static.
32977
32978         test-inttostr.c: include <string.h> for use of strcmp
32979         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32980
32981         test-linkat: avoid failed assertion on "other" architectures
32982         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32983         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32984         sparc: https://bugs.launchpad.net/bugs/591968
32985
32986 2010-06-11  Jim Meyering  <meyering@redhat.com>
32987
32988         printf.m4: avoid autoconf's "Expanded Before Required" warning
32989         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32990         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32991         autoconf warning.
32992
32993 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32994
32995         Replacement header templates are now named with ".in", not "_".
32996         * doc/gnulib-intro.texi: Correct.
32997
32998 2010-06-10  Jim Meyering  <meyering@redhat.com>
32999
33000         inttostr-tests: depend on snprintf, not snprintf-posix
33001         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33002         snprintf-posix, to avoid this aclocal failure:
33003           missing file gnulib-tests/vasnprintf.c
33004           configure.ac:45: error: expected source file, required through \
33005           AC_LIBSOURCES, not found
33006
33007 2010-06-10  Jim Meyering  <meyering@redhat.com>
33008
33009         inttostr: add a new function, inttostr, and tests
33010         The namesake function was not available.  The existence of the
33011         template file, inttostr.c makes its addition nontrivial.
33012         * lib/anytostr.c: Rename from inttostr.c.
33013         (anytostr): Rename from inttostr.
33014         * lib/inttostr.c: New file.
33015         * modules/inttostr (Files): Add anytostr.c.
33016         (Makefile.am): Set lib_SOURCES instead of ...
33017         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33018         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33019         * lib/offtostr.c: Likewise.
33020         * lib/uinttostr.c: Likewise.
33021         * lib/umaxtostr.c: Likewise.
33022         * modules/inttostr-tests: New file.
33023         * tests/test-inttostr.c: New file.  Test these functions.
33024
33025 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33026             Bruno Haible  <bruno@clisp.org>
33027
33028         Add "Extending Gnulib" chapter to manual.
33029         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33030         chapter.
33031         (Extending Gnulib): New chapter.
33032         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33033         chapter.
33034
33035 2010-06-09  Bruno Haible  <bruno@clisp.org>
33036
33037         Avoid relocwrapper link errors due to gnulib replacement functions.
33038         * lib/areadlink.c: Use the system's malloc, realloc functions.
33039         (areadlink): Set errno to ENOMEM explicitly.
33040         * modules/areadlink (Depends-on): Remove malloc-posix.
33041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33042
33043 2010-06-09  Bruno Haible  <bruno@clisp.org>
33044
33045         Avoid relocwrapper link errors due to gnulib replacement functions.
33046         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33047         * lib/malloca.c: Likewise.
33048         * lib/relocatable.c: Likewise.
33049         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33050         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33051         * lib/setenv.c: Use the system's malloc, realloc functions.
33052         * lib/strerror.c: Use the system's sprintf function.
33053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33054
33055 2010-06-04  Bruno Haible  <bruno@clisp.org>
33056
33057         Prefer documented low-level autoconf macro names.
33058         * m4/lib-link.m4: Use m4_translit instead of translit.
33059         * m4/environ.m4: Likewise.
33060         * m4/mathfunc.m4: Likewise.
33061         * m4/onceonly.m4: Likewise.
33062         * m4/stdint.m4: Likewise.
33063         Suggested by Eric Blake.
33064
33065 2010-06-04  Martin Lambers  <marlam@marlam.de>
33066             Bruno Haible  <bruno@clisp.org>
33067
33068         havelib: Allow library names with '+' characters.
33069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33070         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33071
33072 2010-06-09  Bruno Haible  <bruno@clisp.org>
33073
33074         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33075         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33076         realloc failed.
33077
33078 2010-06-08  Peter Simons  <simons@cryp.to>
33079
33080         maint.mk: make the news-check rule more configurable
33081         * top/maint.mk (news-check-lines-spec): New variable.
33082         (news-check): Use "sed -n 1,10p" in place of "head".
33083
33084 2010-06-07  Jim Meyering  <meyering@redhat.com>
33085
33086         do-release-commit-and-tag: fix typo in --help
33087         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33088
33089         regex: avoid new dead-code warning with gcc-4.6.0
33090         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33091         if-block containing a while-loop.  It's been unused for at least
33092         5 years.
33093
33094 2010-06-05  Bruno Haible  <bruno@clisp.org>
33095
33096         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33097         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33098
33099 2010-06-04  Bruno Haible  <bruno@clisp.org>
33100
33101         Update to GNU gettext 0.18.1.
33102         * modules/gettext (configure.ac): Require gettext infrastructure from
33103         version 0.18.1.
33104
33105 2010-06-03  Bruno Haible  <bruno@clisp.org>
33106
33107         Don't use AC_LIBOBJ with file names in subdirectories.
33108         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33109         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33110         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33111         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33112         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33113         gl_LIBUNISTRING_LIBSOURCE.
33114         (Makefile.am): Augment lib_SOURCES here, conditionally.
33115         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33116
33117 2010-06-03  Bruno Haible  <bruno@clisp.org>
33118
33119         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33120         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33121         expansion does not end with a newline.
33122         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33123         unnecessary newline.
33124
33125 2010-06-03  Bruno Haible  <bruno@clisp.org>
33126
33127         Reduce dependencies.
33128         * tests/test-quotearg.h: New file, extracted from
33129         tests/test-quotearg.c.
33130         * tests/test-quotearg-simple.c: New file, extracted from
33131         tests/test-quotearg.c.
33132         * tests/test-quotearg.c: Don't include <ctype.h>.
33133         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33134         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33135         use_quote_double_quotes, use_quotearg_colon): Moved to
33136         tests/test-quotearg.h.
33137         (results_g, flag_results, custom_quotes, custom_results): Moved
33138         to tests/test-quotearg-simple.c.
33139         (main): Moved the part that does not depend on gettext to
33140         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33141         performed.
33142         * modules/quotearg-simple: New file.
33143         * modules/quotearg-simple-tests: New file.
33144         * modules/quotearg (Depends-on): Add quotearg-simple.
33145         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33146         (Files): Add tests/test-quotearg.h.
33147         Reported by Paolo Bonzini.
33148
33149 2010-06-03  Bruno Haible  <bruno@clisp.org>
33150
33151         Reduce dependencies.
33152         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33153
33154 2010-06-03  Bruno Haible  <bruno@clisp.org>
33155
33156         time: Undefine more broken macros.
33157         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33158         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33159         Reported by Eric Blake.
33160
33161 2010-06-03  Bruno Haible  <bruno@clisp.org>
33162
33163         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33164         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33165         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33166         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33167         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33168         Reported by Ludovic Courtès <ludo@gnu.org>.
33169
33170 2010-06-02  Eric Blake  <eblake@redhat.com>
33171
33172         time: work with mingw + pthreads-win32 library
33173         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33174         if timespec is defined only in pthread.h.
33175         * modules/time (Makefile.am): Substitute it.
33176         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33177         <pthread.h>, when needed.
33178         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33179         from the library.
33180
33181 2010-05-31  Bruno Haible  <bruno@clisp.org>
33182
33183         Avoid expanding two macros in the wrong order.
33184         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33185         gl_LIBUNISTRING if it is defined.
33186         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33187         autoconf >= 2.64.
33188         Reported by Ludovic Courtès <ludo@gnu.org>.
33189
33190 2010-05-27  Jim Meyering  <meyering@redhat.com>
33191
33192         maint.mk: also prohibit "#undef" of always-defined symbols
33193         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33194         Allow more than one space before the symbol name.
33195         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33196         the regexp uses alternation.
33197
33198 2010-05-26  Eric Blake  <eblake@redhat.com>
33199
33200         maint.mk: avoid echo -e
33201         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33202         Convert all uses of echo -* to printf.
33203         Reported by Matthias Bolte.
33204
33205 2010-05-25  Bruno Haible  <bruno@clisp.org>
33206
33207         Update to GNU gettext 0.18, part 2.
33208         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33209         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33210
33211 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33212
33213         Add missing include in test-pwrite.c.
33214         * tests/test-pwrite.c: Include string.h, for strcmp.
33215
33216 2010-05-24  Bruno Haible  <bruno@clisp.org>
33217
33218         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33219
33220 2010-05-24  Bruno Haible  <bruno@clisp.org>
33221
33222         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33223         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33224         iconveh_error argument.
33225         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33226         U_STRCONV_TO_LOCALE.
33227         * lib/unistr/u16-strcoll.c: Likewise.
33228         * lib/unistr/u32-strcoll.c: Likewise.
33229         * modules/unistr/u8-strcoll (Depends-on): Add
33230         uniconv/u8-strconv-to-enc, localcharset. Remove
33231         uniconv/u8-strconv-to-locale.
33232         (configure.ac): Bump version number.
33233         * modules/unistr/u16-strcoll (Depends-on): Add
33234         uniconv/u16-strconv-to-enc, localcharset. Remove
33235         uniconv/u16-strconv-to-locale.
33236         (configure.ac): Bump version number.
33237         * modules/unistr/u32-strcoll (Depends-on): Add
33238         uniconv/u32-strconv-to-enc, localcharset. Remove
33239         uniconv/u32-strconv-to-locale.
33240         (configure.ac): Bump version number.
33241
33242 2010-05-24  Bruno Haible  <bruno@clisp.org>
33243
33244         Avoid a test failure on NetBSD 5.0.
33245         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33246         an iconv() bug.
33247
33248 2010-05-24  Bruno Haible  <bruno@clisp.org>
33249
33250         Adjust #include directive style.
33251         * modules/regex (Includes): Recommend to write <regex.h>.
33252
33253 2010-05-24  Bruno Haible  <bruno@clisp.org>
33254
33255         regex: Don't require alloca.
33256         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33257         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33258         only inside if (0).
33259
33260 2010-05-23  Jim Meyering  <meyering@redhat.com>
33261
33262         test-renameat.c: include <sys/stat.h>
33263         * tests/test-renameat.c: Include <sys/stat.h>; required for
33264         definition of S_IS* macros.
33265
33266 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33267
33268         Update maintainer documentation for 'relocatable-prog' module.
33269         * doc/relocatable-maint.texi: Update.
33270         Comments by Bruno Haible.
33271
33272 2010-05-23  Bruno Haible  <bruno@clisp.org>
33273
33274         git-merge-changelog: Enable --split-merged-entry by default.
33275         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33276         (usage): Don't mention this option any more.
33277         Reported by Ralf Wildenhues.
33278
33279 2010-05-23  Jim Meyering  <meyering@redhat.com>
33280
33281         test-pwrite: do not leave behind a test file named "out"
33282         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33283         The trivial-looking use of init.sh is really necessary.
33284         It ensures that the temporary file, "out", is created in
33285         a temporary directory, and removed upon termination.
33286         * tests/test-pwrite.sh: Re-add file.
33287         * modules/pwrite-tests: Reference it.
33288
33289 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33290
33291         Fix output redirection buglet in init.sh.
33292         * tests/init.sh: Fix redirection of stderr.
33293
33294 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33295
33296         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33297
33298 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33299
33300         * modules/valgrind-tests: New file.
33301         * m4/valgrind-tests.m4: New file.
33302         * doc/valgrind-tests.texi: New file.
33303         * doc/gnulib.texi (Running self-tests under valgrind): New
33304         section.
33305
33306 2010-05-19  Bruno Haible  <bruno@clisp.org>
33307
33308         Clean up dead code in recent commit.
33309         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33310         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33311         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33312         Suggested by Paolo Bonzini.
33313
33314 2010-05-19  Bruno Haible  <bruno@clisp.org>
33315
33316         Avoid valgrind error reports from libunistring.
33317         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33318         * modules/libunistring (Files): Add it.
33319         * modules/libunistring-optional (Files): Likewise.
33320
33321 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33322             Bruno Haible  <bruno@clisp.org>
33323
33324         New module 'libunistring-optional'.
33325         * modules/libunistring-optional: New file.
33326         * m4/libunistring-base.m4: New file.
33327         * m4/libunistring-optional.m4: New file.
33328         * lib/unicase.in.h: Renamed from lib/unicase.h.
33329         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33330         * lib/unictype.in.h: Renamed from lib/unictype.h.
33331         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33332         * lib/uniname.in.h: Renamed from lib/uniname.h.
33333         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33334         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33335         * lib/unistr.in.h: Renamed from lib/unistr.h.
33336         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33337         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33338         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33339         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33340         gl_LIBUNISTRING. If the library was found, determine the installed
33341         version and set LIBUNISTRING_VERSION.
33342         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33343         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33344         handle a configuration option --with-included-libunistring.
33345         * modules/libunistring (Files): Add m4/absolute-header.m4.
33346         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33347         Add m4/libunistring-base.m4.
33348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33349         (Makefile.am): Build unicase.h from unicase.in.h.
33350         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33351         Add m4/libunistring-base.m4.
33352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33353         (Makefile.am): Build uniconv.h from uniconv.in.h.
33354         * modules/unictype/base (Files): Use unictype.in.h instead of
33355         unictype.h. Add m4/libunistring-base.m4.
33356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33357         (Makefile.am): Build unictype.h from unictype.in.h.
33358         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33359         Add m4/libunistring-base.m4.
33360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33361         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33362         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33363         Add m4/libunistring-base.m4.
33364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33365         (Makefile.am): Build uniname.h from uniname.in.h.
33366         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33367         Add m4/libunistring-base.m4.
33368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33369         (Makefile.am): Build uninorm.h from uninorm.in.h.
33370         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33371         unistdio.h. Add m4/libunistring-base.m4.
33372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33373         (Makefile.am): Build unistdio.h from unistdio.in.h.
33374         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33375         Add m4/libunistring-base.m4.
33376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33377         (Makefile.am): Build unistr.h from unistr.in.h.
33378         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33379         Add m4/libunistring-base.m4.
33380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33381         (Makefile.am): Build unitypes.h from unitypes.in.h.
33382         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33383         Add m4/libunistring-base.m4.
33384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33385         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33386         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33387         uniwidth.h. Add m4/libunistring-base.m4.
33388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33389         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33390         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33391         instead of augmenting lib_SOURCES.
33392         * modules/unicase/empty-suffix-context: Likewise.
33393         * modules/unicase/locale-language: Likewise.
33394         * modules/unicase/tolower: Likewise.
33395         * modules/unicase/totitle: Likewise.
33396         * modules/unicase/toupper: Likewise.
33397         * modules/unicase/u8-casecmp: Likewise.
33398         * modules/unicase/u8-casecoll: Likewise.
33399         * modules/unicase/u8-casefold: Likewise.
33400         * modules/unicase/u8-casexfrm: Likewise.
33401         * modules/unicase/u8-ct-casefold: Likewise.
33402         * modules/unicase/u8-ct-tolower: Likewise.
33403         * modules/unicase/u8-ct-totitle: Likewise.
33404         * modules/unicase/u8-ct-toupper: Likewise.
33405         * modules/unicase/u8-is-cased: Likewise.
33406         * modules/unicase/u8-is-casefolded: Likewise.
33407         * modules/unicase/u8-is-lowercase: Likewise.
33408         * modules/unicase/u8-is-titlecase: Likewise.
33409         * modules/unicase/u8-is-uppercase: Likewise.
33410         * modules/unicase/u8-prefix-context: Likewise.
33411         * modules/unicase/u8-suffix-context: Likewise.
33412         * modules/unicase/u8-tolower: Likewise.
33413         * modules/unicase/u8-totitle: Likewise.
33414         * modules/unicase/u8-toupper: Likewise.
33415         * modules/unicase/u16-casecmp: Likewise.
33416         * modules/unicase/u16-casecoll: Likewise.
33417         * modules/unicase/u16-casefold: Likewise.
33418         * modules/unicase/u16-casexfrm: Likewise.
33419         * modules/unicase/u16-ct-casefold: Likewise.
33420         * modules/unicase/u16-ct-tolower: Likewise.
33421         * modules/unicase/u16-ct-totitle: Likewise.
33422         * modules/unicase/u16-ct-toupper: Likewise.
33423         * modules/unicase/u16-is-cased: Likewise.
33424         * modules/unicase/u16-is-casefolded: Likewise.
33425         * modules/unicase/u16-is-lowercase: Likewise.
33426         * modules/unicase/u16-is-titlecase: Likewise.
33427         * modules/unicase/u16-is-uppercase: Likewise.
33428         * modules/unicase/u16-prefix-context: Likewise.
33429         * modules/unicase/u16-suffix-context: Likewise.
33430         * modules/unicase/u16-tolower: Likewise.
33431         * modules/unicase/u16-totitle: Likewise.
33432         * modules/unicase/u16-toupper: Likewise.
33433         * modules/unicase/u32-casecmp: Likewise.
33434         * modules/unicase/u32-casecoll: Likewise.
33435         * modules/unicase/u32-casefold: Likewise.
33436         * modules/unicase/u32-casexfrm: Likewise.
33437         * modules/unicase/u32-ct-casefold: Likewise.
33438         * modules/unicase/u32-ct-tolower: Likewise.
33439         * modules/unicase/u32-ct-totitle: Likewise.
33440         * modules/unicase/u32-ct-toupper: Likewise.
33441         * modules/unicase/u32-is-cased: Likewise.
33442         * modules/unicase/u32-is-casefolded: Likewise.
33443         * modules/unicase/u32-is-lowercase: Likewise.
33444         * modules/unicase/u32-is-titlecase: Likewise.
33445         * modules/unicase/u32-is-uppercase: Likewise.
33446         * modules/unicase/u32-prefix-context: Likewise.
33447         * modules/unicase/u32-suffix-context: Likewise.
33448         * modules/unicase/u32-tolower: Likewise.
33449         * modules/unicase/u32-totitle: Likewise.
33450         * modules/unicase/u32-toupper: Likewise.
33451         * modules/unicase/ulc-casecmp: Likewise.
33452         * modules/unicase/ulc-casecoll: Likewise.
33453         * modules/unicase/ulc-casexfrm: Likewise.
33454         * modules/uniconv/u8-conv-from-enc: Likewise.
33455         * modules/uniconv/u8-conv-to-enc: Likewise.
33456         * modules/uniconv/u8-strconv-from-enc: Likewise.
33457         * modules/uniconv/u8-strconv-from-locale: Likewise.
33458         * modules/uniconv/u8-strconv-to-enc: Likewise.
33459         * modules/uniconv/u8-strconv-to-locale: Likewise.
33460         * modules/uniconv/u16-conv-from-enc: Likewise.
33461         * modules/uniconv/u16-conv-to-enc: Likewise.
33462         * modules/uniconv/u16-strconv-from-enc: Likewise.
33463         * modules/uniconv/u16-strconv-from-locale: Likewise.
33464         * modules/uniconv/u16-strconv-to-enc: Likewise.
33465         * modules/uniconv/u16-strconv-to-locale: Likewise.
33466         * modules/uniconv/u32-conv-from-enc: Likewise.
33467         * modules/uniconv/u32-conv-to-enc: Likewise.
33468         * modules/uniconv/u32-strconv-from-enc: Likewise.
33469         * modules/uniconv/u32-strconv-from-locale: Likewise.
33470         * modules/uniconv/u32-strconv-to-enc: Likewise.
33471         * modules/uniconv/u32-strconv-to-locale: Likewise.
33472         * modules/unictype/bidicategory-byname: Likewise.
33473         * modules/unictype/bidicategory-name: Likewise.
33474         * modules/unictype/bidicategory-of: Likewise.
33475         * modules/unictype/bidicategory-test: Likewise.
33476         * modules/unictype/block-list: Likewise.
33477         * modules/unictype/block-test: Likewise.
33478         * modules/unictype/category-C: Likewise.
33479         * modules/unictype/category-Cc: Likewise.
33480         * modules/unictype/category-Cf: Likewise.
33481         * modules/unictype/category-Cn: Likewise.
33482         * modules/unictype/category-Co: Likewise.
33483         * modules/unictype/category-Cs: Likewise.
33484         * modules/unictype/category-L: Likewise.
33485         * modules/unictype/category-Ll: Likewise.
33486         * modules/unictype/category-Lm: Likewise.
33487         * modules/unictype/category-Lo: Likewise.
33488         * modules/unictype/category-Lt: Likewise.
33489         * modules/unictype/category-Lu: Likewise.
33490         * modules/unictype/category-M: Likewise.
33491         * modules/unictype/category-Mc: Likewise.
33492         * modules/unictype/category-Me: Likewise.
33493         * modules/unictype/category-Mn: Likewise.
33494         * modules/unictype/category-N: Likewise.
33495         * modules/unictype/category-Nd: Likewise.
33496         * modules/unictype/category-Nl: Likewise.
33497         * modules/unictype/category-No: Likewise.
33498         * modules/unictype/category-P: Likewise.
33499         * modules/unictype/category-Pc: Likewise.
33500         * modules/unictype/category-Pd: Likewise.
33501         * modules/unictype/category-Pe: Likewise.
33502         * modules/unictype/category-Pf: Likewise.
33503         * modules/unictype/category-Pi: Likewise.
33504         * modules/unictype/category-Po: Likewise.
33505         * modules/unictype/category-Ps: Likewise.
33506         * modules/unictype/category-S: Likewise.
33507         * modules/unictype/category-Sc: Likewise.
33508         * modules/unictype/category-Sk: Likewise.
33509         * modules/unictype/category-Sm: Likewise.
33510         * modules/unictype/category-So: Likewise.
33511         * modules/unictype/category-Z: Likewise.
33512         * modules/unictype/category-Zl: Likewise.
33513         * modules/unictype/category-Zp: Likewise.
33514         * modules/unictype/category-Zs: Likewise.
33515         * modules/unictype/category-and: Likewise.
33516         * modules/unictype/category-and-not: Likewise.
33517         * modules/unictype/category-byname: Likewise.
33518         * modules/unictype/category-name: Likewise.
33519         * modules/unictype/category-none: Likewise.
33520         * modules/unictype/category-of: Likewise.
33521         * modules/unictype/category-or: Likewise.
33522         * modules/unictype/category-test: Likewise.
33523         * modules/unictype/combining-class: Likewise.
33524         * modules/unictype/ctype-alnum: Likewise.
33525         * modules/unictype/ctype-alpha: Likewise.
33526         * modules/unictype/ctype-blank: Likewise.
33527         * modules/unictype/ctype-cntrl: Likewise.
33528         * modules/unictype/ctype-digit: Likewise.
33529         * modules/unictype/ctype-graph: Likewise.
33530         * modules/unictype/ctype-lower: Likewise.
33531         * modules/unictype/ctype-print: Likewise.
33532         * modules/unictype/ctype-punct: Likewise.
33533         * modules/unictype/ctype-space: Likewise.
33534         * modules/unictype/ctype-upper: Likewise.
33535         * modules/unictype/ctype-xdigit: Likewise.
33536         * modules/unictype/decimal-digit: Likewise.
33537         * modules/unictype/digit: Likewise.
33538         * modules/unictype/mirror: Likewise.
33539         * modules/unictype/numeric: Likewise.
33540         * modules/unictype/property-alphabetic: Likewise.
33541         * modules/unictype/property-ascii-hex-digit: Likewise.
33542         * modules/unictype/property-bidi-arabic-digit: Likewise.
33543         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33544         * modules/unictype/property-bidi-block-separator: Likewise.
33545         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33546         * modules/unictype/property-bidi-common-separator: Likewise.
33547         * modules/unictype/property-bidi-control: Likewise.
33548         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33549         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33550         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33551         * modules/unictype/property-bidi-european-digit: Likewise.
33552         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33553         * modules/unictype/property-bidi-left-to-right: Likewise.
33554         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33555         * modules/unictype/property-bidi-other-neutral: Likewise.
33556         * modules/unictype/property-bidi-pdf: Likewise.
33557         * modules/unictype/property-bidi-segment-separator: Likewise.
33558         * modules/unictype/property-bidi-whitespace: Likewise.
33559         * modules/unictype/property-byname: Likewise.
33560         * modules/unictype/property-combining: Likewise.
33561         * modules/unictype/property-composite: Likewise.
33562         * modules/unictype/property-currency-symbol: Likewise.
33563         * modules/unictype/property-dash: Likewise.
33564         * modules/unictype/property-decimal-digit: Likewise.
33565         * modules/unictype/property-default-ignorable-code-point: Likewise.
33566         * modules/unictype/property-deprecated: Likewise.
33567         * modules/unictype/property-diacritic: Likewise.
33568         * modules/unictype/property-extender: Likewise.
33569         * modules/unictype/property-format-control: Likewise.
33570         * modules/unictype/property-grapheme-base: Likewise.
33571         * modules/unictype/property-grapheme-extend: Likewise.
33572         * modules/unictype/property-grapheme-link: Likewise.
33573         * modules/unictype/property-hex-digit: Likewise.
33574         * modules/unictype/property-hyphen: Likewise.
33575         * modules/unictype/property-id-continue: Likewise.
33576         * modules/unictype/property-id-start: Likewise.
33577         * modules/unictype/property-ideographic: Likewise.
33578         * modules/unictype/property-ids-binary-operator: Likewise.
33579         * modules/unictype/property-ids-trinary-operator: Likewise.
33580         * modules/unictype/property-ignorable-control: Likewise.
33581         * modules/unictype/property-iso-control: Likewise.
33582         * modules/unictype/property-join-control: Likewise.
33583         * modules/unictype/property-left-of-pair: Likewise.
33584         * modules/unictype/property-line-separator: Likewise.
33585         * modules/unictype/property-logical-order-exception: Likewise.
33586         * modules/unictype/property-lowercase: Likewise.
33587         * modules/unictype/property-math: Likewise.
33588         * modules/unictype/property-non-break: Likewise.
33589         * modules/unictype/property-not-a-character: Likewise.
33590         * modules/unictype/property-numeric: Likewise.
33591         * modules/unictype/property-other-alphabetic: Likewise.
33592         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33593         * modules/unictype/property-other-grapheme-extend: Likewise.
33594         * modules/unictype/property-other-id-continue: Likewise.
33595         * modules/unictype/property-other-id-start: Likewise.
33596         * modules/unictype/property-other-lowercase: Likewise.
33597         * modules/unictype/property-other-math: Likewise.
33598         * modules/unictype/property-other-uppercase: Likewise.
33599         * modules/unictype/property-paired-punctuation: Likewise.
33600         * modules/unictype/property-paragraph-separator: Likewise.
33601         * modules/unictype/property-pattern-syntax: Likewise.
33602         * modules/unictype/property-pattern-white-space: Likewise.
33603         * modules/unictype/property-private-use: Likewise.
33604         * modules/unictype/property-punctuation: Likewise.
33605         * modules/unictype/property-quotation-mark: Likewise.
33606         * modules/unictype/property-radical: Likewise.
33607         * modules/unictype/property-sentence-terminal: Likewise.
33608         * modules/unictype/property-soft-dotted: Likewise.
33609         * modules/unictype/property-space: Likewise.
33610         * modules/unictype/property-terminal-punctuation: Likewise.
33611         * modules/unictype/property-test: Likewise.
33612         * modules/unictype/property-titlecase: Likewise.
33613         * modules/unictype/property-unassigned-code-value: Likewise.
33614         * modules/unictype/property-unified-ideograph: Likewise.
33615         * modules/unictype/property-uppercase: Likewise.
33616         * modules/unictype/property-variation-selector: Likewise.
33617         * modules/unictype/property-white-space: Likewise.
33618         * modules/unictype/property-xid-continue: Likewise.
33619         * modules/unictype/property-xid-start: Likewise.
33620         * modules/unictype/property-zero-width: Likewise.
33621         * modules/unictype/scripts: Likewise.
33622         * modules/unictype/syntax-c-ident: Likewise.
33623         * modules/unictype/syntax-c-whitespace: Likewise.
33624         * modules/unictype/syntax-java-ident: Likewise.
33625         * modules/unictype/syntax-java-whitespace: Likewise.
33626         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33627         * modules/unilbrk/u8-width-linebreaks: Likewise.
33628         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33629         * modules/unilbrk/u16-width-linebreaks: Likewise.
33630         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33631         * modules/unilbrk/u32-width-linebreaks: Likewise.
33632         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33633         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33634         * modules/uniname/uniname: Likewise.
33635         * modules/uninorm/canonical-decomposition: Likewise.
33636         * modules/uninorm/composition: Likewise.
33637         * modules/uninorm/decomposing-form: Likewise.
33638         * modules/uninorm/decomposition: Likewise.
33639         * modules/uninorm/filter: Likewise.
33640         * modules/uninorm/nfc: Likewise.
33641         * modules/uninorm/nfd: Likewise.
33642         * modules/uninorm/nfkc: Likewise.
33643         * modules/uninorm/nfkd: Likewise.
33644         * modules/uninorm/u8-normalize: Likewise.
33645         * modules/uninorm/u8-normcmp: Likewise.
33646         * modules/uninorm/u8-normcoll: Likewise.
33647         * modules/uninorm/u8-normxfrm: Likewise.
33648         * modules/uninorm/u16-normalize: Likewise.
33649         * modules/uninorm/u16-normcmp: Likewise.
33650         * modules/uninorm/u16-normcoll: Likewise.
33651         * modules/uninorm/u16-normxfrm: Likewise.
33652         * modules/uninorm/u32-normalize: Likewise.
33653         * modules/uninorm/u32-normcmp: Likewise.
33654         * modules/uninorm/u32-normcoll: Likewise.
33655         * modules/uninorm/u32-normxfrm: Likewise.
33656         * modules/unistdio/u8-asnprintf: Likewise.
33657         * modules/unistdio/u8-asprintf: Likewise.
33658         * modules/unistdio/u8-snprintf: Likewise.
33659         * modules/unistdio/u8-sprintf: Likewise.
33660         * modules/unistdio/u8-u8-asnprintf: Likewise.
33661         * modules/unistdio/u8-u8-asprintf: Likewise.
33662         * modules/unistdio/u8-u8-snprintf: Likewise.
33663         * modules/unistdio/u8-u8-sprintf: Likewise.
33664         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33665         * modules/unistdio/u8-u8-vasprintf: Likewise.
33666         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33667         * modules/unistdio/u8-u8-vsprintf: Likewise.
33668         * modules/unistdio/u8-vasnprintf: Likewise.
33669         * modules/unistdio/u8-vasprintf: Likewise.
33670         * modules/unistdio/u8-vsnprintf: Likewise.
33671         * modules/unistdio/u8-vsprintf: Likewise.
33672         * modules/unistdio/u16-asnprintf: Likewise.
33673         * modules/unistdio/u16-asprintf: Likewise.
33674         * modules/unistdio/u16-snprintf: Likewise.
33675         * modules/unistdio/u16-sprintf: Likewise.
33676         * modules/unistdio/u16-u16-asnprintf: Likewise.
33677         * modules/unistdio/u16-u16-asprintf: Likewise.
33678         * modules/unistdio/u16-u16-snprintf: Likewise.
33679         * modules/unistdio/u16-u16-sprintf: Likewise.
33680         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33681         * modules/unistdio/u16-u16-vasprintf: Likewise.
33682         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33683         * modules/unistdio/u16-u16-vsprintf: Likewise.
33684         * modules/unistdio/u16-vasnprintf: Likewise.
33685         * modules/unistdio/u16-vasprintf: Likewise.
33686         * modules/unistdio/u16-vsnprintf: Likewise.
33687         * modules/unistdio/u16-vsprintf: Likewise.
33688         * modules/unistdio/u32-asnprintf: Likewise.
33689         * modules/unistdio/u32-asprintf: Likewise.
33690         * modules/unistdio/u32-snprintf: Likewise.
33691         * modules/unistdio/u32-sprintf: Likewise.
33692         * modules/unistdio/u32-u32-asnprintf: Likewise.
33693         * modules/unistdio/u32-u32-asprintf: Likewise.
33694         * modules/unistdio/u32-u32-snprintf: Likewise.
33695         * modules/unistdio/u32-u32-sprintf: Likewise.
33696         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33697         * modules/unistdio/u32-u32-vasprintf: Likewise.
33698         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33699         * modules/unistdio/u32-u32-vsprintf: Likewise.
33700         * modules/unistdio/u32-vasnprintf: Likewise.
33701         * modules/unistdio/u32-vasprintf: Likewise.
33702         * modules/unistdio/u32-vsnprintf: Likewise.
33703         * modules/unistdio/u32-vsprintf: Likewise.
33704         * modules/unistdio/ulc-asnprintf: Likewise.
33705         * modules/unistdio/ulc-asprintf: Likewise.
33706         * modules/unistdio/ulc-fprintf: Likewise.
33707         * modules/unistdio/ulc-snprintf: Likewise.
33708         * modules/unistdio/ulc-sprintf: Likewise.
33709         * modules/unistdio/ulc-vasnprintf: Likewise.
33710         * modules/unistdio/ulc-vasprintf: Likewise.
33711         * modules/unistdio/ulc-vfprintf: Likewise.
33712         * modules/unistdio/ulc-vsnprintf: Likewise.
33713         * modules/unistdio/ulc-vsprintf: Likewise.
33714         * modules/unistr/u8-check: Likewise.
33715         * modules/unistr/u8-chr: Likewise.
33716         * modules/unistr/u8-cmp: Likewise.
33717         * modules/unistr/u8-cmp2: Likewise.
33718         * modules/unistr/u8-cpy: Likewise.
33719         * modules/unistr/u8-cpy-alloc: Likewise.
33720         * modules/unistr/u8-endswith: Likewise.
33721         * modules/unistr/u8-mblen: Likewise.
33722         * modules/unistr/u8-mbsnlen: Likewise.
33723         * modules/unistr/u8-mbtouc: Likewise.
33724         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33725         * modules/unistr/u8-mbtoucr: Likewise.
33726         * modules/unistr/u8-move: Likewise.
33727         * modules/unistr/u8-next: Likewise.
33728         * modules/unistr/u8-prev: Likewise.
33729         * modules/unistr/u8-set: Likewise.
33730         * modules/unistr/u8-startswith: Likewise.
33731         * modules/unistr/u8-stpcpy: Likewise.
33732         * modules/unistr/u8-stpncpy: Likewise.
33733         * modules/unistr/u8-strcat: Likewise.
33734         * modules/unistr/u8-strchr: Likewise.
33735         * modules/unistr/u8-strcmp: Likewise.
33736         * modules/unistr/u8-strcoll: Likewise.
33737         * modules/unistr/u8-strcpy: Likewise.
33738         * modules/unistr/u8-strcspn: Likewise.
33739         * modules/unistr/u8-strdup: Likewise.
33740         * modules/unistr/u8-strlen: Likewise.
33741         * modules/unistr/u8-strmblen: Likewise.
33742         * modules/unistr/u8-strmbtouc: Likewise.
33743         * modules/unistr/u8-strncat: Likewise.
33744         * modules/unistr/u8-strncmp: Likewise.
33745         * modules/unistr/u8-strncpy: Likewise.
33746         * modules/unistr/u8-strnlen: Likewise.
33747         * modules/unistr/u8-strpbrk: Likewise.
33748         * modules/unistr/u8-strrchr: Likewise.
33749         * modules/unistr/u8-strspn: Likewise.
33750         * modules/unistr/u8-strstr: Likewise.
33751         * modules/unistr/u8-strtok: Likewise.
33752         * modules/unistr/u8-to-u16: Likewise.
33753         * modules/unistr/u8-to-u32: Likewise.
33754         * modules/unistr/u8-uctomb: Likewise.
33755         * modules/unistr/u16-check: Likewise.
33756         * modules/unistr/u16-chr: Likewise.
33757         * modules/unistr/u16-cmp: Likewise.
33758         * modules/unistr/u16-cmp2: Likewise.
33759         * modules/unistr/u16-cpy: Likewise.
33760         * modules/unistr/u16-cpy-alloc: Likewise.
33761         * modules/unistr/u16-endswith: Likewise.
33762         * modules/unistr/u16-mblen: Likewise.
33763         * modules/unistr/u16-mbsnlen: Likewise.
33764         * modules/unistr/u16-mbtouc: Likewise.
33765         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33766         * modules/unistr/u16-mbtoucr: Likewise.
33767         * modules/unistr/u16-move: Likewise.
33768         * modules/unistr/u16-next: Likewise.
33769         * modules/unistr/u16-prev: Likewise.
33770         * modules/unistr/u16-set: Likewise.
33771         * modules/unistr/u16-startswith: Likewise.
33772         * modules/unistr/u16-stpcpy: Likewise.
33773         * modules/unistr/u16-stpncpy: Likewise.
33774         * modules/unistr/u16-strcat: Likewise.
33775         * modules/unistr/u16-strchr: Likewise.
33776         * modules/unistr/u16-strcmp: Likewise.
33777         * modules/unistr/u16-strcoll: Likewise.
33778         * modules/unistr/u16-strcpy: Likewise.
33779         * modules/unistr/u16-strcspn: Likewise.
33780         * modules/unistr/u16-strdup: Likewise.
33781         * modules/unistr/u16-strlen: Likewise.
33782         * modules/unistr/u16-strmblen: Likewise.
33783         * modules/unistr/u16-strmbtouc: Likewise.
33784         * modules/unistr/u16-strncat: Likewise.
33785         * modules/unistr/u16-strncmp: Likewise.
33786         * modules/unistr/u16-strncpy: Likewise.
33787         * modules/unistr/u16-strnlen: Likewise.
33788         * modules/unistr/u16-strpbrk: Likewise.
33789         * modules/unistr/u16-strrchr: Likewise.
33790         * modules/unistr/u16-strspn: Likewise.
33791         * modules/unistr/u16-strstr: Likewise.
33792         * modules/unistr/u16-strtok: Likewise.
33793         * modules/unistr/u16-to-u32: Likewise.
33794         * modules/unistr/u16-to-u8: Likewise.
33795         * modules/unistr/u16-uctomb: Likewise.
33796         * modules/unistr/u32-check: Likewise.
33797         * modules/unistr/u32-chr: Likewise.
33798         * modules/unistr/u32-cmp: Likewise.
33799         * modules/unistr/u32-cmp2: Likewise.
33800         * modules/unistr/u32-cpy: Likewise.
33801         * modules/unistr/u32-cpy-alloc: Likewise.
33802         * modules/unistr/u32-endswith: Likewise.
33803         * modules/unistr/u32-mblen: Likewise.
33804         * modules/unistr/u32-mbsnlen: Likewise.
33805         * modules/unistr/u32-mbtouc: Likewise.
33806         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33807         * modules/unistr/u32-mbtoucr: Likewise.
33808         * modules/unistr/u32-move: Likewise.
33809         * modules/unistr/u32-next: Likewise.
33810         * modules/unistr/u32-prev: Likewise.
33811         * modules/unistr/u32-set: Likewise.
33812         * modules/unistr/u32-startswith: Likewise.
33813         * modules/unistr/u32-stpcpy: Likewise.
33814         * modules/unistr/u32-stpncpy: Likewise.
33815         * modules/unistr/u32-strcat: Likewise.
33816         * modules/unistr/u32-strchr: Likewise.
33817         * modules/unistr/u32-strcmp: Likewise.
33818         * modules/unistr/u32-strcoll: Likewise.
33819         * modules/unistr/u32-strcpy: Likewise.
33820         * modules/unistr/u32-strcspn: Likewise.
33821         * modules/unistr/u32-strdup: Likewise.
33822         * modules/unistr/u32-strlen: Likewise.
33823         * modules/unistr/u32-strmblen: Likewise.
33824         * modules/unistr/u32-strmbtouc: Likewise.
33825         * modules/unistr/u32-strncat: Likewise.
33826         * modules/unistr/u32-strncmp: Likewise.
33827         * modules/unistr/u32-strncpy: Likewise.
33828         * modules/unistr/u32-strnlen: Likewise.
33829         * modules/unistr/u32-strpbrk: Likewise.
33830         * modules/unistr/u32-strrchr: Likewise.
33831         * modules/unistr/u32-strspn: Likewise.
33832         * modules/unistr/u32-strstr: Likewise.
33833         * modules/unistr/u32-strtok: Likewise.
33834         * modules/unistr/u32-to-u16: Likewise.
33835         * modules/unistr/u32-to-u8: Likewise.
33836         * modules/unistr/u32-uctomb: Likewise.
33837         * modules/uniwbrk/u8-wordbreaks: Likewise.
33838         * modules/uniwbrk/u16-wordbreaks: Likewise.
33839         * modules/uniwbrk/u32-wordbreaks: Likewise.
33840         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33841         * modules/uniwbrk/wordbreak-property: Likewise.
33842         * modules/uniwidth/u8-strwidth: Likewise.
33843         * modules/uniwidth/u8-width: Likewise.
33844         * modules/uniwidth/u16-strwidth: Likewise.
33845         * modules/uniwidth/u16-width: Likewise.
33846         * modules/uniwidth/u32-strwidth: Likewise.
33847         * modules/uniwidth/u32-width: Likewise.
33848         * modules/uniwidth/width: Likewise.
33849         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33850         with $(LIBUNISTRING).
33851         * modules/unicase/ignorable-tests: Likewise.
33852         * modules/unicase/locale-language-tests: Likewise.
33853         * modules/unicase/tolower-tests: Likewise.
33854         * modules/unicase/totitle-tests: Likewise.
33855         * modules/unicase/toupper-tests: Likewise.
33856         * modules/unicase/u8-casecmp-tests: Likewise.
33857         * modules/unicase/u8-casecoll-tests: Likewise.
33858         * modules/unicase/u8-casefold-tests: Likewise.
33859         * modules/unicase/u8-is-cased-tests: Likewise.
33860         * modules/unicase/u8-is-casefolded-tests: Likewise.
33861         * modules/unicase/u8-is-lowercase-tests: Likewise.
33862         * modules/unicase/u8-is-titlecase-tests: Likewise.
33863         * modules/unicase/u8-is-uppercase-tests: Likewise.
33864         * modules/unicase/u8-tolower-tests: Likewise.
33865         * modules/unicase/u8-totitle-tests: Likewise.
33866         * modules/unicase/u8-toupper-tests: Likewise.
33867         * modules/unicase/u16-casecmp-tests: Likewise.
33868         * modules/unicase/u16-casecoll-tests: Likewise.
33869         * modules/unicase/u16-casefold-tests: Likewise.
33870         * modules/unicase/u16-is-cased-tests: Likewise.
33871         * modules/unicase/u16-is-casefolded-tests: Likewise.
33872         * modules/unicase/u16-is-lowercase-tests: Likewise.
33873         * modules/unicase/u16-is-titlecase-tests: Likewise.
33874         * modules/unicase/u16-is-uppercase-tests: Likewise.
33875         * modules/unicase/u16-tolower-tests: Likewise.
33876         * modules/unicase/u16-totitle-tests: Likewise.
33877         * modules/unicase/u16-toupper-tests: Likewise.
33878         * modules/unicase/u32-casecmp-tests: Likewise.
33879         * modules/unicase/u32-casecoll-tests: Likewise.
33880         * modules/unicase/u32-casefold-tests: Likewise.
33881         * modules/unicase/u32-is-cased-tests: Likewise.
33882         * modules/unicase/u32-is-casefolded-tests: Likewise.
33883         * modules/unicase/u32-is-lowercase-tests: Likewise.
33884         * modules/unicase/u32-is-titlecase-tests: Likewise.
33885         * modules/unicase/u32-is-uppercase-tests: Likewise.
33886         * modules/unicase/u32-tolower-tests: Likewise.
33887         * modules/unicase/u32-totitle-tests: Likewise.
33888         * modules/unicase/u32-toupper-tests: Likewise.
33889         * modules/unicase/ulc-casecmp-tests: Likewise.
33890         * modules/unicase/ulc-casecoll-tests: Likewise.
33891         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33892         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33893         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33894         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33895         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33896         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33897         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33898         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33899         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33900         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33901         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33902         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33903         * modules/unictype/bidicategory-byname-tests: Likewise.
33904         * modules/unictype/bidicategory-name-tests: Likewise.
33905         * modules/unictype/bidicategory-of-tests: Likewise.
33906         * modules/unictype/bidicategory-test-tests: Likewise.
33907         * modules/unictype/block-list-tests: Likewise.
33908         * modules/unictype/block-of-tests: Likewise.
33909         * modules/unictype/block-test-tests: Likewise.
33910         * modules/unictype/category-C-tests: Likewise.
33911         * modules/unictype/category-Cc-tests: Likewise.
33912         * modules/unictype/category-Cf-tests: Likewise.
33913         * modules/unictype/category-Cn-tests: Likewise.
33914         * modules/unictype/category-Co-tests: Likewise.
33915         * modules/unictype/category-Cs-tests: Likewise.
33916         * modules/unictype/category-L-tests: Likewise.
33917         * modules/unictype/category-Ll-tests: Likewise.
33918         * modules/unictype/category-Lm-tests: Likewise.
33919         * modules/unictype/category-Lo-tests: Likewise.
33920         * modules/unictype/category-Lt-tests: Likewise.
33921         * modules/unictype/category-Lu-tests: Likewise.
33922         * modules/unictype/category-M-tests: Likewise.
33923         * modules/unictype/category-Mc-tests: Likewise.
33924         * modules/unictype/category-Me-tests: Likewise.
33925         * modules/unictype/category-Mn-tests: Likewise.
33926         * modules/unictype/category-N-tests: Likewise.
33927         * modules/unictype/category-Nd-tests: Likewise.
33928         * modules/unictype/category-Nl-tests: Likewise.
33929         * modules/unictype/category-No-tests: Likewise.
33930         * modules/unictype/category-P-tests: Likewise.
33931         * modules/unictype/category-Pc-tests: Likewise.
33932         * modules/unictype/category-Pd-tests: Likewise.
33933         * modules/unictype/category-Pe-tests: Likewise.
33934         * modules/unictype/category-Pf-tests: Likewise.
33935         * modules/unictype/category-Pi-tests: Likewise.
33936         * modules/unictype/category-Po-tests: Likewise.
33937         * modules/unictype/category-Ps-tests: Likewise.
33938         * modules/unictype/category-S-tests: Likewise.
33939         * modules/unictype/category-Sc-tests: Likewise.
33940         * modules/unictype/category-Sk-tests: Likewise.
33941         * modules/unictype/category-Sm-tests: Likewise.
33942         * modules/unictype/category-So-tests: Likewise.
33943         * modules/unictype/category-Z-tests: Likewise.
33944         * modules/unictype/category-Zl-tests: Likewise.
33945         * modules/unictype/category-Zp-tests: Likewise.
33946         * modules/unictype/category-Zs-tests: Likewise.
33947         * modules/unictype/category-and-not-tests: Likewise.
33948         * modules/unictype/category-and-tests: Likewise.
33949         * modules/unictype/category-byname-tests: Likewise.
33950         * modules/unictype/category-name-tests: Likewise.
33951         * modules/unictype/category-none-tests: Likewise.
33952         * modules/unictype/category-of-tests: Likewise.
33953         * modules/unictype/category-or-tests: Likewise.
33954         * modules/unictype/category-test-withtable-tests: Likewise.
33955         * modules/unictype/combining-class-tests: Likewise.
33956         * modules/unictype/ctype-alnum-tests: Likewise.
33957         * modules/unictype/ctype-alpha-tests: Likewise.
33958         * modules/unictype/ctype-blank-tests: Likewise.
33959         * modules/unictype/ctype-cntrl-tests: Likewise.
33960         * modules/unictype/ctype-digit-tests: Likewise.
33961         * modules/unictype/ctype-graph-tests: Likewise.
33962         * modules/unictype/ctype-lower-tests: Likewise.
33963         * modules/unictype/ctype-print-tests: Likewise.
33964         * modules/unictype/ctype-punct-tests: Likewise.
33965         * modules/unictype/ctype-space-tests: Likewise.
33966         * modules/unictype/ctype-upper-tests: Likewise.
33967         * modules/unictype/ctype-xdigit-tests: Likewise.
33968         * modules/unictype/decimal-digit-tests: Likewise.
33969         * modules/unictype/digit-tests: Likewise.
33970         * modules/unictype/mirror-tests: Likewise.
33971         * modules/unictype/numeric-tests: Likewise.
33972         * modules/unictype/property-alphabetic-tests: Likewise.
33973         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33974         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33975         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33976         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33977         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33978         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33979         * modules/unictype/property-bidi-control-tests: Likewise.
33980         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33981         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33982         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33983         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33984         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33985         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33986         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33987         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33988         * modules/unictype/property-bidi-pdf-tests: Likewise.
33989         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33990         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33991         * modules/unictype/property-byname-tests: Likewise.
33992         * modules/unictype/property-combining-tests: Likewise.
33993         * modules/unictype/property-composite-tests: Likewise.
33994         * modules/unictype/property-currency-symbol-tests: Likewise.
33995         * modules/unictype/property-dash-tests: Likewise.
33996         * modules/unictype/property-decimal-digit-tests: Likewise.
33997         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33998         * modules/unictype/property-deprecated-tests: Likewise.
33999         * modules/unictype/property-diacritic-tests: Likewise.
34000         * modules/unictype/property-extender-tests: Likewise.
34001         * modules/unictype/property-format-control-tests: Likewise.
34002         * modules/unictype/property-grapheme-base-tests: Likewise.
34003         * modules/unictype/property-grapheme-extend-tests: Likewise.
34004         * modules/unictype/property-grapheme-link-tests: Likewise.
34005         * modules/unictype/property-hex-digit-tests: Likewise.
34006         * modules/unictype/property-hyphen-tests: Likewise.
34007         * modules/unictype/property-id-continue-tests: Likewise.
34008         * modules/unictype/property-id-start-tests: Likewise.
34009         * modules/unictype/property-ideographic-tests: Likewise.
34010         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34011         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34012         * modules/unictype/property-ignorable-control-tests: Likewise.
34013         * modules/unictype/property-iso-control-tests: Likewise.
34014         * modules/unictype/property-join-control-tests: Likewise.
34015         * modules/unictype/property-left-of-pair-tests: Likewise.
34016         * modules/unictype/property-line-separator-tests: Likewise.
34017         * modules/unictype/property-logical-order-exception-tests: Likewise.
34018         * modules/unictype/property-lowercase-tests: Likewise.
34019         * modules/unictype/property-math-tests: Likewise.
34020         * modules/unictype/property-non-break-tests: Likewise.
34021         * modules/unictype/property-not-a-character-tests: Likewise.
34022         * modules/unictype/property-numeric-tests: Likewise.
34023         * modules/unictype/property-other-alphabetic-tests: Likewise.
34024         * modules/unictype/property-other-default-ignorable-code-point-tests:
34025         Likewise.
34026         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34027         * modules/unictype/property-other-id-continue-tests: Likewise.
34028         * modules/unictype/property-other-id-start-tests: Likewise.
34029         * modules/unictype/property-other-lowercase-tests: Likewise.
34030         * modules/unictype/property-other-math-tests: Likewise.
34031         * modules/unictype/property-other-uppercase-tests: Likewise.
34032         * modules/unictype/property-paired-punctuation-tests: Likewise.
34033         * modules/unictype/property-paragraph-separator-tests: Likewise.
34034         * modules/unictype/property-pattern-syntax-tests: Likewise.
34035         * modules/unictype/property-pattern-white-space-tests: Likewise.
34036         * modules/unictype/property-private-use-tests: Likewise.
34037         * modules/unictype/property-punctuation-tests: Likewise.
34038         * modules/unictype/property-quotation-mark-tests: Likewise.
34039         * modules/unictype/property-radical-tests: Likewise.
34040         * modules/unictype/property-sentence-terminal-tests: Likewise.
34041         * modules/unictype/property-soft-dotted-tests: Likewise.
34042         * modules/unictype/property-space-tests: Likewise.
34043         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34044         * modules/unictype/property-test-tests: Likewise.
34045         * modules/unictype/property-titlecase-tests: Likewise.
34046         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34047         * modules/unictype/property-unified-ideograph-tests: Likewise.
34048         * modules/unictype/property-uppercase-tests: Likewise.
34049         * modules/unictype/property-variation-selector-tests: Likewise.
34050         * modules/unictype/property-white-space-tests: Likewise.
34051         * modules/unictype/property-xid-continue-tests: Likewise.
34052         * modules/unictype/property-xid-start-tests: Likewise.
34053         * modules/unictype/property-zero-width-tests: Likewise.
34054         * modules/unictype/scripts-tests: Likewise.
34055         * modules/unictype/syntax-c-ident-tests: Likewise.
34056         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34057         * modules/unictype/syntax-java-ident-tests: Likewise.
34058         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34059         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34060         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34061         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34062         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34063         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34064         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34065         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34066         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34067         * modules/uniname/uniname-tests: Likewise.
34068         * modules/uninorm/canonical-decomposition-tests: Likewise.
34069         * modules/uninorm/compat-decomposition-tests: Likewise.
34070         * modules/uninorm/composition-tests: Likewise.
34071         * modules/uninorm/decomposing-form-tests: Likewise.
34072         * modules/uninorm/decomposition-tests: Likewise.
34073         * modules/uninorm/filter-tests: Likewise.
34074         * modules/uninorm/nfc-tests: Likewise.
34075         * modules/uninorm/nfd-tests: Likewise.
34076         * modules/uninorm/nfkc-tests: Likewise.
34077         * modules/uninorm/nfkd-tests: Likewise.
34078         * modules/uninorm/u8-normcmp-tests: Likewise.
34079         * modules/uninorm/u8-normcoll-tests: Likewise.
34080         * modules/uninorm/u16-normcmp-tests: Likewise.
34081         * modules/uninorm/u16-normcoll-tests: Likewise.
34082         * modules/uninorm/u32-normcmp-tests: Likewise.
34083         * modules/uninorm/u32-normcoll-tests: Likewise.
34084         * modules/unistdio/u8-asnprintf-tests: Likewise.
34085         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34086         * modules/unistdio/u8-vasprintf-tests: Likewise.
34087         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34088         * modules/unistdio/u8-vsprintf-tests: Likewise.
34089         * modules/unistdio/u16-asnprintf-tests: Likewise.
34090         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34091         * modules/unistdio/u16-vasprintf-tests: Likewise.
34092         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34093         * modules/unistdio/u16-vsprintf-tests: Likewise.
34094         * modules/unistdio/u32-asnprintf-tests: Likewise.
34095         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34096         * modules/unistdio/u32-vasprintf-tests: Likewise.
34097         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34098         * modules/unistdio/u32-vsprintf-tests: Likewise.
34099         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34100         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34101         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34102         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34103         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34104         * modules/unistr/u8-check-tests: Likewise.
34105         * modules/unistr/u8-chr-tests: Likewise.
34106         * modules/unistr/u8-cmp-tests: Likewise.
34107         * modules/unistr/u8-cmp2-tests: Likewise.
34108         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34109         * modules/unistr/u8-cpy-tests: Likewise.
34110         * modules/unistr/u8-mblen-tests: Likewise.
34111         * modules/unistr/u8-mbsnlen-tests: Likewise.
34112         * modules/unistr/u8-mbtouc-tests: Likewise.
34113         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34114         * modules/unistr/u8-mbtoucr-tests: Likewise.
34115         * modules/unistr/u8-move-tests: Likewise.
34116         * modules/unistr/u8-next-tests: Likewise.
34117         * modules/unistr/u8-prev-tests: Likewise.
34118         * modules/unistr/u8-set-tests: Likewise.
34119         * modules/unistr/u8-stpcpy-tests: Likewise.
34120         * modules/unistr/u8-stpncpy-tests: Likewise.
34121         * modules/unistr/u8-strcat-tests: Likewise.
34122         * modules/unistr/u8-strcmp-tests: Likewise.
34123         * modules/unistr/u8-strcoll-tests: Likewise.
34124         * modules/unistr/u8-strcpy-tests: Likewise.
34125         * modules/unistr/u8-strdup-tests: Likewise.
34126         * modules/unistr/u8-strlen-tests: Likewise.
34127         * modules/unistr/u8-strmblen-tests: Likewise.
34128         * modules/unistr/u8-strmbtouc-tests: Likewise.
34129         * modules/unistr/u8-strncat-tests: Likewise.
34130         * modules/unistr/u8-strncmp-tests: Likewise.
34131         * modules/unistr/u8-strncpy-tests: Likewise.
34132         * modules/unistr/u8-strnlen-tests: Likewise.
34133         * modules/unistr/u8-to-u16-tests: Likewise.
34134         * modules/unistr/u8-to-u32-tests: Likewise.
34135         * modules/unistr/u8-uctomb-tests: Likewise.
34136         * modules/unistr/u16-check-tests: Likewise.
34137         * modules/unistr/u16-chr-tests: Likewise.
34138         * modules/unistr/u16-cmp-tests: Likewise.
34139         * modules/unistr/u16-cmp2-tests: Likewise.
34140         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34141         * modules/unistr/u16-cpy-tests: Likewise.
34142         * modules/unistr/u16-mblen-tests: Likewise.
34143         * modules/unistr/u16-mbsnlen-tests: Likewise.
34144         * modules/unistr/u16-mbtouc-tests: Likewise.
34145         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34146         * modules/unistr/u16-mbtoucr-tests: Likewise.
34147         * modules/unistr/u16-move-tests: Likewise.
34148         * modules/unistr/u16-next-tests: Likewise.
34149         * modules/unistr/u16-prev-tests: Likewise.
34150         * modules/unistr/u16-set-tests: Likewise.
34151         * modules/unistr/u16-stpcpy-tests: Likewise.
34152         * modules/unistr/u16-stpncpy-tests: Likewise.
34153         * modules/unistr/u16-strcat-tests: Likewise.
34154         * modules/unistr/u16-strcmp-tests: Likewise.
34155         * modules/unistr/u16-strcoll-tests: Likewise.
34156         * modules/unistr/u16-strcpy-tests: Likewise.
34157         * modules/unistr/u16-strdup-tests: Likewise.
34158         * modules/unistr/u16-strlen-tests: Likewise.
34159         * modules/unistr/u16-strmblen-tests: Likewise.
34160         * modules/unistr/u16-strmbtouc-tests: Likewise.
34161         * modules/unistr/u16-strncat-tests: Likewise.
34162         * modules/unistr/u16-strncmp-tests: Likewise.
34163         * modules/unistr/u16-strncpy-tests: Likewise.
34164         * modules/unistr/u16-strnlen-tests: Likewise.
34165         * modules/unistr/u16-to-u32-tests: Likewise.
34166         * modules/unistr/u16-to-u8-tests: Likewise.
34167         * modules/unistr/u16-uctomb-tests: Likewise.
34168         * modules/unistr/u32-check-tests: Likewise.
34169         * modules/unistr/u32-chr-tests: Likewise.
34170         * modules/unistr/u32-cmp-tests: Likewise.
34171         * modules/unistr/u32-cmp2-tests: Likewise.
34172         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34173         * modules/unistr/u32-cpy-tests: Likewise.
34174         * modules/unistr/u32-mblen-tests: Likewise.
34175         * modules/unistr/u32-mbsnlen-tests: Likewise.
34176         * modules/unistr/u32-mbtouc-tests: Likewise.
34177         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34178         * modules/unistr/u32-mbtoucr-tests: Likewise.
34179         * modules/unistr/u32-move-tests: Likewise.
34180         * modules/unistr/u32-next-tests: Likewise.
34181         * modules/unistr/u32-prev-tests: Likewise.
34182         * modules/unistr/u32-set-tests: Likewise.
34183         * modules/unistr/u32-stpcpy-tests: Likewise.
34184         * modules/unistr/u32-stpncpy-tests: Likewise.
34185         * modules/unistr/u32-strcat-tests: Likewise.
34186         * modules/unistr/u32-strcmp-tests: Likewise.
34187         * modules/unistr/u32-strcoll-tests: Likewise.
34188         * modules/unistr/u32-strcpy-tests: Likewise.
34189         * modules/unistr/u32-strdup-tests: Likewise.
34190         * modules/unistr/u32-strlen-tests: Likewise.
34191         * modules/unistr/u32-strmblen-tests: Likewise.
34192         * modules/unistr/u32-strmbtouc-tests: Likewise.
34193         * modules/unistr/u32-strncat-tests: Likewise.
34194         * modules/unistr/u32-strncmp-tests: Likewise.
34195         * modules/unistr/u32-strncpy-tests: Likewise.
34196         * modules/unistr/u32-strnlen-tests: Likewise.
34197         * modules/unistr/u32-to-u16-tests: Likewise.
34198         * modules/unistr/u32-to-u8-tests: Likewise.
34199         * modules/unistr/u32-uctomb-tests: Likewise.
34200         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34201         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34202         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34203         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34204         * modules/uniwidth/u8-strwidth-tests: Likewise.
34205         * modules/uniwidth/u8-width-tests: Likewise.
34206         * modules/uniwidth/u16-strwidth-tests: Likewise.
34207         * modules/uniwidth/u16-width-tests: Likewise.
34208         * modules/uniwidth/u32-strwidth-tests: Likewise.
34209         * modules/uniwidth/u32-width-tests: Likewise.
34210         * modules/uniwidth/width-tests: Likewise.
34211
34212 2010-05-18  Richard Jones  <rjones@redhat.com>
34213
34214         doc: users.txt: list hivex
34215         * users.txt: Add hivex.
34216
34217 2010-05-18  Richard Jones  <rjones@redhat.com>
34218
34219         doc: users.txt: list febootstrap
34220         * users.txt: Add febootstrap.
34221
34222 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34223
34224         bootstrap: fix an error when gnulib is not used as a git submodule
34225         * build-aux/bootstrap (gnulib_path): If its length is zero then
34226         assign "gnulib" to it.
34227         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34228
34229 2010-05-16  Bruno Haible  <bruno@clisp.org>
34230
34231         Avoid autoconf warnings about AM_ICONV.
34232         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34233         2.64.
34234
34235 2010-05-16  Bruno Haible  <bruno@clisp.org>
34236
34237         absolute-header: Make the macro usable in more situations.
34238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34239         from gl_ABSOLUTE_HEADER.
34240         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34241
34242 2010-05-16  James Youngman  <jay@gnu.org>
34243
34244         doc: update users.txt
34245         * users.txt: Add CSSC.
34246
34247 2010-05-16  Jim Meyering  <meyering@redhat.com>
34248
34249         init.sh: fix an error in the previous change; add more comments
34250         * tests/init.sh: Compare exit code in loop against 9, not 2.
34251         Patch by Bruno Haible.
34252         Make the two tests more similar by adding an empty "then" clause.
34253         Add comments.
34254
34255         init.sh: avoid unnecessary shell re-exec
34256         * tests/init.sh: Improve the re-exec-required check to first test the
34257         current shell.  If it passes the test, do not search for a shell that
34258         does pass, and do not re-exec.  This test is particularly contorted to
34259         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34260         of $(...) evokes a syntax error and causes immediate shell exit with
34261         status 2.  Bruno Haible reported that the re-exec made it impossible
34262         to single-step through any init.sh-using script.
34263
34264 2010-05-16  Bruno Haible  <bruno@clisp.org>
34265
34266         Fix collision between gnulib's and libintl's printf replacements.
34267         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34268         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34269         (printf): When using GNU C, map the __printf__ function to rpl_printf
34270         via __asm__. When not using GNU C, define rpl_printf instead of
34271         __printf__.
34272         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34273         commit.
34274         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34275         commit.
34276         * m4/asm-underscore.m4: New file.
34277         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34278         * modules/stdio (Files): Add m4/asm-underscore.m4.
34279         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34280         Reported by Ben Pfaff.
34281
34282 2010-05-16  Bruno Haible  <bruno@clisp.org>
34283
34284         verify: Avoid skipping the test on openSUSE 11.0.
34285         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34286
34287 2010-05-13  Bruno Haible  <bruno@clisp.org>
34288
34289         Avoid useless warnings from G++.
34290         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34291         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34293
34294 2010-05-11  Jim Meyering  <meyering@redhat.com>
34295
34296         maint.mk: tweak preceding change
34297         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34298         regexps tighter by anchoring at EOL, and make the new group "shy"
34299         for slightly decreased overhead.
34300
34301 2010-05-11  Eric Blake  <eblake@redhat.com>
34302
34303         maint.mk: gnulib doesn't guarantee NSIG
34304         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34305
34306 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34307
34308         test-pwrite.c: Remove unused variable declaration.
34309         * tests/test-pwrite.c (main): Remove read_buf declaration.
34310
34311         Remove useless test-pwrite.sh file.
34312         * tests/test-pwrite.sh: Delete file.
34313         * modules/pwrite-tests: Remove references.
34314         Reported by Bruno Haible.
34315
34316 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34317
34318         init.sh: fix a typo
34319         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34320
34321 2010-05-10  Jim Meyering  <meyering@redhat.com>
34322
34323         maint.mk: avoid using a temporary file in the always-defined-macros check
34324         * top/maint.mk (.re-defmac): Remove rule.
34325         (gl_trap_): Remove definition.
34326         (sc_prohibit_always-defined_macros): Rewrite not to create and
34327         depend on a temporary file.  Instead, depend on GNU grep's ability
34328         to read a list of regular expressions from stdin when given "-f -".
34329
34330 2010-05-09  Bruno Haible  <bruno@clisp.org>
34331
34332         Update to GNU gettext 0.18, part 1.
34333         * m4/gettext.m4: Update to GNU gettext 0.18.
34334         * m4/intl.m4: Likewise.
34335         * m4/po.m4: Likewise.
34336         * modules/gettext (Files): Add m4/fcntl-o.m4.
34337         (configure.ac): Require gettext infrastructure from version 0.18.
34338
34339 2010-05-09  Jim Meyering  <meyering@redhat.com>
34340
34341         init.sh: enable MALLOC_PERTURB_
34342         * tests/init.sh: Enable glibc's malloc-perturbing option.
34343
34344         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34345         With my recent change in init.sh from the two-line form:
34346             -#   : ${srcdir=.}
34347             -#   . "$srcdir/init.sh"; path_prepend_ .
34348             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34349         I noticed that using the one-line form would cause this test
34350         to fail with a false-positive, or to stop working altogether,
34351         depending on whether help-version changed or all the tests did.
34352         * top/maint.mk (_hv_regex): Remove this definition.
34353         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34354         (_hv_regex_strong): Use a stronger regex to check for conformance.
34355         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34356         Give a separate diagnostic for lack of conforming use.
34357
34358         maint.mk: prohibit definition of symbols defined by gnulib
34359         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34360         definition of symbols defined by gnulib.
34361
34362 2010-05-09  Bruno Haible  <bruno@clisp.org>
34363
34364         acl: Avoid test failure on Cygwin-hosted mingw.
34365         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34366
34367 2010-05-09  Bruno Haible  <bruno@clisp.org>
34368
34369         error: Use system's fcntl function.
34370         * lib/error.c (fcntl): Undefine.
34371
34372 2010-05-09  Jim Meyering  <meyering@redhat.com>
34373
34374         verify: adjust formatting to be more consistent
34375         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34376         argument-list '('s, and after one comma.
34377
34378 2010-05-09  Bruno Haible  <bruno@clisp.org>
34379
34380         error: More reliable output on mingw.
34381         * lib/error.c: Include <windows.h>.
34382         (is_open): New function.
34383         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34384         defined.
34385
34386 2010-05-09  Bruno Haible  <bruno@clisp.org>
34387
34388         vasnprintf: Fix syntax errors in libintl build on mingw.
34389         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34390         pad_ourselves and prec_ourselves after use.
34391
34392 2010-05-08  Bruno Haible  <bruno@clisp.org>
34393
34394         * lib/config.charset: Update comments for Cygwin 1.7.
34395         * lib/localcharset.c: Likewise.
34396
34397 2010-05-07  Jim Meyering  <meyering@redhat.com>
34398
34399         init.sh: improve comments
34400         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34401         . "${srcdir=.}/init.sh"; path_prepend_ .
34402         Add a note about path_prepend_ and the alternative of using
34403         TESTS_ENVIRONMENT.
34404
34405 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34406
34407         exclude: Unescape hashed patterns in wildcard mode.
34408         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34409         to the hash list.
34410         * tests/test-exclude8.sh: New test case.
34411         * modules/exclude-tests: Add new test.
34412
34413 2010-05-05  Eric Blake  <eblake@redhat.com>
34414
34415         verify: automate tests
34416         * modules/verify-tests: New module.
34417         * tests/test-verify.sh: New file.
34418         * tests/test-verify.c: Guard each negative test with a unique id.
34419         Also avoid warning about unused left hand of comma expressions.
34420
34421 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34422
34423         Further improvements to verify.h, suggested by Eric Blake.
34424         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34425         the GL_* versions, to avoid collision with OpenGL.
34426         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34427         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34428         than testing merely whether it's defined.
34429
34430         Modify verify.h to pacify gcc -Wredundant_decls.
34431         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34432         These use the prefix "GL_" since they're likely to be useful elsewhere.
34433         We may need to break them out into a different .h file.
34434         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34435         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34436         of verify_function__.
34437
34438 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34439
34440         Tests for module pwrite.
34441         * modules/pwrite-tests: New file.
34442         * tests/test-pwrite.sh: New file.
34443         * tests/test-pwrite.c: New file.
34444
34445         New module pwrite.
34446         * lib/unistd.in.h (pwrite): New declaration.
34447         * lib/pwrite.c: New file, from glibc with modifications.
34448         * m4/pwrite.m4: New file.
34449         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34451         REPLACE_PWRITE.
34452         * modules/pwrite: New file.
34453         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34454         REPLACE_PWRITE.
34455         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34456         * doc/posix-functions/pwrite.texi: Mention the new module.
34457
34458 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34459
34460         pread: Update documentation.
34461         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34462
34463 2010-05-04  Eric Blake  <eblake@redhat.com>
34464
34465         docs: update cygwin progress
34466         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34467         this bug.
34468         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34469         Added in cygwin 1.7.2.
34470         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34471         Likewise.
34472         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34473         Likewise.
34474         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34475         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34476         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34477         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34478         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34479         Mention nproc module.
34480         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34481         bug in cygwin 1.7.5 addition.
34482         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34483         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34484         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34485         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34486         1.7.5.
34487         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34488         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34489         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34490         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34491         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34492         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34493         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34494         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34495         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34496         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34497         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34498         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34499         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34500         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34501         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34502         Likewise.
34503         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34504         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34505         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34506         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34507         Likewise.
34508         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34509         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34510         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34511         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34512         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34513         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34514         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34515         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34516         Likewise.
34517         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34518         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34519         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34520         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34521         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34522         Likewise.
34523         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34524         Likewise.
34525         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34526         Likewise.
34527         * doc/glibc-functions/xdrrec_endofrecord.texi
34528         (xdrrec_endofrecord): Likewise.
34529         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34530         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34531         Likewise.
34532         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34533         Likewise.
34534
34535 2010-05-04  Jim Meyering  <meyering@redhat.com>
34536
34537         gendocs.sh: make its "-s FILE" option more useful
34538         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34539         $PACKAGE to reflect the probably-different basename of "FILE".
34540
34541 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34542
34543         bootstrap: don't ignore download_po_files failure
34544         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34545         failure.
34546
34547 2010-05-03  Jim Meyering  <meyering@redhat.com>
34548
34549         maint.mk: allow to pass options to gendocs.sh
34550         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34551         (gendocs_options_): New overridable variable.
34552
34553         gnu-web-doc-update: don't ignore configure or build failure
34554         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34555
34556         announce-gen: backslash-escape '@'s in --help output
34557         * build-aux/announce-gen: Fix syntax errors.
34558
34559         maint.mk, announce-gen: allow project-specific announcement mail headers
34560         * top/maint.mk (translation_project_): Define default.
34561         (announcement_Cc_, announcement_mail_headers_): Likewise.
34562         (announcement): Invoke announce-gen with new --mail-headers option.
34563         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34564
34565         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34566         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34567         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34568         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34569         line in the "err2" output file when running "make check" in verbose
34570         mode (i.e., with set -x enabled).
34571
34572 2010-05-03  Bruno Haible  <bruno@clisp.org>
34573
34574         wctob: Fix for weird platforms.
34575         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34576         argument value.
34577
34578 2010-05-03  Jim Meyering  <meyering@redhat.com>
34579
34580         maint.mk: prohibit unwarranted use of <strings.h>
34581         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34582         strings.h in a file that does not also use strcasecmp, strncasecmp,
34583         ffs or ffsll.
34584
34585         maint.mk: remove obsolete comments
34586         * top/maint.mk: Remove stale, commented-out rules.
34587
34588 2010-05-02  Bruno Haible  <bruno@clisp.org>
34589
34590         wcwidth: Declare also when it's aliased.
34591         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34592         macro.
34593
34594 2010-05-02  Bruno Haible  <bruno@clisp.org>
34595
34596         Fix regression from 2010-04-25.
34597         * gnulib-tool (func_modules_transitive_closure): Check the status of
34598         all modules, not only of the tests that are of the form foo-tests where
34599         foo is a module.
34600
34601 2010-05-02  Bruno Haible  <bruno@clisp.org>
34602
34603         wctob: Work around nasty Cygwin 1.7.2 bug.
34604         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34605         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34606
34607 2010-05-01  Bruno Haible  <bruno@clisp.org>
34608
34609         fpurge: Sharper test.
34610         * tests/test-fpurge.c (main): Add one more ftell check.
34611         * modules/fpurge-tests (Depends-on): Add ftell.
34612         Suggested by Eric Blake.
34613
34614 2010-05-01  Bruno Haible  <bruno@clisp.org>
34615
34616         ftello: Another test.
34617         * tests/test-ftello3.c: New file.
34618         * modules/ftello-tests (Files): Add it.
34619         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34620         MOSTLYCLEANFILES.
34621
34622         ftell: Another test.
34623         * tests/test-ftell3.c: New file.
34624         * modules/ftell-tests (Files): Add it.
34625         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34626         MOSTLYCLEANFILES.
34627
34628 2010-05-01  Bruno Haible  <bruno@clisp.org>
34629
34630         ftell, ftello: Work around Solaris bug.
34631         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34632         * lib/ftello.c: Include stdio-impl.h.
34633         (ftello): On Solaris, when _IOWRT is set, compute the result without
34634         looking at _IOREAD.
34635         * modules/ftello (Files): Add lib/stdio-impl.h.
34636         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34637         * doc/posix-functions/ftello.texi: Likewise.
34638         Reported by Eric Blake.
34639
34640 2010-05-01  Bruno Haible  <bruno@clisp.org>
34641
34642         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34643         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34644         the _IOWRT flag is also set.
34645
34646 2010-05-01  Bruno Haible  <bruno@clisp.org>
34647
34648         Fix doc about a HP-UX stdio bug.
34649         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34650         * doc/posix-functions/ftello.texi: Likewise.
34651
34652 2010-05-01  Bruno Haible  <bruno@clisp.org>
34653
34654         lseek test: Fix failure on Solaris.
34655         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34656         output.
34657
34658 2010-04-30  Jim Meyering  <meyering@redhat.com>
34659
34660         bootstrap: don't ignore failure to generate po*/Makevars
34661         * build-aux/bootstrap (with_gettext): Don't ignore failure
34662         to create po/Makevars or runtime-po/Makevars.
34663
34664 2010-04-29  Eric Blake  <eblake@redhat.com>
34665
34666         headers: relax license to LGPLv2+
34667         * modules/fcntl-h (License): Relax license.
34668         * modules/getopt-posix (License): Likewise.
34669         * modules/locale (License): Likewise.
34670         * modules/math (License): Likewise.
34671         * modules/pty (License): Likewise.
34672         * modules/sched (License): Likewise.
34673         * modules/search (License): Likewise.
34674         * modules/spawn (License): Likewise.
34675         * modules/stdarg (License): Likewise.
34676         * modules/sysexits (License): Likewise.
34677
34678 2010-04-29  Jim Meyering  <meyering@redhat.com>
34679
34680         inttypes: relax license to LGPLv2+
34681         * modules/inttypes (License): Relax license.
34682
34683 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34684
34685         * top/maint.mk (indent): Run twice to produce idempotent results.
34686
34687 2010-04-28  Bruno Haible  <bruno@clisp.org>
34688
34689         getdate: Generate getdate.c in the source directory.
34690         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34691         MOSTLYCLEANFILES.
34692         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34693
34694 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34695
34696         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34697         is not declared as a const *; avoid warnings in that case.
34698
34699 2010-04-28  Eric Blake  <eblake@redhat.com>
34700
34701         canonicalize-lgpl: avoid compiler warning
34702         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34703         declaration' / 'extraneous semicolon' warning with some compilers.
34704         Reported by Andreas Gruenbacher.
34705
34706 2010-04-28  Jim Meyering  <meyering@redhat.com>
34707
34708         init.sh: ensure a more reliable exit status when exiting via trap
34709         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34710         Inspired by patches from Dmitry V. Levin.
34711         Also trap on signal 3 (SIGQUIT).
34712
34713 2010-04-27  Bruno Haible  <bruno@clisp.org>
34714
34715         Update doc about utimes().
34716         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34717         'utimens' module.
34718         Reported by Andreas Gruenbacher <agruen@suse.de>.
34719
34720 2010-04-27  Eric Blake  <eblake@redhat.com>
34721
34722         full-read, full-write: relax license
34723         * modules/full-read (License): Drop to LGPLv2+.
34724         * modules/full-write (License): Likewise.
34725         * modules/safe-read (License): Likewise.
34726         * modules/safe-write (License): Likewise.
34727
34728         pthread: mention library for linking
34729         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34730
34731 2010-04-27  Jim Meyering  <meyering@redhat.com>
34732
34733         maint.mk: fix a bug introduced in last change
34734         * top/maint.mk (gl_assured_headers_): Now that all names are on
34735         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34736         is not anchored to end of word, it should be adequate.
34737
34738         maint.mk: avoid side-effect in latest syntax-check
34739         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34740         to run commands via $(shell...), and hence to incur cost only when
34741         the new rule is actually run.
34742
34743         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34744         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34745         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34746         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34747         (gl_assured_headers_, az_, AZ_): Define.
34748         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34749
34750 2010-04-26  Jim Meyering  <jim@meyering.net>
34751             Bruno Haible  <bruno@clisp.org>
34752
34753         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34755         Prompted by an exchange with Gilles Espinasse.
34756
34757 2010-04-26  Jim Meyering  <meyering@redhat.com>
34758
34759         git-version-gen: aesthetic tweak
34760         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34761         so that the command remains on a single line.
34762
34763 2010-04-26  Eric Blake  <eblake@redhat.com>
34764
34765         git-version-gen: allow use on EBCDIC hosts
34766         * build-aux/git-version-gen (dirty): Use literal rather than tying
34767         ourselves to ascii.
34768         Reported by Steve Goetze.
34769
34770 2010-04-25  Bruno Haible  <bruno@clisp.org>
34771
34772         netdb: Add support for GNULIB_POSIXCHECK.
34773         * lib/netdb.in.h: Include warn-on-use.h.
34774         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34775         functions are used when GNULIB_POSIXCHECK is defined and the
34776         getaddrinfo module is not in use.
34777         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34778         freeaddrinfo, gai_strerror, getnameinfo are declared.
34779         * modules/netdb (Depends-on): Add warn-on-use.
34780         (Makefile.am): Include warn-on-use.h in netdb.h.
34781
34782 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34783
34784         build: avoid "make check" failure without .git/ directory
34785         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34786         there is no .git/ directory.
34787
34788 2010-04-25  Bruno Haible  <bruno@clisp.org>
34789
34790         ptsname: Fix misuse of ttyname_r.
34791         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34792         of errno.
34793
34794 2010-04-25  Bruno Haible  <bruno@clisp.org>
34795
34796         ttyname_r: Make it work on Solaris 10.
34797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34798         if the system function has the POSIX declaration. Test whether the
34799         function fails if the buffer is less than 128 bytes large.
34800         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34801         system's ttyname_r function. Provide a reasonably large buffer.
34802         * modules/ttyname_r (Depends-on): Add extensions.
34803         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34804
34805 2010-04-25  Bruno Haible  <bruno@clisp.org>
34806
34807         Use the 'extensions' module for some more functions on Solaris.
34808         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34809         module.
34810         * doc/posix-functions/ctime_r.texi: Likewise.
34811         * doc/posix-functions/getgrgid_r.texi: Likewise.
34812         * doc/posix-functions/getgrnam_r.texi: Likewise.
34813         * doc/posix-functions/getpwnam_r.texi: Likewise.
34814         * doc/posix-functions/getpwuid_r.texi: Likewise.
34815         * doc/posix-functions/readdir_r.texi: Likewise.
34816         * doc/posix-functions/sigwait.texi: Likewise.
34817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34818         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34819
34820 2010-04-25  Bruno Haible  <bruno@clisp.org>
34821
34822         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34823         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34824         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34825         * lib/ttyname_r.c: Include <limits.h>.
34826         (ttyname_r): Define using the system's ttyname_r function, if it exists
34827         and not on Solaris.
34828         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34829         set.
34830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34831         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34832         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34833         Reported by Simon Josefsson.
34834
34835 2010-04-25  Bruno Haible  <bruno@clisp.org>
34836
34837         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34838         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34839         * doc/posix-functions/ctime_r.texi: Likewise.
34840         * doc/posix-functions/getgrgid_r.texi: Likewise.
34841         * doc/posix-functions/getgrnam_r.texi: Likewise.
34842         * doc/posix-functions/getlogin_r.texi: Likewise.
34843         * doc/posix-functions/getpwnam_r.texi: Likewise.
34844         * doc/posix-functions/getpwuid_r.texi: Likewise.
34845         * doc/posix-functions/readdir_r.texi: Likewise.
34846         * doc/posix-functions/sigwait.texi: Likewise.
34847         * doc/posix-functions/ttyname_r.texi: Likewise.
34848         Reported by Simon Josefsson.
34849
34850 2010-04-25  Bruno Haible  <bruno@clisp.org>
34851
34852         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34853         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34854         also to --create-testdir.
34855         (func_acceptable): Don't consider the status of *-tests modules here.
34856         (func_modules_transitive_closure): Consider it here, before including a
34857         test module.
34858         (func_import, func_create_testdir): Set inc_all_direct_tests,
34859         inc_all_indirect_tests.
34860         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34861         --create-testdir and --create-megatestdir.
34862
34863 2010-04-25  Bruno Haible  <bruno@clisp.org>
34864
34865         gnulib-tool: Add --without-*-tests options.
34866         * gnulib-tool (func_usage): Document the --without-*-tests options.
34867         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34868         excl_unportable_tests): New variables.
34869         Fail if they are specified with --import or --update.
34870         (func_acceptable): Respect the excl_*_tests variables.
34871         (func_import): Set the excl_*_tests variables to empty.
34872
34873 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34874             Bruno Haible  <bruno@clisp.org>
34875
34876         Work around a MacOS X 10.4 bug with openpty.
34877         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34878         * tests/test-openpty.c (main): Close the master side explicitly.
34879
34880 2010-04-25  Bruno Haible  <bruno@clisp.org>
34881
34882         strnlen: Fix a C++ test error on MacOS X and Solaris.
34883         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34884         the function is not declared.
34885         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34886         Simon Josefsson.
34887
34888 2010-04-24  Bruno Haible  <bruno@clisp.org>
34889
34890         Avoid a gcc warning.
34891         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34892         of correct type for %08lx directive.
34893         Reported by Eric Blake.
34894
34895 2010-04-24  Bruno Haible  <bruno@clisp.org>
34896
34897         vasnprintf: Correct errno value in case of out-of-memory.
34898         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34899         or sprintf. Use the errno value from SNPRINTF or sprintf.
34900         Reported by Ian Beckwith <ianb@erislabs.net>.
34901
34902 2010-04-24  Bruno Haible  <bruno@clisp.org>
34903
34904         ansi-c++-opt: Find correct compiler when cross-compiling.
34905         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34906         AC_CHECK_PROGS.
34907         Reported by Simon Josefsson.
34908
34909 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34910
34911         vc-list-files: Add support for subversion
34912         * build-aux/vc-list-files: Use "svn list" to generate the list of
34913         files controlled by subversion.
34914
34915 2010-04-23  Jim Meyering  <meyering@redhat.com>
34916
34917         vc-list-files tests: convert to use init.sh
34918         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34919         path_prepend_.
34920         Use Exit, not exit.
34921         Use skip_ rather than open coding it.
34922         Remove trap set-up and compare definitions.
34923         * tests/test-vc-list-files-git.sh: Likewise.
34924         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34925
34926 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34927
34928         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34929         backup files.
34930
34931 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34932
34933         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34934
34935 2010-04-20  Eric Blake  <eblake@redhat.com>
34936
34937         tests: be robust to ignored SIGPIPE
34938         * tests/test-select-in.sh: Consume all output.
34939         * tests/test-lseek.sh: Check correct exit status, while avoiding
34940         EPIPE.
34941
34942 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34943             Bruno Haible  <bruno@clisp.org>
34944
34945         visibility: Don't use -fvisibility if it leads to a warning.
34946         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34947         yes, don't pretend that visibility works if it leads to a warning.
34948         Reported by Mike Gran <spk121@yahoo.com>.
34949
34950 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34951
34952         * build-aux/bootstrap: Use "git -h" for testing for supported options
34953         instead of "git --help".  The short-form option only shows a summary,
34954         and doesn't layout the full man page.  Grep for the full option name
34955         in the summary, too.
34956
34957 2010-04-19  Bruno Haible  <bruno@clisp.org>
34958
34959         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34961         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34962         mention of RELOCATABLE_STRIP.
34963         Reported by Sylvain Beucler <beuc@beuc.net>.
34964
34965 2010-04-19  Bruno Haible  <bruno@clisp.org>
34966
34967         * lib/diffseq.h: Fix typo in comment.
34968         Reported by Eric Blake.
34969
34970 2010-04-19  Bruno Haible  <bruno@clisp.org>
34971
34972         ioctl: Move autoconf macro to a .m4 file.
34973         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34974         * modules/ioctl (Files): Add it.
34975         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34976         Reported by Ian Beckwith <ianb@erislabs.net>.
34977
34978 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34979             Bruno Haible  <bruno@clisp.org>
34980
34981         diffseq: Accommodate use-case with abstract arrays.
34982         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34983         is not defined.
34984         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34985         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34986
34987 2010-04-18  Bruno Haible  <bruno@clisp.org>
34988
34989         * doc/posix-headers/stdbool.texi: More precise wording.
34990
34991 2010-04-17  Jim Meyering  <meyering@redhat.com>
34992
34993         maint.mk: use gnu-style indentation in an embedded perl script
34994         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34995         Rename variable: s/two/last_two_bytes/
34996
34997 2010-04-16  Eric Blake  <eblake@redhat.com>
34998
34999         test-stdbool: skip test that fails with Solaris CC
35000         * tests/test-stdbool.c (f): Skip test that causes compilation
35001         error under buggy C++ compiler.
35002         * lib/stdbool.in.h: Document the limitation.
35003         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35004
35005         setenv: allow compilation with C++
35006         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35007         register keyword.
35008
35009         stdint: allow test to pass with C++
35010         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35011
35012         getopt: allow compilation with C++
35013         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35014         struct.
35015         * lib/getopt.c (_getopt_internal_r): Use correct type.
35016         Reported by Dagobert Michelson, via Joel E. Denny.
35017
35018 2010-04-16  Bruno Haible  <bruno@clisp.org>
35019
35020         Override netdb.h always.
35021         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35022         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35023         Reported by Ludovic Courtès <ludo@gnu.org>.
35024
35025 2010-04-15  Bruno Haible  <bruno@clisp.org>
35026
35027         openpty: Fix mistake from 2010-03-21.
35028         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35029         Reported by Simon Josefsson.
35030
35031 2010-04-15  Eric Blake  <eblake@redhat.com>
35032
35033         test-forkpty: fix expected signature
35034         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35035         Reported by Simon Josefsson.
35036
35037 2010-04-15  Jim Meyering  <meyering@redhat.com>
35038
35039         maint.mk: texinfo_suffix_re_: correct the default regexp
35040         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35041
35042         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35043         make it configurable via texinfo_suffix_re_.
35044
35045 2010-04-14  Eric Blake  <eblake@redhat.com>
35046
35047         strtok_r: relax license to LGPLv2+
35048         * modules/strtok_r (License): Relax license.
35049         Reported by Matthias Bolte.
35050
35051 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35052
35053         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35054         version 1.4.4 by default instead of requiring the libgcrypt
35055         version used during build.  This makes it possible to use the
35056         application with older but still binary compatible libgcrypt
35057         versions.
35058
35059 2010-04-13  Eric Blake  <eblake@redhat.com>
35060
35061         getopt-gnu: match recent glibc fixes and posix ruling
35062         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35063         '+' handling, when requesting extensions.
35064         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35065         'W;' handling.
35066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35067         * doc/posix-functions/getopt.texi (getopt): Document this.
35068         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35069         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35070         Likewise.
35071
35072         getopt: merge bug fixes from glibc
35073         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35074         diagnostics.  Honor '+:' correctly.  Reject ';'.
35075
35076         getopt-posix: detect MacOS bug
35077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35078         optind when missing a required argument.
35079         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35080         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35081         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35082         Likewise.
35083
35084         getopt-posix: avoid spurious failure on Solaris
35085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35086         an indicator that setting optind=1 is sufficient for reset.
35087
35088         getopt-posix: avoid spurious failure on FreeBSD
35089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35090         in POSIX mode, since the m4 test uses it.
35091
35092         gnulib-tool: silence warning on BSD sh
35093         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35094
35095 2010-04-13  Jim Meyering  <meyering@redhat.com>
35096
35097         doc: users.txt: GNU patch now uses gnulib
35098         * users.txt: Add patch.
35099
35100 2010-04-12  Jim Meyering  <meyering@redhat.com>
35101
35102         maint.mk: generate more concise timing data for syntax-check rules
35103         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35104         " done" from each line that reports a syntax-check test duration.
35105
35106 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35107
35108         git-version-gen: use "git update-index..." rather than "git status"
35109         * build-aux/git-version-gen: Use git update-index --refresh, not
35110         "git status".  With some versions of git, "git status" would fail
35111         to update the index and result in an unwarranted "-dirty" suffix.
35112
35113 2010-04-11  Jim Meyering  <meyering@redhat.com>
35114
35115         openat: correct formatting (no semantic change)
35116         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35117         Suggested by Bruno Haible.
35118
35119 2010-04-11  Bruno Haible  <bruno@clisp.org>
35120
35121         Stricter declaration checking in testdirs.
35122         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35123         If for_tests is true, augment AM_CPPFLAGS to define
35124         GNULIB_STRICT_CHECKING.
35125         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35126         GNULIB_STRICT_CHECKING is defined, verify that the function is
35127         declared.
35128
35129 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35130             Bruno Haible  <bruno@clisp.org>
35131
35132         libunistring: Improve configure output.
35133         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35134         Don't say "consider installing GNU libunistring" when checking again
35135         with libiconv.
35136
35137 2010-04-11  Bruno Haible  <bruno@clisp.org>
35138
35139         libunistring: Correct value of $LTLIBUNISTRING.
35140         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35141         correct the value of $LTLIBUNISTRING.
35142
35143 2010-04-11  Bruno Haible  <bruno@clisp.org>
35144
35145         havelib: Add static libraries to LIBS in the right order.
35146         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35147         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35148
35149 2010-04-11  Bruno Haible  <bruno@clisp.org>
35150
35151         libunistring: Detect libunistring also when it depends on libiconv.
35152         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35153         the second AC_LIB_HAVE_LINKFLAGS invocation.
35154
35155 2010-04-11  James Youngman  <jay@gnu.org>
35156
35157         close-stream: declare local scalars to be "const"
35158         * lib/close-stream.c (close_stream): Make boolean variables const
35159         to document the fact that we set but do not change them.
35160
35161 2010-04-11  Bruno Haible  <bruno@clisp.org>
35162
35163         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35164
35165 2010-04-11  Jim Meyering  <meyering@redhat.com>
35166
35167         maint.mk: don't include dist-check.mk
35168         * top/maint.mk: Remove bogus include directive.
35169
35170         maint.mk: improve empty-line-at-EOF check
35171         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35172         solution, rather than tail+Perl-based one.  The latter would read
35173         a few kilobytes from the end of each file, and did not handle empty
35174         files properly.
35175
35176         maint.mk: print the elapsed time for each syntax-check rule
35177         * top/maint.mk (sc_m_rules_): Save start time in a file.
35178         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35179         (local-check): Interpose the .z rules
35180
35181 2010-04-11  Jim Meyering  <meyering@redhat.com>
35182
35183         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35184         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35185         empty file with one that ends in an empty line.
35186
35187 2010-04-10  Bruno Haible  <bruno@clisp.org>
35188
35189         mkdir: Make it work on mingw64.
35190         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35191         * lib/mkdir.c: Update comment.
35192         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35193
35194 2010-04-10  Bruno Haible  <bruno@clisp.org>
35195
35196         Don't override improved macro from newer autoconf.
35197         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35198         autoconf >= 2.62.
35199         Reported by Joel E. Denny <jdenny@clemson.edu>.
35200
35201 2010-04-10  Jim Meyering  <meyering@redhat.com>
35202
35203         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35204         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35205
35206         maint.mk: correct a diagnostic
35207         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35208         in diagnostic; now use $prohibit.
35209
35210 2010-04-10  Bruno Haible  <address@hidden>
35211
35212         fchownat: Fix a C++ test error on Solaris 8.
35213         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35214         the function does not exist.
35215
35216 2010-04-10  Bruno Haible  <bruno@clisp.org>
35217
35218         vasnprintf: Add more tests.
35219         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35220         (test_function): Test converting an invalid wide string.
35221
35222         vasnprintf: Correct handling of unconvertible wide string arguments.
35223         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35224         VASNPRINTF.
35225         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35226         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35227         smaller than the expected maximum need for the directive. Set errno to
35228         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35229         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35231         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35232         * modules/vasnprintf (Files): Add m4/printf.m4.
35233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35234
35235 2010-04-10  Bruno Haible  <bruno@clisp.org>
35236
35237         vasnprintf: Fix crash in %ls directive.
35238         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35239         string is passed as argument to %ls, with no precision and no width.
35240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35241
35242 2010-04-10  Bruno Haible  <bruno@clisp.org>
35243
35244         vasnprintf: Fix multiple test failures on mingw.
35245         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35246         _snprintf, or snwprintf, not _snwprintf.
35247
35248 2010-04-10  Bruno Haible  <bruno@clisp.org>
35249
35250         write: Fix a C++ test error on mingw.
35251         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35252
35253 2010-04-10  Bruno Haible  <bruno@clisp.org>
35254
35255         vasnprintf test: Reduce code duplication.
35256         * tests/test-vasnprintf.c (test_function): New function, extracted from
35257         test_vasnprintf.
35258         (test_vasnprintf, test_asnprintf): Invoke it.
35259
35260 2010-04-10  Bruno Haible  <bruno@clisp.org>
35261
35262         strnlen: Fix warning in C++ mode on MacOS X.
35263         * lib/string.in.h (strnlen): Use the modern idiom.
35264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35265         defining strnlen as a macro already in <config.h>.
35266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35267         REPLACE_STRNLEN.
35268         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35269         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35270
35271 2010-04-08  James Youngman  <jay@gnu.org>
35272
35273         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35274         the example.
35275
35276 2010-04-09  Jim Meyering  <meyering@redhat.com>
35277
35278         maint.mk: print better diagnostic when there is no $(_hv_file)
35279         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35280         announce that when $(_hv_file) (aka help-version) does not exist.
35281
35282         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35283         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35284         not try to interpret its random input bytes.  Jarno Rajahalme reported
35285         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35286         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35287         (mktempd_): Likewise, just in case.
35288
35289         ftruncate: add two years to projected module removal date: 2012
35290         * m4/ftruncate.m4: Adjust comments.
35291
35292         ftruncate: mark module as obsolete; even MinGW provides it, now
35293         * modules/ftruncate (Status): Obsolete.
35294         (Notice): Say that.
35295         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35297
35298 2010-04-08  Bruno Haible  <bruno@clisp.org>
35299
35300         Fix side effects from tests-related modules.
35301         * modules/dprintf-posix (Comment): New section.
35302         * modules/fprintf-posix (Comment): Likewise.
35303         * modules/obstack-printf-posix (Comment): Likewise.
35304         * modules/printf-posix (Comment): Likewise.
35305         * modules/snprintf-posix (Comment): Likewise.
35306         * modules/sprintf-posix (Comment): Likewise.
35307         * modules/vasnprintf-posix (Comment): Likewise.
35308         * modules/vasprintf-posix (Comment): Likewise.
35309         * modules/vdprintf-posix (Comment): Likewise.
35310         * modules/vfprintf-posix (Comment): Likewise.
35311         * modules/vprintf-posix (Comment): Likewise.
35312         * modules/vsnprintf-posix (Comment): Likewise.
35313         * modules/vsprintf-posix (Comment): Likewise.
35314         * modules/xprintf-posix (Comment): Likewise.
35315         * modules/xvasprintf-posix (Comment): Likewise.
35316         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35317         * modules/floorf-tests (Depends-on): Likewise.
35318         * modules/round-tests (Depends-on): Likewise.
35319         * modules/roundf-tests (Depends-on): Likewise.
35320         * modules/trunc-tests (Depends-on): Likewise.
35321         * modules/truncf-tests (Depends-on): Likewise.
35322         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35323         'fprintf-posix' module is not present.
35324         * tests/test-floorf2.c (check): Likewise.
35325         * tests/test-trunc2.c (check): Likewise.
35326         * tests/test-truncf2.c (check): Likewise.
35327         * tests/test-round2.c (equal): Likewise.
35328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35329
35330 2010-04-07  Karl Berry  <karl@gnu.org>
35331
35332         * config/srclist.txt,
35333         * config/srclistvars.sh,
35334         * config/srclist-update: doc fixes.
35335
35336 2010-04-07  Jim Meyering  <meyering@redhat.com>
35337
35338         maint.mk: add a PATH crosschecking syntax-check rule
35339         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35340         Useful if you use a test like the one in help-version (coreutils,
35341         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35342         printed by prog --version.
35343
35344 2010-04-06  Bruno Haible  <bruno@clisp.org>
35345
35346         Fix link error on mingw.
35347         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35348         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35349
35350 2010-04-06  Bruno Haible  <bruno@clisp.org>
35351
35352         Assume rmdir exists.
35353         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35354
35355 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35356
35357         doc: update users.txt
35358         * users.txt: Add gcal.
35359
35360 2010-04-06  Jim Meyering  <meyering@redhat.com>
35361
35362         init.sh: simply unset TMPDIR rather than risking env -i
35363         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35364         although it probably works fine on all Unix-based systems, some
35365         systems (Cygwin?) cannot tolerate a totally cleared environment.
35366         Suggestion from Eric Blake.
35367
35368 2010-04-06  Jim Meyering  <meyering@redhat.com>
35369
35370         init.sh: portability fix: use env's POSIX-specified -i option not -u
35371         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35372         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35373
35374 2010-04-05  Bruno Haible  <bruno@clisp.org>
35375
35376         btowc: Work around Cygwin 1.7.2 bug.
35377         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35378         does not map NUL to 0.
35379         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35380
35381 2010-04-05  Bruno Haible  <bruno@clisp.org>
35382
35383         Make the multithread modules work on Cygwin 1.7.2.
35384         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35385         imported symbols can be declared weak, so that it returns "no" on
35386         Cygwin 1.7.2.
35387
35388 2010-04-05  Bruno Haible  <bruno@clisp.org>
35389
35390         Use the module 'strncat'.
35391         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35392
35393         Tests for module 'strncat'.
35394         * modules/strncat-tests: New file.
35395         * tests/test-strncat.c: New file.
35396
35397         New module 'strncat'.
35398         * lib/string.in.h (strncat): New declaration.
35399         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35400         * m4/strncat.m4: New file, based on m4/memchr.m4.
35401         * modules/strncat: New file.
35402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35403         is declared.
35404         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35405         REPLACE_STRNCAT.
35406         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35407         REPLACE_STRNCAT.
35408         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35409         module.
35410         * tests/test-string-c++.cc: Check signature of strncat.
35411
35412 2010-04-05  Jim Meyering  <meyering@redhat.com>
35413
35414         xstrtoumax-tests: convert to use init.sh
35415         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35416         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35417         Use Exit, not exit.
35418         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35419
35420         xstrtoimax-tests: convert to use init.sh
35421         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35422         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35423         Use Exit, not exit.
35424         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35425
35426 2010-04-05  Bruno Haible  <bruno@clisp.org>
35427
35428         sys_socket: Avoid #define replacements in C++ mode.
35429         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35430         warning to the function if possible, rather than #defining the symbol
35431         to a dysfunctional alias.
35432
35433 2010-04-05  Bruno Haible  <bruno@clisp.org>
35434
35435         fseeko: Fix C++ test error on mingw.
35436         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35437         gl_FUNC_FSEEKO.
35438         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35439         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35440         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35441         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35442
35443 2010-04-05  Bruno Haible  <bruno@clisp.org>
35444
35445         duplocale: Improve test output.
35446         * tests/test-duplocale.c (main): Print reason for skipped test.
35447
35448 2010-04-05  Bruno Haible  <bruno@clisp.org>
35449
35450         Assume rmdir exists.
35451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35452         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35453
35454 2010-04-05  Bruno Haible  <bruno@clisp.org>
35455
35456         Fix link error on Solaris 8 with cc.
35457         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35458
35459 2010-04-05  Bruno Haible  <bruno@clisp.org>
35460
35461         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35462         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35463
35464 2010-04-05  Bruno Haible  <bruno@clisp.org>
35465
35466         vasprintf: Update documentation.
35467         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35468
35469 2010-04-05  Bruno Haible  <bruno@clisp.org>
35470
35471         ptsname: Improve test.
35472         * tests/test-ptsname.c (main): Also try the various master names of BSD
35473         systems.
35474
35475 2010-04-05  Bruno Haible  <bruno@clisp.org>
35476
35477         memchr: Avoid a possible C++ test error.
35478         * lib/string.in.h (memchr): Provide declaration if function is missing.
35479         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35480         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35482         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35483
35484 2010-04-05  Bruno Haible  <bruno@clisp.org>
35485
35486         strtok_r: Improve idiom.
35487         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35488         AC_LIBOBJ is used.
35489
35490 2010-04-05  Bruno Haible  <bruno@clisp.org>
35491
35492         strdup: Improve idiom.
35493         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35494         AC_LIBOBJ is used.
35495         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35496         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35497         when AC_LIBOBJ is used.
35498
35499 2010-04-05  Bruno Haible  <bruno@clisp.org>
35500
35501         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35502         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35503         don't set REPLACE_MBSINIT to 1.
35504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35505         don't set REPLACE_MBRTOWC to 1.
35506         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35507         exist, don't set REPLACE_MBSRTOWCS to 1.
35508         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35509         exist, don't set REPLACE_MBSNRTOWCS to 1.
35510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35511         don't set REPLACE_WCRTOMB to 1.
35512         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35513         exist, don't set REPLACE_WCSRTOMBS to 1.
35514         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35515         exist, don't set REPLACE_WCSNRTOMBS to 1.
35516
35517 2010-04-05  Bruno Haible  <bruno@clisp.org>
35518
35519         ldexpl: Improve idiom.
35520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35521         make sure to set HAVE_DECL_LDEXPL to 0.
35522
35523 2010-04-05  Jim Meyering  <meyering@redhat.com>
35524
35525         xstrtol-tests: convert to use init.sh
35526         * modules/xstrtol-tests (Files): Add tests/init.sh.
35527         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35528         Use Exit, not exit.
35529         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35530
35531         atexit-tests: convert to use init.sh
35532         * modules/atexit-tests (Files): Add tests/init.sh.
35533         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35534         Use Exit, not exit.
35535         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35536
35537         init.sh: fix typo
35538         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35539
35540         init.sh: make it easier for a test script to write to the tty, ...
35541         when using automake's parallel-tests mode.
35542         * tests/init.sh (stderr_fileno_): Define overridable variable.
35543         (warn_): New function, to use it.
35544         (fail_, skip_, framework_failure_): Use warn_.
35545
35546 2010-04-04  Bruno Haible  <bruno@clisp.org>
35547
35548         btowc: Avoid warning.
35549         * lib/btowc.c: Include <stdlib.h>.
35550         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35551
35552 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35553             Bruno Haible  <bruno@clisp.org>
35554
35555         wchar: Port to NetBSD 1.5.
35556         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35557         * lib/wctype.in.h (WEOF): Likewise.
35558
35559 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35560             Bruno Haible  <bruno@clisp.org>
35561
35562         Port extended stdio to NetBSD 1.5.
35563         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35564         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35565         older.
35566
35567 2010-04-04  Bruno Haible  <bruno@clisp.org>
35568
35569         string: Remove unused substitution.
35570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35571         HAVE_DECL_STRERROR.
35572         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35573
35574 2010-04-04  Bruno Haible  <bruno@clisp.org>
35575
35576         strtod: Avoid a possible C++ test error.
35577         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35578         set REPLACE_STRTOD.
35579
35580 2010-04-04  Bruno Haible  <bruno@clisp.org>
35581
35582         strerror: Update documentation.
35583         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35584
35585 2010-04-04  Bruno Haible  <bruno@clisp.org>
35586
35587         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35588         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35589         _GL_CXXALIAS_SYS_CAST.
35590
35591 2010-04-04  Bruno Haible  <bruno@clisp.org>
35592
35593         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35594         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35595         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35596         REPLACE_FREXPL to 1.
35597         * doc/posix-functions/frexpl.texi: Update documentation.
35598
35599 2010-04-04  Bruno Haible  <bruno@clisp.org>
35600
35601         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35602         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35603
35604 2010-04-04  Bruno Haible  <bruno@clisp.org>
35605
35606         Implement nanosleep for native Windows.
35607         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35608
35609 2010-04-04  Bruno Haible  <bruno@clisp.org>
35610
35611         math: Fix some C++ test errors on Solaris 8.
35612         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35613
35614 2010-04-04  Bruno Haible  <bruno@clisp.org>
35615
35616         math: Fix some C++ test errors on Cygwin.
35617         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35618         truncl): Provide declaration if the system does not have it.
35619         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35620         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35621         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35622         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35623         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35624         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35625         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35626         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35627         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35628         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35629         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35630         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35631         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35632         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35633         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35634         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35636         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35637         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35638         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35639         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35640         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35641
35642 2010-04-04  Bruno Haible  <bruno@clisp.org>
35643
35644         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35645         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35646         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35647         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35648         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35649         * m4/isinf.m4 (gl_ISINF): Likewise.
35650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35651
35652 2010-04-04  Bruno Haible  <bruno@clisp.org>
35653
35654         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35655         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35656
35657 2010-04-04  Bruno Haible  <bruno@clisp.org>
35658
35659         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35660         * modules/tmpfile (configure.ac): Update.
35661
35662         tmpfile: Fix C++ test error on mingw.
35663         * lib/stdio.in.h (tmpfile): New declaration.
35664         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35665         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35666         * modules/tmpfile (Depends-on): Add stdio.
35667         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35668         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35669         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35670         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35671         REPLACE_TMPFILE.
35672         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35673
35674 2010-04-04  Bruno Haible  <bruno@clisp.org>
35675
35676         ioctl: Fix C++ test error on mingw.
35677         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35678         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35679         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35680
35681 2010-04-03  Bruno Haible  <bruno@clisp.org>
35682
35683         wcwidth: Fix C++ test error on mingw.
35684         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35686         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35687
35688 2010-04-03  Bruno Haible  <bruno@clisp.org>
35689
35690         nanosleep: Fix C++ test error on mingw.
35691         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35692         * lib/time.in.h (nanosleep): Use modern idiom.
35693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35694         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35695         REPLACE_NANOSLEEP to 1.
35696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35697         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35698
35699 2010-04-03  Bruno Haible  <bruno@clisp.org>
35700
35701         strptime: Fix C++ test error on mingw.
35702         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35703         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35704         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35705         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35707         not REPLACE_STRPTIME.
35708         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35709         REPLACE_STRPTIME.
35710
35711 2010-04-03  Bruno Haible  <bruno@clisp.org>
35712
35713         timegm: Fix C++ test error on mingw.
35714         * lib/time.in.h (timegm): Use modern idiom.
35715         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35716         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35718         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35719
35720 2010-04-03  Bruno Haible  <bruno@clisp.org>
35721
35722         timegm: Assume declaration if function exists.
35723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35724         if it exists. Don't clobber ac_cv_func_timegm.
35725
35726 2010-04-03  Bruno Haible  <bruno@clisp.org>
35727
35728         time_r: Fix C++ test error on mingw.
35729         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35730         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35731         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35733         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35734
35735 2010-04-03  Bruno Haible  <bruno@clisp.org>
35736
35737         time_r: Minor updates.
35738         * modules/time_r (Description): Mention the provided functions.
35739         * lib/time_r.c: Don't include <string.h>.
35740         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35741         * doc/posix-functions/localtime_r.texi: Likewise.
35742
35743 2010-04-03  Bruno Haible  <bruno@clisp.org>
35744
35745         time: Fix regression introduced on 2010-03-08.
35746         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35747         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35748
35749 2010-04-03  Jim Meyering  <meyering@redhat.com>
35750
35751         maint.mk: don't silently disable project-specific syntax-check rules
35752         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35753         that they need to convert their project-specific syntax-check rules
35754         to use the new _sc_search_regexp.
35755
35756 2010-04-03  Bruno Haible  <bruno@clisp.org>
35757
35758         fchdir: Fix regression introduced on 2010-03-08.
35759         * lib/unistd.in.h (fchdir): Fix declaration.
35760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35762         REPLACE_FCHDIR.
35763         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35764         REPLACE_FCHDIR.
35765
35766 2010-04-03  Bruno Haible  <bruno@clisp.org>
35767
35768         getpagesize: Fix C++ test error on mingw.
35769         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35770         system does not declare the function.
35771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35772         declared.
35773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35774         HAVE_DECL_GETPAGESIZE.
35775         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35776
35777 2010-04-03  Bruno Haible  <bruno@clisp.org>
35778
35779         stdio: Make C++ tests work on mingw.
35780         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35781         does not declare the function.
35782
35783 2010-04-03  Bruno Haible  <bruno@clisp.org>
35784
35785         ftello: Fix C++ test error on mingw.
35786         * lib/stdio.in.h (ftello): Use modern idiom.
35787         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35788         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35789         is missing and that it needs to be replaced.
35790         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35792         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35793
35794 2010-04-03  Bruno Haible  <bruno@clisp.org>
35795
35796         fseeko: Fix C++ test error on mingw.
35797         * lib/stdio.in.h (fseeko): Use modern idiom.
35798         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35799         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35800         is missing and that it needs to be replaced.
35801         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35803         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35804
35805 2010-04-03  Bruno Haible  <bruno@clisp.org>
35806
35807         mkstemp: Fix C++ test error on mingw.
35808         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35810         function is missing and that it needs to be replaced.
35811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35812         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35813
35814 2010-04-03  Bruno Haible  <bruno@clisp.org>
35815
35816         stpncpy: Fix C++ test error on mingw.
35817         * lib/string.in.h (stpncpy): Use modern idiom.
35818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35819         function is missing and that it needs to be replaced.
35820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35821         REPLACE_STPNCPY.
35822         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35823
35824 2010-04-03  Bruno Haible  <bruno@clisp.org>
35825
35826         sys_stat: Fix C++ test error on mingw.
35827         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35828         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35829
35830 2010-04-03  Bruno Haible  <bruno@clisp.org>
35831
35832         pty: Update doc.
35833         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35834
35835 2010-04-03  Bruno Haible  <bruno@clisp.org>
35836
35837         unistd: Fix C++ test error on mingw.
35838         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35839
35840 2010-04-03  Bruno Haible  <bruno@clisp.org>
35841
35842         Update doc regarding mingw.
35843         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35844         * doc/glibc-functions/login_tty.texi: Likewise.
35845         * doc/glibc-functions/forkpty.texi: Likewise.
35846
35847 2010-04-03  Bruno Haible  <bruno@clisp.org>
35848
35849         stdlib: Avoid compilation failure of c-strtold on mingw.
35850         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35851
35852 2010-04-03  Bruno Haible  <bruno@clisp.org>
35853
35854         locale: Make C++ tests work on Cygwin and mingw.
35855         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35856         cannot provide the function.
35857         Reported by Simon Josefsson.
35858
35859 2010-04-03  Bruno Haible  <bruno@clisp.org>
35860
35861         localename: Port to MacOS X 10.6.
35862         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35863         memory layout of the locales in MacOS X 10.6 as well.
35864         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35865
35866 2010-04-02  Bruno Haible  <bruno@clisp.org>
35867
35868         gnulib-tool: Ensure that long-running tests are executed last.
35869         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35870         running tests after the one for the other tests.
35871
35872 2010-04-02  Bruno Haible  <bruno@clisp.org>
35873
35874         gnulib-tool: Ensure the tests in the main directory are executed first.
35875         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35876         start with the current directory.
35877
35878 2010-04-02  Bruno Haible  <bruno@clisp.org>
35879
35880         Tests for module 'havelib', moved here from GNU gettext.
35881         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35882         modifications.
35883         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35884         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35885         with modifications.
35886         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35887         modifications.
35888         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35889         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35890         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35891         with modifications.
35892         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35893         with modifications.
35894         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35895         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35896         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35897         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35898         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35899         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35900         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35901         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35902         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35903         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35904         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35905         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35906         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35907         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35908         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35909         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35910         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35911         with modifications.
35912         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35913         with modifications.
35914         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35915         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35916         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35917         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35918         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35919         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35920         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35921         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35922         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35923         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35924         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35925         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35926         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35927         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35928         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35929         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35930         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35931         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35932         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35933         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35934         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35935         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35936         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35937         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35938         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35939         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35940         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35941         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35942         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35943         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35944         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35945         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35946         * tests/havelib/rpathx/rpathx.c: New file, from
35947         gettext/autoconf-lib-link.
35948         * tests/havelib/rpathx/Makefile.am: New file, from
35949         gettext/autoconf-lib-link.
35950         * tests/havelib/rpathx/configure.ac: New file, from
35951         gettext/autoconf-lib-link with modifications.
35952         * tests/havelib/rpathy/rpathy.c: New file, from
35953         gettext/autoconf-lib-link.
35954         * tests/havelib/rpathy/Makefile.am: New file, from
35955         gettext/autoconf-lib-link.
35956         * tests/havelib/rpathy/configure.ac: New file, from
35957         gettext/autoconf-lib-link with modifications.
35958         * tests/havelib/rpathz/rpathz.c: New file, from
35959         gettext/autoconf-lib-link.
35960         * tests/havelib/rpathz/Makefile.am: New file, from
35961         gettext/autoconf-lib-link.
35962         * tests/havelib/rpathz/configure.ac: New file, from
35963         gettext/autoconf-lib-link with modifications.
35964         * tests/havelib/rpathlx/usex.c: New file, from
35965         gettext/autoconf-lib-link.
35966         * tests/havelib/rpathlx/Makefile.am: New file, from
35967         gettext/autoconf-lib-link.
35968         * tests/havelib/rpathlx/configure.ac: New file, from
35969         gettext/autoconf-lib-link with modifications.
35970         * tests/havelib/rpathly/usey.c: New file, from
35971         gettext/autoconf-lib-link.
35972         * tests/havelib/rpathly/Makefile.am: New file, from
35973         gettext/autoconf-lib-link.
35974         * tests/havelib/rpathly/configure.ac: New file, from
35975         gettext/autoconf-lib-link with modifications.
35976         * tests/havelib/rpathlz/usez.c: New file, from
35977         gettext/autoconf-lib-link.
35978         * tests/havelib/rpathlz/Makefile.am: New file, from
35979         gettext/autoconf-lib-link.
35980         * tests/havelib/rpathlz/configure.ac: New file, from
35981         gettext/autoconf-lib-link with modifications.
35982         * tests/havelib/rpathlyx/usey.c: New file, from
35983         gettext/autoconf-lib-link.
35984         * tests/havelib/rpathlyx/Makefile.am: New file, from
35985         gettext/autoconf-lib-link.
35986         * tests/havelib/rpathlyx/configure.ac: New file, from
35987         gettext/autoconf-lib-link with modifications.
35988         * tests/havelib/rpathlzyx/usez.c: New file, from
35989         gettext/autoconf-lib-link.
35990         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35991         gettext/autoconf-lib-link.
35992         * tests/havelib/rpathlzyx/configure.ac: New file, from
35993         gettext/autoconf-lib-link with modifications.
35994         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35995         with modifications.
35996
35997 2010-04-02  Bruno Haible  <bruno@clisp.org>
35998
35999         gnulib-tool: Create distributed built sources also for the tests.
36000         * gnulib-tool (func_create_testdir): Also generate distributed built
36001         sources in the tests directory.
36002
36003 2010-04-02  Bruno Haible  <bruno@clisp.org>
36004
36005         gnulib-tool: Obey user's environment variables.
36006         * gnulib-tool (func_create_testdir): When creating built sources,
36007         respect the environment variables for autoconf, automake, etc. given by
36008         the user.
36009
36010 2010-04-02  Bruno Haible  <bruno@clisp.org>
36011
36012         gnulib-tool: Provide the value of --m4-base to modules.
36013         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36014         of gl_m4_base.
36015
36016 2010-04-02  Eric Blake  <eblake@redhat.com>
36017
36018         maint.mk: fix some fallout
36019         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36020         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36021
36022 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36023
36024         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36025         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36026         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36027         (sc_cast_of_x_alloc_return_value): Likewise.
36028         (sc_cast_of_alloca_return_value): Likewise.
36029         (sc_space_tab): Likewise.
36030         (sc_prohibit_atoi_atof): Likewise.
36031         (sc_prohibit_magic_number_exit): Likewise.
36032         (sc_error_exit_success): Likewise.
36033         (sc_file_system): Likewise.
36034         (sc_prohibit_have_config_h): Likewise.
36035         (sc_require_config_h): Likewise.
36036         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36037         (sc_obsolete_symbols): Likewise.
36038         (sc_changelog): Likewise.
36039         (sc_program_name): Likewise.
36040         (sc_the_the): Likewise.
36041         (sc_trailing_blank): Likewise.
36042         (sc_two_space_separator_in_usage): Likewise.
36043         (sc_useless_cpp_parens): Likewise.
36044         (sc_GPL_version): Likewise.
36045         (sc_GFDL_version): Likewise.
36046         (sc_texinfo_acronym): Likewise.
36047         (sc_prohibit_cvs_keyword): Likewise.
36048         (sc_prohibit_stat_st_blocks): Likewise.
36049         (sc_prohibit_S_IS_definition): Likewise.
36050         (sc_redundant_const): Likewise.
36051         (sc_makefile_TAB_only_indentation): Likewise.
36052         (sc_m4_quote_check): Likewise.
36053         (sc_makefile_path_separator_check): Likewise.
36054         (sc_copyright_check): Likewise.
36055         (sc_Wundef_boolean): Likewise.
36056         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36057
36058         maint.mk: match 0 or more whitespace-before-function-call '('
36059         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36060         that have zero or two-and-more spaces between the function name
36061         and the open parenthesis.
36062         (sc_error_message_warn_fatal): Likewise.
36063         (sc_error_message_uppercase): Likewise.
36064         (sc_error_message_period): Likewise.
36065
36066 2010-03-31  Eric Blake  <eblake@redhat.com>
36067
36068         maint.mk: check for [ as well as test
36069         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36070         Based on a libvirt report by Matthias Bolte.
36071
36072         gnumakefile: don't squelch _version output
36073         * top/GNUmakefile (_version): Create one-shot dependency rather
36074         than using $(shell) when version must be regenerated.
36075         (_autoreconf): Run verbosely, by default.
36076
36077         sys_time: avoid compiler warnings
36078         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36079         unconditional, fixing regression from 2010-03-29.
36080         Reported by Simon Josefsson.
36081
36082 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36083
36084         maint.mk: s/_header_without_use/_sc_header_without_use/
36085         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36086         (sc_prohibit_assert_without_use): Use the new name.
36087         (sc_prohibit_close_stream_without_use): Likewise.
36088         (sc_prohibit_getopt_without_use): Likewise.
36089         (sc_prohibit_quotearg_without_use): Likewise.
36090         (sc_prohibit_quote_without_use): Likewise.
36091         (sc_prohibit_long_options_without_use): Likewise.
36092         (sc_prohibit_inttostr_without_use): Likewise.
36093         (sc_prohibit_ignore_value_without_use): Likewise.
36094         (sc_prohibit_error_without_use): Likewise.
36095         (sc_prohibit_xalloc_without_use): Likewise.
36096         (sc_prohibit_hash_without_use): Likewise.
36097         (sc_prohibit_hash_pjw_without_use): Likewise.
36098         (sc_prohibit_safe_read_without_use): Likewise.
36099         (sc_prohibit_argmatch_without_use): Likewise.
36100         (sc_prohibit_canonicalize_without_use): Likewise.
36101         (sc_prohibit_root_dev_ino_without_use): Likewise.
36102         (sc_prohibit_openat_without_use): Likewise.
36103         (sc_prohibit_c_ctype_without_use): Likewise.
36104         (sc_prohibit_signal_without_use): Likewise.
36105         (sc_prohibit_intprops_without_use): Likewise.
36106
36107 2010-03-30  Eric Blake  <eblake@redhat.com>
36108
36109         maint: improve module indicators
36110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36111         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36112         columns, and avoid extra macro expansion.
36113
36114         fdopendir: work around FreeBSD bug
36115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36117         * modules/dirent (Makefile.am): Substitute it.
36118         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36119         declaration.
36120         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36121         fix.
36122         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36123
36124 2010-03-29  Bruno Haible  <bruno@clisp.org>
36125
36126         Emit #pragma system_header after the inclusion guard, not before.
36127         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36128         guard that spans the entire file, not before. This enables an
36129         optimization in GCC's preprocessor.
36130         * lib/ctype.in.h: Likewise.
36131         * lib/dirent.in.h: Likewise.
36132         * lib/errno.in.h: Likewise.
36133         * lib/float.in.h: Likewise.
36134         * lib/getopt.in.h: Likewise.
36135         * lib/iconv.in.h: Likewise.
36136         * lib/langinfo.in.h: Likewise.
36137         * lib/locale.in.h: Likewise.
36138         * lib/math.in.h: Likewise.
36139         * lib/netdb.in.h: Likewise.
36140         * lib/netinet_in.in.h: Likewise.
36141         * lib/pty.in.h: Likewise.
36142         * lib/sched.in.h: Likewise.
36143         * lib/se-selinux.in.h: Likewise.
36144         * lib/search.in.h: Likewise.
36145         * lib/spawn.in.h: Likewise.
36146         * lib/stdarg.in.h: Likewise.
36147         * lib/stdint.in.h: Likewise.
36148         * lib/string.in.h: Likewise.
36149         * lib/strings.in.h: Likewise.
36150         * lib/sys_file.in.h: Likewise.
36151         * lib/sys_ioctl.in.h: Likewise.
36152         * lib/sys_time.in.h: Likewise.
36153         * lib/sys_times.in.h: Likewise.
36154         * lib/sys_utsname.in.h: Likewise.
36155         * lib/sys_wait.in.h: Likewise.
36156         * lib/sysexits.in.h: Likewise.
36157         * lib/wctype.in.h: Likewise.
36158
36159 2010-03-28  James Youngman  <jay@gnu.org>
36160
36161         save-cwd: don't leak a file descriptor when the caller execs.
36162         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36163         saved file descriptor.
36164         * modules/save-cwd (Depends-on): Depend on cloexec.
36165
36166 2010-03-29  Bruno Haible  <bruno@clisp.org>
36167
36168         Remove vestiges of fts-lgpl module.
36169         * lib/fts_.h: Assume GNULIB_FTS is 1.
36170         * lib/fts.c: Likewise.
36171         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36172
36173 2010-03-28  Bruno Haible  <bruno@clisp.org>
36174
36175         Fix definition of tests witness macro.
36176         * gnulib-tool (func_import): Fix definition of witness macro.
36177
36178 2010-03-28  Bruno Haible  <bruno@clisp.org>
36179
36180         Fix ioctl's protoype on glibc systems.
36181         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36182         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36183         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36184         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36185         signature. If not, arrange to replace the ioctl function.
36186         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36187         REPLACE_IOCTL.
36188         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36189         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36190         Reported by Ludovic Courtès <ludo@gnu.org>.
36191
36192 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36193
36194         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36195         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36196         made it so grep -r --include=GLOB* ... did not work.
36197
36198 2010-03-26  Jim Meyering  <meyering@redhat.com>
36199             Eric Blake  <eblake@redhat.com>
36200
36201         maint.mk: prohibit use of test's -o and -a operators
36202         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36203
36204 2010-03-28  Bruno Haible  <bruno@clisp.org>
36205
36206         Remove unused GNULIB_XYZ macro definitions.
36207         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36208         invocation.
36209
36210 2010-03-28  Bruno Haible  <bruno@clisp.org>
36211
36212         Mark privileged tests modules.
36213         * modules/idpriv-drop-tests (Status): New section.
36214         * modules/idpriv-droptemp-tests (Status): New section.
36215
36216 2010-03-28  Bruno Haible  <bruno@clisp.org>
36217
36218         Split C++ tests into separate tests modules.
36219         * modules/dirent-c++-tests: New file, extracted from
36220         modules/dirent-tests.
36221         * modules/dirent-tests: Depend on it.
36222         * modules/fcntl-h-c++-tests: New file, extracted from
36223         modules/fcntl-h-tests.
36224         * modules/fcntl-h-tests: Depend on it.
36225         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36226         * modules/glob-tests: Depend on it.
36227         * modules/iconv-h-c++-tests: New file, extracted from
36228         modules/iconv-h-tests.
36229         * modules/iconv-h-tests: Depend on it.
36230         * modules/langinfo-c++-tests: New file, extracted from
36231         modules/langinfo-tests.
36232         * modules/langinfo-tests: Depend on it.
36233         * modules/locale-c++-tests: New file, extracted from
36234         modules/locale-tests.
36235         * modules/locale-tests: Depend on it.
36236         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36237         * modules/math-tests: Depend on it.
36238         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36239         * modules/pty-tests: Depend on it.
36240         * modules/search-c++-tests: New file, extracted from
36241         modules/search-tests.
36242         * modules/search-tests: Depend on it.
36243         * modules/signal-c++-tests: New file, extracted from
36244         modules/signal-tests.
36245         * modules/signal-tests: Depend on it.
36246         * modules/spawn-c++-tests: New file, extracted from
36247         modules/spawn-tests.
36248         * modules/spawn-tests: Depend on it.
36249         * modules/stdio-c++-tests: New file, extracted from
36250         modules/stdio-tests.
36251         * modules/stdio-tests: Depend on it.
36252         * modules/stdlib-c++-tests: New file, extracted from
36253         modules/stdlib-tests.
36254         * modules/stdlib-tests: Depend on it.
36255         * modules/string-c++-tests: New file, extracted from
36256         modules/string-tests.
36257         * modules/string-tests: Depend on it.
36258         * modules/sys_ioctl-c++-tests: New file, extracted from
36259         modules/sys_ioctl-tests.
36260         * modules/sys_ioctl-tests: Depend on it.
36261         * modules/sys_select-c++-tests: New file, extracted from
36262         modules/sys_select-tests.
36263         * modules/sys_select-tests: Depend on it.
36264         * modules/sys_socket-c++-tests: New file, extracted from
36265         modules/sys_socket-tests.
36266         * modules/sys_socket-tests: Depend on it.
36267         * modules/sys_stat-c++-tests: New file, extracted from
36268         modules/sys_stat-tests.
36269         * modules/sys_stat-tests: Depend on it.
36270         * modules/sys_time-c++-tests: New file, extracted from
36271         modules/sys_time-tests.
36272         * modules/sys_time-tests: Depend on it.
36273         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36274         * modules/time-tests: Depend on it.
36275         * modules/unistd-c++-tests: New file, extracted from
36276         modules/unistd-tests.
36277         * modules/unistd-tests: Depend on it.
36278         * modules/wchar-c++-tests: New file, extracted from
36279         modules/wchar-tests.
36280         * modules/wchar-tests: Depend on it.
36281         * modules/wctype-c++-tests: New file, extracted from
36282         modules/wctype-tests.
36283         * modules/wctype-tests: Depend on it.
36284         Reported by Simon Josefsson.
36285
36286 2010-03-28  Bruno Haible  <bruno@clisp.org>
36287
36288         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36289         * gnulib-tool (func_exists_module): New function, extracted from
36290         func_verify_module.
36291         (func_verify_module): Use it.
36292         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36293         'foo' only if 'foo' exists.
36294         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36295         module.
36296
36297 2010-03-28  Bruno Haible  <bruno@clisp.org>
36298
36299         gnulib-tool: Add support for special categories of tests.
36300         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36301         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36302         (func_usage): Document them.
36303         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36304         inc_unportable_tests, inc_all_tests): New variables.
36305         (func_acceptable): Consider these variables.
36306         (func_modules_transitive_closure): Make it work when the 'Status' field
36307         consists of multiple words.
36308         (func_import): Store and restore the values of inc_cxx_tests,
36309         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36310         inc_all_tests in gnulib-comp.m4.
36311         (func_create_testdir): Set inc_all_tests to true.
36312         * doc/gnulib.texi (Extra tests modules): New section.
36313         Suggested by Jim Meyering.
36314
36315 2010-03-28  Bruno Haible  <bruno@clisp.org>
36316
36317         ansi-c++-opt: Allow turning off the C++ build by default.
36318         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36319         gl_CXX_CHOICE_DEFAULT_NO is defined.
36320         Requested by Eric Blake.
36321
36322 2010-03-28  Bruno Haible  <bruno@clisp.org>
36323
36324         unistd: Avoid #define replacements in C++ mode.
36325         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36326         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36327         setsockopt, shutdown, select): In C++, attach a warning to the function
36328         if possible, rather than #defining the symbol to a dysfunctional alias.
36329         Reported by John W. Eaton <jwe@gnu.org>.
36330
36331 2010-03-28  Bruno Haible  <bruno@clisp.org>
36332
36333         Fix link errors on mingw.
36334         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36335         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36336         $(LIBSOCKET).
36337         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36338         $(LIBSOCKET).
36339
36340 2010-03-28  Bruno Haible  <bruno@clisp.org>
36341             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36342
36343         lib-ignore: Determine different options for different compilers.
36344         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36345         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36346         Add comments.
36347         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36348         * NEWS: Mention the change.
36349
36350 2010-03-27  Bruno Haible  <bruno@clisp.org>
36351
36352         Remove unused GNULIB_XYZ macro definitions.
36353         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36354         * modules/fseek (configure.ac): Likewise.
36355         * modules/ioctl (configure.ac): Likewise.
36356         * modules/open (configure.ac): Likewise.
36357         * modules/stdlib-safer (configure.ac): Likewise.
36358
36359 2010-03-27  Bruno Haible  <bruno@clisp.org>
36360
36361         Add a remark about certain modules.
36362         * modules/malloc (Comment): New section.
36363         * modules/realloc (Comment): Likewise.
36364         * modules/sigpipe (Comment): Likewise.
36365
36366 2010-03-27  Bruno Haible  <bruno@clisp.org>
36367
36368         Resolve conflict between the two kinds of module indicators.
36369         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36370         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36371         * modules/canonicalize (configure.ac): Invoke
36372         gl_MODULE_INDICATOR_FOR_TESTS.
36373         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36374         GNULIB_XYZ.
36375         * tests/test-dirent-c++.cc: Likewise.
36376         * tests/test-dirent-safer.c: Likewise.
36377         * tests/test-dup2.c: Likewise.
36378         * tests/test-fchdir.c: Likewise.
36379         * tests/test-fcntl-h-c++.cc: Likewise.
36380         * tests/test-getopt.c: Likewise.
36381         * tests/test-getopt.h: Likewise.
36382         * tests/test-langinfo-c++.cc: Likewise.
36383         * tests/test-locale-c++.cc: Likewise.
36384         * tests/test-math-c++.cc: Likewise.
36385         * tests/test-pty-c++.cc: Likewise.
36386         * tests/test-search-c++.cc: Likewise.
36387         * tests/test-signal-c++.cc: Likewise.
36388         * tests/test-spawn-c++.cc: Likewise.
36389         * tests/test-stdio-c++.cc: Likewise.
36390         * tests/test-stdlib-c++.cc: Likewise.
36391         * tests/test-string-c++.cc: Likewise.
36392         * tests/test-sys_ioctl-c++.cc: Likewise.
36393         * tests/test-sys_select-c++.cc: Likewise.
36394         * tests/test-sys_socket-c++.cc: Likewise.
36395         * tests/test-sys_stat-c++.cc: Likewise.
36396         * tests/test-sys_time-c++.cc: Likewise.
36397         * tests/test-time-c++.cc: Likewise.
36398         * tests/test-unistd-c++.cc: Likewise.
36399         * tests/test-wchar-c++.cc: Likewise.
36400         * tests/uninorm/test-u8-nfc.c: Likewise.
36401         * tests/uninorm/test-u8-nfd.c: Likewise.
36402         * tests/uninorm/test-u8-nfkc.c: Likewise.
36403         * tests/uninorm/test-u8-nfkd.c: Likewise.
36404         * tests/uninorm/test-u16-nfc.c: Likewise.
36405         * tests/uninorm/test-u16-nfd.c: Likewise.
36406         * tests/uninorm/test-u16-nfkc.c: Likewise.
36407         * tests/uninorm/test-u16-nfkd.c: Likewise.
36408         * tests/uninorm/test-u32-nfc.c: Likewise.
36409         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36410         * tests/uninorm/test-u32-nfd.c: Likewise.
36411         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36412         * tests/uninorm/test-u32-nfkc.c: Likewise.
36413         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36414         * tests/uninorm/test-u32-nfkd.c: Likewise.
36415         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36416         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36417
36418 2010-03-27  Bruno Haible  <bruno@clisp.org>
36419
36420         Distinguish two kinds of module indicators.
36421         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36422         gl_MODULE_INDICATOR.
36423         (gl_MODULE_INDICATOR): New macro.
36424         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36425         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36426         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36427         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36428         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36429         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36430         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36431         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36432         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36433         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36434         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36435         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36437         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36438         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36440         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36441         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36443         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36444         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36445         * modules/cloexec (configure.ac): Likewise.
36446         * modules/getopt-gnu (configure.ac): Likewise.
36447         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36448         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36449         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36450         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36451
36452 2010-03-27  Bruno Haible  <bruno@clisp.org>
36453
36454         New module description field 'Comment'.
36455         * gnulib-tool: New option --extract-comment.
36456         (func_usage): Document it.
36457         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36458         (func_get_comment): New function.
36459         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36460
36461 2010-03-27  Bruno Haible  <bruno@clisp.org>
36462
36463         Addendum to 2010-02-07 commit.
36464         * gnulib-tool (func_usage): Document --extract-applicability option.
36465
36466 2010-03-27  Bruno Haible  <bruno@clisp.org>
36467
36468         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36469         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36470         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36471         rather than link errors.
36472
36473 2010-03-27  Bruno Haible  <bruno@clisp.org>
36474
36475         Avoid side effects from tests-related modules on the compilation of lib.
36476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36477         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36478         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36479         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36480         macro.
36481         (func_import): Define a witness macro. Assign it a value that depends
36482         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36483         tests-related modules.
36484         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36485         Reported by Jim Meyering.
36486
36487 2010-03-27  Bruno Haible  <bruno@clisp.org>
36488
36489         Factorize common .m4 code.
36490         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36491         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36492         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36493         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36494         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36495         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36496         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36497         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36498         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36499         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36500         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36501         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36502         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36503         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36504         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36505         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36506         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36507         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36509         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36510         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36511         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36512         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36514         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36515         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36516         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36518         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36519         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36520         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36521         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36522
36523 2010-03-27  Bruno Haible  <bruno@clisp.org>
36524
36525         Fix a compilation error on Cygwin with g++ >= 4.3.
36526         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36527         if it is undefined or if we alias it to chmod.
36528         (lstat): Don't warn about the use of this function if it is undefined
36529         or if we alias it to stat.
36530         Reported by Simon Josefsson.
36531
36532 2010-03-27  Bruno Haible  <bruno@clisp.org>
36533
36534         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36535         * modules/getlogin (configure.ac): Update.
36536
36537         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36538         * modules/getlogin_r (configure.ac): Update.
36539
36540         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36542         * modules/inet_ntop (configure.ac): Update.
36543
36544         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36545         * modules/inet_pton (configure.ac): Update.
36546
36547         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36548         * modules/mbslen (configure.ac): Update.
36549
36550         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36551         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36552         * modules/forkpty (configure.ac): Update.
36553         * modules/openpty (configure.ac): Update.
36554
36555 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36556
36557         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36558         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36559
36560 2010-03-25  Eric Blake  <eblake@redhat.com>
36561
36562         maint: use pragma consistently across replacement headers
36563         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36564         * lib/dirent.in.h (system_header): Likewise.
36565         * lib/errno.in.h (system_header): Likewise.
36566         * lib/float.in.h (system_header): Likewise.
36567         * lib/getopt.in.h (system_header): Likewise.
36568         * lib/iconv.in.h (system_header): Likewise.
36569         * lib/inttypes.in.h (system_header): Likewise.
36570         * lib/langinfo.in.h (system_header): Likewise.
36571         * lib/locale.in.h (system_header): Likewise.
36572         * lib/math.in.h (system_header): Likewise.
36573         * lib/netdb.in.h (system_header): Likewise.
36574         * lib/netinet_in.in.h (system_header): Likewise.
36575         * lib/pty.in.h (system_header): Likewise.
36576         * lib/sched.in.h (system_header): Likewise.
36577         * lib/se-selinux.in.h (system_header): Likewise.
36578         * lib/search.in.h (system_header): Likewise.
36579         * lib/spawn.in.h (system_header): Likewise.
36580         * lib/stdarg.in.h (system_header): Likewise.
36581         * lib/stdint.in.h (system_header): Likewise.
36582         * lib/string.in.h (system_header): Likewise.
36583         * lib/strings.in.h (system_header): Likewise.
36584         * lib/sys_file.in.h (system_header): Likewise.
36585         * lib/sys_ioctl.in.h (system_header): Likewise.
36586         * lib/sys_socket.in.h (system_header): Likewise.
36587         * lib/sys_times.in.h (system_header): Likewise.
36588         * lib/sys_utsname.in.h (system_header): Likewise.
36589         * lib/sys_wait.in.h (system_header): Likewise.
36590         * lib/sysexits.in.h (system_header): Likewise.
36591         * lib/unistd.in.h (system_header): Likewise.
36592         * lib/wctype.in.h (system_header): Likewise.
36593
36594         arpa/inet: fix mingw compilation warning
36595         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36596         Reported by Matthew Bolte.
36597
36598 2010-03-25  Bruno Haible  <bruno@clisp.org>
36599
36600         Avoid collision between gnulib wrapper and libintl wrapper.
36601         * lib/printf.c (printf): Don't define if a printf wrapper is already
36602         defined in intl/printf.c.
36603         Reported by Michel Boaventura <michel@michelboaventura.com>.
36604
36605 2010-03-25  Bruno Haible  <bruno@clisp.org>
36606
36607         Use ANSI C.
36608         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36609
36610 2010-03-25  Bruno Haible  <bruno@clisp.org>
36611
36612         Minor formatting changes.
36613         * lib/acosl.c: Insert space before function argument list.
36614         * lib/argz.c: Likewise.
36615         * lib/asinl.c: Likewise.
36616         * lib/expl.c: Likewise.
36617         * lib/gen-uni-tables.c: Likewise.
36618         * lib/gettext.h: Likewise.
36619         * lib/glthread/lock.h: Likewise.
36620         * lib/tanl.c: Likewise.
36621         * lib/uniname/uniname.c: Likewise.
36622         * tests/test-idpriv-drop.c: Likewise.
36623         * tests/test-idpriv-droptemp.c: Likewise.
36624         * tests/test-lock.c: Likewise.
36625         * tests/test-tls.c: Likewise.
36626         * lib/argp-help.c: Insert space before function-like macro argument
36627         list.
36628         * lib/memcmp.c: Likewise.
36629         * tests/test-base64.c: Likewise.
36630         * lib/localename.c: Insert space before sizeof's argument list.
36631         * lib/safe-alloc.h: Likewise.
36632         * lib/file-set.h: Insert space before macro argument list.
36633         * tests/test-argp.c: Likewise.
36634         * lib/argp-namefrob.h: Insert space before function parameter list.
36635         * lib/getaddrinfo.c: Likewise.
36636         * lib/netdb.in.h: Likewise.
36637         * lib/parse-duration.h: Likewise.
36638         * lib/parse-duration.c: Likewise.
36639         * lib/poll.c: Likewise.
36640         * lib/select.c: Likewise.
36641         * lib/trim.h: Likewise.
36642         * tests/test-usleep.c: Likewise.
36643         * lib/ldexpl.c: Insert space before function parameter list and before
36644         function argument list.
36645         * lib/logl.c: Likewise.
36646         * lib/sqrtl.c: Likewise.
36647         * lib/trim.c: Likewise.
36648         * lib/cosl.c: Use GNU style indentation. Insert space before function
36649         argument list.
36650         * lib/sinl.c: Likewise.
36651         * lib/tsearch.c: Insert space after 'for'.
36652         Reported by Jim Meyering.
36653
36654 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36655
36656         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36657         config header before grepping, as it's not present before
36658         autoreconf/configure are run.  Reported by Simon Josefsson.
36659
36660 2010-03-23  Bruno Haible  <bruno@clisp.org>
36661
36662         pt_chown: Make it work with automake < 1.11.
36663         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36664         Reported by Simon Josefsson.
36665
36666 2010-03-23  Bruno Haible  <bruno@clisp.org>
36667
36668         pt_chown: Don't depend on GPLed modules.
36669         * lib/pt_chown.c: Don't include idpriv.h.
36670         (main): Don't drop privileges.
36671         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36672         Reported by Simon Josefsson.
36673
36674 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36675
36676         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36677         suggestions from karl@freefriends.org (Karl Berry).
36678
36679 2010-03-22  Eric Blake  <eblake@redhat.com>
36680
36681         gethostname: further tweaks
36682         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36683         are overriding gethostname.
36684         Suggested by Bruno Haible.
36685
36686 2010-03-21  Bruno Haible  <bruno@clisp.org>
36687
36688         Fix comments.
36689         * lib/forkpty.c (rpl_forkpty): Fix comment.
36690         * lib/openpty.c (rpl_openpty): Likewise.
36691         Reported by Eric Blake.
36692
36693 2010-03-22  Eric Blake  <eblake@redhat.com>
36694
36695         gethostname: fix build on mingw
36696         * lib/unistd.in.h (includes): Work around fact that mingw
36697         <winsock2.h> re-includes <unistd.h>, by avoiding any
36698         redeclarations if we are being included by <winsock2.h>.
36699         Reported by Matthias Bolte.
36700
36701 2010-03-21  Bruno Haible  <bruno@clisp.org>
36702
36703         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36704         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36705         modifications.
36706         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36707         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36708         provide the replacement.
36709         * modules/forkpty (Depends-on): Add openpty, login_tty.
36710         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36711         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36712         * doc/glibc-functions/forkpty.texi: More supported platforms.
36713         * config/srclist.txt: Add forkpty.c (commented).
36714
36715 2010-03-21  Bruno Haible  <bruno@clisp.org>
36716
36717         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36718         (Makefile.am): Verify that PTY_LIB is defined.
36719
36720         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36721
36722 2010-03-21  Bruno Haible  <bruno@clisp.org>
36723
36724         Tests for module 'login_tty'.
36725         * modules/login_tty-tests: New file.
36726         * tests/test-login_tty.c: New file.
36727
36728         New module 'login_tty'.
36729         * lib/login_tty.c: New file.
36730         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36731         * modules/login_tty: New file.
36732         * doc/glibc-functions/login_tty.texi: Mention the new module.
36733
36734 2010-03-21  Bruno Haible  <bruno@clisp.org>
36735
36736         login_tty: Documentation.
36737         * doc/glibc-functions/login_tty.texi: New file.
36738         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36739
36740 2010-03-21  Bruno Haible  <bruno@clisp.org>
36741
36742         pty: Consistent macro naming.
36743         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36744         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36745         * modules/pty (configure.ac): Update.
36746
36747 2010-03-21  Bruno Haible  <bruno@clisp.org>
36748
36749         Tests for openpty: Make stricter.
36750         * tests/test-openpty.c (main): Add test of canonical processing and
36751         erase.
36752         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36753
36754         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36755         * lib/openpty.c (openpty): New replacement function.
36756         * lib/pty.in.h: Include <termios.h>.
36757         (openpty): Update declaration. Add comments.
36758         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36759         is not declared, arrange to provide the replacement. Check for _getpty
36760         and posix_openpt.
36761         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36762         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36763         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36764         * modules/pty-tests (test_pty_c___LDADD): New variable.
36765         * doc/glibc-functions/openpty.texi: More supported platforms.
36766
36767 2010-03-21  Bruno Haible  <bruno@clisp.org>
36768
36769         setenv: Tweaks.
36770         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36771         the test program.
36772         * doc/posix-functions/setenv.texi: Update platforms list.
36773
36774 2010-03-21  Bruno Haible  <bruno@clisp.org>
36775
36776         New module 'unlockpt'.
36777         * lib/unlockpt.c: New file, from glibc with modifications.
36778         * m4/unlockpt.m4: New file.
36779         * modules/unlockpt: New file.
36780         * lib/stdlib.in.h (unlockpt): New declaration.
36781         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36782         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36783         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36784         HAVE_UNLOCKPT.
36785         * doc/posix-functions/unlockpt.texi: Mention the new module.
36786         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36787         * config/srclist.txt: Add unlockpt.c (commented).
36788
36789 2010-03-21  Jim Meyering  <meyering@redhat.com>
36790
36791         maint.mk: prohibit inclusion of "intprops.h" without use
36792         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36793
36794 2010-03-21  Bruno Haible  <bruno@clisp.org>
36795
36796         New module 'grantpt'.
36797         * lib/grantpt.c: New file, from glibc with modifications.
36798         * m4/grantpt.m4: New file.
36799         * modules/grantpt: New file.
36800         * lib/stdlib.in.h (grantpt): New declaration.
36801         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36802         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36803         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36804         HAVE_GRANTPT.
36805         * doc/posix-functions/grantpt.texi: Mention the new module.
36806         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36807         * config/srclist.txt: Add grantpt.c (commented).
36808
36809 2010-03-21  Bruno Haible  <bruno@clisp.org>
36810
36811         New module 'pt_chown'.
36812         * lib/pt_chown.c: New file, from glibc with modifications.
36813         * lib/pty-private.h: New file, from glibc with modifications.
36814         * modules/pt_chown: New file.
36815         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36816
36817 2010-03-21  Bruno Haible  <bruno@clisp.org>
36818
36819         Tests for module 'ptsname'.
36820         * modules/ptsname-tests: New file.
36821         * tests/test-ptsname.c: New file.
36822
36823         New module 'ptsname'.
36824         * lib/ptsname.c: New file, from glibc with modifications.
36825         * m4/ptsname.m4: New file.
36826         * modules/ptsname: New file.
36827         * lib/stdlib.in.h (ptsname): New declaration.
36828         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36829         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36830         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36831         HAVE_PTSNAME.
36832         * doc/posix-functions/ptsname.texi: Mention the new module.
36833         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36834         * config/srclist.txt: Add ptsname.c (commented).
36835
36836 2010-03-21  Bruno Haible  <bruno@clisp.org>
36837
36838         Tests for module 'ttyname_r'.
36839         * modules/ttyname_r-tests: New file.
36840         * tests/test-ttyname_r.c: New file.
36841
36842         New module 'ttyname_r'.
36843         * lib/ttyname_r.c: New file.
36844         * m4/ttyname_r.m4: New file.
36845         * modules/ttyname_r: New file.
36846         * lib/unistd.in.h (ttyname_r): New declaration.
36847         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36848         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36849         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36850         HAVE_TTYNAME_R.
36851         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36852         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36853
36854 2010-03-20  Bruno Haible  <bruno@clisp.org>
36855
36856         signal: Undefine macro definitions in C++ mode.
36857         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36858         sigfillset): Undefine macro definitions from the system header in C++
36859         mode.
36860         Reported by John W. Eaton <jwe@gnu.org>.
36861
36862 2010-03-20  Bruno Haible  <bruno@clisp.org>
36863
36864         Ensure no #include statements inside extern "C" { ... }.
36865         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36866         contain #include statements.
36867         * lib/time.in.h: Likewise.
36868
36869 2010-03-20  Bruno Haible  <bruno@clisp.org>
36870
36871         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36872         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36873         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36874         Reported by John W. Eaton <jwe@gnu.org>.
36875
36876 2010-03-20  Bruno Haible  <bruno@clisp.org>
36877
36878         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36879         Reported by Jim Meyering.
36880
36881 2010-03-20  Bruno Haible  <bruno@clisp.org>
36882
36883         pipe: Set errno upon failure.
36884         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36885         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36886         errno value in error message.
36887
36888 2010-03-20  Bruno Haible  <bruno@clisp.org>
36889             Jim Meyering  <meyering@redhat.com>
36890
36891         lchown: Avoid "unused variable" warning.
36892         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36893
36894 2010-03-20  Bruno Haible  <bruno@clisp.org>
36895
36896         Work around unlink() bug on MacOS X 10.5.6.
36897         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36898         attempting to unlink a parent directory.
36899         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36900         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36901         activate for the replacement function.
36902         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36903
36904 2010-03-20  Bruno Haible  <bruno@clisp.org>
36905
36906         Fix link errors on Solaris 8.
36907         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36908         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36909
36910 2010-03-19  Jim Meyering  <meyering@redhat.com>
36911
36912         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36913         The _LIBC implementation of build_range_exp correctly honors the
36914         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36915         However, the non-_LIBC implementation would ignore that syntax-bit
36916         flag and return REG_ERANGE unconditionally.
36917         This change makes it honor that flag.
36918         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36919         Make two pointer parameters "const".
36920         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36921         (parse_bracket_exp): Update caller.
36922
36923         regex.m4: correct the reversed range endpoint ([b-a]) test
36924         * m4/regex.m4: When requiring that [b-a] evoke failure,
36925         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36926         test pass once again for x86-based systems.
36927
36928 2010-03-19  Bruno Haible  <bruno@clisp.org>
36929
36930         scandir: Fix link error on Solaris 8.
36931         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36932         macros.
36933
36934 2010-03-19  Bruno Haible  <bruno@clisp.org>
36935
36936         getusershell: Fix documentation.
36937         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36938         module.
36939         * doc/glibc-functions/setusershell.texi: Likewise.
36940
36941         getusershell: Provide declaration, missing on Solaris 9.
36942         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36943         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36944         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36945         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36947         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36948         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36949         HAVE_GETUSERSHELL.
36950         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36951
36952 2010-03-19  Bruno Haible  <bruno@clisp.org>
36953
36954         wctype: Provide iswblank function.
36955         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36956         exists and is fine.
36957         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36958         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36959         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36960         * doc/posix-functions/iswblank.texi: Update.
36961
36962 2010-03-19  Bruno Haible  <bruno@clisp.org>
36963
36964         Tests of module 'pty' in C++ mode.
36965         * modules/pty-tests: New file.
36966         * tests/test-pty-c++.cc: New file.
36967         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36968
36969 2010-03-19  Eric Blake  <eblake@redhat.com>
36970
36971         logb: fix documentation
36972         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36973         1.5 declaration bug.
36974
36975         forkpty, openpty: prefer glibc's const-safe prototype
36976         * lib/forkpty.c (rpl_forkpty): New file.
36977         * lib/openpty.c (rpl_openpty): Likewise.
36978         * modules/forkpty (Files): Distribute it.
36979         * modules/openpty (Files): Likewise.
36980         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36981         check...
36982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36983         replacement for for non-const BSD signature.
36984         * modules/pty (Makefile.am): Substitute witnesses.
36985         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36986         * tests/test-forkpty.c: Update signature check.
36987         * tests/test-openpty.c: Likewise.
36988         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36989         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36990
36991         forkpty, openpty: split functions into new modules
36992         * modules/pty (Makefile.am): Substitute new witnesses.
36993         (Libraries): Move library detection...
36994         * modules/forkpty: ...into new module.
36995         * modules/openpty: Another new module.
36996         * modules/pty-tests: Rename and split...
36997         * modules/forkpty-tests: ...to this...
36998         * modules/openpty-tests: ...and this.
36999         * tests/test-pty.c: Rename and split...
37000         * tests/test-forkpty.c: ...to this...
37001         * tests/test-openpty.c: ...and this.
37002         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37003         (gl_PTY): Split library searching...
37004         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37005         (gl_FORKPTY, gl_OPENPTY): New macros.
37006         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37007         * NEWS: Mention the split.
37008         * MODULES.html.sh (Misc): Document the modules.
37009         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37010         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37011
37012         pty: improve replacement header
37013         * lib/pty.in.h: New file.
37014         * modules/pty (Files): Ship it.
37015         (Makefile.am): Always build replacement.
37016         * m4/pty.m4: Rename...
37017         * m4/pty_h.m4: ...to this.
37018         (gl_PTY): Modernize setting of witness macros; update check of
37019         forkpty to take proper advantage of cache.
37020         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37021
37022         getopt: avoid compiler warning
37023         * lib/getopt.c (attribute_hidden): Remove unused macro.
37024
37025 2010-03-18  Bruno Haible  <bruno@clisp.org>
37026
37027         Fix link errors on Solaris 8.
37028         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37029         * modules/search-tests (test_search_c___LDADD): Likewise.
37030         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37031         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37032         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37033         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37034         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37035         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37036         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37037
37038 2010-03-18  Bruno Haible  <bruno@clisp.org>
37039
37040         Fix bug introduced on 2010-03-14.
37041         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37042         (gl_SPAWN_H): Require it.
37043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37044         Reported by Simon Josefsson.
37045
37046 2010-03-18  Bruno Haible  <bruno@clisp.org>
37047
37048         Fix typo introduced on 2009-12-31.
37049         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37050         posix_spawn_file_actions_adddup2.
37051
37052 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37053         and Eric Blake  <eblake@redhat.com>
37054
37055         test-vc-list-files-git: make more robust
37056         * tests/test-vc-list-files-git.sh: Unset problematic environment
37057         variables.  Chain commands together.
37058
37059 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37060
37061         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37062         `AC_CHECK_DECL' invocation.
37063
37064 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37065
37066         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37067         appears before executable statements. Suggested by Petr Sumbera
37068         <Petr.Sumbera@Sun.COM>.
37069
37070 2010-03-14  Bruno Haible  <bruno@clisp.org>
37071
37072         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37073         portability problems. Instead use a simpler test.
37074         (main): Check that invalid arguments are rejected only on Linux.
37075
37076 2010-03-14  Bruno Haible  <bruno@clisp.org>
37077
37078         Fix bug introduced on 2009-12-31.
37079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37080         gl_PREREQ_SYS_H_WINSOCK2 always.
37081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37082         SYS_SOCKET_H variable.
37083         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37084         Update comments.
37085         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37086         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37087         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37088         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37089         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37090
37091 2010-03-14  Bruno Haible  <bruno@clisp.org>
37092
37093         Fix values returned by sinl, cosl.
37094         * lib/trigl.h: Add specification comments.
37095         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37096         that combines the values from the precomputed table with the values of
37097         the Chebyshev polynomials.
37098
37099 2010-03-14  Bruno Haible  <bruno@clisp.org>
37100
37101         Fix compilation error when modules 'posix_spawn[p]' are not used.
37102         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37104
37105 2010-03-14  Bruno Haible  <bruno@clisp.org>
37106
37107         Fix compilation error on mingw when module 'time_r' is not used.
37108         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37109         is 1.
37110         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37111         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37112         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37114
37115 2010-03-14  Bruno Haible  <bruno@clisp.org>
37116
37117         Fix compilation error with Sun C.
37118         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37119         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37120         instead of GCC specific ULONG_LONG_MAX.
37121         * lib/xstrtoll.c: Likewise.
37122         * lib/xstrtoull.c: Likewise.
37123
37124 2010-03-13  Bruno Haible  <bruno@clisp.org>
37125
37126         Allow the user to disable C++ code and tests.
37127         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37128         (gl_PROG_ANSI_CXX): Require it.
37129
37130 2010-03-13  Bruno Haible  <bruno@clisp.org>
37131
37132         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37133         cases.
37134
37135 2010-03-13  Bruno Haible  <bruno@clisp.org>
37136
37137         Test that gnulib does not break the standard C++ headers.
37138         * tests/test-locale-c++2.cc: New file.
37139         * modules/locale-tests (Files): Add it.
37140         (Makefile.am): Compile it for test-locale-c++.
37141         * tests/test-math-c++2.cc: New file.
37142         * modules/math-tests (Files): Add it.
37143         (Makefile.am): Compile it for test-math-c++.
37144         * tests/test-signal-c++2.cc: New file.
37145         * modules/signal-tests (Files): Add it.
37146         (Makefile.am): Compile it for test-signal-c++.
37147         * tests/test-stdio-c++2.cc: New file.
37148         * modules/stdio-tests (Files): Add it.
37149         (Makefile.am): Compile it for test-stdio-c++.
37150         * tests/test-stdlib-c++2.cc: New file.
37151         * modules/stdlib-tests (Files): Add it.
37152         (Makefile.am): Compile it for test-stdlib-c++.
37153         * tests/test-string-c++2.cc: New file.
37154         * modules/string-tests (Files): Add it.
37155         (Makefile.am): Compile it for test-string-c++.
37156         * tests/test-time-c++2.cc: New file.
37157         * modules/time-tests (Files): Add it.
37158         (Makefile.am): Compile it for test-time-c++.
37159         Reported by John W. Eaton <jwe@gnu.org>.
37160
37161 2010-03-13  Bruno Haible  <bruno@clisp.org>
37162
37163         * gnulib-tool (func_usage): Clarify which options are available for
37164         --create-testdir and --create-megatestdir.
37165
37166 2010-03-13  Bruno Haible  <bruno@clisp.org>
37167
37168         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37169         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37170         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37171         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37172         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37173         when appropriate.
37174         Reported by Jim Meyering.
37175
37176 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37177
37178         * gnulib-tool (func_import): Explain origin of code.
37179
37180 2010-03-12  Bruno Haible  <bruno@clisp.org>
37181
37182         Fix problem with automake's definition of CXXLINK.
37183         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37184         Reported by Simon Josefsson and Ludovic Courtès.
37185
37186 2010-03-12  Bruno Haible  <bruno@clisp.org>
37187
37188         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37189         stable releases.
37190
37191 2010-03-11  Bruno Haible  <bruno@clisp.org>
37192
37193         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37194         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37195         whether the system provides one variant or multiple variants of the
37196         function.
37197         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37198         C++ compilers.
37199         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37200         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37201         Reported by Jim Meyering.
37202
37203 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37204
37205         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37206
37207 2010-03-08  Bruno Haible  <bruno@clisp.org>
37208
37209         gnulib-tool: Add support for --libtool in --create-testdir.
37210         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37211         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37212
37213 2010-03-08  Eric Blake  <eblake@redhat.com>
37214
37215         gnulib-tool.texi: mention possibility of git submodule
37216         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37217         submodules.
37218         * doc/.gitignore: Ignore another generated file.
37219
37220 2010-03-08  Karl Berry  <karl@gnu.org>
37221
37222         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37223         of committing gnulib files while skipping others.
37224
37225 2010-03-07  Bruno Haible  <bruno@clisp.org>
37226
37227         Tests of module 'wctype' in C++ mode.
37228         * tests/test-wctype-c++.cc: New file.
37229         * modules/wctype-tests (Files): Add it and tests/signature.h.
37230         (Depends-on): Add ansi-c++-opt.
37231         (Makefile.am): Arrange to compile and run test-wctype-c++.
37232
37233         Tests of module 'wchar' in C++ mode.
37234         * tests/test-wchar-c++.cc: New file.
37235         * modules/wchar-tests (Files): Add it and tests/signature.h.
37236         (Depends-on): Add ansi-c++-opt.
37237         (Makefile.am): Arrange to compile and run test-wchar-c++.
37238         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37239         gl_MODULE_INDICATOR.
37240
37241         Tests of module 'unistd' in C++ mode.
37242         * tests/test-unistd-c++.cc: New file.
37243         * modules/unistd-tests (Files): Add it and tests/signature.h.
37244         (Depends-on): Add ansi-c++-opt.
37245         (Makefile.am): Arrange to compile and run test-unistd-c++.
37246         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37247         gl_MODULE_INDICATOR.
37248
37249         Tests of module 'time' in C++ mode.
37250         * tests/test-time-c++.cc: New file.
37251         * modules/time-tests (Files): Add it and tests/signature.h.
37252         (Depends-on): Add ansi-c++-opt.
37253         (Makefile.am): Arrange to compile and run test-time-c++.
37254         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37255
37256         Tests of module 'sys_time' in C++ mode.
37257         * tests/test-sys_time-c++.cc: New file.
37258         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37259         (Depends-on): Add ansi-c++-opt.
37260         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37261         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37262         gl_MODULE_INDICATOR.
37263
37264         Tests of module 'sys_stat' in C++ mode.
37265         * tests/test-sys_stat-c++.cc: New file.
37266         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37267         (Depends-on): Add ansi-c++-opt.
37268         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37269         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37270         gl_MODULE_INDICATOR.
37271
37272         Tests of module 'sys_socket' in C++ mode.
37273         * tests/test-sys_socket-c++.cc: New file.
37274         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37275         (Depends-on): Add ansi-c++-opt.
37276         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37277         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37278         gl_MODULE_INDICATOR.
37279
37280         Tests of module 'sys_select' in C++ mode.
37281         * tests/test-sys_select-c++.cc: New file.
37282         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37283         (Depends-on): Add ansi-c++-opt.
37284         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37285         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37286         gl_MODULE_INDICATOR.
37287
37288         Tests of module 'sys_ioctl' in C++ mode.
37289         * tests/test-sys_ioctl-c++.cc: New file.
37290         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37291         (Depends-on): Add ansi-c++-opt.
37292         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37294         gl_MODULE_INDICATOR.
37295
37296         Tests of module 'string' in C++ mode.
37297         * tests/test-string-c++.cc: New file.
37298         * modules/string-tests (Files): Add it and tests/signature.h.
37299         (Depends-on): Add ansi-c++-opt.
37300         (Makefile.am): Arrange to compile and run test-string-c++.
37301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37302         gl_MODULE_INDICATOR.
37303
37304         Tests of module 'stdlib' in C++ mode.
37305         * tests/test-stdlib-c++.cc: New file.
37306         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37307         (Depends-on): Add ansi-c++-opt.
37308         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37309         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37310         gl_MODULE_INDICATOR.
37311
37312         Tests of module 'stdio' in C++ mode.
37313         * tests/test-stdio-c++.cc: New file.
37314         * modules/stdio-tests (Files): Add it and tests/signature.h.
37315         (Depends-on): Add ansi-c++-opt.
37316         (Makefile.am): Arrange to compile and run test-stdio-c++.
37317         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37318         gl_MODULE_INDICATOR.
37319
37320         Tests of module 'spawn' in C++ mode.
37321         * tests/test-spawn-c++.cc: New file.
37322         * modules/spawn-tests (Files): Add it and tests/signature.h.
37323         (Depends-on): Add ansi-c++-opt.
37324         (Makefile.am): Arrange to compile and run test-spawn-c++.
37325         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37326         gl_MODULE_INDICATOR.
37327
37328         Tests of module 'signal' in C++ mode.
37329         * tests/test-signal-c++.cc: New file.
37330         * modules/signal-tests (Files): Add it and tests/signature.h.
37331         (Depends-on): Add ansi-c++-opt.
37332         (Makefile.am): Arrange to compile and run test-signal-c++.
37333         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37334         gl_MODULE_INDICATOR.
37335
37336         Tests of module 'search' in C++ mode.
37337         * tests/test-search-c++.cc: New file.
37338         * modules/search-tests (Files): Add it and tests/signature.h.
37339         (Depends-on): Add ansi-c++-opt.
37340         (Makefile.am): Arrange to compile and run test-search-c++.
37341         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37342         gl_MODULE_INDICATOR.
37343
37344         Tests of module 'math' in C++ mode.
37345         * tests/test-math-c++.cc: New file.
37346         * modules/math-tests (Files): Add it and tests/signature.h.
37347         (Depends-on): Add ansi-c++-opt.
37348         (Makefile.am): Arrange to compile and run test-math-c++.
37349         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37350
37351         Tests of module 'locale' in C++ mode.
37352         * tests/test-locale-c++.cc: New file.
37353         * modules/locale-tests (Files): Add it and tests/signature.h.
37354         (Depends-on): Add ansi-c++-opt.
37355         (Makefile.am): Arrange to compile and run test-locale-c++.
37356         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37357         gl_MODULE_INDICATOR.
37358
37359         Tests of module 'langinfo' in C++ mode.
37360         * tests/test-langinfo-c++.cc: New file.
37361         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37362         (Depends-on): Add ansi-c++-opt.
37363         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37364         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37365         gl_MODULE_INDICATOR.
37366
37367         Tests of module 'iconv-h' in C++ mode.
37368         * tests/test-iconv-h-c++.cc: New file.
37369         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37370         (Depends-on): Add ansi-c++-opt.
37371         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37372
37373         Tests of module 'glob' in C++ mode.
37374         * tests/test-glob-c++.cc: New file.
37375         * modules/glob-tests (Files): Add it.
37376         (Depends-on): Add ansi-c++-opt.
37377         (Makefile.am): Arrange to compile and run test-glob-c++.
37378
37379         Tests of module 'fcntl-h' in C++ mode.
37380         * tests/test-fcntl-h-c++.cc: New file.
37381         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37382         (Depends-on): Add ansi-c++-opt.
37383         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37384         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37385         gl_MODULE_INDICATOR.
37386
37387         Tests of module 'dirent' in C++ mode.
37388         * tests/test-dirent-c++.cc: New file.
37389         * modules/dirent-tests (Files): Add it and tests/signature.h.
37390         (Depends-on): Add ansi-c++-opt.
37391         (Makefile.am): Arrange to compile and run test-dirent-c++.
37392         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37393         gl_MODULE_INDICATOR.
37394
37395         New module 'ansi-c++-opt'.
37396         * modules/ansi-c++-opt: New file.
37397         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37398
37399         Document C++ namespace mode.
37400         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37401
37402         wctype: Avoid #define replacements in C++ mode.
37403         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37404         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37405         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37406         In C++, define a namespaced alias symbol.
37407         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37408         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37409         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37410         rule.
37411
37412         wchar: Avoid #define replacements in C++ mode.
37413         * lib/wchar.in.h: Include c++defs.h.
37414         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37415         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37416         symbol.
37417         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37418         * modules/wchar (Depends-on): Add c++defs.
37419         (Makefile.am): Update wchar.h rule.
37420
37421         unistd: Avoid #define replacements in C++ mode.
37422         * lib/unistd.in.h: Include c++defs.h.
37423         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37424         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37425         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37426         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37427         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37428         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37429         symbol.
37430         (environ): Update.
37431         * modules/unistd (Depends-on): Add c++defs.
37432         (Makefile.am): Update unistd.h rule.
37433
37434         time: Avoid #define replacements in C++ mode.
37435         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37436         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37437         define a namespaced alias symbol.
37438         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37439         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37440         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37441         * modules/time (Depends-on): Add c++defs, warn-on-use.
37442         (Makefile.am): Update time.h rule.
37443         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37444         * modules/nanosleep (configure.ac): Likewise.
37445         * modules/strptime (configure.ac): Likewise.
37446         * modules/timegm (configure.ac): Likewise.
37447
37448         sys_time: Avoid #define replacements in C++ mode.
37449         * lib/sys_time.in.h: Include c++defs.h.
37450         (gettimeofday): In C++, define a namespaced alias symbol.
37451         * modules/sys_time (Depends-on): Add c++defs.
37452         (Makefile.am): Update sys/time.h rule.
37453
37454         sys_stat: Avoid #define replacements in C++ mode.
37455         * lib/sys_stat.in.h: Include c++defs.h.
37456         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37457         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37458         namespaced alias symbol.
37459         In C++, define a namespaced alias symbol.
37460         * modules/sys_stat (Depends-on): Add c++defs.
37461         (Makefile.am): Update sys/stat.h rule.
37462
37463         sys_socket: Avoid #define replacements in C++ mode.
37464         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37465         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37466         definitions also when the system has a <sys/socket.h>.
37467         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37468         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37469         In C++, define a namespaced alias symbol.
37470         * modules/sys_socket (Depends-on): Add c++defs.
37471         (Makefile.am): Update sys/socket.h rule.
37472
37473         sys_select: Avoid #define replacements in C++ mode.
37474         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37475         definitions also when the system has a <sys/select.h>.
37476         (select): In C++, define a namespaced alias symbol.
37477         * modules/sys_select (Depends-on): Add c++defs.
37478         (Makefile.am): Update sys/select.h rule.
37479
37480         sys_ioctl: Avoid #define replacements in C++ mode.
37481         * lib/sys_ioctl.in.h: Include c++defs.h.
37482         (ioctl): In C++, define a namespaced alias symbol.
37483         * modules/sys_ioctl (Depends-on): Add c++defs.
37484         (Makefile.am): Update sys/ioctl.h rule.
37485
37486         string: Avoid #define replacements in C++ mode.
37487         * lib/string.in.h: Include c++defs.h.
37488         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37489         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37490         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37491         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37492         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37493         * modules/string (Depends-on): Add c++defs.
37494         (Makefile.am): Update string.h rule.
37495
37496         stdlib: Avoid #define replacements in C++ mode.
37497         * lib/stdlib.in.h: Include c++defs.h.
37498         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37499         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37500         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37501         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37502         symbol.
37503         * modules/stdlib (Depends-on): Add c++defs.
37504         (Makefile.am): Update stdlib.h rule.
37505
37506         stdio: Avoid #define replacements in C++ mode.
37507         * lib/stdio.in.h: Include c++defs.h.
37508         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37509         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37510         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37511         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37512         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37513         namespaced alias symbol.
37514         * modules/stdio (Depends-on): Add c++defs.
37515         (Makefile.am): Update stdio.h rule.
37516
37517         spawn: Avoid #define replacements in C++ mode.
37518         * lib/spawn.in.h: Include c++defs.h.
37519         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37520         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37521         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37522         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37523         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37524         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37525         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37526         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37527         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37528         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37529         In C++, define a namespaced alias symbol.
37530         * modules/spawn (Depends-on): Add c++defs.
37531         (Makefile.am): Update spawn.h rule.
37532
37533         signal: Avoid #define replacements in C++ mode.
37534         * lib/signal.in.h: Include c++defs.h.
37535         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37536         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37537         namespaced alias symbol.
37538         * modules/signal (Depends-on): Add c++defs.
37539         (Makefile.am): Update signal.h rule.
37540
37541         search: Avoid #define replacements in C++ mode.
37542         * lib/search.in.h: Include c++defs.h.
37543         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37544         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37545         symbol.
37546         * modules/search (Depends-on): Add c++defs.
37547         (Makefile.am): Update search.h rule.
37548
37549         math: Avoid #define replacements in C++ mode.
37550         * lib/math.in.h: Include c++defs.h.
37551         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37552         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37553         trunc, truncl): In C++, define a namespaced alias symbol.
37554         * modules/math (Depends-on): Add c++defs.
37555         (Makefile.am): Update math.h rule.
37556
37557         locale: Avoid #define replacements in C++ mode.
37558         * lib/locale.in.h: Include c++defs.h.
37559         (duplocale): In C++, define a namespaced alias symbol.
37560         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37561         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37562         * modules/locale (Depends-on): Add c++defs.
37563         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37564
37565         langinfo: Avoid #define replacements in C++ mode.
37566         * lib/langinfo.in.h: Include c++defs.h.
37567         (nl_langinfo): In C++, define a namespaced alias symbol.
37568         * modules/langinfo (Depends-on): Add c++defs.
37569         (Makefile.am): Update langinfo.h rule.
37570
37571         iconv-h: Avoid #define replacements in C++ mode.
37572         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37573         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37574         symbol.
37575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37576         whenever iconv is present.
37577         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37578         (Makefile.am): Update iconv.h rule.
37579
37580         glob: Avoid #define replacements in C++ mode.
37581         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37582         (_gl_glob_errfunc_fn): New type.
37583         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37584         symbol.
37585         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37586         (Makefile.am): Update glob.h rule.
37587
37588         fcntl-h: Avoid #define replacements in C++ mode.
37589         * lib/fcntl.in.h: Include c++defs.h.
37590         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37591         * modules/fcntl-h (Depends-on): Add c++defs.
37592         (Makefile.am): Update fcntl.h rule.
37593
37594         dirent: Avoid #define replacements in C++ mode.
37595         * lib/dirent.in.h: Include c++defs.h.
37596         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37597         namespaced alias symbol.
37598         (dirfd): Update declaration.
37599         * modules/dirent (Depends-on): Add c++defs.
37600         (Makefile.am): Update dirent.h rule.
37601
37602         ctype: Make it usable in C++ code.
37603         * lib/ctype.in.h: Include c++defs.h.
37604         (isblank): Declare as extern "C".
37605         * modules/ctype (Depends-on): Add c++defs.
37606         (Makefile.am): Update ctype.h rule.
37607
37608         New module 'c++defs'.
37609         * modules/c++defs: New file.
37610         * build-aux/c++defs.h: New file.
37611         Reported by John W. Eaton <jwe@gnu.org>.
37612
37613 2010-03-07  Bruno Haible  <bruno@clisp.org>
37614
37615         logb: Provide missing declaration for Cygwin.
37616         * lib/math.in.h (logb): New declaration.
37617         * m4/logb.m4: New file.
37618         * modules/logb (Files): Add m4/logb.m4.
37619         (Depends-on): Add math.
37620         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37621         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37623         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37624         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37625
37626 2010-03-07  Bruno Haible  <bruno@clisp.org>
37627
37628         Fix test-cond link error.
37629         * tests/test-cond.c: Include <stdio.h>.
37630
37631 2010-03-07  Bruno Haible  <bruno@clisp.org>
37632
37633         Fix test-dirent-safer link error.
37634         * modules/dirent-safer-tests (Makefile.am): Define
37635         test_dirent_safer_LDADD.
37636
37637 2010-03-07  Bruno Haible  <bruno@clisp.org>
37638
37639         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37640         among default module list.
37641
37642 2010-03-07  Bruno Haible  <bruno@clisp.org>
37643
37644         Fix link error on platforms with GNU libiconv.
37645         * modules/unistr/u8-strcoll-tests (Makefile): Define
37646         test_u8_strcoll_LDADD.
37647         * modules/unistr/u16-strcoll-tests (Makefile): Define
37648         test_u16_strcoll_LDADD.
37649         * modules/unistr/u32-strcoll-tests (Makefile): Define
37650         test_u32_strcoll_LDADD.
37651
37652 2010-03-07  Bruno Haible  <bruno@clisp.org>
37653
37654         Use POSIX declarations for socket functions.
37655         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37656         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37657         rpl_sendto): Change declaration to match POSIX.
37658         * lib/connect.c (rpl_connect): Likewise.
37659         * lib/accept.c (rpl_accept): Likewise.
37660         * lib/bind.c (rpl_bind): Likewise.
37661         * lib/getpeername.c (rpl_getpeername): Likewise.
37662         * lib/getsockname.c (rpl_getsockname): Likewise.
37663         * lib/recv.c (rpl_recv): Likewise.
37664         * lib/send.c (rpl_send): Likewise.
37665         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37666         * lib/sendto.c (rpl_sendto): Likewise.
37667
37668 2010-03-06  Bruno Haible  <bruno@clisp.org>
37669
37670         Clarify access, euidaccess, faccessat.
37671         * doc/posix-functions/faccessat.texi: Mention security problem under
37672         "Other problems", not "Portability problems".
37673         * doc/posix-functions/access.texi: Likewise. Mention a related security
37674         problem.
37675         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37676         * lib/euidaccess.c: Add comments about platforms.
37677         * lib/unistd.in.h (access, euidaccess): Add warnings.
37678
37679 2010-03-07  Bruno Haible  <bruno@clisp.org>
37680
37681         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37682         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37683         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37684         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37685         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37686         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37687         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37688         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37689         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37690         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37691         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37692         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37693         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37694         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37695         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37696         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37697         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37698         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37699         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37700         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37701         Likewise.
37702         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37703         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37704         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37705         Likewise.
37706         * tests/test-spawn.c (main): Make it work when
37707         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37708
37709 2010-03-07  Bruno Haible  <bruno@clisp.org>
37710
37711         Fix incorrect Makefile.am generation in German locale.
37712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37713         Execute sed command with character range in C locale.
37714
37715 2010-03-06  Bruno Haible  <bruno@clisp.org>
37716
37717         Tests for module 'iconv-h'.
37718         * modules/iconv-h-tests: New file.
37719         * tests/test-iconv-h.c: New file.
37720
37721         New module 'iconv-h'.
37722         * modules/iconv-h: New file.
37723         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37724         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37725         (configure.ac): Remove gl_ICONV_H.
37726         (Makefile.am): Remove rule for iconv.h.
37727
37728 2010-03-06  Bruno Haible  <bruno@clisp.org>
37729
37730         More consistent naming of *.m4 files.
37731         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37732         * modules/wctype (Files): Update.
37733
37734         More consistent naming of *.m4 files.
37735         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37736         * modules/wchar (Files): Update.
37737
37738 2010-03-06  Jim Meyering  <meyering@redhat.com>
37739
37740         euidaccess: relax license to LGPLv2+
37741         * modules/euidaccess (License): Relax to LGPLv2+.
37742
37743 2010-03-06  Bruno Haible  <bruno@clisp.org>
37744
37745         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37746         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37747         (Makefile.am): Augment lib_SOURCES instead.
37748
37749 2010-03-04  Jim Meyering  <meyering@redhat.com>
37750
37751         utime: remove obsolete module
37752         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37753         unnecessary for years, and has been marked as obsolete for 10 months.
37754         * modules/utime: Remove file.
37755         * lib/utime.c: Remove file.
37756         * m4/utime.m4: Remove file.
37757         * m4/utimes-null.m4: Remove file.
37758         * doc/posix-functions/utime.texi (utime): Remove reference to
37759         the module.  Move the sole "fixed by gnulib" item into the
37760         "problems not fixed by Gnulib" list.
37761         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37762
37763 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37764
37765         * modules/exit (License): Relax license to LGPLv2+.
37766         (Status): Mark as obsolete.
37767         * NEWS: Mention deprecated 'exit' module.
37768         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37769         of now obsolete 'exit'.
37770
37771 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37772
37773         fts-lgpl: remove unused module
37774         * modules/fts-lgpl: Remove.
37775         * MODULES.html.sh (func_all_modules): Adjust.
37776         * check-module (find_included_lib_files): Adjust.
37777         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37778
37779 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37780
37781         copy-acl: enhance Solaris ACL error handling
37782         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37783         * lib/set-mode-acl.c (qset_acl): Likewise.
37784
37785 2010-03-02  Bruno Haible  <bruno@clisp.org>
37786
37787         spawn: Don't override the system defined values on FreeBSD 8.
37788         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37789         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37790         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37791         if HAVE_POSIX_SPAWN is 1.
37792         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37793
37794 2010-03-01  Bruno Haible  <bruno@clisp.org>
37795
37796         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37797         regarding Automake.
37798
37799 2010-02-25  Bruno Haible  <bruno@clisp.org>
37800
37801         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37802         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37803         setting, not afterwards.
37804         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37805
37806 2010-02-24  Eric Blake  <eblake@redhat.com>
37807
37808         bootstrap, git-version-gen: use timestamp
37809         * build-aux/git-version-gen (scriptversion): Force UTC.
37810         * build-aux/bootstrap (scriptversion): New variable.
37811
37812         bootstrap: allow older git
37813         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37814         older than 1.6.4.  Requested by the libvirt project.
37815
37816 2010-02-23  Eric Blake  <eblake@redhat.com>
37817
37818         warn-on-use: work with old autoconf
37819         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37820         AS_VAR semantics of autoconf 2.60.
37821         Reported by Bruno Haible.
37822
37823         bootstrap: improve some comments
37824         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37825         clarification comments.
37826
37827         gettimeofday: provide correct function
37828         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37829         when replacement is declared, otherwise provide gettimeofday.
37830         Reported by Michael Goffioul.
37831
37832 2010-02-23  Jim Meyering  <meyering@redhat.com>
37833
37834         lib-ignore: relax license to "unlimited", not LGPLv2+
37835         * modules/lib-ignore (License): Relax to "unlimited".
37836
37837 2010-02-23  Jim Meyering  <meyering@redhat.com>
37838
37839         lib-ignore: relax license to LGPLv2+
37840         * modules/lib-ignore (License): Relax to LGPLv2+.
37841
37842 2010-02-22  Eric Blake  <eblake@redhat.com>
37843
37844         lseek: avoid bash 3.2 broken pipe bug
37845         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37846         warning from bash 3.2.
37847         Reported by Ben Pfaff, with analysis from Bruno Haible.
37848
37849         bootstrap: support non-FSF copyright holder
37850         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37851         bootstrap.conf override of COPYRIGHT_HOLDER.
37852         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37853
37854         bootstrap: interoperate with gettext 0.14.1
37855         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37856
37857         bootstrap: allow for alternate submodule location
37858         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37859         hardcoding submodule location.
37860         (gnulib_mk): Allow direct use of Makefile.am.
37861
37862         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37863         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37864         rather than reconfiguring where the submodule points.
37865
37866         gettimeofday: restore support for platforms that lack function
37867         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37868         replacement if function is missing.
37869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37870         * modules/sys_time (Makefile.am): Substitute it.
37871         * lib/sys_time.in.h (gettimeofday): Check it.
37872         Reported by Michael Goffioul.
37873
37874 2010-02-21  Bruno Haible  <bruno@clisp.org>
37875
37876         * lib/stdio.in.h (obstack_printf): Fix typo.
37877
37878 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37879
37880         vc-list-files: use bzr ls's -R option
37881         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37882         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37883
37884 2010-02-21  Jim Meyering  <meyering@redhat.com>
37885
37886         init.sh: fix EXEEXT shims to work also for names like test-prog
37887         * tests/init.sh: Re-exec a better shell, when needed.
37888         If the current shell lacks support for posix $(...), an init.sh-using
37889         test will now try to find a shell that supports that.  If EXEEXT is
37890         nonempty, we also require support for hyphen-in-alias-name and shell
37891         substitutions like ${var#glob}.  Failure to find such a shell results
37892         in a skipped test.
37893
37894 2010-02-21  Bruno Haible  <bruno@clisp.org>
37895
37896         Really work around around "broken pipe" error message from bash 3.2.
37897         * gnulib-tool (func_reset_sigpipe): Remove function.
37898         (echo): In bash 3.2, define to a function that uses printf.
37899         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37900
37901 2010-02-20  Bruno Haible  <bruno@clisp.org>
37902
37903         Restore support for automake 1.9.6 with autoconf 2.61.
37904         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37905         Reported by James Youngman <jay@gnu.org>.
37906
37907 2010-02-20  Bruno Haible  <bruno@clisp.org>
37908
37909         Improve *printf warning condition.
37910         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37911         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37912         and the function is overridden due to SIGPIPE emulation.
37913
37914 2010-02-20  Bruno Haible  <bruno@clisp.org>
37915
37916         * lib/stdio.in.h: Tweak comments.
37917
37918 2010-02-19  Bruno Haible  <bruno@clisp.org>
37919
37920         Make it easier to find modules. New gnulib-tool option '--find'.
37921         * gnulib-tool: New option --find.
37922         (func_usage): Document it.
37923         (func_sanitize_modulelist): New function, extracted from
37924         func_all_modules.
37925         (func_all_modules): Invoke it.
37926         * doc/gnulib-tool.texi (Which modules?): New node.
37927
37928 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37929
37930         * lib/sys_select.in.h: Provide select replacement even if
37931         sys/select.h exists on a system, for Interix.
37932
37933 2010-02-18  Jim Meyering  <meyering@redhat.com>
37934
37935         init.sh: don't use $(...) just yet
37936         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37937         to accommodate e.g., Solaris' /bin/sh.
37938
37939 2010-02-17  Bruno Haible  <bruno@clisp.org>
37940
37941         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37942         Reported by Ludovic Courtès <ludo@gnu.org>.
37943
37944 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37945
37946         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37947         linking with -lintl.
37948
37949 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37950
37951         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37952         if not provided by the system's netdb.h.  Reported by
37953         ludo@gnu.org (Ludovic Courtès).
37954
37955 2010-02-15  Jim Meyering  <meyering@redhat.com>
37956
37957         init.sh: improve portability and efficiency
37958         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37959         "dummy" in a for loop.
37960         Use '!', not '^' to select the complement of a character set used
37961         in a "case" statement.
37962         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37963         Suggestions from Eric Blake.
37964
37965         init.sh: automatically accommodate programs with the .exe suffix
37966         Automatically arrange for an invocation of "prog" to execute the
37967         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37968         may use the simpler "prog", yet still work when built on a system
37969         that requires specifying the added suffix.
37970         Do this by constructing a function named "prog" that invokes
37971         "prog.exe" for each .exe file in selected directories.
37972         * tests/init.sh (find_exe_basenames_): New function.
37973         (create_exe_shim_functions_): New function.
37974         (path_prepend_): Use it.
37975
37976         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37977         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37978         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37979
37980 2010-02-14  Jim Meyering  <meyering@redhat.com>
37981
37982         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37983         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37984         (sc_prohibit_hash_pjw_without_use): New rule.
37985
37986         maint.mk: allow the default upload destination dir to be overridden
37987         * top/maint.mk (upload_dest_dir_): Define with a default that
37988         preserves the status quo.
37989         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37990         Reported by Peter Simons.
37991
37992         maint.mk: prohibit inclusion of "hash.h" without_use
37993         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37994
37995 2010-02-10  Jim Meyering  <meyering@redhat.com>
37996
37997         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37998         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37999
38000 2010-02-09  Eric Blake  <ebb9@byu.net>
38001         and Bruno Haible  <bruno@clisp.org>
38002
38003         obstack-printf-posix: ensure declaration
38004         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38005         extracted from gl_FUNC_OBSTACK_PRINTF.
38006         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38007         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38008         Likewise.
38009         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38010         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38011         0.
38012
38013 2010-02-08  Bruno Haible  <bruno@clisp.org>
38014
38015         gnulib-tool: Fix typo in 2010-02-07 commit.
38016         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38017         Reported by Eric Blake.
38018
38019 2010-02-07  Bruno Haible  <bruno@clisp.org>
38020
38021         gnulib-tool: Fix up caching patches.
38022         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38023         option --no-cache. Use associative arrays when supported by the shell.
38024         (sed_comments): New variable.
38025         (modcache): Renamed from do_cache.
38026         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38027         abbreviate unnecessarily.
38028         (have_associative): New variable.
38029         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38030         way also for ksh and zsh.
38031         (func_init_sed_convert_to_cache_statements): New function, extracted
38032         from func_cache_lookup_module. Add support for associative arrays.
38033         Don't set the c_MODULE_cached variable here. Ignore all lines before
38034         the first field header. Remove only the final newline, not all trailing
38035         newlines. Support empty fields correctly. Limit the use of 'eval' to
38036         assignments.
38037         (func_get_description, func_get_status, func_get_notice,
38038         func_get_applicability, func_get_filelist, func_get_dependencies,
38039         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38040         func_get_automake_snippet, func_get_include_directive,
38041         func_get_link_directive, func_get_license, func_get_maintainer):
38042         Update documentation. List the unoptimized code first. Add support for
38043         associative arrays. Limit the use of 'eval' to assignments.
38044         (func_get_applicability): Undo stylistic pessimisations.
38045         (func_get_automake_snippet, func_get_include_directive): Reduce code
38046         duplication.
38047         (func_modules_transitive_closure, func_modules_add_dummy,
38048         func_modules_notice, func_modules_to_filelist, func_add_file,
38049         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38050         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38051         func_create_testdir, func_create_megatestdir): Update documentation.
38052
38053 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38054
38055         * gnulib-tool (func_cache_lookup_module): Store the module name
38056         belonging to the cache variable; error out if two different
38057         module names map to the same cache variable name.
38058
38059 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38060
38061         gnulib-tool: Make caching optional.
38062         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38063         Update matching short versions of --no-changelog.
38064         (func_usage): Update.
38065         (sed_extract_cache_prog): Renamed from ...
38066         (sed_extract_prog): ... this; revert to old extraction script.
38067         (func_get_description, func_get_status)
38068         (func_get_notice, func_get_applicability, func_get_filelist)
38069         (func_get_dependencies, func_get_autoconf_early_snippet)
38070         (func_get_autoconf_snippet, func_get_automake_snippet)
38071         (func_get_include_directive, func_get_link_directive)
38072         (func_get_license, func_get_maintainer): If $do_cache is false,
38073         use old, non-caching extraction scripts.
38074         Suggestion by Bruno Haible.
38075
38076 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38077
38078         gnulib-tool: cache module metainformation.
38079         * gnulib-tool (sed_extract_prog): Match newline before each
38080         header, and rewrite header to a shell variable suffix.
38081         (func_cache_var, func_cache_lookup_module): New functions,
38082         to turn a module name into a cache variable prefix, and to
38083         look up and cache module metainformation.
38084         (func_get_description, func_get_status)
38085         (func_get_notice, func_get_applicability, func_get_filelist)
38086         (func_get_dependencies, func_get_autoconf_early_snippet)
38087         (func_get_autoconf_snippet, func_get_automake_snippet)
38088         (func_get_include_directive, func_get_link_directive)
38089         (func_get_license, func_get_maintainer): Use
38090         func_cache_lookup_module.
38091
38092 2010-02-07  Bruno Haible  <bruno@clisp.org>
38093
38094         fnctl: Fix missing dependency.
38095         * modules/fcntl (Depends-on): Add getdtablesize.
38096         Reported by John W. Eaton <jwe@gnu.org>.
38097
38098 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38099
38100         Argp: fix recognition of short alias options.
38101
38102         * lib/argp-parse.c (convert_options): Fix improper use of
38103         `|' between character values.
38104         * tests/test-argp.c (group1_option): New alias option
38105         --read (-r).
38106         (group1_parser): Special handling for 'r'.
38107         (test15): New test case.
38108         (test_fun): Add test15.
38109         * tests/test-argp-2.sh: Update expected --help and --usage
38110         outputs.
38111
38112 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38113
38114         * tests/test-argp.c: Fix indentation.
38115
38116 2010-02-04  Eric Blake  <ebb9@byu.net>
38117
38118         gettimeofday: expose type of second argument
38119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38120         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38121         * tests/test-gettimeofday.c: Use it to silence warning.
38122         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38123         the issue.
38124
38125 2010-02-03  Jim Meyering  <meyering@redhat.com>
38126
38127         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38128         * lib/regcomp.c (TYPE_SIGNED): Define.
38129         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38130
38131         regcomp.c: avoid a new -Wshadow warning
38132         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38133
38134 2010-02-01  Jim Meyering  <meyering@redhat.com>
38135
38136         removing useless parentheses in cpp #define directives
38137         For motivation, see commit c0221df4, "define STREQ(a,b)
38138         consistently, removing useless parentheses"
38139         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38140         * lib/mountlist.c (MNT_IGNORE): Likewise.
38141         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38142
38143 2010-02-01  Eric Blake  <ebb9@byu.net>
38144
38145         sys_time: use link-warning
38146         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38147         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38148         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38149         * modules/sys_time (Depends-on): Add warn-on-use.
38150         (Makefile.am): Always build replacement.
38151         (configure.ac): Update substitutions.
38152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38153         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38154         bother with SYS_TIME_H.
38155         * modules/gettimeofday (configure.ac): Declare indicator.
38156         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38157         in use.
38158
38159         closein-tests: silence compiler warning
38160         * tests/test-closein.c (main): Ignore fread result.
38161         * modules/closein-tests (Depends-on): Add ignore-value.
38162
38163         tests: silence warning about system return
38164         * tests/test-areadlink-with-size.c (main): Ignore system result.
38165         * tests/test-areadlink.c (main): Likewise.
38166         * tests/test-areadlinkat-with-size.c (main): Likewise.
38167         * tests/test-areadlinkat.c (main): Likewise.
38168         * tests/test-canonicalize-lgpl.c (main): Likewise.
38169         * tests/test-canonicalize.c (main): Likewise.
38170         * tests/test-chown.c (main): Likewise.
38171         * tests/test-fchownat.c (main): Likewise.
38172         * tests/test-fdutimensat.c (main): Likewise.
38173         * tests/test-fstatat.c (main): Likewise.
38174         * tests/test-futimens.c (main): Likewise.
38175         * tests/test-lchown.c (main): Likewise.
38176         * tests/test-link.c (main): Likewise.
38177         * tests/test-linkat.c (main): Likewise.
38178         * tests/test-lstat.c (main): Likewise.
38179         * tests/test-mkdir.c (main): Likewise.
38180         * tests/test-mkdirat.c (main): Likewise.
38181         * tests/test-mkfifo.c (main): Likewise.
38182         * tests/test-mkfifoat.c (main): Likewise.
38183         * tests/test-mknod.c (main): Likewise.
38184         * tests/test-readlink.c (main): Likewise.
38185         * tests/test-remove.c (main): Likewise.
38186         * tests/test-rename.c (main): Likewise.
38187         * tests/test-renameat.c (main): Likewise.
38188         * tests/test-rmdir.c (main): Likewise.
38189         * tests/test-symlink.c (main): Likewise.
38190         * tests/test-symlinkat.c (main): Likewise.
38191         * tests/test-unlink.c (main): Likewise.
38192         * tests/test-unlinkat.c (main): Likewise.
38193         * tests/test-utimens.c (main): Likewise.
38194         * tests/test-utimensat.c (main): Likewise.
38195         * modules/areadlink-tests (Depends-on): Add ignore-value.
38196         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38197         * modules/areadlinkat-tests (Depends-on): Likewise.
38198         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38199         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38200         * modules/canonicalize-tests (Depends-on): Likewise.
38201         * modules/chown-tests (Depends-on): Likewise.
38202         * modules/fdutimensat-tests (Depends-on): Likewise.
38203         * modules/futimens-tests (Depends-on): Likewise.
38204         * modules/lchown-tests (Depends-on): Likewise.
38205         * modules/link-tests (Depends-on): Likewise.
38206         * modules/linkat-tests (Depends-on): Likewise.
38207         * modules/lstat-tests (Depends-on): Likewise.
38208         * modules/mkdir-tests (Depends-on): Likewise.
38209         * modules/mkfifo-tests (Depends-on): Likewise.
38210         * modules/mkfifoat-tests (Depends-on): Likewise.
38211         * modules/mknod-tests (Depends-on): Likewise.
38212         * modules/openat-tests (Depends-on): Likewise.
38213         * modules/readlink-tests (Depends-on): Likewise.
38214         * modules/remove-tests (Depends-on): Likewise.
38215         * modules/rename-tests (Depends-on): Likewise.
38216         * modules/renameat-tests (Depends-on): Likewise.
38217         * modules/rmdir-tests (Depends-on): Likewise.
38218         * modules/symlink-tests (Depends-on): Likewise.
38219         * modules/symlinkat-tests (Depends-on): Likewise.
38220         * modules/unlink-tests (Depends-on): Likewise.
38221         * modules/utimens-tests (Depends-on): Likewise.
38222         * modules/utimensat-tests (Depends-on): Likewise.
38223
38224 2010-01-31  Bruno Haible  <bruno@clisp.org>
38225
38226         Perform the same test for many <math.h> functions.
38227         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38228         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38229         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38230         of gl_MATHFUNC.
38231         * modules/acos (configure.ac): Likewise.
38232         * modules/asin (configure.ac): Likewise.
38233         * modules/atan (configure.ac): Likewise.
38234         * modules/atan2 (configure.ac): Likewise.
38235         * modules/cbrt (configure.ac): Likewise.
38236         * modules/copysign (configure.ac): Likewise.
38237         * modules/cos (configure.ac): Likewise.
38238         * modules/cosh (configure.ac): Likewise.
38239         * modules/erf (configure.ac): Likewise.
38240         * modules/erfc (configure.ac): Likewise.
38241         * modules/exp (configure.ac): Likewise.
38242         * modules/fmod (configure.ac): Likewise.
38243         * modules/hypot (configure.ac): Likewise.
38244         * modules/j0 (configure.ac): Likewise.
38245         * modules/j1 (configure.ac): Likewise.
38246         * modules/jn (configure.ac): Likewise.
38247         * modules/lgamma (configure.ac): Likewise.
38248         * modules/log (configure.ac): Likewise.
38249         * modules/log10 (configure.ac): Likewise.
38250         * modules/log1p (configure.ac): Likewise.
38251         * modules/pow (configure.ac): Likewise.
38252         * modules/remainder (configure.ac): Likewise.
38253         * modules/sin (configure.ac): Likewise.
38254         * modules/sinh (configure.ac): Likewise.
38255         * modules/tan (configure.ac): Likewise.
38256         * modules/tanh (configure.ac): Likewise.
38257         * modules/y0 (configure.ac): Likewise.
38258         * modules/y1 (configure.ac): Likewise.
38259         * modules/yn (configure.ac): Likewise.
38260         Suggested by Paolo Bonzini.
38261
38262 2010-01-31  Bruno Haible  <bruno@clisp.org>
38263
38264         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38265
38266 2010-01-31  Bruno Haible  <bruno@clisp.org>
38267
38268         Work around getdelim() bug on FreeBSD 8.0.
38269         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38270         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38271         not work.
38272         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38273         is 1.
38274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38275         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38276         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38277         a non-zero size.
38278         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38279
38280 2010-01-31  Bruno Haible  <bruno@clisp.org>
38281
38282         Work around getline() bug on FreeBSD 8.0.
38283         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38284         and a non-zero size.
38285         * tests/test-getline.c (main): Likewise.
38286         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38287         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38288
38289 2010-01-28  Eric Blake  <ebb9@byu.net>
38290
38291         regex: fix build failure
38292         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38293         platforms.
38294
38295 2010-01-28  Jim Meyering  <meyering@redhat.com>
38296
38297         regex: do not ignore memory allocation failure
38298         * lib/regex_internal.c (create_cd_newstate): Detect
38299         re_node_set_init_copy failure.   Extracted from glibc commit
38300         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38301
38302         regex: sync more white-space changes from libc
38303         * lib/regex_internal.c: White-space only changes.
38304         * lib/regexec.c: Likewise.
38305
38306         regex: add many uses of __attribute_warn_unused_result__
38307         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38308         * lib/regexec.c: Likewise.
38309         Extracted from a messy glibc commit.
38310
38311         regcomp.c: spelling and merge-artifact from glibc
38312         * lib/regcomp.c: Merge remainder of glibc's
38313         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38314
38315         regcomp.c: sync white-space changes from glibc
38316         * lib/regcomp.c: Merge to accommodate white space
38317         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38318
38319         regcomp.c: do not ignore internal return values
38320         * lib/regcomp.c: Do not ignore internal return values.
38321         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38322         but without its white-space changes and spelling fixes.
38323
38324         regex_internal.h: define __attribute_warn_unused_result__
38325         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38326
38327         maint: add a syntax-check rule to check for vulnerable Makefile.in
38328         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38329
38330 2010-01-27  Jim Meyering  <meyering@redhat.com>
38331
38332         ncftpput-ftp: clean up spaces
38333         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38334         Remove trailing blanks.
38335
38336 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38337
38338         * build-aux/git-version-gen: Fix copyright statement.
38339         * build-aux/gnupload: Likewise.
38340         * tests/test-arcfour.c: Likewise.
38341         * tests/test-arctwo.c: Likewise.
38342         * tests/test-count-one-bits.c: Likewise.
38343         * tests/test-crc.c: Likewise.
38344         * tests/test-des.c: Likewise.
38345         * tests/test-gc-arcfour.c: Likewise.
38346         * tests/test-gc-arctwo.c: Likewise.
38347         * tests/test-gc-des.c: Likewise.
38348         * tests/test-gc-hmac-md5.c: Likewise.
38349         * tests/test-gc-hmac-sha1.c: Likewise.
38350         * tests/test-gc-md2.c: Likewise.
38351         * tests/test-gc-md4.c: Likewise.
38352         * tests/test-gc-md5.c: Likewise.
38353         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38354         * tests/test-gc-rijndael.c: Likewise.
38355         * tests/test-gc-sha1.c: Likewise.
38356         * tests/test-gc.c: Likewise.
38357         * tests/test-gethostname.c: Likewise.
38358         * tests/test-gettimeofday.c: Likewise.
38359         * tests/test-hash.c: Likewise.
38360         * tests/test-hmac-md5.c: Likewise.
38361         * tests/test-hmac-sha1.c: Likewise.
38362         * tests/test-md2.c: Likewise.
38363         * tests/test-md4.c: Likewise.
38364         * tests/test-md5.c: Likewise.
38365         * tests/test-memchr.c: Likewise.
38366         * tests/test-memchr2.c: Likewise.
38367         * tests/test-memcmp.c: Likewise.
38368         * tests/test-memmem.c: Likewise.
38369         * tests/test-memrchr.c: Likewise.
38370         * tests/test-rawmemchr.c: Likewise.
38371         * tests/test-read-file.c: Likewise.
38372         * tests/test-rijndael.c: Likewise.
38373         * tests/test-sockets.c: Likewise.
38374         * tests/test-strchrnul.c: Likewise.
38375         * tests/test-strstr.c: Likewise.
38376         * tests/test-strtod.c: Likewise.
38377         * build-aux/ncftpput-ftp: Likewise.
38378
38379 2010-01-26  Eric Blake  <ebb9@byu.net>
38380
38381         ignore-value: update recommended header name
38382         * modules/ignore-value (Include): Only use <> for headers that
38383         exist in glibc.
38384
38385 2010-01-26  Jim Meyering  <meyering@redhat.com>
38386
38387         test-userspec.c: avoid compiler warnings
38388         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38389         and "initialization discards qualifiers..." warnings.
38390         Put the first "uid" in its own scope, and make char* members "const".
38391
38392 2010-01-25  Bruno Haible  <bruno@clisp.org>
38393
38394         gnulib-tool: Make warning diagnostics consistent.
38395         * gnulib-tool (func_warning): New function.
38396         Use it everywhere where gnulib-tool produces output to stderr and it is
38397         not a fatal error.
38398
38399 2010-01-25  Bruno Haible  <bruno@clisp.org>
38400
38401         Fix test dependencies.
38402         * modules/xstrtol-tests (Depends-on): Add inttypes.
38403         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38404
38405 2010-01-25 Pádraig Brady <P@draigBrady.com>
38406
38407         syntax-check: detect incorrect boolean macro values in config.h
38408         * modules/maintainer-makefile (configure.ac): Parameterize the location
38409         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38410         The logic is from Eric Blake and the location indicated by Jim Meyering.
38411         Note the more natural CONFIG_HEADER name is prohibited by automake
38412         for backwards compatibility reasons.
38413         * top/maint.mk (sc_Wundef_boolean): New rule.
38414
38415 2010-01-25  Jim Meyering  <meyering@redhat.com>
38416
38417         bootstrap: detect MacOS 10.6's shasum, too
38418         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38419         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38420
38421 2010-01-23  Jim Meyering  <meyering@redhat.com>
38422
38423         xstrtoll: new module
38424         * modules/xstrtoll: New file.
38425         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38426         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38427         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38428         ./configure fails if you use this module and lack "long long".
38429         * modules/xstrtoll-tests: New module.
38430         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38431         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38432         new init.sh-based test framework.
38433
38434 2010-01-24  Bruno Haible  <bruno@clisp.org>
38435
38436         Tests for module 'yn'.
38437         * modules/yn-tests: New file.
38438         * tests/test-yn.c: New file.
38439
38440         Tests for module 'y1'.
38441         * modules/y1-tests: New file.
38442         * tests/test-y1.c: New file.
38443
38444         Tests for module 'y0'.
38445         * modules/y0-tests: New file.
38446         * tests/test-y0.c: New file.
38447
38448         Tests for module 'tanh'.
38449         * modules/tanh-tests: New file.
38450         * tests/test-tanh.c: New file.
38451
38452         Tests for module 'tan'.
38453         * modules/tan-tests: New file.
38454         * tests/test-tan.c: New file.
38455
38456         Tests for module 'sqrt'.
38457         * modules/sqrt-tests: New file.
38458         * tests/test-sqrt.c: New file.
38459
38460         Tests for module 'sinh'.
38461         * modules/sinh-tests: New file.
38462         * tests/test-sinh.c: New file.
38463
38464         Tests for module 'sin'.
38465         * modules/sin-tests: New file.
38466         * tests/test-sin.c: New file.
38467
38468         Tests for module 'rint'.
38469         * modules/rint-tests: New file.
38470         * tests/test-rint.c: New file.
38471
38472         Tests for module 'remainder'.
38473         * modules/remainder-tests: New file.
38474         * tests/test-remainder.c: New file.
38475
38476         Tests for module 'pow'.
38477         * modules/pow-tests: New file.
38478         * tests/test-pow.c: New file.
38479
38480         Tests for module 'nextafter'.
38481         * modules/nextafter-tests: New file.
38482         * tests/test-nextafter.c: New file.
38483
38484         Tests for module 'modf'.
38485         * modules/modf-tests: New file.
38486         * tests/test-modf.c: New file.
38487
38488         Tests for module 'logb'.
38489         * modules/logb-tests: New file.
38490         * tests/test-logb.c: New file.
38491
38492         Tests for module 'log1p'.
38493         * modules/log1p-tests: New file.
38494         * tests/test-log1p.c: New file.
38495
38496         Tests for module 'log10'.
38497         * modules/log10-tests: New file.
38498         * tests/test-log10.c: New file.
38499
38500         Tests for module 'log'.
38501         * modules/log-tests: New file.
38502         * tests/test-log.c: New file.
38503
38504         Tests for module 'lgamma'.
38505         * modules/lgamma-tests: New file.
38506         * tests/test-lgamma.c: New file.
38507
38508         Tests for module 'ldexp'.
38509         * modules/ldexp-tests: New file.
38510         * tests/test-ldexp.c: New file.
38511
38512         Tests for module 'jn'.
38513         * modules/jn-tests: New file.
38514         * tests/test-jn.c: New file.
38515
38516         Tests for module 'j1'.
38517         * modules/j1-tests: New file.
38518         * tests/test-j1.c: New file.
38519
38520         Tests for module 'j0'.
38521         * modules/j0-tests: New file.
38522         * tests/test-j0.c: New file.
38523
38524         Tests for module 'hypot'.
38525         * modules/hypot-tests: New file.
38526         * tests/test-hypot.c: New file.
38527
38528         Tests for module 'fmod'.
38529         * modules/fmod-tests: New file.
38530         * tests/test-fmod.c: New file.
38531
38532         Tests for module 'fabs'.
38533         * modules/fabs-tests: New file.
38534         * tests/test-fabs.c: New file.
38535
38536         Tests for module 'exp'.
38537         * modules/exp-tests: New file.
38538         * tests/test-exp.c: New file.
38539
38540         Tests for module 'erfc'.
38541         * modules/erfc-tests: New file.
38542         * tests/test-erfc.c: New file.
38543
38544         Tests for module 'erf'.
38545         * modules/erf-tests: New file.
38546         * tests/test-erf.c: New file.
38547
38548         Tests for module 'cosh'.
38549         * modules/cosh-tests: New file.
38550         * tests/test-cosh.c: New file.
38551
38552         Tests for module 'cos'.
38553         * modules/cos-tests: New file.
38554         * tests/test-cos.c: New file.
38555
38556         Tests for module 'copysign'.
38557         * modules/copysign-tests: New file.
38558         * tests/test-copysign.c: New file.
38559
38560         Tests for module 'cbrt'.
38561         * modules/cbrt-tests: New file.
38562         * tests/test-cbrt.c: New file.
38563
38564         Tests for module 'atan2'.
38565         * modules/atan2-tests: New file.
38566         * tests/test-atan2.c: New file.
38567
38568         Tests for module 'atan'.
38569         * modules/atan-tests: New file.
38570         * tests/test-atan.c: New file.
38571
38572         Tests for module 'asin'.
38573         * modules/asin-tests: New file.
38574         * tests/test-asin.c: New file.
38575
38576         Tests for module 'acos'.
38577         * modules/acos-tests: New file.
38578         * tests/test-acos.c: New file.
38579
38580 2010-01-24  Bruno Haible  <bruno@clisp.org>
38581
38582         Fix tests for common <math.h> functions.
38583         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38584         code snippet that references the function pointer, rather than merely
38585         calling the function. Substitute the FUNC_LIBM variable.
38586         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38587         * modules/acos (configure.ac): Likewise.
38588         * modules/asin (configure.ac): Likewise.
38589         * modules/atan (configure.ac): Likewise.
38590         * modules/atan2 (configure.ac): Likewise.
38591         * modules/cbrt (configure.ac): Likewise.
38592         * modules/copysign (configure.ac): Likewise.
38593         * modules/cos (configure.ac): Likewise.
38594         * modules/cosh (configure.ac): Likewise.
38595         * modules/erf (configure.ac): Likewise.
38596         * modules/erfc (configure.ac): Likewise.
38597         * modules/exp (configure.ac): Likewise.
38598         * modules/fabs (configure.ac): Likewise.
38599         * modules/fmod (configure.ac): Likewise.
38600         * modules/hypot (configure.ac): Likewise.
38601         * modules/j0 (configure.ac): Likewise.
38602         * modules/j1 (configure.ac): Likewise.
38603         * modules/jn (configure.ac): Likewise.
38604         * modules/ldexp (configure.ac): Likewise.
38605         * modules/lgamma (configure.ac): Likewise.
38606         * modules/log (configure.ac): Likewise.
38607         * modules/log10 (configure.ac): Likewise.
38608         * modules/log1p (configure.ac): Likewise.
38609         * modules/logb (configure.ac): Likewise.
38610         * modules/modf (configure.ac): Likewise.
38611         * modules/nextafter (configure.ac): Likewise.
38612         * modules/pow (configure.ac): Likewise.
38613         * modules/remainder (configure.ac): Likewise.
38614         * modules/rint (configure.ac): Likewise.
38615         * modules/sin (configure.ac): Likewise.
38616         * modules/sinh (configure.ac): Likewise.
38617         * modules/tan (configure.ac): Likewise.
38618         * modules/tanh (configure.ac): Likewise.
38619         * modules/y0 (configure.ac): Likewise.
38620         * modules/y1 (configure.ac): Likewise.
38621         * modules/yn (configure.ac): Likewise.
38622
38623 2010-01-24  Bruno Haible  <bruno@clisp.org>
38624
38625         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38626         * tests/test-acosl.c (x): New variable.
38627         (main): Store argument in x and fetch it from x.
38628         * tests/test-asinl.c (x): New variable.
38629         (main): Store argument in x and fetch it from x.
38630         * tests/test-atanl.c (x): New variable.
38631         (main): Store argument in x and fetch it from x.
38632         * tests/test-cosl.c (x): New variable.
38633         (main): Store argument in x and fetch it from x.
38634         * tests/test-expl.c (x): New variable.
38635         (main): Store argument in x and fetch it from x.
38636         * tests/test-logl.c (x): New variable.
38637         (main): Store argument in x and fetch it from x.
38638         * tests/test-sinl.c (x): New variable.
38639         (main): Store argument in x and fetch it from x.
38640         * tests/test-sqrtl.c (x): New variable.
38641         (main): Store argument in x and fetch it from x.
38642         * tests/test-tanl.c (x): New variable.
38643         (main): Store argument in x and fetch it from x.
38644
38645 2010-01-24  Bruno Haible  <bruno@clisp.org>
38646
38647         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38648         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38649         assignments to the initial TESTS_ENVIRONMENT.
38650         * doc/gnulib.texi (Unit test modules): Document it.
38651         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38652         TESTS_ENVIRONMENT.
38653         * modules/btowc-tests (Makefile.am): Likewise.
38654         * modules/c-stack-tests (Makefile.am): Likewise.
38655         * modules/c-strcase-tests (Makefile.am): Likewise.
38656         * modules/copy-file-tests (Makefile.am): Likewise.
38657         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38658         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38659         * modules/mbrtowc-tests (Makefile.am): Likewise.
38660         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38661         * modules/mbscasestr-tests (Makefile.am): Likewise.
38662         * modules/mbschr-tests (Makefile.am): Likewise.
38663         * modules/mbscspn-tests (Makefile.am): Likewise.
38664         * modules/mbsinit-tests (Makefile.am): Likewise.
38665         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38666         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38667         * modules/mbspbrk-tests (Makefile.am): Likewise.
38668         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38669         * modules/mbsrchr-tests (Makefile.am): Likewise.
38670         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38671         * modules/mbsspn-tests (Makefile.am): Likewise.
38672         * modules/mbsstr-tests (Makefile.am): Likewise.
38673         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38674         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38675         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38676         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38677         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38678         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38679         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38680         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38681         * modules/wcrtomb-tests (Makefile.am): Likewise.
38682         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38683         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38684         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38685         assignments from TESTS_ENVIRONMENT.
38686         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38687         augmentation.
38688         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38689         * modules/atexit-tests (Makefile.am): Likewise.
38690         * modules/binary-io-tests (Makefile.am): Likewise.
38691         * modules/closein-tests (Makefile.am): Likewise.
38692         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38693         * modules/exclude-tests (Makefile.am): Likewise.
38694         * modules/fflush-tests (Makefile.am): Likewise.
38695         * modules/fpending-tests (Makefile.am): Likewise.
38696         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38697         * modules/freadahead-tests (Makefile.am): Likewise.
38698         * modules/freadptr-tests (Makefile.am): Likewise.
38699         * modules/freadseek-tests (Makefile.am): Likewise.
38700         * modules/fseek-tests (Makefile.am): Likewise.
38701         * modules/fseeko-tests (Makefile.am): Likewise.
38702         * modules/ftell-tests (Makefile.am): Likewise.
38703         * modules/ftello-tests (Makefile.am): Likewise.
38704         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38705         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38706         * modules/lseek-tests (Makefile.am): Likewise.
38707         * modules/parse-duration-tests (Makefile.am): Likewise.
38708         * modules/perror-tests (Makefile.am): Likewise.
38709         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38710         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38711         * modules/pipe-tests (Makefile.am): Likewise.
38712         * modules/pread-tests (Makefile.am): Likewise.
38713         * modules/printf-posix-tests (Makefile.am): Likewise.
38714         * modules/select-tests (Makefile.am): Likewise.
38715         * modules/sigpipe-tests (Makefile.am): Likewise.
38716         * modules/tsearch-tests (Makefile.am): Likewise.
38717         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38718         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38719         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38720         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38721         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38722         * modules/version-etc-tests (Makefile.am): Likewise.
38723         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38724         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38725         * modules/xalloc-die-tests (Makefile.am): Likewise.
38726         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38727         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38728         * modules/xstrtol-tests (Makefile.am): Likewise.
38729         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38730         * modules/yesno-tests (Makefile.am): Likewise.
38731         Suggested by Jim Meyering.
38732
38733 2010-01-24  Bruno Haible  <bruno@clisp.org>
38734
38735         More documentation.
38736         * doc/gnulib.texi (Writing modules): New chapter.
38737         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38738         the new chapter.
38739
38740 2010-01-24  Jim Meyering  <meyering@redhat.com>
38741
38742         maint.mk: do not prepend "./" after filtering
38743         * top/maint.mk (_prepend_srcdir_prefix): New variable
38744         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38745         "./" when $(srcdir) is ".".
38746
38747         define STREQ(a,b) consistently, removing useless parentheses
38748         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38749         since the only risk is that "a" or "b" contains an unparenthesized
38750         comma, but if either did that, STREQ would have 3 or more arguments.
38751         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38752         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38753         * lib/hash-triple.c (STREQ): Likewise.
38754         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38755         * lib/getugroups.c (STREQ): Likewise.
38756
38757 2010-01-23  Jim Meyering  <meyering@redhat.com>
38758
38759         maint.mk: fix syntax-check in a non-srcdir build directory
38760         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38761         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38762
38763 2010-01-22  Jim Meyering  <meyering@redhat.com>
38764
38765         userspec: add unit tests
38766         * tests/test-userspec.c: New file.
38767         * modules/userspec-tests: Likewise.
38768
38769 2010-01-21  Jim Meyering  <meyering@redhat.com>
38770
38771         maint.mk: handle source file names containing "." robustly
38772         * top/maint.mk (_dot_escaped_srcdir): Define.
38773         (VC_LIST): Use it in LHS of sed substitution.
38774
38775 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38776
38777         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38778         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38779         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38780         from a non-srcdir build.
38781
38782 2010-01-20  Eric Blake  <ebb9@byu.net>
38783
38784         warn-on-use: use instead of link-warning
38785         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38786         * modules/unistd (Depends-on, Makefile.am): Likewise.
38787         * modules/arpa_inet (Depends-on): Replace link-warning with
38788         warn-on-use.
38789         (Makefile.am): Update rules accordingly.
38790         * modules/ctype (Depends-on, Makefile.am): Likewise.
38791         * modules/dirent (Depends-on, Makefile.am): Likewise.
38792         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38793         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38794         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38795         * modules/locale (Depends-on, Makefile.am): Likewise.
38796         * modules/math (Depends-on, Makefile.am): Likewise.
38797         * modules/search (Depends-on, Makefile.am): Likewise.
38798         * modules/signal (Depends-on, Makefile.am): Likewise.
38799         * modules/spawn (Depends-on, Makefile.am): Likewise.
38800         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38801         * modules/string (Depends-on, Makefile.am): Likewise.
38802         * modules/strings (Depends-on, Makefile.am): Likewise.
38803         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38804         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38805         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38806         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38807         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38808         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38809         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38810         * modules/wchar (Depends-on, Makefile.am): Likewise.
38811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38812         should be poisoned.
38813         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38814         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38815         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38816         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38817         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38818         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38819         * m4/math_h.m4 (gl_MATH_H): Likewise.
38820         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38821         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38822         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38823         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38824         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38825         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38826         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38827         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38832         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38833         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38834         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38835         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38836         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38837         GL_LINK_WARNING.
38838         * lib/ctype.in.h: Likewise.
38839         * lib/dirent.in.h: Likewise.
38840         * lib/fcntl.in.h: Likewise.
38841         * lib/inttypes.in.h: Likewise.
38842         * lib/langinfo.in.h: Likewise.
38843         * lib/locale.in.h: Likewise.
38844         * lib/math.in.h: Likewise.
38845         * lib/search.in.h: Likewise.
38846         * lib/signal.in.h: Likewise.
38847         * lib/spawn.in.h: Likewise.
38848         * lib/stdio.in.h: Likewise.
38849         * lib/stdlib.in.h: Likewise.
38850         * lib/string.in.h: Likewise.
38851         * lib/strings.in.h: Likewise.
38852         * lib/sys_file.in.h: Likewise.
38853         * lib/sys_ioctl.in.h: Likewise.
38854         * lib/sys_select.in.h: Likewise.
38855         * lib/sys_socket.in.h: Likewise.
38856         * lib/sys_stat.in.h: Likewise.
38857         * lib/sys_times.in.h: Likewise.
38858         * lib/sys_utsname.in.h: Likewise.
38859         * lib/unistd.in.h: Likewise.
38860         * lib/wchar.in.h: Likewise.
38861
38862 2010-01-20  Bruno Haible  <bruno@clisp.org>
38863
38864         Avoid duplicate -lm.
38865         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38866         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38869         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38870         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38871         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38872         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38873         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38874         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38875         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38876         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38877         Reported by Paolo Bonzini.
38878
38879 2010-01-19  Bruno Haible  <bruno@clisp.org>
38880
38881         langinfo, nl_langinfo: Relicense under LGPLv2+.
38882         * modules/langinfo (License): Change to LGPLv2+.
38883         * modules/nl_langinfo (License): Likewise.
38884         Patch by David Lutterkort <lutter@redhat.com>.
38885
38886 2010-01-19  Bruno Haible  <bruno@clisp.org>
38887
38888         Avoid compilation error with cc on OSF/1 5.1.
38889         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38890         statement, not before.
38891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38892
38893 2010-01-18  Bruno Haible  <bruno@clisp.org>
38894
38895         Avoid a link error due to the __printf__ symbol.
38896         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38897         and 2.6.x.
38898         (__format__, __printf__): Remove definitions.
38899         * lib/argp-fmtstream.h: Likewise.
38900         * lib/argp.h: Likewise.
38901         * lib/error.h: Likewise.
38902         * lib/vasnprintf.h: Likewise.
38903         * lib/xprintf.h: Likewise.
38904         * lib/xvasprintf.h: Likewise.
38905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38906
38907 2010-01-18  Bruno Haible  <bruno@clisp.org>
38908
38909         Tests for module 'tanl'.
38910         * modules/tanl-tests: New file.
38911         * tests/test-tanl.c: New file.
38912
38913         Tests for module 'sqrtl'.
38914         * modules/sqrtl-tests: New file.
38915         * tests/test-sqrtl.c: New file.
38916
38917         Tests for module 'sinl'.
38918         * modules/sinl-tests: New file.
38919         * tests/test-sinl.c: New file.
38920
38921         Tests for module 'logl'.
38922         * modules/logl-tests: New file.
38923         * tests/test-logl.c: New file.
38924
38925         Tests for module 'expl'.
38926         * modules/expl-tests: New file.
38927         * tests/test-expl.c: New file.
38928
38929         Tests for module 'cosl'.
38930         * modules/cosl-tests: New file.
38931         * tests/test-cosl.c: New file.
38932
38933         Tests for module 'atanl'.
38934         * modules/atanl-tests: New file.
38935         * tests/test-atanl.c: New file.
38936
38937         Tests for module 'asinl'.
38938         * modules/asinl-tests: New file.
38939         * tests/test-asinl.c: New file.
38940
38941         Tests for module 'acosl'.
38942         * modules/acosl-tests: New file.
38943         * tests/test-acosl.c: New file.
38944
38945         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38946         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38947         tanl): Use the standard gnulib idiom.
38948         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38949         * lib/sinl.c: Likewise.
38950         * lib/tanl.c: Don't include trigl.c.
38951         (kernel_tanl): Make static.
38952         * lib/sincosl.c: Include trigl.h first.
38953         * lib/trigl.c: Likewise.
38954         * m4/acosl.m4: New file.
38955         * m4/asinl.m4: New file.
38956         * m4/atanl.m4: New file.
38957         * m4/cosl.m4: New file.
38958         * m4/expl.m4: New file.
38959         * m4/logl.m4: New file.
38960         * m4/sinl.m4: New file.
38961         * m4/sqrtl.m4: New file.
38962         * m4/tanl.m4: New file.
38963         * m4/mathl.m4: Remove file.
38964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38965         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38966         Don't initialize GNULIB_MATHL.
38967         * modules/acosl: New file.
38968         * modules/asinl: New file.
38969         * modules/atanl: New file.
38970         * modules/cosl: New file.
38971         * modules/expl: New file.
38972         * modules/logl: New file.
38973         * modules/sinl: New file.
38974         * modules/sqrtl: New file.
38975         * modules/tanl: New file.
38976         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38977         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38978         substitute GNULIB_MATHL.
38979         * modules/mathl: Rewritten.
38980         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38981         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38982         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38983         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38984         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38985         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38986         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38987         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38988         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38989
38990 2010-01-18  Bruno Haible  <bruno@clisp.org>
38991
38992         sqrt: Make gl_FUNC_SQRT requirable.
38993         * m4/sqrt.m4: New file.
38994         * modules/sqrt (Files): Add it.
38995         (configure.ac): Invoke gl_FUNC_SQRT.
38996
38997 2010-01-18  Bruno Haible  <bruno@clisp.org>
38998
38999         New modules for common <math.h> functions.
39000         * m4/mathfunc.m4: New file.
39001         * modules/acos: New file.
39002         * modules/asin: New file.
39003         * modules/atan: New file.
39004         * modules/atan2: New file.
39005         * modules/cbrt: New file.
39006         * modules/copysign: New file.
39007         * modules/cos: New file.
39008         * modules/cosh: New file.
39009         * modules/erf: New file.
39010         * modules/erfc: New file.
39011         * modules/exp: New file.
39012         * modules/fabs: New file.
39013         * modules/fmod: New file.
39014         * modules/hypot: New file.
39015         * modules/j0: New file.
39016         * modules/j1: New file.
39017         * modules/jn: New file.
39018         * modules/ldexp: New file.
39019         * modules/lgamma: New file.
39020         * modules/log: New file.
39021         * modules/log10: New file.
39022         * modules/log1p: New file.
39023         * modules/logb: New file.
39024         * modules/modf: New file.
39025         * modules/nextafter: New file.
39026         * modules/pow: New file.
39027         * modules/remainder: New file.
39028         * modules/rint: New file.
39029         * modules/sin: New file.
39030         * modules/sinh: New file.
39031         * modules/sqrt: New file.
39032         * modules/tan: New file.
39033         * modules/tanh: New file.
39034         * modules/y0: New file.
39035         * modules/y1: New file.
39036         * modules/yn: New file.
39037         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39038         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39039         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39040         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39041         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39042         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39043         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39044         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39045         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39046         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39047         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39048         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39049         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39050         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39051         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39052         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39053         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39054         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39055         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39056         * doc/posix-functions/log.texi: Mention the 'log' module.
39057         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39058         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39059         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39060         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39061         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39062         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39063         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39064         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39065         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39066         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39067         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39068         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39069         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39070         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39071         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39072         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39073
39074 2010-01-18  Jim Meyering  <meyering@redhat.com>
39075
39076         ignore-value: relax license to LGPLv2+
39077         * modules/ignore-value (License): Relax to LGPLv2+.
39078
39079         getdate: don't leak when TZ contains two or more '"'s
39080         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39081         double quote in TZ after the first one.
39082
39083         readtokens: do not leak internal token_lengths buffer
39084         * lib/readtokens.c (readtokens): Free the local, lengths,
39085         when the supplied "token_lengths" parameter is NULL.
39086
39087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39088
39089         Fix a couple of missing LIBTHREAD link failures on AIX.
39090         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39091         $(LIBTHREAD).
39092         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39093
39094         Link test-poll against INET_PTON_LIB.
39095         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39096         for inet_pton on Solaris 10.
39097
39098 2010-01-17  Bruno Haible  <bruno@clisp.org>
39099
39100         unistdio/*-sprintf: Fix typo in module description.
39101         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39102         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39103         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39104         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39105         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39106         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39107         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39109
39110 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39111
39112         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39113         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39114         variables in shell case patterns, for AIX and HP-UX ksh.
39115
39116         Split large sed scripts, for HP-UX sed.
39117         * modules/stdio: Split sed scripts around 50 sed commands,
39118         to avoid HP-UX limit of 99 commands, in the near future.
39119         * modules/string: Likewise.
39120         * modules/unistd: Likewise.
39121
39122         gnulib-tool: avoid writing in the current directory.
39123         * gnulib-tool (func_emit_lib_Makefile_am)
39124         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39125         not in the current directory, so concurrent gnulib-tool
39126         instances do not interfere.
39127
39128 2010-01-16  Jim Meyering  <meyering@redhat.com>
39129
39130         doc: update users.txt
39131         * users.txt: Add grep.
39132         (diffutils, gzip): Update URLs.
39133
39134 2010-01-12  Bruno Haible  <bruno@clisp.org>
39135
39136         posix_spawn: Avoid test failure on Cygwin.
39137         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39138         characters.
39139         Reported by Simon Josefsson.
39140
39141 2010-01-12  Bruno Haible  <bruno@clisp.org>
39142
39143         * tests/test-cond.c (main): When skipping the test, show the reason.
39144
39145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39146
39147         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39148
39149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39150
39151         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39152         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39153
39154 2010-01-12  Eric Blake  <ebb9@byu.net>
39155
39156         build: guarantee AS_VAR_IF
39157         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39158         (gl_AS_VAR_IF): Move...
39159         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39160         Reported by Simon Josefsson.
39161
39162 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39163
39164         * lib/stdio.in.h: Fix typo.
39165
39166 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39167
39168         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39169         libgpg-error.
39170
39171 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39172
39173         * tests/test-xalloc-die.sh: Use $EXEEXT.
39174
39175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39176             Bruno Haible  <bruno@clisp.org>
39177
39178         getlogin, getlogin_r: Avoid test failure.
39179         * tests/test-getlogin.c: Include <stdio.h>.
39180         (main): Skip the test when the function fails because stdin is not a
39181         tty.
39182         * tests/test-getlogin_r.c: Include <stdio.h>.
39183         (main): Skip the test when the function fails because stdin is not a
39184         tty.
39185
39186 2010-01-11  Eric Blake  <ebb9@byu.net>
39187
39188         tests: avoid more large file warnings
39189         * tests/test-fflush.c: Avoid warning about ftell use.
39190         * tests/test-fseek.c: Avoid warning about fseek use.
39191
39192 2010-01-10  Bruno Haible  <bruno@clisp.org>
39193
39194         nproc: Work better on Linux when /proc and /sys are not mounted.
39195         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39196         as lower bound when, on glibc/Linux systems,
39197         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39198         Suggested by Pádraig Brady <P@draigbrady.com>.
39199         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39200
39201         nproc: Refactor.
39202         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39203         extracted from num_processors.
39204         (num_processors): Call it.
39205
39206 2010-01-11  Jim Meyering  <meyering@redhat.com>
39207
39208         utimecmp: avoid new warning from upcoming gcc-4.5.0
39209         * lib/utimecmp.c (BILLION): Define using #define rather than an
39210         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39211
39212 2010-01-11  Eric Blake  <ebb9@byu.net>
39213
39214         math: add portability warnings for classification macros
39215         * modules/math (Depends-on): Add warn-on-use.
39216         (Makefile.am): Provide new substitutions.
39217         * m4/math_h.m4 (gl_MATH_H): Require inline.
39218         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39219         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39220         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39221         implement warnings.
39222
39223         unistd: warn on use of environ without module
39224         * modules/unistd (Depends-on): Add warn-on-use.
39225         (Makefile.am): Provide new substitutions.
39226         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39227         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39228
39229         stdio: warn on suspicious uses
39230         * modules/stdio (Depends-on): Add warn-on-use.
39231         (Makefile.am): Provide new substitutions.
39232         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39233         fseeko.
39234         * lib/stdio.in.h (gets): Always warn on use.
39235         (fseek, ftell): Adjust when warnings are issued, and honor
39236         _GL_NO_LARGE_FILES as a way to silence the warning.
39237         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39238         any warning about large file offsets.
39239         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39240         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39241         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39242         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39243         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39244         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39245         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39246         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39247
39248         warn-on-use: new module
39249         * modules/warn-on-use: New file.
39250         * build-aux/warn-on-use.h: Likewise.
39251         * m4/warn-on-use.m4: Likewise.
39252         * MODULES.html.sh (Support for building): Mention it.
39253
39254 2010-01-10  Bruno Haible  <bruno@clisp.org>
39255
39256         Tests for module 'unistr/u32-strdup'.
39257         * modules/unistr/u32-strdup-tests: New file.
39258         * tests/unistr/test-u32-strdup.c: New file.
39259
39260         Tests for module 'unistr/u16-strdup'.
39261         * modules/unistr/u16-strdup-tests: New file.
39262         * tests/unistr/test-u16-strdup.c: New file.
39263
39264         Tests for module 'unistr/u8-strdup'.
39265         * modules/unistr/u8-strdup-tests: New file.
39266         * tests/unistr/test-u8-strdup.c: New file.
39267         * tests/unistr/test-strdup.h: New file.
39268
39269         Tests for module 'unistr/u32-strncmp'.
39270         * modules/unistr/u32-strncmp-tests: New file.
39271         * tests/unistr/test-u32-strncmp.c: New file.
39272
39273         Tests for module 'unistr/u16-strncmp'.
39274         * modules/unistr/u16-strncmp-tests: New file.
39275         * tests/unistr/test-u16-strncmp.c: New file.
39276
39277         Tests for module 'unistr/u8-strncmp'.
39278         * modules/unistr/u8-strncmp-tests: New file.
39279         * tests/unistr/test-u8-strncmp.c: New file.
39280         * tests/unistr/test-strncmp.h: New file.
39281
39282         Tests for module 'unistr/u32-strcoll'.
39283         * modules/unistr/u32-strcoll-tests: New file.
39284         * tests/unistr/test-u32-strcoll.c: New file.
39285
39286         Tests for module 'unistr/u16-strcoll'.
39287         * modules/unistr/u16-strcoll-tests: New file.
39288         * tests/unistr/test-u16-strcoll.c: New file.
39289
39290         Tests for module 'unistr/u8-strcoll'.
39291         * modules/unistr/u8-strcoll-tests: New file.
39292         * tests/unistr/test-u8-strcoll.c: New file.
39293
39294         Tests for module 'unistr/u32-strcmp'.
39295         * modules/unistr/u32-strcmp-tests: New file.
39296         * tests/unistr/test-u32-strcmp.c: New file.
39297         * tests/unistr/test-u32-strcmp.h: New file.
39298
39299         Tests for module 'unistr/u16-strcmp'.
39300         * modules/unistr/u16-strcmp-tests: New file.
39301         * tests/unistr/test-u16-strcmp.c: New file.
39302         * tests/unistr/test-u16-strcmp.h: New file.
39303
39304         Tests for module 'unistr/u8-strcmp'.
39305         * modules/unistr/u8-strcmp-tests: New file.
39306         * tests/unistr/test-u8-strcmp.c: New file.
39307         * tests/unistr/test-u8-strcmp.h: New file.
39308         * tests/unistr/test-strcmp.h: New file.
39309
39310         Tests for module 'unistr/u32-strncat'.
39311         * modules/unistr/u32-strncat-tests: New file.
39312         * tests/unistr/test-u32-strncat.c: New file.
39313
39314         Tests for module 'unistr/u16-strncat'.
39315         * modules/unistr/u16-strncat-tests: New file.
39316         * tests/unistr/test-u16-strncat.c: New file.
39317
39318         Tests for module 'unistr/u8-strncat'.
39319         * modules/unistr/u8-strncat-tests: New file.
39320         * tests/unistr/test-u8-strncat.c: New file.
39321         * tests/unistr/test-strncat.h: New file.
39322
39323         Tests for module 'unistr/u32-strcat'.
39324         * modules/unistr/u32-strcat-tests: New file.
39325         * tests/unistr/test-u32-strcat.c: New file.
39326
39327         Tests for module 'unistr/u16-strcat'.
39328         * modules/unistr/u16-strcat-tests: New file.
39329         * tests/unistr/test-u16-strcat.c: New file.
39330
39331         Tests for module 'unistr/u8-strcat'.
39332         * modules/unistr/u8-strcat-tests: New file.
39333         * tests/unistr/test-u8-strcat.c: New file.
39334         * tests/unistr/test-strcat.h: New file.
39335
39336         Tests for module 'unistr/u32-stpncpy'.
39337         * modules/unistr/u32-stpncpy-tests: New file.
39338         * tests/unistr/test-u32-stpncpy.c: New file.
39339
39340         Tests for module 'unistr/u16-stpncpy'.
39341         * modules/unistr/u16-stpncpy-tests: New file.
39342         * tests/unistr/test-u16-stpncpy.c: New file.
39343
39344         Tests for module 'unistr/u8-stpncpy'.
39345         * modules/unistr/u8-stpncpy-tests: New file.
39346         * tests/unistr/test-u8-stpncpy.c: New file.
39347         * tests/unistr/test-stpncpy.h: New file.
39348
39349         Tests for module 'unistr/u32-strncpy'.
39350         * modules/unistr/u32-strncpy-tests: New file.
39351         * tests/unistr/test-u32-strncpy.c: New file.
39352
39353         Tests for module 'unistr/u16-strncpy'.
39354         * modules/unistr/u16-strncpy-tests: New file.
39355         * tests/unistr/test-u16-strncpy.c: New file.
39356
39357         Tests for module 'unistr/u8-strncpy'.
39358         * modules/unistr/u8-strncpy-tests: New file.
39359         * tests/unistr/test-u8-strncpy.c: New file.
39360         * tests/unistr/test-strncpy.h: New file.
39361
39362         Tests for module 'unistr/u32-stpcpy'.
39363         * modules/unistr/u32-stpcpy-tests: New file.
39364         * tests/unistr/test-u32-stpcpy.c: New file.
39365
39366         Tests for module 'unistr/u16-stpcpy'.
39367         * modules/unistr/u16-stpcpy-tests: New file.
39368         * tests/unistr/test-u16-stpcpy.c: New file.
39369
39370         Tests for module 'unistr/u8-stpcpy'.
39371         * modules/unistr/u8-stpcpy-tests: New file.
39372         * tests/unistr/test-u8-stpcpy.c: New file.
39373         * tests/unistr/test-stpcpy.h: New file.
39374
39375         Tests for module 'unistr/u32-strcpy'.
39376         * modules/unistr/u32-strcpy-tests: New file.
39377         * tests/unistr/test-u32-strcpy.c: New file.
39378
39379         Tests for module 'unistr/u16-strcpy'.
39380         * modules/unistr/u16-strcpy-tests: New file.
39381         * tests/unistr/test-u16-strcpy.c: New file.
39382
39383         Tests for module 'unistr/u8-strcpy'.
39384         * modules/unistr/u8-strcpy-tests: New file.
39385         * tests/unistr/test-u8-strcpy.c: New file.
39386         * tests/unistr/test-strcpy.h: New file.
39387
39388         Tests for module 'unistr/u32-strnlen'.
39389         * modules/unistr/u32-strnlen-tests: New file.
39390         * tests/unistr/test-u32-strnlen.c: New file.
39391
39392         Tests for module 'unistr/u16-strnlen'.
39393         * modules/unistr/u16-strnlen-tests: New file.
39394         * tests/unistr/test-u16-strnlen.c: New file.
39395
39396         Tests for module 'unistr/u8-strnlen'.
39397         * modules/unistr/u8-strnlen-tests: New file.
39398         * tests/unistr/test-u8-strnlen.c: New file.
39399         * tests/unistr/test-strnlen.h: New file.
39400
39401         Tests for module 'unistr/u32-strlen'.
39402         * modules/unistr/u32-strlen-tests: New file.
39403         * tests/unistr/test-u32-strlen.c: New file.
39404
39405         Tests for module 'unistr/u16-strlen'.
39406         * modules/unistr/u16-strlen-tests: New file.
39407         * tests/unistr/test-u16-strlen.c: New file.
39408
39409         Tests for module 'unistr/u8-strlen'.
39410         * modules/unistr/u8-strlen-tests: New file.
39411         * tests/unistr/test-u8-strlen.c: New file.
39412
39413         Tests for module 'unistr/u32-prev'.
39414         * modules/unistr/u32-prev-tests: New file.
39415         * tests/unistr/test-u32-prev.c: New file.
39416
39417         Tests for module 'unistr/u16-prev'.
39418         * modules/unistr/u16-prev-tests: New file.
39419         * tests/unistr/test-u16-prev.c: New file.
39420
39421         Tests for module 'unistr/u8-prev'.
39422         * modules/unistr/u8-prev-tests: New file.
39423         * tests/unistr/test-u8-prev.c: New file.
39424
39425         Tests for module 'unistr/u32-next'.
39426         * modules/unistr/u32-next-tests: New file.
39427         * tests/unistr/test-u32-next.c: New file.
39428
39429         Tests for module 'unistr/u16-next'.
39430         * modules/unistr/u16-next-tests: New file.
39431         * tests/unistr/test-u16-next.c: New file.
39432
39433         Tests for module 'unistr/u8-next'.
39434         * modules/unistr/u8-next-tests: New file.
39435         * tests/unistr/test-u8-next.c: New file.
39436
39437         Tests for module 'unistr/u32-strmbtouc'.
39438         * modules/unistr/u32-strmbtouc-tests: New file.
39439         * tests/unistr/test-u32-strmbtouc.c: New file.
39440
39441         Tests for module 'unistr/u16-strmbtouc'.
39442         * modules/unistr/u16-strmbtouc-tests: New file.
39443         * tests/unistr/test-u16-strmbtouc.c: New file.
39444
39445         Tests for module 'unistr/u8-strmbtouc'.
39446         * modules/unistr/u8-strmbtouc-tests: New file.
39447         * tests/unistr/test-u8-strmbtouc.c: New file.
39448
39449         Tests for module 'unistr/u32-strmblen'.
39450         * modules/unistr/u32-strmblen-tests: New file.
39451         * tests/unistr/test-u32-strmblen.c: New file.
39452
39453         Tests for module 'unistr/u16-strmblen'.
39454         * modules/unistr/u16-strmblen-tests: New file.
39455         * tests/unistr/test-u16-strmblen.c: New file.
39456
39457         Tests for module 'unistr/u8-strmblen'.
39458         * modules/unistr/u8-strmblen-tests: New file.
39459         * tests/unistr/test-u8-strmblen.c: New file.
39460
39461         Tests for module 'unistr/u32-cpy-alloc'.
39462         * modules/unistr/u32-cpy-alloc-tests: New file.
39463         * tests/unistr/test-u32-cpy-alloc.c: New file.
39464
39465         Tests for module 'unistr/u16-cpy-alloc'.
39466         * modules/unistr/u16-cpy-alloc-tests: New file.
39467         * tests/unistr/test-u16-cpy-alloc.c: New file.
39468
39469         Tests for module 'unistr/u8-cpy-alloc'.
39470         * modules/unistr/u8-cpy-alloc-tests: New file.
39471         * tests/unistr/test-u8-cpy-alloc.c: New file.
39472         * tests/unistr/test-cpy-alloc.h: New file.
39473
39474         Tests for module 'unistr/u32-mbsnlen'.
39475         * modules/unistr/u32-mbsnlen-tests: New file.
39476         * tests/unistr/test-u32-mbsnlen.c: New file.
39477
39478         Tests for module 'unistr/u16-mbsnlen'.
39479         * modules/unistr/u16-mbsnlen-tests: New file.
39480         * tests/unistr/test-u16-mbsnlen.c: New file.
39481
39482         Tests for module 'unistr/u8-mbsnlen'.
39483         * modules/unistr/u8-mbsnlen-tests: New file.
39484         * tests/unistr/test-u8-mbsnlen.c: New file.
39485
39486         Tests for module 'unistr/u32-chr'.
39487         * modules/unistr/u32-chr-tests: New file.
39488         * tests/unistr/test-u32-chr.c: New file.
39489
39490         Tests for module 'unistr/u16-chr'.
39491         * modules/unistr/u16-chr-tests: New file.
39492         * tests/unistr/test-u16-chr.c: New file.
39493
39494         Tests for module 'unistr/u8-chr'.
39495         * modules/unistr/u8-chr-tests: New file.
39496         * tests/unistr/test-u8-chr.c: New file.
39497         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39498
39499         Tests for module 'unistr/u32-cmp2'.
39500         * modules/unistr/u32-cmp2-tests: New file.
39501         * tests/unistr/test-u32-cmp2.c: New file.
39502
39503         Tests for module 'unistr/u16-cmp2'.
39504         * modules/unistr/u16-cmp2-tests: New file.
39505         * tests/unistr/test-u16-cmp2.c: New file.
39506
39507         Tests for module 'unistr/u8-cmp2'.
39508         * modules/unistr/u8-cmp2-tests: New file.
39509         * tests/unistr/test-u8-cmp2.c: New file.
39510         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39511
39512         Tests for module 'unistr/u32-cmp'.
39513         * modules/unistr/u32-cmp-tests: New file.
39514         * tests/unistr/test-u32-cmp.c: New file.
39515
39516         Tests for module 'unistr/u16-cmp'.
39517         * modules/unistr/u16-cmp-tests: New file.
39518         * tests/unistr/test-u16-cmp.c: New file.
39519
39520         Tests for module 'unistr/u8-cmp'.
39521         * modules/unistr/u8-cmp-tests: New file.
39522         * tests/unistr/test-u8-cmp.c: New file.
39523         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39524
39525         Tests for module 'unistr/u32-set'.
39526         * modules/unistr/u32-set-tests: New file.
39527         * tests/unistr/test-u32-set.c: New file.
39528
39529         Tests for module 'unistr/u16-set'.
39530         * modules/unistr/u16-set-tests: New file.
39531         * tests/unistr/test-u16-set.c: New file.
39532
39533         Tests for module 'unistr/u8-set'.
39534         * modules/unistr/u8-set-tests: New file.
39535         * tests/unistr/test-u8-set.c: New file.
39536         * tests/unistr/test-set.h: New file.
39537
39538         Tests for module 'unistr/u32-move'.
39539         * modules/unistr/u32-move-tests: New file.
39540         * tests/unistr/test-u32-move.c: New file.
39541
39542         Tests for module 'unistr/u16-move'.
39543         * modules/unistr/u16-move-tests: New file.
39544         * tests/unistr/test-u16-move.c: New file.
39545
39546         Tests for module 'unistr/u8-move'.
39547         * modules/unistr/u8-move-tests: New file.
39548         * tests/unistr/test-u8-move.c: New file.
39549         * tests/unistr/test-move.h: New file.
39550
39551         Tests for module 'unistr/u32-cpy'.
39552         * modules/unistr/u32-cpy-tests: New file.
39553         * tests/unistr/test-u32-cpy.c: New file.
39554
39555         Tests for module 'unistr/u16-cpy'.
39556         * modules/unistr/u16-cpy-tests: New file.
39557         * tests/unistr/test-u16-cpy.c: New file.
39558
39559         Tests for module 'unistr/u8-cpy'.
39560         * modules/unistr/u8-cpy-tests: New file.
39561         * tests/unistr/test-u8-cpy.c: New file.
39562         * tests/unistr/test-cpy.h: New file.
39563
39564 2010-01-09  Bruno Haible  <bruno@clisp.org>
39565
39566         Tests for module 'unistr/u32-uctomb'.
39567         * modules/unistr/u32-uctomb-tests: New file.
39568         * tests/unistr/test-u32-uctomb.c: New file.
39569
39570         Tests for module 'unistr/u16-uctomb'.
39571         * modules/unistr/u16-uctomb-tests: New file.
39572         * tests/unistr/test-u16-uctomb.c: New file.
39573
39574         Tests for module 'unistr/u8-uctomb'.
39575         * modules/unistr/u8-uctomb-tests: New file.
39576         * tests/unistr/test-u8-uctomb.c: New file.
39577
39578         Tests for module 'unistr/u32-mbtoucr'.
39579         * modules/unistr/u32-mbtoucr-tests: New file.
39580         * tests/unistr/test-u32-mbtoucr.c: New file.
39581
39582         Tests for module 'unistr/u16-mbtoucr'.
39583         * modules/unistr/u16-mbtoucr-tests: New file.
39584         * tests/unistr/test-u16-mbtoucr.c: New file.
39585
39586         Tests for module 'unistr/u8-mbtoucr'.
39587         * modules/unistr/u8-mbtoucr-tests: New file.
39588         * tests/unistr/test-u8-mbtoucr.c: New file.
39589
39590         Tests for module 'unistr/u32-mbtouc'.
39591         * modules/unistr/u32-mbtouc-tests: New file.
39592         * tests/unistr/test-u32-mbtouc.c: New file.
39593
39594         Tests for module 'unistr/u16-mbtouc'.
39595         * modules/unistr/u16-mbtouc-tests: New file.
39596         * tests/unistr/test-u16-mbtouc.c: New file.
39597
39598         Tests for module 'unistr/u8-mbtouc'.
39599         * modules/unistr/u8-mbtouc-tests: New file.
39600         * tests/unistr/test-u8-mbtouc.c: New file.
39601
39602         Tests for module 'unistr/u32-mbtouc-unsafe'.
39603         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39604         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39605         * tests/unistr/test-u32-mbtouc.h: New file.
39606
39607         Tests for module 'unistr/u16-mbtouc-unsafe'.
39608         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39609         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39610         * tests/unistr/test-u16-mbtouc.h: New file.
39611
39612         Tests for module 'unistr/u8-mbtouc-unsafe'.
39613         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39614         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39615         * tests/unistr/test-u8-mbtouc.h: New file.
39616
39617         Tests for module 'unistr/u32-mblen'.
39618         * modules/unistr/u32-mblen-tests: New file.
39619         * tests/unistr/test-u32-mblen.c: New file.
39620
39621         Tests for module 'unistr/u16-mblen'.
39622         * modules/unistr/u16-mblen-tests: New file.
39623         * tests/unistr/test-u16-mblen.c: New file.
39624
39625         Tests for module 'unistr/u8-mblen'.
39626         * modules/unistr/u8-mblen-tests: New file.
39627         * tests/unistr/test-u8-mblen.c: New file.
39628
39629         Tests for module 'unistr/u32-to-u16'.
39630         * modules/unistr/u32-to-u16-tests: New file.
39631         * tests/unistr/test-u32-to-u16.c: New file.
39632
39633         Tests for module 'unistr/u32-to-u8'.
39634         * modules/unistr/u32-to-u8-tests: New file.
39635         * tests/unistr/test-u32-to-u8.c: New file.
39636
39637         Tests for module 'unistr/u16-to-u32'.
39638         * modules/unistr/u16-to-u32-tests: New file.
39639         * tests/unistr/test-u16-to-u32.c: New file.
39640
39641         Tests for module 'unistr/u16-to-u8'.
39642         * modules/unistr/u16-to-u8-tests: New file.
39643         * tests/unistr/test-u16-to-u8.c: New file.
39644
39645         Tests for module 'unistr/u8-to-u32'.
39646         * modules/unistr/u8-to-u32-tests: New file.
39647         * tests/unistr/test-u8-to-u32.c: New file.
39648
39649         Tests for module 'unistr/u8-to-u16'.
39650         * modules/unistr/u8-to-u16-tests: New file.
39651         * tests/unistr/test-u8-to-u16.c: New file.
39652
39653         Tests for module 'unistr/u32-check'.
39654         * modules/unistr/u32-check-tests: New file.
39655         * tests/unistr/test-u32-check.c: New file.
39656
39657         Tests for module 'unistr/u16-check'.
39658         * modules/unistr/u16-check-tests: New file.
39659         * tests/unistr/test-u16-check.c: New file.
39660
39661         Tests for module 'unistr/u8-check'.
39662         * modules/unistr/u8-check-tests: New file.
39663         * tests/unistr/test-u8-check.c: New file.
39664
39665         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39666         (category_equals): New function.
39667         (main): Add more tests.
39668         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39669
39670         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39671
39672 2010-01-10  Bruno Haible  <bruno@clisp.org>
39673
39674         unistr/u*-strcoll: Try harder to distinguish different strings.
39675         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39676         compare s1 and s2 to see if they are different.
39677
39678 2010-01-10  Bruno Haible  <bruno@clisp.org>
39679
39680         unistr/u*-stpncpy: Fix the return value.
39681         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39682         description of the return value consistent with stpncpy in glibc.
39683         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39684         written non-NUL unit.
39685
39686 2010-01-10  Bruno Haible  <bruno@clisp.org>
39687
39688         unistr/u*-next: Add missing dependencies.
39689         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39690         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39691         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39692
39693 2010-01-10  Bruno Haible  <bruno@clisp.org>
39694
39695         unistr/u8-mbsnlen: Fix return value for incomplete character.
39696         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39697         u8_mblen.
39698         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39699         Remove unistr/u8-mblen.
39700         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39701         u16_mblen.
39702         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39703         Remove unistr/u16-mblen.
39704
39705 2010-01-10  Bruno Haible  <bruno@clisp.org>
39706
39707         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39708         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39709         Reported by Brian Gough <bjg@gnu.org> and
39710         Chris Clayton <chris2553@googlemail.com> via
39711         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39712
39713 2010-01-09  Bruno Haible  <bruno@clisp.org>
39714
39715         unistr/u16-to-u32: Reject invalid input.
39716         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39717         u16_mbtouc.
39718         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39719         Remove unistr/u16-mbtouc.
39720
39721         unistr/u16-to-u8: Reject invalid input.
39722         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39723         u16_mbtouc.
39724         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39725         Remove unistr/u16-mbtouc.
39726
39727         unistr/u8-to-u32: Reject invalid input.
39728         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39729         u8_mbtouc.
39730         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39731         Remove unistr/u8-mbtouc.
39732
39733         unistr/u8-to-u16: Reject invalid input.
39734         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39735         u8_mbtouc.
39736         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39737         Remove unistr/u8-mbtouc.
39738
39739 2010-01-09  Bruno Haible  <bruno@clisp.org>
39740
39741         Tests for module 'getlogin'.
39742         * modules/getlogin-tests: New file.
39743         * tests/test-getlogin.c: New file.
39744
39745         New module 'getlogin'.
39746         * lib/unistd.in.h (getlogin): New declaration.
39747         * lib/getlogin.c: New file.
39748         * m4/getlogin.m4: New file.
39749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39750         HAVE_GETLOGIN.
39751         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39752         HAVE_GETLOGIN.
39753         * modules/getlogin: New file.
39754         * doc/posix-functions/getlogin.texi: Mention the new module.
39755         Reported by John W. Eaton <jwe@gnu.org>.
39756
39757 2010-01-09  Bruno Haible  <bruno@clisp.org>
39758
39759         getlogin_r: Support for native Windows.
39760         * lib/getlogin_r.c: Include <windows.h>
39761         (getlogin_r): Implement for native Windows.
39762         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39763         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39764         via John W. Eaton <jwe@gnu.org>.
39765
39766 2010-01-09  Bruno Haible  <bruno@clisp.org>
39767
39768         getlogin_r: Small fixes.
39769         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39770         succeeds.
39771         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39772         before testing whether getlogin_r is declared. No need to set
39773         HAVE_DECL_GETLOGIN_R to 1.
39774         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39775
39776 2010-01-09  Bruno Haible  <bruno@clisp.org>
39777
39778         * lib/unistd.in.h (getlogin_r): Add comment.
39779
39780 2010-01-09  Bruno Haible  <bruno@clisp.org>
39781
39782         Tests for module 'getlogin_r'.
39783         * modules/getlogin_r-tests: New file.
39784         * tests/test-getlogin_r.c: New file.
39785
39786 2010-01-09  Jim Meyering  <meyering@redhat.com>
39787
39788         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39789         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39790         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39791
39792 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39793
39794         * lib/dup2.c (rpl_dup2): Improve comment.
39795
39796 2010-01-08  Eric Blake  <ebb9@byu.net>
39797
39798         maint.mk: allow packages to add makefile @@ exceptions
39799         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39800         (sc_makefile_check): Rename...
39801         (sc_makefile_at_at_check): ...to this, and use hook.
39802
39803         dup2: work around mingw bug
39804         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39805         Reported by Simon Josefsson.
39806
39807 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39808
39809         glob: Fix C++ compilation.
39810         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39811         C++.
39812
39813 2010-01-07  Bruno Haible  <bruno@clisp.org>
39814
39815         Fix indentation of wctype.in.h, broken since 2007-01-06.
39816         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39817
39818 2010-01-07  Bruno Haible  <bruno@clisp.org>
39819
39820         mbslen: Avoid collision with system function.
39821         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39822         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39823         * m4/mbslen.m4: New file.
39824         * modules/mbslen (Files): Add it.
39825         (configure.ac): Invoke gl_MBSLEN.
39826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39827         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39828         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39829         via Ian Beckwith <ianb@erislabs.net>.
39830
39831 2010-01-07  Bruno Haible  <bruno@clisp.org>
39832
39833         dirent: Document the last fix.
39834         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39835
39836 2010-01-07  Bruno Haible  <bruno@clisp.org>
39837
39838         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39839         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39840         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39841         va_list are defined.
39842         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39843         Reported by Eric Blake.
39844
39845 2010-01-07  Bruno Haible  <bruno@clisp.org>
39846
39847         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39848         * modules/xlist (Depends-on): Add 'list',
39849         * modules/xoset (Depends-on): Add 'oset'.
39850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39851
39852 2010-01-07  Bruno Haible  <bruno@clisp.org>
39853
39854         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39855         * doc/posix-functions/strncasecmp.texi: Likewise.
39856
39857 2010-01-07  Bruno Haible  <bruno@clisp.org>
39858
39859         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39860
39861 2010-01-07  John W. Eaton  <jwe@octave.org>
39862
39863         wctype: allow C++ use
39864         * lib/wctype.in.h: Add extern "C" block for C++.
39865
39866 2010-01-06  Eric Blake  <ebb9@byu.net>
39867
39868         maint.mk: detect incorrect GFDL usage
39869         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39870
39871 2010-01-06  Jim Meyering  <meyering@redhat.com>
39872         and Eric Blake  <ebb9@byu.net>
39873
39874         maint.mk: ignore multi-line copyright in NEWS
39875         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39876
39877 2010-01-06  Eric Blake  <ebb9@byu.net>
39878
39879         select: add missing dependency
39880         * modules/select-tests (Depends-on): Move sockets dependency...
39881         * modules/select (Depends-on): ...here.
39882         Reported by Ian Beckwith.
39883
39884         doc: regenerate INSTALL
39885         * doc/INSTALL: Reflect recent autoconf update.
39886         * doc/INSTALL.ISO: Likewise.
39887         * doc/INSTALL.UTF-8: Likewise.
39888
39889         pread: fix compilation on glibc
39890         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39891         Reported by Ralf Wildenhues.
39892
39893         dirent: fix test failure
39894         * lib/dirent.in.h (includes): Guarantee ino_t.
39895         Reported by Ralf Wildenhues.
39896
39897 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39898
39899         linkat, renameat: avoid bad free
39900         * lib/at-func2.c (at_func2): Fix typo.
39901         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39902
39903 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39904
39905         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39906         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39907         to avoid failure of symlink test later.
39908
39909 2010-01-06  Eric Blake  <ebb9@byu.net>
39910
39911         stdio, unistd: guarantee ssize_t
39912         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39913         2008 are exposed when needed.
39914         * lib/stdio.in.h (includes): Likewise.
39915         Reported by Ralf Wildenhues.
39916
39917 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39918
39919         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39920         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39921         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39922
39923 2010-01-06  Jim Meyering  <meyering@redhat.com>
39924
39925         readtokens: this module *does* require xalloc.h
39926         It uses only functions that were omitted by the old syntax-check rule.
39927         * lib/readtokens.c: Include "xalloc.h" once again.
39928         * modules/readtokens (Depends-on): Add xalloc.
39929         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39930
39931 2010-01-05  Eric Blake  <ebb9@byu.net>
39932
39933         maint: support 'make announcement' from a VPATH build
39934         * top/maint.mk (announcement): Look for correct NEWS file.
39935
39936 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39937
39938         utimens (fdutimens): ignore a negative FD, per contract
39939         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39940         when we have a valid file descriptor.  Otherwise, using a brand
39941         new glibc (with just-patched futimens that now fails with EBADF)
39942         would cause this function to fail with ENOSYS.
39943         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39944         See also http://bugzilla.redhat.com/552320.
39945
39946 2010-01-05  Eric Blake  <ebb9@byu.net>
39947
39948         strcase: document what it provides
39949         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39950         gnulib module.
39951         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39952         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39953
39954 2010-01-05  Jim Meyering  <meyering@redhat.com>
39955
39956         maint: remove useless inclusions of "xalloc.h"
39957         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39958         * lib/readtokens.c: Likewise.
39959         * lib/same.c: Likewise.
39960         * modules/getloadavg (Depends-on): Remove xalloc.
39961         * modules/readtokens: Likewise.
39962         * modules/same: Likewise.
39963
39964         maint.mk: include 4 more function names in alloca.h-checking regexp
39965         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39966         regexp.  Before, we would give a false-positive (saying alloca.h
39967         is included unnecessarily) when the only uses involved omitted symbols.
39968
39969         xalloc.h: use consistent formatting
39970         * lib/xalloc.h: Move declarations to start in the first column.
39971
39972 2010-01-05  Eric Blake  <ebb9@byu.net>
39973
39974         mkdir: avoid xalloc
39975         * lib/mkdir.c (includes): Drop unused header.
39976         Reported by John W. Eaton.
39977
39978 2010-01-04  Jim Meyering  <meyering@redhat.com>
39979
39980         nl_langinfo: avoid configure-time syntax error
39981         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39982         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39983         the empty string.  Don't let that provoke a shell syntax error.
39984
39985         regcomp, regexec, fnmatch: avoid array bounds read error
39986         * lib/regcomp.c (build_equiv_class): From glibc:
39987         Use only the low 24 bits of a findidx return value as an index
39988         into the weights array.  Patch by Ulrich Drepper:
39989         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39990         * lib/regexec.c (check_node_accept_bytes): Likewise.
39991         * lib/fnmatch_loop.c (FCT): Likewise.
39992
39993         regcomp: skip collseq lookup when there are no rules
39994         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39995         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39996
39997         regcomp: recognize ill-formed { } expressions
39998         * lib/regcomp.c (parse_dup_op): From glibc:
39999         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40000
40001         regcomp: fix typo in comment
40002         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40003         s/satisfy/satisfies/.
40004
40005         regcomp: sync from glibc: remove dead store
40006         * lib/regcomp.c (duplicate_node_closure): Remove useless
40007         search_duplicated_node call and dead store.
40008
40009         regcomp: sync from glibc; always use nl_langinfo
40010         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40011         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40012         * modules/regex (Depends-on): Add nl_langinfo.
40013
40014 2010-01-04  Eric Blake  <ebb9@byu.net>
40015
40016         fdopendir: fix configure test
40017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40018
40019 2010-01-01  Bruno Haible  <bruno@clisp.org>
40020
40021         wchar: Remove unused configure check.
40022         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40023
40024 2010-01-01  Eric Blake  <ebb9@byu.net>
40025
40026         headers: make check of system header explicit
40027         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40028         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40029         ourselves.
40030         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40031         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40032         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40034         internals.
40035         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40036         missing.
40037         Suggested by Bruno Haible.
40038
40039 2010-01-01  Jim Meyering  <meyering@redhat.com>
40040
40041         ChangeLog: tweak to eliminate unnecessary copyright line
40042         * ChangeLog: Remove a copyright line that was mistakenly updated
40043         by today's update-copyright run.  Reported by Eric Blake.
40044
40045         test-update-copyright: don't let envvar setting cause test failure
40046         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40047
40048 2010-01-01  Bruno Haible  <bruno@clisp.org>
40049
40050         localename: Avoid gcc warning.
40051         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40052         function if it is not used.
40053
40054 2010-01-01  Jim Meyering  <meyering@redhat.com>
40055
40056         update nearly all FSF copyright year lists to include 2010
40057         Use the same procedure as for 2009, outlined in
40058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40059
40060         version-etc: set COPYRIGHT_YEAR to 2010
40061         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40062
40063 2009-12-31  Eric Blake  <ebb9@byu.net>
40064
40065         doc: correct availability of cygwin 1.5.x getopt
40066         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40067         variables.
40068         * doc/posix-functions/opterr.texi (opterr): Likewise.
40069         * doc/posix-functions/optind.texi (optind): Likewise.
40070         * doc/posix-functions/optopt.texi (optopt): Likewise.
40071         * doc/posix-functions/tzname.texi (tzname): Likewise.
40072
40073         openat: update maintainer
40074         * modules/openat (Maintainer): Add myself.
40075
40076         utimens: avoid shadowing warning
40077         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40078         buffers into one, to avoid shadowing, as well as avoiding a
40079         redundant stat.
40080         Reported by Jim Meyering.
40081
40082         test-dup2: avoid compiler warning
40083         * tests/test-dup2.c (is_inheritable): Only define if used.
40084
40085 2010-01-01  Bruno Haible  <bruno@clisp.org>
40086
40087         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40088         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40089         defined, use wctomb instead of wcrtomb.
40090
40091 2010-01-01  Bruno Haible  <bruno@clisp.org>
40092
40093         iconv: Reject native Solaris iconv.
40094         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40095         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40096
40097 2009-12-31  Bruno Haible  <bruno@clisp.org>
40098
40099         * tests/test-signal.c (main): Remove test of 'SIG'.
40100
40101 2009-12-31  Bruno Haible  <bruno@clisp.org>
40102
40103         spawn: Fix incomplete fix.
40104         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40105         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40106         warnings for GNULIB_POSIXCHECK again.
40107         Reported by Eric Blake.
40108
40109 2009-12-31  Bruno Haible  <bruno@clisp.org>
40110
40111         Avoid namespace pollution on glibc systems.
40112         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40113         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40114         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40115         glibc systems.
40116
40117 2009-12-31  Bruno Haible  <bruno@clisp.org>
40118
40119         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40120         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40121         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40122         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40123         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40124         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40125         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40126
40127 2009-12-31  Bruno Haible  <bruno@clisp.org>
40128
40129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40130         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40131         afterwards.
40132
40133 2009-12-31  Bruno Haible  <bruno@clisp.org>
40134
40135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40136         SYS_UTSNAME_H.
40137
40138 2009-12-31  Bruno Haible  <bruno@clisp.org>
40139
40140         spawn: Fix misapplied patch.
40141         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40142         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40143         warnings for GNULIB_POSIXCHECK.
40144
40145 2009-12-31  Bruno Haible  <bruno@clisp.org>
40146
40147         times: Update after sys_times changed.
40148         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40149         * modules/times (Files): Add it.
40150         (configure.ac): Invoke gl_FUNC_TIMES.
40151
40152 2009-12-31  Bruno Haible  <bruno@clisp.org>
40153
40154         Use AC_C_INLINE where necessary.
40155         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40156         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40158         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40159         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40160         * m4/mbiter.m4 (gl_MBITER): Likewise.
40161         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40162         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40163         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40164         * modules/u64 (configure.ac): Likewise.
40165
40166 2009-12-31  Bruno Haible  <bruno@clisp.org>
40167
40168         Use AC_C_INLINE instead of module 'inline' where possible.
40169         * modules/inline (Description): Clarify purpose.
40170         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40171         * modules/count-one-bits (Depends-on): Remove inline.
40172         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40173         * modules/openat (Depends-on): Remove inline.
40174         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40175         instead of depending on module 'inline'.
40176         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40177         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40178         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40179         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40180         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40181         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40182         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40183         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40184         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40185         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40186         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40187         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40188         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40189         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40190         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40191         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40192         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40193         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40194         Likewise.
40195         * modules/unictype/property-ascii-hex-digit (Depends-on,
40196         configure.ac): Likewise.
40197         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40198         configure.ac): Likewise.
40199         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40200         configure.ac): Likewise.
40201         * modules/unictype/property-bidi-block-separator (Depends-on,
40202         configure.ac): Likewise.
40203         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40204         configure.ac): Likewise.
40205         * modules/unictype/property-bidi-common-separator (Depends-on,
40206         configure.ac): Likewise.
40207         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40208         Likewise.
40209         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40210         configure.ac): Likewise.
40211         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40212         configure.ac): Likewise.
40213         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40214         configure.ac): Likewise.
40215         * modules/unictype/property-bidi-european-digit (Depends-on,
40216         configure.ac): Likewise.
40217         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40218         configure.ac): Likewise.
40219         * modules/unictype/property-bidi-left-to-right (Depends-on,
40220         configure.ac): Likewise.
40221         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40222         configure.ac): Likewise.
40223         * modules/unictype/property-bidi-other-neutral (Depends-on,
40224         configure.ac): Likewise.
40225         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40226         Likewise.
40227         * modules/unictype/property-bidi-segment-separator (Depends-on,
40228         configure.ac): Likewise.
40229         * modules/unictype/property-bidi-whitespace (Depends-on,
40230         configure.ac): Likewise.
40231         * modules/unictype/property-combining (Depends-on, configure.ac):
40232         Likewise.
40233         * modules/unictype/property-composite (Depends-on, configure.ac):
40234         Likewise.
40235         * modules/unictype/property-currency-symbol (Depends-on,
40236         configure.ac): Likewise.
40237         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40238         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40239         Likewise.
40240         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40241         configure.ac): Likewise.
40242         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40243         Likewise.
40244         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40245         Likewise.
40246         * modules/unictype/property-extender (Depends-on, configure.ac):
40247         Likewise.
40248         * modules/unictype/property-format-control (Depends-on, configure.ac):
40249         Likewise.
40250         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40251         Likewise.
40252         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40253         Likewise.
40254         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40255         Likewise.
40256         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40257         Likewise.
40258         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40259         Likewise.
40260         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40261         Likewise.
40262         * modules/unictype/property-id-start (Depends-on, configure.ac):
40263         Likewise.
40264         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40265         Likewise.
40266         * modules/unictype/property-ids-binary-operator (Depends-on,
40267         configure.ac): Likewise.
40268         * modules/unictype/property-ids-trinary-operator (Depends-on,
40269         configure.ac): Likewise.
40270         * modules/unictype/property-ignorable-control (Depends-on,
40271         configure.ac): Likewise.
40272         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40273         Likewise.
40274         * modules/unictype/property-join-control (Depends-on, configure.ac):
40275         Likewise.
40276         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40277         Likewise.
40278         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40279         Likewise.
40280         * modules/unictype/property-logical-order-exception (Depends-on,
40281         configure.ac): Likewise.
40282         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40283         Likewise.
40284         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40285         * modules/unictype/property-non-break (Depends-on, configure.ac):
40286         Likewise.
40287         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40288         Likewise.
40289         * modules/unictype/property-numeric (Depends-on, configure.ac):
40290         Likewise.
40291         * modules/unictype/property-other-alphabetic (Depends-on,
40292         configure.ac): Likewise.
40293         * modules/unictype/property-other-default-ignorable-code-point
40294         (Depends-on, configure.ac): Likewise.
40295         * modules/unictype/property-other-grapheme-extend (Depends-on,
40296         configure.ac): Likewise.
40297         * modules/unictype/property-other-id-continue (Depends-on,
40298         configure.ac): Likewise.
40299         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40300         Likewise.
40301         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40302         Likewise.
40303         * modules/unictype/property-other-math (Depends-on, configure.ac):
40304         Likewise.
40305         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40306         Likewise.
40307         * modules/unictype/property-paired-punctuation (Depends-on,
40308         configure.ac): Likewise.
40309         * modules/unictype/property-paragraph-separator (Depends-on,
40310         configure.ac): Likewise.
40311         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40312         Likewise.
40313         * modules/unictype/property-pattern-white-space (Depends-on,
40314         configure.ac): Likewise.
40315         * modules/unictype/property-private-use (Depends-on, configure.ac):
40316         Likewise.
40317         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40318         Likewise.
40319         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40320         Likewise.
40321         * modules/unictype/property-radical (Depends-on, configure.ac):
40322         Likewise.
40323         * modules/unictype/property-sentence-terminal (Depends-on,
40324         configure.ac): Likewise.
40325         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40326         Likewise.
40327         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40328         * modules/unictype/property-terminal-punctuation (Depends-on,
40329         configure.ac): Likewise.
40330         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40331         Likewise.
40332         * modules/unictype/property-unassigned-code-value (Depends-on,
40333         configure.ac): Likewise.
40334         * modules/unictype/property-unified-ideograph (Depends-on,
40335         configure.ac): Likewise.
40336         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40337         Likewise.
40338         * modules/unictype/property-variation-selector (Depends-on,
40339         configure.ac): Likewise.
40340         * modules/unictype/property-white-space (Depends-on, configure.ac):
40341         Likewise.
40342         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40343         Likewise.
40344         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40345         Likewise.
40346         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40347         Likewise.
40348         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40349         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40350         Likewise.
40351
40352 2009-12-31  Bruno Haible  <bruno@clisp.org>
40353
40354         Remove unnecessary AC_C_INLINE invocation.
40355         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40356         since 2009-08-21.
40357
40358 2009-12-31  Jim Meyering  <meyering@redhat.com>
40359
40360         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40361         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40362         With this change, we can all remove the gpg_key_ID = ... definition
40363         from our respective cfg.mk files.
40364
40365         maint.mk: create announcement template in ~/, not in /tmp
40366         * top/maint.mk (emit_upload_commands): Adjust.
40367         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40368         Remove temporary file, .ci-msg.
40369
40370 2009-12-31  Eric Blake  <ebb9@byu.net>
40371
40372         link-warning: always build headers with link warnings
40373         * modules/arpa_inet (Makefile.am): Always build replacement
40374         header.
40375         * modules/ctype (Makefile.am): Likewise.
40376         * modules/dirent (Makefile.am): Likewise.
40377         * modules/inttypes (Makefile.am): Likewise.
40378         * modules/langinfo (Makefile.am): Likewise.
40379         * modules/locale (Makefile.am): Likewise.
40380         * modules/spawn (Makefile.am): Likewise.
40381         * modules/sys_file (Makefile.am): Likewise.
40382         * modules/sys_ioctl (Makefile.am): Likewise.
40383         * modules/sys_select (Makefile.am): Likewise.
40384         * modules/sys_socket (Makefile.am): Likewise.
40385         * modules/sys_times (Makefile.am): Likewise.
40386         * modules/sys_utsname (Makefile.am): Likewise.
40387         * modules/sys_wait (Makefile.am): Likewise.
40388         * modules/wchar (Makefile.am): Likewise.
40389         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40390         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40391         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40392         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40393         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40394         Likewise.
40395         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40396         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40397         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40398         Likewise.
40399         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40400         Likewise.
40401         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40403         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40405         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40407         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40408         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40409         (gl_WCHAR_H_DEFAULTS): Likewise.
40410
40411 2009-12-31  Eric Blake  <ebb9@byu.net>
40412
40413         signal, spawn: use link warnings
40414         * lib/signal.in.h (sigset_t): Make unconditional.
40415         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40416         (sigpending, sigprocmask, sigaction): Add link warnings.
40417         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40418         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40419         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40420         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40421         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40422         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40423         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40424         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40425         (posix_spawn_file_actions_destroy)
40426         (posix_spawn_file_actions_addopen)
40427         (posix_spawn_file_actions_addclose)
40428         (posix_spawn_file_actions_adddup2): Likewise.
40429         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40430         * tests/test-signal.c (main): Enhance test.
40431
40432         spawn: improve wrapper support
40433         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40434         (gl_SPAWN_H_DEFAULTS): New defaults.
40435         * modules/spawn (Makefile.am): Substitute them.
40436         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40437         Only declare if missing or broken.
40438
40439         sys_times, sys_utsname: use include_next
40440         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40441         header.
40442         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40444         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40445         * modules/sys_times (Depends-on): Add include_next.
40446         (Makefile.am): Substitute additional values.
40447         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40448         * lib/sys_times.in.h (includes): Include native header, if
40449         available.
40450         * lib/sys_utsname.in.h (includes): Likewise.
40451         * tests/test-sys_times.c (main): Enhance test.
40452
40453         fdutimensat: revert prior patch
40454         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40455         utimens.h.
40456         Reported by Bruno Haible.
40457
40458 2009-12-30  Eric Blake  <ebb9@byu.net>
40459
40460         sys_wait: drop link-warning dependency
40461         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40462         link-warning efforts.
40463         * lib/sys_wait.in.h: Likewise.
40464
40465         fdutimensat: remove bogus dependency
40466         * modules/fdutimensat (Depends-on): Drop inline.
40467
40468         unistd: fix typo
40469         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40470
40471 2009-12-30  Bruno Haible  <bruno@clisp.org>
40472
40473         Fix compilation error with Solaris cc.
40474         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40475         * lib/unicase/u16-is-invariant.c: Likewise.
40476         * lib/unicase/u32-is-invariant.c: Likewise.
40477         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40478
40479 2009-12-30  Bruno Haible  <bruno@clisp.org>
40480
40481         Fix test crash.
40482         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40483         locales.
40484         Reported by Simon Josefsson <simon@josefsson.org>.
40485
40486 2009-12-30  Bruno Haible  <bruno@clisp.org>
40487
40488         Fix compilation error on most platforms.
40489         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40490         Reported by Simon Josefsson <simon@josefsson.org>
40491         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40492
40493 2009-12-30  Eric Blake  <ebb9@byu.net>
40494
40495         futimens, utimensat: work around ntfs-3g bug
40496         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40497         a ctime bug is present, and expand workaround to cover ntfs-3g.
40498         * lib/utimens.c (fdutimens, lutimens): Likewise.
40499         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40500         (validate_timespec): Adjust return value.
40501         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40502         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40503         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40504
40505 2009-12-29  Eric Blake  <ebb9@byu.net>
40506
40507         link-warning: make usage consistent
40508         * modules/ctype (Depends-on): Add link-warning.
40509         (Makefile.am): Update rules accordingly.
40510         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40511         * modules/locale (Depends-on, Makefile.am): Likewise.
40512         * modules/sys_file (Makefile.am): Likewise.
40513         * modules/getopt-posix (Makefile.am): Delete unused link warning
40514         efforts.
40515         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40516         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40517         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40518         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40519
40520         stdio: remove unused variables
40521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40523         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40524
40525         tests: test more substitute headers
40526         * modules/ctype-tests: New file.
40527         * modules/dirent-tests: Likewise.
40528         * modules/spawn-tests: Likewise.
40529         * modules/sys_file-tests: Likewise.
40530         * modules/sys_ioctl-tests: Likewise.
40531         * modules/sys_wait-tests: Likewise.
40532         * tests/test-ctype.c: Likewise.
40533         * tests/test-dirent.c: Likewise.
40534         * tests/test-spawn.c: Likewise.
40535         * tests/test-sys_file.c: Likewise.
40536         * tests/test-sys_ioctl.c: Likewise.
40537         * tests/test-sys_wait.c: Likewise.
40538         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40539         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40540         whether or not flock is in use.
40541
40542         tests: remove License section from module
40543         * modules/arpa_inet-tests: Remove unneeded section.
40544         * modules/byteswap-tests: Likewise.
40545         * modules/ceilf-tests: Likewise.
40546         * modules/ceill-tests: Likewise.
40547         * modules/crypto/des-tests: Likewise.
40548         * modules/crypto/gc-arcfour-tests: Likewise.
40549         * modules/crypto/gc-arctwo-tests: Likewise.
40550         * modules/crypto/gc-des-tests: Likewise.
40551         * modules/crypto/gc-hmac-md5-tests: Likewise.
40552         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40553         * modules/crypto/gc-md2-tests: Likewise.
40554         * modules/crypto/gc-md4-tests: Likewise.
40555         * modules/crypto/gc-md5-tests: Likewise.
40556         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40557         * modules/crypto/gc-rijndael-tests: Likewise.
40558         * modules/crypto/gc-sha1-tests: Likewise.
40559         * modules/crypto/gc-tests: Likewise.
40560         * modules/crypto/md2-tests: Likewise.
40561         * modules/crypto/md4-tests: Likewise.
40562         * modules/fcntl-h-tests: Likewise.
40563         * modules/floorf-tests: Likewise.
40564         * modules/floorl-tests: Likewise.
40565         * modules/frexp-nolibm-tests: Likewise.
40566         * modules/frexp-tests: Likewise.
40567         * modules/frexpl-nolibm-tests: Likewise.
40568         * modules/frexpl-tests: Likewise.
40569         * modules/getaddrinfo-tests: Likewise.
40570         * modules/inttypes-tests: Likewise.
40571         * modules/isfinite-tests: Likewise.
40572         * modules/isinf-tests: Likewise.
40573         * modules/ldexpl-tests: Likewise.
40574         * modules/locale-tests: Likewise.
40575         * modules/math-tests: Likewise.
40576         * modules/netdb-tests: Likewise.
40577         * modules/netinet_in-tests: Likewise.
40578         * modules/printf-frexp-tests: Likewise.
40579         * modules/printf-frexpl-tests: Likewise.
40580         * modules/priv-set-tests: Likewise.
40581         * modules/random_r-tests: Likewise.
40582         * modules/round-tests: Likewise.
40583         * modules/roundf-tests: Likewise.
40584         * modules/roundl-tests: Likewise.
40585         * modules/search-tests: Likewise.
40586         * modules/select-tests: Likewise.
40587         * modules/signal-tests: Likewise.
40588         * modules/stdbool-tests: Likewise.
40589         * modules/stddef-tests: Likewise.
40590         * modules/stdint-tests: Likewise.
40591         * modules/stdio-tests: Likewise.
40592         * modules/stdlib-tests: Likewise.
40593         * modules/string-tests: Likewise.
40594         * modules/strings-tests: Likewise.
40595         * modules/sys_select-tests: Likewise.
40596         * modules/sys_socket-tests: Likewise.
40597         * modules/sys_stat-tests: Likewise.
40598         * modules/sys_time-tests: Likewise.
40599         * modules/sys_utsname-tests: Likewise.
40600         * modules/sysexits-tests: Likewise.
40601         * modules/time-tests: Likewise.
40602         * modules/trunc-tests: Likewise.
40603         * modules/truncf-tests: Likewise.
40604         * modules/truncl-tests: Likewise.
40605         * modules/tsearch-tests: Likewise.
40606         * modules/unistd-tests: Likewise.
40607         * modules/wchar-tests: Likewise.
40608         * modules/wctype-tests: Likewise.
40609
40610         tests: fix license on several tests
40611         * tests/test-des.c: Update to GPLv3+.
40612         * tests/test-flock.c: Likewise.
40613         * tests/test-fsync.c: Likewise.
40614         * tests/test-futimens.h: Likewise.
40615         * tests/test-gc-arcfour.c: Likewise.
40616         * tests/test-gc-arctwo.c: Likewise.
40617         * tests/test-gc-des.c: Likewise.
40618         * tests/test-gc-hmac-md5.c: Likewise.
40619         * tests/test-gc-hmac-sha1.c: Likewise.
40620         * tests/test-gc-md2.c: Likewise.
40621         * tests/test-gc-md4.c: Likewise.
40622         * tests/test-gc-md5.c: Likewise.
40623         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40624         * tests/test-gc-rijndael.c: Likewise.
40625         * tests/test-gc-sha1.c: Likewise.
40626         * tests/test-gc.c: Likewise.
40627         * tests/test-getcwd.c: Likewise.
40628         * tests/test-link.c: Likewise.
40629         * tests/test-link.h: Likewise.
40630         * tests/test-lutimens.h: Likewise.
40631         * tests/test-md2.c: Likewise.
40632         * tests/test-md4.c: Likewise.
40633         * tests/test-mkdir.h: Likewise.
40634         * tests/test-rename.c: Likewise.
40635         * tests/test-rename.h: Likewise.
40636         * tests/test-safe-alloc.c: Likewise.
40637         * tests/test-utimens-common.h: Likewise.
40638         * tests/test-utimens.h: Likewise.
40639
40640         maint: sync license texts
40641         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40642         * doc/gpl-3.0.texi: Revert copyright year update.
40643         * doc/lgpl-3.0.texi: Likewise.
40644
40645 2009-12-29  Jim Meyering  <meyering@redhat.com>
40646
40647         update nearly all FSF copyright year lists to include 2009
40648         The files named by the following are exempted:
40649             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40650               test -f "$dst" && { echo "$dst"; continue; }
40651               test -d "$dst" || continue
40652               echo "$dst"/$(basename "$src")
40653             done > exempt
40654             git ls-files tests/unictype >> exempt
40655         In the remaining files, convert to all-interval notation if
40656         - there is already at least one year interval like 2000-2003
40657         - the file is maintained by me
40658         - the file is in lib/uni*/, where that style already prevails
40659         Otherwise, use update-copyright's default.
40660
40661 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40662         and Eric Blake  <ebb9@byu.net>
40663
40664         tests: don't require debug system() to pass
40665         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40666         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40667         * tests/test-unlink.h (test_unlink_func): Likewise.
40668         * tests/test-fstatat.c (main): ...into callers.
40669         * tests/test-lstat.c (main): Likewise.
40670         * tests/test-rmdir.c (main): Likewise.
40671         * tests/test-unlink.c (main): Likewise.
40672         * tests/test-unlinkat.c (main): Likewise.
40673         * tests/test-areadlink-with-size.c (main): Don't require a
40674         debug-only system call to pass, aiding cross-testing to mingw.
40675         * tests/test-areadlink.c (main): Likewise.
40676         * tests/test-areadlinkat-with-size.c (main): Likewise.
40677         * tests/test-areadlinkat.c (main): Likewise.
40678         * tests/test-canonicalize-lgpl.c (main): Likewise.
40679         * tests/test-canonicalize.c (main): Likewise.
40680         * tests/test-chown.c (main): Likewise.
40681         * tests/test-fchownat.c (main): Likewise.
40682         * tests/test-lchown.c (main): Likewise.
40683         * tests/test-fdutimensat.c (main): Likewise.
40684         * tests/test-futimens.c (main): Likewise.
40685         * tests/test-link.c (main): Likewise.
40686         * tests/test-linkat.c (main): Likewise.
40687         * tests/test-mkdir.c (main): Likewise.
40688         * tests/test-mkdirat.c (main): Likewise.
40689         * tests/test-mkfifo.c (main): Likewise.
40690         * tests/test-mkfifoat.c (main): Likewise.
40691         * tests/test-mknod.c (main): Likewise.
40692         * tests/test-readlink.c (main): Likewise.
40693         * tests/test-remove.c (main): Likewise.
40694         * tests/test-rename.c (main): Likewise.
40695         * tests/test-renameat.c (main): Likewise.
40696         * tests/test-symlink.c (main): Likewise.
40697         * tests/test-symlinkat.c (main): Likewise.
40698         * tests/test-utimens.c (main): Likewise.
40699         * tests/test-utimensat.c (main): Likewise.
40700
40701 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40702
40703         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40704         on $(UNUSED_PARAMETER_H) to avoid build failure.
40705
40706 2009-12-28  Jim Meyering  <meyering@redhat.com>
40707
40708         update-copyright: you may specify a max. line length other than 72
40709         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40710
40711         maint: use consistent FSF copyright line syntax
40712         * lib/posixtm.c: Add missing comma in FSF copyright line.
40713         * lib/posixtm.h: Likewise.
40714         * lib/getugroups.c: Add missing ", Inc.".
40715
40716         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40717         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40718         FSF copyright line.  Remove trailing blanks.
40719
40720 2009-12-28  Eric Blake  <ebb9@byu.net>
40721
40722         test-dup2: reduce dependencies
40723         * modules/cloexec (Configure.ac): Set witness.
40724         * modules/dup2-tests (Depends-on): Drop cloexec.
40725         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40726         not present.
40727         Suggested by Bruno Haible.
40728
40729 2009-12-26  Bruno Haible  <bruno@clisp.org>
40730
40731         Remove an unneeded dependency.
40732         * modules/fseterr (Depends-on): Remove dup2.
40733
40734 2009-12-26  Eric Blake  <ebb9@byu.net>
40735
40736         tests: use macros.h in more places
40737         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40738         (ASSERT_STREAM): Provide default of stderr.
40739         * tests/test-dirent-safer.c: Include macros.h, using alternate
40740         stream for assertions.
40741         * tests/test-dup-safer.c: Likewise.
40742         * tests/test-freopen-safer.c: Likewise.
40743         * tests/test-getopt.c: Likewise.
40744         * tests/test-openat-safer.c: Likewise.
40745         * tests/test-pipe.c: Likewise.
40746         * tests/test-popen-safer.c: Likewise.
40747         * modules/dirent-safer-tests (Files): Include macros.h.
40748         * modules/unistd-safer-tests (Files): Likewise.
40749         * modules/freopen-safer-tests (Files): Likewise.
40750         * modules/getopt-posix-tests (Files): Likewise.
40751         * modules/openat-safer-tests (Files): Likewise.
40752         * modules/pipe-tests (Files): Likewise.
40753
40754 2009-12-26  Bruno Haible  <bruno@clisp.org>
40755
40756         javacomp: Portability fix.
40757         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40758         that it also works on Solaris.
40759
40760 2009-12-26  Bruno Haible  <bruno@clisp.org>
40761
40762         localename: Fix storage allocation of gl_locale_name_thread's result.
40763         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40764         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40765         all platforms that have 'uselocale'.
40766         (gl_locale_name_thread_unsafe): New function, extracted from
40767         gl_locale_name_thread.
40768         (gl_locale_name_thread): Call struniq on all platforms that have
40769         'uselocale'.
40770         * tests/test-localename.c (test_locale_name_thread): Check that the
40771         resulting strings are permanently allocated.
40772         * modules/localename-tests (Depends-on): Add strdup.
40773
40774 2009-12-26  Bruno Haible  <bruno@clisp.org>
40775
40776         * tests/test-localename.c (categories): Fill in the strings.
40777
40778 2009-12-26  Jim Meyering  <meyering@redhat.com>
40779
40780         isdir: complete the removal of m4/isdir.m4
40781         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40782
40783         isdir: clean up, since at least grep still uses it
40784         * lib/isdir.c: Include "isdir.h".
40785         (S_ISDIR): Remove now-unneeded definition.
40786         * modules/isdir (Files): Add lib/isdir.h.
40787         * lib/isdir.h: New file, with declaration.
40788         * m4/isdir.m4: Remove file -- unneeded.
40789
40790 2009-12-25  Bruno Haible  <bruno@clisp.org>
40791
40792         selinux-h: Make generated .h files standalone.
40793         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40794         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40795         * lib/se-selinux.in.h: Likewise.
40796         * modules/selinux-h (Depends-on): Add unused-parameter.
40797         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40798         selinux/selinux.h and selinux/context.h.
40799         Suggested by Eric Blake.
40800
40801 2009-12-25  Bruno Haible  <bruno@clisp.org>
40802
40803         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40804         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40805         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40806         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40807         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40808
40809 2009-12-24  Bruno Haible  <bruno@clisp.org>
40810
40811         openat: Fix warning.
40812         * lib/openat-proc.c: Include <unistd.h>.
40813
40814 2009-12-24  Bruno Haible  <bruno@clisp.org>
40815
40816         New module 'unused-parameter'.
40817         * build-aux/unused-parameter.h: New file, extracted from earlier
40818         gnulib-common.m4.
40819         * modules/unused-parameter: New file.
40820         * lib/unistr.h: Include unused-parameter.h.
40821         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40822         _GL_UNUSED.
40823         * modules/unistr/base (Depends-on): Add unused-parameter.
40824
40825 2009-12-24  Bruno Haible  <bruno@clisp.org>
40826
40827         Add missing dependencies to 'extensions' module.
40828         * m4/extensions.m4: Add comment.
40829         * modules/accept4 (Depends-on): Add extensions.
40830         * modules/dup3 (Depends-on): Likewise.
40831         * modules/fcntl (Depends-on): Likewise.
40832         * modules/futimens (Depends-on): Likewise.
40833         * modules/mknod (Depends-on): Likewise.
40834         * modules/pipe2 (Depends-on): Likewise.
40835         * modules/stat-time (Depends-on): Likewise.
40836         * modules/strcasestr-simple (Depends-on): Likewise.
40837         * modules/strsignal (Depends-on): Likewise.
40838         * modules/utimensat (Depends-on): Likewise.
40839         * modules/localcharset (Depends-on): Likewise. Needed because of
40840         gl_FCNTL_O_FLAGS.
40841         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40842         AC_TYPE_MBSTATE_T.
40843         * modules/wcsnrtombs (Depends-on): Likewise.
40844         * modules/wcsrtombs (Depends-on): Likewise.
40845
40846 2009-12-24  Bruno Haible  <bruno@clisp.org>
40847
40848         binary-io: Avoid gcc warning due to SET_BINARY.
40849         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40850         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40851
40852 2009-12-24  Bruno Haible  <bruno@clisp.org>
40853
40854         Avoid future namespace pollution on glibc systems.
40855         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40856         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40857         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40858         glibc systems.
40859
40860 2009-12-24  Bruno Haible  <bruno@clisp.org>
40861
40862         Refactor common macros used in tests.
40863         * tests/macros.h: New file.
40864         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40865         and/or <stdlib.h>, if appropriate.
40866         (ASSERT, SIZEOF): Remove macros.
40867         * tests/test-areadlink-with-size.c: Likewise.
40868         * tests/test-areadlinkat.c: Likewise.
40869         * tests/test-areadlinkat-with-size.c: Likewise.
40870         * tests/test-argmatch.c: Likewise.
40871         * tests/test-argv-iter.c: Likewise.
40872         * tests/test-array-mergesort.c: Likewise.
40873         * tests/test-array_list.c: Likewise.
40874         * tests/test-array_oset.c: Likewise.
40875         * tests/test-avltree_list.c: Likewise.
40876         * tests/test-avltree_oset.c: Likewise.
40877         * tests/test-avltreehash_list.c: Likewise.
40878         * tests/test-base64.c: Likewise.
40879         * tests/test-binary-io.c: Likewise.
40880         * tests/test-bitrotate.c: Likewise.
40881         * tests/test-btowc.c: Likewise.
40882         * tests/test-byteswap.c: Likewise.
40883         * tests/test-c-ctype.c: Likewise.
40884         * tests/test-c-stack.c: Likewise.
40885         * tests/test-c-strcasecmp.c: Likewise.
40886         * tests/test-c-strcasestr.c: Likewise.
40887         * tests/test-c-strncasecmp.c: Likewise.
40888         * tests/test-c-strstr.c: Likewise.
40889         * tests/test-canonicalize-lgpl.c: Likewise.
40890         * tests/test-canonicalize.c: Likewise.
40891         * tests/test-carray_list.c: Likewise.
40892         * tests/test-ceilf1.c: Likewise.
40893         * tests/test-ceilf2.c: Likewise.
40894         * tests/test-ceill.c: Likewise.
40895         * tests/test-chown.c: Likewise.
40896         * tests/test-cloexec.c: Likewise.
40897         * tests/test-copy-acl.c: Likewise.
40898         * tests/test-copy-file.c: Likewise.
40899         * tests/test-count-one-bits.c: Likewise.
40900         * tests/test-dprintf-posix.c: Likewise.
40901         * tests/test-dup2.c: Likewise.
40902         * tests/test-dup3.c: Likewise.
40903         * tests/test-duplocale.c: Likewise.
40904         * tests/test-fbufmode.c: Likewise.
40905         * tests/test-fchdir.c: Likewise.
40906         * tests/test-fchownat.c: Likewise.
40907         * tests/test-fcntl-safer.c: Likewise.
40908         * tests/test-fcntl.c: Likewise.
40909         * tests/test-fdopendir.c: Likewise.
40910         * tests/test-fdutimensat.c: Likewise.
40911         * tests/test-fflush2.c: Likewise.
40912         * tests/test-file-has-acl.c: Likewise.
40913         * tests/test-filevercmp.c: Likewise.
40914         * tests/test-flock.c: Likewise.
40915         * tests/test-floorf1.c: Likewise.
40916         * tests/test-floorf2.c: Likewise.
40917         * tests/test-floorl.c: Likewise.
40918         * tests/test-fnmatch.c: Likewise.
40919         * tests/test-fopen.h: Likewise.
40920         * tests/test-fpending.c: Likewise.
40921         * tests/test-fprintf-posix.c: Likewise.
40922         * tests/test-fpurge.c: Likewise.
40923         * tests/test-freadable.c: Likewise.
40924         * tests/test-freadahead.c: Likewise.
40925         * tests/test-freading.c: Likewise.
40926         * tests/test-freadptr.c: Likewise.
40927         * tests/test-freadptr2.c: Likewise.
40928         * tests/test-freadseek.c: Likewise.
40929         * tests/test-freopen.c: Likewise.
40930         * tests/test-frexp.c: Likewise.
40931         * tests/test-frexpl.c: Likewise.
40932         * tests/test-fseek.c: Likewise.
40933         * tests/test-fseeko.c: Likewise.
40934         * tests/test-fstatat.c: Likewise.
40935         * tests/test-fstrcmp.c: Likewise.
40936         * tests/test-fsync.c: Likewise.
40937         * tests/test-ftell.c: Likewise.
40938         * tests/test-ftello.c: Likewise.
40939         * tests/test-func.c: Likewise.
40940         * tests/test-futimens.c: Likewise.
40941         * tests/test-fwritable.c: Likewise.
40942         * tests/test-fwriting.c: Likewise.
40943         * tests/test-getcwd.c: Likewise.
40944         * tests/test-getdate.c: Likewise.
40945         * tests/test-getdelim.c: Likewise.
40946         * tests/test-getdtablesize.c: Likewise.
40947         * tests/test-getgroups.c: Likewise.
40948         * tests/test-getline.c: Likewise.
40949         * tests/test-getndelim2.c: Likewise.
40950         * tests/test-glob.c: Likewise.
40951         * tests/test-hash.c: Likewise.
40952         * tests/test-i-ring.c: Likewise.
40953         * tests/test-iconv-utf.c: Likewise.
40954         * tests/test-iconv.c: Likewise.
40955         * tests/test-idpriv-drop.c: Likewise.
40956         * tests/test-idpriv-droptemp.c: Likewise.
40957         * tests/test-inet_ntop.c: Likewise.
40958         * tests/test-inet_pton.c: Likewise.
40959         * tests/test-isblank.c: Likewise.
40960         * tests/test-isfinite.c: Likewise.
40961         * tests/test-isinf.c: Likewise.
40962         * tests/test-isnan.c: Likewise.
40963         * tests/test-isnand.h: Likewise.
40964         * tests/test-isnanf.h: Likewise.
40965         * tests/test-isnanl.h: Likewise.
40966         * tests/test-lchown.c: Likewise.
40967         * tests/test-ldexpl.c: Likewise.
40968         * tests/test-link.c: Likewise.
40969         * tests/test-linkat.c: Likewise.
40970         * tests/test-linked_list.c: Likewise.
40971         * tests/test-linkedhash_list.c: Likewise.
40972         * tests/test-localename.c: Likewise.
40973         * tests/test-lseek.c: Likewise.
40974         * tests/test-lstat.c: Likewise.
40975         * tests/test-mbmemcasecmp.c: Likewise.
40976         * tests/test-mbmemcasecoll.c: Likewise.
40977         * tests/test-mbrtowc.c: Likewise.
40978         * tests/test-mbscasecmp.c: Likewise.
40979         * tests/test-mbscasestr1.c: Likewise.
40980         * tests/test-mbscasestr2.c: Likewise.
40981         * tests/test-mbscasestr3.c: Likewise.
40982         * tests/test-mbscasestr4.c: Likewise.
40983         * tests/test-mbschr.c: Likewise.
40984         * tests/test-mbscspn.c: Likewise.
40985         * tests/test-mbsinit.c: Likewise.
40986         * tests/test-mbsncasecmp.c: Likewise.
40987         * tests/test-mbsnrtowcs.c: Likewise.
40988         * tests/test-mbspbrk.c: Likewise.
40989         * tests/test-mbspcasecmp.c: Likewise.
40990         * tests/test-mbsrchr.c: Likewise.
40991         * tests/test-mbsrtowcs.c: Likewise.
40992         * tests/test-mbsspn.c: Likewise.
40993         * tests/test-mbsstr1.c: Likewise.
40994         * tests/test-mbsstr2.c: Likewise.
40995         * tests/test-mbsstr3.c: Likewise.
40996         * tests/test-memchr.c: Likewise.
40997         * tests/test-memchr2.c: Likewise.
40998         * tests/test-memcmp.c: Likewise.
40999         * tests/test-memmem.c: Likewise.
41000         * tests/test-memrchr.c: Likewise.
41001         * tests/test-mkdir.c: Likewise.
41002         * tests/test-mkdirat.c: Likewise.
41003         * tests/test-mkfifo.c: Likewise.
41004         * tests/test-mkfifoat.c: Likewise.
41005         * tests/test-mknod.c: Likewise.
41006         * tests/test-nanosleep.c: Likewise.
41007         * tests/test-nl_langinfo.c: Likewise.
41008         * tests/test-obstack-printf.c: Likewise.
41009         * tests/test-open.c: Likewise.
41010         * tests/test-openat.c: Likewise.
41011         * tests/test-pipe-filter-gi1.c: Likewise.
41012         * tests/test-pipe-filter-gi2-main.c: Likewise.
41013         * tests/test-pipe-filter-ii1.c: Likewise.
41014         * tests/test-pipe-filter-ii2-main.c: Likewise.
41015         * tests/test-pipe2.c: Likewise.
41016         * tests/test-popen.h: Likewise.
41017         * tests/test-posixtm.c: Likewise.
41018         * tests/test-pread.c: Likewise.
41019         * tests/test-printf-frexp.c: Likewise.
41020         * tests/test-printf-frexpl.c: Likewise.
41021         * tests/test-printf-posix.c: Likewise.
41022         * tests/test-priv-set.c: Likewise.
41023         * tests/test-quotearg.c: Likewise.
41024         * tests/test-random_r.c: Likewise.
41025         * tests/test-rawmemchr.c: Likewise.
41026         * tests/test-rbtree_list.c: Likewise.
41027         * tests/test-rbtree_oset.c: Likewise.
41028         * tests/test-rbtreehash_list.c: Likewise.
41029         * tests/test-readlink.c: Likewise.
41030         * tests/test-remove.c: Likewise.
41031         * tests/test-rename.c: Likewise.
41032         * tests/test-renameat.c: Likewise.
41033         * tests/test-rmdir.c: Likewise.
41034         * tests/test-round1.c: Likewise.
41035         * tests/test-roundf1.c: Likewise.
41036         * tests/test-roundl.c: Likewise.
41037         * tests/test-safe-alloc.c: Likewise.
41038         * tests/test-sameacls.c: Likewise.
41039         * tests/test-set-mode-acl.c: Likewise.
41040         * tests/test-setenv.c: Likewise.
41041         * tests/test-sigaction.c: Likewise.
41042         * tests/test-signbit.c: Likewise.
41043         * tests/test-sleep.c: Likewise.
41044         * tests/test-snprintf-posix.c: Likewise.
41045         * tests/test-snprintf.c: Likewise.
41046         * tests/test-sprintf-posix.c: Likewise.
41047         * tests/test-stat-time.c: Likewise.
41048         * tests/test-stat.c: Likewise.
41049         * tests/test-strcasestr.c: Likewise.
41050         * tests/test-strchrnul.c: Likewise.
41051         * tests/test-strerror.c: Likewise.
41052         * tests/test-striconv.c: Likewise.
41053         * tests/test-striconveh.c: Likewise.
41054         * tests/test-striconveha.c: Likewise.
41055         * tests/test-strsignal.c: Likewise.
41056         * tests/test-strstr.c: Likewise.
41057         * tests/test-strtod.c: Likewise.
41058         * tests/test-strverscmp.c: Likewise.
41059         * tests/test-symlink.c: Likewise.
41060         * tests/test-symlinkat.c: Likewise.
41061         * tests/test-trunc1.c: Likewise.
41062         * tests/test-trunc2.c: Likewise.
41063         * tests/test-truncf1.c: Likewise.
41064         * tests/test-truncf2.c: Likewise.
41065         * tests/test-truncl.c: Likewise.
41066         * tests/test-uname.c: Likewise.
41067         * tests/test-unlink.c: Likewise.
41068         * tests/test-unlinkat.c: Likewise.
41069         * tests/test-unsetenv.c: Likewise.
41070         * tests/test-usleep.c: Likewise.
41071         * tests/test-utimens.c: Likewise.
41072         * tests/test-utimensat.c: Likewise.
41073         * tests/test-vasnprintf-posix.c: Likewise.
41074         * tests/test-vasnprintf-posix2.c: Likewise.
41075         * tests/test-vasnprintf.c: Likewise.
41076         * tests/test-vasprintf-posix.c: Likewise.
41077         * tests/test-vasprintf.c: Likewise.
41078         * tests/test-vdprintf-posix.c: Likewise.
41079         * tests/test-vfprintf-posix.c: Likewise.
41080         * tests/test-vprintf-posix.c: Likewise.
41081         * tests/test-vsnprintf-posix.c: Likewise.
41082         * tests/test-vsnprintf.c: Likewise.
41083         * tests/test-vsprintf-posix.c: Likewise.
41084         * tests/test-wcrtomb.c: Likewise.
41085         * tests/test-wcsnrtombs.c: Likewise.
41086         * tests/test-wcsrtombs.c: Likewise.
41087         * tests/test-wctype.c: Likewise.
41088         * tests/test-wcwidth.c: Likewise.
41089         * tests/test-xfprintf-posix.c: Likewise.
41090         * tests/test-xmemdup0.c: Likewise.
41091         * tests/test-xprintf-posix.c: Likewise.
41092         * tests/test-xvasprintf.c: Likewise.
41093         * tests/unicase/test-locale-language.c: Likewise.
41094         * tests/unicase/test-mapping-part1.h: Likewise.
41095         * tests/unicase/test-predicate-part1.h: Likewise.
41096         * tests/unicase/test-u8-casecmp.c: Likewise.
41097         * tests/unicase/test-u8-casecoll.c: Likewise.
41098         * tests/unicase/test-u8-casefold.c: Likewise.
41099         * tests/unicase/test-u8-is-cased.c: Likewise.
41100         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41101         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41102         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41103         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41104         * tests/unicase/test-u8-tolower.c: Likewise.
41105         * tests/unicase/test-u8-totitle.c: Likewise.
41106         * tests/unicase/test-u8-toupper.c: Likewise.
41107         * tests/unicase/test-u16-casecmp.c: Likewise.
41108         * tests/unicase/test-u16-casecoll.c: Likewise.
41109         * tests/unicase/test-u16-casefold.c: Likewise.
41110         * tests/unicase/test-u16-is-cased.c: Likewise.
41111         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41112         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41113         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41114         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41115         * tests/unicase/test-u16-tolower.c: Likewise.
41116         * tests/unicase/test-u16-totitle.c: Likewise.
41117         * tests/unicase/test-u16-toupper.c: Likewise.
41118         * tests/unicase/test-u32-casecmp.c: Likewise.
41119         * tests/unicase/test-u32-casecoll.c: Likewise.
41120         * tests/unicase/test-u32-casefold.c: Likewise.
41121         * tests/unicase/test-u32-is-cased.c: Likewise.
41122         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41123         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41124         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41125         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41126         * tests/unicase/test-u32-tolower.c: Likewise.
41127         * tests/unicase/test-u32-totitle.c: Likewise.
41128         * tests/unicase/test-u32-toupper.c: Likewise.
41129         * tests/unicase/test-ulc-casecmp.c: Likewise.
41130         * tests/unicase/test-ulc-casecoll.c: Likewise.
41131         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41132         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41133         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41134         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41135         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41136         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41137         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41138         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41139         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41140         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41141         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41142         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41143         * tests/unictype/test-bidi_byname.c: Likewise.
41144         * tests/unictype/test-bidi_name.c: Likewise.
41145         * tests/unictype/test-bidi_of.c: Likewise.
41146         * tests/unictype/test-bidi_test.c: Likewise.
41147         * tests/unictype/test-block_list.c: Likewise.
41148         * tests/unictype/test-block_of.c: Likewise.
41149         * tests/unictype/test-block_test.c: Likewise.
41150         * tests/unictype/test-categ_and.c: Likewise.
41151         * tests/unictype/test-categ_and_not.c: Likewise.
41152         * tests/unictype/test-categ_byname.c: Likewise.
41153         * tests/unictype/test-categ_name.c: Likewise.
41154         * tests/unictype/test-categ_none.c: Likewise.
41155         * tests/unictype/test-categ_of.c: Likewise.
41156         * tests/unictype/test-categ_or.c: Likewise.
41157         * tests/unictype/test-categ_test_withtable.c: Likewise.
41158         * tests/unictype/test-combining.c: Likewise.
41159         * tests/unictype/test-decdigit.c: Likewise.
41160         * tests/unictype/test-digit.c: Likewise.
41161         * tests/unictype/test-mirror.c: Likewise.
41162         * tests/unictype/test-numeric.c: Likewise.
41163         * tests/unictype/test-pr_byname.c: Likewise.
41164         * tests/unictype/test-pr_test.c: Likewise.
41165         * tests/unictype/test-predicate-part1.h: Likewise.
41166         * tests/unictype/test-scripts.c: Likewise.
41167         * tests/unictype/test-sy_c_ident.c: Likewise.
41168         * tests/unictype/test-sy_java_ident.c: Likewise.
41169         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41170         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41171         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41172         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41173         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41174         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41175         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41176         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41177         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41178         * tests/uninorm/test-compat-decomposition.c: Likewise.
41179         * tests/uninorm/test-composition.c: Likewise.
41180         * tests/uninorm/test-decomposing-form.c: Likewise.
41181         * tests/uninorm/test-decomposition.c: Likewise.
41182         * tests/uninorm/test-u8-nfc.c: Likewise.
41183         * tests/uninorm/test-u8-nfd.c: Likewise.
41184         * tests/uninorm/test-u8-nfkc.c: Likewise.
41185         * tests/uninorm/test-u8-nfkd.c: Likewise.
41186         * tests/uninorm/test-u8-normcmp.c: Likewise.
41187         * tests/uninorm/test-u8-normcoll.c: Likewise.
41188         * tests/uninorm/test-u16-nfc.c: Likewise.
41189         * tests/uninorm/test-u16-nfd.c: Likewise.
41190         * tests/uninorm/test-u16-nfkc.c: Likewise.
41191         * tests/uninorm/test-u16-nfkd.c: Likewise.
41192         * tests/uninorm/test-u16-normcmp.c: Likewise.
41193         * tests/uninorm/test-u16-normcoll.c: Likewise.
41194         * tests/uninorm/test-u32-nfc.c: Likewise.
41195         * tests/uninorm/test-u32-nfd.c: Likewise.
41196         * tests/uninorm/test-u32-nfkc.c: Likewise.
41197         * tests/uninorm/test-u32-nfkd.c: Likewise.
41198         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41199         * tests/uninorm/test-u32-normcmp.c: Likewise.
41200         * tests/uninorm/test-u32-normcoll.c: Likewise.
41201         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41202         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41203         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41204         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41205         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41206         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41207         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41208         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41209         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41210         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41211         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41212         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41213         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41214         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41215         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41216         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41217         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41218         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41219         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41220         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41221         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41222         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41223         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41224         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41225         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41226         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41227         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41228         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41229         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41230         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41231         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41232         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41233         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41234         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41235         * tests/uniwidth/test-u8-width.c: Likewise.
41236         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41237         * tests/uniwidth/test-u16-width.c: Likewise.
41238         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41239         * tests/uniwidth/test-u32-width.c: Likewise.
41240         * tests/uniwidth/test-uc_width.c: Likewise.
41241         * tests/uniwidth/test-uc_width2.c: Likewise.
41242         * modules/acl-tests (Files): Add tests/macros.h.
41243         * modules/areadlink-tests (Files): Likewise.
41244         * modules/areadlink-with-size-tests (Files): Likewise.
41245         * modules/areadlinkat-tests (Files): Likewise.
41246         * modules/areadlinkat-with-size-tests (Files): Likewise.
41247         * modules/argmatch-tests (Files): Likewise.
41248         * modules/argv-iter-tests (Files): Likewise.
41249         * modules/array-list-tests (Files): Likewise.
41250         * modules/array-mergesort-tests (Files): Likewise.
41251         * modules/array-oset-tests (Files): Likewise.
41252         * modules/avltree-list-tests (Files): Likewise.
41253         * modules/avltree-oset-tests (Files): Likewise.
41254         * modules/avltreehash-list-tests (Files): Likewise.
41255         * modules/base64-tests (Files): Likewise.
41256         * modules/binary-io-tests (Files): Likewise.
41257         * modules/bitrotate-tests (Files): Likewise.
41258         * modules/btowc-tests (Files): Likewise.
41259         * modules/byteswap-tests (Files): Likewise.
41260         * modules/c-ctype-tests (Files): Likewise.
41261         * modules/c-stack-tests (Files): Likewise.
41262         * modules/c-strcase-tests (Files): Likewise.
41263         * modules/c-strcasestr-tests (Files): Likewise.
41264         * modules/c-strstr-tests (Files): Likewise.
41265         * modules/canonicalize-lgpl-tests (Files): Likewise.
41266         * modules/canonicalize-tests (Files): Likewise.
41267         * modules/carray-list-tests (Files): Likewise.
41268         * modules/ceilf-tests (Files): Likewise.
41269         * modules/ceill-tests (Files): Likewise.
41270         * modules/chown-tests (Files): Likewise.
41271         * modules/cloexec-tests (Files): Likewise.
41272         * modules/copy-file-tests (Files): Likewise.
41273         * modules/count-one-bits-tests (Files): Likewise.
41274         * modules/dprintf-posix-tests (Files): Likewise.
41275         * modules/dup2-tests (Files): Likewise.
41276         * modules/dup3-tests (Files): Likewise.
41277         * modules/duplocale-tests (Files): Likewise.
41278         * modules/fbufmode-tests (Files): Likewise.
41279         * modules/fchdir-tests (Files): Likewise.
41280         * modules/fcntl-safer-tests (Files): Likewise.
41281         * modules/fcntl-tests (Files): Likewise.
41282         * modules/fdopendir-tests (Files): Likewise.
41283         * modules/fdutimensat-tests (Files): Likewise.
41284         * modules/fflush-tests (Files): Likewise.
41285         * modules/filevercmp-tests (Files): Likewise.
41286         * modules/flock-tests (Files): Likewise.
41287         * modules/floorf-tests (Files): Likewise.
41288         * modules/floorl-tests (Files): Likewise.
41289         * modules/fnmatch-tests (Files): Likewise.
41290         * modules/fopen-safer-tests (Files): Likewise.
41291         * modules/fopen-tests (Files): Likewise.
41292         * modules/fpending-tests (Files): Likewise.
41293         * modules/fprintf-posix-tests (Files): Likewise.
41294         * modules/fpurge-tests (Files): Likewise.
41295         * modules/freadable-tests (Files): Likewise.
41296         * modules/freadahead-tests (Files): Likewise.
41297         * modules/freading-tests (Files): Likewise.
41298         * modules/freadptr-tests (Files): Likewise.
41299         * modules/freadseek-tests (Files): Likewise.
41300         * modules/freopen-tests (Files): Likewise.
41301         * modules/frexp-nolibm-tests (Files): Likewise.
41302         * modules/frexp-tests (Files): Likewise.
41303         * modules/frexpl-nolibm-tests (Files): Likewise.
41304         * modules/frexpl-tests (Files): Likewise.
41305         * modules/fseek-tests (Files): Likewise.
41306         * modules/fseeko-tests (Files): Likewise.
41307         * modules/fstrcmp-tests (Files): Likewise.
41308         * modules/fsync-tests (Files): Likewise.
41309         * modules/ftell-tests (Files): Likewise.
41310         * modules/ftello-tests (Files): Likewise.
41311         * modules/func-tests (Files): Likewise.
41312         * modules/futimens-tests (Files): Likewise.
41313         * modules/fwritable-tests (Files): Likewise.
41314         * modules/fwriting-tests (Files): Likewise.
41315         * modules/getcwd-tests (Files): Likewise.
41316         * modules/getdate-tests (Files): Likewise.
41317         * modules/getdelim-tests (Files): Likewise.
41318         * modules/getdtablesize-tests (Files): Likewise.
41319         * modules/getgroups-tests (Files): Likewise.
41320         * modules/getline-tests (Files): Likewise.
41321         * modules/getndelim2-tests (Files): Likewise.
41322         * modules/glob-tests (Files): Likewise.
41323         * modules/hash-tests (Files): Likewise.
41324         * modules/i-ring-tests (Files): Likewise.
41325         * modules/iconv-tests (Files): Likewise.
41326         * modules/iconv_open-utf-tests (Files): Likewise.
41327         * modules/idpriv-drop-tests (Files): Likewise.
41328         * modules/idpriv-droptemp-tests (Files): Likewise.
41329         * modules/inet_ntop-tests (Files): Likewise.
41330         * modules/inet_pton-tests (Files): Likewise.
41331         * modules/isblank-tests (Files): Likewise.
41332         * modules/isfinite-tests (Files): Likewise.
41333         * modules/isinf-tests (Files): Likewise.
41334         * modules/isnan-tests (Files): Likewise.
41335         * modules/isnand-nolibm-tests (Files): Likewise.
41336         * modules/isnand-tests (Files): Likewise.
41337         * modules/isnanf-nolibm-tests (Files): Likewise.
41338         * modules/isnanf-tests (Files): Likewise.
41339         * modules/isnanl-nolibm-tests (Files): Likewise.
41340         * modules/isnanl-tests (Files): Likewise.
41341         * modules/lchown-tests (Files): Likewise.
41342         * modules/ldexpl-tests (Files): Likewise.
41343         * modules/link-tests (Files): Likewise.
41344         * modules/linkat-tests (Files): Likewise.
41345         * modules/linked-list-tests (Files): Likewise.
41346         * modules/linkedhash-list-tests (Files): Likewise.
41347         * modules/localename-tests (Files): Likewise.
41348         * modules/lseek-tests (Files): Likewise.
41349         * modules/lstat-tests (Files): Likewise.
41350         * modules/mbmemcasecmp-tests (Files): Likewise.
41351         * modules/mbmemcasecoll-tests (Files): Likewise.
41352         * modules/mbrtowc-tests (Files): Likewise.
41353         * modules/mbscasecmp-tests (Files): Likewise.
41354         * modules/mbscasestr-tests (Files): Likewise.
41355         * modules/mbschr-tests (Files): Likewise.
41356         * modules/mbscspn-tests (Files): Likewise.
41357         * modules/mbsinit-tests (Files): Likewise.
41358         * modules/mbsncasecmp-tests (Files): Likewise.
41359         * modules/mbsnrtowcs-tests (Files): Likewise.
41360         * modules/mbspbrk-tests (Files): Likewise.
41361         * modules/mbspcasecmp-tests (Files): Likewise.
41362         * modules/mbsrchr-tests (Files): Likewise.
41363         * modules/mbsrtowcs-tests (Files): Likewise.
41364         * modules/mbsspn-tests (Files): Likewise.
41365         * modules/mbsstr-tests (Files): Likewise.
41366         * modules/memchr-tests (Files): Likewise.
41367         * modules/memchr2-tests (Files): Likewise.
41368         * modules/memcmp-tests (Files): Likewise.
41369         * modules/memmem-tests (Files): Likewise.
41370         * modules/memrchr-tests (Files): Likewise.
41371         * modules/mkdir-tests (Files): Likewise.
41372         * modules/mkfifo-tests (Files): Likewise.
41373         * modules/mkfifoat-tests (Files): Likewise.
41374         * modules/mknod-tests (Files): Likewise.
41375         * modules/nanosleep-tests (Files): Likewise.
41376         * modules/nl_langinfo-tests (Files): Likewise.
41377         * modules/obstack-printf-tests (Files): Likewise.
41378         * modules/open-tests (Files): Likewise.
41379         * modules/openat-tests (Files): Likewise.
41380         * modules/pipe-filter-gi-tests (Files): Likewise.
41381         * modules/pipe-filter-ii-tests (Files): Likewise.
41382         * modules/pipe2-tests (Files): Likewise.
41383         * modules/popen-safer-tests (Files): Likewise.
41384         * modules/popen-tests (Files): Likewise.
41385         * modules/posixtm-tests (Files): Likewise.
41386         * modules/pread-tests (Files): Likewise.
41387         * modules/printf-frexp-tests (Files): Likewise.
41388         * modules/printf-frexpl-tests (Files): Likewise.
41389         * modules/printf-posix-tests (Files): Likewise.
41390         * modules/priv-set-tests (Files): Likewise.
41391         * modules/quotearg-tests (Files): Likewise.
41392         * modules/random_r-tests (Files): Likewise.
41393         * modules/rawmemchr-tests (Files): Likewise.
41394         * modules/rbtree-list-tests (Files): Likewise.
41395         * modules/rbtree-oset-tests (Files): Likewise.
41396         * modules/rbtreehash-list-tests (Files): Likewise.
41397         * modules/readlink-tests (Files): Likewise.
41398         * modules/remove-tests (Files): Likewise.
41399         * modules/rename-tests (Files): Likewise.
41400         * modules/renameat-tests (Files): Likewise.
41401         * modules/rmdir-tests (Files): Likewise.
41402         * modules/round-tests (Files): Likewise.
41403         * modules/roundf-tests (Files): Likewise.
41404         * modules/roundl-tests (Files): Likewise.
41405         * modules/safe-alloc-tests (Files): Likewise.
41406         * modules/setenv-tests (Files): Likewise.
41407         * modules/sigaction-tests (Files): Likewise.
41408         * modules/signbit-tests (Files): Likewise.
41409         * modules/sleep-tests (Files): Likewise.
41410         * modules/snprintf-posix-tests (Files): Likewise.
41411         * modules/snprintf-tests (Files): Likewise.
41412         * modules/sprintf-posix-tests (Files): Likewise.
41413         * modules/stat-tests (Files): Likewise.
41414         * modules/stat-time-tests (Files): Likewise.
41415         * modules/strcasestr-tests (Files): Likewise.
41416         * modules/strchrnul-tests (Files): Likewise.
41417         * modules/strerror-tests (Files): Likewise.
41418         * modules/striconv-tests (Files): Likewise.
41419         * modules/striconveh-tests (Files): Likewise.
41420         * modules/striconveha-tests (Files): Likewise.
41421         * modules/strsignal-tests (Files): Likewise.
41422         * modules/strstr-tests (Files): Likewise.
41423         * modules/strtod-tests (Files): Likewise.
41424         * modules/strverscmp-tests (Files): Likewise.
41425         * modules/symlink-tests (Files): Likewise.
41426         * modules/symlinkat-tests (Files): Likewise.
41427         * modules/trunc-tests (Files): Likewise.
41428         * modules/truncf-tests (Files): Likewise.
41429         * modules/truncl-tests (Files): Likewise.
41430         * modules/uname-tests (Files): Likewise.
41431         * modules/unicase/cased-tests (Files): Likewise.
41432         * modules/unicase/ignorable-tests (Files): Likewise.
41433         * modules/unicase/locale-language-tests (Files): Likewise.
41434         * modules/unicase/tolower-tests (Files): Likewise.
41435         * modules/unicase/totitle-tests (Files): Likewise.
41436         * modules/unicase/toupper-tests (Files): Likewise.
41437         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41438         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41439         * modules/unicase/u8-casefold-tests (Files): Likewise.
41440         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41441         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41442         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41443         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41444         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41445         * modules/unicase/u8-tolower-tests (Files): Likewise.
41446         * modules/unicase/u8-totitle-tests (Files): Likewise.
41447         * modules/unicase/u8-toupper-tests (Files): Likewise.
41448         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41449         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41450         * modules/unicase/u16-casefold-tests (Files): Likewise.
41451         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41452         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41453         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41454         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41455         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41456         * modules/unicase/u16-tolower-tests (Files): Likewise.
41457         * modules/unicase/u16-totitle-tests (Files): Likewise.
41458         * modules/unicase/u16-toupper-tests (Files): Likewise.
41459         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41460         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41461         * modules/unicase/u32-casefold-tests (Files): Likewise.
41462         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41463         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41464         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41465         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41466         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41467         * modules/unicase/u32-tolower-tests (Files): Likewise.
41468         * modules/unicase/u32-totitle-tests (Files): Likewise.
41469         * modules/unicase/u32-toupper-tests (Files): Likewise.
41470         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41471         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41472         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41473         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41474         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41475         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41476         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41477         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41478         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41479         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41480         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41481         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41482         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41483         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41484         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41485         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41486         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41487         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41488         * modules/unictype/block-list-tests (Files): Likewise.
41489         * modules/unictype/block-of-tests (Files): Likewise.
41490         * modules/unictype/block-test-tests (Files): Likewise.
41491         * modules/unictype/category-C-tests (Files): Likewise.
41492         * modules/unictype/category-Cc-tests (Files): Likewise.
41493         * modules/unictype/category-Cf-tests (Files): Likewise.
41494         * modules/unictype/category-Cn-tests (Files): Likewise.
41495         * modules/unictype/category-Co-tests (Files): Likewise.
41496         * modules/unictype/category-Cs-tests (Files): Likewise.
41497         * modules/unictype/category-L-tests (Files): Likewise.
41498         * modules/unictype/category-Ll-tests (Files): Likewise.
41499         * modules/unictype/category-Lm-tests (Files): Likewise.
41500         * modules/unictype/category-Lo-tests (Files): Likewise.
41501         * modules/unictype/category-Lt-tests (Files): Likewise.
41502         * modules/unictype/category-Lu-tests (Files): Likewise.
41503         * modules/unictype/category-M-tests (Files): Likewise.
41504         * modules/unictype/category-Mc-tests (Files): Likewise.
41505         * modules/unictype/category-Me-tests (Files): Likewise.
41506         * modules/unictype/category-Mn-tests (Files): Likewise.
41507         * modules/unictype/category-N-tests (Files): Likewise.
41508         * modules/unictype/category-Nd-tests (Files): Likewise.
41509         * modules/unictype/category-Nl-tests (Files): Likewise.
41510         * modules/unictype/category-No-tests (Files): Likewise.
41511         * modules/unictype/category-P-tests (Files): Likewise.
41512         * modules/unictype/category-Pc-tests (Files): Likewise.
41513         * modules/unictype/category-Pd-tests (Files): Likewise.
41514         * modules/unictype/category-Pe-tests (Files): Likewise.
41515         * modules/unictype/category-Pf-tests (Files): Likewise.
41516         * modules/unictype/category-Pi-tests (Files): Likewise.
41517         * modules/unictype/category-Po-tests (Files): Likewise.
41518         * modules/unictype/category-Ps-tests (Files): Likewise.
41519         * modules/unictype/category-S-tests (Files): Likewise.
41520         * modules/unictype/category-Sc-tests (Files): Likewise.
41521         * modules/unictype/category-Sk-tests (Files): Likewise.
41522         * modules/unictype/category-Sm-tests (Files): Likewise.
41523         * modules/unictype/category-So-tests (Files): Likewise.
41524         * modules/unictype/category-Z-tests (Files): Likewise.
41525         * modules/unictype/category-Zl-tests (Files): Likewise.
41526         * modules/unictype/category-Zp-tests (Files): Likewise.
41527         * modules/unictype/category-Zs-tests (Files): Likewise.
41528         * modules/unictype/category-and-not-tests (Files): Likewise.
41529         * modules/unictype/category-and-tests (Files): Likewise.
41530         * modules/unictype/category-byname-tests (Files): Likewise.
41531         * modules/unictype/category-name-tests (Files): Likewise.
41532         * modules/unictype/category-none-tests (Files): Likewise.
41533         * modules/unictype/category-of-tests (Files): Likewise.
41534         * modules/unictype/category-or-tests (Files): Likewise.
41535         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41536         * modules/unictype/combining-class-tests (Files): Likewise.
41537         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41538         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41539         * modules/unictype/ctype-blank-tests (Files): Likewise.
41540         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41541         * modules/unictype/ctype-digit-tests (Files): Likewise.
41542         * modules/unictype/ctype-graph-tests (Files): Likewise.
41543         * modules/unictype/ctype-lower-tests (Files): Likewise.
41544         * modules/unictype/ctype-print-tests (Files): Likewise.
41545         * modules/unictype/ctype-punct-tests (Files): Likewise.
41546         * modules/unictype/ctype-space-tests (Files): Likewise.
41547         * modules/unictype/ctype-upper-tests (Files): Likewise.
41548         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41549         * modules/unictype/decimal-digit-tests (Files): Likewise.
41550         * modules/unictype/digit-tests (Files): Likewise.
41551         * modules/unictype/mirror-tests (Files): Likewise.
41552         * modules/unictype/numeric-tests (Files): Likewise.
41553         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41554         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41555         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41556         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41557         Likewise.
41558         * modules/unictype/property-bidi-block-separator-tests (Files):
41559         Likewise.
41560         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41561         Likewise.
41562         * modules/unictype/property-bidi-common-separator-tests (Files):
41563         Likewise.
41564         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41565         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41566         Likewise.
41567         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41568         Likewise.
41569         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41570         Likewise.
41571         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41572         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41573         Likewise.
41574         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41575         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41576         Likewise.
41577         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41578         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41579         * modules/unictype/property-bidi-segment-separator-tests (Files):
41580         Likewise.
41581         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41582         * modules/unictype/property-byname-tests (Files): Likewise.
41583         * modules/unictype/property-combining-tests (Files): Likewise.
41584         * modules/unictype/property-composite-tests (Files): Likewise.
41585         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41586         * modules/unictype/property-dash-tests (Files): Likewise.
41587         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41588         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41589         Likewise.
41590         * modules/unictype/property-deprecated-tests (Files): Likewise.
41591         * modules/unictype/property-diacritic-tests (Files): Likewise.
41592         * modules/unictype/property-extender-tests (Files): Likewise.
41593         * modules/unictype/property-format-control-tests (Files): Likewise.
41594         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41595         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41596         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41597         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41598         * modules/unictype/property-hyphen-tests (Files): Likewise.
41599         * modules/unictype/property-id-continue-tests (Files): Likewise.
41600         * modules/unictype/property-id-start-tests (Files): Likewise.
41601         * modules/unictype/property-ideographic-tests (Files): Likewise.
41602         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41603         * modules/unictype/property-ids-trinary-operator-tests (Files):
41604         Likewise.
41605         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41606         * modules/unictype/property-iso-control-tests (Files): Likewise.
41607         * modules/unictype/property-join-control-tests (Files): Likewise.
41608         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41609         * modules/unictype/property-line-separator-tests (Files): Likewise.
41610         * modules/unictype/property-logical-order-exception-tests (Files):
41611         Likewise.
41612         * modules/unictype/property-lowercase-tests (Files): Likewise.
41613         * modules/unictype/property-math-tests (Files): Likewise.
41614         * modules/unictype/property-non-break-tests (Files): Likewise.
41615         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41616         * modules/unictype/property-numeric-tests (Files): Likewise.
41617         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41618         * modules/unictype/property-other-default-ignorable-code-point-tests
41619         (Files): Likewise.
41620         * modules/unictype/property-other-grapheme-extend-tests (Files):
41621         Likewise.
41622         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41623         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41624         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41625         * modules/unictype/property-other-math-tests (Files): Likewise.
41626         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41627         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41628         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41629         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41630         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41631         * modules/unictype/property-private-use-tests (Files): Likewise.
41632         * modules/unictype/property-punctuation-tests (Files): Likewise.
41633         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41634         * modules/unictype/property-radical-tests (Files): Likewise.
41635         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41636         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41637         * modules/unictype/property-space-tests (Files): Likewise.
41638         * modules/unictype/property-terminal-punctuation-tests (Files):
41639         Likewise.
41640         * modules/unictype/property-test-tests (Files): Likewise.
41641         * modules/unictype/property-titlecase-tests (Files): Likewise.
41642         * modules/unictype/property-unassigned-code-value-tests (Files):
41643         Likewise.
41644         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41645         * modules/unictype/property-uppercase-tests (Files): Likewise.
41646         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41647         * modules/unictype/property-white-space-tests (Files): Likewise.
41648         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41649         * modules/unictype/property-xid-start-tests (Files): Likewise.
41650         * modules/unictype/property-zero-width-tests (Files): Likewise.
41651         * modules/unictype/scripts-tests (Files): Likewise.
41652         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41653         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41654         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41655         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41656         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41657         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41658         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41659         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41660         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41661         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41662         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41663         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41664         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41665         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41666         * modules/uninorm/composition-tests (Files): Likewise.
41667         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41668         * modules/uninorm/decomposition-tests (Files): Likewise.
41669         * modules/uninorm/filter-tests (Files): Likewise.
41670         * modules/uninorm/nfc-tests (Files): Likewise.
41671         * modules/uninorm/nfd-tests (Files): Likewise.
41672         * modules/uninorm/nfkc-tests (Files): Likewise.
41673         * modules/uninorm/nfkd-tests (Files): Likewise.
41674         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41675         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41676         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41677         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41678         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41679         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41680         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41681         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41682         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41683         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41684         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41685         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41686         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41687         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41688         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41689         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41690         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41691         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41692         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41693         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41694         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41695         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41696         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41697         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41698         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41699         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41700         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41701         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41702         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41703         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41704         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41705         * modules/uniwidth/u8-width-tests (Files): Likewise.
41706         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41707         * modules/uniwidth/u16-width-tests (Files): Likewise.
41708         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41709         * modules/uniwidth/u32-width-tests (Files): Likewise.
41710         * modules/uniwidth/width-tests (Files): Likewise.
41711         * modules/unlink-tests (Files): Likewise.
41712         * modules/unsetenv-tests (Files): Likewise.
41713         * modules/usleep-tests (Files): Likewise.
41714         * modules/utimens-tests (Files): Likewise.
41715         * modules/utimensat-tests (Files): Likewise.
41716         * modules/vasnprintf-posix-tests (Files): Likewise.
41717         * modules/vasnprintf-tests (Files): Likewise.
41718         * modules/vasprintf-posix-tests (Files): Likewise.
41719         * modules/vasprintf-tests (Files): Likewise.
41720         * modules/vdprintf-posix-tests (Files): Likewise.
41721         * modules/vfprintf-posix-tests (Files): Likewise.
41722         * modules/vprintf-posix-tests (Files): Likewise.
41723         * modules/vsnprintf-posix-tests (Files): Likewise.
41724         * modules/vsnprintf-tests (Files): Likewise.
41725         * modules/vsprintf-posix-tests (Files): Likewise.
41726         * modules/wcrtomb-tests (Files): Likewise.
41727         * modules/wcsnrtombs-tests (Files): Likewise.
41728         * modules/wcsrtombs-tests (Files): Likewise.
41729         * modules/wctype-tests (Files): Likewise.
41730         * modules/wcwidth-tests (Files): Likewise.
41731         * modules/xmemdup0-tests (Files): Likewise.
41732         * modules/xprintf-posix-tests (Files): Likewise.
41733         * modules/xvasprintf-tests (Files): Likewise.
41734
41735 2009-12-24  Eric Blake  <ebb9@byu.net>
41736
41737         test-nanosleep: fix typo
41738         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41739         patch.
41740         Reported by Bruno Haible.
41741
41742 2009-12-24  Bruno Haible  <bruno@clisp.org>
41743
41744         Reduce namespace pollution on glibc systems.
41745         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41746         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41747         systems.
41748         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41749         <getopt.h> on glibc systems.
41750         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41751         systems.
41752         * lib/fcntl.c: Include <unistd.h> here instead.
41753
41754 2009-12-24  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41757
41758 2009-12-24  Eric Blake  <ebb9@byu.net>
41759
41760         tests: add signature checks
41761         * tests/signature.h (SIGNATURE_CHECK): New file.
41762         * modules/atexit-tests (Files): Use it.
41763         * modules/btowc-tests (Files): Likewise.
41764         * modules/canonicalize-lgpl-tests (Files): Likewise.
41765         * modules/ceilf-tests (Files): Likewise.
41766         * modules/ceill-tests (Files): Likewise.
41767         * modules/chown-tests (Files): Likewise.
41768         * modules/dprintf-posix-tests (Files): Likewise.
41769         * modules/dup2-tests (Files): Likewise.
41770         * modules/dup3-tests (Files): Likewise.
41771         * modules/duplocale-tests (Files): Likewise.
41772         * modules/fchdir-tests (Files): Likewise.
41773         * modules/fcntl-tests (Files): Likewise.
41774         * modules/fdopendir-tests (Files): Likewise.
41775         * modules/fflush-tests (Files): Likewise.
41776         * modules/flock-tests (Files): Likewise.
41777         * modules/floorf-tests (Files): Likewise.
41778         * modules/floorl-tests (Files): Likewise.
41779         * modules/fnmatch-tests (Files): Likewise.
41780         * modules/fopen-tests (Files): Likewise.
41781         * modules/fprintf-posix-tests (Files): Likewise.
41782         * modules/freopen-tests (Files): Likewise.
41783         * modules/frexp-nolibm-tests (Files): Likewise.
41784         * modules/frexp-tests (Files): Likewise.
41785         * modules/frexpl-nolibm-tests (Files): Likewise.
41786         * modules/frexpl-tests (Files): Likewise.
41787         * modules/fseek-tests (Files): Likewise.
41788         * modules/fseeko-tests (Files): Likewise.
41789         * modules/fsync-tests (Files): Likewise.
41790         * modules/ftell-tests (Files): Likewise.
41791         * modules/ftello-tests (Files): Likewise.
41792         * modules/futimens-tests (Files): Likewise.
41793         * modules/getaddrinfo-tests (Files): Likewise.
41794         * modules/getcwd-tests (Files): Likewise.
41795         * modules/getdelim-tests (Files): Likewise.
41796         * modules/getdtablesize-tests (Files): Likewise.
41797         * modules/getgroups-tests (Files): Likewise.
41798         * modules/gethostname-tests (Files): Likewise.
41799         * modules/getline-tests (Files): Likewise.
41800         * modules/getopt-posix-tests (Files): Likewise.
41801         * modules/gettimeofday-tests (Files): Likewise.
41802         * modules/glob-tests (Files): Likewise.
41803         * modules/iconv-tests (Files): Likewise.
41804         * modules/inet_ntop-tests (Files): Likewise.
41805         * modules/inet_pton-tests (Files): Likewise.
41806         * modules/isblank-tests (Files): Likewise.
41807         * modules/lchown-tests (Files): Likewise.
41808         * modules/ldexpl-tests (Files): Likewise.
41809         * modules/link-tests (Files): Likewise.
41810         * modules/linkat-tests (Files): Likewise.
41811         * modules/lseek-tests (Files): Likewise.
41812         * modules/lstat-tests (Files): Likewise.
41813         * modules/mbrtowc-tests (Files): Likewise.
41814         * modules/mbsinit-tests (Files): Likewise.
41815         * modules/mbsnrtowcs-tests (Files): Likewise.
41816         * modules/mbsrtowcs-tests (Files): Likewise.
41817         * modules/memchr-tests (Files): Likewise.
41818         * modules/memcmp-tests (Files): Likewise.
41819         * modules/memmem-tests (Files): Likewise.
41820         * modules/memrchr-tests (Files): Likewise.
41821         * modules/mkdir-tests (Files): Likewise.
41822         * modules/mkfifo-tests (Files): Likewise.
41823         * modules/mkfifoat-tests (Files): Likewise.
41824         * modules/mknod-tests (Files): Likewise.
41825         * modules/nanosleep-tests (Files): Likewise.
41826         * modules/nl_langinfo-tests (Files): Likewise.
41827         * modules/obstack-printf-tests (Files): Likewise.
41828         * modules/open-tests (Files): Likewise.
41829         * modules/openat-tests (Files): Likewise.
41830         * modules/perror-tests (Files): Likewise.
41831         * modules/pipe2-tests (Files): Likewise.
41832         * modules/poll-tests (Files): Likewise.
41833         * modules/popen-tests (Files): Likewise.
41834         * modules/posix_spawn-tests (Files): Likewise.
41835         * modules/posix_spawnp-tests (Files): Likewise.
41836         * modules/pread-tests (Files): Likewise.
41837         * modules/printf-posix-tests (Files): Likewise.
41838         * modules/pty-tests (Files): Likewise.
41839         * modules/random_r-tests (Files): Likewise.
41840         * modules/rawmemchr-tests (Files): Likewise.
41841         * modules/readlink-tests (Files): Likewise.
41842         * modules/remove-tests (Files): Likewise.
41843         * modules/rename-tests (Files): Likewise.
41844         * modules/renameat-tests (Files): Likewise.
41845         * modules/rmdir-tests (Files): Likewise.
41846         * modules/round-tests (Files): Likewise.
41847         * modules/roundf-tests (Files): Likewise.
41848         * modules/roundl-tests (Files): Likewise.
41849         * modules/select-tests (Files): Likewise.
41850         * modules/setenv-tests (Files): Likewise.
41851         * modules/sigaction-tests (Files): Likewise.
41852         * modules/sleep-tests (Files): Likewise.
41853         * modules/snprintf-posix-tests (Files): Likewise.
41854         * modules/snprintf-tests (Files): Likewise.
41855         * modules/sprintf-posix-tests (Files): Likewise.
41856         * modules/stat-tests (Files): Likewise.
41857         * modules/strcasestr-tests (Files): Likewise.
41858         * modules/strchrnul-tests (Files): Likewise.
41859         * modules/strerror-tests (Files): Likewise.
41860         * modules/strsignal-tests (Files): Likewise.
41861         * modules/strstr-tests (Files): Likewise.
41862         * modules/strtod-tests (Files): Likewise.
41863         * modules/strverscmp-tests (Files): Likewise.
41864         * modules/symlink-tests (Files): Likewise.
41865         * modules/symlinkat-tests (Files): Likewise.
41866         * modules/times-tests (Files): Likewise.
41867         * modules/trunc-tests (Files): Likewise.
41868         * modules/truncf-tests (Files): Likewise.
41869         * modules/truncl-tests (Files): Likewise.
41870         * modules/tsearch-tests (Files): Likewise.
41871         * modules/uname-tests (Files): Likewise.
41872         * modules/unlink-tests (Files): Likewise.
41873         * modules/unsetenv-tests (Files): Likewise.
41874         * modules/usleep-tests (Files): Likewise.
41875         * modules/utimensat-tests (Files): Likewise.
41876         * modules/vasprintf-tests (Files): Likewise.
41877         * modules/vdprintf-posix-tests (Files): Likewise.
41878         * modules/vfprintf-posix-tests (Files): Likewise.
41879         * modules/vprintf-posix-tests (Files): Likewise.
41880         * modules/vsnprintf-posix-tests (Files): Likewise.
41881         * modules/vsnprintf-tests (Files): Likewise.
41882         * modules/vsprintf-posix-tests (Files): Likewise.
41883         * modules/wcrtomb-tests (Files): Likewise.
41884         * modules/wcsnrtombs-tests (Files): Likewise.
41885         * modules/wcsrtombs-tests (Files): Likewise.
41886         * modules/wcwidth-tests (Files): Likewise.
41887         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41888         * tests/test-isinf.c (isinf): Likewise.
41889         * tests/test-isnan.c (isnan): Likewise.
41890         * tests/test-signbit.c (signbit): Likewise.
41891         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41892         declaration, either as macro or with correct signature.
41893         (select): Ensure function under test is declared with correct
41894         signature in correct header.
41895         * tests/test-atexit.c (atexit): Likewise.
41896         * tests/test-btowc.c (btowc): Likewise.
41897         * tests/test-canonicalize-lgpl.c (realpath)
41898         (canonicalize_file_name): Likewise.
41899         * tests/test-ceilf1.c (ceilf): Likewise.
41900         * tests/test-ceill.c (ceill): Likewise.
41901         * tests/test-chown.c (chown): Likewise.
41902         * tests/test-dprintf-posix.c (dprintf): Likewise.
41903         * tests/test-dup2.c (dup2): Likewise.
41904         * tests/test-dup3.c (dup3): Likewise.
41905         * tests/test-duplocale.c (duplocale): Likewise.
41906         * tests/test-fchdir.c (fchdir): Likewise.
41907         * tests/test-fchownat.c (fchownat): Likewise.
41908         * tests/test-fcntl.c (fcntl): Likewise.
41909         * tests/test-fdopendir.c (fdopendir): Likewise.
41910         * tests/test-fflush.c (fflush): Likewise.
41911         * tests/test-flock.c (flock): Likewise.
41912         * tests/test-floorf1.c (floorf): Likewise.
41913         * tests/test-floorl.c (floorl): Likewise.
41914         * tests/test-fnmatch.c (fnmatch): Likewise.
41915         * tests/test-fopen.c (fopen): Likewise.
41916         * tests/test-fprintf-posix.c (fprintf): Likewise.
41917         * tests/test-freopen.c (freopen): Likewise.
41918         * tests/test-frexp.c (frexp): Likewise.
41919         * tests/test-frexpl.c (frexpl): Likewise.
41920         * tests/test-fseek.c (fseek): Likewise.
41921         * tests/test-fseeko.c (fseeko): Likewise.
41922         * tests/test-fstatat.c (fstatat): Likewise.
41923         * tests/test-fsync.c (fsync): Likewise.
41924         * tests/test-ftell.c (ftell): Likewise.
41925         * tests/test-ftello.c (ftello): Likewise.
41926         * tests/test-futimens.c (futimens): Likewise.
41927         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41928         (gai_strerror): Likewise.
41929         * tests/test-getcwd.c (getcwd): Likewise.
41930         * tests/test-getdelim.c (getdelim): Likewise.
41931         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41932         * tests/test-getgroups.c (getgroups): Likewise.
41933         * tests/test-gethostname.c (gethostname): Likewise.
41934         * tests/test-getline.c (getline): Likewise.
41935         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41936         Likewise.
41937         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41938         * tests/test-glob.c (glob, globfree): Likewise.
41939         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41940         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41941         * tests/test-inet_pton.c (inet_pton): Likewise.
41942         * tests/test-isblank.c (isblank): Likewise.
41943         * tests/test-lchown.c (lchown): Likewise.
41944         * tests/test-ldexpl.c (ldexpl): Likewise.
41945         * tests/test-link.c (link): Likewise.
41946         * tests/test-linkat.c (linkat): Likewise.
41947         * tests/test-lseek.c (lseek): Likewise.
41948         * tests/test-lstat.c (lstat): Likewise.
41949         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41950         * tests/test-mbsinit.c (mbsinit): Likewise.
41951         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41952         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41953         * tests/test-memchr.c (memchr): Likewise.
41954         * tests/test-memcmp.c (memcmp): Likewise.
41955         * tests/test-memmem.c (memmem): Likewise.
41956         * tests/test-memrchr.c (memrchr): Likewise.
41957         * tests/test-mkdir.c (mkdir): Likewise.
41958         * tests/test-mkdirat.c (mkdirat): Likewise.
41959         * tests/test-mkfifo.c (mkfifo): Likewise.
41960         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41961         * tests/test-mknod.c (mknod): Likewise.
41962         * tests/test-nanosleep.c (nanosleep): Likewise.
41963         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41964         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41965         Likewise.
41966         * tests/test-open.c (open): Likewise.
41967         * tests/test-openat.c (openat): Likewise.
41968         * tests/test-perror.c (perror): Likewise.
41969         * tests/test-pipe2.c (pipe2): Likewise.
41970         * tests/test-poll.c (poll): Likewise.
41971         * tests/test-popen.c (popen, pclose): Likewise.
41972         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41973         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41974         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41975         (posix_spawn_file_actions_destroy)
41976         (posix_spawn_file_actions_addclose)
41977         (posix_spawn_file_actions_addopen)
41978         (posix_spawn_file_actions_adddup2): Likewise.
41979         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41980         * tests/test-pread.c (pread): Likewise.
41981         * tests/test-printf-posix.c (printf): Likewise.
41982         * tests/test-pty.c (openpty, forkpty): Likewise.
41983         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41984         (random_r): Likewise.
41985         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41986         * tests/test-readlink.c (readlink): Likewise.
41987         * tests/test-remove.c (remove): Likewise.
41988         * tests/test-rename.c (rename): Likewise.
41989         * tests/test-renameat.c (renameat): Likewise.
41990         * tests/test-rmdir.c (rmdir): Likewise.
41991         * tests/test-round1.c (round): Likewise.
41992         * tests/test-roundf1.c (roundf): Likewise.
41993         * tests/test-roundl.c (roundl): Likewise.
41994         * tests/test-setenv.c (setenv): Likewise.
41995         * tests/test-sigaction.c (sigaction): Likewise.
41996         * tests/test-sleep.c (sleep): Likewise.
41997         * tests/test-snprintf.c (snprintf): Likewise.
41998         * tests/test-sprintf-posix.c (sprintf): Likewise.
41999         * tests/test-stat.c (stat): Likewise.
42000         * tests/test-stpncpy.c (stpncpy): Likewise.
42001         * tests/test-strcasestr.c (strcasestr): Likewise.
42002         * tests/test-strchrnul.c (strchrnul): Likewise.
42003         * tests/test-strerror.c (strerror): Likewise.
42004         * tests/test-strsignal.c (strsignal): Likewise.
42005         * tests/test-strstr.c (strstr): Likewise.
42006         * tests/test-strtod.c (strtod): Likewise.
42007         * tests/test-strverscmp.c (strverscmp): Likewise.
42008         * tests/test-symlink.c (symlink): Likewise.
42009         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42010         * tests/test-times.c (times): Likewise.
42011         * tests/test-trunc1.c (trunc): Likewise.
42012         * tests/test-truncf1.c (truncf): Likewise.
42013         * tests/test-truncl.c (truncl): Likewise.
42014         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42015         Likewise.
42016         * tests/test-uname.c (uname): Likewise.
42017         * tests/test-unlink.c (unlink): Likewise.
42018         * tests/test-unlinkat.c (unlinkat): Likewise.
42019         * tests/test-unsetenv.c (unsetenv): Likewise.
42020         * tests/test-usleep.c (usleep): Likewise.
42021         * tests/test-utimensat.c (utimensat): Likewise.
42022         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42023         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42024         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42025         * tests/test-vprintf-posix.c (vprintf): Likewise.
42026         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42027         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42028         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42029         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42030         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42031         * tests/test-wcwidth.c (wcwidth): Likewise.
42032
42033         build: pull in conditional headers during GNULIB_POSIXCHECK
42034         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42035         definitions from any conditionally-included headers.
42036         * lib/stdlib.in.h (includes): Likewise.
42037         * lib/unistd.in.h (includes): Likewise.
42038
42039 2009-12-24  Bruno Haible  <bruno@clisp.org>
42040
42041         * tests/test-argv-iter.c: Include header file being tested immediately
42042         after config.h.
42043         * tests/test-base64.c: Likewise.
42044         * tests/test-flock.c: Likewise.
42045         * tests/test-fsync.c: Likewise.
42046         * tests/test-getdate.c: Likewise.
42047         * tests/test-getndelim2.c: Likewise.
42048         * tests/test-isfinite.c: Likewise.
42049         * tests/test-isinf.c: Likewise.
42050         * tests/test-strerror.c: Likewise.
42051         * tests/test-strsignal.c: Likewise.
42052
42053 2009-12-23  Eric Blake  <ebb9@byu.net>
42054
42055         unistd: work around cygwin bug
42056         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42057         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42058         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42059
42060 2009-12-23  Bruno Haible  <bruno@clisp.org>
42061
42062         localename: More tests.
42063         * tests/test-localename.c (SIZEOF): New macro.
42064         (categories): New variable.
42065         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42066         test_locale_name_default): Add test w.r.t. thread locale.
42067         (test_locale_name_thread): New function.
42068         (main): Invoke it.
42069
42070         localename: Make aware of thread locale.
42071         * lib/localename.h (gl_locale_name_thread): New declaration.
42072         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42073         behaviour with respect to thread locale.
42074         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42075         <langinfo.h>, glthread/lock.h.
42076         (SIZE_BITS): New macro.
42077         (string_hash): New function.
42078         (struct hash_node): New type.
42079         (HASH_TABLE_SIZE): New macro.
42080         (struniq_hash_table, struniq_lock): New variables.
42081         (struniq): New function.
42082         (gl_locale_name_thread): New function.
42083         (gl_locale_name): Invoke it.
42084         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42085         * modules/localename (Depends-on): Add lock.
42086         Reported by Mike Gran <spk121@yahoo.com>.
42087
42088 2009-12-23  Eric Blake  <ebb9@byu.net>
42089
42090         va-args: new module
42091         * modules/va-args: New file.
42092         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42093         * MODULES.html.sh (Core language properties): Mention it.
42094
42095         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42096         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42097         named alias for __attribute__((__unused__)).
42098         * lib/chown.c: Update client.
42099         * lib/fchmodat.c: Likewise.
42100         * lib/fts.c: Likewise.
42101         * lib/getdate.y: Likewise.
42102         * lib/getgroups.c: Likewise.
42103         * lib/getopt.c: Likewise.
42104         * lib/getugroups.c: Likewise.
42105         * lib/mkdir.c: Likewise.
42106         * lib/mkfifo.c: Likewise.
42107         * lib/mkfifoat.c: Likewise.
42108         * lib/mknod.c: Likewise.
42109         * lib/mknodat.c: Likewise.
42110         * lib/readlink.c: Likewise.
42111         * lib/se-context.in.h: Likewise.
42112         * lib/se-selinux.in.h: Likewise.
42113         * lib/sockets.c: Likewise.
42114         * lib/symlink.c: Likewise.
42115         * lib/symlinkat.c: Likewise.
42116         * lib/unicodeio.c: Likewise.
42117         * lib/unistr.h: Likewise.
42118         * tests/test-areadlink.c: Likewise.
42119         * tests/test-areadlinkat.c: Likewise.
42120         * tests/test-filenamecat.c: Likewise.
42121         * tests/test-fseeko.c: Likewise.
42122         * tests/test-ftello.c: Likewise.
42123         * tests/test-getdate.c: Likewise.
42124         * tests/test-getgroups.c: Likewise.
42125         * tests/test-gethostname.c: Likewise.
42126         * tests/test-quotearg.c: Likewise.
42127         * tests/test-version-etc.c: Likewise.
42128         * tests/test-xalloc-die.c: Likewise.
42129         * tests/test-xfprintf-posix.c: Likewise.
42130         * tests/test-xprintf-posix.c: Likewise.
42131         * tests/test-xvasprintf.c: Likewise.
42132
42133         tests: avoid compiler warnings
42134         * tests/test-fcntl.c (main): Delete unused parameters.
42135         * tests/test-freopen-safer.c (main): Likewise.
42136         * tests/test-xalloc-die.c (main): Mark unused parameters.
42137         * tests/test-fseeko.c (main): Likewise.
42138         * tests/test-ftello.c (main): Likewise.
42139         * tests/test-nanosleep.c (main): Avoid declaration warning.
42140         * tests/test-sleep.c (main): Likewise.
42141         * tests/test-unsetenv.c (main): Silence warning about string
42142         literal.
42143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42144
42145 2009-12-23  Bruno Haible  <bruno@clisp.org>
42146
42147         * tests/test-localename.c (test_locale_name): New function, extracted
42148         from main. Also test mixed situations.
42149         (test_locale_name_posix, test_locale_name_environ,
42150         test_locale_name_default): New functions.
42151         (main): Invoke them all.
42152         * modules/localename-tests (configure.ac): Test for newlocale.
42153
42154 2009-12-23  Bruno Haible  <bruno@clisp.org>
42155
42156         unistd: Ensure getcwd gets declared before being overridden.
42157         * lib/unistd.in.h: Conditionally include <io.h>.
42158
42159 2009-12-22  Bruno Haible  <bruno@clisp.org>
42160
42161         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42162         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42163         (gl_WCHAR_H): Invoke it.
42164         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42165         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42166         Reported by Karl Berry <karl@freefriends.org>.
42167
42168 2009-12-22  Eric Blake  <ebb9@byu.net>
42169
42170         math, unistd: avoid redundant includes
42171         * lib/math.in.h (isnan): No need to re-include <math.h>.
42172         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42173
42174         getsubopt: work around cygwin bug
42175         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42176         avoid conflicting with system getsubopt.
42177         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42178         bug.
42179
42180         getopt: synchronize from glibc
42181         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42182         parameter order.  Adjust all callers.
42183         (_getopt_internal_r, main): Adjust quoting in error messages.
42184         Drop considerations for outdated POSIX 1003.2 error message.
42185         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42186         callers.
42187         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42188
42189         test-getopt: test stderr behavior
42190         * modules/getopt-posix-tests (Depends-on): Add dup2.
42191         * tests/test-getopt.c (ASSERT): Avoid stderr.
42192         (main): Move stderr to a temporary file.
42193         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42194         Instead, add parameter to inform caller if output occurred.
42195         (test_getopt): Adjust all existing tests to expect silence, and
42196         add new tests of leading ":".
42197         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42198         glibc shortcomings with leading "-:" or "+:" in optstring.
42199         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42200         Likewise.
42201         * doc/posix-functions/getopt.texi (getopt): Likewise.
42202
42203         test-getopt: enhance test
42204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42205         supports optind=0.
42206         * tests/test-getopt.c (OPTIND_MIN): Move...
42207         * tests/test-getopt.h (OPTIND_MIN): ...here.
42208         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42209         Require that optind=0 works, since modern BSD supports it in
42210         addition to optreset, and since coreutils expects it.
42211         (test_getopt_long_only): New test.
42212         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42213         glibc shortcomings with 'W;', and enforcement of optind=0.
42214         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42215         Likewise.
42216
42217 2009-12-21  Bruno Haible  <bruno@clisp.org>
42218
42219         localename: Improvements for MacOS X and Cygwin.
42220         * lib/localename.h (gl_locale_name_environ): New declaration.
42221         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42222         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42223         (gl_locale_name_posix): Invoke it.
42224         (gl_locale_name_default): Add comments. Use Windows native API also on
42225         Cygwin.
42226
42227 2009-12-21  Bruno Haible  <bruno@clisp.org>
42228
42229         Update list of Win32 locale ids.
42230         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42231         (LANG_SAMI): Renamed from LANG_SAAMI.
42232         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42233         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42234         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42235         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42236         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42237         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42238         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42239         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42240         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42241         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42242         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42243         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42244         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42245         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42246         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42247         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42248         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42249         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42250         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42251         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42252         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42253         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42254         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42255         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42256         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42257         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42258         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42259         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42260         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42261         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42262         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42263         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42264         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42265         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42266         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42267         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42268         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42269         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42270         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42271         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42272         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42273         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42274         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42275         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42276         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42277         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42278         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42279         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42280         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42281         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42282         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42283         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42284         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42285         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42286         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42287         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42288         Add more languages and countries for Sami, Sorbian. Add more countries
42289         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42290         for Pashto. Change country for Syriac, Tswana.
42291
42292 2009-12-21  Eric Blake  <ebb9@byu.net>
42293
42294         test-utimens: avoid spurious failure
42295         * tests/test-chown.h (nap): Factor...
42296         * tests/nap.h: ...into new file.
42297         * tests/test-lchown.h (nap): Avoid duplication.
42298         * tests/test-utimens-common.h (nap): Use shared implementation,
42299         necessary on file systems with 1-second resolution.
42300         * modules/chown-tests (Files): Include new file.
42301         * modules/fdutimensat-tests (Files): Likewise.
42302         * modules/futimens-tests (Files): Likewise.
42303         * modules/lchown-tests (Files): Likewise.
42304         * modules/openat-tests (Files): Likewise.
42305         * modules/utimens-tests (Files): Likewise.
42306         * modules/utimensat-tests (Files): Likewise.
42307
42308 2009-12-19  Eric Blake  <ebb9@byu.net>
42309
42310         futimens, utimensat: work around Linux bug
42311         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42312         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42313         * lib/utimensat.c (rpl_utimensat): Work around it.
42314         * lib/futimens.c (rpl_futimens): Adjust comment.
42315
42316         utimens: work around Linux ctime bug
42317         * lib/utimens.c (detect_ctime_bug): New helper function.
42318         (update_timespec): Differentiate between workaround needed for
42319         this bug vs. what is needed for systems that lack utimensat.
42320         (fdutimens, lutimens): Work around bug.
42321
42322         utimens: check for ctime update
42323         * tests/test-utimens-common.h (check_ctime): Define.
42324         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42325         * tests/test-futimens.h (test_futimens): Likewise.
42326         * tests/test-lutimens.h (test_lutimens): Likewise.
42327         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42328         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42329
42330 2009-12-19  Bruno Haible  <bruno@clisp.org>
42331
42332         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42333         * tests/test-dprintf-posix2.sh: New file.
42334         * tests/test-dprintf-posix2.c: New file.
42335         * modules/dprintf-posix-tests (Files): Add them.
42336         (configure.ac): Check for getrlimit and setrlimit.
42337         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42338
42339 2009-12-19  Bruno Haible  <bruno@clisp.org>
42340
42341         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42342         * tests/test-fprintf-posix3.sh: New file.
42343         * tests/test-fprintf-posix3.c: New file.
42344         * modules/fprintf-posix-tests (Files): Add them.
42345         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42346
42347 2009-12-19  Eric Blake  <ebb9@byu.net>
42348
42349         dirfd: fix prototype
42350         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42351         * lib/dirfd.c (dirfd): Likewise.
42352
42353         canonicalize: reduce memory usage
42354         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42355         allocation to size.
42356         Reported by Solar Designer <solar@openwall.com>.
42357
42358 2009-12-19  Bruno Haible  <bruno@clisp.org>
42359
42360         New module attribute 'Applicability'.
42361         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42362         * gnulib-tool: New option --extract-applicability.
42363         (func_usage): Document it.
42364         (sed_extract_prog): Recognize it.
42365         (func_get_applicability): New function.
42366         (func_import): Generalize handling of 'link-warning' module.
42367         * modules/link-warning (Applicability): New section.
42368         * modules/arg-nonnull (Applicability): New section.
42369         Repoted by Simon Josefsson <simon@josefsson.org>.
42370
42371 2009-12-19  Bruno Haible  <bruno@clisp.org>
42372
42373         fflush: tweak
42374         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42375         * lib/fseeko.c (rpl_fseeko): Likewise.
42376
42377 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42378
42379         * lib/gl_list.h: Fix typo in comment.
42380
42381 2009-12-16  Eric Blake  <ebb9@byu.net>
42382
42383         fcntl: use to simplify other modules
42384         * modules/cloexec (Depends-on): Add fcntl.
42385         * modules/fchdir (Depends-on): Likewise.
42386         * modules/fd-safer-flag (Depends-on): Likewise.
42387         * modules/unistd-safer (Depends-on): Likewise.
42388         * modules/dup3 (configure.ac): Set module indicator.
42389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42390         missing.
42391         * lib/fchdir.c (_gl_register_dup): Fix comment.
42392         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42393         * lib/dup-safer.c (dup_safer): Likewise.
42394         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42395         * lib/dup3.c (dup3): Likewise.
42396         * tests/test-fchdir.c (main): Enhance test.
42397         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42398
42399         fcntl: port portions of fcntl to mingw
42400         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42401         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42402         replacement for mingw.
42403         * modules/fcntl (Description): Update.
42404         (Depends-on): Add dup2.
42405         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42406         * modules/fcntl-h (Makefile.am): Substitute it.
42407         * lib/fcntl.in.h (fcntl): Update declaration.
42408         (F_DUPFD, F_GETFD): New macros, when needed.
42409         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42410         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42411         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42412         we now guarantee.
42413
42414         fcntl: work around cygwin bug in F_DUPFD
42415         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42416         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42417         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42418         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42419         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42420
42421         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42422         * modules/fcntl (Files): List new files.
42423         (configure.ac): Run a test.
42424         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42425         * lib/fcntl.c (rpl_fcntl): Likewise.
42426         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42427         (gl_FCNTL_H): Always replace fcntl.h.
42428         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42429         * lib/fcntl.in.h (fcntl): Declare replacement.
42430         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42431         needed, plus a witness.
42432         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42433         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42434         * tests/test-fcntl.c: New file.
42435         * modules/fcntl-tests: Likewise.
42436
42437         binary-io: avoid potential compilation warning
42438         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42439         directives.
42440
42441         fflush: avoid compilation error on NetBSD
42442         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42443         between off_t and fpos_t, since the latter is sometimes a struct.
42444         * lib/fseeko.c (rpl_fseeko): Likewise.
42445         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42446
42447 2009-12-15  Eric Blake  <ebb9@byu.net>
42448
42449         fcntl-h, stdio, sys_ioctl: fix declarations
42450         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42451         function must not take arguments.
42452         * lib/sys_ioctl.in.h (ioctl): Likewise.
42453         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42454         (open): Add a link warning.
42455
42456 2009-12-15  Jim Meyering  <meyering@redhat.com>
42457
42458         areadlink, areadlink-with-size: relax license to LGPLv2+
42459         * modules/areadlink (License): Relax to LGPLv2+.
42460         * modules/areadlink-with-size (License): Likewise.
42461
42462 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42463             Bruno Haible  <bruno@clisp.org>
42464
42465         *printf: Fix memory leak.
42466         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42467         * lib/vfprintf.c (vfprintf): Likewise.
42468         * lib/dprintf.c (dprintf): Likewise.
42469         * lib/vdprintf.c (vdprintf): Likewise.
42470
42471 2009-12-14  Eric Blake  <ebb9@byu.net>
42472
42473         accept4: adjust module dependencies
42474         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42475
42476         utimens: one more try at avoiding compiler warning
42477         * lib/utimens.c (lutimens): Lower scope of result.
42478
42479 2009-12-13  Bruno Haible  <bruno@clisp.org>
42480
42481         Move the malloc checking from module 'list' to new module 'xlist'.
42482         * modules/xlist: New file.
42483         * lib/gl_xlist.h: New file.
42484         * lib/gl_xlist.c: New file.
42485         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42486         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42487         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42488         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42489         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42490         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42491         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42492         gl_sortedlist_nx_add): New declarations.
42493         (struct gl_list_implementation): Rename and change methods accordingly.
42494         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42495         (gl_list_nx_create): Renamed from gl_list_create.
42496         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42497         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42498         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42499         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42500         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42501         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42502         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42503         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42504         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42505         gl_list_create_empty.
42506         (gl_list_nx_create): Renamed from gl_list_create.
42507         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42508         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42509         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42510         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42511         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42512         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42513         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42514         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42515         * lib/gl_array_list.c: Don't include xalloc.h.
42516         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42517         NULL upon out-of-memory.
42518         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42519         out-of-memory.
42520         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42521         Change return type to 'int'.
42522         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42523         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42524         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42525         upon out-of-memory.
42526         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42527         upon out-of-memory.
42528         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42529         upon out-of-memory.
42530         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42531         upon out-of-memory.
42532         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42533         out-of-memory.
42534         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42535         Update.
42536         (gl_array_list_implementation): Update.
42537         * lib/gl_carray_list.c: Don't include xalloc.h.
42538         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42539         Return NULL upon out-of-memory.
42540         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42541         out-of-memory.
42542         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42543         Change return type to 'int'.
42544         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42545         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42546         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42547         upon out-of-memory.
42548         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42549         upon out-of-memory.
42550         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42551         out-of-memory.
42552         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42553         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42554         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42555         Update.
42556         (gl_carray_list_implementation): Update.
42557         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42558         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42559         gl_linked_create_empty. Return NULL upon out-of-memory.
42560         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42561         out-of-memory.
42562         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42563         Change return type to 'int'. Return -1 upon out-of-memory.
42564         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42565         out-of-memory.
42566         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42567         upon out-of-memory.
42568         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42569         upon out-of-memory.
42570         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42571         NULL upon out-of-memory.
42572         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42573         upon out-of-memory.
42574         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42575         out-of-memory.
42576         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42577         Update.
42578         * lib/gl_linked_list.c: Don't include xalloc.h.
42579         (gl_linked_list_implementation): Update.
42580         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42581         (add_to_bucket): Change return type to 'int'.
42582         (gl_linkedhash_list_implementation): Update.
42583         * lib/gl_anytree_list1.h (free_subtree): New function.
42584         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42585         gl_tree_create_empty. Return NULL upon out-of-memory.
42586         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42587         Change return type to 'int'. Return -1 upon out-of-memory.
42588         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42589         out-of-memory.
42590         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42591         (gl_tree_remove_node): New function, moved here from
42592         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42593         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42594         Update.
42595         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42596         malloc, not xmalloc. Return NULL upon out-of-memory.
42597         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42598         out-of-memory.
42599         (gl_tree_remove_node_from_tree): New function, extracted from
42600         gl_tree_remove_node.
42601         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42602         upon out-of-memory.
42603         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42604         out-of-memory.
42605         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42606         upon out-of-memory.
42607         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42608         upon out-of-memory.
42609         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42610         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42611         not xmalloc. Return NULL upon out-of-memory.
42612         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42613         out-of-memory.
42614         (gl_tree_remove_node_from_tree): New function, extracted from
42615         gl_tree_remove_node.
42616         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42617         upon out-of-memory.
42618         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42619         out-of-memory.
42620         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42621         upon out-of-memory.
42622         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42623         upon out-of-memory.
42624         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42625         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42626         gl_anytree_list1.h before gl_anyavltree_list2.h.
42627         (gl_avltree_list_implementation): Update.
42628         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42629         gl_anytree_list1.h before gl_anyavltree_list2.h.
42630         (gl_rbtree_list_implementation): Update.
42631         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42632         Change return type to 'int'. Return -1 upon out-of-memory. Use
42633         __builtin_expect.
42634         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42635         (gl_avltreehash_list_implementation): Update.
42636         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42637         (gl_rbtreehash_list_implementation): Update.
42638         * modules/array-list (Depends-on): Remove xalloc.
42639         * modules/carray-list (Depends-on): Likewise.
42640         * modules/linked-list (Depends-on): Likewise.
42641         * modules/linkedhash-list (Depends-on): Likewise.
42642         * modules/avltree-list (Depends-on): Likewise.
42643         * modules/rbtree-list (Depends-on): Likewise.
42644         * modules/avltreehash-list (Depends-on): Likewise.
42645         * modules/rbtreehash-list (Depends-on): Likewise.
42646
42647         * modules/xsublist: New file.
42648         * lib/gl_xsublist.h: New file.
42649         * lib/gl_xsublist.c: New file.
42650         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42651         (gl_sublist_nx_create): New declaration.
42652         * lib/gl_sublist.c: Don't include xalloc.h.
42653         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42654         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42655         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42656         Change return type to 'int'. Return -1 upon out-of-memory.
42657         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42658         upon out-of-memory.
42659         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42660         NULL upon out-of-memory.
42661         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42662         upon out-of-memory.
42663         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42664         NULL upon out-of-memory.
42665         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42666         NULL upon out-of-memory.
42667         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42668         upon out-of-memory.
42669         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42670         (gl_sublist_list_implementation): Update.
42671         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42672         upon out-of-memory.
42673         * modules/sublist (Depends-on): Remove xalloc.
42674
42675         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42676         * tests/test-carray_list.c: Likewise.
42677         * tests/test-linked_list.c: Likewise.
42678         * tests/test-linkedhash_list.c: Likewise.
42679         * tests/test-avltree_list.c: Likewise.
42680         * tests/test-rbtree_list.c: Likewise.
42681         * tests/test-avltreehash_list.c: Likewise.
42682         * tests/test-rbtreehash_list.c: Likewise.
42683         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42684         * modules/carray-list-tests (Makefile.am): Likewise.
42685         * modules/linked-list-tests (Makefile.am): Likewise.
42686         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42687         * modules/avltree-list-tests (Makefile.am): Likewise.
42688         * modules/rbtree-list-tests (Makefile.am): Likewise.
42689         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42690         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42691
42692         * NEWS: Mention the changes.
42693
42694         * lib/clean-temp.c: Include gl_xlist.h.
42695         * modules/clean-temp (Depends-on): Add xlist.
42696
42697         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42698         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42699
42700         * tests/test-array_oset.c: Include gl_xlist.h.
42701         * modules/array-oset-tests (Depends-on): Add xlist.
42702
42703         Reported by José E. Marchesi <jemarch@gnu.org>.
42704
42705 2009-12-13  Bruno Haible  <bruno@clisp.org>
42706
42707         Move the malloc checking from module 'oset' to new module 'xoset'.
42708         * modules/xoset: New file.
42709         * lib/gl_xoset.h: New file.
42710         * lib/gl_xoset.c: New file.
42711         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42712         declarations.
42713         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42714         (struct gl_oset_implementation): Rename and change methods accordingly.
42715         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42716         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42717         'int'. Mark as __warn_unused_result__.
42718         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42719         gl_oset_create_empty.
42720         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42721         'int'.
42722         * lib/gl_array_oset.c: Don't include xalloc.h.
42723         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42724         malloc, not xmalloc.
42725         (grow): Change return type to 'int'. Don't call xalloc_die.
42726         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42727         to 'int'.
42728         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42729         'int'.
42730         (gl_array_oset_implementation): Update.
42731         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42732         gl_tree_create_empty.
42733         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42734         'int'.
42735         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42736         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42737         xmalloc.
42738         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42739         not xmalloc.
42740         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42741         xmalloc.
42742         (gl_avltree_oset_implementation): Update.
42743         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42744         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42745         xmalloc.
42746         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42747         not xmalloc.
42748         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42749         xmalloc.
42750         (gl_rbtree_oset_implementation): Update.
42751         * modules/array-oset (Depends-on): Remove xalloc.
42752         * modules/avltree-oset (Depends-on): Likewise.
42753         * modules/rbtree-oset (Depends-on): Likewise.
42754         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42755         * tests/test-avltree_oset.c: Likewise.
42756         * tests/test-rbtree_oset.c: Likewise.
42757         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42758         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42759         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42760         * NEWS: Mention the change.
42761
42762 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42763
42764         maint.mk: allow a project to override release-prep commands
42765         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42766         commands into a new rule.
42767         (release-prep): New rule.
42768         (release-prep-hook): New overridable variable.
42769
42770 2009-12-13  Bruno Haible  <bruno@clisp.org>
42771
42772         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42773
42774 2009-12-13  Jim Meyering  <meyering@redhat.com>
42775
42776         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42777         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42778
42779 2009-12-12  Bruno Haible  <bruno@clisp.org>
42780
42781         duplocale: Tweak.
42782         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42783
42784 2009-12-12  Karl Berry  <karl@gnu.org>
42785
42786         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42787
42788 2009-12-12  Bruno Haible  <bruno@clisp.org>
42789
42790         * m4/po.m4: Undo incorrect untabification.
42791
42792 2009-12-12  Bruno Haible  <bruno@clisp.org>
42793
42794         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42795         * modules/c-strtod (Depends-on): Add locale.
42796         * modules/c-strtold (Depends-on): Likewise.
42797
42798 2009-12-12  Bruno Haible  <bruno@clisp.org>
42799
42800         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42801
42802 2009-12-11  Eric Blake  <ebb9@byu.net>
42803
42804         setenv: relax requirement in light of POSIX ruling
42805         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42806         not NULL.
42807         * tests/test-setenv.c (main): Relax test.
42808         * tests/test-unsetenv.c (main): Likewise.
42809         * doc/posix-functions/setenv.texi (setenv): Document this.
42810         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42811
42812 2009-12-11  Bruno Haible  <bruno@clisp.org>
42813
42814         New module 'fd-safer-flag'.
42815         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42816         * lib/dup-safer.c (dup_safer_flag): Remove function.
42817         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42818         * lib/fd-safer.c (fd_safer_flag): Remove function.
42819         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42820         * modules/cloexec (configure.ac): Drop indicator macro.
42821         * modules/fd-safer-flag: New file.
42822         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42823         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42824         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42825
42826 2009-12-11  Bruno Haible  <bruno@clisp.org>
42827
42828         Tests for module 'nl_langinfo'.
42829         * modules/nl_langinfo-tests: New file.
42830         * tests/test-nl_langinfo.sh: New file.
42831         * tests/test-nl_langinfo.c: New file.
42832
42833         New module 'nl_langinfo'.
42834         * lib/nl_langinfo.c: New file.
42835         * m4/nl_langinfo.m4: New file.
42836         * modules/nl_langinfo: New file.
42837         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42838
42839 2009-12-11  Bruno Haible  <bruno@clisp.org>
42840
42841         Tests for module 'langinfo'.
42842         * modules/langinfo-tests: New file.
42843         * tests/test-langinfo.c: New file.
42844
42845         New module 'langinfo'.
42846         * lib/langinfo.in.h: New file.
42847         * m4/langinfo_h.m4: New file.
42848         * modules/langinfo: New file.
42849         * doc/posix-headers/langinfo.texi: Mention the new module.
42850
42851 2009-12-11  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/config.charset: Untabify.
42854
42855 2009-12-11  Bruno Haible  <bruno@clisp.org>
42856
42857         * modules/unistd-safer (configure.ac): Drop indicator macro.
42858
42859 2009-12-11  Bruno Haible  <bruno@clisp.org>
42860
42861         Move pipe2-safer code to its own file.
42862         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42863         * lib/pipe-safer.c (pipe2_safer): Remove function.
42864         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42865         (Makefile.am): Add it to lib_SOURCES.
42866
42867 2009-12-10  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42870
42871 2009-12-10  Bruno Haible  <bruno@clisp.org>
42872
42873         Declare which arguments expect non-NULL values, for GCC and clang.
42874         * build-aux/arg-nonnull.h: New file.
42875         * modules/arg-nonnull: New file.
42876         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42877         (inet_ntop, inet_pton): Use it.
42878         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42879         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42880         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42881         (open, openat): Use it.
42882         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42883         (fnmatch): Use it.
42884         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42885         (getopt, getopt_long, getopt_long_only): Use it.
42886         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42887         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42888         Use it.
42889         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42890         (iconv_open): Use it.
42891         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42892         (strtoimax, strtoumax): Use it.
42893         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42894         (duplocale): Use it.
42895         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42896         (frexp, frexpl): Use it.
42897         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42898         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42899         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42900         (tsearch, tfind, tdelete, twalk): Use it.
42901         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42902         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42903         sigpending): Use it.
42904         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42905         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42906         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42907         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42908         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42909         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42910         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42911         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42912         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42913         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42914         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42915         Use it.
42916         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42917         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42918         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42919         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42920         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42921         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42922         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42923         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42924         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42925         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42926         strtoull, unsetenv): Use it.
42927         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42928         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42929         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42930         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42931         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42932         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42933         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42934         (strcasecmp, strncasecmp): Use it.
42935         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42936         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42937         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42938         rpl_setsockopt): Use it.
42939         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42940         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42941         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42942         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42943         (gettimeofday): Use it.
42944         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42945         (times): Use it.
42946         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42947         (uname): Use it.
42948         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42949         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42950         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42951         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42952         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42953         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42954         unlinkat, write): Use it.
42955         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42956         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42957         * lib/argv-iter.h: Include arg-nonnull.h.
42958         (_ATTRIBUTE_NONNULL_): Remove macro.
42959         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42960         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42961         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42962         optimization.
42963         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42964         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42965         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42966         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42967         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42968         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42969         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42970         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42971         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42972         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42973         * modules/dirent (Depends-on): Add arg-nonnull.
42974         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42975         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42976         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42977         * modules/fnmatch (Depends-on): Add arg-nonnull.
42978         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42979         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42980         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42981         * modules/glob (Depends-on): Add arg-nonnull.
42982         (Makefile.am): Insert arg-nonnull.h into glob.h.
42983         * modules/iconv_open (Depends-on): Add arg-nonnull.
42984         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42985         * modules/inttypes (Depends-on): Add arg-nonnull.
42986         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42987         * modules/locale (Depends-on): Add arg-nonnull.
42988         (Makefile.am): Insert arg-nonnull.h into locale.h.
42989         * modules/math (Depends-on): Add arg-nonnull.
42990         (Makefile.am): Insert arg-nonnull.h into math.h.
42991         * modules/netdb (Depends-on): Add arg-nonnull.
42992         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42993         * modules/search (Depends-on): Add arg-nonnull.
42994         (Makefile.am): Insert arg-nonnull.h into search.h.
42995         * modules/signal (Depends-on): Add arg-nonnull.
42996         (Makefile.am): Insert arg-nonnull.h into signal.h.
42997         * modules/spawn (Depends-on): Add arg-nonnull.
42998         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42999         * modules/stdio (Depends-on): Add arg-nonnull.
43000         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43001         * modules/stdlib (Depends-on): Add arg-nonnull.
43002         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43003         * modules/string (Depends-on): Add arg-nonnull.
43004         (Makefile.am): Insert arg-nonnull.h into string.h.
43005         * modules/strings (Depends-on): Add arg-nonnull.
43006         (Makefile.am): Insert arg-nonnull.h into strings.h.
43007         * modules/sys_socket (Depends-on): Add arg-nonnull.
43008         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43009         * modules/sys_stat (Depends-on): Add arg-nonnull.
43010         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43011         * modules/sys_time (Depends-on): Add arg-nonnull.
43012         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43013         * modules/sys_times (Depends-on): Add arg-nonnull.
43014         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43015         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43016         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43017         * modules/time (Depends-on): Add arg-nonnull.
43018         (Makefile.am): Insert arg-nonnull.h into time.h.
43019         * modules/unistd (Depends-on): Add arg-nonnull.
43020         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43021         * modules/wchar (Depends-on): Add arg-nonnull.
43022         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43023         * modules/argv-iter (Depends-on): Add arg-nonnull.
43024         * tests/test-canonicalize.c (null_ptr): New function.
43025         (main): Use it.
43026         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43027         (main): Use it.
43028         * tests/test-memmem.c (null_ptr): New function.
43029         (main): Use it.
43030         Reported by Jim Meyering.
43031
43032 2009-12-10  Bruno Haible  <bruno@clisp.org>
43033
43034         Use spaces for indentation, not tabs.
43035         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43036         * m4/*.m4: Untabify.
43037         * build-aux/*.h: Untabify.
43038         * tests/**/*.[hc]: Untabify.
43039         * README: New section "Indent with spaces, not TABs", based on
43040         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43041         * NEWS: Mention the change.
43042
43043 2009-12-10  Bruno Haible  <bruno@clisp.org>
43044
43045         pty test: Fix link error.
43046         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43047         test_pty_LDADD.
43048
43049 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43050
43051         * modules/pty: New file.
43052         * modules/pty-tests: New file.
43053         * m4/pty.m4: New file.
43054         * tests/test-pty.c: New file.
43055         * doc/glibc-headers/pty.texi: Modified.
43056         * doc/glibc-functions/forkpty.texi: Modified.
43057         * doc/glibc-functions/openpty.texi: Modified.
43058
43059 2009-12-10  Bruno Haible  <bruno@clisp.org>
43060
43061         Avoid syntax error in C++ mode.
43062         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43063
43064 2009-12-10  Bruno Haible  <bruno@clisp.org>
43065
43066         Use sed with option -e.
43067         * gnulib-tool (func_version, func_emit_copyright_notice,
43068         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43069         option -e to sed.
43070         * modules/link-warning (Makefile.am): Likewise.
43071
43072 2009-12-10  Jim Meyering  <meyering@redhat.com>
43073
43074         mgetgroups: do not write bytes beyond end of malloc'd buffer
43075         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43076         username, we call getgroups with a one-element-shorter buffer,
43077         but still told it the length was original, max_n_groups.
43078
43079 2009-12-09  Eric Blake  <ebb9@byu.net>
43080
43081         cloexec: relax license
43082         * modules/cloexec (Maintainer): Add myself.
43083         (License): Use LGPL, not GPL.
43084
43085         link-warning: optimize generation
43086         * modules/link-warning (Makefile.am): Reduce process usage.
43087
43088 2009-12-09  Bruno Haible  <bruno@clisp.org>
43089
43090         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43091         workaround was added on 2009-11-17.
43092
43093 2009-12-09  Jim Meyering  <meyering@redhat.com>
43094             Bruno Haible  <bruno@clisp.org>
43095
43096         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43097         * modules/link-warning (Makefile.am): Make the comment-removing sed
43098         command more robust in the face of bootstrap-prepended comment lines.
43099
43100 2009-12-09  Bruno Haible  <bruno@clisp.org>
43101
43102         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43103         most one group.
43104
43105 2009-12-09  Simon Josefsson <simon@josefsson.org>
43106             Bruno Haible  <bruno@clisp.org>
43107
43108         * build-aux/link-warning.h: Add copyright notice.
43109         * modules/link-warning (Makefile.am): Generate link-warning.h from
43110         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43111         * NEWS: Mention change in link-warning module.
43112         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43113         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43114         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43115         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43116         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43117         * modules/math (Makefile.am): Add dependency to math.h.
43118         * modules/search (Makefile.am): Add dependency to search.h.
43119         * modules/signal (Makefile.am): Add dependency to signal.h.
43120         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43121         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43122         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43123         * modules/string (Makefile.am): Add dependency to string.h.
43124         * modules/strings (Makefile.am): Add dependency to strings.h.
43125         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43126         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43127         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43128         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43129         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43130         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43131         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43132         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43133         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43134
43135 2009-12-09  Bruno Haible  <bruno@clisp.org>
43136
43137         fchdir: Optimize away rpl_fstat when possible.
43138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43139         REPLACE_OPEN_DIRECTORY.
43140         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43141
43142 2009-12-09  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/fchdir.c: Update comment.
43145
43146 2009-12-09  Bruno Haible  <bruno@clisp.org>
43147
43148         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43149
43150 2009-12-08  Eric Blake  <ebb9@byu.net>
43151
43152         fchdir: avoid memory leak on re-registration.
43153         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43154
43155 2009-12-08  Jim Meyering  <meyering@redhat.com>
43156
43157         init.sh: avoid Solaris 10 /bin/sh portability problem
43158         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43159         sourced script:
43160           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43161           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43162           bar
43163         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43164         and two tests used that idiom.
43165         * tests/init.sh: Update suggested usage comments.
43166         (path_prepend_): New function, to be used in place
43167         of the --src-path=DIR option.
43168         (setup_): Move PATH-prepending code into path_prepend_.
43169         * tests/test-pread.sh: Adapt to new usage.
43170         * tests/test-xalloc-die.sh: Likewise.
43171
43172 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43173
43174         * doc/gnulib.texi (Glibc pty.h): Add.
43175         * doc/glibc-functions/forkpty.texi: Add.
43176         * doc/glibc-functions/openpty.texi: Add.
43177         Suggested by Bruno Haible.
43178
43179 2009-12-08  Eric Blake  <ebb9@byu.net>
43180
43181         fchdir: fix logic bugs
43182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43183         * tests/test-fchdir.c (main): Enhance test.
43184         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43185         is in use.
43186
43187         dup2: fix logic bugs
43188         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43189         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43190         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43191         exists.
43192         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43193
43194 2009-12-07  Eric Blake  <ebb9@byu.net>
43195
43196         unlink: fix m4 detection
43197         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43198
43199         unistd-safer: add unit test
43200         * modules/unistd-safer-tests: New file.
43201         * tests/test-dup-safer.c: Likewise.
43202         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43203         * tests/test-dup2.c (setmode): Likewise.
43204         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43205
43206         cloexec: preserve text vs. binary across dup_cloexec
43207         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43208         mode.
43209         * modules/dup2-tests (Depends-on): Add binary-io.
43210         * modules/cloexec-tests (Depends-on): Likewise.
43211         * tests/test-dup2.c (setmode, is_mode): New helpers.
43212         (main): Add tests that translation mode is preserved.
43213         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43214         Reported by Bruno Haible.
43215
43216         mgetgroups: reduce duplicate listings
43217         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43218         resulting array.
43219         * tests/test-chown.h (test_chown): Simplify client.
43220         * tests/test-lchown.h (test_lchown): Likewise.
43221
43222 2009-12-06  Bruno Haible  <bruno@clisp.org>
43223
43224         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43225         value.
43226
43227 2009-12-06  Bruno Haible  <bruno@clisp.org>
43228
43229         * lib/progname.c: Include stdio.h, stdlib.h.
43230         (set_program_name): Reject a NULL argument.
43231
43232 2009-12-05  Eric Blake  <ebb9@byu.net>
43233
43234         pipe2-safer: new module
43235         * modules/pipe2-safer: New file.
43236         * lib/unistd-safer.h (pipe2_safer): New prototype.
43237         * lib/unistd--.h (pipe2): New wrapper.
43238         * lib/pipe-safer.c (pipe2_safer): New function.
43239         * modules/pipe (Depends-on): Add pipe2-safer.
43240         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43241
43242         stdlib-safer: preserve cloexec flag for mkostemp[s]
43243         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43244         fd_safer_flag.
43245
43246         unistd-safer: allow preservation of cloexec status via flag
43247         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43248         prototypes.
43249         * lib/dup-safer.c (dup_safer_flag): New function.
43250         * lib/fd-safer.c (fd_safer_flag): Likewise.
43251         * modules/cloexec (configure.ac): Set witness.
43252
43253         test-dup2: enhance test
43254         * modules/dup2-tests (Depends-on): Add cloexec.
43255         * tests/test-dup2.c (main): Enhance test.
43256
43257         cloexec: add dup_cloexec
43258         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43259         header and comments.
43260         * lib/cloexec.c (set_cloexec_flag): Add comments.
43261         (dup_cloexec): New function, with mingw implementation borrowed
43262         from...
43263         * lib/w32spawn.h (dup_noinherit): ...here.
43264         * modules/execute (Depends-on): Add cloexec.
43265         * modules/pipe (Depends-on): Likewise.
43266         * modules/cloexec (Depends-on): Add dup2.
43267         * modules/cloexec-tests (Files): New file.
43268         * tests/test-cloexec.c: Likewise.
43269
43270         test-xalloc-die: fix test for mingw
43271         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43272         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43273         directory and .exe suffix off argv[0] output.
43274
43275         test-fseeko: fix test for mingw
43276         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43277         than undefining fseek, so test will pass on mingw.
43278
43279 2009-12-05  Bruno Haible  <bruno@clisp.org>
43280
43281         * lib/progname.h (set_program_name): Clarify specification.
43282         * lib/progname.c (set_program_name): Likewise.
43283         Reported by Jim Meyering.
43284
43285 2009-12-05  Jim Meyering  <meyering@redhat.com>
43286
43287         maint.mk: backslash-escape parens in default regexp
43288         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43289         backslash-escape the literal parentheses.
43290
43291         maint.mk: news-date-check: use grep -E
43292         * top/maint.mk (today): Define a Make variable, not a...
43293         (news-date-check): ...shell variable.
43294         (news-date-regexp): Use the Make variable.
43295         Use grep's -E option.  Change the failing diagnostic to mention
43296         the variable, $(news-date-regexp).
43297
43298 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43299
43300         maintainer-makefile: allow customization of NEWS entry format
43301         * top/maint.mk (news-date-regexp): New overridable variable.
43302         (news-date-check): Use it.
43303
43304 2009-12-04  Eric Blake  <ebb9@byu.net>
43305
43306         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43307         * lib/mgetgroups.h (xgetgroups): New prototype.
43308         * lib/mgetgroups.c (xgetgroups): New wrapper.
43309         (mgetgroups): Handle ENOSYS.
43310         * modules/mgetgroups (Depends-on): Add realloc.
43311         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43312
43313         mgetgroups: avoid argument promotion issues with -1
43314         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43315         for invalid gid_t.
43316         * tests/test-chown.h (getegid, test_chown): Likewise.
43317         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43318
43319 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43320
43321         exclude: Fix header file problems.
43322         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43323
43324 2009-12-01  Jim Meyering  <meyering@redhat.com>
43325
43326         fts: fts_open: do not let an empty string cause immediate failure
43327         This is required in support of GNU rm, for which the command
43328         "rm A '' B" must process and remove both A and B, in spite of
43329         the empty string argument.
43330         * lib/fts.c (fts_open): Do not let the presence of an empty string
43331         cause fts_open to fail immediately.  Most fts-using tools must be
43332         able to process all arguments, in order, and can be expected to
43333         diagnose such arguments themselves.
43334
43335 2009-11-30  Eric Blake  <ebb9@byu.net>
43336
43337         utimens: fix compilation error
43338         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43339         Declare variable at right scope.
43340
43341 2009-11-29  Jim Meyering  <meyering@redhat.com>
43342
43343         bootstrap: handle perl-5.11's changed --version output
43344         * build-aux/bootstrap (get_version): Handle perl separately,
43345         since perl-5.11's --version output is different.
43346
43347 2009-11-28  Jim Meyering  <meyering@redhat.com>
43348
43349         userspec: depend on the inttostr module, too
43350         * modules/userspec (Depends-on): Add inttostr.
43351
43352         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43353         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43354         number of MAXUID when it evaluates to (uid_t) -1.
43355         Likewise for group ID.  Reported by Matt McCutchen in
43356         <http://savannah.gnu.org/bugs/?28113>
43357
43358         userspec: reformat to use spaces, not TABs
43359         * lib/userspec.c: Expand TABs to spaces.
43360         Add Emacs' "indent-tabs-mode: nil" hint.
43361
43362 2009-11-27  Eric Blake  <ebb9@byu.net>
43363
43364         getopt-gnu: flush out another BSD bug
43365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43366         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43367         flush out BSD bug.
43368         * tests/test-getopt.h (test_getopt): End lists with NULL.
43369         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43370         (test_getopt_long_posix): Enhance test.
43371         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43372         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43373         getopt-gnu.
43374         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43375         Likewise.
43376
43377 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43378
43379         * modules/idpriv-droptemp-tests (Notice): Fix text.
43380
43381 2009-11-27  Jim Meyering  <meyering@redhat.com>
43382
43383         test-xalloc-die: avoid spurious failure due to libtool argv difference
43384         In a libtool-enabled project, this test would fail due to a difference
43385         in the emitted program name, e.g.,
43386         -test-xalloc-die: memory exhausted
43387         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43388         Use program to avoid that.
43389         * modules/xalloc-die-tests (Depends-on): Add progname.
43390         * tests/test-xalloc-die.c: Include progname.h".
43391         (program_name): Remove decl.
43392         (main): Call set_program_name.
43393         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43394
43395 2009-11-26  Richard Jones  <rjones@redhat.com>
43396
43397         w32sock: leave win32 error in place.
43398         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43399
43400 2009-11-26  Eric Blake  <ebb9@byu.net>
43401
43402         init.sh: suggest to use skip_ and fail_ functions in comments
43403         * tests/init.sh: Add a sentence.
43404
43405 2009-11-25  Bruno Haible  <bruno@clisp.org>
43406
43407         init.sh: add documentation in comments
43408         * tests/init.sh: Add some developer and user documentation.
43409
43410 2009-11-26  Jim Meyering  <meyering@redhat.com>
43411
43412         init.sh: accommodate even those who specify bogus srcdir manually
43413         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43414         configure-time tests to be sanitized, so that there is no need to
43415         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43416         (with no double quotes) suffices.  However, since tests may be
43417         invoked manually, and since you may explicitly set srcdir to the
43418         name of a directory containing spaces, do quote its uses here.
43419         * tests/test-pread.sh: Likewise.
43420         Suggested by Bruno Haible.
43421
43422         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43423         * tests/test-pread.sh: Write no data into the pipe, because
43424         test-pread actually reads none.  This avoids a diagnostic,
43425         "bash: echo: write error: Broken pipe", that arises in the unusual
43426         event something is ignoring SIGPIPE, and might be interpreted
43427         as some sort of failure.  Reported by Bruno Haible.
43428
43429 2009-11-25  Jim Meyering  <meyering@redhat.com>
43430
43431         test-pread: cover failure with ESPIPE and EINVAL
43432         * tests/test-pread.c (main): Test for failure, too.
43433         * tests/test-pread.sh: Invoke with stdin on a pipe.
43434         Suggested by Eric Blake.
43435
43436         pread: improvement and fix
43437         * modules/pread (Depends-on): Depend on lseek, for portability to
43438         e.g., mingw.  Suggested by Eric Blake.
43439         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43440
43441         unistd.in.h: correct declaration of pread
43442         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43443         Reported by Richard W.M. Jones.
43444
43445         test-pread.sh: distribute the test script
43446         * modules/pread-tests (Files): Include test-pread.sh.
43447
43448         test-pread.sh: clean up
43449         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43450         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43451         That is unnecessary, since it's always ".".
43452         Suggestion from Eric Blake.
43453
43454         test-pread.sh: make executable
43455         * tests/test-pread.sh: Set executable bit.
43456         Reported by Eric Blake.
43457
43458         correct typo in test-pread.sh
43459         * tests/test-pread.sh: Add #! line.
43460
43461         test pread
43462         * tests/test-pread.c: New file.
43463         * tests/test-pread.sh: Likewise.
43464         * modules/pread-tests: Likewise.
43465
43466         pread: new module
43467         * modules/pread: New file.
43468         * lib/unistd.in.h (pread): Define/declare.
43469         * lib/pread.c (pread): New file.
43470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43471         * modules/unistd (Makefile.am): Substitute witnesses.
43472         * doc/posix-functions/pread.texi (pread): Update.
43473         * MODULES.html.sh: Add pread.
43474
43475 2009-11-25  Jim Meyering  <meyering@redhat.com>
43476
43477         tests/init.sh: new file to be used via most *.sh tests
43478         * tests/init.sh: New file.
43479
43480 2009-11-25  Eric Blake  <ebb9@byu.net>
43481
43482         utimens: work around older Linux failure with symlinks
43483         * lib/utimens.c (lutimensat_works_really): New variable.
43484         (fdutimens, lutimens): Use it to manage kernels that support
43485         nanosecond times on files, but not on symlinks.
43486         Reported by Ondřej Vašík.
43487
43488         utimes: fix configure grammar
43489         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43490
43491 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43492
43493         regex: Fix fastmap for multibyte character ranges.
43494         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43495         characters when a multibyte character range is included.
43496
43497 2009-11-22  Andy Wingo  <wingo@pobox.com>
43498
43499         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43500         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43501
43502 2009-11-24  Bruno Haible  <bruno@clisp.org>
43503
43504         doc: Most *_l functions exist in MacOS X 10.5.
43505         * doc/posix-functions/duplocale.texi: Update platforms list.
43506         * doc/posix-functions/freelocale.texi: Likewise.
43507         * doc/posix-functions/newlocale.texi: Likewise.
43508         * doc/posix-functions/uselocale.texi: Likewise.
43509         * doc/posix-functions/isalnum_l.texi: Likewise.
43510         * doc/posix-functions/isalpha_l.texi: Likewise.
43511         * doc/posix-functions/isblank_l.texi: Likewise.
43512         * doc/posix-functions/iscntrl_l.texi: Likewise.
43513         * doc/posix-functions/isdigit_l.texi: Likewise.
43514         * doc/posix-functions/isgraph_l.texi: Likewise.
43515         * doc/posix-functions/islower_l.texi: Likewise.
43516         * doc/posix-functions/isprint_l.texi: Likewise.
43517         * doc/posix-functions/ispunct_l.texi: Likewise.
43518         * doc/posix-functions/isspace_l.texi: Likewise.
43519         * doc/posix-functions/isupper_l.texi: Likewise.
43520         * doc/posix-functions/iswalnum_l.texi: Likewise.
43521         * doc/posix-functions/iswalpha_l.texi: Likewise.
43522         * doc/posix-functions/iswblank_l.texi: Likewise.
43523         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43524         * doc/posix-functions/iswctype_l.texi: Likewise.
43525         * doc/posix-functions/iswdigit_l.texi: Likewise.
43526         * doc/posix-functions/iswgraph_l.texi: Likewise.
43527         * doc/posix-functions/iswlower_l.texi: Likewise.
43528         * doc/posix-functions/iswprint_l.texi: Likewise.
43529         * doc/posix-functions/iswpunct_l.texi: Likewise.
43530         * doc/posix-functions/iswspace_l.texi: Likewise.
43531         * doc/posix-functions/iswupper_l.texi: Likewise.
43532         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43533         * doc/posix-functions/isxdigit_l.texi: Likewise.
43534         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43535         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43536         * doc/posix-functions/strcoll_l.texi: Likewise.
43537         * doc/posix-functions/strfmon_l.texi: Likewise.
43538         * doc/posix-functions/strftime_l.texi: Likewise.
43539         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43540         * doc/posix-functions/strxfrm_l.texi: Likewise.
43541         * doc/posix-functions/tolower_l.texi: Likewise.
43542         * doc/posix-functions/toupper_l.texi: Likewise.
43543         * doc/posix-functions/towctrans_l.texi: Likewise.
43544         * doc/posix-functions/towlower_l.texi: Likewise.
43545         * doc/posix-functions/towupper_l.texi: Likewise.
43546         * doc/posix-functions/wcscoll_l.texi: Likewise.
43547         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43548         * doc/posix-functions/wctrans_l.texi: Likewise.
43549         * doc/posix-functions/wctype_l.texi: Likewise.
43550         * doc/glibc-functions/strptime_l.texi: Likewise.
43551         * doc/glibc-functions/strtod_l.texi: Likewise.
43552         * doc/glibc-functions/strtof_l.texi: Likewise.
43553         * doc/glibc-functions/strtol_l.texi: Likewise.
43554         * doc/glibc-functions/strtold_l.texi: Likewise.
43555         * doc/glibc-functions/strtoll_l.texi: Likewise.
43556         * doc/glibc-functions/strtoul_l.texi: Likewise.
43557         * doc/glibc-functions/strtoull_l.texi: Likewise.
43558         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43559         * doc/glibc-functions/wcstod_l.texi: Likewise.
43560         * doc/glibc-functions/wcstof_l.texi: Likewise.
43561         * doc/glibc-functions/wcstol_l.texi: Likewise.
43562         * doc/glibc-functions/wcstold_l.texi: Likewise.
43563         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43564         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43565         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43566
43567 2009-11-24  Bruno Haible  <bruno@clisp.org>
43568
43569         duplocale: Fix logic bug.
43570         * lib/duplocale.c: Don't include <langinfo.h>.
43571         (_NL_LOCALE_NAME): Remove macro.
43572         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43573         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43574
43575 2009-11-23  Jim Meyering  <meyering@redhat.com>
43576
43577         test-update-copyright: don't hard-code /usr/bin/perl
43578         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43579         perl to print the current year.  Gilles Espinasse reported that
43580         the replaced use of perl was hard-coded as /usr/bin/perl.
43581
43582 2009-11-23  Bruno Haible  <bruno@clisp.org>
43583
43584         duplocale: Add support for glibc 2.3.x.
43585         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43586
43587 2009-11-22  Bruno Haible  <bruno@clisp.org>
43588
43589         vasnprintf: Tiny optimization.
43590         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43591         MacOS X.
43592
43593 2009-11-22  Bruno Haible  <bruno@clisp.org>
43594
43595         Tests for module 'duplocale'.
43596         * modules/duplocale-tests: New file.
43597         * tests/test-duplocale.c: New file.
43598
43599         New module 'duplocale'.
43600         * m4/duplocale.m4: New file.
43601         * lib/locale.in.h (duplocale): New declaration.
43602         * lib/duplocale.c: New file.
43603         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43604         gl_LOCALE_H_DEFAULTS): New macros.
43605         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43606         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43607         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43608         REPLACE_DUPLOCALE.
43609         * modules/duplocale: New file.
43610         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43611
43612 2009-11-22  Bruno Haible  <bruno@clisp.org>
43613
43614         * modules/locale-tests (configure.ac): Test for newlocale function.
43615         * tests/test-locale.c: When the system has extended locale functions,
43616         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43617
43618         locale: Make locale_t available when possible.
43619         * lib/locale.in.h: Include <xlocale.h> when it exists.
43620         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43621         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43622         * modules/locale (Depends-on): Add extensions.
43623         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43624         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43625
43626 2009-11-22  Bruno Haible  <bruno@clisp.org>
43627
43628         Add comments.
43629         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43630         invocation.
43631         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43632         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43633         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43634
43635 2009-11-22  Bruno Haible  <bruno@clisp.org>
43636
43637         error: account for the possibility of freopen (stdout).
43638         * lib/error.c: Include <unistd.h>.
43639         (flush_stdout): New function, extracted from error and error_at_line.
43640         Determine stdout's fd dynamically.
43641         (error, error_at_line): Invoke flush_stdout.
43642         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43643         * modules/error (Depends-on): Add unistd.
43644
43645 2009-11-22  Bruno Haible  <bruno@clisp.org>
43646
43647         diffseq: Add comment.
43648         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43649
43650 2009-11-22  Jim Meyering  <meyering@redhat.com>
43651
43652         c-stack: avoid defining an unused static function
43653         * lib/c-stack.c (find_stack_direction): Do not define this function
43654         when it will not be used.
43655
43656         diffseq: avoid spurious gcc warnings
43657         * lib/diffseq.h (IF_LINT2): Define.
43658         (compareseq): Use it to initialize two members of "part".
43659         This avoids two used-uninitialized warnings.
43660
43661 2009-11-21  Jim Meyering  <meyering@redhat.com>
43662
43663         c-stack: avoid "ignoring return value of `write'" warning
43664         * lib/c-stack.c: Include "ignore-value.h".
43665         (die): Explicitly ignore each write return value.
43666         * modules/c-stack (Depends-on): Add ignore-value.
43667
43668 2009-11-21  Bruno Haible  <bruno@clisp.org>
43669
43670         diffseq: reduce scope of variable 'best'.
43671         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43672         variable, earlier used for two different purposes.
43673
43674 2009-11-21  Jim Meyering  <meyering@redhat.com>
43675
43676         diffseq: remove useless assignment to "best"
43677         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43678         assignment.  At that point "best" is already guaranteed to be zero.
43679
43680 2009-11-20  Eric Blake  <ebb9@byu.net>
43681
43682         build: mention ftp redirector in release announcements
43683         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43684         values that used to come from cfg.mk; mention FTP redirect URL.
43685         * build-aux/announce-gen: Mention the mirror list.
43686         Suggested by Karl Berry.
43687
43688         nanosleep: improve port to mingw
43689         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43691         LIB_NANOSLEEP, but only when needed.
43692         * modules/select (Link): Document LIBSOCKET.
43693         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43694         enough.
43695
43696         nanosleep: work around cygwin bug
43697         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43698         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43699         bug.
43700         (getnow): Delete, not needed.
43701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43702         LIB_CLOCK_GETTIME.
43703         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43704         clock-time, gettime.
43705         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43706         bug.
43707         * modules/nanosleep-tests: New test.
43708         * tests/test-nanosleep.c: New file.
43709
43710         sleep: work around cygwin bug
43711         * lib/sleep.c (rpl_sleep): Work around the bug.
43712         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43713         (gl_PREREQ_SLEEP): Delete unused macro.
43714         * modules/sleep (Depends-on): Add verify.
43715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43716         * modules/unistd (Makefile.am): Substitute witness.
43717         * lib/unistd.in.h (sleep): Update prototype.
43718         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43719         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43720         * modules/sleep-tests (Depends-on): Check for alarm.
43721
43722 2009-11-20  Jim Meyering  <meyering@redhat.com>
43723
43724         maint.mk: improve sc_prohibit_magic_number_exit
43725         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43726         so it does not match uses like System.exit(1).
43727         Add comments showing how to correct all offenders.
43728
43729 2009-11-19  Eric Blake  <ebb9@byu.net>
43730
43731         xalloc-die-tests: add missing library
43732         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43733
43734         test-xvasprintf: silence compiler warnings
43735         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43736         empty string from gcc.
43737
43738 2009-11-19  Jim Meyering  <meyering@redhat.com>
43739
43740         xfreopen: new module, from coreutils
43741         * modules/xfreopen: New module.
43742         * lib/xfreopen.c: New file.
43743         * lib/xfreopen.h: New file.
43744         * MODULES.html.sh (File stream based Input/Output"): Add it.
43745
43746 2009-11-19  Eric Blake  <ebb9@byu.net>
43747
43748         manywarnings: depend on warnings
43749         * modules/manywarnings (Depends-on): Add warnings.
43750
43751         build: avoid compiler warnings
43752         * lib/select.c (rpl_select): Delete unused variable.
43753         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43754
43755 2009-11-18  Eric Blake  <ebb9@byu.net>
43756
43757         tests: avoid false negative with --with-packager
43758         * tests/test-version-etc.sh: Discard packager information.
43759         * tests/test-argp-version-etc-1.sh: Likewise.
43760         Reported by Mike Frysinger.
43761
43762         utimens: fix regression on Solaris
43763         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43764         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43765         can only change fd timestamps via futimesat.  Instead, use an
43766         additional witness macro to avoid BSD bug.
43767         Reported by Jim Meyering.
43768
43769 2009-11-17  Eric Blake  <ebb9@byu.net>
43770
43771         usleep: use it to simplify tests
43772         * modules/stat-time-tests (Depends-on): Add usleep.
43773         (configure.ac): Drop usleep check.
43774         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43775         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43776         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43777         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43778         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43779         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43780         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43781         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43782         Likewise.
43783         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43784         * tests/test-lchown.h (nap): Likewise.
43785         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43786         * tests/test-stat-time.c (nap): Likewise.
43787         * tests/test-utimens-common.h (nap): Update comments.
43788
43789         usleep: new module
43790         * modules/usleep: New file.
43791         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43792         * lib/usleep.c (usleep): Likewise.
43793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43794         * modules/unistd (Makefile.am): Substitute witnesses.
43795         * lib/unistd.in.h (usleep): Add declaration.
43796         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43797         * MODULES.html.sh (Date and time): Likewise.
43798         * modules/usleep-tests (Depends-on): New test.
43799         * tests/test-usleep.c: New file.
43800
43801         chown: work around OpenBSD bug
43802         * lib/chown.c (rpl_chown): Work around the bug.
43803         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43804         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43805         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43806         * modules/chown (Depends-on): Add stdbool.
43807         * modules/lchown (Depends-on): Likewise.
43808         * doc/posix-functions/chown.texi (chown): Document the bug.
43809         * doc/posix-functions/lchown.texi (lchown): Likewise.
43810         * tests/test-lchown.h (test_chown): Relax test.
43811
43812         mkstemp: avoid conflict with C++ keyword template
43813         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43814         * lib/mkostemp.c (mkostemp): Likewise.
43815         * lib/mkostemps.c (mkostemps): Likewise.
43816         * lib/mkstemp.c (mkstemp): Likewise.
43817         * lib/mkstemps.c (mkstemps): Likewise.
43818
43819         xalloc-die-tests: optimize
43820         * tests/test-xalloc-die.sh: Reduce number of processes.
43821
43822 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43823
43824         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43825         patch from ludo@gnu.org (Ludovic Courtès).
43826
43827 2009-11-17  Jim Meyering  <meyering@redhat.com>
43828
43829         version-etc: use proper license string
43830         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43831         * modules/version-etc-fsf: Likewise.
43832
43833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43834
43835         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43836         printed to stdout.  Deal with EOL differences.
43837
43838 2009-11-17  Eric Blake  <ebb9@byu.net>
43839
43840         unsetenv: work around Solaris bug
43841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43842         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43843         Reported by Jim Meyering.
43844
43845         vasnprintf: avoid compiler warnings
43846         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43847         variables.
43848         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43849
43850 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43851
43852         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43853         settings since xalloc-die is no longer the self test,
43854         xalloc-die.sh is.
43855
43856 2009-11-17  Jim Meyering  <meyering@redhat.com>
43857
43858         test-xalloc-die.sh: make the code agree with the commit log
43859         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43860         at the end, just in case you happen to have a test-xalloc-die
43861         program in some other PATH directory.
43862
43863         test-xalloc-die.sh: fix a portability bug
43864         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43865         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43866         Otherwise, argv[0] (as often seen in diagnostics) would be too
43867         system-dependent, sometimes with, and sometimes without the leading "./".
43868
43869         version-etc-fsf: relax license to LGPLv3+
43870         * modules/version-etc-fsf (License): Relax license.
43871
43872 2009-11-16  Eric Blake  <ebb9@byu.net>
43873
43874         xalloc-die-tests: avoid printing null pointer
43875         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43876         shell script.
43877         * tests/test-xalloc-die.c (program_name): Declare.
43878         * tests/test-xalloc-die.sh (tmpfiles): New file.
43879
43880         setenv, unsetenv: work around various bugs
43881         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43882         (setenv) [HAVE_SETENV]: Work around bugs.
43883         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43884         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43885         for bugs.
43886         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43887         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43889         * modules/stdlib (Makefile.am): Update substitutions.
43890         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43891         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43892         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43893         * modules/setenv-tests: New test.
43894         * modules/unsetenv-tests: Likewise.
43895         * tests/test-setenv.c: New file.
43896         * tests/test-unsetenv.c: Likewise.
43897
43898 2009-11-16  Jim Meyering  <meyering@redhat.com>
43899
43900         version-etc: relax license to LGPLv3+
43901         * modules/version-etc (License): Relax license.
43902
43903         better AC_REQUIRE expanded-before-required-warning avoidance
43904         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43905         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43906         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43907         which is no longer needed.
43908
43909 2009-11-16  Eric Blake  <ebb9@byu.net>
43910
43911         test-freading: clean up temporary file
43912         * tests/test-freading.c (main): Remove file on success, and use
43913         ASSERT more liberally.
43914         Reported by Jim Meyering.
43915
43916 2009-11-16  Jim Meyering  <meyering@redhat.com>
43917
43918         avoid new AC_REQUIRE expanded-before-required warnings
43919         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43920         merely using it.
43921         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43922         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43923
43924 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43925
43926         * tests/test-xalloc-die.c: New file.
43927         * modules/xalloc-die-tests: New file.
43928         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43929         XFAIL_TESTS so it can be appended by modules.
43930
43931 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43932
43933         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43934         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43935
43936 2009-11-14  Eric Blake  <ebb9@byu.net>
43937
43938         fnmatch: avoid compiler warning
43939         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43940         to silence compiler warning about mismatch signedness in ?:.
43941         Reported by Robert Millan.
43942
43943         intprops: add double-inclusion guard
43944         * lib/intprops.h: Allow idempotent includes.
43945         Suggested by Bruce Korb.
43946
43947         openat: detect Solaris fchownat bug
43948         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43949         penalizing glibc chownat when only lchownat is broken.
43950         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43951         trailing slash bugs.
43952         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43953         * modules/openat-tests (Files): Include more files.
43954         (Depends-on): Add mgetgroups, sleep, stat-time.
43955         (configure.ac): Add additional checks.
43956         (Makefile.am): Build new test.
43957         * tests/test-fchownat.c: New file.
43958
43959         lchown: detect Solaris and FreeBSD bug
43960         * lib/lchown.c (rpl_lchown): Work around bug.
43961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43963         * modules/unistd (Makefile.am): Populate it.
43964         * lib/unistd.in.h (lchown): Update declaration.
43965         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43966         * modules/lchown-tests: New file.
43967         * tests/test-lchown.h (test_lchown): Likewise.
43968         * tests/test-lchown.c (main): Likewise.
43969
43970         chown: detect Solaris and FreeBSD bug
43971         * lib/chown.c (rpl_chown): Work around bug.
43972         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43973         (gl_PREREQ_CHOWN): Delete.
43974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43975         * modules/unistd (Makefile.am): Populate it.
43976         * lib/unistd.in.h (chown): Update declaration.
43977         * lib/lchown.c (chown): Update client.
43978         * modules/lchown (Depends-on): Add lstat.
43979         * doc/posix-functions/chown.texi (chown): Document the bug.
43980         * doc/posix-functions/getgroups.texi (getgroups): Document
43981         getgroups pitfall.
43982         * modules/chown-tests: New file.
43983         * tests/test-chown.h (test_chown): Likewise.
43984         * tests/test-chown.c (main): Likewise.
43985
43986 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43987
43988         gnulib-tool: correctly detect absence of m4 directories
43989         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43990
43991 2009-11-14  Jim Meyering  <meyering@redhat.com>
43992
43993         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43994         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43995
43996 2009-11-14  John W. Eaton  <jwe@gnu.org>
43997
43998         strftime.h: wrap function declaration in extern "C" block
43999         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44000
44001 2009-11-13  Eric Blake  <ebb9@byu.net>
44002
44003         getgroups: avoid compiler warning
44004         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44005
44006         getgroups: work around FreeBSD bug
44007         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44008         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44009         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44010         * tests/test-getgroups.c (main): Fix buffer overrun.
44011
44012         getgroups: avoid compilation failure
44013         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44014         * modules/getgroups (Depends-on): Add stdint.
44015
44016 2009-11-13  Jim Meyering  <meyering@redhat.com>
44017
44018         test-getgroups: avoid compilation failure
44019         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44020
44021 2009-11-13  Eric Blake  <ebb9@byu.net>
44022
44023         mgetgroups: new module, taken from coreutils
44024         * modules/mgetgroups: New file.
44025         * lib/mgetgroups.h: Likewise.
44026         * lib/mgetgroups.c (mgetgroups): Likewise.
44027         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44028         * MODULES.html.sh (Users and groups): Mention it.
44029
44030         getgroups: don't expose GETGROUPS_T to user
44031         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44032         an element at a time if GETGROUPS_T is wrong size.
44033         * lib/getugroups.h (getugroups): Change signature.
44034         * lib/unistd.in.h (getgroups): Likewise.
44035         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44036         signature needs fixing.
44037         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44038         AC_TYPE_GETGROUPS.
44039         * modules/group-member (Depends-on): Add getgroups.
44040         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44041         (group_member): Rely on getgroups replacement.
44042         * lib/getugroups.c (getugroups): Use gid_t.
44043         * tests/test-getgroups.c (main): Likewise.
44044         * NEWS: Mention the signature change.
44045         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44046         problem with signature.
44047         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44048         GETGROUPS_T is still useful for setgroups.
44049
44050         getgroups, getugroups: provide stubs for mingw
44051         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44052         * lib/getugroups.c (getugroups): Likewise.
44053         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44054         function.  Modernize replacement scheme.
44055         (gl_PREREQ_GETGROUPS): Delete.
44056         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44057         * modules/getgroups (configure.ac): Declare witness.
44058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44059         * modules/unistd (Depends-on): Substitute witness.
44060         * lib/unistd.in.h (getgroups): Declare replacement.
44061
44062         getgroups: avoid calling exit
44063         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44064         drop xalloc.
44065         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44066         dependencies.
44067         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44068         exiting, in the rare case of malloc failure.
44069
44070         getgroups: fix logic error
44071         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44072         has more than 20 groups.
44073         * modules/getgroups-tests: New test.
44074         * tests/test-getgroups.c: New file.
44075
44076 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44077
44078         * tests/test-base64.c: Improve.
44079
44080 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44081
44082         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44083         Blake <ebb9@byu.net>.
44084
44085 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44086
44087         * tests/test-xvasprintf.c: Add %s%s related checks.
44088
44089 2009-11-12  Eric Blake  <ebb9@byu.net>
44090
44091         version-etc: match standards.texi style
44092         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44093         and use <> only for URLs.
44094
44095 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44096
44097         fts: do not fail on a submount during traversal
44098         * lib/fts.c (fts_build): Read the stat info again after opening
44099         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44100         Original report at http://bugzilla.redhat.com/501848.
44101
44102 2009-11-12  Jim Meyering  <meyering@redhat.com>
44103
44104         bootstrap: sync from coreutils
44105         * build-aux/bootstrap (bootstrap_epilogue): New function.
44106         Use git_modules_config in one more place.  This make bootstrap's
44107         --gnulib-srcdir option more useful for testing.
44108
44109         bootstrap: generalize autoheader check
44110         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44111         AC_CONFIG_HEADERS.
44112
44113 2009-11-11  Eric Blake  <ebb9@byu.net>
44114
44115         mkfifoat: use new modules for Solaris and BSD bugs
44116         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44117         * lib/mkfifoat.c (mknodat): Split...
44118         * lib/mknodat.c (mknodat): ...into new file.
44119         * modules/mkfifoat (Files): Ship new file.
44120         (Depends-on): Add mkfifo, mknod.
44121         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44122         (Depends-on): Add symlink.
44123         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44124         redundant with test_mkfifo.h.
44125         (do_mkfifoat, do_mknodat): New helpers.
44126
44127         mknod: new module
44128         * modules/mknod: New file.
44129         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44130         * lib/mknod.c (mknod): Likewise.
44131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44132         defaults.
44133         * modules/sys_stat (Makefile.am): Substitute them.
44134         * lib/sys_stat.in.h (mknod): Declare replacement.
44135         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44136         Document it.
44137         * doc/posix-functions/mknod.texi (mknod): Likewise.
44138         * modules/mknod-tests: New test.
44139         * tests/test-mknod.c: Likewise.
44140
44141         mkfifo: new module
44142         * modules/mkfifo: New file.
44143         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44144         * lib/mkfifo.c (mkfifo): Likewise.
44145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44146         defaults.
44147         * modules/sys_stat (Makefile.am): Substitute them.
44148         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44149         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44150         Document it.
44151         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44152         * modules/mkfifo-tests: New test.
44153         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44154         from test-mkfifoat.c.
44155         * tests/test-mkfifo.c: New file.
44156
44157         readlink: detect FreeBSD bug
44158         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44159         slash on symlink.
44160         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44161         * tests/test-readlink.h (test_readlink): Enhance test.
44162
44163         symlink: detect FreeBSD bug
44164         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44165         slash on symlink.
44166         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44167         * tests/test-symlink.h (test_symlink): Enhance test.
44168
44169 2009-11-10  Eric Blake  <ebb9@byu.net>
44170
44171         link: detect FreeBSD bug
44172         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44173         symlink.
44174         * doc/posix-functions/link.texi (link): Document the bug.
44175         * tests/test-link.h (test_link): Enhance test.
44176         * tests/test-linkat.c (main): Update caller.
44177
44178         unlink, remove: detect FreeBSD bug
44179         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44180         slash on symlink.
44181         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44182         * doc/posix-functions/remove.texi (remove): Likewise.
44183         * tests/test-unlink.h (test_unlink): Enhance test.
44184         * tests/test-remove.c (main): Likewise.
44185
44186 2009-11-09  Eric Blake  <ebb9@byu.net>
44187
44188         rename: detect FreeBSD bug
44189         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44190         slash on symlink.
44191         * modules/renameat-tests (Depends-on): Add filenamecat.
44192         * tests/test-rename.h (test_rename): Allow one more errno.
44193         * tests/test-renameat.c (main): Likewise.
44194         * doc/posix-functions/rename.texi (rename): Document the bug.
44195
44196         open: detect FreeBSD bug
44197         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44198         symlink.
44199         * doc/posix-functions/open.texi (open): Document the bug.
44200         * doc/posix-functions/utimes.texi (utimes): Likewise.
44201         * tests/test-open.h (test_open): Add parameters, and test symlink
44202         handling.
44203         * tests/test-open.c (main): Adjust caller.
44204         * tests/test-fcntl-safer.c (main): Likewise.
44205         * modules/open-tests (Depends-on): Add stdbool, symlink.
44206         * modules/fcntl-safer-tests (Depends-on): Likewise.
44207         * tests/test-openat.c (main): Add test-open tests.
44208
44209         stat: detect FreeBSD bug
44210         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44211         symlink.
44212         * doc/posix-functions/stat.texi (stat): Document the bug.
44213         * tests/test-stat.h (test_stat_func): Add argument.
44214         * tests/test-stat.c (main): Adjust caller.
44215         * tests/test-fstatat.c (main): Likewise.
44216         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44217         Reported by Jim Meyering.
44218
44219 2009-11-09  James Youngman  <jay@gnu.org>
44220
44221         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44222         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44223
44224 2009-11-08  Jim Meyering  <meyering@redhat.com>
44225
44226         utimens: remove invalid futimesat call
44227         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44228         It used the file descriptor of the target file as the DIR_FD
44229         parameter and NULL as the file name.  That caused failure with
44230         errno == EFAULT on FreeBSD-8.0-rc2
44231
44232 2009-11-07  Eric Blake  <ebb9@byu.net>
44233
44234         fflush, freadseek: use fseeko, not fseek
44235         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44236         (clear_ungetc_buffer): Avoid potential problems on large files.
44237         * lib/freadseek.c (freadseek): Likewise.
44238         * modules/freadseek (Depends-on): Add fseeko.
44239         * modules/fseek (configure.ac): Set a witness.
44240         * tests/test-fflush.c (main): Use fseeko.
44241         * tests/test-fpurge.c (fseek): Disable link warning.
44242         * tests/test-freadable.c (fseek): Likewise.
44243         * tests/test-freading.c (fseek): Likewise.
44244         * tests/test-fseeko.c (fseek): Likewise.
44245         * tests/test-ftell.c (fseek): Likewise.
44246         * tests/test-ftello.c (fseek): Likewise.
44247         * tests/test-fwritable.c (fseek): Likewise.
44248         * tests/test-fwriting.c (fseek): Likewise.
44249
44250 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44251
44252         * modules/memchr (Depends-on): Drop getpagesize dependency.
44253
44254 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44255
44256         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44257         Reported by Ludovic Courtès.
44258         * build-aux/pmccabe2html: Improve example usage.
44259         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44260
44261 2009-11-06  Jim Meyering  <meyering@redhat.com>
44262
44263         do-release-commit-and-tag: New module.
44264         Automate the release-commit and tag process.
44265         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44266         * modules/do-release-commit-and-tag: New file.
44267         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44268
44269 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44270
44271         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44272         because test-select.c uses inet_pton.
44273
44274 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44275
44276         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44277         GETADDRINFO_LIB.  Bump serial number.
44278         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44279         Suggested by Eric Blake <ebb9@byu.net>.
44280
44281 2009-11-05  Eric Blake  <ebb9@byu.net>
44282
44283         strtod: detect darwin bug
44284         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44285         Reported by Leo Davis.
44286
44287         freopen-safer: new module
44288         * modules/freopen-safer: New module.
44289         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44290         * lib/freopen-safer.c (freopen_safer): New file.
44291         * lib/stdio-safer.h (freopen_safer): New declaration.
44292         * lib/stdio--.h (freopen): New override.
44293         * MODULES.html.sh (File stream based Input/Output): Mention it.
44294         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44295         freopen-safer module.
44296         * doc/posix-functions/stderr.texi (stderr): Likewise.
44297         * doc/posix-functions/stdin.texi (stdin): Likewise.
44298         * doc/posix-functions/stdout.texi (stdout): Likewise.
44299         * modules/freopen-safer-tests: New test.
44300         * tests/test-reopen-safer.c: New file.
44301
44302 2009-11-05  Jim Meyering  <meyering@redhat.com>
44303
44304         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44305         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44306
44307 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44308
44309         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44310
44311 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44312
44313         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44314
44315 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44316
44317         Fix link error.
44318         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44319         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44320
44321 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44322
44323         * tests/test-func.c: Also test value of __func__.
44324
44325 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44326
44327         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44328         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44329
44330 2009-11-05  Bruno Haible  <bruno@clisp.org>
44331
44332         Fix link error.
44333         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44334         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44335         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44336
44337 2009-11-05  Bruno Haible  <bruno@clisp.org>
44338
44339         Tests for module 'inet_pton'.
44340         * modules/inet_pton-tests: New file.
44341         * tests/test-inet_pton.c: New file.
44342
44343 2009-11-05  Bruno Haible  <bruno@clisp.org>
44344
44345         Tests for module 'inet_ntop'.
44346         * modules/inet_ntop-tests: New file.
44347         * tests/test-inet_ntop.c: New file.
44348
44349 2009-11-04  Eric Blake  <ebb9@byu.net>
44350
44351         stdlib-safer: wrap all mkstemp variants
44352         * modules/mkostemp (configure.ac): Set witness.
44353         * modules/mkostemps (configure.ac): Likewise.
44354         * modules/mkstemps (configure.ac): Likewise.
44355         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44356         (mkstemps_safer): Wrap more functions.
44357         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44358         wrapping.
44359         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44360         (mkstemps_safer): Implement the wrappers.
44361
44362         mkstemps, mkostemps: new modules
44363         * modules/mkostemps: New module.
44364         * modules/mkstemps: Likewise.
44365         * lib/mkostemps.c (mkostemps): New file.
44366         * lib/mkstemps.c (mkstemps): Likewise.
44367         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44368         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44370         * modules/stdlib (Makefile.am): Substitute them.
44371         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44372         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44373         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44374         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44375         * MODULES.html.sh (File system functions): Mention them.
44376
44377         tempname: resync from glibc
44378         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44379         same values for __GT_FILE as glibc.  Abort even when assertions
44380         are disabled.
44381         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44382         match its value otherwise.  Allow idempotent inclusion.
44383         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44384         * lib/mkostemp.c (mkostemp): Likewise.
44385         * lib/mkstemp.c (mkstemp): Likewise.
44386         * lib/tmpfile.c (tmpfile): Likewise.
44387         * NEWS: Document this.
44388
44389         utimens: fix use of futimens on older Linux
44390         * lib/utimens.c (fdutimens): Use updated, rather than original,
44391         timespec to avoid bug in older Linux kernel.
44392         Reported by Simon Josefsson.
44393
44394 2009-11-04  Bruno Haible  <bruno@clisp.org>
44395
44396         Make num_processors more flexible and consistent.
44397         * lib/nproc.h (enum nproc_query): New type.
44398         (num_processors): Add a 'query' argument.
44399         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44400         (num_processors): Add a 'query' argument. Test the value of the
44401         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44402         mingw, count the number of CPUs available for the current process.
44403         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44404         Check for sched_getaffinity and sched_getaffinity_np.
44405         * modules/nproc (Depends-on): Add c-ctype, extensions.
44406         * NEWS: Mention the change.
44407
44408 2009-11-03  Bruno Haible  <bruno@clisp.org>
44409
44410         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44411
44412 2009-11-03  Jim Meyering  <meyering@redhat.com>
44413
44414         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44415         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44416         if it is defined.
44417
44418 2009-11-02  Eric Blake  <ebb9@byu.net>
44419
44420         mktime, timegm: share common declaration
44421         * lib/mktime-internal.h: New file.
44422         * lib/mktime.c: Use it rather than open-coding a declaration.
44423         * lib/timegm.c: Likewise.
44424         * modules/mktime (Files): Ship it.
44425         * modules/timegm (Files): Likewise.
44426         Suggested by Bruno Haible.
44427
44428         test-update-copyright: update test to match script changes
44429         * tests/test-update-copyright.sh: Avoid hard-coding perl
44430         location.  Don't update *.bak created by earlier runs.
44431
44432 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44433             Simon Josefsson  <simon@josefsson.org>
44434             Bruno Haible  <bruno@clisp.org>
44435
44436         Fix link error on Solaris 8.
44437         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44438         also in libnsl. Define also INET_PTON_LIB.
44439         * modules/inet_pton (Link): New section.
44440
44441 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44442             Bruno Haible  <bruno@clisp.org>
44443
44444         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44445         * modules/inet_ntop (Link): New section.
44446         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44447
44448 2009-11-02  Eric Blake  <ebb9@byu.net>
44449
44450         maint: avoid compiler warnings in m4 macros
44451         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44453
44454 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44455
44456         * m4/pmccabe2html.m4: Remove file.
44457         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44458         function.  Change maintainer.
44459         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44460         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44461         Courtès).
44462
44463 2009-10-31  Eric Blake  <ebb9@byu.net>
44464
44465         fseeko: fix m4 regression
44466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44467         regression from 2009-10-27.
44468         Reported by Ralf Wildenhues.
44469
44470 2009-10-31  Jim Meyering  <meyering@redhat.com>
44471
44472         inttostr: aesthetics and improved (compile-time) safety
44473         Define inttype_is_signed rather than inttype_is_unsigned,
44474         since the sole use is via "#if inttype_is_signed".
44475         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44476         inttype_is_unsigned.
44477         * lib/offtostr.c (inttype_is_signed): Likewise.
44478         * lib/uinttostr.c (inttype_is_signed): Likewise.
44479         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44480         * lib/inttostr.c (inttostr): Use verify to cross-check the
44481         inttype_is_signed value and the signedness of the actual type.
44482         * modules/inttostr (Depends-on): Add verify.
44483
44484 2009-10-30  Eric Blake  <ebb9@byu.net>
44485
44486         build: avoid compiler warnings
44487         * lib/fchmodat.c (lchmod): Mark unused variables.
44488         * lib/getopt.c (_getopt_initialize): Likewise.
44489         * lib/mktime.c (__mktime_internal): Provide prototype.
44490         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44491         older gcc that do not understand #pragma GCC diagnostic.
44492         * lib/uinttostr.c (inttype_is_unsigned): Define.
44493         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44494
44495 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44496
44497         stat: fix compilation on AIX
44498         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44499         only see struct stat64.
44500
44501 2009-10-30  Eric Blake  <ebb9@byu.net>
44502
44503         exclude: make more robust
44504         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44505         rather than masking a coding bug.
44506         Suggested by Bruno Haible.
44507
44508 2009-10-30  Jim Meyering  <meyering@redhat.com>
44509
44510         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44511         Rather than putting #!/usr/bin/perl on the first line,
44512         start with a variant of what's recommended by "man perlrun" that
44513         invokes the first "perl" program from your shell's search path.
44514         * build-aux/gitlog-to-changelog: Replace #!... as above.
44515         Add a "Local Variables" perl mode setting.
44516         Prompted by a patch from Ludovic Courtès.
44517         Improved by Eric Blake.
44518         * build-aux/useless-if-before-free: Likewise.
44519         * build-aux/announce-gen: Likewise.
44520         * build-aux/update-copyright: Likewise.
44521
44522 2009-10-29  Eric Blake  <ebb9@byu.net>
44523
44524         filenamecat-lgpl: adjust clients
44525         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44526         filenamecat.
44527         * modules/renameat (Depends-on): Likewise.
44528
44529         filenamecat: split into filenamecat-lgpl
44530         * modules/filenamecat-lgpl: New module.
44531         * modules/filenamecat (Files): Move library-safe files into
44532         filenamecat-lgpl.
44533         (Depends-on): Add filenamecat-lgpl.
44534         (configure.ac): Declare witness.
44535         * lib/filenamecat.h (file_name_concat): Only declare when using
44536         GPL module.
44537         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44538         Move...
44539         * lib/filenamecat-lgpl.c: ...into new file.
44540         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44541         (gl_FILE_NAME_CONCAT): Use it.
44542         * MODULES.html.sh (File system functions): Mention new module.
44543
44544         argp: avoid memory leak
44545         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44546         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44547         base_name, since the latter malloc()s and can call exit().
44548         Leak introduced 2006-07-03.
44549
44550         dirname-lgpl: adjust clients that don't need full dirname
44551         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44552         * modules/filenamecat (Depends-on): Likewise.
44553         * modules/linkat (Depends-on): Likewise.
44554         * modules/mkancesdirs (Depends-on): Likewise.
44555         * modules/mkdir (Depends-on): Likewise.
44556         * modules/openat (Depends-on): Likewise.
44557         * modules/savewd (Depends-on): Likewise.
44558         * modules/rename (Depends-on): Likewise.
44559         (License): Relax license.
44560         * modules/mkdir-tests (Depends-on): Drop progname.
44561         (Makefile.am): Delete unneeded LDADD.
44562         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44563
44564         dirname: split into dirname-lgpl
44565         * modules/dirname-lgpl: New module.
44566         * modules/dirname (Files): Move library-safe files into
44567         dirname-lgpl.
44568         (Depends-on): Add dirname-lgpl.
44569         (configure.ac): Declare witness.
44570         * modules/double-slash-root (License): Relax license.
44571         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44572         module.
44573         * lib/dirname.c (dir_len, mdir_name): Move...
44574         * lib/dirname-lgpl.c: ...into new file.
44575         * lib/basename.c (last_component, base_len): Move...
44576         * lib/basename-lgpl.c: ...into new file.
44577         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44578         (gl_DIRNAME): Use it.
44579         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44580         Mention new module.
44581         * modules/dirname-tests (Depends-on): Add progname.
44582         * tests/test-dirname.c (program_name): Delete.
44583
44584         mkdir: make safe for libraries
44585         * modules/mkdir (Depends-on): Drop xalloc.
44586         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44587         exit.
44588
44589         tests: avoid some compiler warnings
44590         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44591         literals.
44592         * tests/test-memchr.c (main): Avoid type mismatch.
44593         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44594         * tests/test-base64.c (main): Likewise.
44595         * tests/test-getdelim.c (main): Likewise.
44596         * tests/test-gethostname.c (main): Likewise.
44597         * tests/test-getline.c (main): Likewise.
44598         * tests/test-netinet_in.c (main): Likewise.
44599         * tests/test-select.c (open_server_socket, main): Likewise.
44600         * tests/test-select-stdin.c (main): Likewise.
44601         * tests/test-sockets.c (main): Likewise.
44602         * tests/test-strsignal.c (main): Likewise.
44603         * tests/test-sys_select.c (main): Likewise.
44604         * tests/test-sys_socket.c (main): Likewise.
44605         * tests/test-u64.c (main): Likewise.
44606         * tests/test-xfprintf-posix.c (main): Likewise.
44607         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44608
44609         sockets: avoid compiler warning
44610         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44611
44612         maint: detect usage(1) and other suspicious exits
44613         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44614
44615 2009-10-29  Jim Meyering  <meyering@redhat.com>
44616
44617         timespec: long-to-int truncation could make timespec_cmp malfunction
44618         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44619         a multiple of 2^32 nanoseconds as no difference.
44620
44621 2009-10-28  Jim Meyering  <meyering@redhat.com>
44622
44623         fprintftime: wrap macro code argument in "do {...} while(0)"
44624         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44625         cpy macro must be a statement that can be followed by a semicolon.
44626         Now that the else clause contains a comment and is hence longer
44627         than one line, I require curly braces.  That in turn requires
44628         that we wrap this code block in the standard do...while(0).
44629
44630         fprintftime: remove stray semicolon from previous change
44631         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44632
44633         fprintftime: avoid a warning about ignored fwrite return value
44634         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44635         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44636         that is unsafe.
44637         * modules/fprintftime (Depends-on): Add ignore-value.
44638
44639         exclude: avoid an unwarranted warning
44640         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44641
44642 2009-10-27  Eric Blake  <ebb9@byu.net>
44643
44644         fseek: avoid compilation failure when fflush is replaced
44645         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44646         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44647         module is in use.
44648         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44649         module is not in use; since REPLACE_FSEEK worked otherwise.
44650         (GNULIB_FTELLO): Likewise for ftell.
44651         Reported by Ian Beckwith and others.
44652
44653 2009-10-27  Bruno Haible  <bruno@clisp.org>
44654
44655         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44656         Reported by Jim Meyering.
44657
44658 2009-10-27  Jim Meyering  <jim@meyering.net>
44659             Bruno Haible  <bruno@clisp.org>
44660
44661         Avoid warning despite dropping the return value of fwrite.
44662         * lib/unicodeio.c: Include ignore-value.h.
44663         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44664         * modules/unicodeio (Depends-on): Add ignore-value.
44665
44666 2009-10-26  Eric Blake  <ebb9@byu.net>
44667
44668         areadlinkat: fix fallback path
44669         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44670         pointer and zero.
44671
44672 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44673
44674         Use a better IO block size for modern systems
44675         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44676         * lib/md2.c: Likewise.
44677         * lib/md4.c: Likewise.
44678         * lib/md5.c: Likewise.
44679         * lib/sha1.c: Likewise.
44680         * lib/sha256.c: Likewise.
44681         * lib/sha512.c: Likewise.
44682
44683 2009-10-22  Eric Blake  <ebb9@byu.net>
44684
44685         tests: avoid several compiler warnings
44686         * tests/test-getcwd.c (main): Avoid buffer underflow.
44687         * tests/test-getdate.c (main): String literals are not safe with
44688         putenv, so use setenv.  Declare unused argument.
44689         * modules/getdate-tests (Depends-on): Add setenv.
44690         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44691         problems with string literals in char *.
44692         * tests/test-hash.c (main): Avoid shadowing declaration.
44693         (insert_new): Treat string literals as char const *.
44694         * tests/test-getopt.h (test_getopt): Likewise.
44695         (getopt_loop): Alter types to minimize casting elsewhere.
44696         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44697         (test_getopt_long_posix): Likewise.
44698         (do_getopt_long): Add wrapper to minimize casting.
44699         * tests/test-atexit.c (clear_temp_file): Use void.
44700         * tests/test-areadlink-with-size.c (main): Declare unused
44701         arguments.
44702         * tests/test-areadlink.c (main): Likewise.
44703         * tests/test-areadlinkat-with-size.c (main): Likewise.
44704         * tests/test-areadlinkat.c (main): Likewise.
44705         * tests/test-canonicalize-lgpl.c (main): Likewise.
44706         * tests/test-canonicalize.c (main): Likewise.
44707         * tests/test-dirent-safer.c (main): Likewise.
44708         * tests/test-dirname.c (main): Likewise.
44709         * tests/test-dup2.c (main): Likewise.
44710         * tests/test-fchdir.c (main): Likewise.
44711         * tests/test-fcntl-h.c (main): Likewise.
44712         * tests/test-fcntl-safer.c (main): Likewise.
44713         * tests/test-fdopendir.c (main): Likewise.
44714         * tests/test-fdutimensat.c (main): Likewise.
44715         * tests/test-fflush.c (main): Likewise.
44716         * tests/test-filenamecat.c (main): Likewise.
44717         * tests/test-filevercmp.c (main): Likewise.
44718         * tests/test-fopen-safer.c (main): Likewise.
44719         * tests/test-fopen.c (main): Likewise.
44720         * tests/test-fpending.c (main): Likewise.
44721         * tests/test-fpurge.c (main): Likewise.
44722         * tests/test-freading.c (main): Likewise.
44723         * tests/test-fstatat.c (main): Likewise.
44724         * tests/test-fsync.c (main): Likewise.
44725         * tests/test-futimens.c (main): Likewise.
44726         * tests/test-getndelim2.c (main): Likewise.
44727         * tests/test-gettimeofday.c (main): Likewise.
44728         * tests/test-getopt.c (main): Likewise.
44729         * tests/test-i-ring.c (main): Likewise.
44730         * tests/test-inttypes.c (main): Likewise.
44731         * tests/test-link.c (main): Likewise.
44732         * tests/test-lstat.c (main): Likewise.
44733         * tests/test-math.c (main): Likewise.
44734         * tests/test-md5.c (main): Likewise.
44735         * tests/test-memchr2.c (main): Likewise.
44736         * tests/test-memrchr.c (main): Likewise.
44737         * tests/test-mkdir.c (main): Likewise.
44738         * tests/test-mkdirat.c (main): Likewise.
44739         * tests/test-mkfifoat.c (main): Likewise.
44740         * tests/test-open.c (main): Likewise.
44741         * tests/test-openat-safer.c (main): Likewise.
44742         * tests/test-openat.c (main): Likewise.
44743         * tests/test-quotearg.c (main): Likewise.
44744         * tests/test-rawmemchr.c (main): Likewise.
44745         * tests/test-readlink.c (main): Likewise.
44746         * tests/test-remove.c (main): Likewise.
44747         * tests/test-rename.c (main): Likewise.
44748         * tests/test-renameat.c (main): Likewise.
44749         * tests/test-rmdir.c (main): Likewise.
44750         * tests/test-sha1.c (main): Likewise.
44751         * tests/test-signal.c (main): Likewise.
44752         * tests/test-sigaction.c (main): Likewise.
44753         * tests/test-stat.c (main): Likewise.
44754         * tests/test-stat-time.c (main): Likewise.
44755         * tests/test-stddef.c (main): Likewise.
44756         * tests/test-stdint.c (main): Likewise.
44757         * tests/test-stdio.c (main): Likewise.
44758         * tests/test-stdlib.c (main): Likewise.
44759         * tests/test-strchrnul.c (main): Likewise.
44760         * tests/test-strerror.c (main): Likewise.
44761         * tests/test-string.c (main): Likewise.
44762         * tests/test-strtod.c (main): Likewise.
44763         * tests/test-strverscmp.c (main): Likewise.
44764         * tests/test-symlink.c (main): Likewise.
44765         * tests/test-symlinkat.c (main): Likewise.
44766         * tests/test-sys_stat.c (main): Likewise.
44767         * tests/test-sys_time.c (main): Likewise.
44768         * tests/test-time.c (main): Likewise.
44769         * tests/test-unistd.c (main): Likewise.
44770         * tests/test-unlink.c (main): Likewise.
44771         * tests/test-unlinkat.c (main): Likewise.
44772         * tests/test-utimens.c (main): Likewise.
44773         * tests/test-utimensat.c (main): Likewise.
44774         * tests/test-version-etc.c (main): Likewise.
44775         * tests/test-wchar.c (main): Likewise.
44776         * tests/test-wctype.c (main): Likewise.
44777         * tests/test-xprintf-posix.c (main): Likewise.
44778         * tests/test-posixtm.c (main): Likewise.
44779         (STREQ): Delete unused macro.
44780         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44781         shadowed variables.
44782         * tests/test-memchr.c (main): Likewise.
44783
44784 2009-10-21  Eric Blake  <ebb9@byu.net>
44785
44786         areadlinkat: avoid failure on older glibc
44787         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44788         rather than mis-comparing 0 against FUNC_RESULT of char*.
44789
44790 2009-10-21  Bruno Haible  <bruno@clisp.org>
44791
44792         * modules/stpncpy (License): Relicense under LGPLv2+.
44793         Reported by David Lutterkort <lutter@redhat.com>.
44794
44795 2009-10-20  Eric Blake  <ebb9@byu.net>
44796
44797         utimensat: work around Solaris 9 bug
44798         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44799         has trailing slash bugs.
44800         * tests/test-lutimens.h (test_lutimens): Enhance test.
44801         * tests/test-utimens.h (test_utimens): Likewise.
44802         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44803         * doc/posix-functions/utimes.texi (utimes): Likewise.
44804         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44805         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44806         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44807         * doc/posix-functions/futimens.texi (futimens): Likewise.
44808
44809         fdutimensat: new module
44810         * modules/fdutimensat: New file.
44811         * lib/fdutimensat.c (fdutimensat): Likewise.
44812         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44813         * MODULES.html.sh (File system functions): Mention module.
44814         * modules/fdutimensat-tests: New test.
44815         * tests/test-fdutimensat.c: Likewise.
44816
44817         doc: regenerate INSTALL
44818         * doc/INSTALL: Reflect recent autoconf update.
44819         * doc/INSTALL.ISO: Likewise.
44820         * doc/INSTALL.UTF-8: Likewise.
44821
44822 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44823
44824         acl: warn if ACL support is not detected
44825         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44826
44827 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44828
44829         * lib/nproc.h: Add extern "C" block for C++.
44830
44831 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44832             Bruno Haible  <bruno@clisp.org>
44833
44834         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44835         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44836         * doc/posix-functions/isalpha.texi: Likewise.
44837         * doc/posix-functions/isblank.texi: Likewise.
44838         * doc/posix-functions/iscntrl.texi: Likewise.
44839         * doc/posix-functions/isdigit.texi: Likewise.
44840         * doc/posix-functions/isgraph.texi: Likewise.
44841         * doc/posix-functions/islower.texi: Likewise.
44842         * doc/posix-functions/isprint.texi: Likewise.
44843         * doc/posix-functions/ispunct.texi: Likewise.
44844         * doc/posix-functions/isspace.texi: Likewise.
44845         * doc/posix-functions/isupper.texi: Likewise.
44846         * doc/posix-functions/isxdigit.texi: Likewise.
44847
44848 2009-10-18  Bruno Haible  <bruno@clisp.org>
44849
44850         Tests for module 'isblank'.
44851         * modules/isblank-tests: New file.
44852         * tests/test-isblank.c: New file.
44853
44854         New module 'isblank'.
44855         * lib/isblank.c: New file.
44856         * m4/isblank.m4: New file.
44857         * modules/isblank: New file.
44858         * doc/posix-functions/isblank.texi: Mention the new module.
44859
44860 2009-10-18  Bruno Haible  <bruno@clisp.org>
44861
44862         New module 'ctype'.
44863         * lib/ctype.in.h: New file.
44864         * m4/ctype.m4: New file.
44865         * modules/ctype: New file.
44866         * doc/posix-headers/ctype.texi: Mention the new module.
44867
44868 2009-10-18  Jim Meyering  <meyering@redhat.com>
44869
44870         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44871         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44872         right after its initialization, rather than farther down.
44873         Keeping these in close proximity makes it easier to ensure
44874         that each such variable is initialized.  E.g.,
44875
44876             LIB_CLOCK_GETTIME=
44877             AC_SUBST([LIB_CLOCK_GETTIME])
44878
44879         This change also increments these serial numbers.
44880         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44883
44884 2009-10-18  Bruno Haible  <bruno@clisp.org>
44885
44886         Don't let environment variables perturb build.
44887         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44888         (gl_PREREQ_GETHRXTIME): ... not here.
44889
44890 2009-10-18  Bruno Haible  <bruno@clisp.org>
44891
44892         Avoid symlink attack in localcharset module.
44893         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44894         (O_NOFOLLOW): Define fallback.
44895         (get_charset_aliases): Don't open the file if it is a symbolic link.
44896         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44897         gl_FCNTL_H.
44898         (gl_FCNTL_H): Require it.
44899         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44900         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44901         Reported by Fergal Glynn <fglynn@veracode.com>.
44902
44903 2009-10-18  Bruno Haible  <bruno@clisp.org>
44904
44905         Implement nproc for mingw.
44906         * lib/nproc.c: Include <windows.h>
44907         (num_processors): On native Windows platforms, try GetSystemInfo.
44908
44909 2009-10-18  Bruno Haible  <bruno@clisp.org>
44910
44911         Implement nproc for IRIX.
44912         * lib/nproc.c: Include <sys/sysmp.h>.
44913         (num_processors): On IRIX systems, try sysmp.
44914         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44915
44916 2009-10-18  Bruno Haible  <bruno@clisp.org>
44917
44918         Implement nproc for HP-UX.
44919         * lib/nproc.c: Include <sys/pstat.h>
44920         (num_processors): On HP-UX systems, try pstat_getdynamic.
44921         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44922         pstat_getdynamic.
44923
44924 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44925             Bruno Haible  <bruno@clisp.org>
44926
44927         Implement nproc for NetBSD, OpenBSD.
44928         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44929         (ARRAY_SIZE): New macro.
44930         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44931         * m4/nproc.m4: New file.
44932         * modules/nproc (Files): Add m4/nproc.m4.
44933         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44934         (Makefile.am): Instead, augment lib_SOURCES.
44935
44936 2009-10-18  Bruno Haible  <bruno@clisp.org>
44937
44938         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44939         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44940         sys/param.h.
44941
44942 2009-10-16  Eric Blake  <ebb9@byu.net>
44943
44944         utimensat: new module
44945         * modules/utimensat: New file.
44946         * lib/utimensat.c (utimensat): Likewise.
44947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44948         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44949         so we can work around Linux bugs.
44950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44951         * modules/sys_stat (Makefile.am): Substitute them.
44952         * lib/sys_stat.in.h (utimensat): Declare it.
44953         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44954         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44955         * modules/utimensat-tests: New test.
44956         * tests/test-utimensat.c: Likewise.
44957
44958         utimens: let lutimens work on non-symlinks
44959         * lib/utimens.c (lutimens): Fall back to utimens rather than
44960         failing with ENOSYS, when file is not a symlink.
44961         (utimens): Reduce redirection.
44962         * tests/test-lutimens.h (test_lutimens): Update test to cover
44963         non-symlinks.
44964         * tests/test-utimens.h (test_utimens): Update test to cover
44965         symlinks.
44966         * tests/test-utimens.c (main): Update caller.
44967
44968         utimens: cache whether utimensat syscall works
44969         * lib/utimens.c (utimensat_works_really): New cache variable.
44970         (fdutimens, lutimens): Use it to avoid failing syscall.
44971
44972         test-stat-time, test-utimens: improve portability
44973         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44974         ext4 on alpha, and for cygwin.
44975         * tests/test-utimens-common.h: New file.
44976         (nap): Factor delays into single function.
44977         * tests/test-lutimens.h (test_lutimens): Use new header.
44978         * tests/test-futimens.h (test_futimens): Likewise.
44979         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44980         timestamps to occur from same machine, as was done previously for
44981         test_utimens.
44982         * modules/utimens-tests (Files): Ship new file.
44983         * modules/futimens-tests (Files): Likewise.
44984         Reported in part by Jim Meyering.
44985
44986         sys_stat: sort replacement declarations
44987         * lib/sys_stat.in.h: Sort declarations.
44988         * lib/futimens.c (futimens): Fix typo.
44989
44990 2009-10-15  Jim Meyering  <meyering@redhat.com>
44991
44992         don't let environment settings perturb build
44993         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44994         could cause a configure-time and/or build-time malfunction.
44995         Typically, a configure-time function-in-library test is performed
44996         via code like this:
44997
44998           LIB_VAR=
44999           AC_SUBST([LIB_VAR])
45000           prefix_saved_LIBS=$LIBS
45001             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45002                        [test "$ac_cv_search_FUNC" = "none required" ||
45003                         LIB_VAR=$ac_cv_search_FUNC])
45004           LIBS=$prefix_saved_LIBS
45005
45006         However, in each of the files affected by this change, the LIB_VAR=
45007         initialization was omitted.  Thus, when set in the environment, its
45008         value would propagate into generated Makefiles when FUNC is not found
45009         in LIB_NAME.
45010         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45011         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45013
45014 2009-10-14  Eric Blake  <ebb9@byu.net>
45015
45016         fchdir: avoid infinite recursion in mingw
45017         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45018         recursing.
45019
45020         test-stat-time: port to mingw
45021         * tests/test-stat-time.c (force_unlink): Return a value.
45022         (test_ctime) [W32]: Fix compilation error.
45023         (nap): Don't call usleep with too large an argument.  Use
45024         force_unlink.
45025         * doc/pastposix-functions/usleep.texi (usleep): Document the
45026         portability issue.
45027
45028 2009-10-13  Jim Meyering  <meyering@redhat.com>
45029
45030         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45031         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45032         * modules/pipe-filter-ii: Likewise.
45033         * modules/sys_socket-tests: Likewise.
45034         * modules/tsearch-tests: Likewise.
45035         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45036         (check): Depend on it.
45037
45038 2009-10-12  Eric Blake  <ebb9@byu.net>
45039
45040         utimens-tests: port to NFS file systems
45041         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45042         comparisons to avoid spurious failures from timestamp drift
45043         between NFS machines.
45044
45045 2009-10-12  Eric Blake  <ebb9@byu.net>
45046
45047         stat-time-tests: minor cleanups
45048         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45049         * tests/test-stat-time.c (nap): Separate assignment from call.
45050         Suggested by Paolo Bonzini and Bruno Haible.
45051
45052         sys_stat: guarantee struct timespec
45053         * lib/sys_stat.in.h (includes): Always include <time.h>
45054         * modules/sys_stat (Depends-on): Add time.
45055         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45056         mode_t permission values.
45057         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45058         get at subsecond timestamps.
45059
45060 2009-10-10  Eric Blake  <ebb9@byu.net>
45061
45062         futimens: new module
45063         * modules/futimens: New file.
45064         * lib/futimens.c (futimens): Likewise.
45065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45066         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45067         we can work around Linux bugs.
45068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45069         * modules/sys_stat (Makefile.am): Substitute them.
45070         * lib/sys_stat.in.h (futimens): Declare it.
45071         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45072         * doc/posix-functions/futimens.texi (futimens): Likewise.
45073         * modules/futimens-tests: New test.
45074         * tests/test-futimens.c: Likewise.
45075
45076         utimens: introduce fdutimens
45077         * lib/utimens.h (fdutimens): New prototype.
45078         * lib/utimens.c (gl_futimens): Move guts...
45079         (fdutimens): ...to new interface.
45080         * tests/test-utimens.c (do_fdutimens): Use it.
45081
45082         utimens: add UTIME_NOW and UTIME_OMIT support
45083         * lib/utimens.c (validate_timespec, update_timespec): New helper
45084         functions.
45085         (gl_futimens, lutimens): Use them.
45086         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45087         stdbool, sys_stat.
45088         (Link): Mention resulting library dependency.
45089         * modules/utimecmp (Link): Likewise.
45090         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45091         (Makefile.am): Pick up library dependency.
45092         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45093         definition.
45094         * tests/test-sys_stat.c: Test the definitions.
45095         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45096         * NEWS: Document library dependency.
45097
45098         utimecmp: support symlink timestamps
45099         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45100         hashing when possible.  Use pathconf when available.
45101         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45102         * modules/utimecmp (Depends-on): Add lstat.
45103
45104         utimens: add lutimens interface
45105         * lib/utimens.c (lutimens): New function.
45106         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45107         * lib/utimens.h (lutimens): Declare new interface.
45108         * tests/test-utimens.c (main): Enhance test.
45109         * tests/test-lutimens.h (test_lutimens): New file.
45110         * modules/utimens-tests (Files): Distribute it.
45111         (Depends-on): Add symlink.
45112         (configure.ac): Check for usleep.
45113
45114         utimens: validate futimens usage
45115         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45116         fewer syscalls on failure later on.  Avoid compiler warning on
45117         mingw.
45118         * modules/utimens (Depends-on): Add dup2.
45119
45120         utimens: add test
45121         * modules/utimens-tests: New test.
45122         * tests/test-utimens.h: New file.
45123         * tests/test-futimens.h: Likewise.
45124         * tests/test-utimens.c: Likewise.
45125
45126         doc: mention timestamp portability issues
45127         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45128         instead.
45129         * doc/posix-functions/utime.texi (utime): Likewise.
45130         * doc/posix-functions/utimes.texi (utimes): Likewise.
45131         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45132         instead.
45133         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45134         module.
45135         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45136         Mention weakness with symlink timestamps.
45137         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45138         to utimensat/futimens instead.
45139         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45140
45141         test-dup2: enhance test
45142         * tests/test-dup2.c (main): Also check AT_FDCWD.
45143
45144         test-stat-time: avoid more spurious failures
45145         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45146         xfs; and avoid race if the two timestamps cross quantization edge.
45147
45148         relocatable: prefer 'file system' over 'filesystem'
45149         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45150         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45151         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45152         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45153         * lib/relocatable.c (compute_curr_prefix): Likewise.
45154
45155 2009-10-10  Jim Meyering  <meyering@redhat.com>
45156
45157         stat-time-tests: check for the usleep function
45158         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45159
45160 2009-10-10  Bruno Haible  <bruno@clisp.org>
45161
45162         * modules/xnanosleep: Put the Link section after the Include section.
45163
45164 2009-10-09  Eric Blake  <ebb9@byu.net>
45165
45166         dup2: work around FreeBSD 6.1 bug
45167         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45168         * doc/posix-functions/dup2.texi (dup2): Document it.
45169         Reported by Nelson H. F. Beebe and Jim Meyering.
45170
45171         test-stat-time: port to buggy NFS clients
45172         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45173         (test_ctime): Also skip test if mtime and ctime are skewed.
45174
45175         maint: prefer 'file system' over 'filesystem'
45176         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45177         * doc/posix-functions/lstat.texi (lstat): Likewise.
45178         * lib/file-has-acl.c (file_has_acl): Likewise.
45179         * lib/fwriteerror.c [TEST]: Likewise.
45180         * tests/test-areadlink.h (test_areadlink): Likewise.
45181         * tests/test-areadlinkat-with-size.c (main): Likewise.
45182         * tests/test-areadlinkat.c (main): Likewise.
45183         * tests/test-canonicalize-lgpl.c (main): Likewise.
45184         * tests/test-canonicalize.c (main): Likewise.
45185         * tests/test-fstatat.c (main): Likewise.
45186         * tests/test-linkat.c (main): Likewise.
45187         * tests/test-lstat.h (test_lstat_func): Likewise.
45188         * tests/test-mkdir.h (test_mkdir): Likewise.
45189         * tests/test-readlink.h (test_readlink): Likewise.
45190         * tests/test-remove.c (main): Likewise.
45191         * tests/test-rename.h (test_rename): Likewise.
45192         * tests/test-renameat.c (main): Likewise.
45193         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45194         * tests/test-symlink.h (test_symlink): Likewise.
45195         * tests/test-symlinkat.c (main): Likewise.
45196         * tests/test-unlink.h (test_unlink_func): Likewise.
45197         * tests/test-unlinkat.c (main): Likewise.
45198
45199         maint: make realtime library usage explicit
45200         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45201         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45202         * modules/settime (Link): Likewise.
45203         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45204
45205         test-stat-time: speed up execution
45206         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45207         warning on mingw.
45208         (nap): New helper function.
45209         (prepare_test): Use it to reduce sleep time.
45210         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45211         execution.
45212         * modules/stat-time-tests (configure.ac): Check for usleep.
45213
45214 2009-10-09  Jim Meyering  <meyering@redhat.com>
45215
45216         selinux-h: always use getfilecon wrappers
45217         * lib/getfilecon.c: New file.
45218         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45219         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45220         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45221         (fgetfilecon): Provide a stub.
45222         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45223         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45224         file unconditionally.
45225         When <selinux/selinux.h> is found, arrange to use wrappers.
45226         * modules/selinux-h (Files): Add getfilecon.c.
45227         (Makefile.am): Substitute include-next-related bits
45228         into the now-always-generated selinux/selinux.h file.
45229         * doc/glibc-functions/lgetfilecon.texi: New file.
45230         * doc/glibc-functions/fgetfilecon.texi: New file.
45231         * doc/glibc-functions/getfilecon.texi: New file.
45232         * doc/glibc-functions/getfilecon-desc.texi: New file.
45233         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45234         which to pull in the new files.
45235         * MODULES.html.sh (Misc): Add selinux-h.
45236
45237 2009-10-08  Jim Meyering  <meyering@redhat.com>
45238
45239         unistd: fix comment typo
45240         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45241
45242 2009-10-08  Eric Blake  <ebb9@byu.net>
45243
45244         areadlink: use SIZE_MAX consistently
45245         * modules/areadlink (Depends-on): Add stdint.
45246         * modules/areadlink-with-size (Depends-on): Likewise.
45247         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45248         gives NULL; drop sys/types, since unistd gives size_t; and add
45249         stdint for SIZE_MAX.
45250         (SIZE_MAX): Rely on headers.
45251         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45252         and add stdint.
45253         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45254         (SIZE_MAX): Likewise.
45255         (INITIAL_BUF_SIZE): Turn into enum.
45256         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45257
45258 2009-10-08  Jim Meyering  <meyering@redhat.com>
45259
45260         areadlinkat: avoid compilation failure
45261         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45262         Fix typo in comment.
45263
45264 2009-10-07  Eric Blake  <ebb9@byu.net>
45265
45266         areadlinkat-with-size: new module
45267         * modules/areadlinkat-with-size: New module.
45268         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45269         * lib/areadlink.h (areadlinkat): Declare it.
45270         * MODULES.html.sh (File system functions): Mention it.
45271         * modules/areadlinkat-with-size-tests: New test.
45272         * tests/test-areadlinkat-with-size.c: New file.
45273
45274         xreadlinkat: new module
45275         * modules/xreadlinkat: New module.
45276         * lib/xreadlinkat.c (xreadlinkat): New file.
45277         * lib/xreadlink.h (xreadlinkat): Declare it.
45278         * MODULES.html.sh (File system functions): Mention it.
45279
45280         areadlinkat: new module
45281         * lib/at-func.c (FUNC_FAIL): New define.
45282         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45283         * modules/areadlinkat: New module.
45284         * lib/linkat.c (areadlinkat): Move...
45285         * lib/areadlinkat.c (areadlinkat): ...to new file.
45286         * lib/areadlink.h (areadlinkat): Declare it.
45287         * modules/linkat (Depends-on): Add areadlinkat.
45288         * MODULES.html.sh (File system functions): Mention it.
45289         * modules/areadlinkat-tests: New test.
45290         * tests/test-areadlinkat.c: New file.
45291
45292         areadlink, areadlink-with-size: add tests
45293         * modules/areadlink-tests: New test.
45294         * modules/areadlink-with-size-tests: Likewise.
45295         * tests/test-areadlink.h: New file.
45296         * tests/test-areadlink.c: Likewise.
45297         * tests/test-areadlink-with-size.c: Likewise.
45298
45299         maint: minor cleanups
45300         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45301         _UNUSED_PARAMETER_ instead.
45302         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45303         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45304         * modules/linkat-tests (Files): Distribute test-link.h.
45305
45306         openat, utimens: whitespace cleanup
45307         * lib/openat.c: Prefer space throughout, rather than mix of 8
45308         spaces vs. tabs.
45309         * lib/at-func.c: Likewise.
45310         * lib/utimens.c: Likewise.
45311
45312         openat: avoid using wrong fd
45313         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45314         working directory chooses same fd.
45315         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45316
45317         mkdir, mkdirat: fix cygwin 1.5.x bug
45318         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45319         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45320         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45321         bug.
45322         (gl_PREREQ_MKDIR): Delete unused macro.
45323         * modules/mkdir (Files): Track file rename.
45324         (configure.ac): Update macro name.
45325         * modules/openat (Depends-on): Add mkdir.
45326         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45327
45328         mkdir, mkdirat: add tests
45329         * modules/mkdir-tests: New test.
45330         * tests/test-mkdir.h: New file.
45331         * tests/test-mkdir.c: Likewise.
45332         * tests/test-mkdirat.c: Likewise.
45333         * modules/openat-tests (Files): Add new files.
45334         (Makefile.am): Run new test.
45335
45336 2009-10-06  Eric Blake  <ebb9@byu.net>
45337
45338         doc: tweak *at function documentation
45339         * doc/posix-functions/faccessat.texi (faccessat): Mention
45340         known issue with replacement.
45341         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45342         * doc/posix-functions/linkat.texi (linkat): Likewise.
45343         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45344         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45345         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45346         * doc/posix-functions/renameat.texi (renameat): Likewise.
45347         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45348
45349         openat: fix GNU/Hurd bug in unlinkat
45350         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45351         broken.
45352         * doc/posix-functions/unlink.texi (unlink): Document this.
45353         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45354
45355         fdopendir: fix GNU/Hurd bug
45356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45357         allowing non-directory fds.
45358         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45360         * modules/dirent (Makefile.am): Substitute it.
45361         * lib/dirent.in.h (fdopendir): Declare replacement.
45362         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45363         * tests/test-fdopendir.c (main): Test something other than
45364         /dev/null, since on Hurd that behaves like a directory.
45365
45366         test-symlink: port to GNU/Hurd
45367         * tests/test-symlink.h (test_symlink): Relax expected errno.
45368
45369         doc: tweak more cygwin information
45370         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45371         now compatible with glibc.
45372         * doc/posix-functions/getopt.texi (getopt): Likewise.
45373
45374         getopt-gnu: add another test
45375         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45376         guarantee behavior relied on by m4.
45377         * tests/test-getopt.c (main): Use it.
45378         * modules/getopt-posix-tests (Depends-on): Add setenv.
45379         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45380
45381         getopt: fix compilation on darwin
45382         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45383         include.
45384         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45385         Reported by Ludovic Courtès.
45386
45387 2009-10-06  Bruno Haible  <bruno@clisp.org>
45388
45389         * modules/size_max (Description): Discourage its use.
45390         Reported by Simon Josefsson.
45391
45392 2009-10-06  Jim Meyering  <meyering@redhat.com>
45393
45394         linkat: avoid compilation failure
45395         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45396
45397 2009-10-05  Eric Blake  <ebb9@byu.net>
45398
45399         linkat: support Linux 2.6.17
45400         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45401         linkat on Linux, but allow cache variable override.
45402         * lib/linkat.c (rpl_linkat): Define override.
45403         * modules/linkat (Depends-on): Add symlinkat.
45404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45405         * modules/unistd (Makefile.am): Substitute it.
45406         * lib/unistd.in.h (linkat): Declare replacement.
45407         Reported by Pádraig Brady.
45408
45409         quotearg: port test to systems with C.UTF-8 locale
45410         * tests/test-quotearg.c (struct result_strings): Add another
45411         member, differentiating between C.ASCII and C.UTF-8 handling.
45412         (compare_strings): Add parameter.
45413         (main): Adjust all callers.
45414
45415         getopt: avoid clash with FreeBSD _getopt_internal
45416         * lib/getopt.in.h (_getopt_internal): Override the name.
45417         * lib/getopt_int.h (includes): Pick up any overrides.
45418         Reported by Reuben Thomas.
45419
45420         hash: allow C89 compilation
45421         * lib/hash.c (check_tuning): Move declaration before statement.
45422         Reported by Reuben Thomas.
45423
45424 2009-10-05  Karl Berry  <karl@gnu.org>
45425
45426         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45427
45428 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45429             Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/uname.c (uname): Use a table-driven algorithm to compute
45432         Windows NT versions.
45433
45434 2009-10-04  Bruno Haible  <bruno@clisp.org>
45435
45436         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45437         program_invocation_short_name.
45438         * modules/progname (configure.ac): Test for presence of
45439         program_invocation_short_name.
45440         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45441
45442 2009-10-04  Bruno Haible  <bruno@clisp.org>
45443
45444         * lib/progname.c (set_program_name): Fix comment.
45445         Reported by Jim Meyering.
45446
45447 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45448             Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/uname.c: Include <string.h>.
45451         (uname): Do only one call to GetVersionEx in the common case.
45452
45453 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45454             Bruno Haible  <bruno@clisp.org>
45455
45456         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45457         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45458         (uname): Add support for Windows CE and various non-x86 CPU types.
45459
45460 2009-10-03  Bruno Haible  <bruno@clisp.org>
45461
45462         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45463         invocation to tests/configure.ac.
45464         Reported by Ian Beckwith <ianb@erislabs.net>.
45465
45466 2009-10-02  Eric Blake  <ebb9@byu.net>
45467
45468         fchdir: avoid compiler warning
45469         * lib/fchdir.c (canonicalize_file_name)
45470         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45471
45472         test-open: support mingw errno values
45473         * tests/test-open.h (test_open): Relax test.
45474         * tests/test-fopen.h (test_fopen): Likewise.
45475         * tests/test-openat-safer.c (main): Likewise.
45476
45477         open: fix opening directory on mingw
45478         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45479
45480         test-open: on GNU/Hurd, /dev/null is a directory
45481         * tests/test-fopen.h (main): Rename...
45482         (test_fopen): ...to this.  Use a guaranteed non-directory when
45483         confirming open behavior on trailing slash.
45484         * tests/test-openat-safer.c (main): Likewise.
45485         * tests/test-open.h (main): Likewise....
45486         (test_open): ...to this.
45487         * tests/test-fopen.c (main): Adjust caller.
45488         * tests/test-fopen-safer.c (main): Likewise.
45489         * tests/test-open.c (main): Likewise.
45490         * tests/test-fcntl-safer.c (main): Likewise.
45491         Reported by Samuel Thibault.
45492
45493         rename, fchdir: don't ignore chdir failure
45494         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45495         * lib/rename.c (rpl_rename) [W32]: Likewise.
45496         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45497         an empty destination directory if source cannot be renamed,
45498         although there is still possibility for failure.
45499         * doc/posix-functions/rename.texi (rename): Document the race.
45500         Reported by Jim Meyering.
45501
45502         maint: cleanup whitespace in recent commits
45503         * lib/rename.c (rpl_rename): Remove tabs.
45504         * tests/test-link.h (test_link): Likewise.
45505         * lib/fchdir.c (get_name): Likewise.
45506         Reported by Jim Meyering.
45507
45508 2009-10-02  Ben Pfaff  <blp@gnu.org>
45509
45510         relocatable-prog-wrapper: Add missing dependency on
45511         double-slash-root.
45512         * modules/relocatable-prog-wrapper: Add dependency.
45513         Reported by Ian Beckwith <ianb@erislabs.net>.
45514
45515 2009-10-02  Eric Blake  <ebb9@byu.net>
45516
45517         renameat: fix Solaris bugs
45518         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45519         needed fixing.
45520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45521         * modules/stdio (Makefile.am): Substitute it.
45522         * lib/stdio.in.h (renameat): Declare replacement.
45523         * lib/renameat.c (rpl_renameat): Implement fix.
45524
45525         renameat: new module
45526         * modules/renameat: New file.
45527         * lib/renameat.c (renameat): Likewise.
45528         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45530         * modules/stdio (Makefile.am): Substitute them.
45531         * lib/stdio.in.h (renameat): Declare it.
45532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45533         * doc/posix-functions/renameat.texi (renameat): Likewise.
45534         * modules/renameat-tests: New test.
45535         * tests/test-renameat.c: Likewise.
45536
45537         rename: fix mingw bugs
45538         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45539         directory overwrite bugs.
45540
45541         rename: fix another cygwin 1.5 bug
45542         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45543         checks.
45544         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45545         unnecessary cygwin workarounds.  Also work around bug with moving
45546         full directory onto an empty one.
45547         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45548
45549         rename-dest-slash: merge into rename module
45550         * modules/rename-dest-slash (Status): Mark obsolete.
45551         (Depends-on): Add rename.
45552         (Files): Let rename do it all.
45553         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45554         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45555         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45556         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45557         * lib/rename.c (rpl_rename): Update comments.
45558
45559         rename: fix cygwin 1.5.x bugs
45560         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45561         * lib/rename.c (rpl_rename): Work around them.
45562         * modules/rename (Depends-on): Add same-inode.
45563
45564         rename: fix Solaris 10 bug
45565         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45566         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45567         was the only bug.
45568
45569         rename: fix Solaris 9 bug
45570         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45571         on non-directory.  Avoid calling exit.
45572         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45573         strdup.
45574         * modules/rename-tests (Depends-on): Drop lstat.
45575         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45576         (gl_PREREQ_RENAME): Delete unused macro.
45577
45578         rename-dest-slash: fix NetBSD bug
45579         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45580         links.
45581         * modules/rename-dest-slash (Depends-on): Add same-inode.
45582
45583         rename-tests: new test, exposes several platform bugs
45584         * modules/rename-tests: New file.
45585         * tests/test-rename.h: Likewise.
45586         * tests/test-rename.c: Likewise.
45587         * doc/posix-functions/rename.texi (rename): Improve documentation,
45588         including bugs that will eventually be fixed in gnulib.
45589
45590 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45591
45592         * lib/uname.c: Include <stdlib.h>
45593         (uname): Assume version info is available.
45594
45595 2009-10-02  Jim Meyering  <meyering@redhat.com>
45596
45597         gnu-web-doc-update: correct --help output
45598         * build-aux/gnu-web-doc-update: Make --help output relevant.
45599
45600         gnu-web-doc-update: add standard options
45601         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45602
45603         gnu-web-doc-update: New module.
45604         Use this script to automatically update the on-line web documentation
45605         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45606         * modules/gnu-web-doc-update: New file, from coreutils.
45607         * build-aux/gnu-web-doc-update: New script.
45608
45609 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45610
45611         link: LoadLibrary is not needed.
45612         * lib/link.c: Use GetModuleHandle.
45613
45614 2009-10-01  Eric Blake  <ebb9@byu.net>
45615
45616         getopt: bump serial number
45617         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45618         change.
45619
45620         tests: tighten link, rmdir, and remove tests
45621         * tests/test-link.h (includes): No need to use <config.h> here.
45622         Clean up if directory hard link was created, otherwise test for
45623         trailing '.'.
45624         * tests/test-linkat.c (main): Simplify.
45625         * tests/test-remove.c (main): Enhance test for trailing '.'.
45626         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45627
45628 2009-10-01  Jim Meyering  <meyering@redhat.com>
45629
45630         maint.mk: requiring "make major" was annoying, for a "minor" release.
45631         What is intended is "stable", to contrast with alpha and beta,
45632         so require "make stable", not "make major".
45633         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45634         (get_tool_versions): Likewise.
45635         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45636
45637 2009-09-30  Ben Pfaff  <blp@gnu.org>
45638
45639         Fix broken build of replacement for Windows tmpfile().
45640         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45641         flags argument added along with the 'mkostemp' module.
45642
45643 2009-09-28  Bruno Haible  <bruno@clisp.org>
45644
45645         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45646         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45647         to 'remove_elt'.
45648         (gl_list_remove): Update.
45649         * lib/gl_list.c (gl_list_remove): Update.
45650         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45651         to 'remove_elt'.
45652         (gl_oset_remove): Update.
45653         * lib/gl_list.c (gl_oset_remove): Update.
45654         Reported by Eric Blake.
45655
45656 2009-09-28  Eric Blake  <ebb9@byu.net>
45657
45658         doc: mention yet more cygwin 1.7 status
45659         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45660         cygwin.
45661         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45662         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45663
45664         argp: fix test failure
45665         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45666         that are not upper-case.  Pass correct range to tolower.
45667
45668 2009-09-27  Jim Meyering  <meyering@redhat.com>
45669
45670         test-yesno: work around sparc-dash here-document infelicity
45671         Without this change, the literal \177 byte in a here document
45672         would make dash 0.5.5.1-3 access uninitialized memory.
45673         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45674         Instead, use a marker, "@", and filter through tr to create the desired
45675         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45676
45677 2009-09-27  Bruno Haible  <bruno@clisp.org>
45678
45679         Disable untested support for new flavours of ACLs on AIX.
45680         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45681         progress.
45682         * lib/set-mode-acl.c (qset_acl): Likewise.
45683
45684 2008-12-07  Bruno Haible  <bruno@clisp.org>
45685
45686         Add support for new flavours of ACLs on AIX. (Untested.)
45687         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45688         (file_has_acl): Add support for newer AIX.
45689         * lib/set-mode-acl.c (qset_acl): Likewise.
45690         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45691         Rainer Tammer <tammer@tammer.net>.
45692
45693 2009-09-26  Eric Blake  <ebb9@byu.net>
45694
45695         argp: fix compilation of getopt
45696         * lib/getopt.in.h (includes): Use different guard than glibc.
45697         Reported by Sergey Poznyakoff.
45698
45699         doc: mention more cygwin 1.7 status
45700         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45701         bug.
45702         * doc/posix-functions/execl.texi (execl): Likewise.
45703         * doc/posix-functions/execle.texi (execle): Likewise.
45704         * doc/posix-functions/execlp.texi (execlp): Likewise.
45705         * doc/posix-functions/execv.texi (execv): Likewise.
45706         * doc/posix-functions/execve.texi (execve): Likewise.
45707         * doc/posix-functions/execvp.texi (execvp): Likewise.
45708         * doc/glibc-functions/canonicalize_file_name.texi
45709         (canonicalize_file_name): Cygwin 1.7 now provides this.
45710         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45711         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45712         on AT_SYMLINK_NOFOLLOW.
45713
45714 2009-09-24  Eric Blake  <ebb9@byu.net>
45715
45716         test-linkat: make test more robust
45717         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45718
45719         getopt: fix inclusion guards for cygwin
45720         * modules/getopt-posix (Depends-on): Add include-next.
45721         (Makefile.am): Substitute more items in replacement header.
45722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45723         <getopt.h>.
45724         * lib/getopt.in.h (includes): Use split inclusion guard, and
45725         prefer <getopt.h> over include <unistd.h> when one is present.
45726         (option): Also override name of 'struct option'.
45727
45728         same-inode: revert prior change; it is not yet ready
45729         * NEWS: Undo mention of this change.
45730         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45731         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45732         * lib/cycle-check.c (cycle_check): Likewise.
45733         * lib/same.c (same_name): Likewise.
45734         * lib/at-func2.c (at_func2): Likewise.
45735
45736 2009-09-23  Eric Blake  <ebb9@byu.net>
45737
45738         linkat: new module
45739         * modules/linkat: New file.
45740         * lib/at-func2.c (at_func2): Likewise.
45741         * lib/linkat.c (linkat): Likewise.
45742         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45743         * lib/openat-priv.h (at_func2): Add declaration.
45744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45745         * modules/unistd (Makefile.am): Substitute them.
45746         * lib/unistd.in.h (linkat): Declare it.
45747         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45748         * doc/posix-functions/linkat.texi (linkat): Likewise.
45749         * doc/posix-functions/link.texi (link): Tweak wording.
45750         * tests/test-link.c (main): Move guts...
45751         * tests/test-link.h (test_link): ...into new file.
45752         * modules/linkat-tests: New test.
45753         * tests/test-linkat.c: Likewise.
45754         * modules/link-tests (Files): Ship new file.
45755         (Depends-on): Add stdbool.
45756
45757         dirname: add library-safe mdir_name
45758         * lib/dirname.h (mdir_name): New prototype.
45759         * lib/dirname.c (dir_name): Move guts...
45760         (mdir_name): ...to new function that avoids xalloc_die.
45761
45762         fchdir: another mingw fix
45763         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45764         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45765         on mingw (where it has not yet been ported), and make it optional
45766         elsewhere.
45767         (_gl_register_fd): Use it.
45768
45769         same-inode: make SAME_INODE tri-state, to port to mingw
45770         * NEWS: Mention this change.
45771         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45772         st_ino always being 0.
45773         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45774         * lib/cycle-check.c (cycle_check): Likewise.
45775         * lib/same.c (same_name): Likewise.
45776
45777         lstat: avoid mingw compilation error
45778         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45780         lstat ourselves.
45781         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45782         was adequate.
45783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45784         the checks for lstat.
45785         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45786
45787         link: fix test failure on Solaris 9
45788         * lib/link.c (rpl_link): Don't assume link will catch bogus
45789         trailing slash on source.
45790
45791         test-symlinkat: enhance test
45792         * tests/test-readlink.c (main): Move guts...
45793         * tests/test-readlink.h (test_readlink): ...into new file.
45794         * tests/test-symlink.c (main): Move guts...
45795         * tests/test-symlink.h (test_symlink): ...into new file.
45796         * tests/test-symlinkat.c (main): Use new files for further
45797         coverage.
45798         (do_symlink, do_readlink): New helper functions.
45799         * modules/symlink-tests (Files): Ship new file.
45800         (Depends-on): Add stdbool.
45801         * modules/readlink-tests (Files): Ship new file.
45802         (Depends-on): Add stdbool.
45803         * modules/symlinkat-tests (Files): Use new files.
45804
45805 2009-09-23  Eric Blake  <ebb9@byu.net>
45806
45807         readlink: document portability issue with symlink length
45808         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45809         systems have bogus st_size on symlinks, and mention the
45810         areadlink-with-size module.
45811         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45812         * doc/posix-functions/readlink.texi (readlink): Mention the
45813         areadlink module, and ERANGE failure.
45814         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45815         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45816
45817         readlink: fix Solaris 9 bug with trailing slash
45818         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45819         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45820         * doc/posix-functions/readlink.texi (readlink): Document this.
45821         * modules/readlink-tests: New test.
45822         * tests/test-readlink.c: Likewise.
45823
45824         readlink: fix cygwin 1.5.x bug with return type
45825         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45826         * lib/unistd.in.h (readlink): Use ssize_t.
45827         * lib/readlink.c (readlink): Likewise.
45828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45829         * modules/unistd (Makefile.am): Substitute it.
45830         * lib/unistd.in.h (readlink): Declare replacement.
45831         * doc/posix-functions/readlink.texi (readlink): Document this.
45832
45833         symlink: use throughout gnulib
45834         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45835         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45836         symlink is not used.
45837         * modules/symlinkat (Depends-on): Add symlink.
45838         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45839         * modules/canonicalize-tests (Depends-on): Likewise.
45840         * modules/lstat-tests (Depends-on): Likewise.
45841         * modules/openat-tests (Depends-on): Likewise.
45842         * modules/remove-tests (Depends-on): Likewise.
45843         * modules/rmdir-tests (Depends-on): Likewise.
45844         * modules/unlink-tests (Depends-on): Likewise.
45845         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45846         * tests/test-canonicalize.c (symlink): Likewise.
45847         * tests/test-fstatat.c (symlink): Likewise.
45848         * tests/test-lstat.c (symlink): Likewise.
45849         * tests/test-remove.c (symlink): Likewise.
45850         * tests/test-rmdir.c (symlink): Likewise.
45851         * tests/test-unlink.c (symlink): Likewise.
45852         * tests/test-unlinkat.c (symlink): Likewise.
45853
45854         symlink: new module, for Solaris 9 bug
45855         * modules/symlink: New file.
45856         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45857         * lib/symlink.c: Likewise.
45858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45859         * modules/unistd (Makefile.am): Substitute them.
45860         * lib/unistd.in.h (symlink): Declare replacement.
45861         * MODULES.html.sh (File system functions): Mention it.
45862         * doc/posix-functions/symlink.texi (symlink): Likewise.
45863         * modules/symlink-tests: New test.
45864         * tests/test-symlink.c: Likewise.
45865
45866 2009-09-23  Bruno Haible  <bruno@clisp.org>
45867
45868         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45869         when needed.
45870         Test case: gnulib-tool --import --with-tests atexit inttypes.
45871         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45872
45873 2009-09-23  Bruno Haible  <bruno@clisp.org>
45874
45875         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45876         subcommand, not in a subshell.
45877
45878 2009-09-22  Eric Blake  <ebb9@byu.net>
45879
45880         unistd: sort replacement declarations
45881         * lib/unistd.in.h: Sort declarations.
45882
45883         open, openat: minor optimization
45884         * lib/open.c (open): If open succeeded, len is non-zero.
45885         * lib/openat.c (rpl_openat): Likewise.
45886
45887         link-follow: ensure correct result
45888         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45889         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45890         distinguish between possible failures.
45891
45892 2009-09-21  Eric Blake  <ebb9@byu.net>
45893
45894         fts: avoid compiler warning
45895         * lib/fts.c (dirent_inode_sort_may_be_useful)
45896         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45897
45898 2009-09-19  Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/progreloc.c (canonicalize_file_name): New declaration.
45901
45902 2009-09-19  Eric Blake  <ebb9@byu.net>
45903
45904         link: fix quoting
45905         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45906
45907         openat: fix openat bugs on Solaris 9
45908         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45909         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45910         * modules/openat (Depends-on): Add open.
45911         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45912         * modules/fcntl-h (Makefile.am): Substitute it.
45913         * lib/fcntl.in.h (openat): Declare replacement.
45914         * doc/posix-functions/openat.texi (openat): Document this.
45915
45916         openat: move fstatat and unlinkat into correct files
45917         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45918         compiled.
45919         * lib/openat.c (fstatat, unlinkat): Move...
45920         * lib/fstatat.c (fstatat): ...into correct files.
45921         * lib/unlinkat.c (unlinkat): Likewise.
45922
45923         openat: fix unlinkat bugs on Solaris 9
45924         * lib/unlinkat.c (unlinkat): New file.
45925         * modules/openat (Depends-on): Add unlink.
45926         (Files): Distribute it.
45927         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45928         trailing slash behavior is broken.
45929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45930         * modules/unistd (Makefile.am): Substitute it.
45931         * lib/unistd.in.h (unlinkat): Declare replacement.
45932         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45933
45934         openat: fix fstatat bugs on Solaris 9
45935         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45936         stat.
45937         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45938
45939         test-unlinkat: enhance test, to expose Solaris 9 bug
45940         * tests/test-unlink.c (main): Factor guts...
45941         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45942         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45943         * tests/test-rmdir.c (main): Adjust caller.
45944         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45945         (unlinker): New helper function.
45946         (rmdirat): Enhance check.
45947         * modules/rmdir-tests (Depends-on): Add stdbool.
45948         * modules/unlink-tests (Depends-on): Likewise.
45949         (Files): Add test-unlink.h.
45950         * modules/openat-tests (Files): Likewise.
45951         (Depends-on): Add unlinkdir.
45952
45953         test-fstatat: new test, to expose Solaris 9 bugs
45954         * tests/test-stat.c (main): Factor guts...
45955         * tests/test-stat.h (test_stat_func): ...into new file.
45956         * tests/test-lstat.c (main): Factor guts...
45957         * tests/test-lstat.h (test_lstat_func): ...into new file.
45958         * tests/test-fstatat.c: New file.
45959         * modules/stat-tests (Files): Add test-stat.h.
45960         * modules/lstat-tests (Files): Add test-lstat.h.
45961         (Depends-on): Add stdbool.
45962         * modules/openat-tests (Depends-on): Add pathmax.
45963         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45964         (Makefile.am): Run new test.
45965
45966         remove: new module, for mingw and Solaris 9 bugs
45967         * modules/remove: New file.
45968         * lib/remove.c: Likewise.
45969         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45971         * modules/stdio (Makefile.am): Use them.
45972         * lib/stdio.in.h (remove): Declare replacement.
45973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45974         * doc/posix-functions/remove.texi (remove): Likewise.
45975         * modules/remove-tests: New test.
45976         * tests/test-remove.c: Likewise.
45977
45978         unlink: new module, for Solaris 9 bug
45979         * modules/unlink: New file.
45980         * lib/unlink.c: Likewise.
45981         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45983         * modules/unistd (Makefile.am): Use them.
45984         * lib/unistd.in.h (stat): Declare replacement.
45985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45986         * doc/posix-functions/unlink.texi (unlink): Likewise.
45987         * modules/unlink-tests: New test.
45988         * tests/test-unlink.c: Likewise.
45989
45990         lstat: fix Solaris 9 bug
45991         * lib/lstat.c (lstat): Also check for trailing slash on
45992         non-symlink, non-directories.  Use stat module to simplify logic.
45993         * doc/posix-functions/lstat.texi (lstat): Document it.
45994         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45995         (configure.ac): Check for symlink.
45996         * tests/test-lstat.c (main): Add more tests.
45997
45998         stat: add as dependency to other modules
45999         * modules/chown (Depends-on): Add stat.
46000         * modules/euidaccess (Depends-on): Likewise.
46001         * modules/fchdir (Depends-on): Likewise.
46002         * modules/isdir (Depends-on): Likewise.
46003         * modules/link (Depends-on): Likewise.
46004         * modules/lstat (Depends-on): Likewise.
46005         * modules/mkdir-p (Depends-on): Likewise.
46006         * modules/modechange (Depends-on): Likewise.
46007         * modules/open (Depends-on): Likewise.
46008         * modules/readlink (Depends-on): Likewise.
46009         * modules/same (Depends-on): Likewise.
46010
46011         stat: fix Solaris 9 bug
46012         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46013         slash.
46014         * lib/stat.c (rpl_stat): Work around it.
46015         * doc/posix-functions/stat.texi (stat): Update documentation.
46016
46017         stat: new module, for mingw bug
46018         * modules/stat: New file.
46019         * lib/stat.c: Likewise.
46020         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46022         * modules/sys_stat (Makefile.am): Use them.
46023         * lib/sys_stat.in.h (stat): Declare replacement.
46024         * lib/openat.c (fstatat): Deal with lstat and stat being function
46025         macros.
46026         * modules/openat (Depends-on): Add inline.
46027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46028         * doc/posix-functions/stat.texi (stat): Likewise.
46029         * modules/stat-tests: New test.
46030         * tests/test-stat.c: Likewise.
46031
46032 2009-09-19  Jim Meyering  <meyering@redhat.com>
46033
46034         syntax-check: detect unnecessary inclusion of canonicalize.h
46035         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46036
46037 2009-09-19  Eric Blake  <ebb9@byu.net>
46038
46039         canonicalize-lgpl: adjust clients to use correct header
46040         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46041         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46042         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46043         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46044         * lib/progreloc.c (includes): Likewise.
46045
46046 2009-09-19  Jim Meyering  <meyering@redhat.com>
46047
46048         test-posixtm.c: correct a comment
46049         * tests/test-posixtm.c: Correct first-line comment.
46050         Spotted by Eric Blake.
46051
46052 2009-09-16  Jim Meyering  <meyering@redhat.com>
46053
46054         posixtm-tests: make T const-correct; add a test case
46055         * tests/test-posixtm.c (T): Declare const.
46056         Add a test for -(2^31+1).
46057         Remove useless can-succeed-only-in-2002 test.
46058
46059         posixtm-tests: adjust the sole failing test
46060         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46061         expected output matches what mktime now produces.  Cross-checked via
46062         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46063
46064         posixtm: move #ifdef'd tests into a new module
46065         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46066         * tests/test-posixtm.c: ... this new file.
46067         * modules/posixtm-tests: New module.
46068
46069 2009-09-19  Eric Blake  <ebb9@byu.net>
46070
46071         openat: simplify use of at-func.c
46072         * lib/at-func.c (includes): Include prerequisites here, to
46073         simplify requirements on client files.
46074         * lib/openat-priv.h: Add double-inclusion guard.
46075         * lib/faccessat.c (includes): Simplify.
46076         * lib/fchmodat.c (includes): Likewise.
46077         * lib/fchownat.c (includes): Likewise.
46078         * lib/mkdirat.c (includes): Likewise.
46079         * lib/mkfifoat.c (includes): Likewise.
46080         * lib/symlinkat.c (includes): Likewise.
46081
46082         openat: allow return of fd 0
46083         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46084         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46085         unistd-safer.
46086         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46087         <fcntl.h>; this module does not leak fds.
46088         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46089         must be allowed to return 0, leaving openat_safer to add the
46090         safety.
46091         (openat_permissive): Avoid writing to just-opened fd 2 if
46092         restoring the current directory fails.
46093         * lib/openat-die.c (openat_restore_fail): Add comment.
46094         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46095         (save_cwd): Guarantee safe fd, but without use of open_safer.
46096         * tests/test-openat.c: New test.
46097         * modules/openat-tests (Files, Makefile.am): Distribute and build
46098         new file.
46099
46100         relocatable-prog-wrapper: fix build
46101         * modules/relocatable-prog-wrapper (Files): Update name of
46102         canonicalize m4 file, broken on 2009-09-17.
46103         Reported by emad hajjar <aleppos@hotmail.com>.
46104
46105 2009-09-19  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46108         * lib/safe-alloc.c: Likewise.
46109         Reported by Ian Beckwith <ianb@erislabs.net>.
46110
46111 2009-09-18  Bruno Haible  <bruno@clisp.org>
46112
46113         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46114         Reported by <erobles@sensacd.com.mx>.
46115
46116 2009-09-17  Eric Blake  <ebb9@byu.net>
46117
46118         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46119         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46120         slashes when checking if last component is missing.
46121         * tests/test-canonicalize.c (main): Test this.
46122
46123         canonicalize, canonicalize-lgpl: honor // if distinct from /
46124         * modules/canonicalize (Files): Add double-slash-root.m4.
46125         * modules/canonicalize-lgpl (Files): Likewise.
46126         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46127         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46128         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46129         fallback definition.
46130         (canonicalize_filename_mode): Use it to protect //.
46131         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46132         (__realpath): Likewise.
46133         * tests/test-canonicalize.c (main): Test this.
46134         * tests/test-canonicalize-lgpl.c (main): Likewise.
46135         * modules/canonicalize-tests (Depends-on): Add same-inode.
46136         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46137
46138         canonicalize-lgpl: fix glibc bug with trailing slash
46139         * m4/canonicalize-lgpl.m4: Move contents...
46140         * m4/canonicalize.m4: ...here.
46141         (gl_CANONICALIZE_LGPL): Factor realpath check...
46142         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46143         glibc 2.3.5 bug, fixed 2005-04-27.
46144         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46145         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46146         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46147         * modules/canonicalize-lgpl (Files): Manage file rename.
46148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46149         * modules/stdlib (Makefile.am): Substitute witness.
46150         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46151         is needed.
46152         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46153         replacement is required.
46154         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46155         * doc/glibc-functions/canonicalize_file_name.texi
46156         (canonicalize_file_name): Document this.
46157         * doc/posix-functions/realpath.texi (realpath): Likewise.
46158
46159         canonicalize-lgpl: reject non-directory with trailing slash
46160         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46161         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46162         catches failures in glibc 2.3.5.
46163         * tests/test-canonicalize.c (main): Likewise.
46164
46165         canonicalize-lgpl: use native realpath if it works
46166         * lib/canonicalize-lgpl.c (realpath): Guard with
46167         FUNC_REALPATH_WORKS.
46168         * lib/stdlib.in.h (realpath): Make declaration optional based on
46169         HAVE_REALPATH.
46170         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46171         native realpath works.
46172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46173         * modules/stdlib (Makefile.am): Substitute witness.
46174
46175         canonicalize, canonicalize-lgpl: use <stdlib.h>
46176         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46177         (Include): Mention <stdlib.h>.
46178         (configure.ac): Mention functions we provide.
46179         * modules/canonicalize (configure.ac): Likewise.
46180         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46181         realpath if canonicalize_file_name is missing.
46182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46183         * modules/stdlib (Makefile.am): Substitute witnesses.
46184         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46185         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46186         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46187         * NEWS: Document this.
46188         * doc/glibc-functions/canonicalize_file_name.texi
46189         (canonicalize_file_name): Likewise.
46190         * doc/posix-functions/realpath.texi (realpath): Likewise.
46191         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46192
46193         test-canonicalize: consolidate into single C program
46194         * tests/test-canonicalize.sh: Delete; move setup into...
46195         * tests/test-canonicalize.c (main): ...the program, making it
46196         easier to run in debugger.  Add some tests.
46197         * modules/canonicalize-tests (Files): Remove unused file.
46198         (Depends-on): Add progname.
46199         (configure.ac, Makefile.am): Simplify.
46200
46201         test-canonicalize-lgpl: consolidate into single C program
46202         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46203         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46204         easier to run in debugger.  Add some tests.
46205         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46206         (configure.ac, Makefile.am): Simplify.
46207
46208         canonicalize: avoid resolvepath
46209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46210         unnecessary checks.
46211         * lib/canonicalize.c (includes): Simplify.
46212         (canonicalize_file_name): Drop resolvepath implementation.
46213         * modules/canonicalize (Depends-on): Drop filenamecat.
46214
46215         canonicalize: don't lose errno
46216         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46217         over calls to free.
46218
46219         canonicalize: simplify errno handling
46220         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46221         assignment.
46222
46223         canonicalize, canonicalize-lgpl: update module dependencies
46224         * modules/canonicalize (Depends-on): Add extensions, lstat,
46225         pathmax, stdlib.
46226         (Files): Drop pathmax.h.
46227         (configure.ac): Adjust macro name.
46228         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46229         lstat, stdlib, sys_stat.
46230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46231         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46232         extensions.
46233         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46234         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46235         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46236         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46237         declaration, if available.
46238         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46239         we can rely on the readlink module.
46240         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46241         (includes): Use <unistd.h> unconditionally.
46242
46243 2009-09-17  Eric Blake  <ebb9@byu.net>
46244
46245         maint: make Include sections of modules consistent
46246         * modules/alloca: Use only header name; no need to list #include.
46247         * modules/alloca-opt: Likewise.
46248         * modules/arpa_inet: Likewise.
46249         * modules/canon-host: Likewise.
46250         * modules/configmake: Likewise.
46251         * modules/dirent: Likewise.
46252         * modules/eealloc: Likewise.
46253         * modules/environ: Likewise.
46254         * modules/fchdir: Likewise.
46255         * modules/fcntl: Likewise.
46256         * modules/fcntl-h: Likewise.
46257         * modules/gethrxtime: Likewise.
46258         * modules/gettime: Likewise.
46259         * modules/ignore-value: Likewise.
46260         * modules/inet_ntop: Likewise.
46261         * modules/inet_pton: Likewise.
46262         * modules/inttypes: Likewise.
46263         * modules/isnand-nolibm: Likewise.
46264         * modules/isnanf-nolibm: Likewise.
46265         * modules/mbchar: Likewise.
46266         * modules/mbfile: Likewise.
46267         * modules/mbiter: Likewise.
46268         * modules/mbuiter: Likewise.
46269         * modules/netdb: Likewise.
46270         * modules/netinet_in: Likewise.
46271         * modules/nproc: Likewise.
46272         * modules/pagealign_alloc: Likewise.
46273         * modules/poll: Likewise.
46274         * modules/printf-frexp: Likewise.
46275         * modules/pthread: Likewise.
46276         * modules/putenv: Likewise.
46277         * modules/random_r: Likewise.
46278         * modules/relocatable-prog: Likewise.
46279         * modules/search: Likewise.
46280         * modules/select: Likewise.
46281         * modules/selinux-h: Likewise.
46282         * modules/settime: Likewise.
46283         * modules/signal: Likewise.
46284         * modules/size_max: Likewise.
46285         * modules/socklen: Likewise.
46286         * modules/ssize_t: Likewise.
46287         * modules/stdarg: Likewise.
46288         * modules/stdbool: Likewise.
46289         * modules/stddef: Likewise.
46290         * modules/stdint: Likewise.
46291         * modules/stdio: Likewise.
46292         * modules/stdlib: Likewise.
46293         * modules/string: Likewise.
46294         * modules/strings: Likewise.
46295         * modules/sys_file: Likewise.
46296         * modules/sys_ioctl: Likewise.
46297         * modules/sys_select: Likewise.
46298         * modules/sys_socket: Likewise.
46299         * modules/sys_stat: Likewise.
46300         * modules/sys_time: Likewise.
46301         * modules/sys_times: Likewise.
46302         * modules/sys_utsname: Likewise.
46303         * modules/sys_wait: Likewise.
46304         * modules/sysexits: Likewise.
46305         * modules/time: Likewise.
46306         * modules/times: Likewise.
46307         * modules/tmpfile: Likewise.
46308         * modules/trim: Likewise.
46309         * modules/unistd: Likewise.
46310         * modules/wchar: Likewise.
46311         * modules/wctype: Likewise.
46312
46313 2009-09-17  Bruno Haible  <bruno@clisp.org>
46314
46315         Make getdate.y compile on QNX and NetBSD 5 / i386.
46316         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46317         TIME_T_FITS_IN_LONG_INT.
46318         * lib/getdate.y (long_time_t): New type.
46319         (relative_time): Change type of 'seconds' field to long_time_t.
46320         (get_date): Update types of local variables. Check against overflow
46321         during conversion from long_time_t to time_t.
46322         Reported by Matt Kraai <kraai@ftbfs.org>
46323         and Hasso Tepper <hasso@netbsd.org>.
46324
46325 2009-09-17  Bruno Haible  <bruno@clisp.org>
46326
46327         * modules/COPYING: Update copyright years.
46328         * modules/README: Likeiwse.
46329         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46330         Reported by Ian Beckwith <ianb@erislabs.net>.
46331
46332 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46333
46334         * users.txt: Update references for gnuit package.
46335
46336 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46337
46338         * m4/getdelim.m4: Fix typo in copyright line.
46339
46340 2009-09-17  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/atoll.c: Use the standard header with GPL copyright.
46343         * lib/argz.in.h: Likewise.
46344         * lib/glob.c: Likewise.
46345         * lib/glob-libc.h: Likewise.
46346         * lib/random_r.c: Likewise.
46347         * lib/siglist.h: Likewise.
46348         * lib/strsignal.c: Likewise.
46349         Reported by Ian Beckwith <ianb@erislabs.net>.
46350
46351 2009-09-17  Eric Blake  <ebb9@byu.net>
46352
46353         rmdir: ensure correct dependency order
46354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46355
46356 2009-09-17  Bruno Haible  <bruno@clisp.org>
46357
46358         Disable assertion that fails on NetBSD 5 / i386.
46359         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46360         Reported by Sam Steingold <sds@gnu.org>
46361         and Hasso Tepper <hasso@netbsd.org>.
46362
46363 2009-09-16  Eric Blake  <ebb9@byu.net>
46364
46365         unlinkdir: port to mingw
46366         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46367         on which no one can unlink a directory.
46368
46369         stdlib: sort witness names
46370         * modules/stdlib (Makefile.am): Sort replacements.
46371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46372         * lib/stdlib.in.h: Likewise.
46373
46374         parse-duration-tests: avoid link failure
46375         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46376         LIBINTL.
46377         Reported by Tom G. Christensen.
46378
46379         openat-tests: ensure unlinkat behaves like rmdir
46380         * tests/test-rmdir.c (main): Factor guts...
46381         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46382         * modules/rmdir-tests (Files): Ship new file.
46383         * modules/openat-tests: New test.
46384         * tests/test-unlinkat.c: Likewise.
46385
46386         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46387         * modules/rmdir-errno (Status, Notice): Now obsolete.
46388
46389         rmdir: work around cygwin 1.5.x and mingw bugs
46390         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46391         * lib/rmdir.c (rmdir): Work around it.
46392         * modules/rmdir (Status, Notice): No longer obsolete.
46393         (Files): Add dos.m4.
46394         (Depends-on): Add unistd.
46395         (configure.ac): Set witnesses.
46396         (License): Relax to LGPLv2+.
46397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46398         * modules/unistd (Makefile.am): Substitute witnesses.
46399         * lib/unistd.in.h (rmdir): Declare replacement.
46400         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46401         * modules/rmdir-tests: New tests.
46402         * tests/test-rmdir.c: Likewise.
46403
46404 2009-09-15  Eric Blake  <ebb9@byu.net>
46405
46406         fchdir: improve use of replacement functions
46407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46410         REPLACE_CLOSEDIR.
46411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46412         * modules/sys_stat (Makefile.am): Substitute correct witness.
46413         * modules/dirent (Makefile.am): Likewise.
46414         * modules/unistd (Makefile.am): Likewise.
46415         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46416         * lib/unistd.in.h (dup): Likewise.
46417         * lib/sys_stat.in.h (fstat): Likewise.
46418
46419         maint: ignore gnulib-tool temp files
46420         * .gitignore: Ignore files created during gnulib-tool --test.
46421
46422 2009-09-13  Jim Meyering  <meyering@redhat.com>
46423
46424         posixtm: don't reject a time that specify "60" as the number of seconds
46425         * lib/posixtm.c (posixtime): The code to reject invalid dates
46426         would also reject a time specified with the .60 suffix.
46427         But POSIX allows that, in order to accommodate leap seconds.
46428         So don't reject it.
46429         (main): Adjust tests accordingly.
46430         * modules/posixtm (Depends-on): Add stpcpy.
46431
46432 2009-09-11  Jim Meyering  <meyering@redhat.com>
46433
46434         announce-gen: include [$release_type] in emitted Subject:
46435         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46436         e.g., [stable] in the emitted Subject: line.
46437
46438 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46439
46440         Remove obsolete macros from several modules.
46441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46442         obsolete Autoconf macros with their modern counterparts.
46443         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46444         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46446         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46447         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46450         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46451         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46452         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46453         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46454         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46455         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46456         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46457         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46458         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46459         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46460         * m4/time_r.m4 (gl_TIME_R): Likewise.
46461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46462         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46463         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46464
46465         Fix copyright header in build-aux scripts.
46466         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46467         recommendation.
46468         * build-aux/ncftpput-ftp: Likewise.
46469         * build-aux/update-copyright: Likewise.
46470
46471 2009-09-09  Eric Blake  <ebb9@byu.net>
46472
46473         test-link: allow Linux choice of errno
46474         * tests/test-link.c (main): Relax test for alternate error.
46475
46476         strndup: fix improper m4 caching
46477         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46478         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46479         (gl_PREREQ_STRNDUP): Delete.
46480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46481         * modules/string (Makefile.am): Substitute it.
46482         * lib/string.in.h (strndup): Modernize prototype.
46483
46484         getcwd: port to mingw
46485         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46486         different from the POSIX assumptions made throughout the getcwd
46487         module; fortunately, the mingw getcwd does not need replacement.
46488         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46489         * modules/getcwd-tests: New test.
46490         * tests/test-getcwd.c: Likewise.
46491
46492         link: fix platform bugs
46493         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46494         * lib/link.c (link): Work around them.  Fix related mingw bug.
46495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46496         * modules/unistd (Makefile.am): Substitute it.
46497         * lib/unistd.in.h (link): Declare replacement.
46498         * doc/posix-functions/link.texi (link): Document this.
46499         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46500
46501         test-link: consolidate into single C program, test more cases
46502         * tests/test-link.sh: Delete.
46503         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46504         at least Cygwin and Solaris.
46505         * modules/link-tests (Files): Remove unused file.
46506         (Depends-on): Add errno, sys_stat.
46507         (Makefile.am): Simplify.
46508
46509 2009-09-08  Bruno Haible  <bruno@clisp.org>
46510
46511         Work around towlower, towupper bug on mingw.
46512         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46513         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46514         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46515         * doc/posix-functions/towupper.texi: Likewise.
46516         Reported by Eric Blake.
46517
46518 2009-09-08  Jim Meyering  <meyering@redhat.com>
46519
46520         build: don't try to run autoheader if we don't use it
46521         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46522         is not used in configure.ac.
46523
46524 2009-09-08  Eric Blake  <ebb9@byu.net>
46525
46526         euidaccess: fix compilation error
46527         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46528
46529         rawmemchr: relax license
46530         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46531         okay.
46532         Reported by Jim Meyering.
46533
46534         mkfifoat: new module
46535         * modules/mkfifoat: New file.
46536         * lib/mkfifoat.c: Likewise.
46537         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46539         * modules/sys_stat (Makefile.am): Use them.
46540         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46541         * MODULES.html.sh (File system functions): Mention module.
46542         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46543         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46544         * modules/mkfifoat-tests: New test.
46545         * tests/test-mkfifoat.c: Likewise.
46546
46547         strchrnul: relax license
46548         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46549         okay.
46550         Reported by Jim Meyering.
46551
46552 2009-09-08  Eric Blake  <ebb9@byu.net>
46553
46554         fstatat: fix compilation on Solaris
46555         * lib/fstatat.c (includes): Add fcntl.h.
46556         Reported by Pádraig Brady.
46557
46558 2009-09-07  Eric Blake  <ebb9@byu.net>
46559
46560         rename: modernize replacement
46561         * modules/rename (Depends-on): Add stdio.
46562         (configure.ac): Declare witness.
46563         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46564         stdio take care of replacement.
46565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46566         * modules/stdio (Makefile.am): Substitute them.
46567         * lib/stdio.in.h (rename): Declare replacement.
46568         * lib/rename.c (includes): Allow cross-compilation to non-windows
46569         machines.
46570         * doc/posix-functions/rename.texi (rename): Improve
46571         documentation.
46572
46573         stdio: sort witness names
46574         * modules/stdio (Makefile.am): Sort replacements.
46575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46576         * lib/stdio.in.h: Likewise.
46577
46578         getcwd: minor cleanups
46579         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46580         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46581
46582         openat: provide more convenience names
46583         * modules/faccessat (configure.ac): Add C witness.
46584         * lib/unistd.in.h (readlinkat): Fix typo.
46585         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46586         convenience wrappers.
46587         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46588         wrappers in syntax checks.
46589
46590 2009-09-06  Eric Blake  <ebb9@byu.net>
46591
46592         doc: fix comments in recent patches
46593         * lib/faccessat.c: Mention correct function.
46594         * lib/fchmodat.c: Likewise.
46595         * lib/fchownat.c: Likewise.
46596         * lib/symlinkat.c: Likewise.
46597         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46598         constants.
46599
46600         faccessat, symlinkat: continue cleanup of previous patch
46601         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46602         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46603         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46605         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46606         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46607         set.
46608
46609 2009-09-06  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46612         (fstatat): Declare if GNULIB_FSTATAT is set.
46613         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46614         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46615         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46616         * modules/fcntl-h (Files): Remove m4/openat.m4.
46617         * modules/sys_stat (Files): Remove m4/openat.m4.
46618         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46619         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46620         * modules/unistd (Files): Remove m4/openat.m4.
46621         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46622         GNULIB_OPENAT.
46623         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46624         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46626         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46627         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46628         gl_OPENAT_DEFAULTS.
46629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46630         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46631         Don't require gl_OPENAT_DEFAULTS.
46632         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46633         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46634         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46635         (gl_OPENAT_DEFAULTS): Remove macro.
46636
46637 2009-09-06  Bruno Haible  <bruno@clisp.org>
46638
46639         * modules/openat (configure.ac): Remove unneeded witness.
46640
46641 2009-09-06  Bruno Haible  <bruno@clisp.org>
46642
46643         Set errno to ENOSYS when a function is entirely unsupported.
46644         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46645         EOPNOTSUPP.
46646         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46647         * modules/chown (Depends-on): Remove errno.
46648
46649 2009-09-06  Bruno Haible  <bruno@clisp.org>
46650
46651         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46652
46653 2009-09-06  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46656
46657 2009-09-06  Ben Pfaff  <blp@gnu.org>
46658             Bruno Haible  <bruno@clisp.org>
46659
46660         Work around a glibc bug in strtok_r.
46661         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46662         Undefine if UNDEFINE_STRTOK_R is set.
46663         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46665         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46666         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46667         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46668         UNDEFINE_STRTOK_R.
46669         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46670
46671 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46672
46673         exclude: minor fix
46674         * lib/exclude.c: Include wctype.h
46675
46676 2009-09-06  Akim Demaille  <demaille@gostai.com>
46677
46678         bootstrap: improve error message
46679         * build-aux/bootstrap (find_tool): Upon failure, report the list
46680         of candidates.
46681         Honor the initial value of the envvar.
46682
46683 2009-09-05  Eric Blake  <ebb9@byu.net>
46684
46685         symlinkat: new module
46686         * modules/symlinkat: New file.
46687         * lib/symlinkat.c: Likewise.
46688         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46690         * modules/unistd (Makefile.am): Use them.
46691         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46692         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46693         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46694         * MODULES.html.sh (File system functions): Mention module.
46695         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46696         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46697         * modules/symlinkat-tests: New test.
46698         * tests/test-symlinkat.c: Likewise.
46699
46700         test-openat-safer: add more checks
46701         * tests/test-openat-safer.c (main): Check more code paths.
46702
46703 2009-09-05  Jim Meyering  <meyering@redhat.com>
46704
46705         syntax-check: detect unnecessary inclusion of openat.h
46706         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46707
46708 2009-09-05  Bruno Haible  <bruno@clisp.org>
46709
46710         Support towlower, towupper.
46711         * doc/posix-functions/towlower.texi: Mention module wctype.
46712         * doc/posix-functions/towupper.texi: Likewise.
46713         * lib/wctype.in.h (towlower, towupper): New functions.
46714         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46715         (ASSERT): New macro.
46716         (e): New variable.
46717         (main): Test also towlower, towupper. Test WEOF argument.
46718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46719
46720 2009-09-05  Bruno Haible  <bruno@clisp.org>
46721
46722         Fix conversion behaviour when the input is invalid.
46723         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46724         mark occurring in first pass of indirect conversion.
46725         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46726         input.
46727         Found by clang's static analyzer.
46728
46729 2009-09-05  Bruno Haible  <bruno@clisp.org>
46730
46731         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46732         where direct conversion is possible.
46733
46734 2009-09-04  Eric Blake  <ebb9@byu.net>
46735
46736         openat: fail with ENOENT on empty name
46737         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46738         buffer.
46739
46740         link-follow: fix logic bug in prior patch
46741         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46742         reversed sense of yes and no in prior patch.  Avoid confusing
46743         compilation failure with desired semantics.
46744
46745         link-follow: accommodate mingw and cross-compilation
46746         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46747         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46748         cross-compilation results to -1, to make linkat easier to
46749         implement when cross-compiling.  Trivially support mingw.
46750         * modules/link-follow (configure.ac): Call new name.
46751         * NEWS: Mention this.
46752
46753 2009-09-03  Eric Blake  <ebb9@byu.net>
46754
46755         faccessat: compile replacement
46756         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46757         needed.
46758
46759         fts: fix compilation error
46760         * lib/fts.c (includes): Re-add "openat.h", for
46761         openat_needs_fchdir.
46762
46763         faccessat: new module
46764         * modules/faccessat: New file.
46765         * lib/faccessat.c: Likewise.
46766         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46768         * modules/unistd (Makefile.am): Use it.
46769         * lib/unistd.in.h (faccessat): Declare it.
46770         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46771         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46772         * MODULES.html.sh (File system functions): Mention it.
46773         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46774         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46775
46776         euidaccess: prefer POSIX over non-standard implementation
46777         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46778         * lib/euidaccess.c (euidaccess): Use it if available.
46779
46780         openat: make template easier to use
46781         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46782         AT_FUNC_F2 to be undefined.
46783         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46784         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46785         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46786         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46787         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46788         Likewise.
46789         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46790         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46791         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46792         Likewise.
46793
46794         openat: declare in POSIX headers
46795         * NEWS: Mention this.
46796         * modules/openat (configure.ac): Declare witnesses.
46797         (Depends-on): Add fcntl-h, sys_stat, unistd.
46798         (Include): Mention correct headers.
46799         * modules/fcntl-h (Depends-on): Add link-warning.
46800         (Files): Add openat.m4.
46801         (Makefile.am): Substitute witnesses.
46802         * modules/sys_stat (Files, Makefile.am): Likewise.
46803         * modules/unistd (Files, Makefile.am): Likewise.
46804         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46805         (gl_OPENAT_DEFAULTS): New macro.
46806         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46809         (SYS_STAT_H): Remove unused variable.
46810         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46811         * lib/fcntl--.h (includes): Remove unneeded header.
46812         * lib/openat-safer.c (includes): Likewise.
46813         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46814         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46815         appropriate headers.
46816         (__OPENAT_PREFIX): Delete.
46817         * lib/fcntl.in.h (openat): Provide declaration.
46818         (AT_FDCWD): Fix Solaris bug.
46819         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46820         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46821         * lib/fchmodat.c (includes):  Adjust to find declaration.
46822         * lib/fchownat.c (includes): Likewise.
46823         * lib/mkdirat.c (includes): Likewise.
46824         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46825         still visible.
46826
46827 2009-09-02  Eric Blake  <ebb9@byu.net>
46828
46829         errno: use consistently
46830         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46831         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46832         * lib/canonicalize.c (ELOOP): Likewise.
46833         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46834         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46835         * lib/lchown.c (EOPNOTSUPP): Likewise.
46836         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46837         * lib/savewd.c (ESTALE): Likewise.
46838         * lib/settime.c (ENOSYS): Likewise.
46839         * lib/utimens.c (ENOSYS): Likewise.
46840         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46841         * lib/chdir-safer.c (ELOOP): Likewise.
46842         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46843         * modules/c-stack (Depends-on): Add errno.
46844         * modules/canonicalize (Depends-on): Likewise.
46845         * modules/chdir-safer (Depends-on): Likewise.
46846         * modules/fdopendir (Depends-on): Likewise.
46847         * modules/inet_ntop (Depends-on): Likewise.
46848         * modules/inet_pton (Depends-on): Likewise.
46849         * modules/lchown (Depends-on): Likewise.
46850         * modules/openat (Depends-on): Likewise.
46851         * modules/savewd (Depends-on): Likewise.
46852         * modules/settime (Depends-on): Likewise.
46853         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46854
46855         fts: avoid leaking fds
46856         * modules/fts (Depends-on): Add cloexec.
46857         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46858         flag.
46859
46860         fts: make directory fds more robust
46861         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46862         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46863
46864         backupfile, chdir-long, fts, savedir: make safer
46865         * lib/backupfile.c (includes): Use "dirent--.h", since
46866         numbered_backup can write to stderr during readdir.
46867         * lib/savedir.c (includes): Likewise.
46868         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46869         emulation can write to stderr on failure.
46870         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46871         * lib/getcwd.c: Document why opendir_safer is unused.
46872         * lib/glob.c: Likewise.
46873         * lib/scandir.c: Likewise.
46874         * lib/openat-proc.c: Likewise, for open_safer.
46875         * modules/backupfile (Depends-on): Add dirent-safer.
46876         * modules/savedir (Depends-on): Likewise.
46877         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46878         * modules/chdir-long (Depends-on): Add openat-safer.
46879
46880         openat-safer: new module
46881         * modules/openat-safer: New file.
46882         * lib/openat-safer.c: Likewise.
46883         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46884         * lib/fcntl-safer.h (openat_safer): Declare.
46885         * lib/fcntl--.h (openat): Override.
46886         * MODULES.html.sh (File descriptor based I/O): Mention it.
46887         * lib/openat.h: Add double-inclusion guards.
46888         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46889         "fcntl--.h", so we can implement openat.
46890         * modules/openat-safer-tests: New test.
46891         * tests/test-openat-safer.c: New file.
46892
46893         dirent-safer: new module
46894         * modules/dirent-safer: New file.
46895         * lib/dirent--.h: Likewise.
46896         * lib/dirent-safer.h: Likewise.
46897         * lib/opendir-safer.c: Likewise.
46898         * m4/dirent-safer.m4: Likewise.
46899         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46900         * modules/dirent-safer-tests: New test.
46901         * tests/test-dirent-safer.c: New file.
46902         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46903
46904         fdopendir: optimize on mingw
46905         * lib/unistd.in.h (_gl_directory_name): New prototype.
46906         * lib/fchdir.c (_gl_directory_name): Implement it.
46907         (fchdir): Use it to simplify implementation.
46908         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46909         fchdir, when available, to avoid calling [f]chdir().
46910
46911         fdopendir: split into its own module
46912         * lib/openat.c (fdopendir): Move...
46913         * lib/fdopendir.c: ...into new file.
46914         * modules/fdopendir: New module.
46915         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46916         * modules/openat (Depends-on): Add fdopendir.
46917         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46918         fdopendir here.
46919         * modules/savedir (Depends-on): Only need fdopendir, not full
46920         openat.
46921         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46922         * lib/openat.h (fdopendir): Drop prototype.
46923         * lib/dirent.in.h (fdopendir): Provide prototype.
46924         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46925         * modules/dirent (Makefile.am): Substitute them.
46926         * MODULES.html.sh (File system functions): Mention it.
46927         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46928         * modules/fdopendir-tests: New file.
46929         * tests/test-fdopendir.c: Likewise.
46930
46931         fchdir: use more consistent macro convention
46932         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46933         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46934         REPLACE_FCHDIR, rather than relying on config.h macros.
46935         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46936         inside a single make-time REPLACE_FCHDIR block, rather than using
46937         the config.h FCHDIR_REPLACEMENT.
46938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46939         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46940         Manage fstat replacement.
46941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46942         REPLACE_FCHDIR.
46943         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46944         (Makefile.am): Substitute REPLACE_FCHDIR.
46945         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46946         FCHDIR_REPLACEMENT.
46947         * lib/dup-safer.c (dup_safer): Likewise.
46948         * lib/dup2.c (rpl_dup2): Likewise.
46949         * lib/dup3.c (rpl_dup3): Likewise.
46950         * lib/open.c (rpl_open): Likewise.
46951
46952         fchdir: simplify error handling, and support dup3
46953         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46954         stdbool, malloc-posix, realloc-posix.
46955         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46956         (ensure_dirs_slot): Return false on allocation failure.
46957         (rpl_dup2): Delete.
46958         (_gl_register_dup): New function.
46959         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46960         (_gl_register_fd): Close fd on allocation failure.
46961         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46962         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46963         prototype.
46964         (rpl_dup2_fchdir): Delete prototype.
46965         * lib/open.c (open): Update caller.
46966         * lib/dup2.c (dup2): Track fchdir metadata.
46967         * lib/dup3.c (dup3): Likewise.
46968         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46970
46971 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46972
46973         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46974         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46975         don't pass arguments to AC_OUTPUT.
46976
46977 2009-09-02  Bruno Haible  <bruno@clisp.org>
46978
46979         * modules/mkdtemp (License): Relicense under LGPLv2+.
46980         Reported by Paolo Bonzini.
46981
46982 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46983
46984         Replace uses of obsolete autoconf macros in Jim's modules.
46985         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46986         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46987         can evoke a warning from autoconf when run with -Wobsolete
46988         enabled.  They were declared obsolete for good reasons (see
46989         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46990         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46991         should not continue using the deprecated macros.
46992         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46993         obsolete Autoconf macros with modern counterparts.
46994         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46995         * m4/dos.m4 (gl_AC_DOS): Likewise.
46996         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46998         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46999         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47000         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47001         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47002         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47003         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47004         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47005         Likewise.
47006         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47009         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47010         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47011         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47012
47013 2009-09-01  Eric Blake  <ebb9@byu.net>
47014
47015         fchdir: fix off-by-one bug in previous patch
47016         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47017         (_gl_unregister_fd): Delete useless if.
47018
47019 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47020
47021         maint.mk: sort the list of syntax-check rules
47022         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47023         easier to get a sense of progress when the rules are run sequentially
47024         and take a long time.
47025
47026 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47027
47028         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47029         * modules/netinet_in: Likewise.
47030         * modules/sys_file: Likewise.
47031         * modules/sys_ioctl: Likewise.
47032         * modules/sys_select: Likewise.
47033         * modules/sys_socket: Likewise.
47034         * modules/sys_stat: Likewise.
47035         * modules/sys_time: Likewise.
47036         * modules/sys_times: Likewise.
47037         * modules/sys_utsname: Likewise.
47038         * modules/sys_wait: Likewise.
47039
47040 2009-09-01  Jim Meyering  <meyering@redhat.com>
47041
47042         fts: help ensure that return values are not ignored
47043         * lib/fts_.h (__GNUC_PREREQ): Define.
47044         (__attribute_warn_unused_result__): Define.
47045         (fts_children, fts_close, fts_open, fts_read): Declare with
47046         __attribute_warn_unused_result__.
47047
47048         fts: fts_close now fails also when closing a dir file descriptor fails
47049         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47050         and propagate to caller, along with errno.
47051
47052         announce-gen: correct formatting in --help output
47053         * build-aux/announce-gen (usage): Move the one-line description in
47054         --help output "up", to where it belongs, just after Usage:.
47055
47056 2009-08-31  Eric Blake  <ebb9@byu.net>
47057
47058         fchdir: port to mingw
47059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47060         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47061         opened, then use a substitute.
47062         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47063         replacement.
47064         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47065         (_gl_register_fd): No need to check stat if open already filters
47066         all directories.
47067         (fchdir): Fix error condition to match POSIX.
47068         * modules/fchdir (Depends-on): Add sys_stat.
47069         * doc/posix-functions/open.texi (open): Document the limitation.
47070         * modules/fchdir-tests: New file.
47071         * tests/test-fchdir.c: Likewise.
47072
47073         canonicalize: allow cross-testing from cygwin to mingw
47074         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47075         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47076         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47077         Likewise.
47078         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47079         target does not support symlinks.
47080         * tests/test-canonicalize-lgpl.sh: Likewise.
47081
47082         chown: avoid compilation warning on mingw
47083         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47084         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47085         mingw.
47086         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47087         * modules/chown (Depends-on): Add errno.
47088
47089 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47090
47091         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47092         command.
47093
47094 2009-08-31  Jim Meyering  <meyering@redhat.com>
47095
47096         canonicalize: remove useless initialization
47097         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47098         initialization of local, "end".
47099
47100 2009-08-30  Bruno Haible  <bruno@clisp.org>
47101
47102         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47103         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47104         ENOSYS.
47105
47106 2009-08-30  Bruno Haible  <bruno@clisp.org>
47107
47108         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47109         /usr/xpg4/bin/tr when it exists.
47110         * tests/test-pipe-filter-gi1.sh: Likewise.
47111
47112 2009-08-30  Bruno Haible  <bruno@clisp.org>
47113
47114         Work around deficient /usr/bin/id program on Solaris.
47115         * tests/test-file-has-acl.sh (ID): New variable.
47116         * tests/test-set-mode-acl.sh (ID): Likewise.
47117         * tests/test-copy-acl.sh (ID): Likewise.
47118         * tests/test-copy-file.sh (ID): Likewise.
47119
47120 2009-08-30  Bruno Haible  <bruno@clisp.org>
47121
47122         New module 'xstriconveh'.
47123         * lib/xstriconveh.h: New file.
47124         * lib/xstriconveh.c: New file.
47125         * modules/xstriconveh: New file.
47126
47127 2009-08-30  Bruno Haible  <bruno@clisp.org>
47128
47129         Make it easier to use mem_cd_iconveh.
47130         * lib/striconveh.h (iconveh_t): New type.
47131         (iconveh_open, iconveh_close): New declarations.
47132         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47133         with a single 'const iconveh_t *' argument.
47134         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47135         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47136         with a single 'const iconveh_t *' argument.
47137         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47138         * tests/test-striconveh.c (main): Update.
47139         * NEWS: Mention the change.
47140
47141 2009-08-30  Bruno Haible  <bruno@clisp.org>
47142
47143         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47144         problem.
47145
47146 2009-08-30  Bruno Haible  <bruno@clisp.org>
47147
47148         Work around iconv_open problem on Solaris.
47149         * lib/iconv_open-solaris.gperf: New file.
47150         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47151         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47152         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47153         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47154         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47155         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47156
47157 2009-08-29  Jim Meyering  <meyering@redhat.com>
47158
47159         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47160         * top/maint.mk (cvs-check): Remove target; it was just an alias
47161         to the better-named vc-diff-check.
47162         (maintainer-distcheck): Remove rule.  It was used only from
47163         the (alpha/beta/major) target, and all of its commands but one
47164         were coreutils-specific.
47165         (vc-dist): Remove rule.
47166         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47167         Run vc-diff-check, not vc-dist.
47168         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47169
47170 2009-08-27  Bruno Haible  <bruno@clisp.org>
47171
47172         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47173         of 0.
47174
47175 2009-08-27  Bruno Haible  <bruno@clisp.org>
47176
47177         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47178         compilers.
47179         * doc/func.texi: Document the SunPRO C bug.
47180
47181 2009-08-27  Bruno Haible  <bruno@clisp.org>
47182
47183         Fix link error on Solaris.
47184         * tests/test-parse-duration.c (xstrdup): Remove function.
47185
47186 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47187
47188         ignore-value: handle pointer types, too
47189         * lib/ignore-value.h (__attribute__): Remove definition.
47190         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47191         of a more concise and more-often effective "(void) i" statement.
47192         (ignore_ptr): New function to suppress warnings from functions that
47193         return pointers, and to make it explicit that one function doesn't
47194         handle all cases.
47195
47196 2009-08-25  Bruno Haible  <bruno@clisp.org>
47197
47198         dup2: work around a Linux bug.
47199         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47200         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47201         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47202         Reported by Simon Josefsson.
47203
47204 2009-08-25  Jim Meyering  <meyering@redhat.com>
47205
47206         libguestfs uses gnulib
47207         * users.txt: Add libguestfs.
47208
47209 2009-08-24  Eric Blake  <ebb9@byu.net>
47210
47211         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47212         * lib/pipe2.c (includes): Add binary-io.h.
47213         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47214
47215 2009-08-24  Bruno Haible  <bruno@clisp.org>
47216
47217         Tolerate declared but missing accept4 syscall.
47218         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47219         available.
47220         * lib/sys_socket.in.h (accept4): If the function is already present,
47221         override it.
47222         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47223         * modules/accept4 (Makefile.am): Compile accept4.c always.
47224         Reported by Paolo Bonzini and Eric Blake.
47225
47226 2009-08-23  Bruno Haible  <bruno@clisp.org>
47227
47228         New module 'accept4'.
47229         * lib/sys_socket.in.h (accept4): New declaration.
47230         * lib/accept4.c: New file.
47231         * m4/accept4.m4: New file.
47232         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47233         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47234         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47235         HAVE_ACCEPT4.
47236         * modules/accept4: New file.
47237         * doc/glibc-functions/accept4.texi: Mention the new module.
47238
47239 2009-08-24  Jim Meyering  <meyering@redhat.com>
47240
47241         progname: also set global program_invocation_name, when possible
47242         Before this change, a libtool-enabled program that calls glibc's
47243         error function would report the program name as
47244         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47245         * modules/progname (configure.ac): Check for a declaration of
47246         program_invocation_name.
47247         * lib/progname.c:  Include <errno.h>.
47248         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47249         Set program_invocation_name.
47250
47251 2009-08-23  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/dup3.c: Include <string.h>.
47254
47255 2009-08-23  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47258         * lib/pipe2.c (pipe2): Likewise.
47259         Suggested by Eric Blake.
47260
47261 2009-08-23  Bruno Haible  <bruno@clisp.org>
47262
47263         Tolerate declared but missing dup3 syscall.
47264         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47265         * lib/unistd.in.h (dup3): If the function is already present,
47266         override it.
47267         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47268         * modules/dup3 (Makefile.am): Compile dup3.c always.
47269         Reported by Paolo Bonzini.
47270
47271 2009-08-23  Bruno Haible  <bruno@clisp.org>
47272
47273         Tolerate declared but missing pipe2 syscall.
47274         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47275         available.
47276         * lib/unistd.in.h (pipe2): If the function is already present,
47277         override it.
47278         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47279         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47280         Reported by Paolo Bonzini.
47281
47282 2009-08-23  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/pipe2.c (pipe2): Move #ifs inside function.
47285
47286 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47287
47288         quotearg: document limitations of quote_these_too
47289         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47290         those limitations are created.
47291         * lib/quotearg.h (set_char_quoting): Document that digits and
47292         letters that are special after backslash are not permitted.
47293         (quotearg_char): Cross-reference set_char_quoting documentation.
47294
47295 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47296
47297         quotearg: implement custom_quoting_style
47298         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47299         right_quote fields.
47300         (set_custom_quoting): New public function.
47301         (quotearg_buffer_restyled): Add left_quote and right_quote
47302         arguments, handle them very much like locale quoting, and update
47303         all uses.
47304         (quotearg_n_custom): New public function.
47305         (quotearg_n_custom_mem): New public function.
47306         (quotearg_custom): New public function.
47307         (quotearg_custom_mem): New public function.
47308         * lib/quotearg.h: Prototype and document new public functions.
47309         (enum quoting_style): For escape_quoting_style and
47310         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47311         ignored even though they're otherwise like c_quoting_style.
47312         Add custom_quoting_style member and document with comparison to
47313         clocale_quoting_style.
47314         * tests/test-quotearg.c (custom_quotes): New array.
47315         (custom_results): New array.
47316         (main): Extend to test custom quoting.
47317
47318 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47319
47320         quotearg: fix right quote escaping when it's in quote_these_too
47321         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47322         quote, be sure to prepend only one backslash.
47323         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47324         (main): Test it.
47325
47326 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47327
47328         quotearg-tests: test escaping of embedded locale quotes
47329         * tests/test-quotearg.c (struct result_strings): Add member for
47330         new input.
47331         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47332         (inputs): Add new input.
47333         (results_g): Add expected results.
47334         (flag_results): Likewise.
47335         (locale_results): Likewise.
47336         (compare_strings): Check those.
47337
47338 2009-08-23  Bruno Haible  <bruno@clisp.org>
47339
47340         Tests for module 'dup3'.
47341         * modules/dup3-tests: New file.
47342         * tests/test-dup3.c: New file.
47343
47344         New module 'dup3'.
47345         * lib/unistd.in.h (dup3): New declaration.
47346         * lib/dup3.c: New file.
47347         * m4/dup3.m4: New file.
47348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47349         HAVE_DUP3.
47350         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47351         * modules/dup3: New file.
47352         * doc/glibc-functions/dup3.texi: Mention the new module.
47353
47354 2009-08-23  Bruno Haible  <bruno@clisp.org>
47355
47356         Tweak the dup2 test.
47357         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47358         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47359         the test file is still empty. Fix argument order of lseek.
47360
47361 2009-08-23  Bruno Haible  <bruno@clisp.org>
47362
47363         Avoid test link errors when the modules getopt-gnu, gettext are used.
47364         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47366
47367 2009-08-23  Bruno Haible  <bruno@clisp.org>
47368
47369         Fix getdtablesize() on mingw.
47370         * lib/getdtablesize.c (getdtablesize): Implement differently.
47371         * lib/unistd.in.h (getdtablesize): Improve comment.
47372
47373 2009-08-23  Bruno Haible  <bruno@clisp.org>
47374
47375         New module 'mkostemp'.
47376         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47377         * lib/stdlib.in.h (mksotemp): New declaration.
47378         * lib/mkostemp.c: New file, from glibc with modifications.
47379         * lib/tempname.h (GT_FILE): Remove outdated comment.
47380         (gen_tempname): Add flags argument.
47381         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47382         (__GT_FILE): Map to 1.
47383         (small_open, large_open): Remove macros.
47384         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47385         * lib/mkstemp.c (mkstemp): Update.
47386         * lib/mkdtemp.c (mkdtemp): Likewise.
47387         * m4/mkostemp.m4: New file.
47388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47389         HAVE_MKOSTEMP.
47390         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47391         HAVE_MKOSTEMP.
47392         * modules/mkostemp: New file, based on modules/mkstemp.
47393         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47394         * NEWS: Mention the change.
47395
47396 2009-08-23  Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47399         Reported by Eric Blake.
47400
47401 2009-08-23  Bruno Haible  <bruno@clisp.org>
47402
47403         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47404         Reported by Eric Blake.
47405
47406 2009-08-23  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47409         * modules/pipe2 (Depends-on): Likewise.
47410
47411 2009-08-23  Eric Blake  <ebb9@byu.net>
47412
47413         fcntl-h: add O_TTY_INIT support
47414         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47415         * tests/test-fcntl-h.c (o): Test it.
47416         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47417
47418         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47419         * modules/fcntl: Move <fcntl.h> header replacement...
47420         * modules/fcntl-h: ...to new name, so as not to collide with
47421         like-named function.
47422         * tests/test-fcntl.c: Rename...
47423         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47424         * modules/fcntl-tests: Rename...
47425         * modules/fcntl-h-tests: ...to this.  Update test file name.
47426         * modules/chdir-long (Depends-on): Update clients.
47427         * modules/chdir-safer (Depends-on): Likewise.
47428         * modules/fcntl-safer (Depends-on): Likewise.
47429         * modules/fts (Depends-on): Likewise.
47430         * modules/mkancesdirs (Depends-on): Likewise.
47431         * modules/mkdir-p (Depends-on): Likewise.
47432         * modules/open (Depends-on): Likewise.
47433         * modules/savewd (Depends-on): Likewise.
47434         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47435         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47436
47437 2009-08-22  Bruno Haible  <bruno@clisp.org>
47438
47439         * modules/binary-io (License): Relicense under LGPL.
47440         * modules/pipe2 (License): Likewise.
47441
47442 2009-08-22  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47445         return value.
47446         * lib/pipe-filter-gi.c (filter_init): Likewise.
47447         Reported by Eric Blake.
47448
47449 2009-08-22  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47452         * modules/pipe (Depends-on): Add pipe2.
47453
47454 2009-08-22  Bruno Haible  <bruno@clisp.org>
47455
47456         Tests for module 'pipe2'.
47457         * modules/pipe2-tests: New file.
47458         * tests/test-pipe2.c: New file.
47459
47460         New module 'pipe2'.
47461         * lib/unistd.in.h (pipe2): New declaration.
47462         * lib/pipe2.c: New file.
47463         * m4/pipe2.m4: New file.
47464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47465         HAVE_PIPE2.
47466         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47467         * modules/pipe2: New file.
47468         * doc/glibc-functions/pipe2.texi: Mention the new module.
47469
47470 2009-08-22  Bruno Haible  <bruno@clisp.org>
47471
47472         Reference some new glibc functions.
47473         * doc/glibc-functions/accept4.texi: New file.
47474         * doc/glibc-functions/dup3.texi: New file.
47475         * doc/glibc-functions/mkostemp.texi: New file.
47476         * doc/glibc-functions/pipe2.texi: New file.
47477         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47478         (Glibc sys/socket.h): Refer to accept4.
47479         (Glibc unistd.h): Refer to dup3, pipe2.
47480         Reported by Eric Blake.
47481
47482 2009-08-22  Jim Meyering  <meyering@redhat.com>
47483             Bruno Haible  <bruno@clisp.org>
47484
47485         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47486         This makes it so packages using automake-1.11's silent-rules option
47487         can print e.g., a single "GEN    configmake.h" line, rather than
47488         the 30+ statements that perform the job.  If you want to see the
47489         actual commands, you can still run "make V=1".
47490         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47491         so that make output is abbreviated when those variables are defined
47492         appropriately.
47493         * modules/argz: Likewise.
47494         * modules/arpa_inet: Likewise.
47495         * modules/byteswap: Likewise.
47496         * modules/configmake: Likewise.
47497         * modules/dirent: Likewise.
47498         * modules/errno: Likewise.
47499         * modules/fcntl: Likewise.
47500         * modules/float: Likewise.
47501         * modules/fnmatch: Likewise.
47502         * modules/getopt-posix: Likewise.
47503         * modules/glob: Likewise.
47504         * modules/iconv_open: Likewise.
47505         * modules/inttypes: Likewise.
47506         * modules/localcharset: Likewise.
47507         * modules/locale: Likewise.
47508         * modules/math: Likewise.
47509         * modules/netdb: Likewise.
47510         * modules/netinet_in: Likewise.
47511         * modules/poll: Likewise.
47512         * modules/posix_spawnp-tests: Likewise.
47513         * modules/sched: Likewise.
47514         * modules/search: Likewise.
47515         * modules/selinux-h: Likewise.
47516         * modules/signal: Likewise.
47517         * modules/spawn: Likewise.
47518         * modules/stdarg: Likewise.
47519         * modules/stdbool: Likewise.
47520         * modules/stddef: Likewise.
47521         * modules/stdint: Likewise.
47522         * modules/stdio: Likewise.
47523         * modules/stdlib: Likewise.
47524         * modules/string: Likewise.
47525         * modules/strings: Likewise.
47526         * modules/sys_file: Likewise.
47527         * modules/sys_ioctl: Likewise.
47528         * modules/sys_select: Likewise.
47529         * modules/sys_socket: Likewise.
47530         * modules/sys_stat: Likewise.
47531         * modules/sys_time: Likewise.
47532         * modules/sys_times: Likewise.
47533         * modules/sys_utsname: Likewise.
47534         * modules/sys_wait: Likewise.
47535         * modules/sysexits: Likewise.
47536         * modules/time: Likewise.
47537         * modules/unistd: Likewise.
47538         * modules/wchar: Likewise.
47539         * modules/wctype: Likewise.
47540
47541 2009-08-22  Jim Meyering  <meyering@redhat.com>
47542
47543         announce-gen: detect write failure
47544         * build-aux/announce-gen: Add Coda at end.
47545         Remove equivalent-but-more-verbose block at top.
47546
47547 2009-08-19  Akim Demaille  <demaille@gostai.com>
47548
47549         bootstrap: --help to stdout.
47550         * bootstrap (usage): Don't send --help to stderr.
47551         Use a here doc instead of a long string.
47552
47553 2009-08-21  Eric Blake  <ebb9@byu.net>
47554
47555         test-popen-safer: split from test-popen
47556         * tests/test-popen.c (main): Move...
47557         * tests/test-popen.h: ...into new file.
47558         * tests/test-popen-safer2.c: New file.
47559         * modules/popen-tests (Files): Add test-popen.h.
47560         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47561         Suggested by Bruno Haible.
47562
47563         test-fcntl-safer: split from test-open
47564         * tests/test-open.c (main): Move...
47565         * tests/test-open.h: ...into new file.
47566         * tests/test-fcntl-safer.c: New file.
47567         * modules/open-tests (Files): Add test-open.h.
47568         * modules/fcntl-safer-tests: New file.
47569         Suggested by Bruno Haible.
47570
47571         test-fopen-safer: split from test-fopen
47572         * tests/test-fopen.c (main): Move...
47573         * tests/test-fopen.h: ...into new file.
47574         * tests/test-fopen-safer.c: New file.
47575         * modules/fopen-tests (Files): Add test-fopen.h.
47576         * modules/fopen-safer-tests: New file.
47577         Suggested by Bruno Haible.
47578
47579 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47580
47581         popen-safer: test O_CLOEXEC at run-time.
47582         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47583
47584 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47585
47586         fcntl: move more flags to the header
47587         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47588         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47589         * lib/fcntl.in.h: Do both things here.
47590
47591 2009-08-21  Jim Meyering  <meyering@redhat.com>
47592
47593         consistently remove $@-t before redirecting to it
47594         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47595         * modules/alloca-opt: Likewise.
47596         * modules/byteswap: Likewise.
47597         * modules/fnmatch: Likewise.
47598         * modules/getopt-posix: Likewise.
47599         * modules/glob: Likewise.
47600         * modules/poll: Likewise.
47601         * modules/posix_spawnp-tests: Likewise.
47602         * modules/sys_socket: Likewise.
47603         * modules/sysexits: Likewise.
47604
47605 2009-08-21  Eric Blake  <ebb9@byu.net>
47606
47607         popen: simplify access to original popen
47608         * lib/popen.c (rpl_popen): No need to worry about popen being a
47609         macro.
47610         Reported by Bruno Haible.
47611
47612 2009-08-20  Eric Blake  <ebb9@byu.net>
47613
47614         build: avoid some compiler warnings
47615         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47616         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47617         type.
47618         (new_exclude_segment, excluded_file_pattern_p)
47619         (excluded_file_name_p): Reduce scope.
47620         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47621         old-style declaration.
47622
47623 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47624
47625         * tests/test-exclude1.sh: Handle Windows EOL.
47626         * tests/test-exclude2.sh: Likewise.
47627         * tests/test-exclude3.sh: Likewise.
47628         * tests/test-exclude4.sh: Likewise.
47629         * tests/test-exclude5.sh: Likewise.
47630         * tests/test-exclude6.sh: Likewise.
47631         * tests/test-exclude7.sh: Likewise.
47632
47633 2009-08-19  Akim Demaille  <demaille@gostai.com>
47634
47635         bootstrap: find sha1sum when named gsha1sum.
47636         * bootstrap (find_tool): New.
47637         ($SHA1SUM): New.
47638         Use it.
47639
47640 2009-08-20  Jim Meyering  <meyering@redhat.com>
47641
47642         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47643         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47644         expression that converts "." in a file name to "\." in the resulting
47645         regexp.  Start with a dummy statement, so that prior shell variable
47646         definitions are expanded portably.  Reported by Simon Josefsson.
47647
47648 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47649
47650         Fix polling for writeability of a screen buffer.
47651         * lib/poll.c: Distinguish input and screen buffers for the
47652         Win32 implementation.
47653         * lib/select.c: Likewise.
47654
47655 2009-08-19  Eric Blake  <ebb9@byu.net>
47656
47657         popen-safer: prevent popen from clobbering std descriptors
47658         * modules/popen-safer: New file.
47659         * lib/popen-safer.c: Likewise.
47660         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47661         * lib/stdio--.h (popen): Provide override.
47662         * lib/stdio-safer.h (popen_safer): Provide declaration.
47663         * tests/test-popen.c (includes): Partially test this.
47664         * modules/popen-safer-tests: New file, for more tests.
47665         * tests/test-popen-safer.c: Likewise.
47666         * MODULES.html.sh (file stream based Input/Output): Mention it.
47667
47668         tests: test some of the *-safer modules
47669         * modules/fopen-safer (Depends-on): Add fopen.
47670         * modules/fcntl-safer (Depends-on): Add fcntl.
47671         * modules/stdlib-safer (Depends-on): Add stdlib.
47672         (configure.ac): Set indicator.
47673         * modules/unistd-safer (configure.ac): Likewise.
47674         * modules/tmpfile-safer (configure.ac): Likewise.
47675         (Depends-on): Add tmpfile.
47676         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47677         active.
47678         * tests/test-fopen.c (includes): Test safer versions when they are
47679         in use.
47680         * tests/test-open.c (includes): Likewise.
47681
47682         popen: fix cygwin 1.5 bug when stdin closed
47683         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47684         * modules/popen: New file.
47685         * modules/popen-tests: Likewise.
47686         * tests/test-popen.c: Likewise.
47687         * m4/popen.m4: Likewise.
47688         * lib/popen.c: Likewise.
47689         * lib/stdio.in.h (popen): New declaration.
47690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47691         * modules/stdio (Makefile.am): Likewise.
47692         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47693
47694 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47695
47696         maint.mk: give full control over update-copyright exclusions
47697         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47698         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47699         (update-copyright): Don't force inclusion of top-level
47700         ChangeLog.  Don't force exclusion of all COPYING files, but make
47701         them the default exclusion instead.
47702
47703 2009-08-16  Bruno Haible  <bruno@clisp.org>
47704
47705         Fix test failures on Solaris 10.
47706         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47707         tests when Solaris iconv() is used.
47708         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47709         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47710         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47711         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47712         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47713
47714 2009-08-16  Bruno Haible  <bruno@clisp.org>
47715
47716         Fix test failures on Solaris 10.
47717         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47718         'tr' program and pass it as first argument.
47719         * tests/test-pipe-filter-gi1.sh: Likewise.
47720         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47721         program as first argument.
47722         * tests/test-pipe-filter-gi1.c (main): Likewise.
47723
47724 2009-08-16  Eric Blake  <ebb9@byu.net>
47725
47726         fpurge: fix previous commits
47727         * modules/fpurge (Makefile.am): Make replacement conditional,
47728         partially reverting 2007-04-29 change; missed in previous
47729         attempt.
47730         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47731         is missing.
47732
47733 2009-08-16  Bruno Haible  <bruno@clisp.org>
47734
47735         Clarify fpurge's effect on the file position.
47736         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47737         * tests/test-fpurge.c (main): Make a second pass for checking the file
47738         position.
47739
47740 2009-08-16  Bruno Haible  <bruno@clisp.org>
47741
47742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47743         declaration of fpurge is missing.
47744         * tests/test-fpurge.c (main): Check that the file has not more contents
47745         than expected. Close the file before removing it.
47746
47747 2009-08-15  Eric Blake  <ebb9@byu.net>
47748
47749         fpurge: don't wrap working cygwin implementation
47750         * lib/fpurge.c (fpurge): Fix comment typo.
47751         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47752         1.7 to avoid replacement.
47753         * tests/test-fpurge.c (main): Enhance test.
47754
47755 2009-08-15  Eric Blake  <ebb9@byu.net>
47756         and Jim Meyering  <meyering@redhat.com>
47757
47758         test-update-copyright: skip if perl is insufficient
47759         * tests/test-update-copyright.sh: Failure to run maintainer tool
47760         should not cause testsuite failure on cygwin 1.5.
47761
47762 2009-08-14  Eric Blake  <ebb9@byu.net>
47763
47764         doc: mention more functions added in cygwin 1.7.0
47765         * doc/posix-headers/limits.texi (limits.h): Update for recent
47766         cygwin additions.
47767         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47768         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47769         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47770         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47771         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47772
47773 2009-08-14  Eric Blake  <ebb9@byu.net>
47774
47775         maint.mk: simplify update-copyright rule
47776         * top/maint.mk (update-copyright-local): Delete, and document how
47777         to do it in cfg.mk instead.
47778         (update-copyright-exclude-regexp): Delete, and document how to do
47779         it in .x-update-copyright instead.
47780         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47781         exclude ChangeLog.
47782
47783 2009-08-14  Bruno Haible  <bruno@clisp.org>
47784
47785         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47786
47787 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47788
47789         maint.mk: support update-copyright-env
47790         * top/maint.mk (update-copyright-env): Define place-holder.
47791         (update-copyright): Expand $(update-copyright-env) before
47792         invoking update-copyright.
47793
47794 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47795
47796         update-copyright: implement forced reformatting
47797         * build-aux/update-copyright: Implement and document
47798         UPDATE_COPYRIGHT_FORCE.
47799         * tests/test-update-copyright.sh: Test it.
47800
47801 2009-08-14  Eric Blake  <ebb9@byu.net>
47802         and Bruno Haible  <bruno@clisp.org>
47803
47804         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47805         * tests/test-locale.c: Revert previous patch related to NULL.
47806         * tests/test-stdio.c: Likewise.
47807         * tests/test-stdlib.c: Likewise.
47808         * tests/test-string.c: Likewise.
47809         * tests/test-unistd.c: Likewise.
47810         * modules/time-tests (Depends-on): Add verify.
47811         * modules/wchar-tests (Depends-on): Likewise.
47812         * tests/test-time.c: Test for NULL compliance.
47813         * tests/test-wchar.c: Likewise.
47814         * modules/locale (Depends-on): Add stddef.
47815         * modules/stdio (Depends-on): Likewise.
47816         * modules/stdlib (Depends-on): Likewise.
47817         * modules/string (Depends-on): Likewise.
47818         * modules/time (Depends-on): Likewise.
47819         * modules/unistd (Depends-on): Likewise.
47820         * modules/wchar (Depends-on): Likewise.
47821         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47822         * lib/stdlib.in.h (includes): Likewise.
47823         * lib/string.in.h (includes): Likewise.
47824         * lib/time.in.h (includes): Likewise.
47825         * lib/unistd.in.h (includes): Likewise.
47826         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47827         replaced.
47828         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47829         * m4/stddef_h.m4: New file.
47830         * modules/stddef: Likewise.
47831         * lib/stddef.in.h: Likewise.
47832         * modules/stddef-tests: Likewise.
47833         * tests/test-stddef.c: Likewise.
47834         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47835         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47836         * doc/posix-headers/locale.texi (locale.h): Likewise.
47837         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47838         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47839         * doc/posix-headers/string.texi (string.h): Likewise.
47840         * doc/posix-headers/time.texi (time.h): Likewise.
47841         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47842         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47843
47844 2009-08-14  Eric Blake  <ebb9@byu.net>
47845
47846         doc: improve git diff of texinfo files
47847         * .gitattributes: Add rule for *.texi files, with hint on how to
47848         use it.
47849         Copied from m4, and based on a report by Bruno Haible.
47850
47851 2009-08-14  Bruno Haible  <bruno@clisp.org>
47852
47853         Disable multithread support by default on Cygwin 1.5.x for real.
47854         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47855
47856 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47857
47858         update-copyright: much ado about intervals
47859         * build-aux/update-copyright: Implement and document
47860         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47861         of copyright year intervals.
47862         Also, document UPDATE_COPYRIGHT_YEAR.
47863         * tests/test-update-copyright.sh: Test it.
47864
47865         update-copyright: convert 2-digit to 4-digit years
47866         * build-aux/update-copyright: Implement and document.
47867         * tests/test-update-copyright.sh: Update.
47868
47869 2009-08-14  Jim Meyering  <meyering@redhat.com>
47870
47871         test-exclude: avoid coreutils "make check" failure
47872         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47873         just as in test-argmatch.c.
47874
47875 2009-08-13  Eric Blake  <ebb9@byu.net>
47876
47877         test-dup2: fix bad assumption
47878         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47879         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47880
47881         test-version-etc: fix CRLF portability issue
47882         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47883         recognize \r.
47884         * tests/test-argp-version-etc-1.sh: Likewise.
47885
47886         getopt: update client modules
47887         * modules/argp (Depends-on): Use getopt-gnu.
47888         * modules/git-merge-changelog (Depends-on): Likewise.
47889         * modules/long-options (Depends-on): Likewise.
47890         * modules/xstrtol (Depends-on): Likewise.
47891
47892 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47893
47894         * tests/test-version-etc.sh: Don't fail on different
47895         project/version.  Don't fail on CRLF differences.  Rewrite to use
47896         multiple -e instead of multiple sed forks, suggested by Eric Blake
47897         <ebb9@byu.net>.
47898         * tests/test-argp-version-etc-1.sh: Likewise.
47899
47900 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47901
47902         * tests/test-version-etc.sh: Don't fail on different
47903         project/version.
47904
47905 2009-08-12  Bruno Haible  <bruno@clisp.org>
47906
47907         Tests for modules 'getopt-posix', 'getopt-gnu'.
47908         * modules/getopt-posix-tests: New file.
47909         * tests/test-getopt.c: New file.
47910         * tests/test-getopt.h: New file.
47911         * tests/test-getopt_long.h: New file.
47912
47913         New modules 'getopt-posix', 'getopt-gnu'.
47914         * modules/getopt-gnu: New file, renamed from modules/getopt.
47915         * modules/getopt-posix: New file.
47916         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47917         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47918         (gl_GETOPT): Remove macro.
47919         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47920         Disable the test against BSD systems that declare optreset. Test
47921         against mingw bug. Test against lack of support of optional arguments
47922         on many platforms.
47923         * doc/glibc-headers/getopt.texi: Update module name and list of
47924         relevant platforms.
47925         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47926         'getopt-gnu' and more portability problems.
47927         * NEWS: Mention the changes.
47928
47929 2009-08-12  Bruno Haible  <bruno@clisp.org>
47930
47931         Ensure that optarg etc. get declared by <unistd.h>.
47932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47933         AC_USE_SYSTEM_EXTENSIONS.
47934         * modules/getopt (Depends-on): Add 'extensions'.
47935
47936 2009-08-12  Bruno Haible  <bruno@clisp.org>
47937
47938         Avoid test link errors.
47939         * modules/pipe-filter-ii-tests (Makefile.am): Define
47940         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47941         * modules/pipe-filter-gi-tests (Makefile.am): Define
47942         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47944
47945 2009-08-12  Bruno Haible  <bruno@clisp.org>
47946
47947         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47948         gl_GETOPT_SUBSTITUTE before.
47949         (gl_GETOPT): Use it.
47950         * m4/argp.m4 (gl_ARGP): Update.
47951         Reported by Sergey Poznyakoff.
47952
47953         * m4/getopt.m4: Reorder macros.
47954         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47955         (gl_GETOPT_SUBSTITUTE): Remove macro.
47956
47957 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47958
47959         Minor improvement in gitlog-to-changelog
47960
47961         * build-aux/gitlog-to-changelog: New option `--format' makes
47962         output format string configurable.
47963
47964 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47965
47966         Optimize exclude: use hash tables for non-wildcard patterns.
47967
47968         * lib/exclude.c: Include hash.h and mbuiter.h
47969         (struct exclude_pattern, exclude_segment): New data types.
47970         (struct exclude): Rewrite.
47971         (fnmatch_pattern_has_wildcards): New function.
47972         (new_exclude_segment, free_exclude_segment): New functions.
47973         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47974         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47975         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47976         * modules/exclude: Depend on hash and mbuiter.
47977
47978         * modules/exclude-tests: New file.
47979         * tests/test-exclude.c: New file.
47980         * tests/test-exclude1.sh: New file.
47981         * tests/test-exclude2.sh: New file.
47982         * tests/test-exclude3.sh: New file.
47983         * tests/test-exclude4.sh: New file.
47984         * tests/test-exclude5.sh: New file.
47985         * tests/test-exclude6.sh: New file.
47986         * tests/test-exclude7.sh: New file.
47987
47988 2009-08-12  Bruno Haible  <bruno@clisp.org>
47989
47990         Ensure that getopt() gets declared by <unistd.h>.
47991         * lib/unistd.in.h: Conditionally include getopt.h.
47992         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47993         Set GNULIB_UNISTD_H_GETOPT.
47994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47995         GNULIB_UNISTD_H_GETOPT.
47996         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47997
47998 2009-08-12  Bruno Haible  <bruno@clisp.org>
47999
48000         Clarify logic.
48001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48002         gl_replace_getopt instead of GETOPT_H.
48003
48004 2009-08-12  Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/getopt.m4: Add comments.
48007
48008 2009-08-12  Bruno Haible  <bruno@clisp.org>
48009
48010         Disable multithread support by default on Cygwin 1.5.x.
48011         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48012         set gl_use_threads=no if not specified otherwise.
48013
48014 2009-08-11  Bruno Haible  <bruno@clisp.org>
48015
48016         Avoid compilation error on NetBSD 5.0.
48017         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48018         * tests/test-stdio.c: Likewise.
48019         * tests/test-stdlib.c: Likewise.
48020         * tests/test-string.c: Likewise.
48021         * tests/test-unistd.c: Likewise.
48022         Reported by Greg Troxel <gdt@ir.bbn.com>
48023         at <https://savannah.gnu.org/support/?106973>.
48024
48025 2009-08-11  Bruno Haible  <bruno@clisp.org>
48026
48027         * modules/dup2-tests (Depends-on): Remove close.
48028
48029         Undo 2009-07-19 commit.
48030         * modules/acl-tests (Depends-on): Remove close.
48031         * modules/binary-io-tests (Depends-on): Likewise.
48032         * modules/closein-tests (Depends-on): Likewise.
48033         * modules/flock-tests (Depends-on): Likewise.
48034         * modules/fsync-tests (Depends-on): Likewise.
48035         * modules/lseek-tests (Depends-on): Likewise.
48036         * modules/pipe-tests (Depends-on): Likewise.
48037         * modules/posix_spawn-tests (Depends-on): Likewise.
48038         * modules/posix_spawnp-tests (Depends-on): Likewise.
48039         * modules/stat-time-tests (Depends-on): Likewise.
48040         * modules/yesno-tests (Depends-on): Likewise.
48041
48042 2009-08-10  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48045
48046 2009-08-10  Bruno Haible  <bruno@clisp.org>
48047
48048         Fix a gcc warning.
48049         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48050
48051 2009-08-10  Bruno Haible  <bruno@clisp.org>
48052
48053         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48054         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48055         not only the first time.
48056         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48057         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48058         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48059         is 1, not only the the first time.
48060
48061 2009-08-10  Bruno Haible  <bruno@clisp.org>
48062
48063         Make it possible to use module 'gethostname' without module 'close'.
48064         * lib/unistd.in.h (close): Evoke a link error only if
48065         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48067         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48068         * modules/unistd (Makefile.am): Substitute
48069         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48070         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48071         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48072         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48073         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48074         * modules/sys_ioctl (Makefile.am): Substitute
48075         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48076         * modules/socket (configure.ac): On native Windows, set
48077         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48078         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48079         Reported by Sam Steingold <sds@gnu.org>.
48080
48081 2009-08-10  Bruno Haible  <bruno@clisp.org>
48082
48083         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48084         * modules/ioctl (configure.ac): Likewise.
48085
48086 2009-08-10  Bruno Haible  <bruno@clisp.org>
48087
48088         Avoid collision between gnulib wrapper and libintl wrapper.
48089         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48090         already defined in intl/printf.c.
48091         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48092         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48093
48094 2009-08-09  Bruno Haible  <bruno@clisp.org>
48095
48096         Make <sys/select.h> really self-contained, also on Solaris 10.
48097         * lib/sys_select.in.h: Include <string.h>.
48098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48099         Solaris 10 problem.
48100         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48101         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48102         Reported by Jim Meyering.
48103
48104 2009-08-09  Bruno Haible  <bruno@clisp.org>
48105
48106         Avoid warnings from 'aclocal' that are due to a use of macro name
48107         AM_XGETTEXT_OPTION that is not defined in automake.
48108         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48109         automake.
48110         * modules/error (configure.ac): Likewise.
48111         * modules/propername (configure.ac): Likewise.
48112         * modules/vasprintf (configure.ac): Likewise.
48113         * modules/verror (configure.ac): Likewise.
48114         * modules/xprintf (configure.ac): Likewise.
48115         * modules/xvasprintf (configure.ac): Likewise.
48116
48117 2009-08-08  Bruno Haible  <bruno@clisp.org>
48118
48119         Avoid compilation error in C++ mode.
48120         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48121         Reported by Sam Steingold <sds@gnu.org>.
48122
48123 2009-08-08  Bruno Haible  <bruno@clisp.org>
48124
48125         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48126         for the various Unix platforms.
48127         * doc/posix-headers/limits.texi: Update platforms list regarding
48128         HOST_NAME_MAX.
48129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48130
48131 2009-08-07  Jim Meyering  <meyering@redhat.com>
48132
48133         selinux-at: fix typo in a comment
48134         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48135         Spotted by Paolo Bonzini.
48136
48137         selinux-at: remove redundant m4 code, add documentation
48138         * modules/selinux-at (configure.ac): Remove redundant code.
48139         LIB_SELINUX is already set via the dependent module, selinux-h.
48140         (Include): Add quotes around selinux-at.h.
48141         * lib/selinux-at.h: Add documentation.
48142         Reported by Bruno Haible in
48143         http://marc.info/?l=gnulib-bug&m=124958988300749
48144
48145 2009-08-07  Bruno Haible  <bruno@clisp.org>
48146
48147         Avoid link error on MacOS X 10.3 and 10.4.
48148         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48149         on non-ELF systems.
48150         * lib/argp-pv.c (argp_program_version): Likewise.
48151         Reported by Simon Josefsson.
48152
48153 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48154
48155         * tests/test-version-etc.sh: Use $EXEEXT.
48156
48157 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48158
48159         update-copyright: update documentation to point to maint.mk
48160         * build-aux/update-copyright: Here.
48161
48162 2009-08-06  Jim Meyering  <meyering@redhat.com>
48163
48164         maint.mk: support update-copyright-local
48165         * top/maint.mk (update-copyright-local): Define place-holder.
48166         (update-copyright): Depend on $(update-copyright-local).
48167
48168 2009-08-06  Jim Meyering  <meyering@redhat.com>
48169
48170         selinux-at: new module
48171         Initially written for coreutils, this module will soon be
48172         used by findutils, too.
48173         * MODULES.html.sh [Misc]: Add selinux-at.
48174         * lib/selinux-at.h: New file, from coreutils.
48175         * lib/selinux-at.c: Likewise.
48176         * modules/selinux-at: Likewise.
48177         (License): Change from LGPL to GPL, since it depends
48178         on the GPL'd openat module.
48179
48180         doc: update README
48181         * README: Remove references to cogito.
48182         Remove cvs-repo-updating instructions from 2007.
48183         Don't imply that CVS is better if you have limited disk space.
48184
48185 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48186
48187         update-copyright: support C-style comments
48188         * build-aux/update-copyright: Implement and document.
48189         * tests/test-update-copyright.sh: Test.
48190
48191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48192
48193         update-copyright: support omitted "(C)"
48194         * build-aux/update-copyright: Implement and document.  Also,
48195         allow variable whitespace before "(C)".
48196         * tests/test-update-copyright.sh: Test.
48197
48198 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48199
48200         update-copyright: don't trip on non-FSF copyright statements
48201         * build-aux/update-copyright: Fix so that the first correctly
48202         formatted FSF copyright statement is recognized no matter what
48203         appears before it.  Update documentation.
48204         * tests/test-update-copyright.sh: Test that.
48205
48206 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48207
48208         update-copyright: clean up code a little
48209         * build-aux/update-copyright: Append "_re" to the name of any
48210         variable holding a regular expression.
48211         Replace "old" and "new" with "stmt" in variable names.
48212         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48213         handled correctly.
48214         Format code more consistently.
48215
48216 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48217
48218         update-copyright-tests: improve portability
48219         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48220         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48221
48222 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48223
48224         update-copyright: support @copyright{} and &copy;
48225         * build-aux/update-copyright: Implement and document.
48226         * tests/test-update-copyright.sh: Test.
48227
48228 2009-08-04  Jim Meyering  <meyering@redhat.com>
48229
48230         update-copyright-tests: correctly test EOL=\r\n handling
48231         * tests/test-update-copyright.sh: Put \r at the end of some lines
48232         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48233
48234         maint.mk: make update-copyright exclusion list more configurable
48235         * top/maint.mk (update-copyright): Default to excluding COPYING,
48236         but allow an override, in case someone does want to update that file.
48237
48238         maint.mk: don't update copyright date in COPYING
48239         * top/maint.mk (update-copyright): Exclude COPYING.
48240
48241         maint.mk: add a copyright-updating rule
48242         * top/maint.mk (update-copyright): New rule.
48243         Derived from coreutils/Makefile.am.
48244
48245         update-copyright: rename some variables
48246         * build-aux/update-copyright: Rename a few variables for clarity.
48247         Tweak syntax.  List Joel E. Denny as coauthor.
48248
48249 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48250
48251         update-copyright: fix bug for 2-digit last year and add tests
48252         * build-aux/update-copyright: Fix bug.
48253         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48254         specified.
48255         * modules/update-copyright-tests: New
48256         * tests/test-update-copyright.sh: New.
48257
48258 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48259
48260         update-copyright: handle leading tabs in line prefix
48261         * build-aux/update-copyright: Count leading tabs as 8 spaces
48262         when computing margin.  This helps with the formatting of
48263         ChangeLogs, for example.
48264         Fix documentation a little.
48265
48266 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48267
48268         update-copyright: support EOL=\r\n
48269         * build-aux/update-copyright: Implement that.
48270
48271 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48272
48273         update-copyright: automatically format copyright statements
48274         * build-aux/update-copyright: Implement that.
48275         Also, be a little more predictable and safer by always failing
48276         when the full copyright format is not perfectly recognized as an
48277         unbroken whole.  Discussed at
48278         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48279         Rewrite documentation.
48280
48281 2009-08-03  Bruno Haible  <bruno@clisp.org>
48282
48283         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48284
48285 2009-08-02  Bruno Haible  <bruno@clisp.org>
48286
48287         Tests for module 'uname'.
48288         * modules/uname-tests: New file.
48289         * tests/test-uname.c: New file.
48290
48291         New module 'uname'.
48292         * lib/uname.c: New file.
48293         * m4/uname.m4: New file.
48294         * modules/uname: New file.
48295         * doc/posix-functions/uname.texi: Mention the new module.
48296
48297 2009-08-02  Bruno Haible  <bruno@clisp.org>
48298
48299         Tests for module 'sys_utsname'.
48300         * modules/sys_utsname-tests: New file.
48301         * tests/test-sys_utsname.c: New file.
48302
48303         New module 'sys_utsname'.
48304         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48305         * m4/sys_utsname_h.m4: New file.
48306         * modules/sys_utsname: New file.
48307         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48308
48309 2009-08-02  Bruno Haible  <bruno@clisp.org>
48310
48311         Implicitly initialize the sockets library.
48312         * lib/gethostname.c: Include sockets.h.
48313         (rpl_gethostname): Invoke gl_sockets_startup.
48314         * lib/socket.c: Include sockets.h.
48315         (rpl_socket): Invoke gl_sockets_startup.
48316         * modules/gethostname (Depends-on): Add sockets.
48317         * modules/socket (Depends-on): Likewise.
48318         * tests/test-poll.c: Don't include sockets.h.
48319         (main): Don't invoke gl_sockets_startup.
48320         * tests/test-select.c: Don't include sockets.h.
48321         (main): Don't invoke gl_sockets_startup.
48322
48323 2009-08-02  Bruno Haible  <bruno@clisp.org>
48324
48325         Allow multiple calls to gl_sockets_startup.
48326         * lib/sockets.c (initialized_sockets_version): New variable.
48327         (gl_sockets_startup): Do nothing if already called for this or a higher
48328         version.
48329         (gl_sockets_cleanup): Reset initialized_sockets_version.
48330
48331 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48332
48333         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48334         different project/version.
48335
48336 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48337             Bruno Haible  <bruno@clisp.org>
48338
48339         Tests for module 'pipe-filter-gi'.
48340         * modules/pipe-filter-gi-tests: New file.
48341         * tests/test-pipe-filter-gi1.sh: New file.
48342         * tests/test-pipe-filter-gi1.c: New file.
48343         * tests/test-pipe-filter-gi2.sh: New file.
48344         * tests/test-pipe-filter-gi2-main.c: New file.
48345         * tests/test-pipe-filter-gi2-child.c: New file.
48346
48347         New module 'pipe-filter-gi'.
48348         * lib/pipe-filter-gi.c: New file.
48349         * modules/pipe-filter-gi: New file.
48350
48351 2009-08-02  Bruno Haible  <bruno@clisp.org>
48352             Paolo Bonzini  <bonzini@gnu.org>
48353
48354         Tests for module 'pipe-filter-ii'.
48355         * modules/pipe-filter-ii-tests: New file.
48356         * tests/test-pipe-filter-ii1.sh: New file.
48357         * tests/test-pipe-filter-ii1.c: New file.
48358         * tests/test-pipe-filter-ii2.sh: New file.
48359         * tests/test-pipe-filter-ii2-main.c: New file.
48360         * tests/test-pipe-filter-ii2-child.c: New file.
48361
48362         New module 'pipe-filter-ii'.
48363         * lib/pipe-filter.h: New file.
48364         * lib/pipe-filter-ii.c: New file.
48365         * lib/pipe-filter-aux.h: New file.
48366         * modules/pipe-filter-ii: New file.
48367
48368 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48369
48370         * lib/gc-libgcrypt.c: Change copyright to FSF.
48371         * lib/gc-gnulib.c: Likewise.
48372
48373 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48374
48375         * lib/gethostname.c: Include limits.h.
48376
48377 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48378             Bruno Haible  <bruno@clisp.org>
48379
48380         Ensure HOST_NAME_MAX as part of the gethostname module.
48381         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48382         define also HOST_NAME_MAX.
48383         * tests/test-gethostname.c: Include <limits.h>.
48384         (main): Check also HOST_NAME_MAX.
48385         * doc/posix-headers/limits.texi: Document the mingw problem.
48386
48387 2009-08-02  Bruno Haible  <bruno@clisp.org>
48388
48389         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48390         Add comments.
48391
48392 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48393
48394         * lib/gethostname.c: Add Windows wrapper.
48395         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48396         * modules/gethostname: Depend on sys_socket & errno, for also
48397         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48398         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48399
48400 2009-07-31  Jim Meyering  <meyering@redhat.com>
48401
48402         getloadavg: fix symbol name in comment
48403         * lib/getloadavg.c: Correct a typo I introduced when adding
48404         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48405         Matt Kraai spotted the problem.
48406
48407 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48408
48409         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48410         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48411         code also if ! defined N_NAME_POINTER.
48412         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48413         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48414         but the n_name member is a 12-byte array.
48415
48416 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48417
48418         update-copyright: generalize comment handling
48419         * build-aux/update-copyright: Handle copyright statements
48420         within more comment styles.
48421         Document usage.
48422         Report any file with an external copyright holder or parse failure.
48423
48424 2009-07-29  Jim Meyering  <meyering@redhat.com>
48425
48426         mktime: correct setting of REPLACE_MKTIME
48427         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48428
48429         update-copyright: new module
48430         * modules/update-copyright: New file.
48431         * build-aux/update-copyright: New file.
48432         * MODULES.html.sh (maint+release support): Add update-copyright.
48433
48434 2009-07-27  Bruno Haible  <bruno@clisp.org>
48435
48436         Fix compilation error when <ctime> is used and mktime is replaced.
48437         * lib/time.in.h (mktime): New declaration.
48438         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48439         REPLACE_MKTIME instead of defining mktime in config.h.
48440         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48441         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48442         Reported by Ross McFarland <rwmcfa1@neces.com>.
48443
48444 2009-07-27  Bruno Haible  <bruno@clisp.org>
48445
48446         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48447         Reported by Matt Kraai <mkraai@beckman.com>.
48448
48449 2009-07-25  Jim Meyering  <meyering@redhat.com>
48450
48451         maint.mk: avoid warnings about missing files
48452         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48453         diagnostic when .prev-version does not exist.
48454         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48455         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48456         nonexistent cfg.mk.
48457         Suggestions from Simon Josefsson.
48458
48459 2009-07-25  Bruno Haible  <bruno@clisp.org>
48460
48461         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48462         defined as macros. Needed on QNX 6.4.1.
48463         Reported by Matt Kraai <mkraai@beckman.com>.
48464
48465 2009-07-23  Jim Meyering  <meyering@redhat.com>
48466
48467         maint.mk: invoke "make dist" with a working value of XZ_OPT
48468         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48469
48470 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48471
48472         Make fseeko.c compile on QNX.
48473         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48474
48475 2009-07-22  Peter Simons  <simons@cryp.to>
48476
48477         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48478         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48479         * lib/md4.h: Likewise.
48480         * lib/md5.h: Likewise.
48481         * lib/sha1.h: Likewise.
48482         * lib/sha256.h: Likewise.
48483         * lib/sha512.h: Likewise.
48484
48485         tests-sha1: don't assign literal string to 'char *' variable
48486         * tests/test-sha1.c (main): Declare locals with "const" to match
48487         attributes of the right hand side.
48488
48489 2009-07-21  Eric Blake  <ebb9@byu.net>
48490
48491         dup2: fix more mingw problems
48492         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48493         fd to itself.
48494         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48495         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48496         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48497         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48498         care of mingw bugs.
48499
48500 2009-07-21  Jim Meyering  <meyering@redhat.com>
48501
48502         vc-list-files: avoid failure when /bin/sh is dash
48503         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48504         On some Debian based systems, /bin/sh is a symlink to dash, and running
48505         this command would omit the "/" following each 'tests' prefix:
48506           dash -x build-aux/vc-list-files -C . tests
48507         That is because bash and dash work differently:
48508           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48509           bash ok
48510           dash odd
48511
48512 2009-07-21  Eric Blake  <ebb9@byu.net>
48513
48514         dup2-tests: test previous patch
48515         * modules/dup2-tests: New file.
48516         * tests/test-dup2.c: Likewise.
48517         * tests/test-open.c (main): Avoid unspecified behavior.
48518         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48519         test.
48520
48521         dup2: work around mingw and cygwin 1.5 bug
48522         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48524         * modules/unistd (Makefile.am): Substitute it.
48525         * lib/unistd.in.h (dup2): Declare the replacement.
48526         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48527         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48528         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48529         * modules/execute (Depends-on): Add dup2.
48530         * modules/fseterr (Depends-on): Likewise.
48531         * modules/pipe (Depends-on): Likewise.
48532         * modules/posix_spawn-internal (Depends-on): Likewise.
48533
48534 2009-07-21  Bruno Haible  <bruno@clisp.org>
48535
48536         * modules/.gitattributes: New file.
48537
48538 2009-07-20  Bruno Haible  <bruno@clisp.org>
48539
48540         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48541         (main): Use it.
48542
48543 2009-07-20  Eric Blake  <ebb9@byu.net>
48544
48545         test-pipe: make a bit more robust.
48546         * tests/test-pipe.c (myerr): Allow error messages regardless of
48547         what we do to stderr.
48548         (test_pipe): Rearrange to avoid deadlock.
48549         (child_main): Try a larger read, to ensure we avoided deadlock.
48550         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48551         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48552         if misused.
48553
48554 2009-07-19  Jim Meyering  <meyering@redhat.com>
48555
48556         fts: avoid false-positive cycle-detection
48557         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48558         for each new command line argument.
48559
48560 2009-07-19  Bruno Haible  <bruno@clisp.org>
48561
48562         Fix build error on mingw with the modules sys_select and unistd.
48563         * modules/acl-tests (Depends-on): Add close.
48564         * modules/binary-io-tests (Depends-on): Likewise.
48565         * modules/closein-tests (Depends-on): Likewise.
48566         * modules/flock-tests (Depends-on): Likewise.
48567         * modules/fsync-tests (Depends-on): Likewise.
48568         * modules/lseek-tests (Depends-on): Likewise.
48569         * modules/pipe-tests (Depends-on): Likewise.
48570         * modules/posix_spawn-tests (Depends-on): Likewise.
48571         * modules/posix_spawnp-tests (Depends-on): Likewise.
48572         * modules/stat-time-tests (Depends-on): Likewise.
48573         * modules/yesno-tests (Depends-on): Likewise.
48574
48575 2009-07-19  Bruno Haible  <bruno@clisp.org>
48576
48577         Unify conditionals.
48578         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48579         macros, not at the compiler macros.
48580         * lib/pipe.c: Likewise.
48581         * lib/execute.c: Likewise.
48582         * lib/spawni.c: Likewise.
48583
48584 2009-07-19  Bruno Haible  <bruno@clisp.org>
48585
48586         Fix handling of closed stdin/stdout/stderr on mingw.
48587         * lib/w32spawn.h: Include unistd.h.
48588         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48589         file descriptor with O_NOINHERIT flag.
48590         (fd_safer_noinherit): New function, based on fd-safer.c.
48591         (dup_safer_noinherit): New function, based on dup-safer.c.
48592         (undup_safer_noinherit): New function.
48593         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48594         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48595         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48596         instead of fd_safer.
48597         * tests/test-pipe.c: Include <windows.h>.
48598         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48599         result.
48600
48601         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48602         from main.
48603         (test_pipe): Pass an extra argument for disambiguation.
48604         (main): Invoke parent_main or child_main.
48605
48606         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48607         consistently.
48608
48609 2009-07-18  Eric Blake  <ebb9@byu.net>
48610
48611         test-pipe: fix mingw build
48612         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48613
48614 2009-07-18  Bruno Haible  <bruno@clisp.org>
48615
48616         * modules/pipe-tests (Makefile.am): Fix typo.
48617
48618 2009-07-18  Eric Blake  <ebb9@byu.net>
48619
48620         error: fix mingw build
48621         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48622         Reported by Bruno Haible.
48623
48624         error: avoid undefined use of stdout
48625         * lib/error.c (error, error_at_line): Check that fd 1 is open
48626         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48627         is handling faults and the close_stdout module wants to report the
48628         detection of closed stdout as an error.
48629
48630 2009-07-17  Eric Blake  <ebb9@byu.net>
48631
48632         pipe: be robust in face of closed fds
48633         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48634         should cause child to misbehave.
48635         * modules/pipe-tests: New module.
48636         * tests/test-pipe.c: New file.
48637         * tests/test-pipe.sh: New file.
48638         Reported by Akim Demaille.
48639
48640 2009-07-14  Bruno Haible  <bruno@clisp.org>
48641
48642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48643         Reported by anonymous kc.
48644
48645 2009-07-07  Jim Meyering  <meyering@redhat.com>
48646
48647         maint.mk: don't look for translatable strings in *.m4 or *.mk
48648         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48649         when searching for translatable strings.
48650
48651 2009-07-05  Jim Meyering  <meyering@redhat.com>
48652
48653         remove superfluous parentheses in STREQ definition
48654         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48655         * lib/getugroups.c (STREQ): Likewise.
48656         * lib/fnmatch.c (STREQ): Likewise.
48657         Spotted by Bruno Haible.
48658
48659 2009-07-04  Jim Meyering  <meyering@redhat.com>
48660
48661         argv-iter: new module
48662         * MODULES.html.sh: Add argv-iter.
48663         * lib/argv-iter.c, lib/argv-iter.h: New files.
48664         * modules/argv-iter: New file.
48665         * modules/argv-iter-tests: New file.
48666         * tests/test-argv-iter.c: Test it.
48667
48668 2009-07-04  Bruno Haible  <bruno@clisp.org>
48669
48670         Fix assertion.
48671         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48672         contains more exact copies of a given entry than file2, leave the extra
48673         copies unpaired rather than aborting.
48674         Reported by Eric Blake.
48675
48676 2009-07-02  Bruno Haible  <bruno@clisp.org>
48677
48678         Speedup git-merge-changelog for git cherry-pick.
48679         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48680         (entries_mapping_get): New function, extracted from compute_mapping.
48681         (entries_mapping_reverse_get): New function.
48682         (compute_mapping): Add a 'full' argument. Return the result in a
48683         'struct entries_mapping'.
48684         (main): Update. Access the mappings through entries_mapping_get.
48685         Reported by Eric Blake.
48686
48687 2009-07-02  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48690         best_i.
48691
48692 2009-07-02  Bruno Haible  <bruno@clisp.org>
48693
48694         Speed up approximate search for matching ChangeLog entries.
48695         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48696         argument. Call fstrcmp_bounded instead of fstrcmp.
48697         (compute_mapping, try_split_merged_entry, main): Update callers.
48698
48699 2009-07-02  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48702
48703 2009-06-30  Bruno Haible  <bruno@clisp.org>
48704
48705         Reduce the number of uc_is_cased calls.
48706         * lib/unicase.h (casing_suffix_context_t): Add
48707         'first_char_except_ignorable' field.
48708         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48709         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48710         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48711         Update initializer.
48712         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48713         case-ignorable characters.
48714         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48715         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48716         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48717         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48718         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48719
48720 2009-06-30  Bruno Haible  <bruno@clisp.org>
48721
48722         Tests for module 'unicase/ignorable'.
48723         * modules/unicase/ignorable-tests: New file.
48724         * tests/unicase/test-ignorable.c: New file, generated by
48725         gen-uni-tables.
48726
48727         Tests for module 'unicase/cased'.
48728         * modules/unicase/cased-tests: New file.
48729         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48730         * tests/unicase/test-predicate-part1.h: New file, derived from
48731         tests/unictype/test-predicate-part1.h.
48732         * tests/unicase/test-predicate-part2.h: New file, same as
48733         tests/unictype/test-predicate-part2.h.
48734
48735         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48736         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48737         (output_casing_properties): New function.
48738         (main): Call it.
48739         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48740         * lib/unicase/cased.c: Include unictype/bitmap.h.
48741         (uc_is_cased): Define through a bitmap lookup.
48742         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48743         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48744         (uc_is_case_ignorable): Define through a bitmap lookup.
48745         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48746         lib/unictype/bitmap.h.
48747         (Depends-on): Add inline. Clean up.
48748         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48749         lib/unictype/bitmap.h.
48750         (Depends-on): Add inline. Clean up.
48751         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48752         recognition.
48753         * tests/unicase/test-u16-tolower.c (main): Likewise.
48754         * tests/unicase/test-u32-tolower.c (main): Likewise.
48755
48756 2009-06-30  Bruno Haible  <bruno@clisp.org>
48757
48758         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48759         * lib/unicase/u16-casemap.c: Likewise.
48760         * lib/unicase/u32-casemap.c: Likewise.
48761
48762 2009-06-29  Bruno Haible  <bruno@clisp.org>
48763
48764         Define u32_casefold as a wrapper around u32_ct_casefold.
48765         * lib/unicase/u32-casefold.c: Update.
48766         * modules/unicase/u32-casefold (Depends-on): Add
48767         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48768         unicase/empty-suffix-context. Clean up.
48769
48770         Define u16_casefold as a wrapper around u16_ct_casefold.
48771         * lib/unicase/u16-casefold.c: Update.
48772         * modules/unicase/u16-casefold (Depends-on): Add
48773         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48774         unicase/empty-suffix-context. Clean up.
48775
48776         Define u8_casefold as a wrapper around u8_ct_casefold.
48777         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48778         * lib/unicase/u8-casefold.c: Update.
48779         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48780         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48781
48782         Define u32_totitle as a wrapper around u32_ct_totitle.
48783         * lib/unicase/u32-totitle.c: Update.
48784         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48785         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48786
48787         Define u16_totitle as a wrapper around u16_ct_totitle.
48788         * lib/unicase/u16-totitle.c: Update.
48789         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48790         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48791
48792         Define u8_totitle as a wrapper around u8_ct_totitle.
48793         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48794         functions.
48795         (FUNC): Delegate to U_CT_TOTITLE.
48796         * lib/unicase/u8-totitle.c: Update.
48797         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48798         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48799
48800         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48801         invocation.
48802         * modules/unicase/u32-tolower (Depends-on): Add
48803         unicase/empty-prefix-context, unicase/empty-suffix-context.
48804
48805         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48806         invocation.
48807         * modules/unicase/u16-tolower (Depends-on): Add
48808         unicase/empty-prefix-context, unicase/empty-suffix-context.
48809
48810         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48811         * modules/unicase/u8-tolower (Depends-on): Add
48812         unicase/empty-prefix-context, unicase/empty-suffix-context.
48813
48814         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48815         invocation.
48816         * modules/unicase/u32-toupper (Depends-on): Add
48817         unicase/empty-prefix-context, unicase/empty-suffix-context.
48818
48819         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48820         invocation.
48821         * modules/unicase/u16-toupper (Depends-on): Add
48822         unicase/empty-prefix-context, unicase/empty-suffix-context.
48823
48824         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48825         * modules/unicase/u8-toupper (Depends-on): Add
48826         unicase/empty-prefix-context, unicase/empty-suffix-context.
48827
48828         New module 'unicase/u32-ct-casefold'.
48829         * lib/unicase/u32-ct-casefold.c: New file.
48830         * modules/unicase/u32-ct-casefold: New file.
48831
48832         New module 'unicase/u16-ct-casefold'.
48833         * lib/unicase/u16-ct-casefold.c: New file.
48834         * modules/unicase/u16-ct-casefold: New file.
48835
48836         New module 'unicase/u8-ct-casefold'.
48837         * lib/unicase/u8-ct-casefold.c: New file.
48838         * lib/unicase/u-ct-casefold.h: New file, derived from
48839         lib/unicase/u-casefold.h.
48840         * modules/unicase/u8-ct-casefold: New file.
48841
48842         New module 'unicase/u32-ct-totitle'.
48843         * lib/unicase/u32-ct-totitle.c: New file.
48844         * modules/unicase/u32-ct-totitle: New file.
48845
48846         New module 'unicase/u16-ct-totitle'.
48847         * lib/unicase/u16-ct-totitle.c: New file.
48848         * modules/unicase/u16-ct-totitle: New file.
48849
48850         New module 'unicase/u8-ct-totitle'.
48851         * lib/unicase/u8-ct-totitle.c: New file.
48852         * lib/unicase/u-ct-totitle.h: New file, derived from
48853         lib/unicase/u-totitle.h.
48854         * modules/unicase/u8-ct-totitle: New file.
48855
48856         New module 'unicase/u32-ct-tolower'.
48857         * lib/unicase/u32-ct-tolower.c: New file.
48858         * modules/unicase/u32-ct-tolower: New file.
48859
48860         New module 'unicase/u16-ct-tolower'.
48861         * lib/unicase/u16-ct-tolower.c: New file.
48862         * modules/unicase/u16-ct-tolower: New file.
48863
48864         New module 'unicase/u8-ct-tolower'.
48865         * lib/unicase/u8-ct-tolower.c: New file.
48866         * modules/unicase/u8-ct-tolower: New file.
48867
48868         New module 'unicase/u32-ct-toupper'.
48869         * lib/unicase/u32-ct-toupper.c: New file.
48870         * modules/unicase/u32-ct-toupper: New file.
48871
48872         New module 'unicase/u16-ct-toupper'.
48873         * lib/unicase/u16-ct-toupper.c: New file.
48874         * modules/unicase/u16-ct-toupper: New file.
48875
48876         New module 'unicase/u8-ct-toupper'.
48877         * lib/unicase/u8-ct-toupper.c: New file.
48878         * modules/unicase/u8-ct-toupper: New file.
48879
48880         Add context arguments to u*_casemap functions.
48881         * lib/unicase/unicasemap.h: Include unicase.h.
48882         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48883         suffix_context arguments.
48884         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48885         functions.
48886         (FUNC): Add prefix_context and suffix_context arguments. Use
48887         uc_is_cased and uc_is_case_ignorable.
48888         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48889         * lib/unicase/u16-casemap.c: Likewise.
48890         * lib/unicase/u32-casemap.c: Likewise.
48891         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48892         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48893         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48894         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48895         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48896         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48897
48898         New module 'unicase/u32-suffix-context'.
48899         * lib/unicase/u32-suffix-context.c: New file.
48900         * modules/unicase/u32-suffix-context: New file.
48901
48902         New module 'unicase/u16-suffix-context'.
48903         * lib/unicase/u16-suffix-context.c: New file.
48904         * modules/unicase/u16-suffix-context: New file.
48905
48906         New module 'unicase/u8-suffix-context'.
48907         * lib/unicase/u8-suffix-context.c: New file.
48908         * lib/unicase/u-suffix-context.h: New file.
48909         * modules/unicase/u8-suffix-context: New file.
48910
48911         New module 'unicase/empty-suffix-context'.
48912         * lib/unicase/empty-suffix-context.c: New file.
48913         * modules/unicase/empty-suffix-context: New file.
48914
48915         New module 'unicase/u32-prefix-context'.
48916         * lib/unicase/u32-prefix-context.c: New file.
48917         * modules/unicase/u32-prefix-context: New file.
48918
48919         New module 'unicase/u16-prefix-context'.
48920         * lib/unicase/u16-prefix-context.c: New file.
48921         * modules/unicase/u16-prefix-context: New file.
48922
48923         New module 'unicase/u8-prefix-context'.
48924         * lib/unicase/u8-prefix-context.c: New file.
48925         * lib/unicase/u-prefix-context.h: New file.
48926         * lib/unicase/context.h: New file.
48927         * modules/unicase/u8-prefix-context: New file.
48928
48929         New module 'unicase/empty-prefix-context'.
48930         * lib/unicase/empty-prefix-context.c: New file.
48931         * modules/unicase/empty-prefix-context: New file.
48932
48933         New module 'unicase/ignorable'.
48934         * lib/unicase/ignorable.c: New file.
48935         * modules/unicase/ignorable: New file.
48936
48937         New module 'unicase/cased'.
48938         * lib/unicase/caseprop.h: New file.
48939         * lib/unicase/cased.c: New file.
48940         * modules/unicase/cased: New file.
48941
48942         New functions for case mapping of substrings.
48943         * lib/unicase.h (casing_prefix_context_t): New type.
48944         (unicase_empty_prefix_context): New variable.
48945         (u8_casing_prefix_context, u16_casing_prefix_context,
48946         u32_casing_prefix_context, u8_casing_prefixes_context,
48947         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48948         declarations.
48949         (casing_suffix_context_t): New type.
48950         (unicase_empty_suffix_context): New variable.
48951         (u8_casing_suffix_context, u16_casing_suffix_context,
48952         u32_casing_suffix_context, u8_casing_suffixes_context,
48953         u16_casing_suffixes_context, u32_casing_suffixes_context,
48954         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48955         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48956         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48957         declarations.
48958
48959 2009-06-28  Jim Meyering  <meyering@redhat.com>
48960
48961         boostrap: indent only with spaces
48962         * build-aux/bootstrap: Indent only with spaces, never TABs.
48963
48964         bootstrap: split long lines
48965         * build-aux/bootstrap: Keep line length < 80.
48966
48967         bootstrap: sync from coreutils
48968         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48969         just as autoreconf does.  Verify a list of prerequisite
48970         package-name,version-number pairs if defined in bootstrap.conf.
48971         Refer to README-prereq, if prerequisites are not satisfied.
48972
48973 2009-06-27  Eric Blake  <ebb9@byu.net>
48974
48975         tests: add test for bogus NULL definition
48976         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48977         * tests/test-stdlib.c: Likewise.
48978         * tests/test-string.c: Likewise.
48979         * tests/test-locale.c: Likewise.
48980         * tests/test-unistd.c: Likewise.
48981         * modules/stdio-tests (Depends-on): Add verify.
48982         * modules/stdlib-tests (Depends-on): Likewise.
48983         * modules/string-tests (Depends-on): Likewise.
48984         * modules/locale-tests (Depends-on): Likewise.
48985         * modules/unistd-tests (Depends-on): Likewise.
48986
48987 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48988
48989         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48990         self-explaining comment.
48991         * m4/selinux-selinux-h: Update serial.
48992         (gl_LIBSELINUX): New macro, adding a warning for missing development
48993         packages to code extracted from...
48994         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48995         Add warning for missing development packages here, too.
48996
48997 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48998
48999         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49000
49001 2009-06-25  Eric Blake  <ebb9@byu.net>
49002
49003         version-etc: fix regression
49004         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49005         gcc.
49006         (version_etc): Use it, to catch bugs with trailing NULL.
49007         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49008         (version_etc_va): Fix logic bug.
49009         * modules/version-etc-tests: Add test.
49010         * tests/test-version-etc.c: New file.
49011         * tests/test-version-etc.sh: Likewise.
49012
49013 2009-06-25  Sam Steingold  <sds@gnu.org>
49014
49015         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49016         mbtowc declaration.
49017
49018 2009-06-25  Eric Blake  <ebb9@byu.net>
49019
49020         fpurge: migrate into <stdio.h>
49021         * lib/fpurge.h: Delete...
49022         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49023         * lib/fpurge.c (fpurge): Change declaring header.
49024         * modules/fpurge (Files): Drop deleted file.
49025         (Depends-on): Add stdio.
49026         (configure.ac): Set witness.
49027         * modules/stdio (Makefile.am): Support fpurge macros.
49028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49029         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49030         * lib/fflush.c: Update client.
49031         * tests/test-fpurge.c: Likewise.
49032         * NEWS: Mention the change.
49033
49034 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49035
49036         * lib/argp-version-etc.c (program_authors): Add const
49037         qualifier.
49038         * lib/version-etc.c: Fix typos in the comments.
49039         * modules/argp-version-etc: Depends on version-etc.
49040
49041 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49042
49043         argp-version-etc: new module.
49044
49045         * lib/argp-version-etc.c: New file.
49046         * lib/argp-version-etc.h: New file.
49047         * modules/argp-version-etc: New file.
49048         * modules/argp-version-etc-tests: New file.
49049         * tests/test-argp-version-etc.c: New test.
49050         * tests/test-argp-version-etc-1.sh: New test.
49051
49052 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49053
49054         Provide additional interfaces and documentation for version-etc
49055         module.
49056
49057         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49058         interfaces.
49059         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49060         prototypes.
49061
49062 2009-06-24  Bruno Haible  <bruno@clisp.org>
49063
49064         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49065         HAVE_LIB${NAME} macro.
49066         Reported by Sam Steingold <sds@gnu.org>.
49067
49068 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49069
49070         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49071         needed.
49072
49073 2009-06-21  Bruno Haible  <bruno@clisp.org>
49074
49075         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49076         work.
49077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49078         together with LIB${NAME}, LTLIB${NAME}.
49079         Reported by Sam Steingold <sds@gnu.org>.
49080
49081 2009-06-20  Jim Meyering  <meyering@redhat.com>
49082
49083         tests: make sc_require_test_exit_idiom more generic
49084         * top/maint.mk (Exit_witness_file): New overridable variable.
49085         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49086         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49087
49088 2009-06-19  Jim Meyering  <meyering@redhat.com>
49089
49090         hash: reverse order of src/dst parameters in an internal interface
49091         * lib/hash.c (transfer_entries): Reverse order of parameters to
49092         put DST before SRC.  Adjust callers.
49093
49094         tests: test-hash: avoid wholesale duplication
49095         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49096         Instead, use a loop and add a single conditional.
49097
49098         tests: test-hash: allow seed selection via a command line argument
49099         * tests/test-hash.c (get_seed): New function.
49100         (main): Use it.
49101
49102 2009-06-19  Eric Blake  <ebb9@byu.net>
49103
49104         hash: avoid memory leak on allocation failure
49105         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49106         failure.  Factor repeated algorithm...
49107         (transfer_entries): ...into new helper routine.
49108         (hash_delete): React to hash_rehash return value.
49109
49110         hash: reduce memory pressure in hash_rehash no-op case
49111         * lib/hash.c (next_prime): Avoid overflow.
49112         (hash_initialize): Factor bucket size computation...
49113         (compute_bucket_size): ...into new helper function.
49114         (hash_rehash): Use new function and open coding to reduce memory
49115         pressure, and avoid a memory leak in USE_OBSTACK code.
49116         Reported by Jim Meyering.
49117
49118 2009-06-18  Eric Blake  <ebb9@byu.net>
49119
49120         hash: make rotation more obvious
49121         * modules/hash (Depends-on): Add bitrotate and stdint.
49122         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49123         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49124         (SIZE_MAX): Rely on headers for definition.
49125         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49126         (raw_hasher): Use rotr_sz.
49127         Suggested by Jim Meyering.
49128
49129         hash: fix memory leak in last patch
49130         * lib/hash.c (hash_rehash): Avoid memory leak.
49131
49132         hash: avoid no-op rehashing
49133         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49134
49135         hash: provide default callback functions
49136         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49137         (hash_initialize): Use them as defaults.
49138         * tests/test-hash.c (main): Test this.
49139
49140         hash: minor optimization
49141         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49142         when possible.
49143         (hash_initialize): Document this promise.
49144         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49145         * tests/test-hash.c (hash_compare_strings): Test this.
49146
49147 2009-06-18  Bruno Haible  <bruno@clisp.org>
49148
49149         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49150         going to be replaced anyway.
49151
49152 2009-06-18  Bruno Haible  <bruno@clisp.org>
49153
49154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49155         in one place.
49156         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49157         be replaced anyway.
49158
49159 2009-06-18  Eric Blake  <ebb9@byu.net>
49160
49161         hash: check for resize before insertion
49162         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49163         threshold before insertion, so that a pathological hash_rehash
49164         that fills every bucket can still trigger another rehash.
49165
49166 2009-06-18  Jim Meyering  <meyering@redhat.com>
49167
49168         hash-tests: add a loop around the small tests
49169         * tests/test-hash.c (main): Repeat small tests with selected
49170         small initial table sizes.
49171
49172 2009-06-17  Eric Blake  <ebb9@byu.net>
49173
49174         hash: minor cleanups
49175         * lib/hash.h (hash_entry): Make opaque, by moving...
49176         * lib/hash.c (hash_entry): ...here.
49177         (hash_insert): Clarify restrictions on what can be inserted.
49178         (hash_get_next): Clarify when it is safe to remove an element
49179         during traversal.
49180         (check_tuning): Skip verification when tuning is known safe.
49181         (hash_initialize): Clarify restrictions on tuning.
49182
49183 2009-06-17  Jim Meyering  <jim@meyering.net>
49184         and Eric Blake  <ebb9@byu.net>
49185
49186         hash-tests: new module
49187         * modules/hash-tests: New file.
49188         * tests/test-hash.c: New file.
49189
49190 2009-06-17  Eric Blake  <ebb9@byu.net>
49191
49192         strstr-simple: document new module
49193         * MODULES.html.sh: Document new module.
49194
49195         strstr, strcasestr: replace on platforms with broken memchr
49196         * modules/strstr: Split into...
49197         * modules/strstr-simple: ...new module that does not care about
49198         performance, but does care about glibc bug.
49199         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49200         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49201         if platform memchr is broken, per Debian bug 521737.
49202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49203         memchr.
49204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49205         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49206         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49207         * modules/mountlist (Depends-on): Add strstr-simple.
49208         * modules/gen-uni-tables (Depends-on): Likewise.
49209         * modules/argz (Depends-on): Add strstr.
49210
49211 2009-06-17  Bruno Haible  <bruno@clisp.org>
49212
49213         * modules/posix_spawn-internal (Depends-on): Add errno.
49214
49215 2009-06-17  Bruno Haible  <bruno@clisp.org>
49216
49217         Define missing ESTALE on Interix 3.5.
49218         * lib/errno.in.h (ESTALE): Assign a value if missing.
49219         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49221         missing.
49222         * doc/posix-headers/errno.texi: Mention the Interix bug.
49223         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49224
49225 2009-06-15  Eric Blake  <ebb9@byu.net>
49226
49227         memchr, memchr2: add valgrind exception
49228         * lib/memchr.valgrind: New file.
49229         * lib/memchr2.valgrind: New file.
49230         * modules/memchr (Files): Distribute valgrind file.
49231         * modules/memchr2 (Files): Likewise.
49232
49233         docs: memchr is no longer obsolete
49234         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49235         * lib/string.in.h (memchr): Simplify logic.
49236
49237 2009-06-14  Jim Meyering  <meyering@redhat.com>
49238
49239         link-follow: fix the "checking..." message to not mention trailing slash
49240         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49241         never considered trailing slashes.
49242
49243 2009-06-14  Bruno Haible  <bruno@clisp.org>
49244
49245         * m4/memchr.m4: Mention also the bug on IA-64.
49246         * doc/posix-functions/memchr.texi: Likewise.
49247
49248 2009-06-12  Eric Blake  <ebb9@byu.net>
49249
49250         memchr: detect broken x86_64 and alpha implementations
49251         * modules/memchr-tests (Depends-on): Move mmap detection...
49252         * modules/memchr (Depends-on): ...here.
49253         (configure.ac): Set indicator.
49254         * lib/string.in.h (memchr): Declare replacement.
49255         * modules/string (Makefile.am): Trigger replacement.
49256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49257         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49258         bugs.
49259         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49260         * modules/getpagesize (License): Relax license.
49261
49262 2009-06-11  Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/idpriv.h: Add more references.
49265
49266 2009-06-08  Bruno Haible  <bruno@clisp.org>
49267
49268         Tests for module 'idpriv-droptemp'.
49269         * modules/idpriv-droptemp-tests: New file.
49270         * tests/test-idpriv-droptemp.sh: New file.
49271         * tests/test-idpriv-droptemp.su.sh: New file.
49272         * tests/test-idpriv-droptemp.c: New file.
49273
49274         New module 'idpriv-droptemp'.
49275         * lib/idpriv-droptemp.c: New file.
49276         * modules/idpriv-droptemp: New file.
49277
49278 2009-06-08  Bruno Haible  <bruno@clisp.org>
49279
49280         Tests for module 'idpriv-drop'.
49281         * modules/idpriv-drop-tests: New file.
49282         * tests/test-idpriv-drop.sh: New file.
49283         * tests/test-idpriv-drop.su.sh: New file.
49284         * tests/test-idpriv-drop.c: New file.
49285
49286         New module 'idpriv-drop'.
49287         * lib/idpriv.h: New file.
49288         * lib-idpriv-drop.c: New file.
49289         * m4/idpriv.m4: New file.
49290         * modules/idpriv-drop: New file.
49291
49292 2009-06-08  Bruno Haible  <bruno@clisp.org>
49293
49294         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49295         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49296         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49297         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49298         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49299         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49300         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49301
49302 2009-06-08  Eric Blake  <ebb9@byu.net>
49303
49304         test-strstr: use memory fence, when possible
49305         * tests/test-strstr.c (main): Use memory fence, in order to be
49306         more likely to trigger Debian bug 521737.
49307         * modules/strstr-tests (Files): Pull in additional files.
49308
49309         memchr: no longer obsolete, for wider field testing
49310         * modules/memchr (Status, Notice): Delete, this module is no
49311         longer obsolete.
49312         * modules/vasnprintf (Depends-on): Add memchr.
49313
49314 2009-06-07  Jim Meyering  <meyering@redhat.com>
49315
49316         hash: declare some functions with the warn_unused_result attribute
49317         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49318
49319 2009-06-07  Bruno Haible  <bruno@clisp.org>
49320
49321         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49322         Reported by Eric Blake.
49323
49324 2009-06-06  Eric Blake  <ebb9@byu.net>
49325
49326         test-alignof: fix typo with long double
49327         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49328         compiler error.
49329
49330 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49331
49332         Escape non-texinfo { and }s.
49333         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49334         markup error.
49335
49336 2009-06-04  Jim Meyering  <meyering@redhat.com>
49337
49338         gitlog-to-changelog: don't infloop on an empty commit log
49339         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49340         Reported by Boris Petersen <transacid@centerim.org>.
49341
49342 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49343
49344         version-etc: extend for packagers
49345         Add three new configure options, intended for packagers:
49346           --with-packager="packager name"
49347           --with-packager-version="packager-specific version"
49348           --with-packager-bug-reports="packager bug reporting"
49349         An example with coreutils:
49350           $ ./configure \
49351             --with-packager=Gentoo \
49352             --with-packager-bug-report=http://bugs.gentoo.org/ \
49353             --with-packager-version="patchset 1.6"
49354           $ ./src/ls --version | head -n2
49355           ls (GNU coreutils) 7.1-dirty
49356           Packaged by Gentoo (patchset 1.6)
49357         Note that the bug reporting info via --help doesn't show up because
49358         coreutils uses its own custom emit_bug_reporting_address() implementation
49359         in src/system.h.  If it didn't, it'd look like:
49360           $ ./src/ls --help | tail -n4
49361           Report bugs to <bug-coreutils@gnu.org>.
49362           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49363           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49364           General help using GNU software: <http://www.gnu.org/gethelp/>.
49365         * lib/version-etc.c: Print new information, if provided.
49366         * m4/version-etc.m4: New file.
49367         * modules/version-etc (Files): Add m4/version-etc.m4.
49368         (configure.ac): Add gl_VERSION_ETC.
49369
49370 2009-05-31  Bruno Haible  <bruno@clisp.org>
49371
49372         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49373         and 'int64_t'.
49374         * modules/alignof-tests (Dependencies): Add stdint.
49375         Reported by Eric Blake.
49376
49377 2009-05-31  Bruno Haible  <bruno@clisp.org>
49378
49379         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49380         restriction due to compiler bugs.
49381         Reported by Eric Blake.
49382
49383 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49384             Bruno Haible  <bruno@clisp.org>
49385
49386         Fix test-alignof failure.
49387         * lib/alignof.h (alignof_slot): New macro.
49388         (alignof_type): New macro, with the same semantics as the previous
49389         'alignof'.
49390         (alignof): Alias to alignof_slot.
49391         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49392         check that the results are usable as constant expressions.
49393
49394 2009-05-31  Bruno Haible  <bruno@clisp.org>
49395
49396         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49397         * tests/test-memchr.c (main): Check that memchr does not read past the
49398         first occurrence of the byte.
49399         * tests/test-strstr.c (main): Update comment.
49400         Suggested by Eric Blake.
49401
49402 2009-05-30  Bruno Haible  <bruno@clisp.org>
49403
49404         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49405         detail how to use dumpbin.
49406         Reported by David Byron <dbyron@dbyron.com>.
49407
49408 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49409
49410         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49411
49412 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49413
49414         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49415
49416 2009-05-28  Bruno Haible  <bruno@clisp.org>
49417
49418         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49419         build-aux/ files.
49420
49421 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49422
49423         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49424
49425 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49426
49427         * gnulib-tool (sed_transform_main_lib_file)
49428         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49429         regexps.
49430
49431 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49432
49433         * tests/test-strstr.c: Add another self-test.
49434         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49435         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49436
49437 2009-05-23  Bruno Haible  <bruno@clisp.org>
49438
49439         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49440         change.
49441
49442 2009-05-21  Bruno Haible  <bruno@clisp.org>
49443
49444         Simplify use of mode_t varargs.
49445         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49446         uses 'mode_t' or 'int'.
49447         * lib/openat.c (openat): Likewise.
49448         * lib/open-safer.c (open_safer): Likewise.
49449         * m4/mode_t.m4: New file.
49450         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49451         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49453         * modules/open (Files): Add m4/mode_t.m4.
49454         * modules/openat (Files): Likewise.
49455         * modules/fcntl-safer (Files): Likewise.
49456         Suggested by Eric Blake.
49457
49458 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49459
49460         * doc/glibc-functions/fallocate.texi: New file.
49461         * doc/gnulib.texi: Include it.
49462
49463 2009-05-21  Eric Blake  <ebb9@byu.net>
49464             Bruno Haible  <bruno@clisp.org>
49465
49466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49467         invocations.
49468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49469
49470 2009-05-21  Eric Blake  <ebb9@byu.net>
49471             Bruno Haible  <bruno@clisp.org>
49472
49473         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49474         include_next. Fix of 2008-11-20 commit.
49475         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49476         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49477         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49478         NEXT_MATH_H.
49479         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49480         instead of NEXT_MATH_H.
49481
49482 2009-05-21  Bruno Haible  <bruno@clisp.org>
49483
49484         Avoid redefinition warnings for SIZE_MAX.
49485         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49486         Reported by Simon Josefsson.
49487
49488 2009-05-21  Bruno Haible  <bruno@clisp.org>
49489
49490         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49491         AC_CACHE_VAL.
49492
49493 2009-05-20  Bruno Haible  <bruno@clisp.org>
49494
49495         Make zeroptr.h work on mingw.
49496         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49497         mprotect.
49498         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49499         * modules/memchr2-tests (configure.ac): Likewise.
49500         * modules/memcmp-tests (configure.ac): Likewise.
49501         * modules/memmem-tests (configure.ac): Likewise.
49502         * modules/memrchr-tests (configure.ac): Likewise.
49503         Reported by Simon Josefsson.
49504
49505 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49506
49507         * tests/test-glob.c: Include string.h for strcmp prototype.
49508
49509 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49510
49511         * modules/getdelim (Depends-on): Add explicit stdint, although it
49512         was implicitly already pulled in via realloc-posix.
49513         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49514
49515 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49516
49517         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49518         G. Christensen" <tgc@jupiterrise.com>.
49519         * m4/sys_socket_h.m4: Check for sa_family_t.
49520         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49521         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49522         * tests/test-sys_socket.c: Check that sa_family_t works.
49523
49524 2009-05-18  Eric Blake  <ebb9@byu.net>
49525
49526         maint.mk: allow gnulib_dir in VPATH build
49527         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49528
49529 2009-05-15  Jim Meyering  <meyering@redhat.com>
49530
49531         maint.mk: Give gnulib_dir a default definition.
49532         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49533         Thus, most packages no longer need to specify this variable in cfg.mk
49534
49535 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49536
49537         rename.m4: fix typos that would make non-mingw cross-configure fail
49538         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49539
49540 2009-05-13  Eric Blake  <ebb9@byu.net>
49541
49542         mmap-anon: avoid out-of-order autoconf expansion
49543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49544         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49545         * modules/memchr-tests (Depends-on): Add extensions.
49546         * modules/memchr2-tests (Depends-on): Add extensions.
49547         * modules/memcmp-tests (Depends-on): Add extensions.
49548         * modules/memmem-tests (Depends-on): Add extensions.
49549         * modules/memrchr-tests (Depends-on): Add extensions.
49550
49551 2009-05-13  Bruno Haible  <bruno@clisp.org>
49552
49553         Make some tests ISO C 99 compliant.
49554         * tests/zerosize-ptr.h: New file.
49555         * tests/test-memchr.c: Include zerosize-ptr.h.
49556         (main): Use a zero-size object pointer instead of NULL.
49557         * tests/test-memchr2.c: Include zerosize-ptr.h.
49558         (main): Use a zero-size object pointer instead of NULL.
49559         * tests/test-memcmp.c: Include zerosize-ptr.h.
49560         (main): Use a zero-size object pointer instead of NULL.
49561         * tests/test-memmem.c: Include zerosize-ptr.h.
49562         (main): Use a zero-size object pointer instead of NULL.
49563         * tests/test-memrchr.c: Include zerosize-ptr.h.
49564         (main): Use a zero-size object pointer instead of NULL.
49565         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49566         m4/mmap-anon.m4.
49567         (Depends-on): Add getpagesize.
49568         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49569         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49570         m4/mmap-anon.m4.
49571         (Depends-on): Add getpagesize.
49572         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49573         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49574         m4/mmap-anon.m4.
49575         (Depends-on): Add getpagesize.
49576         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49577         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49578         m4/mmap-anon.m4.
49579         (Depends-on): Add getpagesize.
49580         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49581         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49582         m4/mmap-anon.m4.
49583         (Depends-on): Add getpagesize.
49584         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49585
49586 2009-05-12  Bruno Haible  <bruno@clisp.org>
49587
49588         Tests for module 'alignof'.
49589         * modules/alignof-tests: New file.
49590         * tests/test-alignof.c: New file.
49591
49592 2009-05-12  Bruno Haible  <bruno@clisp.org>
49593
49594         Fix alignof macro.
49595         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49596         vendor compilers that are always correct.
49597
49598 2009-05-12  Bruno Haible  <bruno@clisp.org>
49599
49600         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49601         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49602         not whether its fully works.
49603
49604 2009-05-12  Bruno Haible  <bruno@clisp.org>
49605
49606         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49607
49608 2009-05-12  Jim Meyering  <meyering@redhat.com>
49609
49610         * top/maint.mk: Adjust backslash alignment.
49611
49612 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49613
49614         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49615
49616 2009-05-11  Eric Blake  <ebb9@byu.net>
49617
49618         argp: avoid undefined behavior
49619         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49620         macros.
49621
49622 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49623
49624         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49625         user.name to prevent git commit from complaining.
49626
49627 2009-05-10  Bruno Haible  <bruno@clisp.org>
49628
49629         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49630         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49631         it rewrites every file name only once.
49632         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49633
49634 2009-05-08  Bruno Haible  <bruno@clisp.org>
49635
49636         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49637         instead of 'max'.
49638
49639 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49640
49641         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49642         sockaddr_storage test.
49643
49644 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49645
49646         * modules/sys_socket (Makefile.am): Substitute
49647         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49648         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49649         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49650         * tests/test-sys_socket.c: Check sockaddr_storage.
49651
49652 2009-05-08  Bruno Haible  <bruno@clisp.org>
49653
49654         New module 'alignof'.
49655         * lib/alignof.h: New file.
49656         * modules/alignof: New file.
49657
49658 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49659             Bruno Haible  <bruno@clisp.org>
49660
49661         Fix test-file-has-acl on FreeBSD.
49662         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49663         mask is implicitly added.
49664         * tests/test-file-has-acl.c: Include <signal.h>.
49665         (main): Terminate the test after 5 seconds.
49666         * modules/acl-tests (configure.ac): Check for alarm function.
49667
49668 2009-05-04  Bruno Haible  <bruno@clisp.org>
49669
49670         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49672         * modules/errno (configure.ac): Drop AC_REQUIRE.
49673         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49674         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49675
49676 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49677
49678         * modules/glob-tests: New module.
49679         * tests/test-glob.c: Add.
49680
49681 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49682
49683         * modules/fnmatch-tests: New module.
49684         * tests/test-fnmatch.c: Add.
49685
49686 2009-05-04  Eric Blake  <ebb9@byu.net>
49687
49688         maint: make the new no-submodule-changes rule VPATH-safe
49689         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49690
49691 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49692             Bruno Haible  <bruno@clisp.org>
49693
49694         acl: Fix infinite loop on FreeBSD.
49695         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49696         of return value from acl_get_entry.
49697         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49698         Likewise.
49699
49700 2009-05-03  Bruno Haible  <bruno@clisp.org>
49701
49702         * lib/acl-internal.h (acl_entries): Clarify return value.
49703         * lib/acl_entries.c (acl_entries): Likewise.
49704
49705 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49706
49707         Bug fix in acl module.
49708         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49709
49710 2009-05-03  Bruno Haible  <bruno@clisp.org>
49711
49712         Create gperf-generated file in the source dir, not in the build dir.
49713         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49714         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49715         * modules/unicase/locale-language (unicase/locale-languages.h):
49716         Likewise.
49717         * modules/unicase/special-casing (unicase/special-casing-table.h):
49718         Likewise.
49719         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49720         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49721         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49722         Reported by Ralf Wildenhues.
49723
49724 2009-05-03  Bruno Haible  <bruno@clisp.org>
49725
49726         * modules/fnmatch (Description, configure.ac): Taken from
49727         fnmatch-posix.
49728         * modules/fnmatch-posix: Turn into a symbolic reference to the
49729         'fnmatch' module, and deprecate.
49730         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49731
49732 2009-05-03  Bruno Haible  <bruno@clisp.org>
49733
49734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49735         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49736         Reported by Ralf Wildenhues.
49737
49738 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49739
49740         * m4/fnmatch.m4: Fix fnmatch re-define.
49741
49742 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49743
49744         priv-set: new module and tests; adapt write-any-file
49745         * lib/priv-set.c: New file.
49746         * lib/priv-set.h: New file.
49747         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49748         * lib/write-any-file.c: Simplify by using priv-set module.
49749         * m4/priv-set.m4: New file.
49750         * modules/priv-set: New file.
49751         * modules/unlinkdir: Add dependency on priv-set module.
49752         * modules/write-any-file: Likewise.
49753
49754         Tests for module 'priv-set'.
49755         * modules/priv-set-tests: New file.
49756         * tests/test-priv-set.c: New file.
49757
49758 2009-05-03  Jim Meyering  <meyering@redhat.com>
49759             Bruno Haible  <bruno@clisp.org>
49760
49761         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49762         use the converted UTF-8 variant of the name instead.
49763
49764 2009-05-03  Jim Meyering  <meyering@redhat.com>
49765
49766         tests: tighten some getdate tests
49767         * tests/test-getdate.c (main): Tighten tests: require equality,
49768         not just greater than.  Set TZ envvar to UTC0.
49769
49770 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49771
49772         getdate: correctly interpret "next monday" when run on a Monday
49773         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49774         that e.g., "next tues" (when run on a tuesday) results in a date
49775         that is one week in the future, and not today's date.
49776         I.e., add a week when the wday is the same as the current one.
49777         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49778         and earlier by Martin Bernreuther and Jan Minář.
49779         * tests/test-getdate.c (main): Check that "next DAY" is always in
49780         the future and that "last DAY" is always in the past.
49781
49782 2009-05-02  Jim Meyering  <meyering@redhat.com>
49783
49784         build: ensure that a release build fails when a submodule is unclean
49785         * top/maint.mk (no-submodule-changes): New rule.
49786         (alpha beta major): Depend on it.
49787
49788 2009-05-02  Bruno Haible  <bruno@clisp.org>
49789
49790         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49792         shell variable gl_fnmatch_required to detect which variant is
49793         requested.
49794         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49795         gl_FUNC_FNMATCH_POSIX.
49796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49797         exclude fnmatch-posix.
49798
49799 2009-05-02  Bruno Haible  <bruno@clisp.org>
49800
49801         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49802         * modules/mbsrtowcs (License): Change to LGPLv2+.
49803         * modules/strnlen1 (License): Likewise.
49804         Reported by Simon Josefsson.
49805
49806 2009-05-02  Bruno Haible  <bruno@clisp.org>
49807
49808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49809         "cross".
49810         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49811         gnulib-tool was called with option --source-base=lib.
49812
49813 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49814
49815         Use automake *-local hooks without commands, for extensibility.
49816         * modules/localcharset (Makefile.am): Rename install-exec-local
49817         rule to install-exec-localcharset, and make it a prerequisite of
49818         install-exec-local.  Likewise, rename the uninstall-local rule to
49819         uninstall-localcharset, and make it a prerequisite of the former.
49820
49821 2009-05-01  Bruno Haible  <bruno@clisp.org>
49822
49823         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49824         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49825         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49827         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49828         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49829         m4/locale-zh.m4, m4/codeset.m4.
49830
49831         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49832         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49833         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49834         m4/locale-zh.m4.
49835
49836         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49837         REPLACE_WCRTOMB if mbstate_t must be replaced.
49838         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49839         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49840
49841 2009-05-01  Bruno Haible  <bruno@clisp.org>
49842
49843         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49844         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49845         dngettext, dcngettext, textdomain, bindtextdomain,
49846         bind_textdomain_codeset): Undefine before redefining.
49847
49848 2009-04-30  Bruno Haible  <bruno@clisp.org>
49849
49850         Fix bug introduced on 2009-04-25.
49851         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49852         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49853         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49854         is defined.
49855         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49856         is defined.
49857         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49858         is defined.
49859         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49860
49861 2009-04-28  Bruno Haible  <bruno@clisp.org>
49862
49863         Comment tweaks.
49864         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49865         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49866         * lib/unicase.h (u*_casexfrm): Likewise.
49867         Reported by Paolo Bonzini.
49868
49869 2009-04-28  Bruno Haible  <bruno@clisp.org>
49870
49871         Fix a compilation error.
49872         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49873         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49874         Reported by Jim Meyering.
49875
49876 2009-04-27  Bruno Haible  <bruno@clisp.org>
49877
49878         New module 'libunistring'.
49879         * modules/libunistring: New file.
49880         * m4/libunistring.m4: New file.
49881         * MODULES.html.sh (Unicode string functions): Add it.
49882
49883 2009-04-27  Eric Blake  <ebb9@byu.net>
49884
49885         maint.mk: allow package-specific header to provide <config.h>
49886         * top/maint.mk (sc_require_config_h): New variable.
49887         (sc_require_config_h, sc_require_config_h_first): Use it.
49888
49889 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49890
49891         * top/maint.mk (sc_avoid_if_before_free): Except
49892         useless-if-before-free script.
49893
49894 2009-04-27  Eric Blake  <ebb9@byu.net>
49895
49896         maintainer-makefile: depend on all required helper scripts
49897         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49898         useless-if-before-free.
49899         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49900         version, rather than assuming gnulib checkout is available.
49901         Reported by Simen Josefsson.
49902
49903 2009-04-26  Bruno Haible  <bruno@clisp.org>
49904
49905         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49906         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49907         "../" or "..".
49908
49909 2009-04-26  Bruno Haible  <bruno@clisp.org>
49910
49911         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49912         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49913         AC_LIB_HAVE_LINKFLAGS.
49914
49915 2009-04-26  Bruno Haible  <bruno@clisp.org>
49916
49917         Simplify calling convention of u*_conv_from_encoding.
49918         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49919         u32_conv_from_encoding): Expect a resultbuf argument and return the
49920         result directly as a pointer.
49921         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49922         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49923         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49924         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49925         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49926         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49927         Update.
49928         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49929         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49930         * lib/vasnprintf.c (VASNPRINTF): Update.
49931         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49932         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49933         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49934         * NEWS: Mention the change.
49935
49936 2009-04-26  Bruno Haible  <bruno@clisp.org>
49937
49938         Simplify calling convention of u*_conv_to_encoding.
49939         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49940         u32_conv_to_encoding): Expect a resultbuf argument and return the
49941         result directly as a pointer.
49942         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49943         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49944         freeing scaled_offsets if mem_iconveha failed.
49945         * lib/unicase/u-casexfrm.h (FUNC): Update.
49946         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49947         * lib/vasnprintf.c (VASNPRINTF): Update.
49948         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49949         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49950         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49951         * NEWS: Mention the change.
49952
49953 2009-04-26  Bruno Haible  <bruno@clisp.org>
49954
49955         Avoid test failures on AIX and OSF/1.
49956         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49957         malloc(0).
49958         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49959         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49960         Likewise.
49961         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49962         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49963         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49964         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49965         * doc/posix-functions/malloc.texi: Document the portability problem
49966         related to malloc(0).
49967
49968 2009-04-26  Bruno Haible  <bruno@clisp.org>
49969
49970         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49971         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49972         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49973
49974 2009-04-25  Bruno Haible  <bruno@clisp.org>
49975
49976         Avoid link error when creating a namespace clean library.
49977         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49978         as macro with arguments if already defined as an alias.
49979         * lib/signbitf.c (gl_signbitf): Don't undefine.
49980         * lib/signbitd.c (gl_signbitd): Don't undefine.
49981         * lib/signbitl.c (gl_signbitl): Don't undefine.
49982
49983 2009-04-25  Jim Meyering  <meyering@redhat.com>
49984
49985         vc-list-files: fix another quoting bug
49986         * build-aux/vc-list-files: Avoid sed backslash expansion
49987         of pathological directory names.
49988
49989 2009-04-25  Eric Blake  <ebb9@byu.net>
49990
49991         vc-list-files: fix shell quoting error
49992         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49993         timestamp.
49994
49995 2009-04-25  Jim Meyering  <meyering@redhat.com>
49996
49997         vc-list-files: restore lost functionality with subdir argument
49998         * build-aux/vc-list-files: When given a non-"." sub-directory
49999         argument, substitute the $dir/ prefix back onto each resulting name.
50000         Otherwise, coreutils' root_tests check would fail.
50001
50002 2009-04-24  Eric Blake  <ebb9@byu.net>
50003
50004         vc-list-files: ignore git symlinks
50005         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50006         than ls-files, to ignore git symlinks.
50007
50008         maint.mk: import improvements from m4
50009         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50010         (move_if_change): Delete unused macro.
50011         (news-date-check, vc-diff-check): Support VPATH builds.
50012         (announcement): Likewise.  Split --bootstrap-tools list...
50013         (boostrap-tools): ...into separate list, which can be overridden
50014         in cfg.mk.
50015         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50016         requiring dependency on useless-if-before-free module.
50017         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50018         Support VPATH builds.
50019
50020 2009-04-24  Jim Meyering  <meyering@redhat.com>
50021
50022         maint.mk: remove coreutils-specific rules and variables
50023         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50024         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50025         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50026
50027         maint.mk: remove obsolete rule
50028         * top/maint.mk (rel-check): Remove rule.
50029         (WGET, WGETFLAGS): Remove now-unused variables.
50030
50031 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50032
50033         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50034         consistency.
50035
50036         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50037         '$(PATH_SEPARATOR)' instead of ':'.
50038
50039 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50040
50041         * lib/getopt1.c (main): Use 'const' for static array.
50042
50043 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50044
50045         * top/maint.mk: Sync with coreutils.
50046         * NEWS: Explain incompatibilities.
50047
50048 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50049             Bruno Haible  <bruno@clisp.org>
50050
50051         Fix cross-compilation results.
50052         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50053         statement, as third argument of AC_TRY_RUN.
50054         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50055         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50056         Likewise.
50057         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50058         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50059         Likewise.
50060         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50062         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50063
50064 2009-04-20  Bruno Haible  <bruno@clisp.org>
50065
50066         Avoid test failure on mingw.
50067         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50068
50069 2009-04-20  Bruno Haible  <bruno@clisp.org>
50070
50071         Avoid compilation error on mingw.
50072         * modules/localename-tests (Depends-on): Add locale.
50073
50074 2009-04-19  Bruno Haible  <bruno@clisp.org>
50075
50076         Support for building a shared library on Windows platforms.
50077         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50078         (main): Test the presence of UNINORM_NFC here.
50079         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50080         (main): Test the presence of UNINORM_NFD here.
50081         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50082         (main): Test the presence of UNINORM_NFKC here.
50083         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50084         (main): Test the presence of UNINORM_NFKD here.
50085
50086 2009-04-19  Bruno Haible  <bruno@clisp.org>
50087
50088         Avoid a compiler warning.
50089         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50090         Change type of variable 'sequence'.
50091
50092 2009-04-19  Bruno Haible  <bruno@clisp.org>
50093
50094         * modules/configmake (Makefile.am): When the contents of configmake.h
50095         does not change, arrange to preserve its modification time.
50096
50097 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50098
50099         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50100         gettext domain.
50101
50102 2009-04-16  Jim Meyering  <meyering@redhat.com>
50103
50104         useless-if-before-free: improve conversion code
50105         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50106         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50107
50108 2009-04-14  Bruno Haible  <bruno@clisp.org>
50109
50110         * modules/fcntl (Depends-on): Add extensions.
50111         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50112
50113 2009-04-12  Ben Pfaff  <blp@gnu.org>
50114
50115         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50116         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50117
50118 2009-03-20  Ben Pfaff  <blp@gnu.org>
50119
50120         Make rename replace existing destinations on Windows.
50121         * m4/rename.m4: Add test for Mingw.
50122         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50123         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50124         * doc/posix-functions/rename.texi: Document.
50125
50126 2009-04-10  Bruno Haible  <bruno@clisp.org>
50127
50128         New include file "iconveh.h".
50129         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50130         * lib/striconveh.h: Include it.
50131         (enum iconv_ilseq_handler): Remove definition.
50132         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50133         striconveh.h.
50134         * lib/striconveha.c: Include striconveh.h.
50135         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50136         * modules/striconveh (Files): Add lib/iconveh.h.
50137         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50138         lib/striconveh.h.
50139
50140 2009-04-10  Bruno Haible  <bruno@clisp.org>
50141
50142         * lib/uniconv.h: Update comment.
50143
50144 2009-04-10  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50147         always.
50148         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50149         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50150         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50151         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50152         "unistring-notinline.h", so that the function gets defined always.
50153         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50154         * lib/unistr/u8-uctomb.c: Likewise.
50155         * lib/unistr/u16-mbtouc.c: Likewise.
50156         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50157         * lib/unistr/u16-uctomb.c: Likewise.
50158         * lib/unistr/u32-mbtouc.c: Likewise.
50159         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50160         * lib/unistr/u32-uctomb.c: Likewise.
50161
50162 2009-04-10  Bruno Haible  <bruno@clisp.org>
50163
50164         Mark 'utime' obsolete.
50165         * modules/utime (Status, Notice): New sections.
50166         Suggested by Jim Meyering.
50167
50168         Fix cross-compile guess for utime test.
50169         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50170         autoconf.
50171         * doc/posix-functions/utime.texi: Give more precisions.
50172         Reported by Jan <ipif@ymail.com>.
50173
50174 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50175
50176         filevercmp: correct today's change
50177         * lib/filevercmp.c: Also handle coreutils' test inputs.
50178         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50179
50180         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50181         for reporting it.
50182         * lib/filevercmp.c: Special handle for "", "." and "..".
50183         * tests/test-filevercmp.c: Enlarge the set suite.
50184
50185 2009-04-07  Jim Meyering  <meyering@redhat.com>
50186
50187         useless-if-before-free: show how to remove braced useless free, too
50188         * build-aux/useless-if-before-free: still only in a comment, though.
50189
50190 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50191
50192         maint.mk: import changes to syntax-check macros from coreutils
50193         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50194         Use them in the relevant macros.
50195
50196 2009-04-06  Bruno Haible  <bruno@clisp.org>
50197
50198         Fix unportable use of bit-fields.
50199         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50200         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50201         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50202
50203 2009-04-06  Bruno Haible  <bruno@clisp.org>
50204
50205         Avoid test failures on AIX and OSF/1.
50206         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50207         that malloc(0) = NULL.
50208         * tests/unicase/test-u8-tolower.c (check): Likewise.
50209         * tests/unicase/test-u8-totitle.c (check): Likewise.
50210         * tests/unicase/test-u8-toupper.c (check): Likewise.
50211         * tests/unicase/test-u16-casefold.c (check): Likewise.
50212         * tests/unicase/test-u16-tolower.c (check): Likewise.
50213         * tests/unicase/test-u16-totitle.c (check): Likewise.
50214         * tests/unicase/test-u16-toupper.c (check): Likewise.
50215         * tests/unicase/test-u32-casefold.c (check): Likewise.
50216         * tests/unicase/test-u32-tolower.c (check): Likewise.
50217         * tests/unicase/test-u32-totitle.c (check): Likewise.
50218         * tests/unicase/test-u32-toupper.c (check): Likewise.
50219         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50220         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50221         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50222         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50223         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50224         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50225         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50226         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50227         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50228         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50229         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50230         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50231
50232 2009-04-05  Bruno Haible  <bruno@clisp.org>
50233
50234         Work around an autoconf limitation.
50235         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50236         comment line if it would be longer than 3 KB.
50237
50238 2009-04-05  Bruno Haible  <bruno@clisp.org>
50239
50240         Avoid test failure with libiconv-1.13.
50241         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50242         of the expected test results.
50243
50244 2009-04-05  Bruno Haible  <bruno@clisp.org>
50245
50246         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50247         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50248         that it should be installed.
50249
50250 2009-04-05  Bruno Haible  <bruno@clisp.org>
50251
50252         * gnulib-tool: New option --copy-file.
50253         (func_usage): Document it.
50254         (func_dest_tmpfilename): Moved out of func_import.
50255         (func_add_file, func_update_file): New functions, extracted from
50256         func_import.
50257         (func_import): Update.
50258
50259 2009-04-05  Karl Berry  <karl@gnu.org>
50260
50261         * README: prominently mention gnulib-tool.
50262         Rearrange sections so getting the code is near the top.
50263
50264 2009-04-05  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/unicase.h: Mention u*_cmp2.
50267         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50268         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50269         * lib/unicase/ulc-casecmp.c: Likewise.
50270         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50271         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50272         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50273         unistr/u8-cmp.
50274         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50275         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50276         unistr/u16-cmp.
50277         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50278         unistr/u32-cmp.
50279
50280         * lib/uninorm.h: Mention u*_cmp2.
50281         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50282         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50283         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50284         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50285         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50286         unistr/u8-cmp.
50287         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50288         unistr/u16-cmp.
50289         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50290         unistr/u32-cmp.
50291
50292         New module 'unistr/u32-cmp2'.
50293         * lib/unistr/u32-cmp2.c: New file.
50294         * modules/unistr/u32-cmp2: New file.
50295
50296         New module 'unistr/u16-cmp2'.
50297         * lib/unistr/u16-cmp2.c: New file.
50298         * modules/unistr/u16-cmp2: New file.
50299
50300         New module 'unistr/u8-cmp2'.
50301         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50302         * lib/unistr/u8-cmp2.c: New file.
50303         * lib/unistr/u-cmp2.h: New file.
50304         * modules/unistr/u8-cmp2: New file.
50305
50306 2009-04-05  Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/unictype.h (uc_property_is_valid): New macro.
50309         * tests/unictype/test-pr_byname.c (main): Use it.
50310
50311         * lib/unistr.h: Doc fixes.
50312         * lib/uniconv.h: Doc fixes.
50313         * lib/unictype.h: Doc fixes.
50314
50315 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50316
50317         Port coreutils 7.2 to Solaris 8.
50318
50319         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50320         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50321         for Solaris 8.  This is a bit of a hack, as it means it's the
50322         caller's responsibility to add -lnsl if needed, but most likely it
50323         won't be needed since only getaddrinfo uses this and getaddrinfo
50324         isn't needed on Solaris 8.
50325
50326         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50327         problem to Solaris 8 encountered with coreutils 7.2, which
50328         resulted in a message "fnmatch.c:292: warning: passing argument 4
50329         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50330         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50331
50332 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50333
50334         * m4/ld-version-script.m4: Add FIXME comment.
50335
50336 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50337
50338         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50339         SOVERSION variable.
50340
50341 2009-04-02  Bruno Haible  <bruno@clisp.org>
50342
50343         * Makefile (info, html, dvi, pdf): Combine the rules.
50344         Suggested by Jim Meyering.
50345
50346 2009-04-01  Bruno Haible  <bruno@clisp.org>
50347
50348         * Makefile (info, html, dvi, pdf): New targets.
50349         Reported by Reuben Thomas <rrt@sc3d.org>.
50350
50351 2009-04-01  Bruno Haible  <bruno@clisp.org>
50352
50353         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50354         can be put into PATH.
50355         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50356
50357 2009-04-01  Bruno Haible  <bruno@clisp.org>
50358
50359         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50360
50361 2009-04-01  Bruno Haible  <bruno@clisp.org>
50362
50363         Rename module 'visibility'.
50364         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50365         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50366         * doc/gnulib.texi: Update.
50367         * MODULES.html.sh (Misc): Update.
50368         * NEWS: Mention the change.
50369
50370 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50371
50372         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50373         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50374         Eric Blake <ebb9@byu.net> for review.
50375         * MODULES.html.sh: Add lib-msvc-compat.
50376         * doc/gnulib.texi: Link to new section.
50377         * m4/ld-output-def.m4: New file.
50378         * doc/ld-output-def.texi: New file.
50379
50380 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50381
50382         Rename ld-version-script to lib-symbol-versions.  Suggested by
50383         Bruno Haible <bruno@clisp.org>.
50384         * modules/ld-version-script: Renamed to lib-symbol-versions.
50385         * doc/ld-version-script.texi: Fix module name.
50386         * MODULES.html.sh: Add lib-symbol-versions.
50387
50388 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50389
50390         * modules/u64-tests: New file.
50391         * tests/test-u64.c: New file.
50392
50393 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50394
50395         * MODULES.html.sh: Mention u64.
50396         * modules/u64: New module.
50397         * modules/crypto/sha512: Depend on u64 module instead of providing
50398         u64.h.
50399
50400 2009-03-27  Eric Blake  <ebb9@byu.net>
50401
50402         test-strerror: make debugging EAI_SYSTEM easier
50403         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50404         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50405         failure was EAI_SYSTEM.
50406
50407 2009-03-25  Bruno Haible  <bruno@clisp.org>
50408
50409         Fix a problem with --enable-relocatable on Solaris 7.
50410         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50411         since 2008-02-24.
50412
50413 2009-03-25  Eric Blake  <ebb9@byu.net>
50414
50415         test-sockets: avoid gcc warning
50416         * tests/test-sockets.c (main): Silence compiler warning.
50417
50418 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50419
50420         New modules nproc, pthread, contributed by Glen Lenker.
50421
50422         * MODULES.html.sh: Add pthread, nproc.
50423         * lib/nproc.c: New file.
50424         * lib/nproc.h: New file.
50425         * lib/pthread.in.h: New file.
50426         * m4/pthread.m4: New file.
50427         * modules/nproc: New file.
50428         * modules/pthread: New file.
50429
50430 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50431
50432         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50433         New variable.
50434
50435 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50436
50437         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50438         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50439         * tests/test-filevercmp.c: Add tests for backup suffixes.
50440
50441 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50442
50443         * modules/stdlib (Depends-on): Add stdint, needed when defining
50444         struct random_data on, for example, HP-UX 10.20.  Reported by
50445         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50446
50447 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50448
50449         * lib/readline.c (readline): Call fflush on stdout after printing
50450         prompt.
50451
50452 2009-03-20  Bruno Haible  <bruno@clisp.org>
50453
50454         Remove dependency from 'close' module to -lws2_32 on native Windows.
50455         * lib/close-hook.h: New file.
50456         * lib/close-hook.c: New file.
50457         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50458         w32sock.h.
50459         (_gl_close_fd_maybe_socket): Remove function.
50460         (rpl_close): Invoke execute_all_close_hooks instead of
50461         _gl_close_fd_maybe_socket.
50462         * lib/sockets.c: Include close-hook.h, w32sock.h.
50463         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50464         (close_sockets_hook): New variable.
50465         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50466         (gl_sockets_cleanup): Unregister it.
50467         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50468         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50469         * modules/close-hook: New file.
50470         * modules/close (Files): Remove lib/w32sock.h.
50471         (Depends-on): Add close-hook.
50472         (Link): Remove section.
50473         * modules/sockets (Files): Add lib/w32sock.h.
50474         (Depends-on): Add close-hook.
50475         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50476         invocation.
50477         * NEWS: Mention that LIB_CLOSE is gone.
50478
50479 2009-03-23  Eric Blake  <ebb9@byu.net>
50480
50481         signal-tests: test previous patch
50482         * tests/test-signal.c: New file.
50483         * modules/signal-tests: Likewise.
50484
50485         signal.h: always support 'volatile sig_atomic_t'
50486         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50487         (gl_SIGNAL_H_DEFAULTS): Add a default.
50488         * modules/signal (Makefile.am): Substitute if needed.
50489         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50490         users can blindly add volatile.
50491         * doc/posix-headers/signal.texi (signal.h): Document it.
50492         Reported by Matthew Woehlke.
50493
50494 2009-03-23  Jim Meyering  <meyering@redhat.com>
50495
50496         pathmax: PATH_MAX: use pathconf only when available
50497         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50498         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50499         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50500         This avoids a link failure in a PSP cross-compilation environment
50501         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50502
50503         * lib/vasnprintf.c (divide): Fix typo in comment.
50504
50505 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50506
50507         * gnulib-tool (func_filter_filelist): Fix comment.
50508
50509 2009-03-20  Bruno Haible  <bruno@clisp.org>
50510
50511         Make sockets.h self-contained.
50512         * lib/sockets.c: Include sockets.h first.
50513         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50514
50515 2009-03-19  Eric Blake  <ebb9@byu.net>
50516
50517         doc: mention more functions added in cygwin 1.7.0
50518         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50519         addition.
50520         * doc/posix-functions/log2f.texi: Likewise.
50521
50522 2009-03-19  Jim Meyering  <meyering@redhat.com>
50523
50524         fsusage: avoid syntax error due to statement-before-declaration
50525         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50526         after all declarations.  Reported by Matthew Woehlke in
50527         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50528
50529 2009-03-18  Eric Blake  <ebb9@byu.net>
50530
50531         build-aux/compile: sync from automake
50532         * build-aux/compile: New file, from automake.
50533         * config/srclist.txt: Mention build-aux/compile.
50534
50535 2009-03-17  Bruno Haible  <bruno@clisp.org>
50536
50537         * lib/git-merge-changelog.c: Fix typo in comment.
50538         Reported by Reuben Thomas <rrt@sc3d.org>.
50539
50540 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50541
50542         * m4/regex.m4: update and improve help for
50543         --without-included-regex.
50544
50545 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50546
50547         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50548         failure on missing include files.
50549
50550 2009-03-17  Eric Blake  <ebb9@byu.net>
50551
50552         doc: mention more functions added in cygwin 1.7.0
50553         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50554         addition.
50555         * doc/posix-functions/fwscanf.texi: Likewise.
50556         * doc/posix-functions/swprintf.texi: Likewise.
50557         * doc/posix-functions/swscanf.texi: Likewise.
50558         * doc/posix-functions/vfwprintf.texi: Likewise.
50559         * doc/posix-functions/vfwscanf.texi: Likewise.
50560         * doc/posix-functions/vswprintf.texi: Likewise.
50561         * doc/posix-functions/vswscanf.texi: Likewise.
50562         * doc/posix-functions/vwprintf.texi: Likewise.
50563         * doc/posix-functions/vwscanf.texi: Likewise.
50564         * doc/posix-functions/wcscasecmp.texi: Likewise.
50565         * doc/posix-functions/wcsdup.texi: Likewise.
50566         * doc/posix-functions/wcsftime.texi: Likewise.
50567         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50568         * doc/posix-functions/wprintf.texi: Likewise.
50569         * doc/posix-functions/wscanf.texi: Likewise.
50570         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50571
50572 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50573
50574         maint.mk: really add $(AM_MAKEFLAGS)
50575         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50576         was inadvertently omitted in the last commit.
50577         Spotted by Bruno Haible.
50578
50579         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50580         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50581         $(AM_MAKEFLAGS)' rather than plain `make'.
50582
50583         gnulib-tool: execute $MAKE not make
50584         * gnulib-tool: Default $MAKE to 'make'.
50585         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50586         than make.  Initialize $MAKE in the do-autobuild script.
50587
50588         gnulib-tool: use $MAKE not make in generated files
50589         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50590         make, in generated files.  Initialize $MAKE in the do-autobuild
50591         script.
50592
50593         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50594
50595         GNUmakefile: disable parallelism only for multiple, recursive targets
50596         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50597         additions in the Makefile.
50598         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50599         by Automake.
50600         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50601         are listed on the command line and at least one of them is
50602         listed in $(ALL_RECURSIVE_TARGETS).
50603
50604 2009-03-14  Bruno Haible  <bruno@clisp.org>
50605
50606         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50607         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50608         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50609         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50610         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50611         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50612         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50613         unistr/u8-uctomb.
50614         * modules/unistr/u8-strchr (Depends-on): Likewise.
50615         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50616         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50617         unistr/u16-uctomb.
50618         * modules/unistr/u16-strchr (Depends-on): Likewise.
50619         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50620
50621 2009-03-12  Bruno Haible  <bruno@clisp.org>
50622
50623         Work around select() bug on Interix 3.5.
50624         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50625         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50626         * m4/select.m4: New file.
50627         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50628         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50629         * modules/select (Files): Add m4/select.m4.
50630         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50631         * modules/nanosleep (Depends-on): Add select.
50632         * modules/poll (Depends-on): Likewise.
50633         * doc/posix-functions/select.texi: Mention the Interix bug.
50634         Reported by Markus Duft <mduft@gentoo.org>.
50635
50636         * lib/select.c: Renamed from lib/winsock-select.c.
50637         * modules/select (Files): Add lib/select.c, remove
50638         lib/winsock-select.c.
50639         (configure.ac): Update.
50640
50641 2009-03-12  Jim Meyering  <meyering@redhat.com>
50642
50643         avoid gcc warnings about unused macro definitions
50644         * lib/readtokens.c (STREQ): Remove unused definition.
50645         * lib/xmalloc.c (SIZE_MAX): Likewise.
50646         * lib/openat-die.c (N_): Likewise.
50647         * lib/mountlist.c (SIZE_MAX): Remove definition.
50648         Instead, include <stdint.h>.
50649         * lib/readutmp.c: Likewise.
50650         * modules/readutmp (Depends-on): Add stdint.
50651         * modules/mountlist (Depends-on): Add stdint.
50652         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50653
50654 2009-03-10  Bruno Haible  <bruno@clisp.org>
50655
50656         Tests for module 'mbmemcasecoll'.
50657         * modules/mbmemcasecoll-tests: New file.
50658         * tests/test-mbmemcasecoll1.sh: New file.
50659         * tests/test-mbmemcasecoll2.sh: New file.
50660         * tests/test-mbmemcasecoll3.sh: New file.
50661         * tests/test-mbmemcasecoll.c: New file.
50662
50663         New module 'mbmemcasecoll'.
50664         * lib/mbmemcasecoll.h: New file.
50665         * lib/mbmemcasecoll.c: New file.
50666         * modules/mbmemcasecoll: New file.
50667
50668         * tests/test-mbmemcasecmp.h: New file, extracted from
50669         tests/test-mbmemcasecmp.c.
50670         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50671         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50672         (main): Update.
50673         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50674
50675 2009-03-09  Bruno Haible  <bruno@clisp.org>
50676
50677         Tests for module 'mbmemcasecmp'.
50678         * modules/mbmemcasecmp-tests: New file.
50679         * tests/test-mbmemcasecmp1.sh: New file.
50680         * tests/test-mbmemcasecmp2.sh: New file.
50681         * tests/test-mbmemcasecmp3.sh: New file.
50682         * tests/test-mbmemcasecmp.c: New file.
50683
50684         New module 'mbmemcasecmp'.
50685         * lib/mbmemcasecmp.h: New file.
50686         * lib/mbmemcasecmp.c: New file.
50687         * modules/mbmemcasecmp: New file.
50688
50689 2009-03-09  Bruno Haible  <bruno@clisp.org>
50690
50691         Tests for module 'unicase/ulc-casecoll'.
50692         * modules/unicase/ulc-casecoll-tests: New file.
50693         * tests/unicase/test-ulc-casecoll1.sh: New file.
50694         * tests/unicase/test-ulc-casecoll2.sh: New file.
50695         * tests/unicase/test-ulc-casecoll.c: New file.
50696
50697         New module 'unicase/ulc-casecoll'.
50698         * lib/unicase.h (ulc_casecoll): New declaration.
50699         * lib/unicase/ulc-casecoll.c: New file.
50700         * modules/unicase/ulc-casecoll: New file.
50701
50702         New module 'unicase/ulc-casexfrm'.
50703         * lib/unicase.h (ulc_casexfrm): New declaration.
50704         * lib/unicase/ulc-casexfrm.c: New file.
50705         * modules/unicase/ulc-casexfrm: New file.
50706
50707 2009-03-09  Bruno Haible  <bruno@clisp.org>
50708
50709         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50710         invocations.
50711
50712         * m4/mbscasecmp.m4: Remove file.
50713         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50714         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50715
50716         * m4/mbscasestr.m4: Remove file.
50717         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50718         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50719
50720         * m4/mbschr.m4: Remove file.
50721         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50722         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50723
50724         * m4/mbscspn.m4: Remove file.
50725         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50726         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50727
50728         * m4/mbslen.m4: Remove file.
50729         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50730         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50731
50732         * m4/mbsncasecmp.m4: Remove file.
50733         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50734         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50735
50736         * m4/mbsnlen.m4: Remove file.
50737         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50738         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50739
50740         * m4/mbspbrk.m4: Remove file.
50741         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50742         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50743
50744         * m4/mbspcasecmp.m4: Remove file.
50745         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50746         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50747
50748         * m4/mbsrchr.m4: Remove file.
50749         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50750         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50751
50752         * m4/mbssep.m4: Remove file.
50753         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50754         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50755
50756         * m4/mbsspn.m4: Remove file.
50757         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50758         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50759
50760         * m4/mbsstr.m4: Remove file.
50761         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50762         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50763
50764         * m4/mbstok_r.m4: Remove file.
50765         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50766         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50767
50768         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50769
50770         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50771         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50772
50773         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50774
50775 2009-03-08  Bruno Haible  <bruno@clisp.org>
50776
50777         Tests for module 'unicase/ulc-casecmp'.
50778         * modules/unicase/ulc-casecmp-tests: New file.
50779         * tests/unicase/test-ulc-casecmp1.sh: New file.
50780         * tests/unicase/test-ulc-casecmp2.sh: New file.
50781         * tests/unicase/test-ulc-casecmp.c: New file.
50782
50783         New module 'unicase/ulc-casecmp'.
50784         * lib/unicase.h (ulc_casecmp): New declaration.
50785         * lib/unicase/ulc-casecmp.c: New file.
50786         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50787         'const SRC_UNIT *'.
50788         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50789         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50790         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50791         * modules/unicase/ulc-casecmp: New file.
50792
50793         Tests for module 'unicase/u32-is-cased'.
50794         * modules/unicase/u32-is-cased-tests: New file.
50795         * tests/unicase/test-u32-is-cased.c: New file.
50796
50797         Tests for module 'unicase/u16-is-cased'.
50798         * modules/unicase/u16-is-cased-tests: New file.
50799         * tests/unicase/test-u16-is-cased.c: New file.
50800
50801         Tests for module 'unicase/u8-is-cased'.
50802         * modules/unicase/u8-is-cased-tests: New file.
50803         * tests/unicase/test-u8-is-cased.c: New file.
50804         * tests/unicase/test-is-cased.h: New file.
50805
50806         New module 'unicase/u32-is-cased'.
50807         * lib/unicase/u32-is-cased.c: New file.
50808         * modules/unicase/u32-is-cased: New file.
50809
50810         New module 'unicase/u16-is-cased'.
50811         * lib/unicase/u16-is-cased.c: New file.
50812         * modules/unicase/u16-is-cased: New file.
50813
50814         New module 'unicase/u8-is-cased'.
50815         * lib/unicase/u8-is-cased.c: New file.
50816         * lib/unicase/u-is-cased.h: New file.
50817         * modules/unicase/u8-is-cased: New file.
50818
50819         Tests for module 'unicase/u32-is-casefolded'.
50820         * modules/unicase/u32-is-casefolded-tests: New file.
50821         * tests/unicase/test-u32-is-casefolded.c: New file.
50822
50823         Tests for module 'unicase/u16-is-casefolded'.
50824         * modules/unicase/u16-is-casefolded-tests: New file.
50825         * tests/unicase/test-u16-is-casefolded.c: New file.
50826
50827         Tests for module 'unicase/u8-is-casefolded'.
50828         * modules/unicase/u8-is-casefolded-tests: New file.
50829         * tests/unicase/test-u8-is-casefolded.c: New file.
50830         * tests/unicase/test-is-casefolded.h: New file.
50831
50832         New module 'unicase/u32-is-casefolded'.
50833         * lib/unicase/u32-is-casefolded.c: New file.
50834         * modules/unicase/u32-is-casefolded: New file.
50835
50836         New module 'unicase/u16-is-casefolded'.
50837         * lib/unicase/u16-is-casefolded.c: New file.
50838         * modules/unicase/u16-is-casefolded: New file.
50839
50840         New module 'unicase/u8-is-casefolded'.
50841         * lib/unicase/u8-is-casefolded.c: New file.
50842         * modules/unicase/u8-is-casefolded: New file.
50843
50844         Tests for module 'unicase/u32-is-titlecase'.
50845         * modules/unicase/u32-is-titlecase-tests: New file.
50846         * tests/unicase/test-u32-is-titlecase.c: New file.
50847
50848         Tests for module 'unicase/u16-is-titlecase'.
50849         * modules/unicase/u16-is-titlecase-tests: New file.
50850         * tests/unicase/test-u16-is-titlecase.c: New file.
50851
50852         Tests for module 'unicase/u8-is-titlecase'.
50853         * modules/unicase/u8-is-titlecase-tests: New file.
50854         * tests/unicase/test-u8-is-titlecase.c: New file.
50855         * tests/unicase/test-is-titlecase.h: New file.
50856
50857         New module 'unicase/u32-is-titlecase'.
50858         * lib/unicase/u32-is-titlecase.c: New file.
50859         * modules/unicase/u32-is-titlecase: New file.
50860
50861         New module 'unicase/u16-is-titlecase'.
50862         * lib/unicase/u16-is-titlecase.c: New file.
50863         * modules/unicase/u16-is-titlecase: New file.
50864
50865         New module 'unicase/u8-is-titlecase'.
50866         * lib/unicase/u8-is-titlecase.c: New file.
50867         * modules/unicase/u8-is-titlecase: New file.
50868
50869         Tests for module 'unicase/u32-is-lowercase'.
50870         * modules/unicase/u32-is-lowercase-tests: New file.
50871         * tests/unicase/test-u32-is-lowercase.c: New file.
50872
50873         Tests for module 'unicase/u16-is-lowercase'.
50874         * modules/unicase/u16-is-lowercase-tests: New file.
50875         * tests/unicase/test-u16-is-lowercase.c: New file.
50876
50877         Tests for module 'unicase/u8-is-lowercase'.
50878         * modules/unicase/u8-is-lowercase-tests: New file.
50879         * tests/unicase/test-u8-is-lowercase.c: New file.
50880         * tests/unicase/test-is-lowercase.h: New file.
50881
50882         New module 'unicase/u32-is-lowercase'.
50883         * lib/unicase/u32-is-lowercase.c: New file.
50884         * modules/unicase/u32-is-lowercase: New file.
50885
50886         New module 'unicase/u16-is-lowercase'.
50887         * lib/unicase/u16-is-lowercase.c: New file.
50888         * modules/unicase/u16-is-lowercase: New file.
50889
50890         New module 'unicase/u8-is-lowercase'.
50891         * lib/unicase/u8-is-lowercase.c: New file.
50892         * modules/unicase/u8-is-lowercase: New file.
50893
50894         Tests for module 'unicase/u32-is-uppercase'.
50895         * modules/unicase/u32-is-uppercase-tests: New file.
50896         * tests/unicase/test-u32-is-uppercase.c: New file.
50897
50898         Tests for module 'unicase/u16-is-uppercase'.
50899         * modules/unicase/u16-is-uppercase-tests: New file.
50900         * tests/unicase/test-u16-is-uppercase.c: New file.
50901
50902         Tests for module 'unicase/u8-is-uppercase'.
50903         * modules/unicase/u8-is-uppercase-tests: New file.
50904         * tests/unicase/test-u8-is-uppercase.c: New file.
50905         * tests/unicase/test-is-uppercase.h: New file.
50906
50907         New module 'unicase/u32-is-uppercase'.
50908         * lib/unicase/u32-is-uppercase.c: New file.
50909         * modules/unicase/u32-is-uppercase: New file.
50910
50911         New module 'unicase/u16-is-uppercase'.
50912         * lib/unicase/u16-is-uppercase.c: New file.
50913         * modules/unicase/u16-is-uppercase: New file.
50914
50915         New module 'unicase/u8-is-uppercase'.
50916         * lib/unicase/u8-is-uppercase.c: New file.
50917         * modules/unicase/u8-is-uppercase: New file.
50918
50919         New module 'unicase/u32-is-invariant'.
50920         * lib/unicase/u32-is-invariant.c: New file.
50921         * modules/unicase/u32-is-invariant: New file.
50922
50923         New module 'unicase/u16-is-invariant'.
50924         * lib/unicase/u16-is-invariant.c: New file.
50925         * modules/unicase/u16-is-invariant: New file.
50926
50927         New module 'unicase/u8-is-invariant'.
50928         * lib/unicase/u8-is-invariant.c: New file.
50929         * lib/unicase/invariant.h: New file.
50930         * lib/unicase/u-is-invariant.h: New file.
50931         * modules/unicase/u8-is-invariant: New file.
50932
50933         Tests for module 'unicase/u32-casecoll'.
50934         * modules/unicase/u32-casecoll-tests: New file.
50935         * tests/unicase/test-u32-casecoll.c: New file.
50936
50937         Tests for module 'unicase/u16-casecoll'.
50938         * modules/unicase/u16-casecoll-tests: New file.
50939         * tests/unicase/test-u16-casecoll.c: New file.
50940
50941         Tests for module 'unicase/u8-casecoll'.
50942         * modules/unicase/u8-casecoll-tests: New file.
50943         * tests/unicase/test-u8-casecoll.c: New file.
50944
50945         New module 'unicase/u32-casecoll'.
50946         * lib/unicase/u32-casecoll.c: New file.
50947         * modules/unicase/u32-casecoll: New file.
50948
50949         New module 'unicase/u16-casecoll'.
50950         * lib/unicase/u16-casecoll.c: New file.
50951         * modules/unicase/u16-casecoll: New file.
50952
50953         New module 'unicase/u8-casecoll'.
50954         * lib/unicase/u8-casecoll.c: New file.
50955         * lib/unicase/u-casecoll.h: New file.
50956         * modules/unicase/u8-casecoll: New file.
50957
50958         New module 'unicase/u32-casexfrm'.
50959         * lib/unicase/u32-casexfrm.c: New file.
50960         * modules/unicase/u32-casexfrm: New file.
50961
50962         New module 'unicase/u16-casexfrm'.
50963         * lib/unicase/u16-casexfrm.c: New file.
50964         * modules/unicase/u16-casexfrm: New file.
50965
50966         New module 'unicase/u8-casexfrm'.
50967         * lib/unicase/u8-casexfrm.c: New file.
50968         * lib/unicase/u-casexfrm.h: New file.
50969         * modules/unicase/u8-casexfrm: New file.
50970
50971         Tests for module 'unicase/u32-casecmp'.
50972         * modules/unicase/u32-casecmp-tests: New file.
50973         * tests/unicase/test-u32-casecmp.c: New file.
50974
50975         Tests for module 'unicase/u16-casecmp'.
50976         * modules/unicase/u16-casecmp-tests: New file.
50977         * tests/unicase/test-u16-casecmp.c: New file.
50978
50979         Tests for module 'unicase/u8-casecmp'.
50980         * modules/unicase/u8-casecmp-tests: New file.
50981         * tests/unicase/test-u8-casecmp.c: New file.
50982         * tests/unicase/test-casecmp.h: New file.
50983
50984         New module 'unicase/u32-casecmp'.
50985         * lib/unicase/u32-casecmp.c: New file.
50986         * modules/unicase/u32-casecmp: New file.
50987
50988         New module 'unicase/u16-casecmp'.
50989         * lib/unicase/u16-casecmp.c: New file.
50990         * modules/unicase/u16-casecmp: New file.
50991
50992         New module 'unicase/u8-casecmp'.
50993         * lib/unicase/u8-casecmp.c: New file.
50994         * lib/unicase/u-casecmp.h: New file.
50995         * modules/unicase/u8-casecmp: New file.
50996
50997         Tests for module 'unicase/u32-casefold'.
50998         * modules/unicase/u32-casefold-tests: New file.
50999         * tests/unicase/test-u32-casefold.c: New file.
51000
51001         Tests for module 'unicase/u16-casefold'.
51002         * modules/unicase/u16-casefold-tests: New file.
51003         * tests/unicase/test-u16-casefold.c: New file.
51004
51005         Tests for module 'unicase/u8-casefold'.
51006         * modules/unicase/u8-casefold-tests: New file.
51007         * tests/unicase/test-u8-casefold.c: New file.
51008
51009         New module 'unicase/u32-casefold'.
51010         * lib/unicase/u32-casefold.c: New file.
51011         * modules/unicase/u32-casefold: New file.
51012
51013         New module 'unicase/u16-casefold'.
51014         * lib/unicase/u16-casefold.c: New file.
51015         * modules/unicase/u16-casefold: New file.
51016
51017         New module 'unicase/u8-casefold'.
51018         * lib/unicase/u8-casefold.c: New file.
51019         * lib/unicase/u-casefold.h: New file.
51020         * modules/unicase/u8-casefold: New file.
51021
51022         New module 'unicase/tocasefold'.
51023         * lib/unicase/casefold.h: New file.
51024         * lib/unicase/tocasefold.c: New file.
51025         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51026         * modules/unicase/tocasefold: New file.
51027
51028         Tests for module 'unicase/u32-totitle'.
51029         * modules/unicase/u32-totitle-tests: New file.
51030         * tests/unicase/test-u32-totitle.c: New file.
51031
51032         Tests for module 'unicase/u16-totitle'.
51033         * modules/unicase/u16-totitle-tests: New file.
51034         * tests/unicase/test-u16-totitle.c: New file.
51035
51036         Tests for module 'unicase/u8-totitle'.
51037         * modules/unicase/u8-totitle-tests: New file.
51038         * tests/unicase/test-u8-totitle.c: New file.
51039
51040         New module 'unicase/u32-totitle'.
51041         * lib/unicase/u32-totitle.c: New file.
51042         * modules/unicase/u32-totitle: New file.
51043
51044         New module 'unicase/u16-totitle'.
51045         * lib/unicase/u16-totitle.c: New file.
51046         * modules/unicase/u16-totitle: New file.
51047
51048         New module 'unicase/u8-totitle'.
51049         * lib/unicase/u8-totitle.c: New file.
51050         * lib/unicase/u-totitle.h: New file.
51051         * modules/unicase/u8-totitle: New file.
51052
51053         Tests for module 'unicase/u32-tolower'.
51054         * modules/unicase/u32-tolower-tests: New file.
51055         * tests/unicase/test-u32-tolower.c: New file.
51056
51057         Tests for module 'unicase/u16-tolower'.
51058         * modules/unicase/u16-tolower-tests: New file.
51059         * tests/unicase/test-u16-tolower.c: New file.
51060
51061         Tests for module 'unicase/u8-tolower'.
51062         * modules/unicase/u8-tolower-tests: New file.
51063         * tests/unicase/test-u8-tolower.c: New file.
51064
51065         New module 'unicase/u32-tolower'.
51066         * lib/unicase/u32-tolower.c: New file.
51067         * modules/unicase/u32-tolower: New file.
51068
51069         New module 'unicase/u16-tolower'.
51070         * lib/unicase/u16-tolower.c: New file.
51071         * modules/unicase/u16-tolower: New file.
51072
51073         New module 'unicase/u8-tolower'.
51074         * lib/unicase/u8-tolower.c: New file.
51075         * modules/unicase/u8-tolower: New file.
51076
51077         Tests for module 'unicase/u32-toupper'.
51078         * modules/unicase/u32-toupper-tests: New file.
51079         * tests/unicase/test-u32-toupper.c: New file.
51080
51081         Tests for module 'unicase/u16-toupper'.
51082         * modules/unicase/u16-toupper-tests: New file.
51083         * tests/unicase/test-u16-toupper.c: New file.
51084
51085         Tests for module 'unicase/u8-toupper'.
51086         * modules/unicase/u8-toupper-tests: New file.
51087         * tests/unicase/test-u8-toupper.c: New file.
51088
51089         New module 'unicase/u32-toupper'.
51090         * lib/unicase/u32-toupper.c: New file.
51091         * modules/unicase/u32-toupper: New file.
51092
51093         New module 'unicase/u16-toupper'.
51094         * lib/unicase/u16-toupper.c: New file.
51095         * modules/unicase/u16-toupper: New file.
51096
51097         New module 'unicase/u8-toupper'.
51098         * lib/unicase/u8-toupper.c: New file.
51099         * modules/unicase/u8-toupper: New file.
51100
51101         New module 'unicase/u32-casemap'.
51102         * lib/unicase/u32-casemap.c: New file.
51103         * modules/unicase/u32-casemap: New file.
51104
51105         New module 'unicase/u16-casemap'.
51106         * lib/unicase/u16-casemap.c: New file.
51107         * modules/unicase/u16-casemap: New file.
51108
51109         New module 'unicase/u8-casemap'.
51110         * lib/unicase/unicasemap.h: New file.
51111         * lib/unicase/u8-casemap.c: New file.
51112         * lib/unicase/u-casemap.h: New file.
51113         * modules/unicase/u8-casemap: New file.
51114
51115         New module 'unicase/special-casing'.
51116         * lib/unicase/special-casing.h: New file.
51117         * lib/unicase/special-casing.c: New file.
51118         * lib/unicase/special-casing-table.gperf: New file, generated by
51119         gen-uni-tables.c.
51120         * modules/unicase/special-casing: New file.
51121
51122         Tests for module 'unicase/locale-language'.
51123         * modules/unicase/locale-language-tests: New file.
51124         * tests/unicase/test-locale-language.sh: New file.
51125         * tests/unicase/test-locale-language.c: New file.
51126
51127         New module 'unicase/locale-language'.
51128         * lib/unicase/locale-language.c: New file.
51129         * lib/unicase/locale-languages.gperf: New file.
51130         * modules/unicase/locale-language: New file.
51131
51132         Generate more tables for case conversion and case folding.
51133         * lib/gen-uni-tables.c (SCC_*): New enum items.
51134         (struct special_casing_rule): New type.
51135         (casing_rules, num_casing_rules, allocated_casing_rules): New
51136         variables.
51137         (add_casing_rule, fill_casing_rules): New functions.
51138         (struct casefold_rule): New type.
51139         (casefolding_rules, num_casefolding_rules,
51140         allocated_casefolding_rules): New variables.
51141         (fill_casefolding_rules): New function.
51142         (unicode_casefold): New variable.
51143         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51144         sort_casing_rules, output_casing_rules): New functions.
51145         (main): Accept to more arguments: SpecialCasing.txt and
51146         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51147         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51148         Output mapping for casefolding.
51149
51150         * lib/unicase.h: Include stdbool.h, uninorm.h.
51151         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51152         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51153         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51154         arguments.
51155         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51156         resultp arguments.
51157         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51158         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51159         resultp arguments.
51160         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51161         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51162         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51163         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51164         declarations.
51165         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51166
51167 2009-03-08  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51170         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51171         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51172         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51173
51174 2009-03-07  Bruno Haible  <bruno@clisp.org>
51175
51176         Adjust u*_normcmp, u*_normcoll API.
51177         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51178         u16_normcoll, u32_normcoll): Change failure conventions.
51179         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51180         errno and return -1.
51181         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51182
51183 2009-03-07  Bruno Haible  <bruno@clisp.org>
51184
51185         Tests for module 'uninorm/u32-normcoll'.
51186         * modules/uninorm/u32-normcoll-tests: New file.
51187         * tests/uninorm/test-u32-normcoll.c: New file.
51188
51189         Tests for module 'uninorm/u16-normcoll'.
51190         * modules/uninorm/u16-normcoll-tests: New file.
51191         * tests/uninorm/test-u16-normcoll.c: New file.
51192
51193         Tests for module 'uninorm/u8-normcoll'.
51194         * modules/uninorm/u8-normcoll-tests: New file.
51195         * tests/uninorm/test-u8-normcoll.c: New file.
51196
51197 2009-03-07  Bruno Haible  <bruno@clisp.org>
51198
51199         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51200         tests/uninorm/test-u32-normcmp.c.
51201         * tests/uninorm/test-u32-normcmp.c: Include it.
51202         (test_nonascii): New function, extracted from main. Add some more
51203         tests.
51204         (main): Invoke test_ascii and test_nonascii.
51205         * modules/uninorm/u32-normcmp-tests (Files): Add
51206         tests/uninorm/test-u32-normcmp.h.
51207         (Depends-on): Remove uninorm/u32-normcmp.
51208
51209         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51210         tests/uninorm/test-u16-normcmp.c.
51211         * tests/uninorm/test-u16-normcmp.c: Include it.
51212         (test_nonascii): New function, extracted from main. Add some more
51213         tests.
51214         (main): Invoke test_ascii and test_nonascii.
51215         * modules/uninorm/u16-normcmp-tests (Files): Add
51216         tests/uninorm/test-u16-normcmp.h.
51217         (Depends-on): Remove uninorm/u16-normcmp.
51218
51219         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51220         tests/uninorm/test-u8-normcmp.c.
51221         * tests/uninorm/test-u8-normcmp.c: Include it.
51222         (test_nonascii): New function, extracted from main. Add some more
51223         tests.
51224         (main): Invoke test_ascii and test_nonascii.
51225         * modules/uninorm/u8-normcmp-tests (Files): Add
51226         tests/uninorm/test-u8-normcmp.h.
51227         (Depends-on): Remove uninorm/u8-normcmp.
51228
51229 2009-03-07  Bruno Haible  <bruno@clisp.org>
51230
51231         New module 'uninorm/u32-normcoll'.
51232         * lib/uninorm/u32-normcoll.c: New file.
51233         * modules/uninorm/u32-normcoll: New file.
51234
51235         New module 'uninorm/u16-normcoll'.
51236         * lib/uninorm/u16-normcoll.c: New file.
51237         * modules/uninorm/u16-normcoll: New file.
51238
51239         New module 'uninorm/u8-normcoll'.
51240         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51241         declarations.
51242         * lib/uninorm/u8-normcoll.c: New file.
51243         * lib/uninorm/u-normcoll.h: New file.
51244         * modules/uninorm/u8-normcoll: New file.
51245
51246         New module 'uninorm/u32-normxfrm'.
51247         * lib/uninorm/u32-normxfrm.c: New file.
51248         * modules/uninorm/u32-normxfrm: New file.
51249
51250         New module 'uninorm/u16-normxfrm'.
51251         * lib/uninorm/u16-normxfrm.c: New file.
51252         * modules/uninorm/u16-normxfrm: New file.
51253
51254         New module 'uninorm/u8-normxfrm'.
51255         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51256         declarations.
51257         * lib/uninorm/u8-normxfrm.c: New file.
51258         * lib/uninorm/u-normxfrm.h: New file.
51259         * modules/uninorm/u8-normxfrm: New file.
51260
51261 2009-03-07  Bruno Haible  <bruno@clisp.org>
51262
51263         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51264         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51265         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51266
51267 2009-03-07  Bruno Haible  <bruno@clisp.org>
51268
51269         New module 'memxfrm'.
51270         * lib/memxfrm.h: New file.
51271         * lib/memxfrm.c: New file.
51272         * modules/memxfrm: New file.
51273
51274 2009-03-07  Bruno Haible  <bruno@clisp.org>
51275
51276         New module 'memcmp2'.
51277         * lib/memcmp2.h: New file.
51278         * lib/memcmp2.c: New file.
51279         * modules/memcmp2: New file.
51280
51281 2009-03-07  Bruno Haible  <bruno@clisp.org>
51282
51283         Tests for module 'uninorm/decomposing-form'.
51284         * modules/uninorm/decomposing-form-tests: New file.
51285         * tests/uninorm/test-decomposing-form.c: New file.
51286
51287         New module 'uninorm/decomposing-form'.
51288         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51289         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51290         Add 'decomposing_variant' field.
51291         * lib/uninorm/decomposing-form.c: New file.
51292         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51293         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51294         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51295         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51296         * modules/uninorm/decomposing-form: New file.
51297         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51298         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51299
51300 2009-03-07  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51303         strings.
51304
51305 2009-03-06  Bruno Haible  <bruno@clisp.org>
51306
51307         Tests for module 'uninorm/u32-normcmp'.
51308         * tests/uninorm/test-u32-normcmp.c: New file.
51309         * modules/uninorm/u32-normcmp-tests: New file.
51310
51311         Tests for module 'uninorm/u16-normcmp'.
51312         * tests/uninorm/test-u16-normcmp.c: New file.
51313         * modules/uninorm/u16-normcmp-tests: New file.
51314
51315         Tests for module 'uninorm/u8-normcmp'.
51316         * tests/uninorm/test-u8-normcmp.c: New file.
51317         * modules/uninorm/u8-normcmp-tests: New file.
51318
51319         New module 'uninorm/u32-normcmp'.
51320         * lib/uninorm/u32-normcmp.c: New file.
51321         * modules/uninorm/u32-normcmp: New file.
51322
51323         New module 'uninorm/u16-normcmp'.
51324         * lib/uninorm/u16-normcmp.c: New file.
51325         * modules/uninorm/u16-normcmp: New file.
51326
51327         New module 'uninorm/u8-normcmp'.
51328         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51329         declarations.
51330         * lib/uninorm/u8-normcmp.c: New file.
51331         * lib/uninorm/u-normcmp.h: New file.
51332         * modules/uninorm/u8-normcmp: New file.
51333
51334 2009-03-06  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51337         Reported by Eric Blake.
51338
51339 2009-03-06  Eric Blake  <ebb9@byu.net>
51340             Bruno Haible  <bruno@clisp.org>
51341
51342         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51343         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51344         condition.
51345         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51346         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51347         condition.
51348         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51349
51350 2009-03-06  Eric Blake  <ebb9@byu.net>
51351
51352         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51353         to avoid compiler warnings.
51354         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51355
51356 2009-03-05  Bruno Haible  <bruno@clisp.org>
51357
51358         * tests/test-ftell.c (main): Disable test beyond end of file on
51359         FreeMiNT.
51360         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51361
51362 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51363
51364         * lib/filevercmp.c: Move hidden files up in ordering.
51365         * tests/test-filevercmp.c: Add tests for hidden files.
51366
51367 2009-03-04  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51370         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51371         AM_CFLAGS.
51372         Reported by Simon Josefsson.
51373
51374 2009-03-03  Bruno Haible  <bruno@clisp.org>
51375
51376         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51377         Reported by Simon Josefsson.
51378
51379         * doc/ld-version-script.texi: Update node reference.
51380
51381 2009-03-03  Bruno Haible  <bruno@clisp.org>
51382
51383         * modules/visibility (License): Change to 'unlimited'.
51384         Suggested by Simon Josefsson.
51385
51386 2009-03-03  Jim Meyering  <meyering@redhat.com>
51387
51388         unlinkdir: cannot_unlink_dir may modify process state
51389         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51390         it's neither thread-safe nor appropriate for use in a library.
51391
51392 2009-03-03  Eric Blake  <ebb9@byu.net>
51393
51394         test-closein: silence test under Darwin
51395         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51396         care if it dies from EPIPE or EBADF.
51397
51398 2009-03-03  Bruno Haible  <bruno@clisp.org>
51399
51400         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51401         earlier.
51402         * doc/visibility.texi: Fix @node and @section.
51403
51404 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51405
51406         * doc/gnulib.texi: Link to sections for ld version script and
51407         visibility.
51408         * doc/visibility.texi: Add @node and @section.
51409         * modules/ld-version-script: New module.
51410         * m4/ld-version-script.m4: New file.
51411         * doc/ld-version-script.texi: New file.
51412
51413 2009-03-02  David Lutterkort  <lutter@redhat.com>
51414
51415         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51417
51418 2009-03-02  Bruno Haible  <bruno@clisp.org>
51419
51420         * doc/visibility.texi: Mention libtool's -export-symbols option.
51421
51422 2009-03-02  Jim Meyering  <meyering@redhat.com>
51423
51424         announce-gen: new option: --no-print-checksums
51425         * build-aux/announce-gen (usage): Describe it.
51426         (print_checksums): Print a newline here, not in the [*] footnote.
51427         (main): Honor it.
51428
51429 2009-03-01  Bruno Haible  <bruno@clisp.org>
51430
51431         Use socklen_t in the native Windows replacements prototypes.
51432         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51433         instead of 'int'.
51434         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51435         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51436         * modules/getsockopt (Depends-on): Add socklen.
51437         * modules/setsockopt (Depends-on): Add socklen.
51438
51439 2009-03-01  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51442         least 4.2.
51443
51444 2009-03-01  Eric Blake  <ebb9@byu.net>
51445             Bruno Haible  <bruno@clisp.org>
51446
51447         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51448         error messages.
51449         * lib/wait-process.c (wait_subprocess): Omit error message about
51450         deadly signal sent to the child of termsigp != NULL.
51451
51452 2009-03-01  Eric Blake  <ebb9@byu.net>
51453
51454         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51455
51456 2009-03-01  Bruno Haible  <bruno@clisp.org>
51457
51458         Avoid a gcc warning.
51459         * tests/test-sched.c (b): Make global.
51460         Reported by Eric Blake.
51461
51462 2009-01-19  Martin Lambers  <marlam@marlam.de>
51463
51464         Provide POSIX semantics for socket timeout options on W32.
51465         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51466         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51467         * modules/setsockopt: Depend on sys_time module for struct timeval.
51468         * modules/getsockopt: Depend on sys_time module for struct timeval.
51469
51470 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51471
51472         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51473         __USE_GNU, for consistency with netdb.in.h.
51474         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51475
51476 2009-03-01  Bruno Haible  <bruno@clisp.org>
51477
51478         More support for FreeMiNT.
51479         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51480         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51481
51482 2009-03-01  Bruno Haible  <bruno@clisp.org>
51483
51484         More support for FreeMiNT.
51485         * lib/fpurge.c (fpurge): Correct last commit.
51486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51487
51488 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51489
51490         Fix unportable awk script in vc-list-files.
51491         * build-aux/vc-list-files: In the replacement awk script, use
51492         substr with a second argument of 1, not zero.
51493         Report by Simon Josefsson.
51494
51495 2009-02-28  Bruno Haible  <bruno@clisp.org>
51496
51497         More support for FreeMiNT.
51498         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51499         to FreeMiNT today.
51500         * lib/fwriting.c (fwriting): Likewise.
51501         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51502
51503 2009-02-28  Bruno Haible  <bruno@clisp.org>
51504
51505         * tests/test-freadseek.c (main): Disable test beyond end of file on
51506         FreeMiNT.
51507         * tests/test-ftello.c (main): Likewise.
51508         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51509
51510 2009-02-28  Bruno Haible  <bruno@clisp.org>
51511
51512         Add tentative support for FreeMiNT.
51513         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51514         * lib/fpurge.c (fpurge): Likewise.
51515         * lib/freadable.c (freadable): Likewise.
51516         * lib/freading.c (freading): Likewise.
51517         * lib/freadptr.c (freadptr): Likewise.
51518         * lib/freadseek.c (freadptrinc): Likewise.
51519         * lib/fseeko.c (rpl_fseeko): Likewise.
51520         * lib/fseterr.c (fseterr): Likewise.
51521         * lib/fwritable.c (fwritable): Likewise.
51522         * lib/fwriting.c (fwriting): Likewise.
51523         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51524         Hourihane.
51525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51526
51527 2009-02-28  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51530         SIGCHLD.
51531         Reported by Jim Meyering.
51532
51533 2009-02-28  Bruno Haible  <bruno@clisp.org>
51534
51535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51536         Mention the results of these tests on various platforms.
51537         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51538         order.
51539         * doc/posix-functions/printf.texi: Likewise.
51540         * doc/posix-functions/snprintf.texi: Likewise.
51541         * doc/posix-functions/sprintf.texi: Likewise.
51542         * doc/posix-functions/vfprintf.texi: Likewise.
51543         * doc/posix-functions/vprintf.texi: Likewise.
51544         * doc/posix-functions/vsnprintf.texi: Likewise.
51545         * doc/posix-functions/vsprintf.texi: Likewise.
51546         * doc/glibc-functions/obstack_printf.texi: Likewise.
51547         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51548
51549 2009-02-28  Bruno Haible  <bruno@clisp.org>
51550
51551         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51552         Reported by Loïc Minier <lool@dooz.org>.
51553
51554 2009-02-27  Bruno Haible  <bruno@clisp.org>
51555
51556         * gnulib-tool (func_import): Make the sed expression used to create the
51557         sed script for updating the .gitignore file POSIX compliant.
51558         Reported by Eric Blake.
51559
51560 2009-02-27  Bruno Haible  <bruno@clisp.org>
51561
51562         * gnulib-tool (sed): Don't alias as "sed --posix".
51563         Reported by Eric Blake.
51564
51565 2009-02-27  Bruno Haible  <bruno@clisp.org>
51566
51567         Avoid test link errors.
51568         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51569         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51570         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51571         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51573
51574 2009-02-27  Bruno Haible  <bruno@clisp.org>
51575
51576         Avoid spurious "(cached)" in configure output.
51577         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51578         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51579         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51580         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51581         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51584         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51585         Reported by Eric Blake.
51586
51587 2009-02-27  Eric Blake  <ebb9@byu.net>
51588
51589         printf: fix regression in previous patch
51590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51591
51592 2009-02-27  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51595         value.
51596         * lib/stdint.in.h: Likewise.
51597         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51598
51599 2009-02-27  Eric Blake  <ebb9@byu.net>
51600
51601         doc: mention more functions added in cygwin 1.7.0
51602         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51603         addition.
51604         * doc/posix-functions/open_wmemstream.texi: Likewise.
51605         * doc/posix-functions/wcsnlen.texi: Likewise.
51606         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51607         * doc/posix-functions/wcstod.texi: Likewise.
51608         * doc/posix-functions/wcstof.texi: Likewise.
51609         * doc/posix-functions/wcstoimax.texi: Likewise.
51610         * doc/posix-functions/wcstok.texi: Likewise.
51611         * doc/posix-functions/wcstoumax.texi: Likewise.
51612
51613         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51615         * doc/posix-functions/fprintf.texi: Update.
51616         * doc/posix-functions/printf.texi: Update.
51617         * doc/posix-functions/snprintf.texi: Update.
51618         * doc/posix-functions/sprintf.texi: Update.
51619         * doc/posix-functions/vfprintf.texi: Update.
51620         * doc/posix-functions/vprintf.texi: Update.
51621         * doc/posix-functions/vsnprintf.texi: Update.
51622         * doc/posix-functions/vsprintf.texi: Update.
51623         * doc/glibc-functions/obstack_printf.texi: Update.
51624         * doc/glibc-functions/obstack_vprintf.texi: Update.
51625
51626 2009-02-26  Eric Blake  <ebb9@byu.net>
51627
51628         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51629         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51630         compilation bug by using runtime conversion.
51631         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51632         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51633         * modules/ceill-tests (Files): Use nan.h.
51634         * modules/floorl-tests (Files): Likewise.
51635         * modules/frexpl-tests (Files): Likewise.
51636         * modules/isnanl-tests (Files): Likewise.
51637         * modules/ldexpl-tests (Files): Likewise.
51638         * modules/roundl-tests (Files): Likewise.
51639         * modules/truncl-tests (Files): Likewise.
51640         * tests/test-ceill.c (main): Use a working NaN.
51641         * tests/test-floorl.c (main): Likewise.
51642         * tests/test-frexpl.c (main): Likewise.
51643         * tests/test-isnan.c (test_long_double): Likewise.
51644         * tests/test-isnanl.h (main): Likewise.
51645         * tests/test-ldexpl.h (main): Likewise.
51646         * tests/test-roundl.h (main): Likewise.
51647         * tests/test-truncl.h (main): Likewise.
51648         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51649
51650 2009-02-26  Eric Blake  <ebb9@byu.net>
51651             Bruno Haible  <bruno@clisp.org>
51652
51653         Work around a *printf bug with %ls on Solaris.
51654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51655         precision is specified, sprintf stops converting the wide string
51656         argument when the number of bytes that have been produced by this
51657         conversion equals or exceeds the precision.
51658         * doc/posix-functions/fprintf.texi: Update.
51659         * doc/posix-functions/printf.texi: Update.
51660         * doc/posix-functions/snprintf.texi: Update.
51661         * doc/posix-functions/sprintf.texi: Update.
51662         * doc/posix-functions/vfprintf.texi: Update.
51663         * doc/posix-functions/vprintf.texi: Update.
51664         * doc/posix-functions/vsnprintf.texi: Update.
51665         * doc/posix-functions/vsprintf.texi: Update.
51666         * doc/glibc-functions/obstack_printf.texi: Update.
51667         * doc/glibc-functions/obstack_vprintf.texi: Update.
51668
51669 2009-02-26  Eric Blake  <ebb9@byu.net>
51670
51671         stdlib: favor compiler check of random.h
51672         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51673         to avoid an ObjC random.h installed by Swarm.
51674
51675 2009-02-26  Bruno Haible  <bruno@clisp.org>
51676
51677         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51678         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51679         Reported by Gary V. Vaughan <gary@gnu.org>.
51680
51681 2009-02-26  Bruno Haible  <bruno@clisp.org>
51682
51683         Fix *printf behaviour regarding the %ls directive.
51684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51685         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51686         NEED_PRINTF_DIRECTIVE_LS.
51687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51688         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51690         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51691         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51692         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51693         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51698         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51702         * doc/posix-functions/fprintf.texi: Update.
51703         * doc/posix-functions/printf.texi: Update.
51704         * doc/posix-functions/snprintf.texi: Update.
51705         * doc/posix-functions/sprintf.texi: Update.
51706         * doc/posix-functions/vfprintf.texi: Update.
51707         * doc/posix-functions/vprintf.texi: Update.
51708         * doc/posix-functions/vsnprintf.texi: Update.
51709         * doc/posix-functions/vsprintf.texi: Update.
51710         * doc/glibc-functions/obstack_printf.texi: Update.
51711         * doc/glibc-functions/obstack_vprintf.texi: Update.
51712         Reported by Eric Blake.
51713
51714 2009-02-25  Bruno Haible  <bruno@clisp.org>
51715
51716         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51717         with known value.
51718         Reported by Gary V. Vaughan <gary@gnu.org>.
51719
51720 2009-02-25  Bruno Haible  <bruno@clisp.org>
51721
51722         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51723         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51724         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51725         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51726         Reported by Gary V. Vaughan <gary@gnu.org>.
51727
51728 2009-02-25  Bruno Haible  <bruno@clisp.org>
51729
51730         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51731         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51732         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51733         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51734         Reported by Gary V. Vaughan <gary@gnu.org>.
51735
51736 2009-02-25  Eric Blake  <ebb9@byu.net>
51737
51738         tests: skip fseek/ftell tests if ungetc is broken
51739         * m4/ungetc.m4: New file.
51740         * modules/fseek-tests: Split test, so ungetc dependency is
51741         separate from rest of test.
51742         * modules/fseeko-tests: Likewise.
51743         * modules/ftell-tests: Likewise.
51744         * modules/ftello-tests: Likewise.
51745         * tests/test-fseek.c (main): Isolate ungetc dependency.
51746         * tests/test-fseeko.c (main): Likewise.
51747         * tests/test-ftell.c (main): Likewise.
51748         * tests/test-ftello.c (main): Likewise.
51749         * tests/test-fseek2.sh: New file.
51750         * tests/test-fseeko2.sh: Likewise.
51751         * tests/test-ftell2.sh: Likewise.
51752         * tests/test-ftello2.sh: Likewise.
51753
51754 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51755
51756         test-getaddrinfo: fix usage of skip return code 77
51757         * tests/test-gettaddrinfo.c: Return skip code 77 only
51758         for first occurrence of skip (4x77 is not 77)
51759
51760 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51761
51762         strtod: avoid C99 decl-after-statement
51763         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51764
51765 2009-02-24  Eric Blake  <ebb9@byu.net>
51766
51767         strtod: detect HP-UX 11.31 bug
51768         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51769         Reported by Gary V. Vaughan.
51770
51771 2009-02-23  Bruno Haible  <bruno@clisp.org>
51772
51773         Fix invalid read past end of memory block.
51774         * lib/vasnprintf.c (DCHAR_SET): Define.
51775         (local_wcslen): Define only when needed.
51776         (local_strnlen, local_wcsnlen): New functions.
51777         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51778         directives that involve a conversion ourselves.
51779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51780         wcsnlen, mbrtowc, wcrtomb.
51781         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51782         * tests/test-vasprintf-posix.c (test_function): Likewise.
51783         * tests/test-snprintf-posix.h (test_function): Likewise.
51784         * tests/test-sprintf-posix.h (test_function): Likewise.
51785         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51786
51787 2009-02-22  Bruno Haible  <bruno@clisp.org>
51788
51789         Implement new clarified decomposition of Hangul syllables.
51790         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51791         of type LTV, return only a pairwise decomposition.
51792         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51793         Likewise.
51794         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51795         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51796         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51797
51798 2009-02-22  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51801         zero-length results and shrink excess allocated memory.
51802         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51803         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51804         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51805         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51806         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51807         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51808         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51809         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51810         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51811         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51812         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51813         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51814
51815 2009-02-21  Bruno Haible  <bruno@clisp.org>
51816
51817         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51818         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51819         spaces after a period. Put a space between a macro name and its
51820         argument list. Trivial rewordings.
51821         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51822         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51823         (main): Return 0 explicitly.
51824
51825 2009-02-21  Bruno Haible  <bruno@clisp.org>
51826
51827         Tests for module 'uninorm/filter'.
51828         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51829         * modules/uninorm/filter-tests: New file.
51830
51831         New module 'uninorm/filter'.
51832         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51833         uninorm_filter_flush, uninorm_filter_free): New declarations.
51834         * lib/uninorm/uninorm-filter.c: New file.
51835         * modules/uninorm/filter: New file.
51836
51837 2009-02-21  Bruno Haible  <bruno@clisp.org>
51838
51839         Tests for module 'uninorm/nfkc'.
51840         * tests/uninorm/test-nfkc.c: New file.
51841         * tests/uninorm/test-u8-nfkc.c: New file.
51842         * tests/uninorm/test-u16-nfkc.c: New file.
51843         * tests/uninorm/test-u32-nfkc.c: New file.
51844         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51845         * tests/uninorm/test-u32-nfkc-big.c: New file.
51846         * modules/uninorm/nfkc-tests: New file.
51847
51848         New module 'uninorm/nfkc'.
51849         * lib/uninorm/nfkc.c: New file.
51850         * modules/uninorm/nfkc: New file.
51851
51852         Tests for module 'uninorm/nfkd'.
51853         * tests/uninorm/test-nfkd.c: New file.
51854         * tests/uninorm/test-u8-nfkd.c: New file.
51855         * tests/uninorm/test-u16-nfkd.c: New file.
51856         * tests/uninorm/test-u32-nfkd.c: New file.
51857         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51858         * tests/uninorm/test-u32-nfkd-big.c: New file.
51859         * modules/uninorm/nfkd-tests: New file.
51860
51861         New module 'uninorm/nfkd'.
51862         * lib/uninorm/nfkd.c: New file.
51863         * modules/uninorm/nfkd: New file.
51864
51865         Tests for module 'uninorm/nfc'.
51866         * tests/uninorm/test-nfc.c: New file.
51867         * tests/uninorm/test-u8-nfc.c: New file.
51868         * tests/uninorm/test-u16-nfc.c: New file.
51869         * tests/uninorm/test-u32-nfc.c: New file.
51870         * tests/uninorm/test-u32-nfc-big.sh: New file.
51871         * tests/uninorm/test-u32-nfc-big.c: New file.
51872         * modules/uninorm/nfc-tests: New file.
51873
51874         New module 'uninorm/nfc'.
51875         * lib/uninorm/nfc.c: New file.
51876         * modules/uninorm/nfc: New file.
51877
51878         Tests for module 'uninorm/nfd'.
51879         * tests/uninorm/test-nfd.c: New file.
51880         * tests/uninorm/test-u8-nfd.c: New file.
51881         * tests/uninorm/test-u16-nfd.c: New file.
51882         * tests/uninorm/test-u32-nfd.c: New file.
51883         * tests/uninorm/test-u32-nfd-big.sh: New file.
51884         * tests/uninorm/test-u32-nfd-big.c: New file.
51885         * tests/uninorm/test-u32-normalize-big.h: New file.
51886         * tests/uninorm/test-u32-normalize-big.c: New file.
51887         * tests/uninorm/NormalizationTest.txt: New file, created from
51888         Unicode 5.1.0 NormalizationTest.txt.
51889         * modules/uninorm/nfd-tests: New file.
51890
51891         New module 'uninorm/nfd'.
51892         * lib/uninorm/nfd.c: New file.
51893         * modules/uninorm/nfd: New file.
51894
51895         New module 'uninorm/u32-normalize'.
51896         * lib/uninorm/u32-normalize.c: New file.
51897         * modules/uninorm/u32-normalize: New file.
51898
51899         New module 'uninorm/u16-normalize'.
51900         * lib/uninorm/u16-normalize.c: New file.
51901         * modules/uninorm/u16-normalize: New file.
51902
51903         New module 'uninorm/u8-normalize'.
51904         * lib/uninorm/u8-normalize.c: New file.
51905         * lib/uninorm/normalize-internal.h: New file.
51906         * lib/uninorm/u-normalize-internal.h: New file.
51907         * modules/uninorm/u8-normalize: New file.
51908
51909         New module 'uninorm/decompose-internal'.
51910         * lib/uninorm/decompose-internal.c: New file.
51911         * modules/uninorm/decompose-internal: New file.
51912
51913         Tests for module 'uninorm/composition'.
51914         * tests/uninorm/test-composition.c: New file.
51915         * modules/uninorm/composition-tests: New file.
51916
51917         New module 'uninorm/composition'.
51918         * lib/uninorm/composition.c: New file.
51919         * lib/uninorm/composition-table.gperf: New file, generated by
51920         gen-uni-tables.
51921         * modules/uninorm/composition: New file.
51922
51923         Tests for module 'uninorm/compat-decomposition'.
51924         * tests/uninorm/test-compat-decomposition.c: New file.
51925         * modules/uninorm/compat-decomposition-tests: New file.
51926
51927         New module 'uninorm/compat-decomposition'.
51928         * lib/uninorm/decompose-internal.h: New file.
51929         * lib/uninorm/compat-decomposition.c: New file.
51930         * modules/uninorm/compat-decomposition: New file.
51931
51932         Tests for module 'uninorm/canonical-decomposition'.
51933         * tests/uninorm/test-canonical-decomposition.c: New file.
51934         * modules/uninorm/canonical-decomposition-tests: New file.
51935
51936         New module 'uninorm/canonical-decomposition'.
51937         * lib/uninorm/canonical-decomposition.c: New file.
51938         * modules/uninorm/canonical-decomposition: New file.
51939
51940         Tests for module 'uninorm/decomposition'.
51941         * tests/uninorm/test-decomposition.c: New file.
51942         * modules/uninorm/decomposition-tests: New file.
51943
51944         New module 'uninorm/decomposition'.
51945         * lib/uninorm/decomposition.c: New file.
51946         * modules/uninorm/decomposition: New file.
51947
51948         New module 'uninorm/decomposition-table'.
51949         * lib/uninorm/decomposition-table.h: New file.
51950         * lib/uninorm/decomposition-table.c: New file.
51951         * lib/uninorm/decomposition-table1.h: New file, generated by
51952         gen-uni-tables.
51953         * lib/uninorm/decomposition-table2.h: New file, generated by
51954         gen-uni-tables.
51955         * modules/uninorm/decomposition-table: New file.
51956
51957         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51958         (UC_DECOMP_*): New enumeration items.
51959         (get_decomposition): New function.
51960         (struct decomp_table): New type.
51961         (output_decomposition, output_decomposition_tables): New functions.
51962         (unicode_composition_exclusions): New variable.
51963         (fill_composition_exclusions, debug_output_composition_tables): New
51964         functions.
51965         (main): Accept one more argument. Invoke fill_composition_exclusions.
51966         Output decomposition and composition tables.
51967
51968         New module 'uninorm/base'.
51969         * lib/uninorm.h: New file.
51970         * lib/unictype.h: Update comment.
51971         * modules/uninorm/base: New file.
51972
51973 2009-02-21  David Lutterkort  <lutter@redhat.com>
51974
51975         Tests for module 'safe-alloc'.
51976         * tests/test-safe-alloc.c: New file.
51977         * modules/safe-alloc-tests: New file.
51978
51979         New module 'safe-alloc'.
51980         * lib/safe-alloc.h: New file.
51981         * lib/safe-alloc.c: New file.
51982         * m4/safe-alloc.m4: New file.
51983         * modules/safe-alloc: New file.
51984         * doc/safe-alloc.texi: New file.
51985         * doc/gnulib.texi: Include it.
51986         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51987         safe-alloc.
51988
51989 2009-02-18  Bruno Haible  <bruno@clisp.org>
51990
51991         Fix link error on non-glibc systems.
51992         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51993         variable.
51994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51995
51996 2009-02-18  Jim Meyering  <meyering@redhat.com>
51997
51998         fts: avoid used-uninitialized error due to recent change
51999         * lib/fts.c (fts_read): Guard uses of the new member,
52000         parent->fts_n_dirs_remaining, since it's not relevant for
52001         the parent of a directory specified on the command-line.
52002
52003 2009-02-17  James Youngman  <jay@gnu.org>
52004             Bruno Haible  <bruno@clisp.org>
52005
52006         * m4/include_next.m4: Reformulate comment.
52007
52008 2009-02-16  Jim Meyering  <meyering@redhat.com>
52009
52010         fts: add #if guards so that the fts_lgpl module still builds
52011         * lib/fts.c: Guard just-added hash-table-using parts with
52012         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52013         Reported by Simon Josefsson.
52014
52015 2009-02-15  Bruno Haible  <bruno@clisp.org>
52016
52017         * modules/array-mergesort-tests: New file.
52018         * tests/test-array-mergesort.c: New file.
52019
52020         New module 'array-mergesort'.
52021         * modules/array-mergesort: New file.
52022         * lib/array-mergesort.h: New file.
52023
52024 2009-02-15  Bruno Haible  <bruno@clisp.org>
52025
52026         Fix 2009-02-07 commit.
52027         * lib/gen-uni-tables.c (output_predicate, output_category,
52028         output_combclass, output_bidi_category, output_decimal_digit,
52029         output_digit, output_numeric, output_mirror, output_scripts,
52030         output_ident_category, output_simple_mapping): Fix format directives.
52031         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52032
52033 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52034
52035         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52036         fixes are available from IBM.
52037
52038 2009-02-13  Jim Meyering  <meyering@redhat.com>
52039
52040         fts: arrange not to stat non-directories in more cases
52041         This makes GNU find (when it doesn't need to stat each file)
52042         *much* more efficient at traversing reiserfs file systems.
52043         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52044         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52045         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52046         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52047         (leaf_optimization_applies): New function.
52048         (LCO_hash, LCO_compare): New helper functions.
52049         (link_count_optimize_ok): New function.
52050         (fts_stat): Initialize new member (if dir).
52051         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52052         we've just stat'ed a directory.  Skip the stat call when possible.
52053         ---
52054         Note this AFS-related exchange:
52055         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52056         and note find's pioctl call in find/fstype.c.
52057         But that is necessary only if you want to enable the
52058         optimization for AFS, and for now, I don't.
52059
52060         fts: move a function definition "up" (no semantic change)
52061         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52062         "up" to precede upcoming use of a related function.
52063
52064 2009-02-11  Jim Meyering  <meyering@redhat.com>
52065
52066         fts: correct internal computation of nlinks (optimization-related)
52067         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52068         whether the current entry is a directory, so don't test it.
52069
52070 2009-02-10  Bruno Haible  <bruno@clisp.org>
52071
52072         Tests for module 'uniwbrk/ulc-wordbreaks'.
52073         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52074         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52075         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52076
52077         Tests for module 'uniwbrk/u32-wordbreaks'.
52078         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52079         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52080
52081         Tests for module 'uniwbrk/u16-wordbreaks'.
52082         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52083         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52084
52085         Tests for module 'uniwbrk/u8-wordbreaks'.
52086         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52087         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52088
52089 2009-02-10  Bruno Haible  <bruno@clisp.org>
52090
52091         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52092         property.
52093         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52094         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52095         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52096
52097 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52098
52099         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52100         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52101
52102 2009-02-10  Bruno Haible  <bruno@clisp.org>
52103
52104         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52105         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52106         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52107         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52108         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52109         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52110
52111 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52112
52113         * lib/sockets.h (gl_fd_to_handle): New function.
52114
52115         * tests/test-sockets.c: Call gl_fd_to_handle.
52116
52117 2009-02-09  Bruno Haible  <bruno@clisp.org>
52118
52119         * doc/havelib.texi: Document the conventions on bi-arch systems.
52120
52121 2009-02-08  Bruno Haible  <bruno@clisp.org>
52122
52123         Document the AC_LIB_LINKFLAGS macro.
52124         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52125         * doc/gnulib.texi: Include it.
52126
52127 2009-02-08  Bruno Haible  <bruno@clisp.org>
52128
52129         Fix wrong order of sections, compared to TOC.
52130         * doc/gnulib.texi: Include relocatable-maint.texi after the
52131         "Regular expressions" node, not before.
52132
52133 2009-02-08  Bruno Haible  <bruno@clisp.org>
52134
52135         Tests for module 'unicase/totitle'.
52136         * modules/unicase/totitle-tests: New file.
52137
52138         Tests for module 'unicase/tolower'.
52139         * modules/unicase/tolower-tests: New file.
52140
52141         Tests for module 'unicase/toupper'.
52142         * modules/unicase/toupper-tests: New file.
52143         * tests/unicase/test-mapping-part1.h: New file.
52144         * tests/unicase/test-mapping-part2.h: New file.
52145
52146         New module 'unicase/totitle'.
52147         * modules/unicase/totitle: New file.
52148         * lib/unicase/totitle.c: New file.
52149
52150         New module 'unicase/tolower'.
52151         * modules/unicase/tolower: New file.
52152         * lib/unicase/tolower.c: New file.
52153
52154         New module 'unicase/toupper'.
52155         * modules/unicase/toupper: New file.
52156         * lib/unicase/toupper.c: New file.
52157         * lib/unicase/simple-mapping.h: New file.
52158
52159         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52160         (mapping_table): New structure.
52161         (output_simple_mapping): New function.
52162         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52163         * modules/gen-uni-tables (Description): Update.
52164         * lib/unicase/toupper.h: New file, automatically generated by
52165         gen-uni-tables.
52166         * lib/unicase/tolower.h: New file, automatically generated by
52167         gen-uni-tables.
52168         * lib/unicase/totitle.h: New file, automatically generated by
52169         gen-uni-tables.
52170         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52171         gen-uni-tables.
52172         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52173         gen-uni-tables.
52174         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52175         gen-uni-tables.
52176
52177         New module 'unicase/base'.
52178         * modules/unicase/base: New file.
52179         * lib/unicase.h: New file.
52180
52181 2009-02-08  Bruno Haible  <bruno@clisp.org>
52182
52183         New module 'uniwbrk/ulc-wordbreaks'.
52184         * modules/uniwbrk/ulc-wordbreaks: New file.
52185         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52186
52187         New module 'uniwbrk/u32-wordbreaks'.
52188         * modules/uniwbrk/u32-wordbreaks: New file.
52189         * lib/uniwbrk/u32-wordbreaks.c: New file.
52190
52191         New module 'uniwbrk/u16-wordbreaks'.
52192         * modules/uniwbrk/u16-wordbreaks: New file.
52193         * lib/uniwbrk/u16-wordbreaks.c: New file.
52194
52195         New module 'uniwbrk/u8-wordbreaks'.
52196         * modules/uniwbrk/u8-wordbreaks: New file.
52197         * lib/uniwbrk/u8-wordbreaks.c: New file.
52198         * lib/uniwbrk/u-wordbreaks.h: New file.
52199
52200         New module 'uniwbrk/table'.
52201         * modules/uniwbrk/table: New file.
52202         * lib/uniwbrk/wbrktable.h: New file.
52203         * lib/uniwbrk/wbrktable.c: New file.
52204
52205         New module 'uniwbrk/wordbreak-property'.
52206         * modules/uniwbrk/wordbreak-property: New file.
52207         * lib/uniwbrk/wordbreak-property.c: New file.
52208
52209         * lib/gen-uni-tables.c (WBP_*): New enum items.
52210         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52211         (unicode_org_wbp): New variable.
52212         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52213         New functions.
52214         (wbp_table): New structure.
52215         (output_wbp, output_wbrk_tables): New functions.
52216         (main): Accept additional argument. Invoke fill_org_wbp,
52217         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52218         output_wbrk_tables.
52219         * modules/gen-uni-tables (Description): Update.
52220         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52221         gen-uni-tables.
52222
52223         New module 'uniwbrk/base'.
52224         * modules/uniwbrk/base: New file.
52225         * lib/uniwbrk.h: New file.
52226
52227 2009-02-08  Bruno Haible  <bruno@clisp.org>
52228
52229         Update to Unicode 5.1.0.
52230         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52231         U+2185..U+2188.
52232         (is_property_default_ignorable_code_point): Don't include characters
52233         of category Cc or Cs and not-a-characters.
52234         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52235         U+0D79, U+109E, U+109F, U+A60C.
52236         * lib/unictype/bidi_of.h: Regenerated.
52237         * lib/unictype/blocks.h: Regenerated.
52238         * lib/unictype/categ_C.h: Regenerated.
52239         * lib/unictype/categ_Cf.h: Regenerated.
52240         * lib/unictype/categ_Cn.h: Regenerated.
52241         * lib/unictype/categ_L.h: Regenerated.
52242         * lib/unictype/categ_Ll.h: Regenerated.
52243         * lib/unictype/categ_Lm.h: Regenerated.
52244         * lib/unictype/categ_Lo.h: Regenerated.
52245         * lib/unictype/categ_Lu.h: Regenerated.
52246         * lib/unictype/categ_M.h: Regenerated.
52247         * lib/unictype/categ_Mc.h: Regenerated.
52248         * lib/unictype/categ_Me.h: Regenerated.
52249         * lib/unictype/categ_Mn.h: Regenerated.
52250         * lib/unictype/categ_N.h: Regenerated.
52251         * lib/unictype/categ_Nd.h: Regenerated.
52252         * lib/unictype/categ_Nl.h: Regenerated.
52253         * lib/unictype/categ_No.h: Regenerated.
52254         * lib/unictype/categ_P.h: Regenerated.
52255         * lib/unictype/categ_Pd.h: Regenerated.
52256         * lib/unictype/categ_Pe.h: Regenerated.
52257         * lib/unictype/categ_Pf.h: Regenerated.
52258         * lib/unictype/categ_Pi.h: Regenerated.
52259         * lib/unictype/categ_Po.h: Regenerated.
52260         * lib/unictype/categ_Ps.h: Regenerated.
52261         * lib/unictype/categ_S.h: Regenerated.
52262         * lib/unictype/categ_Sk.h: Regenerated.
52263         * lib/unictype/categ_Sm.h: Regenerated.
52264         * lib/unictype/categ_So.h: Regenerated.
52265         * lib/unictype/categ_of.h: Regenerated.
52266         * lib/unictype/combining.h: Regenerated.
52267         * lib/unictype/ctype_alnum.h: Regenerated.
52268         * lib/unictype/ctype_alpha.h: Regenerated.
52269         * lib/unictype/ctype_graph.h: Regenerated.
52270         * lib/unictype/ctype_lower.h: Regenerated.
52271         * lib/unictype/ctype_print.h: Regenerated.
52272         * lib/unictype/ctype_punct.h: Regenerated.
52273         * lib/unictype/ctype_upper.h: Regenerated.
52274         * lib/unictype/decdigit.h: Regenerated.
52275         * lib/unictype/digit.h: Regenerated.
52276         * lib/unictype/mirror.h: Regenerated.
52277         * lib/unictype/numeric.h: Regenerated.
52278         * lib/unictype/pr_alphabetic.h: Regenerated.
52279         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52280         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52281         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52282         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52283         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52284         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52285         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52286         * lib/unictype/pr_combining.h: Regenerated.
52287         * lib/unictype/pr_dash.h: Regenerated.
52288         * lib/unictype/pr_decimal_digit.h: Regenerated.
52289         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52290         * lib/unictype/pr_deprecated.h: Regenerated.
52291         * lib/unictype/pr_diacritic.h: Regenerated.
52292         * lib/unictype/pr_extender.h: Regenerated.
52293         * lib/unictype/pr_format_control.h: Regenerated.
52294         * lib/unictype/pr_grapheme_base.h: Regenerated.
52295         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52296         * lib/unictype/pr_grapheme_link.h: Regenerated.
52297         * lib/unictype/pr_id_continue.h: Regenerated.
52298         * lib/unictype/pr_id_start.h: Regenerated.
52299         * lib/unictype/pr_ideographic.h: Regenerated.
52300         * lib/unictype/pr_ignorable_control.h: Regenerated.
52301         * lib/unictype/pr_lowercase.h: Regenerated.
52302         * lib/unictype/pr_math.h: Regenerated.
52303         * lib/unictype/pr_numeric.h: Regenerated.
52304         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52305         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52306         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52307         * lib/unictype/pr_other_id_continue.h: Regenerated.
52308         * lib/unictype/pr_other_lowercase.h: Regenerated.
52309         * lib/unictype/pr_other_math.h: Regenerated.
52310         * lib/unictype/pr_punctuation.h: Regenerated.
52311         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52312         * lib/unictype/pr_soft_dotted.h: Regenerated.
52313         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52314         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52315         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52316         * lib/unictype/pr_uppercase.h: Regenerated.
52317         * lib/unictype/pr_xid_continue.h: Regenerated.
52318         * lib/unictype/pr_xid_start.h: Regenerated.
52319         * lib/unictype/pr_zero_width.h: Regenerated.
52320         * lib/unictype/scripts.h: Regenerated.
52321         * lib/unictype/scripts_byname.gperf: Regenerated.
52322         * lib/unictype/sy_java_ident.h: Regenerated.
52323         * lib/unilbrk/lbrkprop1.h: Regenerated.
52324         * lib/unilbrk/lbrkprop2.h: Regenerated.
52325         * tests/unictype/test-categ_C.c: Regenerated.
52326         * tests/unictype/test-categ_Cf.c: Regenerated.
52327         * tests/unictype/test-categ_Cn.c: Regenerated.
52328         * tests/unictype/test-categ_L.c: Regenerated.
52329         * tests/unictype/test-categ_Ll.c: Regenerated.
52330         * tests/unictype/test-categ_Lm.c: Regenerated.
52331         * tests/unictype/test-categ_Lo.c: Regenerated.
52332         * tests/unictype/test-categ_Lu.c: Regenerated.
52333         * tests/unictype/test-categ_M.c: Regenerated.
52334         * tests/unictype/test-categ_Mc.c: Regenerated.
52335         * tests/unictype/test-categ_Me.c: Regenerated.
52336         * tests/unictype/test-categ_Mn.c: Regenerated.
52337         * tests/unictype/test-categ_N.c: Regenerated.
52338         * tests/unictype/test-categ_Nd.c: Regenerated.
52339         * tests/unictype/test-categ_Nl.c: Regenerated.
52340         * tests/unictype/test-categ_No.c: Regenerated.
52341         * tests/unictype/test-categ_P.c: Regenerated.
52342         * tests/unictype/test-categ_Pd.c: Regenerated.
52343         * tests/unictype/test-categ_Pe.c: Regenerated.
52344         * tests/unictype/test-categ_Pf.c: Regenerated.
52345         * tests/unictype/test-categ_Pi.c: Regenerated.
52346         * tests/unictype/test-categ_Po.c: Regenerated.
52347         * tests/unictype/test-categ_Ps.c: Regenerated.
52348         * tests/unictype/test-categ_S.c: Regenerated.
52349         * tests/unictype/test-categ_Sk.c: Regenerated.
52350         * tests/unictype/test-categ_Sm.c: Regenerated.
52351         * tests/unictype/test-categ_So.c: Regenerated.
52352         * tests/unictype/test-ctype_alnum.c: Regenerated.
52353         * tests/unictype/test-ctype_alpha.c: Regenerated.
52354         * tests/unictype/test-ctype_graph.c: Regenerated.
52355         * tests/unictype/test-ctype_lower.c: Regenerated.
52356         * tests/unictype/test-ctype_print.c: Regenerated.
52357         * tests/unictype/test-ctype_punct.c: Regenerated.
52358         * tests/unictype/test-ctype_upper.c: Regenerated.
52359         * tests/unictype/test-decdigit.h: Regenerated.
52360         * tests/unictype/test-digit.h: Regenerated.
52361         * tests/unictype/test-numeric.h: Regenerated.
52362         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52363         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52364         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52365         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52366         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52367         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52369         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52370         * tests/unictype/test-pr_combining.c: Regenerated.
52371         * tests/unictype/test-pr_dash.c: Regenerated.
52372         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52373         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52374         * tests/unictype/test-pr_deprecated.c: Regenerated.
52375         * tests/unictype/test-pr_diacritic.c: Regenerated.
52376         * tests/unictype/test-pr_extender.c: Regenerated.
52377         * tests/unictype/test-pr_format_control.c: Regenerated.
52378         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52379         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52380         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52381         * tests/unictype/test-pr_id_continue.c: Regenerated.
52382         * tests/unictype/test-pr_id_start.c: Regenerated.
52383         * tests/unictype/test-pr_ideographic.c: Regenerated.
52384         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52385         * tests/unictype/test-pr_lowercase.c: Regenerated.
52386         * tests/unictype/test-pr_math.c: Regenerated.
52387         * tests/unictype/test-pr_numeric.c: Regenerated.
52388         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52389         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52390         Regenerated.
52391         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52392         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52393         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52394         * tests/unictype/test-pr_other_math.c: Regenerated.
52395         * tests/unictype/test-pr_punctuation.c: Regenerated.
52396         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52397         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52398         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52399         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52400         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52401         * tests/unictype/test-pr_uppercase.c: Regenerated.
52402         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52403         * tests/unictype/test-pr_xid_start.c: Regenerated.
52404         * tests/unictype/test-pr_zero_width.c: Regenerated.
52405
52406         Update to Unicode 5.1.0.
52407         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52408         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52409         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52410         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52411         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52412         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52413         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52414         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52415         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52416         (nonspacing_table_ind): Update.
52417         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52418
52419         Update to Unicode 5.1.0.
52420         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52421         code transform.
52422         * lib/uniname/uniname.c (unicode_character_name,
52423         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52424         * lib/uniname/uninames.h: Regenerated.
52425         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52426
52427 2009-02-07  Bruno Haible  <bruno@clisp.org>
52428
52429         Merge gen-ctype and gen-lbrk into a single program.
52430         * lib/gen-uni-tables.c: New file, incorporating
52431         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52432         Add directory prefixes to the names of the generated files.
52433         * lib/unictype/gen-ctype.c: Remove file.
52434         * lib/unilbrk/gen-lbrk.c: Remove file.
52435         * modules/gen-uni-tables: New file.
52436         * modules/unictype/gen-ctype: Remove file.
52437         * modules/unilbrk/gen-lbrk: Remove file.
52438
52439 2009-02-07  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52442
52443         New module 'unistr/u32-strcoll'.
52444         * modules/unistr/u32-strcoll: New file.
52445         * lib/unistr/u32-strcoll.c: New file.
52446
52447         New module 'unistr/u16-strcoll'.
52448         * modules/unistr/u16-strcoll: New file.
52449         * lib/unistr/u16-strcoll.c: New file.
52450
52451         New module 'unistr/u8-strcoll'.
52452         * modules/unistr/u8-strcoll: New file.
52453         * lib/unistr/u8-strcoll.c: New file.
52454         * lib/unistr/u-strcoll.h: New file.
52455
52456 2009-02-07  Bruno Haible  <bruno@clisp.org>
52457
52458         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52459         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52460         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52461         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52462         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52463         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52464
52465 2009-02-07  Bruno Haible  <bruno@clisp.org>
52466
52467         Make 64-bit clean.
52468         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52469         output_combclass, output_bidi_category, output_decimal_digit,
52470         output_digit, output_numeric, output_mirror, output_scripts,
52471         output_ident_category): Use proper width specifier in format strings.
52472
52473 2009-02-07  Bruno Haible  <bruno@clisp.org>
52474
52475         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52476         failure behaviour.
52477
52478 2009-02-07  Jim Meyering  <meyering@redhat.com>
52479
52480         regex: avoid compilation failure with upcoming gcc-4.4
52481         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52482         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52483         "... error: integer overflow in preprocessor expression".
52484
52485 2009-02-05  Ben Pfaff  <blp@gnu.org>
52486
52487         Fix link errors on Windows when close module is used.
52488         * modules/close: Add $(LIB_CLOSE) to Link section.
52489         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52490         $(LIB_CLOSE) on Windows.
52491
52492 2009-02-05  Jim Meyering  <meyering@redhat.com>
52493
52494         still avoid unused-parameter warnings, but do it cleanly
52495         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52496         (get_fs_usage): Cast to void instead.
52497         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52498         (dev_from_mount_options, read_file_system_list): Cast to void.
52499         Prompted by Bruno Haible.
52500
52501 2009-02-04  Jim Meyering  <meyering@redhat.com>
52502
52503         fsusage.c: correct copyright year
52504         * lib/fsusage.c: Reflect year in which the change is pushed into
52505
52506         avoid misc. warnings
52507         * lib/fsusage.c (UNUSED_PARAM): Define.
52508         (get_fs_usage): Mark parameter "disk" as unused.
52509         * lib/getugroups.c (getgrent): Use "void" in prototype.
52510         * lib/mountlist.c: Mark unused parameters.
52511         (read_file_system_list): Declare a local with "const".
52512         * lib/nanosleep.c (getnow): Declare static.
52513         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52514
52515         dirfd: set errno upon failure
52516         * lib/dirfd.c: Include <errno.h>.
52517         Set errno to ENOTSUP when returning -1.
52518         * modules/dirfd (Depends-on): Add errno.
52519         Suggested by John Kodis <kodis@comcast.net>.
52520
52521 2009-02-01  Bruno Haible  <bruno@clisp.org>
52522
52523         Don't assume sizeof (long) >= sizeof (void *).
52524         * lib/memcmp.c: Include stdint.h.
52525         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52526         srcp2 to 'const byte *'.
52527         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52528         types to uintptr_t.
52529         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52530         * modules/memcmp (Depends-on): Add stdint.
52531         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52532
52533 2009-01-30  Eric Blake  <ebb9@byu.net>
52534
52535         fix more require-before-expand issues
52536         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52537         expand, AC_PROG_AWK.
52538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52539
52540 2009-01-28  Eric Blake  <ebb9@byu.net>
52541
52542         version-etc: use consistent URL formatting
52543         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52544         Improve formatting.  Use fputs for string without %.
52545
52546 2009-01-28  Jim Meyering  <meyering@redhat.com>
52547
52548         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52549         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52550         "underquoted definition of NAME" from autoconf-2.59.
52551
52552 2009-01-28  Bruno Haible  <bruno@clisp.org>
52553
52554         * doc/gnulib.texi: Add "Obsolete modules" to index.
52555
52556 2009-01-28  Jim Meyering  <meyering@redhat.com>
52557
52558         useless-if-before-free: recognize more variants
52559         * build-aux/useless-if-before-free: Also recognize e.g.,
52560         if (NULL != p) free (p);
52561
52562 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52563
52564         test-getaddrinfo: skip (don't fail) this test when there's no network
52565         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52566         on the presumption that it means you lack network access.
52567
52568 2009-01-26  Jim Meyering  <meyering@redhat.com>
52569
52570         fflush: avoid warnings on modern systems
52571         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52572         pos and result, into scopes where they're used.
52573
52574 2009-01-26  Eric Blake  <ebb9@byu.net>
52575
52576         Silence warning reintroduced by recent extensions patch.
52577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52578         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52579         autoconf.
52580
52581         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52582         * m4/00gnulib.m4: New file.
52583         * gnulib-tool (func_get_filelist): Always use it.
52584         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52585         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52586
52587 2009-01-25  Bruno Haible  <bruno@clisp.org>
52588
52589         Make test-quotearg work on MacOS X and AIX.
52590         * tests/test-quotearg.sh: New file.
52591         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52592         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52593         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52594         include <libintl.h>.
52595         (fake_locale): Remove variable.
52596         (gettext, dgettext, dcgettext): Remove functions.
52597         (main): Instead of setting a fake locale, set a real locale. Call
52598         textdomain and bindtextdomain.
52599         * modules/quotearg-tests (Files): Add the new files.
52600         (Depends-on): Add gettext, setenv, unsetenv.
52601         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52602         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52603         Augment TESTS_ENVIRONMENT.
52604
52605 2009-01-25  Bruno Haible  <bruno@clisp.org>
52606
52607         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52608         fr_FR.ISO8859-1 locale on MacOS X.
52609         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52610         ja_JP.eucJP locale on MacOS X.
52611         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52612         zh_CN.GB18030 locale on MacOS X.
52613
52614 2009-01-25  Bruno Haible  <bruno@clisp.org>
52615
52616         Avoid link errors on MacOS X 10.3.
52617         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52618         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52619
52620 2009-01-25  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52623         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52624         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52625         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52626         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52627         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52628         posix_spawnattr_init, posix_spawnattr_setsigmask,
52629         posix_spawnattr_setflags, posix_spawnattr_destroy.
52630
52631         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52632         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52633         * modules/execute (Files): Remove m4/posix_spawn.m4.
52634         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52635         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52636         posix_spawnattr_init, posix_spawnattr_setsigmask,
52637         posix_spawnattr_setflags, posix_spawnattr_destroy.
52638
52639 2009-01-25  Bruno Haible  <bruno@clisp.org>
52640
52641         * lib/glthread/threadlib.c: Include <stdlib.h>.
52642
52643 2009-01-25  Bruno Haible  <bruno@clisp.org>
52644
52645         * lib/glthread/threadlib.c (dummy): New declaration.
52646
52647 2009-01-25  Bruno Haible  <bruno@clisp.org>
52648
52649         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52650         multibyte characters also for the GB18030 encoding. Don't crash when
52651         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52652
52653 2009-01-25  Bruno Haible  <bruno@clisp.org>
52654
52655         Avoid redefining 'struct random_data' on OSF/1 5.1.
52656         * lib/stdlib.in.h: Include <random.h> if it exists.
52657         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52658         HAVE_RANDOM_H. Include <random.h> when testing whether
52659         'struct random_data' exists.
52660         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52661
52662 2009-01-25  Bruno Haible  <bruno@clisp.org>
52663
52664         Don't install charset.alias on MacOS X >= 10.3.
52665         * lib/localcharset.c (DARWIN7): New macro.
52666         (get_charset_aliases): Hardcode the result for Darwin7.
52667         * modules/localcharset (install-exec-local): Don't install
52668         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52669
52670 2009-01-25  Bruno Haible  <bruno@clisp.org>
52671
52672         Don't install charset.alias on mingw and Cygwin.
52673         * modules/localcharset (install-exec-local): Don't install
52674         charset.alias on mingw and Cygwin, if the file does not yet exist.
52675         The result for these platforms is hardcoded in localcharset.c.
52676
52677 2009-01-25  Bruno Haible  <bruno@clisp.org>
52678
52679         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52681         before requiring AC_USE_SYSTEM_EXTENSIONS.
52682
52683 2009-01-25  Jim Meyering  <meyering@redhat.com>
52684
52685         c-strtod: avoid warnings
52686         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52687         "assignment discards qualifiers from pointer target type" warnings.
52688
52689 2009-01-24  Bruno Haible  <bruno@clisp.org>
52690
52691         Add support for non-UTF-8 locales on MacOS X.
52692         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52693         canonical encodings. For Darwin 7 and newer, don't map traditional
52694         encodings to UTF-8.
52695         Reported by Vincent Lefevre <vincent@vinc17.org>
52696         at <http://savannah.gnu.org/bugs/?25235>.
52697
52698 2009-01-24  Bruno Haible  <bruno@clisp.org>
52699
52700         * doc/gnulib.texi (Obsolete modules): New section.
52701         Reported by Mike Frysinger <vapier@gentoo.org>.
52702
52703 2009-01-24  Bruno Haible  <bruno@clisp.org>
52704
52705         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52706         (%.dvi): New rule.
52707
52708 2009-01-24  Bruno Haible  <bruno@clisp.org>
52709
52710         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52711         Reported by Eric Blake.
52712
52713 2009-01-24  Bruno Haible  <bruno@clisp.org>
52714
52715         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52716         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52717         Reported by Gary V. Vaughan <gary@gnu.org>.
52718
52719 2009-01-24  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52722
52723 2009-01-23  Bruno Haible  <bruno@clisp.org>
52724
52725         Make c-strtod, c-strtold usable in libraries.
52726         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52727         (C_STRTOD): Call strdup instead of xstrdup.
52728         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52729         * modules/c-strtold (Depends-on): Likewise.
52730         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52731         * NEWS: Mention the change.
52732         Reported by Michael Gold <mgold@ncf.ca>.
52733
52734 2009-01-23  Jim Meyering  <meyering@redhat.com>
52735
52736         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52737         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52738         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52739
52740 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52741
52742         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52743         GNU CoreUtils.
52744         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52745         * modules/version-etc (Description): Update.
52746
52747 2009-01-22  Bruno Haible  <bruno@clisp.org>
52748
52749         Cache the C locale object.
52750         * lib/c-strtod.c (c_locale_cache): New variable.
52751         (c_locale): New function.
52752         (C_STRTOD): Use it, and don't call freelocale.
52753         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52754         Suggested by Paolo Bonzini.
52755
52756 2009-01-21  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52759         conditions other than overflow.
52760
52761 2009-01-21  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/c-strtod.c: Include errno.h.
52764         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52765         value from STRTOD_L and STRTOD.
52766
52767 2009-01-21  Bruno Haible  <bruno@clisp.org>
52768         and Jim Meyering  <meyering@redhat.com>
52769
52770         nanosleep: skip configure test (fail it) for apple universal builds
52771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52772         universal builds, assume that nanosleep does not work.
52773         * modules/nanosleep (Depends-on): Add multiarch.
52774
52775         mktime: skip configure test (fail it) for apple universal builds
52776         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52777         universal builds, assume that mktime does not work.
52778         * modules/mktime (Depends-on): Add multiarch.
52779
52780 2009-01-21  Eric Blake  <ebb9@byu.net>
52781
52782         multiarch: avoid expand-before-require warning
52783         * modules/multiarch (configure.ac): Require, rather than expand,
52784         gl_MULTIARCH.
52785         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52786         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52787         enforce that all clients require it.  Partial reversion of
52788         2008-12-29 patch.
52789
52790         error: avoid expand-before-require warning
52791         * modules/errno (configure.ac): Require, rather than expand,
52792         gl_HEADER_ERRNO_H.
52793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52794         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52795         enforce that all clients require it.
52796
52797         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52798         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52799         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52800         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52801
52802 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52803
52804         Revert:
52805         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52806
52807         regex: do not depend on obsolete modules.
52808         * modules/regex: Remove memcmp and memmove.
52809
52810 2009-01-20  Bruno Haible  <bruno@clisp.org>
52811
52812         Make the 'link' module link on Windows NT 4.
52813         * lib/link.c (_WIN32_WINNT): Don't define.
52814         (CreateHardLinkFuncType): New type.
52815         (CreateHardLinkFunc, initialized): New variables.
52816         (initialize): New function.
52817         (link): Invoke CreateHardLink indirectly through the function pointer.
52818
52819 2009-01-20  Bruno Haible  <bruno@clisp.org>
52820
52821         Fix compilation failure on mingw.
52822         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52823
52824 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52825
52826         * doc/c-strtod.texi: Mention a couple of restrictions.
52827
52828 2009-01-20  Jim Meyering  <meyering@redhat.com>
52829
52830         gettimeofday: move more declarations out of functions
52831         * lib/gettimeofday.c: Move extern declarations of tzset and
52832         gmtime out of containing functions.  Prompted by Bruno Haible.
52833
52834 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52835
52836         regex: do not depend on obsolete modules.
52837         * modules/regex: Remove memcmp and memmove.
52838
52839 2009-01-19  Bruno Haible  <bruno@clisp.org>
52840
52841         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52842         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52843         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52844         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52845         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52846
52847 2009-01-19  Bruno Haible  <bruno@clisp.org>
52848
52849         * tests/test-link.c: Include <errno.h>.
52850         (main): Exit with code 77 when a hard link cannot be created due to
52851         the file system.
52852         * tests/test-link.sh: Skip test when a hard link cannot be created due
52853         to the file system.
52854         Suggested by Eric Blake.
52855
52856 2009-01-19  Martin Lambers  <marlam@marlam.de>
52857
52858         * modules/link-tests: New file.
52859         * tests/test-link.sh: New file.
52860         * tests/test-link.c: New file.
52861
52862 2009-01-19  Eric Blake  <ebb9@byu.net>
52863
52864         doc: mention another function added in cygwin 1.7.0
52865         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52866         Another new function in cygwin 1.7.
52867
52868 2009-01-19  Bruno Haible  <bruno@clisp.org>
52869
52870         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52871         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52872         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52873         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52874         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52875         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52877         * m4/md4.m4 (gl_MD4): Likewise.
52878         * m4/md5.m4 (gl_MD5): Likewise.
52879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52880         * m4/sha1.m4 (gl_SHA1): Likewise.
52881         * m4/sha256.m4 (gl_SHA256): Likewise.
52882         * m4/sha512.m4 (gl_SHA512): Likewise.
52883
52884 2009-01-19  Bruno Haible  <bruno@clisp.org>
52885
52886         * modules/uniname/uniname-tests (Depends-on): Add progname.
52887         * tests/uniname/test-uninames.c: Include progname.h.
52888         (main): Call set_program_name.
52889
52890         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52891         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52892         (main): Call set_program_name.
52893
52894         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52895         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52896         (main): Call set_program_name.
52897
52898         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52899         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52900         (main): Call set_program_name.
52901
52902         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52903         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52904         (main): Call set_program_name.
52905
52906         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52907         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52908         (main): Call set_program_name.
52909
52910         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52911         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52912         (main): Call set_program_name.
52913
52914         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52915         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52916         (main): Call set_program_name.
52917
52918         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52919         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52920         (main): Call set_program_name.
52921
52922 2009-01-19  Eric Blake  <ebb9@byu.net>
52923
52924         test-unistd: test previous patch
52925         * tests/test-unistd.c: Test *_FILENO macros.
52926
52927         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52928         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52929         Guarantee a definition.
52930         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52931         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52932         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52933         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52934         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52935         Likewise.
52936         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52937         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52938         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52939         Likewise.
52940         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52941         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52942         (STDERR_FILENO): Likewise.
52943         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52944         (STDERR_FILENO): Likewise.
52945         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52946         (STDERR_FILENO): Likewise.
52947         Reported by Elbert Pol.
52948
52949 2009-01-19  Eric Blake  <ebb9@byu.net>
52950
52951         doc: mention more functions added in cygwin 1.7.0
52952         * doc/posix-functions/abort.texi (abort): Update wording related
52953         to cygwin.
52954         * doc/posix-functions/daylight.texi (daylight): Likewise.
52955         * doc/posix-functions/optarg.texi (optarg): Likewise.
52956         * doc/posix-functions/optarg.texi (opterr): Likewise.
52957         * doc/posix-functions/optarg.texi (optind): Likewise.
52958         * doc/posix-functions/optarg.texi (optopt): Likewise.
52959         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52960         worked in 1.5.x, and was withdrawn in 1.7.
52961         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52962         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52963         cygwin versions.
52964         * doc/posix-functions/perror.texi (perror): Likewise.
52965         * doc/posix-functions/printf.texi (printf): Likewise.
52966         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52967         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52968         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52969         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52970         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52971         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52972         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52973         Likewise.
52974         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52975         Likewise.
52976         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52977         this function.
52978         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52979         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52980         Likewise.
52981         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52982         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52983         * doc/posix-functions/confstr.texi (confstr): Likewise.
52984         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52985         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52986         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52987         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52988         * doc/posix-functions/fputws.texi (fputws): Likewise.
52989         * doc/posix-functions/fwide.texi (fwide): Likewise.
52990         * doc/posix-functions/getwc.texi (getwc): Likewise.
52991         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52992         * doc/posix-functions/putwc.texi (putwc): Likewise.
52993         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52994         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52995         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52996         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52997         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52998         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52999         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53000         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53001         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53002         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53003         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53004
53005 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53006
53007         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53008         * lib/ioctl.c: Include <sys/ioctl.h>.
53009
53010 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53011
53012         * modules/getdate-tests (Depends-on): Add progname.
53013         * tests/test-getdate.c: Use progname module, to avoid link errors
53014         on non-glibc systems.
53015
53016 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53017
53018         * modules/filenamecat-tests (Depends-on): Add progname.
53019         * modules/fstrcmp-tests (Depends-on): Likewise.
53020
53021         * tests/test-filenamecat.c: Use progname module, to avoid link
53022         errors on non-glibc systems.
53023         * tests/test-fstrcmp.c: Likewise.
53024
53025 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53026
53027         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53028         * lib/gettimeofday.c: Move extern declaration out of function.
53029
53030 2009-01-18  Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53033         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53034         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53035
53036 2009-01-18  Bruno Haible  <bruno@clisp.org>
53037
53038         * lib/strftime.c (MEMPCPY): Remove unused macro.
53039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53040
53041 2009-01-18  Martin Lambers  <marlam@marlam.de>
53042
53043         New module 'link'.
53044         * lib/unistd.in.h (link): New declaration.
53045         * lib/link.c: New file.
53046         * m4/link.m4: New file.
53047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53048         HAVE_LINK.
53049         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53050         * modules/link: New file.
53051         * doc/posix-functions/link.texi: Mention the new module.
53052
53053 2009-01-18  Bruno Haible  <bruno@clisp.org>
53054
53055         * tests/test-avltree_list.c (main): Call set_program_name.
53056         * tests/test-avltree_oset.c (main): Likewise.
53057         * tests/test-obstack-printf.c: Include progname.h.
53058         (main): Call set_program_name.
53059         * tests/test-quotearg.c: Include progname.h.
53060         (main): Call set_program_name.
53061         * tests/test-xmemdup0.c: Include progname.h.
53062         (main): Call set_program_name.
53063
53064 2009-01-18  Bruno Haible  <bruno@clisp.org>
53065
53066         New module 'alphasort'.
53067         * lib/dirent.in.h (alphasort): New declaration.
53068         * lib/alphasort.c: New file, from glibc with modifications.
53069         * m4/alphasort.m4: New file.
53070         * modules/alphasort: New file.
53071         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53072         HAVE_ALPHASORT.
53073         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53074         HAVE_ALPHASORT.
53075         * doc/posix-functions/alphasort.texi: Mention the new module and the
53076         portability problems.
53077
53078 2009-01-18  Bruno Haible  <bruno@clisp.org>
53079
53080         New module 'scandir'.
53081         * lib/dirent.in.h (scandir): New declaration.
53082         * lib/scandir.c: New file, from glibc with modifications.
53083         * m4/scandir.m4: New file.
53084         * modules/scandir: New file.
53085         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53086         HAVE_SCANDIR.
53087         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53088         HAVE_SCANDIR.
53089         * doc/posix-functions/scandir.texi: Mention the new module and the
53090         portability problems.
53091
53092 2009-01-17  Bruno Haible  <bruno@clisp.org>
53093
53094         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53095         Update documentation.
53096         (func_remove_suffix): Escape all dots in the suffix. Update
53097         documentation.
53098         (func_filter_filelist): Update documentation.
53099         Reported by Ralf Wildenhues.
53100
53101 2009-01-17  Bruno Haible  <bruno@clisp.org>
53102
53103         * modules/dprintf-posix-tests: New file.
53104         * tests/test-dprintf-posix.sh: New file.
53105         * tests/test-dprintf-posix.c: New file.
53106
53107         New modules 'dprintf', 'dprintf-posix'.
53108         * lib/stdio.in.h (dprintf): New declaration.
53109         * lib/dprintf.c: New file.
53110         * m4/dprintf.m4: New file.
53111         * m4/dprintf-posix.m4: New file.
53112         * modules/dprintf: New file.
53113         * modules/dprintf-posix: New file.
53114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53115         HAVE_DPRINTF, REPLACE_DPRINTF.
53116         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53117         HAVE_DPRINTF, REPLACE_DPRINTF.
53118         * doc/posix-functions/dprintf.texi: Mention the new modules.
53119
53120 2009-01-17  Bruno Haible  <bruno@clisp.org>
53121
53122         * modules/vdprintf-posix-tests: New file.
53123         * tests/test-vdprintf-posix.sh: New file.
53124         * tests/test-vdprintf-posix.c: New file.
53125
53126         New modules 'vdprintf', 'vdprintf-posix'.
53127         * lib/stdio.in.h (vdprintf): New declaration.
53128         * lib/vdprintf.c: New file.
53129         * m4/vdprintf.m4: New file.
53130         * m4/vdprintf-posix.m4: New file.
53131         * modules/vdprintf: New file.
53132         * modules/vdprintf-posix: New file.
53133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53134         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53135         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53136         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53137         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53138
53139 2009-01-17  Bruno Haible  <bruno@clisp.org>
53140
53141         Fix replacement of fopen on mingw.
53142         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53143         mingw.
53144
53145 2009-01-17  Bruno Haible  <bruno@clisp.org>
53146
53147         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53148         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53149
53150 2009-01-17  Bruno Haible  <bruno@clisp.org>
53151
53152         Avoid test-fflush2.sh failure on mingw.
53153         * tests/test-fflush2.c: Include binary-io.h.
53154         (main): Put standard input into binary mode.
53155         * modules/fflush-tests (Depends-on): Add binary-io.
53156
53157 2009-01-17  Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/wchar.in.h: In another particular situation, include only the
53160         system's <wchar.h> file.
53161         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53162         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53163         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53164
53165 2009-01-17  Bruno Haible  <bruno@clisp.org>
53166
53167         Support for stripping executables in --enable-relocatable.
53168         * build-aux/install-reloc: Expect one more argument, or an environment
53169         variable RELOC_STRIP_PROG. If set, strip the destination program and
53170         its wrapper.
53171         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53172         RELOC_STRIP_PROG.
53173         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53174         to set RELOCATABLE_STRIP.
53175         * NEWS: Mention the new Makefile requirement.
53176
53177 2009-01-17  Bruno Haible  <bruno@clisp.org>
53178
53179         * build-aux/install-reloc: Remove debugging information left over by
53180         C compiler on MacOS X.
53181
53182 2009-01-17  Bruno Haible  <bruno@clisp.org>
53183
53184         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53185         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53186         _NSGetExecutablePath.
53187
53188 2009-01-16  Jim Meyering  <meyering@redhat.com>
53189
53190         strerror: avoid warnings about discarding "const"
53191         * lib/strerror.c (rpl_strerror): Instead of returning a const
53192         string from each and every "case", use a variable, and add a single
53193         cast after the switch.
53194
53195 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53196
53197         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53198
53199 2009-01-16  Bruno Haible  <bruno@clisp.org>
53200
53201         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53202         array initializer syntax that also works in C++ mode.
53203         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53204
53205 2009-01-16  Jim Meyering  <meyering@redhat.com>
53206
53207         poll: suppress a warning
53208         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53209         to ignore "...unsigned expression < 0 is always false" warnings.
53210
53211 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53212
53213         poll: remove declarations of unused variables
53214         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53215         sockbuf and optlen.
53216
53217 2009-01-15  Bruno Haible  <bruno@clisp.org>
53218
53219         Make fflush-after-ungetc POSIX compliant on BSD systems.
53220         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53221         (clear_ungetc_buffer): Implement also for other systems.
53222         (rpl_fflush): On glibc systems, invoke
53223         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53224         clear_ungetc_buffer after fetching the stream's position, not before.
53225
53226 2009-01-15  Bruno Haible  <bruno@clisp.org>
53227
53228         Make fflush-after-ungetc POSIX compliant on glibc systems.
53229         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53230         after ungetc.
53231         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53232         (rpl_fflush): On glibc systems, simply call the system's fflush
53233         function after clearing the ungetc buffer.
53234         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53235         Instead, lseek only to the end of file, then use the system's fseeko
53236         for the rest. On glibc systems, reset the EOF indicator bit.
53237
53238 2009-01-15  Jim Meyering  <meyering@redhat.com>
53239
53240         openmp.m4: revert quote-adding change, for portability to older autoconf
53241         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53242         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53243         Simon Josefsson noticed the problem when using autoconf-2.61.
53244
53245 2009-01-15  Bruno Haible  <bruno@clisp.org>
53246
53247         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53248         * tests/test-fflush2.c (ASSERT): Always fail.
53249         (main): Add two tests for fflush() after ungetc(), taking into account
53250         the Austin Group's clarification.
53251         Suggested by Eric Blake.
53252
53253 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53254
53255         mktime.m4: remove K&R-style function prototypes
53256         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53257         for the Sun C++ compiler.
53258
53259 2009-01-14  Bruno Haible  <bruno@clisp.org>
53260
53261         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53262         while including <wchar.h>.
53263         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53264         the system's <wchar.h> file.
53265         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53266
53267 2009-01-14  Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/csharp.m4: Don't mention gettext on the serial number line.
53270         * m4/csharpexec.m4: Likewise.
53271         * m4/eaccess.m4: Likewise.
53272         * m4/javaexec.m4: Likewise.
53273         * m4/sig_atomic_t.m4: Likewise.
53274         * m4/tmpdir.m4: Likewise.
53275         * m4/intldir.m4: Bump gettext version.
53276         * m4/lib-ld.m4: Likewise.
53277
53278 2009-01-14  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/progname.c (set_program_name): Add more comments.
53281         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53282
53283 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53284
53285         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53286         were sys/stat.h does not define it.
53287
53288 2009-01-14  Jim Meyering  <meyering@redhat.com>
53289
53290         many *.m4 files: improve m4 quoting
53291         99% of this change was performed by running the following commands:
53292         git ls-files | grep '\.m4$' | xargs perl -pi \
53293           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53294           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53295           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53296           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53297         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53298         The remainder were to add Copyright dates, increment serial numbers,
53299         undo some changes in comments, exclude m4/intl.m4, and add quotes
53300         around the "1" in ",1" where the unusual spacing prohibited the
53301         above regexps from doing the job.  For more details, see
53302         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53303         * m4/acl.m4: Modified.
53304         * m4/afs.m4: Likewise.
53305         * m4/alloca.m4: Likewise.
53306         * m4/argp.m4: Likewise.
53307         * m4/argz.m4: Likewise.
53308         * m4/atexit.m4: Likewise.
53309         * m4/bison-i18n.m4: Likewise.
53310         * m4/bison.m4: Likewise.
53311         * m4/byteswap.m4: Likewise.
53312         * m4/c-stack.m4: Likewise.
53313         * m4/c-strtod.m4: Likewise.
53314         * m4/calloc.m4: Likewise.
53315         * m4/canonicalize-lgpl.m4: Likewise.
53316         * m4/chown.m4: Likewise.
53317         * m4/clock_time.m4: Likewise.
53318         * m4/codeset.m4: Likewise.
53319         * m4/copy-file.m4: Likewise.
53320         * m4/csharp.m4: Likewise.
53321         * m4/csharpcomp.m4: Likewise.
53322         * m4/csharpexec.m4: Likewise.
53323         * m4/d-ino.m4: Likewise.
53324         * m4/d-type.m4: Likewise.
53325         * m4/dirfd.m4: Likewise.
53326         * m4/double-slash-root.m4: Likewise.
53327         * m4/eaccess.m4: Likewise.
53328         * m4/eealloc.m4: Likewise.
53329         * m4/environ.m4: Likewise.
53330         * m4/errno_h.m4: Likewise.
53331         * m4/euidaccess.m4: Likewise.
53332         * m4/execute.m4: Likewise.
53333         * m4/fatal-signal.m4: Likewise.
53334         * m4/fchdir.m4: Likewise.
53335         * m4/fcntl_h.m4: Likewise.
53336         * m4/fileblocks.m4: Likewise.
53337         * m4/filenamecat.m4: Likewise.
53338         * m4/findprog.m4: Likewise.
53339         * m4/flexmember.m4: Likewise.
53340         * m4/fnmatch.m4: Likewise.
53341         * m4/fopen.m4: Likewise.
53342         * m4/fpending.m4: Likewise.
53343         * m4/fprintf-posix.m4: Likewise.
53344         * m4/free.m4: Likewise.
53345         * m4/frexp.m4: Likewise.
53346         * m4/frexpl.m4: Likewise.
53347         * m4/fsusage.m4: Likewise.
53348         * m4/ftruncate.m4: Likewise.
53349         * m4/gc-camellia.m4: Likewise.
53350         * m4/gc-random.m4: Likewise.
53351         * m4/gc.m4: Likewise.
53352         * m4/getaddrinfo.m4: Likewise.
53353         * m4/getcwd-abort-bug.m4: Likewise.
53354         * m4/getcwd-path-max.m4: Likewise.
53355         * m4/getdate.m4: Likewise.
53356         * m4/getdomainname.m4: Likewise.
53357         * m4/getgroups.m4: Likewise.
53358         * m4/gethostname.m4: Likewise.
53359         * m4/gethrxtime.m4: Likewise.
53360         * m4/getline.m4: Likewise.
53361         * m4/getloadavg.m4: Likewise.
53362         * m4/getndelim2.m4: Likewise.
53363         * m4/getpass.m4: Likewise.
53364         * m4/gettext.m4: Likewise.
53365         * m4/gettime.m4: Likewise.
53366         * m4/gettimeofday.m4: Likewise.
53367         * m4/gnulib-common.m4: Likewise.
53368         * m4/group-member.m4: Likewise.
53369         * m4/host-os.m4: Likewise.
53370         * m4/iconv.m4: Likewise.
53371         * m4/iconv_open.m4: Likewise.
53372         * m4/inet_ntop.m4: Likewise.
53373         * m4/inet_pton.m4: Likewise.
53374         * m4/inline.m4: Likewise.
53375         * m4/intldir.m4: Likewise.
53376         * m4/intlmacosx.m4: Likewise.
53377         * m4/intmax.m4: Likewise.
53378         * m4/intmax_t.m4: Likewise.
53379         * m4/inttypes.m4: Likewise.
53380         * m4/inttypes_h.m4: Likewise.
53381         * m4/inttypes-pri.m4: Likewise.
53382         * m4/isapipe.m4: Likewise.
53383         * m4/isnand.m4: Likewise.
53384         * m4/isnanf.m4: Likewise.
53385         * m4/isnanl.m4: Likewise.
53386         * m4/javacomp.m4: Likewise.
53387         * m4/javaexec.m4: Likewise.
53388         * m4/jm-winsz1.m4: Likewise.
53389         * m4/jm-winsz2.m4: Likewise.
53390         * m4/lchown.m4: Likewise.
53391         * m4/lcmessage.m4: Likewise.
53392         * m4/ldexpl.m4: Likewise.
53393         * m4/lib-ld.m4: Likewise.
53394         * m4/lib-link.m4: Likewise.
53395         * m4/libsigsegv.m4: Likewise.
53396         * m4/link-follow.m4: Likewise.
53397         * m4/localcharset.m4: Likewise.
53398         * m4/locale-fr.m4: Likewise.
53399         * m4/locale-ja.m4: Likewise.
53400         * m4/locale-tr.m4: Likewise.
53401         * m4/locale-zh.m4: Likewise.
53402         * m4/lock.m4: Likewise.
53403         * m4/longlong.m4: Likewise.
53404         * m4/ls-mntd-fs.m4: Likewise.
53405         * m4/lstat.m4: Likewise.
53406         * m4/malloc.m4: Likewise.
53407         * m4/mathl.m4: Likewise.
53408         * m4/mbrtowc.m4: Likewise.
53409         * m4/mbstate_t.m4: Likewise.
53410         * m4/mbswidth.m4: Likewise.
53411         * m4/memchr.m4: Likewise.
53412         * m4/memcmp.m4: Likewise.
53413         * m4/memcpy.m4: Likewise.
53414         * m4/memmem.m4: Likewise.
53415         * m4/memmove.m4: Likewise.
53416         * m4/mempcpy.m4: Likewise.
53417         * m4/memrchr.m4: Likewise.
53418         * m4/memset.m4: Likewise.
53419         * m4/minmax.m4: Likewise.
53420         * m4/mkdir-slash.m4: Likewise.
53421         * m4/mkdtemp.m4: Likewise.
53422         * m4/mktime.m4: Likewise.
53423         * m4/mmap-anon.m4: Likewise.
53424         * m4/mountlist.m4: Likewise.
53425         * m4/nanosleep.m4: Likewise.
53426         * m4/nls.m4: Likewise.
53427         * m4/nocrash.m4: Likewise.
53428         * m4/open.m4: Likewise.
53429         * m4/openat.m4: Likewise.
53430         * m4/openmp.m4: Likewise.
53431         * m4/pathmax.m4: Likewise.
53432         * m4/perl.m4: Likewise.
53433         * m4/physmem.m4: Likewise.
53434         * m4/pipe.m4: Likewise.
53435         * m4/po.m4: Likewise.
53436         * m4/poll.m4: Likewise.
53437         * m4/posixtm.m4: Likewise.
53438         * m4/posixver.m4: Likewise.
53439         * m4/printf-frexp.m4: Likewise.
53440         * m4/printf-frexpl.m4: Likewise.
53441         * m4/printf-posix.m4: Likewise.
53442         * m4/printf-posix-rpl.m4: Likewise.
53443         * m4/printf.m4: Likewise.
53444         * m4/progtest.m4: Likewise.
53445         * m4/putenv.m4: Likewise.
53446         * m4/readline.m4: Likewise.
53447         * m4/readlink.m4: Likewise.
53448         * m4/readutmp.m4: Likewise.
53449         * m4/realloc.m4: Likewise.
53450         * m4/regex.m4: Likewise.
53451         * m4/relocatable.m4: Likewise.
53452         * m4/relocatable-lib.m4: Likewise.
53453         * m4/rename-dest-slash.m4: Likewise.
53454         * m4/rename.m4: Likewise.
53455         * m4/rmdir-errno.m4: Likewise.
53456         * m4/rmdir.m4: Likewise.
53457         * m4/roundf.m4: Likewise.
53458         * m4/roundl.m4: Likewise.
53459         * m4/rpmatch.m4: Likewise.
53460         * m4/save-cwd.m4: Likewise.
53461         * m4/selinux-selinux-h.m4: Likewise.
53462         * m4/setenv.m4: Likewise.
53463         * m4/settime.m4: Likewise.
53464         * m4/sig2str.m4: Likewise.
53465         * m4/sig_atomic_t.m4: Likewise.
53466         * m4/signalblocking.m4: Likewise.
53467         * m4/signbit.m4: Likewise.
53468         * m4/sigpipe.m4: Likewise.
53469         * m4/sockets.m4: Likewise.
53470         * m4/sockpfaf.m4: Likewise.
53471         * m4/st_dm_mode.m4: Likewise.
53472         * m4/stat-time.m4: Likewise.
53473         * m4/stdbool.m4: Likewise.
53474         * m4/stdint.m4: Likewise.
53475         * m4/stdint_h.m4: Likewise.
53476         * m4/stpcpy.m4: Likewise.
53477         * m4/stpncpy.m4: Likewise.
53478         * m4/strcase.m4: Likewise.
53479         * m4/strchrnul.m4: Likewise.
53480         * m4/strcspn.m4: Likewise.
53481         * m4/strdup.m4: Likewise.
53482         * m4/strftime.m4: Likewise.
53483         * m4/strndup.m4: Likewise.
53484         * m4/strnlen.m4: Likewise.
53485         * m4/strpbrk.m4: Likewise.
53486         * m4/strptime.m4: Likewise.
53487         * m4/strsep.m4: Likewise.
53488         * m4/strtod.m4: Likewise.
53489         * m4/strtoimax.m4: Likewise.
53490         * m4/strtok_r.m4: Likewise.
53491         * m4/strtol.m4: Likewise.
53492         * m4/strtoll.m4: Likewise.
53493         * m4/strtoul.m4: Likewise.
53494         * m4/strtoull.m4: Likewise.
53495         * m4/strtoumax.m4: Likewise.
53496         * m4/strverscmp.m4: Likewise.
53497         * m4/threadlib.m4: Likewise.
53498         * m4/timegm.m4: Likewise.
53499         * m4/tm_gmtoff.m4: Likewise.
53500         * m4/tmpdir.m4: Likewise.
53501         * m4/tmpfile.m4: Likewise.
53502         * m4/tzset.m4: Likewise.
53503         * m4/uintmax_t.m4: Likewise.
53504         * m4/unlinkdir.m4: Likewise.
53505         * m4/unlocked-io.m4: Likewise.
53506         * m4/uptime.m4: Likewise.
53507         * m4/userspec.m4: Likewise.
53508         * m4/utimbuf.m4: Likewise.
53509         * m4/utime.m4: Likewise.
53510         * m4/utimes-null.m4: Likewise.
53511         * m4/utimes.m4: Likewise.
53512         * m4/vararrays.m4: Likewise.
53513         * m4/vasnprintf.m4: Likewise.
53514         * m4/vfprintf-posix.m4: Likewise.
53515         * m4/vprintf-posix.m4: Likewise.
53516         * m4/wait-process.m4: Likewise.
53517         * m4/wchar_t.m4: Likewise.
53518         * m4/wint_t.m4: Likewise.
53519         * m4/write-any-file.m4: Likewise.
53520         * m4/yield.m4: Likewise.
53521
53522 2009-01-13  Bruno Haible  <bruno@clisp.org>
53523
53524         Avoid test-copy-file.sh failures when ACL support insufficient.
53525         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53526         TESTS_ENVIRONMENT.
53527         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53528         Reported by Jim Meyering.
53529
53530 2009-01-13  Bruno Haible  <bruno@clisp.org>
53531
53532         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53533         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53534         * modules/unistdio/u8-printf-parse (Files): Likewise.
53535         * modules/unistdio/u32-printf-parse (Files): Likewise.
53536         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53537
53538 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53539
53540         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53541         and m4/inttypes_h.m4 too.
53542
53543 2009-01-12  Eric Blake  <ebb9@byu.net>
53544
53545         tests: IRIX 6.2 cc can't compile -0.0 into .data
53546         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53547         rather than at compile-time.
53548         * tests/test-floorl.c (minus_zero): Likewise.
53549         * tests/test-frexpl.c (minus_zero): Likewise.
53550         * tests/test-isnan.c (minus_zerol): Likewise.
53551         * tests/test-isnanl.h (minus_zero): Likewise.
53552         * tests/test-ldexpl.c (minus_zero): Likewise.
53553         * tests/test-roundl.c (minus_zero): Likewise.
53554         * tests/test-signbit.c (minus_zerol): Likewise.
53555         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53556         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53557         * tests/test-truncl.c (minus_zero): Likewise.
53558         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53559         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53560         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53561
53562 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53563
53564         regex: fix glibc bug 9697
53565         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53566         handling.
53567
53568 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53569
53570         regex: fix glibc bug 697
53571         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53572         being NULL also if there are no backreferences.
53573
53574 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53575
53576         regex: merge glibc changes
53577         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53578         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53579         re_string_skip_chars, re_string_reconstruct): Likewise.
53580         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53581
53582 2009-01-07  Jim Meyering  <meyering@redhat.com>
53583
53584         poll: filter through cppi
53585         * lib/poll.c: Indent cpp directives to reflect nesting.
53586
53587 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53588
53589         poll: don't return uninitialized
53590         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53591
53592 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53593
53594         avoid compile failure on AIX 6.1
53595         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53596         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53597
53598 2009-01-04  Jim Meyering  <meyering@redhat.com>
53599
53600         remove duplicate inclusion of <stdio.h>
53601         * tests/test-fprintf-posix.c: Likewise.
53602         * tests/test-printf-posix.c: Likewise.
53603         * tests/test-snprintf-posix.c: Likewise.
53604         * tests/test-sprintf-posix.c: Likewise.
53605         * tests/test-vasprintf-posix.c: Likewise.
53606         * tests/test-vfprintf-posix.c: Likewise.
53607         * tests/test-vprintf-posix.c: Likewise.
53608         * tests/test-vsnprintf-posix.c: Likewise.
53609         * tests/test-vsprintf-posix.c: Likewise.
53610
53611 2009-01-03  Jim Meyering  <meyering@redhat.com>
53612
53613         gnulib-tool: fix sed-based filtering
53614         * gnulib-tool (func_filter_filelist): Remove extra backslash
53615         in sed_fff_filter definition.
53616
53617 2009-01-02  Jim Meyering  <meyering@redhat.com>
53618
53619         strftime: avoid compilation failure on Solaris 2.6
53620         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53621         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53622         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53623         be available.  Reported by Tom G. Christensen.  Details in
53624         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53625
53626 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53627             Bruno Haible  <bruno@clisp.org>
53628
53629         Speed up gnulib-tool by doing more string processing through shell
53630         built-ins.
53631         * gnulib-tool (fast_func_append): New variable.
53632         (func_remove_prefix, func_remove_suffix): New functions.
53633         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53634         (func_filter_filelist): New function.
53635         (func_get_dependencies): Use func_remove_suffix instead of sed.
53636         (func_get_automake_snippet): Use func_filter_filelist instead of a
53637         subshell and sed invocation.
53638
53639 2009-01-01  Bruno Haible  <bruno@clisp.org>
53640
53641         Fix a security bug.
53642         * gnulib-tool (func_import, import, update): Don't allow the characters
53643         '"', '$', '`', '\' in macro arguments that become part of commands that
53644         are evaluated.
53645
53646 2009-01-01  Bruno Haible  <bruno@clisp.org>
53647
53648         * gnulib-tool (func_reset_sigpipe): Add more comments.
53649
53650 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53651
53652         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53653         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53654         already know the answer.
53655
53656 2009-01-01  Jim Meyering  <meyering@redhat.com>
53657
53658         * lib/version-etc.c (version_etc_va): Update copyright year.
53659
53660 2008-12-30  Bruno Haible  <bruno@clisp.org>
53661
53662         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53663         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53664         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53665
53666 2008-12-29  Eric Blake  <ebb9@byu.net>
53667
53668         multiarch: avoid autoconf AC_REQUIRE bug
53669         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53670         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53671         2.63 and older.
53672         Reported by Bruno Haible, and analyzed in
53673         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53674
53675 2008-12-29  Bruno Haible  <bruno@clisp.org>
53676
53677         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53678         files in subdirectories correctly.
53679         Reported by Ralf Wildenhues.
53680
53681 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53682
53683         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53684         rather than 'join FILE -', for Solaris join.
53685
53686 2008-12-29  Bruno Haible  <bruno@clisp.org>
53687
53688         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53689         quoting.
53690         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53691         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53692         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53693         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53694         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53695         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53696         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53697         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53698         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53699         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53700         * m4/nls.m4 (AM_NLS): Likewise.
53701         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53702         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53703         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53704         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53705         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53706         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53707         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53708         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53709         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53710         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53711         * m4/xsize.m4 (gl_XSIZE): Likewise.
53712         Suggested by Jim Meyering.
53713
53714 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53715
53716         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53717         * lib/parse-duration.c: use a switch instead of cascading if's.
53718
53719 2008-12-29  Eric Blake  <ebb9@byu.net>
53720
53721         wchar.h: supply WEOF on Irix 5.3
53722         * lib/wchar.in.h (wint_t): Also supply WEOF.
53723         * lib/wctype.in.h (wint_t): Likewise.
53724         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53725         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53726         Reported by Tom G. Christensen.
53727
53728 2008-12-26  Bruno Haible  <bruno@clisp.org>
53729
53730         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53731         i486, i586, i686.
53732
53733 2008-12-26  Bruno Haible  <bruno@clisp.org>
53734
53735         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53736
53737 2008-12-26  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53740         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53741         not __STDC_CONSTANT_MACROS.
53742         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53743
53744 2008-12-25  Bruno Haible  <bruno@clisp.org>
53745
53746         Add support for universal builds to vasnprintf.
53747         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53748         universal builds, guess no.
53749         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53750         * modules/vasprintf-posix (Depends-on): Likewise.
53751         * modules/fprintf-posix (Depends-on): Likewise.
53752         * modules/vfprintf-posix (Depends-on): Likewise.
53753         * modules/snprintf-posix (Depends-on): Likewise.
53754         * modules/vsnprintf-posix (Depends-on): Likewise.
53755         * modules/sprintf-posix (Depends-on): Likewise.
53756         * modules/vsprintf-posix (Depends-on): Likewise.
53757         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53758         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53759         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53760         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53761         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53762         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53763         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53764
53765         Add support for universal builds to <inttypes.h>.
53766         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53767         _SCNu64_PREFIX): In Apple
53768         universal builds, define directly, using _LP64.
53769         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53770         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53771         * modules/inttypes (Depends-on): Add multiarch.
53772         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53773
53774         Add support for universal builds to <stdint.h>.
53775         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53776         universal builds, define directly, using _LP64.
53777         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53778         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53779         and size_t.
53780         * modules/stdint (Depends-on): Add multiarch.
53781         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53782
53783         New module 'multiarch'.
53784         * modules/multiarch: New file.
53785         * m4/multiarch.m4: New file.
53786
53787 2008-12-25  Bruno Haible  <bruno@clisp.org>
53788
53789         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53790
53791 2008-12-25  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/btowc (License): Relicense under LGPLv2+.
53794         * modules/mbsinit (License): Likewise.
53795         * modules/mbrtowc (License): Likewise.
53796         * modules/wcrtomb (License): Likewise.
53797         * modules/streq (License): Likewise.
53798         Reported by David Lutterkort <lutter@redhat.com>.
53799
53800 2008-12-23  Bruno Haible  <bruno@clisp.org>
53801
53802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53803
53804 2008-12-23  Bruno Haible  <bruno@clisp.org>
53805
53806         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53808         GETADDRINFO_LIB, not in LIBS.
53809         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53810         * modules/canon-host (Link): Likewise.
53811         * NEWS: Mention the change.
53812         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53813         GETADDRINFO_LIB.
53814
53815 2008-12-22  Bruno Haible  <bruno@clisp.org>
53816
53817         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53818         * doc/posix-functions/iswalpha_l.texi: Likewise.
53819         * doc/posix-functions/iswblank_l.texi: Likewise.
53820         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53821         * doc/posix-functions/iswctype_l.texi: Likewise.
53822         * doc/posix-functions/iswdigit_l.texi: Likewise.
53823         * doc/posix-functions/iswgraph_l.texi: Likewise.
53824         * doc/posix-functions/iswlower_l.texi: Likewise.
53825         * doc/posix-functions/iswprint_l.texi: Likewise.
53826         * doc/posix-functions/iswpunct_l.texi: Likewise.
53827         * doc/posix-functions/iswspace_l.texi: Likewise.
53828         * doc/posix-functions/iswupper_l.texi: Likewise.
53829         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53830         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53831         * doc/posix-functions/open_wmemstream.texi: Likewise.
53832         * doc/posix-functions/swscanf.texi: Likewise.
53833         * doc/posix-functions/towctrans_l.texi: Likewise.
53834         * doc/posix-functions/towlower.texi: Likewise.
53835         * doc/posix-functions/towlower_l.texi: Likewise.
53836         * doc/posix-functions/towupper.texi: Likewise.
53837         * doc/posix-functions/towupper_l.texi: Likewise.
53838         * doc/posix-functions/vfwprintf.texi: Likewise.
53839         * doc/posix-functions/vfwscanf.texi: Likewise.
53840         * doc/posix-functions/vswscanf.texi: Likewise.
53841         * doc/posix-functions/vwprintf.texi: Likewise.
53842         * doc/posix-functions/vwscanf.texi: Likewise.
53843         * doc/posix-functions/wcpcpy.texi: Likewise.
53844         * doc/posix-functions/wcpncpy.texi: Likewise.
53845         * doc/posix-functions/wcscasecmp.texi: Likewise.
53846         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53847         * doc/posix-functions/wcscoll_l.texi: Likewise.
53848         * doc/posix-functions/wcsdup.texi: Likewise.
53849         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53850         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53851         * doc/posix-functions/wcsnlen.texi: Likewise.
53852         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53853         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53854         * doc/posix-functions/wctrans_l.texi: Likewise.
53855         * doc/posix-functions/wctype_l.texi: Likewise.
53856         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53857         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53858         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53859         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53860         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53861         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53862         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53863         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53864         * doc/glibc-functions/wcschrnul.texi: Likewise.
53865         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53866         * doc/glibc-functions/wcstod_l.texi: Likewise.
53867         * doc/glibc-functions/wcstof_l.texi: Likewise.
53868         * doc/glibc-functions/wcstol_l.texi: Likewise.
53869         * doc/glibc-functions/wcstold_l.texi: Likewise.
53870         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53871         * doc/glibc-functions/wcstoq.texi: Likewise.
53872         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53873         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53874         * doc/glibc-functions/wcstouq.texi: Likewise.
53875         * doc/glibc-functions/wmempcpy.texi: Likewise.
53876
53877 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53878             Eric Blake  <ebb9@byu.net>
53879             Paolo Bonzini  <bonzini@gnu.org>
53880             Bruno Haible  <bruno@clisp.org>
53881
53882         Make c-stack work on Haiku.
53883         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53884         (c_stack_action): Use SA_ONSTACK flag.
53885
53886 2008-12-22  Bruno Haible  <bruno@clisp.org>
53887
53888         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53889
53890 2008-12-22  Bruno Haible  <bruno@clisp.org>
53891
53892         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53893         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53894         being overridden.
53895         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53896         New macros.
53897         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53899         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53900         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53901
53902 2008-12-22  Bruno Haible  <bruno@clisp.org>
53903
53904         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53905         from test code.
53906
53907 2008-12-22  Eric Blake  <ebb9@byu.net>
53908
53909         Avoid gcc warnings on cygwin.
53910         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53911         Avoid unused variable.
53912         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53913         Likewise.
53914
53915 2008-12-22  Bruno Haible  <bruno@clisp.org>
53916
53917         Remove HAVE_MBRTOWC conditionals.
53918         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53919         (mbscasecmp): Assume mbrtowc function.
53920         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53921         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53922         * lib/mbschr.c: Include mbuiter.h unconditionally.
53923         (mbschr): Assume mbrtowc function.
53924         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53925         (mbscspn): Assume mbrtowc function.
53926         * lib/mbslen.c: Include mbuiter.h unconditionally.
53927         (mbslen): Assume mbrtowc function.
53928         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53929         (mbsncasecmp): Assume mbrtowc function.
53930         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53931         (mbsnlen): Assume mbrtowc function.
53932         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53933         (mbspbrk): Assume mbrtowc function.
53934         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53935         (mbspcasecmp): Assume mbrtowc function.
53936         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53937         (mbsrchr): Assume mbrtowc function.
53938         * lib/mbssep.c: Include mbuiter.h unconditionally.
53939         (mbssep): Assume mbrtowc function.
53940         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53941         (mbsspn): Assume mbrtowc function.
53942         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53943         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53944         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53945         (mbstok_r): Assume mbrtowc function.
53946         * lib/propername.c: Include mbuiter.h unconditionally.
53947         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53948         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53949         (trim2): Assume mbrtowc function.
53950         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53951         (mbsnwidth): Assume mbrtowc function.
53952         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53953         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53954         fallback definitions.
53955         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53956
53957 2008-12-22  Bruno Haible  <bruno@clisp.org>
53958
53959         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53960
53961 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53962
53963         * modules/regex: Request emulations for the mb*/wc* functions we need.
53964         * m4/regex.m4: Don't look for those functions here.
53965         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53966
53967 2008-12-22  Bruno Haible  <bruno@clisp.org>
53968
53969         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53970
53971 2008-12-21  Bruno Haible  <bruno@clisp.org>
53972
53973         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53974         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53975         (Include): Remove conditionalization.
53976         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53977         (Include): Remove conditionalization.
53978         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53979         (Include): Remove conditionalization.
53980         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53981         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53982         * NEWS: Mention the change.
53983         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53984         via Sergey Poznyakoff <gray@gnu.org.ua>.
53985
53986 2008-12-21  Bruno Haible  <bruno@clisp.org>
53987
53988         * MODULES.html.sh (Extended multibyte and wide character utilities
53989         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53990         wcrtomb, wcsrtombs.
53991         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53992         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53993         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53994         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53995
53996 2008-12-21  Bruno Haible  <bruno@clisp.org>
53997
53998         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53999
54000 2008-12-21  Bruno Haible  <bruno@clisp.org>
54001
54002         * modules/wcsnrtombs-tests: New file.
54003         * tests/test-wcsnrtombs1.sh: New file.
54004         * tests/test-wcsnrtombs2.sh: New file.
54005         * tests/test-wcsnrtombs3.sh: New file.
54006         * tests/test-wcsnrtombs4.sh: New file.
54007         * tests/test-wcsnrtombs.c: New file.
54008
54009         New module 'wcsnrtombs'.
54010         * lib/wchar.in.h (wcsnrtombs): New declaration.
54011         * lib/wcsnrtombs.c: New file.
54012         * lib/wcsrtombs-state.c: New file.
54013         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54014         (internal_state): Remove variable.
54015         * m4/wcsnrtombs.m4: New file.
54016         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54017         compilation units.
54018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54019         HAVE_WCSNRTOMBS.
54020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54021         HAVE_WCSNRTOMBS.
54022         * modules/wcsnrtombs: New file.
54023         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54024         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54025
54026 2008-12-21  Bruno Haible  <bruno@clisp.org>
54027
54028         * modules/wcsrtombs-tests: New file.
54029         * tests/test-wcsrtombs1.sh: New file.
54030         * tests/test-wcsrtombs2.sh: New file.
54031         * tests/test-wcsrtombs3.sh: New file.
54032         * tests/test-wcsrtombs4.sh: New file.
54033         * tests/test-wcsrtombs.c: New file.
54034
54035         New module 'wcsrtombs'.
54036         * lib/wchar.in.h (wcsrtombs): New declaration.
54037         * lib/wcsrtombs.c: New file.
54038         * m4/wcsrtombs.m4: New file.
54039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54040         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54042         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54043         * modules/wcsrtombs: New file.
54044         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54045         bugs.
54046
54047 2008-12-21  Bruno Haible  <bruno@clisp.org>
54048
54049         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54050         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54051         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54052         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54053         if not correct.
54054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54055         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54056         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54057         m4/locale-zh.m4, m4/codeset.m4.
54058         * doc/posix-functions/wcrtomb.texi: Document the bug.
54059
54060 2008-12-21  Bruno Haible  <bruno@clisp.org>
54061
54062         Work around a btowc() bug on IRIX 6.5.
54063         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54064         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54065         REPLACE_WTOBC if not.
54066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54067         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54068         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54069
54070 2008-12-21  Bruno Haible  <bruno@clisp.org>
54071
54072         * modules/wcrtomb-tests: New file.
54073         * tests/test-wcrtomb.sh: New file.
54074         * tests/test-wcrtomb.c: New file.
54075
54076         New module 'wcrtomb'.
54077         * lib/wchar.in.h (wcrtomb): New declaration.
54078         * lib/wcrtomb.c: New file.
54079         * m4/wcrtomb.m4: New file.
54080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54081         HAVE_WCRTOMB.
54082         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54083         HAVE_WCRTOMB.
54084         * modules/wcrtomb: New file.
54085         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54086
54087 2008-12-21  Bruno Haible  <bruno@clisp.org>
54088
54089         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54090         * modules/mbsrtowcs (Files): Likewise.
54091         * modules/wctob (Files): Likewise.
54092         * modules/c-strcase-tests (Files): Likewise.
54093         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54094         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54095         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54096         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54097         * modules/vasnprintf-posix-tests (Files): Likewise.
54098
54099 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54100
54101         gitlog-to-changelog: pass all command-line arguments to git-log
54102         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54103         it is sometimes convenient to filter the commits in various ways.
54104         gitlog-to-changelog only allows --since to specify a start date,
54105         but git-log itself supports many other filtering mechanisms.
54106         At the moment, I want to filter by branch name.  Rather than
54107         adding a --branch option to gitlog-to-changelog, it seems more
54108         flexible to simply pass all options directly to git-log and let
54109         git do the work.  Notice that this effectively makes --since a
54110         redundant option for gitlog-to-changelog, but removing it would
54111         require current usage to change since calls would then require
54112         an additional '--'.
54113
54114 2008-12-21  Bruno Haible  <bruno@clisp.org>
54115
54116         * modules/mbsnrtowcs-tests: New file.
54117         * tests/test-mbsnrtowcs1.sh: New file.
54118         * tests/test-mbsnrtowcs2.sh: New file.
54119         * tests/test-mbsnrtowcs3.sh: New file.
54120         * tests/test-mbsnrtowcs4.sh: New file.
54121         * tests/test-mbsnrtowcs.c: New file.
54122
54123         New module 'mbsnrtowcs'.
54124         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54125         * lib/mbsnrtowcs.c: New file.
54126         * lib/mbsrtowcs-state.c: New file.
54127         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54128         (internal_state): Remove variable.
54129         * m4/mbsnrtowcs.m4: New file.
54130         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54131         compilation units.
54132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54133         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54134         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54135         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54136         * modules/mbsnrtowcs: New file.
54137         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54138         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54139         portability problem.
54140
54141 2008-12-21  Bruno Haible  <bruno@clisp.org>
54142
54143         Work around mbsrtowcs bug.
54144         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54145         (gl_FUNC_MBSRTOWCS): Invoke it.
54146         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54147         m4/locale-zh.m4.
54148         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54149
54150 2008-12-21  Bruno Haible  <bruno@clisp.org>
54151
54152         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54153
54154 2008-12-21  Bruno Haible  <bruno@clisp.org>
54155
54156         Update doc for AIX.
54157         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54158         16-bit wchar_t type.
54159         * doc/posix-functions/btowc.texi: Likewise.
54160         * doc/posix-functions/fgetwc.texi: Likewise.
54161         * doc/posix-functions/fgetws.texi: Likewise.
54162         * doc/posix-functions/fputwc.texi: Likewise.
54163         * doc/posix-functions/fputws.texi: Likewise.
54164         * doc/posix-functions/fwide.texi: Likewise.
54165         * doc/posix-functions/fwprintf.texi: Likewise.
54166         * doc/posix-functions/fwscanf.texi: Likewise.
54167         * doc/posix-functions/getwchar.texi: Likewise.
54168         * doc/posix-functions/getwc.texi: Likewise.
54169         * doc/posix-functions/iswalnum.texi: Likewise.
54170         * doc/posix-functions/iswalpha.texi: Likewise.
54171         * doc/posix-functions/iswblank.texi: Likewise.
54172         * doc/posix-functions/iswcntrl.texi: Likewise.
54173         * doc/posix-functions/iswctype.texi: Likewise.
54174         * doc/posix-functions/iswdigit.texi: Likewise.
54175         * doc/posix-functions/iswgraph.texi: Likewise.
54176         * doc/posix-functions/iswlower.texi: Likewise.
54177         * doc/posix-functions/iswprint.texi: Likewise.
54178         * doc/posix-functions/iswpunct.texi: Likewise.
54179         * doc/posix-functions/iswspace.texi: Likewise.
54180         * doc/posix-functions/iswupper.texi: Likewise.
54181         * doc/posix-functions/iswxdigit.texi: Likewise.
54182         * doc/posix-functions/mbrtowc.texi: Likewise.
54183         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54184         * doc/posix-functions/mbstowcs.texi: Likewise.
54185         * doc/posix-functions/mbtowc.texi: Likewise.
54186         * doc/posix-functions/putwchar.texi: Likewise.
54187         * doc/posix-functions/putwc.texi: Likewise.
54188         * doc/posix-functions/swprintf.texi: Likewise.
54189         * doc/posix-functions/tolower.texi: Likewise.
54190         * doc/posix-functions/toupper.texi: Likewise.
54191         * doc/posix-functions/towctrans.texi: Likewise.
54192         * doc/posix-functions/ungetwc.texi: Likewise.
54193         * doc/posix-functions/vswprintf.texi: Likewise.
54194         * doc/posix-functions/wcrtomb.texi: Likewise.
54195         * doc/posix-functions/wcscat.texi: Likewise.
54196         * doc/posix-functions/wcschr.texi: Likewise.
54197         * doc/posix-functions/wcscmp.texi: Likewise.
54198         * doc/posix-functions/wcscoll.texi: Likewise.
54199         * doc/posix-functions/wcscpy.texi: Likewise.
54200         * doc/posix-functions/wcscspn.texi: Likewise.
54201         * doc/posix-functions/wcsftime.texi: Likewise.
54202         * doc/posix-functions/wcslen.texi: Likewise.
54203         * doc/posix-functions/wcsncat.texi: Likewise.
54204         * doc/posix-functions/wcsncmp.texi: Likewise.
54205         * doc/posix-functions/wcsncpy.texi: Likewise.
54206         * doc/posix-functions/wcspbrk.texi: Likewise.
54207         * doc/posix-functions/wcsrchr.texi: Likewise.
54208         * doc/posix-functions/wcsrtombs.texi: Likewise.
54209         * doc/posix-functions/wcsspn.texi: Likewise.
54210         * doc/posix-functions/wcsstr.texi: Likewise.
54211         * doc/posix-functions/wcstod.texi: Likewise.
54212         * doc/posix-functions/wcstof.texi: Likewise.
54213         * doc/posix-functions/wcstoimax.texi: Likewise.
54214         * doc/posix-functions/wcstok.texi: Likewise.
54215         * doc/posix-functions/wcstold.texi: Likewise.
54216         * doc/posix-functions/wcstoll.texi: Likewise.
54217         * doc/posix-functions/wcstol.texi: Likewise.
54218         * doc/posix-functions/wcstombs.texi: Likewise.
54219         * doc/posix-functions/wcstoull.texi: Likewise.
54220         * doc/posix-functions/wcstoul.texi: Likewise.
54221         * doc/posix-functions/wcstoumax.texi: Likewise.
54222         * doc/posix-functions/wcswidth.texi: Likewise.
54223         * doc/posix-functions/wcsxfrm.texi: Likewise.
54224         * doc/posix-functions/wctob.texi: Likewise.
54225         * doc/posix-functions/wctomb.texi: Likewise.
54226         * doc/posix-functions/wctrans.texi: Likewise.
54227         * doc/posix-functions/wctype.texi: Likewise.
54228         * doc/posix-functions/wcwidth.texi: Likewise.
54229         * doc/posix-functions/wmemchr.texi: Likewise.
54230         * doc/posix-functions/wmemcmp.texi: Likewise.
54231         * doc/posix-functions/wmemcpy.texi: Likewise.
54232         * doc/posix-functions/wmemmove.texi: Likewise.
54233         * doc/posix-functions/wmemset.texi: Likewise.
54234         * doc/posix-functions/wprintf.texi: Likewise.
54235         * doc/posix-functions/wscanf.texi: Likewise.
54236
54237 2008-12-21  Bruno Haible  <bruno@clisp.org>
54238
54239         Update doc for HP-UX 11.11.
54240         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54241         in HP-UX version 11.00, not in all versions of HP-UX 11.
54242         * doc/posix-functions/fwide.texi: Likewise.
54243         * doc/posix-functions/fwprintf.texi: Likewise.
54244         * doc/posix-functions/fwscanf.texi: Likewise.
54245         * doc/posix-functions/inet_ntop.texi: Likewise.
54246         * doc/posix-functions/inet_pton.texi: Likewise.
54247         * doc/posix-functions/mbrlen.texi: Likewise.
54248         * doc/posix-functions/mbrtowc.texi: Likewise.
54249         * doc/posix-functions/mbsinit.texi: Likewise.
54250         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54251         * doc/posix-functions/swprintf.texi: Likewise.
54252         * doc/posix-functions/swscanf.texi: Likewise.
54253         * doc/posix-functions/towctrans.texi: Likewise.
54254         * doc/posix-functions/vfwprintf.texi: Likewise.
54255         * doc/posix-functions/vswprintf.texi: Likewise.
54256         * doc/posix-functions/vwprintf.texi: Likewise.
54257         * doc/posix-functions/wcrtomb.texi: Likewise.
54258         * doc/posix-functions/wcsrtombs.texi: Likewise.
54259         * doc/posix-functions/wcsstr.texi: Likewise.
54260         * doc/posix-functions/wctob.texi: Likewise.
54261         * doc/posix-functions/wctrans.texi: Likewise.
54262         * doc/posix-functions/wmemchr.texi: Likewise.
54263         * doc/posix-functions/wmemcmp.texi: Likewise.
54264         * doc/posix-functions/wmemcpy.texi: Likewise.
54265         * doc/posix-functions/wmemmove.texi: Likewise.
54266         * doc/posix-functions/wmemset.texi: Likewise.
54267         * doc/posix-functions/wprintf.texi: Likewise.
54268         * doc/posix-functions/wscanf.texi: Likewise.
54269
54270 2008-12-21  Bruno Haible  <bruno@clisp.org>
54271
54272         Work around a portability problem.
54273         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54274         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54275
54276 2008-12-20  Bruno Haible  <bruno@clisp.org>
54277
54278         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54279         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54280         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54282         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54283
54284         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54285         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54286         set.
54287         (GNULIB_defined_mbstate_t): New macro.
54288         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54289         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54290         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54291         reuses the system's mbrtowc function but works around the bugs.
54292         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54293         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54294         macros.
54295         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54296         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54297         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54298         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54299         REPLACE_MBSINIT if mbsinit needs to be overridden.
54300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54301         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54302         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54303         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54304         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54305         m4/locale-zh.m4.
54306         (Depends): Add mbsinit.
54307         * modules/mbsinit (Depends): Add mbrtowc.
54308         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54309
54310 2008-12-20  Bruno Haible  <bruno@clisp.org>
54311
54312         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54313         so that there are no conversion errors on AIX.
54314         * tests/test-mbsrtowcs.c (main): LIkewise.
54315
54316 2008-12-20  Bruno Haible  <bruno@clisp.org>
54317
54318         Work around wctob bug on Solaris <= 9.
54319         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54320         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54322         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54323         * modules/wctob (Files): Add m4/locale-fr.m4.
54324         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54325
54326 2008-12-20  Bruno Haible  <bruno@clisp.org>
54327
54328         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54329         /dev/null.
54330         * tests/test-select-in.sh: Likewise.
54331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54332
54333 2008-12-20  Bruno Haible  <bruno@clisp.org>
54334
54335         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54336         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54337         Cygwin 1.5.x.
54338
54339 2008-12-20  Bruno Haible  <bruno@clisp.org>
54340
54341         Ensure mbstate_t is defined on HP-UX 11.11.
54342         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54343         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54344         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54345         AC_USE_SYSTEM_EXTENSIONS.
54346         * modules/fnmatch (Depends-on): Add extensions.
54347         * modules/mbrlen (Depends-on): Likewise.
54348         * modules/mbrtowc (Depends-on): Likewise.
54349         * modules/mbsinit (Depends-on): Likewise.
54350         * modules/mbsrtowcs (Depends-on): Likewise.
54351         * modules/mbswidth (Depends-on): Likewise.
54352         * modules/quotearg (Depends-on): Likewise.
54353         * modules/strftime (Depends-on): Likewise.
54354
54355 2008-12-20  Bruno Haible  <bruno@clisp.org>
54356
54357         Ensure wctob is declared on IRIX 6.5.
54358         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54359         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54360         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54362         of HAVE_WCTOB.
54363         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54364         HAVE_WCTOB.
54365         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54366
54367 2008-12-19  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/mbsrtowcs-tests: New file.
54370         * tests/test-mbsrtowcs1.sh: New file.
54371         * tests/test-mbsrtowcs2.sh: New file.
54372         * tests/test-mbsrtowcs3.sh: New file.
54373         * tests/test-mbsrtowcs4.sh: New file.
54374         * tests/test-mbsrtowcs.c: New file.
54375
54376         New module 'mbsrtowcs'.
54377         * lib/wchar.in.h (mbsrtowcs): New declaration.
54378         * lib/mbsrtowcs.c: New file.
54379         * m4/mbsrtowcs.m4: New file.
54380         * modules/mbsrtowcs: New file.
54381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54382         HAVE_MBSRTOWCS.
54383         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54384         HAVE_MBSRTOWCS.
54385         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54386
54387 2008-12-19  Bruno Haible  <bruno@clisp.org>
54388
54389         New module 'mbrlen'.
54390         * lib/wchar.in.h (mbrlen): New declaration.
54391         * lib/mbrlen.c: New file.
54392         * m4/mbrlen.m4: New file.
54393         * modules/mbrlen: New file.
54394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54395         HAVE_MBRLEN.
54396         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54397         HAVE_MBRLEN.
54398         * doc/posix-functions/mbrlen.texi: Document the new module.
54399
54400 2008-12-19  Bruno Haible  <bruno@clisp.org>
54401
54402         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54403         * modules/mbrtowc (Depends-on): Add verify.
54404         Suggested by Paul Eggert.
54405
54406 2008-12-18  Bruno Haible  <bruno@clisp.org>
54407
54408         * modules/mbsinit-tests: New file.
54409         * tests/test-mbsinit.sh: New file.
54410         * tests/test-mbsinit.c: New file.
54411
54412 2008-12-18  Bruno Haible  <bruno@clisp.org>
54413
54414         * modules/mbrtowc-tests: New file.
54415         * tests/test-mbrtowc1.sh: New file.
54416         * tests/test-mbrtowc2.sh: New file.
54417         * tests/test-mbrtowc3.sh: New file.
54418         * tests/test-mbrtowc4.sh: New file.
54419         * tests/test-mbrtowc.c: New file.
54420
54421         New module 'mbrtowc'.
54422         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54423         mbsinit and mbrtowc.
54424         (mbrtowc): New declaration.
54425         * lib/mbrtowc.c: New file.
54426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54427         * modules/mbrtowc: New file.
54428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54429         HAVE_MBRTOWC.
54430         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54431         HAVE_MBRTOWC.
54432         * doc/posix-functions/mbrtowc.texi: Document the new module.
54433
54434 2008-12-18  Bruno Haible  <bruno@clisp.org>
54435
54436         New module 'wctob'.
54437         * lib/wchar.in.h (wctob): New declaration.
54438         * lib/wctob.c: New file.
54439         * m4/wctob.m4: New file.
54440         * modules/wctob: New file.
54441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54442         HAVE_WCTOB.
54443         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54444         * doc/posix-functions/wctob.texi: Document the new module.
54445
54446 2008-12-18  Bruno Haible  <bruno@clisp.org>
54447
54448         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54449         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54450
54451 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54452
54453         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54454         G. Christensen" <tgc@jupiterrise.com>.
54455
54456         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54457         G. Christensen" <tgc@jupiterrise.com>.
54458
54459         * lib/flock.c: Need to include string.h.  Reported by "Tom
54460         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54461         <ebb9@byu.net>.
54462
54463 2008-12-18  Bruno Haible  <bruno@clisp.org>
54464
54465         * m4/locale-ja.m4: New file, from GNU gettext.
54466
54467 2008-12-17  Bruno Haible  <bruno@clisp.org>
54468
54469         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54470         Suggested by Eric Blake.
54471
54472 2008-12-17  Bruno Haible  <bruno@clisp.org>
54473
54474         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54475
54476 2008-12-17  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54479         * modules/mbsinit (Depends-on): Add verify.
54480         Suggested by Paul Eggert.
54481
54482 2008-12-17  Bruno Haible  <bruno@clisp.org>
54483
54484         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54485         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54486         gl_FUNC_MBRTOWC.
54487         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54488         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54489         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54490         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54491         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54492         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54493         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54494         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54495         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54496         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54497         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54498         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54499         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54500         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54501         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54502         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54503         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54504         * modules/trim (configure.ac): Likewise.
54505
54506 2008-12-17  Bruno Haible  <bruno@clisp.org>
54507
54508         * modules/btowc-tests: New file.
54509         * tests/test-btowc1.sh: New file.
54510         * tests/test-btowc2.sh: New file.
54511         * tests/test-btowc.c: New file.
54512
54513         New module 'btowc'.
54514         * lib/wchar.in.h (btowc): New declaration.
54515         * lib/btowc.c: New file.
54516         * m4/btowc.m4: New file.
54517         * modules/btowc: New file.
54518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54519         HAVE_BTOWC.
54520         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54521         * doc/posix-functions/btowc.texi: Document the new module.
54522
54523 2008-12-17  Bruno Haible  <bruno@clisp.org>
54524
54525         New module 'mbsinit'.
54526         * lib/wchar.in.h (mbsinit): New declaration.
54527         * lib/mbsinit.c: New file.
54528         * m4/mbsinit.m4: New file.
54529         * modules/mbsinit: New file.
54530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54531         HAVE_MBSINIT.
54532         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54533         HAVE_MBSINIT.
54534         * doc/posix-functions/mbsinit.texi: Document the new module.
54535
54536 2008-12-16  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/unistd.in.h: Add comment.
54539         * tests/test-environ.c: Don't include <stdlib.h>.
54540
54541 2008-12-16  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/parse-duration.h (parse_duration): Document return value
54544         convention.
54545         * lib/parse-duration.c: Include specification header first. Add
54546         comments.
54547         (_): Remove macro.
54548         (parse_year_month_day, parse_hour_minute_second): Move side effects
54549         outside of strchr call.
54550         (parse_non_iso8601): Move side effects outside of isspace call.
54551         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54552         call.
54553
54554 2008-12-16  Bruno Haible  <bruno@clisp.org>
54555
54556         * tests/test-parse-duration.sh: Produce no output when the test
54557         succeeds.
54558
54559 2008-12-16  Bruno Haible  <bruno@clisp.org>
54560
54561         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54562         expressions.
54563
54564 2008-12-15  Bruno Haible  <bruno@clisp.org>
54565
54566         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54567         * doc/glibc-functions/flistxattr.texi: Likewise.
54568         * doc/glibc-functions/fopencookie.texi: Likewise.
54569         * doc/glibc-functions/fremovexattr.texi: Likewise.
54570         * doc/glibc-functions/fsetxattr.texi: Likewise.
54571         * doc/glibc-functions/getxattr.texi: Likewise.
54572         * doc/glibc-functions/lgetxattr.texi: Likewise.
54573         * doc/glibc-functions/listxattr.texi: Likewise.
54574         * doc/glibc-functions/llistxattr.texi: Likewise.
54575         * doc/glibc-functions/lremovexattr.texi: Likewise.
54576         * doc/glibc-functions/lsetxattr.texi: Likewise.
54577         * doc/glibc-functions/removexattr.texi: Likewise.
54578         * doc/glibc-functions/setxattr.texi: Likewise.
54579         * doc/posix-functions/open_memstream.texi: Likewise.
54580
54581 2008-12-15  Eric Blake  <ebb9@byu.net>
54582
54583         Update doc for cygwin 1.7.
54584         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54585         functions.
54586         * doc/posix-functions/fchmodat.texi: Likewise.
54587         * doc/posix-functions/fchownat.texi: Likewise.
54588         * doc/posix-functions/fdopendir.texi: Likewise.
54589         * doc/posix-functions/fmemopen.texi: Likewise.
54590         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54591         * doc/posix-functions/fstatat.texi: Likewise.
54592         * doc/posix-functions/futimens.texi: Likewise.
54593         * doc/posix-functions/gai_strerror.texi: Likewise.
54594         * doc/posix-functions/getaddrinfo.texi: Likewise.
54595         * doc/posix-functions/getnameinfo.texi: Likewise.
54596         * doc/posix-functions/if_freenameindex.texi: Likewise.
54597         * doc/posix-functions/if_indextoname.texi: Likewise.
54598         * doc/posix-functions/if_nameindex.texi: Likewise.
54599         * doc/posix-functions/if_nametoindex.texi: Likewise.
54600         * doc/posix-functions/insque.texi: Likewise.
54601         * doc/posix-functions/linkat.texi: Likewise.
54602         * doc/posix-functions/llrint.texi: Likewise.
54603         * doc/posix-functions/llrintf.texi: Likewise.
54604         * doc/posix-functions/llrintl.texi: Likewise.
54605         * doc/posix-functions/lockf.texi: Likewise.
54606         * doc/posix-functions/lrintl.texi: Likewise.
54607         * doc/posix-functions/mkdirat.texi: Likewise.
54608         * doc/posix-functions/mkfifoat.texi: Likewise.
54609         * doc/posix-functions/mknodat.texi: Likewise.
54610         * doc/posix-functions/mq_close.texi: Likewise.
54611         * doc/posix-functions/mq_getattr.texi: Likewise.
54612         * doc/posix-functions/mq_notify.texi: Likewise.
54613         * doc/posix-functions/mq_open.texi: Likewise.
54614         * doc/posix-functions/mq_receive.texi: Likewise.
54615         * doc/posix-functions/mq_send.texi: Likewise.
54616         * doc/posix-functions/mq_setattr.texi: Likewise.
54617         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54618         * doc/posix-functions/mq_timedsend.texi: Likewise.
54619         * doc/posix-functions/mq_unlink.texi: Likewise.
54620         * doc/posix-functions/open_memstream.texi: Likewise.
54621         * doc/posix-functions/openat.texi: Likewise.
54622         * doc/posix-functions/posix_fadvise.texi: Likewise.
54623         * doc/posix-functions/posix_fallocate.texi: Likewise.
54624         * doc/posix-functions/posix_madvise.texi: Likewise.
54625         * doc/posix-functions/posix_memalign.texi: Likewise.
54626         * doc/posix-functions/posix_openpt.texi: Likewise.
54627         * doc/posix-functions/readlinkat.texi: Likewise.
54628         * doc/posix-functions/remque.texi: Likewise.
54629         * doc/posix-functions/renameat.texi: Likewise.
54630         * doc/posix-functions/rintl.texi: Likewise.
54631         * doc/posix-functions/sem_unlink.texi: Likewise.
54632         * doc/posix-functions/shm_open.texi: Likewise.
54633         * doc/posix-functions/shm_unlink.texi: Likewise.
54634         * doc/posix-functions/signgam.texi: Likewise.
54635         * doc/posix-functions/sigset.texi: Likewise.
54636         * doc/posix-functions/stpcpy.texi: Likewise.
54637         * doc/posix-functions/stpncpy.texi: Likewise.
54638         * doc/posix-functions/strerror.texi: Likewise.
54639         * doc/posix-functions/strtod.texi: Likewise.
54640         * doc/posix-functions/symlinkat.texi: Likewise.
54641         * doc/posix-functions/unlinkat.texi: Likewise.
54642         * doc/posix-functions/utimensat.texi: Likewise.
54643         * doc/glibc-functions/bindresvport.texi: Likewise.
54644         * doc/glibc-functions/dn_expand.texi: Likewise.
54645         * doc/glibc-functions/exp10.texi: Likewise.
54646         * doc/glibc-functions/exp10f.texi: Likewise.
54647         * doc/glibc-functions/fgetxattr.texi: Likewise.
54648         * doc/glibc-functions/flistxattr.texi: Likewise.
54649         * doc/glibc-functions/fopencookie.texi: Likewise.
54650         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54651         * doc/glibc-functions/fremovexattr.texi: Likewise.
54652         * doc/glibc-functions/fsetxattr.texi: Likewise.
54653         * doc/glibc-functions/getifaddrs.texi: Likewise.
54654         * doc/glibc-functions/getxattr.texi: Likewise.
54655         * doc/glibc-functions/lgetxattr.texi: Likewise.
54656         * doc/glibc-functions/listxattr.texi: Likewise.
54657         * doc/glibc-functions/llistxattr.texi: Likewise.
54658         * doc/glibc-functions/lremovexattr.texi: Likewise.
54659         * doc/glibc-functions/lsetxattr.texi: Likewise.
54660         * doc/glibc-functions/pow10.texi: Likewise.
54661         * doc/glibc-functions/pow10f.texi: Likewise.
54662         * doc/glibc-functions/rcmd_af.texi: Likewise.
54663         * doc/glibc-functions/removexattr.texi: Likewise.
54664         * doc/glibc-functions/res_init.texi: Likewise.
54665         * doc/glibc-functions/res_mkquery.texi: Likewise.
54666         * doc/glibc-functions/res_query.texi: Likewise.
54667         * doc/glibc-functions/res_querydomain.texi: Likewise.
54668         * doc/glibc-functions/res_send.texi: Likewise.
54669         * doc/glibc-functions/rresvport_af.texi: Likewise.
54670         * doc/glibc-functions/setxattr.texi: Likewise.
54671         * doc/glibc-functions/strcasestr.texi: Likewise.
54672
54673 2008-12-15  Bruno Haible  <bruno@clisp.org>
54674
54675         Fix compilation error on OSF/1 4.0.
54676         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54677         <sys/time.h>, simply delegate to the system header.
54678         Reported by Daniel Richard G. <oss@teragram.com>.
54679
54680 2008-12-15  Bruno Haible  <bruno@clisp.org>
54681
54682         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54683         * doc/posix-functions/fchmodat.texi: Likewise.
54684         * doc/posix-functions/fchownat.texi: Likewise.
54685         * doc/posix-functions/fdopendir.texi: Likewise.
54686         * doc/posix-functions/fstatat.texi: Likewise.
54687         * doc/posix-functions/mkdirat.texi: Likewise.
54688         * doc/posix-functions/unlinkat.texi: Likewise.
54689
54690 2008-12-14  Bruno Haible  <bruno@clisp.org>
54691
54692         Update doc for POSIX:2008.
54693         * doc/posix-functions/faccessat.texi: New file.
54694         * doc/posix-functions/fchmodat.texi: New file.
54695         * doc/posix-functions/fchownat.texi: New file.
54696         * doc/posix-functions/fdopendir.texi: New file.
54697         * doc/posix-functions/fstatat.texi: New file.
54698         * doc/posix-functions/futimens.texi: New file.
54699         * doc/posix-functions/linkat.texi: New file.
54700         * doc/posix-functions/mkdirat.texi: New file.
54701         * doc/posix-functions/mkfifoat.texi: New file.
54702         * doc/posix-functions/mknodat.texi: New file.
54703         * doc/posix-functions/open_wmemstream.texi: New file.
54704         * doc/posix-functions/openat.texi: New file.
54705         * doc/posix-functions/psiginfo.texi: New file.
54706         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54707         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54708         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54709         * doc/posix-functions/readlinkat.texi: New file.
54710         * doc/posix-functions/renameat.texi: New file.
54711         * doc/posix-functions/strerror_l.texi: New file.
54712         * doc/posix-functions/symlinkat.texi: New file.
54713         * doc/posix-functions/unlinkat.texi: New file.
54714         * doc/posix-functions/utimensat.texi: New file.
54715         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54716
54717 2008-12-14  Bruno Haible  <bruno@clisp.org>
54718
54719         Update doc for POSIX:2008.
54720         * doc/posix-functions/alphasort.texi: Renamed from
54721         doc/glibc-functions/alphasort.texi.
54722         * doc/posix-functions/dirfd.texi: Renamed from
54723         doc/glibc-functions/dirfd.texi.
54724         * doc/posix-functions/dprintf.texi: Renamed from
54725         doc/glibc-functions/dprintf.texi.
54726         * doc/posix-functions/duplocale.texi: Renamed from
54727         doc/glibc-functions/duplocale.texi.
54728         * doc/posix-functions/fexecve.texi: Renamed from
54729         doc/glibc-functions/fexecve.texi.
54730         * doc/posix-functions/fmemopen.texi: Renamed from
54731         doc/glibc-functions/fmemopen.texi.
54732         * doc/posix-functions/freelocale.texi: Renamed from
54733         doc/glibc-functions/freelocale.texi.
54734         * doc/posix-functions/getdate_err.texi: Renamed from
54735         doc/glibc-functions/getdate_err.texi.
54736         * doc/posix-functions/isalnum_l.texi: Renamed from
54737         doc/glibc-functions/isalnum_l.texi.
54738         * doc/posix-functions/isalpha_l.texi: Renamed from
54739         doc/glibc-functions/isalpha_l.texi.
54740         * doc/posix-functions/isblank_l.texi: Renamed from
54741         doc/glibc-functions/isblank_l.texi.
54742         * doc/posix-functions/iscntrl_l.texi: Renamed from
54743         doc/glibc-functions/iscntrl_l.texi.
54744         * doc/posix-functions/isdigit_l.texi: Renamed from
54745         doc/glibc-functions/isdigit_l.texi.
54746         * doc/posix-functions/isgraph_l.texi: Renamed from
54747         doc/glibc-functions/isgraph_l.texi.
54748         * doc/posix-functions/islower_l.texi: Renamed from
54749         doc/glibc-functions/islower_l.texi.
54750         * doc/posix-functions/isprint_l.texi: Renamed from
54751         doc/glibc-functions/isprint_l.texi.
54752         * doc/posix-functions/ispunct_l.texi: Renamed from
54753         doc/glibc-functions/ispunct_l.texi.
54754         * doc/posix-functions/isspace_l.texi: Renamed from
54755         doc/glibc-functions/isspace_l.texi.
54756         * doc/posix-functions/isupper_l.texi: Renamed from
54757         doc/glibc-functions/isupper_l.texi.
54758         * doc/posix-functions/iswalnum_l.texi: Renamed from
54759         doc/glibc-functions/iswalnum_l.texi.
54760         * doc/posix-functions/iswalpha_l.texi: Renamed from
54761         doc/glibc-functions/iswalpha_l.texi.
54762         * doc/posix-functions/iswblank_l.texi: Renamed from
54763         doc/glibc-functions/iswblank_l.texi.
54764         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54765         doc/glibc-functions/iswcntrl_l.texi.
54766         * doc/posix-functions/iswctype_l.texi: Renamed from
54767         doc/glibc-functions/iswctype_l.texi.
54768         * doc/posix-functions/iswdigit_l.texi: Renamed from
54769         doc/glibc-functions/iswdigit_l.texi.
54770         * doc/posix-functions/iswgraph_l.texi: Renamed from
54771         doc/glibc-functions/iswgraph_l.texi.
54772         * doc/posix-functions/iswlower_l.texi: Renamed from
54773         doc/glibc-functions/iswlower_l.texi.
54774         * doc/posix-functions/iswprint_l.texi: Renamed from
54775         doc/glibc-functions/iswprint_l.texi.
54776         * doc/posix-functions/iswpunct_l.texi: Renamed from
54777         doc/glibc-functions/iswpunct_l.texi.
54778         * doc/posix-functions/iswspace_l.texi: Renamed from
54779         doc/glibc-functions/iswspace_l.texi.
54780         * doc/posix-functions/iswupper_l.texi: Renamed from
54781         doc/glibc-functions/iswupper_l.texi.
54782         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54783         doc/glibc-functions/iswxdigit_l.texi.
54784         * doc/posix-functions/isxdigit_l.texi: Renamed from
54785         doc/glibc-functions/isxdigit_l.texi.
54786         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54787         doc/glibc-functions/mbsnrtowcs.texi.
54788         * doc/posix-functions/mkdtemp.texi: Renamed from
54789         doc/glibc-functions/mkdtemp.texi.
54790         * doc/posix-functions/newlocale.texi: Renamed from
54791         doc/glibc-functions/newlocale.texi.
54792         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54793         doc/glibc-functions/nl_langinfo_l.texi.
54794         * doc/posix-functions/open_memstream.texi: Renamed from
54795         doc/glibc-functions/open_memstream.texi.
54796         * doc/posix-functions/opterr.texi: Renamed from
54797         doc/glibc-functions/opterr.texi.
54798         * doc/posix-functions/optind.texi: Renamed from
54799         doc/glibc-functions/optind.texi.
54800         * doc/posix-functions/optopt.texi: Renamed from
54801         doc/glibc-functions/optopt.texi.
54802         * doc/posix-functions/psignal.texi: Renamed from
54803         doc/glibc-functions/psignal.texi.
54804         * doc/posix-functions/scandir.texi: Renamed from
54805         doc/glibc-functions/scandir.texi.
54806         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54807         doc/glibc-functions/sched_get_priority_min.texi.
54808         * doc/posix-functions/signgam.texi: Renamed from
54809         doc/glibc-functions/signgam.texi.
54810         * doc/posix-functions/stpcpy.texi: Renamed from
54811         doc/glibc-functions/stpcpy.texi.
54812         * doc/posix-functions/stpncpy.texi: Renamed from
54813         doc/glibc-functions/stpncpy.texi.
54814         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54815         doc/glibc-functions/strcasecmp_l.texi.
54816         * doc/posix-functions/strcoll_l.texi: Renamed from
54817         doc/glibc-functions/strcoll_l.texi.
54818         * doc/posix-functions/strfmon_l.texi: Renamed from
54819         doc/glibc-functions/strfmon_l.texi.
54820         * doc/posix-functions/strftime_l.texi: Renamed from
54821         doc/glibc-functions/strftime_l.texi.
54822         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54823         doc/glibc-functions/strncasecmp_l.texi.
54824         * doc/posix-functions/strndup.texi: Renamed from
54825         doc/glibc-functions/strndup.texi.
54826         * doc/posix-functions/strnlen.texi: Renamed from
54827         doc/glibc-functions/strnlen.texi.
54828         * doc/posix-functions/strsignal.texi: Renamed from
54829         doc/glibc-functions/strsignal.texi.
54830         * doc/posix-functions/strxfrm_l.texi: Renamed from
54831         doc/glibc-functions/strxfrm_l.texi.
54832         * doc/posix-functions/timer_gettime.texi: Renamed from
54833         doc/glibc-functions/timer_gettime.texi.
54834         * doc/posix-functions/tolower_l.texi: Renamed from
54835         doc/glibc-functions/tolower_l.texi.
54836         * doc/posix-functions/toupper_l.texi: Renamed from
54837         doc/glibc-functions/toupper_l.texi.
54838         * doc/posix-functions/towctrans_l.texi: Renamed from
54839         doc/glibc-functions/towctrans_l.texi.
54840         * doc/posix-functions/towlower_l.texi: Renamed from
54841         doc/glibc-functions/towlower_l.texi.
54842         * doc/posix-functions/towupper_l.texi: Renamed from
54843         doc/glibc-functions/towupper_l.texi.
54844         * doc/posix-functions/uselocale.texi: Renamed from
54845         doc/glibc-functions/uselocale.texi.
54846         * doc/posix-functions/vdprintf.texi: Renamed from
54847         doc/glibc-functions/vdprintf.texi.
54848         * doc/posix-functions/wcpcpy.texi:
54849         Renamed from doc/glibc-functions/wcpcpy.texi.
54850         * doc/posix-functions/wcpncpy.texi: Renamed from
54851         doc/glibc-functions/wcpncpy.texi.
54852         * doc/posix-functions/wcscasecmp.texi: Renamed from
54853         doc/glibc-functions/wcscasecmp.texi.
54854         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54855         doc/glibc-functions/wcscasecmp_l.texi.
54856         * doc/posix-functions/wcscoll_l.texi: Renamed from
54857         doc/glibc-functions/wcscoll_l.texi.
54858         * doc/posix-functions/wcsdup.texi: Renamed from
54859         doc/glibc-functions/wcsdup.texi.
54860         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54861         doc/glibc-functions/wcsncasecmp.texi.
54862         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54863         doc/glibc-functions/wcsncasecmp_l.texi.
54864         * doc/posix-functions/wcsnlen.texi: Renamed from
54865         doc/glibc-functions/wcsnlen.texi.
54866         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54867         doc/glibc-functions/wcsnrtombs.texi.
54868         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54869         doc/glibc-functions/wcsxfrm_l.texi.
54870         * doc/posix-functions/wctrans_l.texi: Renamed from
54871         doc/glibc-functions/wctrans_l.texi.
54872         * doc/posix-functions/wctype_l.texi: Renamed from
54873         doc/glibc-functions/wctype_l.texi.
54874         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54875         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54876         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54877         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54878         these subsections.
54879         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54880         Remove sections.
54881
54882 2008-12-14  Bruno Haible  <bruno@clisp.org>
54883
54884         Update doc for POSIX:2008.
54885         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54886
54887 2008-12-14  Bruno Haible  <bruno@clisp.org>
54888
54889         Update doc for POSIX:2008.
54890         * doc/pastposix-functions/bcmp.texi: Renamed from
54891         doc/posix-functions/bcmp.texi.
54892         * doc/pastposix-functions/bcopy.texi: Renamed from
54893         doc/posix-functions/bcopy.texi.
54894         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54895         doc/posix-functions/bsd_signal.texi.
54896         * doc/pastposix-functions/bzero.texi: Renamed from
54897         doc/posix-functions/bzero.texi.
54898         * doc/pastposix-functions/ecvt.texi: Renamed from
54899         doc/posix-functions/ecvt.texi.
54900         * doc/pastposix-functions/fcvt.texi: Renamed from
54901         doc/posix-functions/fcvt.texi.
54902         * doc/pastposix-functions/ftime.texi: Renamed from
54903         doc/posix-functions/ftime.texi.
54904         * doc/pastposix-functions/gcvt.texi: Renamed from
54905         doc/posix-functions/gcvt.texi.
54906         * doc/pastposix-functions/getcontext.texi: Renamed from
54907         doc/posix-functions/getcontext.texi.
54908         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54909         doc/posix-functions/gethostbyaddr.texi.
54910         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54911         doc/posix-functions/gethostbyname.texi.
54912         * doc/pastposix-functions/getwd.texi: Renamed from
54913         doc/posix-functions/getwd.texi.
54914         * doc/pastposix-functions/h_errno.texi: Renamed from
54915         doc/posix-functions/h_errno.texi.
54916         * doc/pastposix-functions/index.texi: Renamed from
54917         doc/posix-functions/index.texi.
54918         * doc/pastposix-functions/makecontext.texi: Renamed from
54919         doc/posix-functions/makecontext.texi.
54920         * doc/pastposix-functions/mktemp.texi: Renamed from
54921         doc/posix-functions/mktemp.texi.
54922         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54923         doc/posix-functions/pthread_attr_getstackaddr.texi.
54924         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54925         doc/posix-functions/pthread_attr_setstackaddr.texi.
54926         * doc/pastposix-functions/rindex.texi: Renamed from
54927         doc/posix-functions/rindex.texi.
54928         * doc/pastposix-functions/scalb.texi: Renamed from
54929         doc/posix-functions/scalb.texi.
54930         * doc/pastposix-functions/setcontext.texi: Renamed from
54931         doc/posix-functions/setcontext.texi.
54932         * doc/pastposix-functions/swapcontext.texi: Renamed from
54933         doc/posix-functions/swapcontext.texi.
54934         * doc/pastposix-functions/ualarm.texi: Renamed from
54935         doc/posix-functions/ualarm.texi.
54936         * doc/pastposix-functions/usleep.texi: Renamed from
54937         doc/posix-functions/usleep.texi.
54938         * doc/pastposix-functions/vfork.texi: Renamed from
54939         doc/posix-functions/vfork.texi.
54940         * doc/pastposix-functions/wcswcs.texi: Renamed from
54941         doc/posix-functions/wcswcs.texi.
54942         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54943         (Function Substitutes): Update.
54944
54945 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54946
54947         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54948         m4/strerror.m4.
54949
54950 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54951             Bruno Haible  <bruno@clisp.org>
54952
54953         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54954
54955 2008-12-13  Bruno Haible  <bruno@clisp.org>
54956
54957         * modules/strtoull (Depends-on): Remove unistd.
54958
54959 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54960
54961         * modules/strtoull (Depends-on): Add stdlib.
54962
54963 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54964
54965         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54966
54967 2008-12-10  Jim Meyering  <meyering@redhat.com>
54968
54969         gl_ASSERT: don't say assertions are disabled when they're not
54970         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54971         "checking whether to enable assertions... no", when they are in
54972         fact enabled.  This is solely a bug in the output of configure.
54973         In spite of saying "no", NDEBUG was not defined in that case.
54974         Also, as noted by Eric Blake, leave assertions enabled upon
54975         --enable-assert=INVALID.
54976
54977 2008-12-10  Bruno Haible  <bruno@clisp.org>
54978
54979         Change MODULES.html to refer to POSIX:2008 where possible.
54980         * MODULES.html.sh (POSIX2008_URL): New variable.
54981         (posix_headers): Remove sys/timeb, ucontext.
54982         (posix2001_headers): New variable.
54983         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54984         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54985         index, makecontext, mktemp, pthread_attr_getstackaddr,
54986         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54987         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54988         (posix2001_functions): New variable.
54989         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54990         otherwise.
54991
54992 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54993
54994         add missing include to parse-duration.c
54995         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54996         * modules/parse-duration (Depends-on): Add xalloc.
54997
54998         fix sed script reading maint.mk
54999         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55000         (syntax-check-rules): Use it.
55001
55002 2008-12-09  Bruno Haible  <bruno@clisp.org>
55003
55004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55005         MacOS X 10.4/PowerPC.
55006         Reported by Simon Josefsson.
55007
55008 2008-12-08  Jim Meyering  <meyering@redhat.com>
55009
55010         work around mingw's lack of some S_IF definitions
55011         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55012         Reported by Simon Josefsson.
55013
55014 2008-12-08  Bruno Haible  <bruno@clisp.org>
55015
55016         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55017         applied to variables. Needed on MacOS X 10.4/PowerPC.
55018         Reported by Simon Josefsson.
55019
55020 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55021         and Eric Blake  <ebb9@byu.net>
55022
55023         assert: honor --enable-assert
55024         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55025         order to honor --enable-assert, rather than treating it as a
55026         synonym for --disable-assert.
55027
55028 2008-12-08  Jim Meyering  <meyering@redhat.com>
55029
55030         * lib/posixtm.c: Remove now-useless declaration of mktime.
55031
55032         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55033
55034 2008-12-07  Bruno Haible  <bruno@clisp.org>
55035
55036         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55037         test_once): Mark functions as static.
55038         * tests/test-tls.c (test_tls): Likewise.
55039
55040 2008-12-07  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55043         iconv_register_autodetect.
55044
55045 2008-12-07  Jim Meyering  <meyering@redhat.com>
55046
55047         posixtm.c: avoid a warning
55048         * lib/posixtm.c (posixtime): Don't initialize tm0.
55049         It's no longer needed to placate gcc4's -Wuninitialized,
55050         and the attempt to placate would elicit a new warning.
55051
55052         unicodeio.c: mark unused parameters
55053         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55054         (fallback_failure_callback): Likewise.
55055
55056 2008-12-07  Bruno Haible  <bruno@clisp.org>
55057
55058         * gnulib-tool (func_create_testdir): When building the tests
55059         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55060         Reported by Simon Josefsson.
55061
55062 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55063
55064         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55065
55066 2008-12-06  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55069         Suggested by Eric Blake.
55070
55071 2008-12-06  Bruno Haible  <bruno@clisp.org>
55072
55073         Fix a c-stack test failure on MacOS X.
55074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55075         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55076         handler for SIGBUS as well.
55077         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55078         install a signal handler for SIGBUS as well.
55079         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55080
55081 2008-12-06  Bruno Haible  <bruno@clisp.org>
55082
55083         Advocacy documentation.
55084         * doc/gnulib-intro.texi (Benefits): New section.
55085         * doc/gnulib.texi: Update.
55086
55087 2008-12-06  Bruno Haible  <bruno@clisp.org>
55088
55089         Document the 'manywarnings' module.
55090         * doc/manywarnings.texi: New file.
55091         * doc/gnulib.texi: Include it.
55092
55093 2008-12-05  Eric Blake  <ebb9@byu.net>
55094
55095         tests: silence some gcc warnings
55096         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55097         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55098         type mismatches.
55099
55100 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55101             Bruno Haible  <bruno@clisp.org>
55102
55103         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55104
55105 2008-11-29  Jim Meyering  <meyering@redhat.com>
55106
55107         unicodeio.c: mark unused parameters
55108         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55109         (fallback_failure_callback): Likewise.
55110
55111         fts: fix a thinko
55112         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55113         (set_stat_type): Return S_IF*-valued "type" directly.
55114         Prompted by James Youngman's spotting a related bug.
55115         Confirmed by further testing through find.
55116
55117         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55118         * lib/fts.c (D_TYPE): Define.
55119         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55120         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55121         (s_ifmt_shift_bits): New function.
55122         (set_stat_type): New function.
55123         (fts_build): When not calling fts_stat, call set_stat_type
55124         to propagate dirent.d_type info to fts_read caller.
55125         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55126         fts_statp->st_mode type information may be valid.
55127
55128 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55129
55130         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55131         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55132         <sds@gnu.org>.
55133
55134 2008-11-20  Bruno Haible  <bruno@clisp.org>
55135
55136         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55137         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55138         INCLUDE_NEXT.
55139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55140         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55141         * modules/math (Makefile.am): Substitute
55142         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55144
55145 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55146             Bruno Haible  <bruno@clisp.org>
55147
55148         * lib/stdint.in.h: Define all type macros so that their expansion is
55149         a single typedef'ed token. Fixes a compilation failure in Boost which
55150         does "using ::int8_t;".
55151
55152 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55153
55154         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55155         gl_MANYWARN_ALL_GCC.
55156         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55157         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55158         * modules/manywarnings: New file.
55159         * MODULES.html.sh: Mention manywarnings module.
55160
55161 2008-11-18  Bruno Haible  <bruno@clisp.org>
55162
55163         * doc/gnulib-tool.texi (Unit tests): New section.
55164
55165 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55166
55167         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55168         paths like 'lib/po/foo.po'.
55169
55170 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55171
55172         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55173         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55174
55175 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55176
55177         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55178         parameter works.
55179
55180 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55181
55182         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55183
55184 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55185
55186         * modules/parse-duration-tests: New file.
55187         * tests/test-parse-duration.sh: New file.
55188         * tests/test-parse-duration.c: New file.
55189
55190         New module 'parse-duration'.
55191         * lib/parse-duration.h: New file.
55192         * lib/parse-duration.c: New file.
55193         * modules/parse-duration: New file.
55194
55195 2008-11-17  Bruno Haible  <bruno@clisp.org>
55196
55197         * tests/test-select-out.sh: Comment out the first pipe test.
55198         Reported by Simon Josefsson.
55199
55200 2008-11-17  Bruno Haible  <bruno@clisp.org>
55201
55202         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55204         gl_HOSTENT.
55205
55206 2008-11-17  Bruno Haible  <bruno@clisp.org>
55207
55208         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55209         -lnetwork and -lnet. Needed for Haiku and BeOS.
55210
55211 2008-11-16  Bruno Haible  <bruno@clisp.org>
55212
55213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55214
55215 2008-11-16  Bruno Haible  <bruno@clisp.org>
55216
55217         Avoid test failure on Haiku.
55218         * tests/test-fsync.c: Include <errno.h>.
55219         (main): Don't require that fsync (0) fails.
55220
55221 2008-11-15  Bruno Haible  <bruno@clisp.org>
55222
55223         New module 'hostent'.
55224         * modules/hostent: New file.
55225         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55226
55227 2008-11-15  Bruno Haible  <bruno@clisp.org>
55228
55229         New module 'servent'.
55230         * modules/servent: New file.
55231         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55232
55233 2008-11-15  Bruno Haible  <bruno@clisp.org>
55234
55235         Avoid generating same test program with two different rules.
55236         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55237         test-frexp to test-frexp-nolibm.
55238         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55239         test-frexpl to test-frexpl-nolibm.
55240
55241 2008-11-15  Bruno Haible  <bruno@clisp.org>
55242
55243         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55244         $(FREXPL_LIBM).
55245
55246 2008-11-15  Bruno Haible  <bruno@clisp.org>
55247
55248         * lib/netdb.in.h: Activate the definitions also when the system's
55249         <netdb.h> has 'struct addrinfo'.
55250         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55251         EAI_OVERFLOW or AI_NUMERICSERV.
55252         * doc/posix-headers/netdb.texi: Document the problem.
55253
55254 2008-11-15  Bruno Haible  <bruno@clisp.org>
55255
55256         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55257
55258         Make the 'sched' module work on platforms where <sched.h> exists but
55259         is incomplete (such as Haiku).
55260         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55261         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55262         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55263         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55264         HAVE_STRUCT_SCHED_PARAM.
55265         * modules/sched (Depends-on): Add include_next.
55266         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55267         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55268         * doc/posix-headers/sched.texi: Document the issue.
55269
55270 2008-11-13  Jim Meyering  <meyering@redhat.com>
55271
55272         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55273         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55274         test would fail due to the difference in the Report bugs to ...
55275         line.  The expected address is empty, "<>", while the actual
55276         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55277
55278 2008-11-12  Bruno Haible  <bruno@clisp.org>
55279
55280         lstat: don't compile lstat.c on systems lacking lstat
55281         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55282         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55283         Reported by Daniel P. Berrange via Jim Meyering.
55284
55285 2008-11-12  Jim Meyering  <meyering@redhat.com>
55286
55287         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55288
55289 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55290
55291         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55292         instead.
55293
55294 2008-11-12  Bruno Haible  <bruno@clisp.org>
55295
55296         * lib/unicodeio.c: Include unistr.h.
55297         (utf8_wctomb): Remove function.
55298         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55299
55300 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55301
55302         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55303         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55304         <bruno@clisp.org>.
55305         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55306
55307 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55308
55309         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55310         * doc/gnulib.texi: Add section for warnings.
55311
55312 2008-11-11  Bruno Haible  <bruno@clisp.org>
55313
55314         * lib/sockets.h: Add a comment.
55315
55316 2008-11-11  Karl Berry  <karl@gnu.org>
55317
55318         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55319
55320 2008-11-11  Eric Blake  <ebb9@byu.net>
55321
55322         fdl.texi: avoid git symlinks
55323         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55324
55325 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55326
55327         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55328
55329 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55330
55331         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55332         (gl_WARN_ADD): Substitute $2 if literal.
55333
55334 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55335
55336         * m4/warning.m4: Remove.
55337
55338 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55339
55340         * m4/warnings.m4: Almost complete rewrite. :-)
55341
55342 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55343
55344         * modules/warnings: New module.
55345         * m4/warnings.m4: New file.
55346         * MODULES.html.sh: Mention warnings module.
55347         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55348         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55349
55350 2008-11-10  Eric Blake  <ebb9@byu.net>
55351
55352         fdl.texi: make a symlink to the latest version
55353         * doc/standards.texi: Revert today's earlier change.
55354         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55355         * doc/fdl.texi: ...and replace this with a symlink to the newer
55356         fdl-1.3.texi.
55357
55358 2008-11-10  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-select-fd.c (main): Accept the result file name as fourth
55361         argument.
55362         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55363         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55364
55365 2008-11-10  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55368         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55369         as autoconf-substituted macros.
55370         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55372         gl_NETDB_H_DEFAULTS. Set these variables.
55373         * modules/netdb (Makefile.am): Substitute these variables.
55374
55375 2008-11-10  Eric Blake  <ebb9@byu.net>
55376
55377         standards.texi: include correct file for FDL 1.3
55378         * doc/standards.texi (GNU Free Documentation License): Change
55379         include file to pull in FDL 1.3, not 1.2.
55380
55381         fdl.texi: revert accidental change to license
55382         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55383
55384 2008-11-10  Bruno Haible  <bruno@clisp.org>
55385
55386         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55387         cross-compiling guesses also when the native compile gives no result.
55388
55389 2008-11-10  Bruno Haible  <bruno@clisp.org>
55390
55391         * lib/spawni.c (__spawni): Force variable into the stack.
55392
55393 2008-11-10  Bruno Haible  <bruno@clisp.org>
55394
55395         Add support for Haiku.
55396         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55397         glibc and BeOS, but also on Haiku.
55398         * lib/fpurge.c (fpurge): Likewise.
55399         * lib/freadable.c (freadable): Likewise.
55400         * lib/freadahead.c (freadahead): Likewise.
55401         * lib/freading.c (freading): Likewise.
55402         * lib/freadptr.c (freadptr): Likewise.
55403         * lib/freadseek.c (freadptrinc): Likewise.
55404         * lib/fseeko.c (rpl_fseeko): Likewise.
55405         * lib/fseterr.c (fseterr): Likewise.
55406         * lib/fwritable.c (fwritable): Likewise.
55407         * lib/fwriting.c (fwriting): Likewise.
55408         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55409
55410 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55411
55412         * lib/config.charset: Treat Haiku like BeOS.
55413
55414 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55415
55416         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55417         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55418
55419 2008-11-08  Bruno Haible  <bruno@clisp.org>
55420
55421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55422         AC_CACHE_CHECK.
55423
55424 2008-11-08  Bruno Haible  <bruno@clisp.org>
55425
55426         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55427
55428 2008-11-08  Bruno Haible  <bruno@clisp.org>
55429
55430         * tests/test-select-fd.c: New file.
55431         * tests/test-select-in.sh: New file.
55432         * tests/test-select-out.sh: New file.
55433         * tests/test-select-stdin.c: New file.
55434         * modules/select-tests (Files): Add the new files.
55435         (Depends-on): Add gettimeofday.
55436         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55437         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55438         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55439
55440 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55441             Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55444
55445 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55446
55447         * build-aux/pmccabe2html: Added support for C++ source files.
55448
55449 2008-11-05  Ben Pfaff  <blp@gnu.org>
55450
55451         Fix lib/close.c build on Windows.
55452         * modules/close (Files): Add lib/w32sock.h.
55453
55454 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55455
55456         Accept Bison's NEWS format.
55457         * build-aux/announce-gen (print_news_deltas): Tweak
55458         $re_prefix.
55459
55460 2008-11-04  Bruno Haible  <bruno@clisp.org>
55461
55462         * modules/random_r (Maintainer): Add glibc.
55463
55464 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55465
55466         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55467         by karl@freefriends.org (Karl Berry).
55468         * doc/alloca.texi: Likewise.
55469         * doc/c-ctype.texi: Likewise.
55470         * doc/c-strcase.texi: Likewise.
55471         * doc/c-strcaseeq.texi: Likewise.
55472         * doc/c-strcasestr.texi: Likewise.
55473         * doc/c-strstr.texi: Likewise.
55474         * doc/c-strtod.texi: Likewise.
55475         * doc/c-strtold.texi: Likewise.
55476         * doc/ctime.texi: Likewise.
55477         * doc/error.texi: Likewise.
55478         * doc/fdl.texi: Likewise.
55479         * doc/gcd.texi: Likewise.
55480         * doc/getdate.texi: Likewise.
55481         * doc/gnulib-intro.texi: Likewise.
55482         * doc/gnulib-tool.texi: Likewise.
55483         * doc/gnulib.texi: Likewise.
55484         * doc/inet_ntoa.texi: Likewise.
55485         * doc/maintain.texi: Likewise.
55486         * doc/make-stds.texi: Likewise.
55487         * doc/quote.texi: Likewise.
55488         * doc/regexprops-generic.texi: Likewise.
55489         * doc/standards.texi: Likewise.
55490         * doc/verify.texi: Likewise.
55491         * doc/visibility.texi: Likewise.
55492         * doc/gnulib.texi (GNU Free Documentation License): Include
55493         fdl-1.3.texi instead of fdl.texi.
55494
55495 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55496
55497         * doc/fdl-1.3.texi: New file, from
55498         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55499         * modules/fdl-1.3: Add.
55500         * MODULES.html.sh: Add fdl-1.3.
55501
55502 2008-11-03  Bruno Haible  <bruno@clisp.org>
55503
55504         Make determination of absolute name of header file work with AIX xlc.
55505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55506         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55507         preprocessing.
55508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55509         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55510
55511 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55512
55513         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55514         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55515         <ludo@gnu.org>.
55516
55517 2008-11-02  Bruno Haible  <bruno@clisp.org>
55518
55519         Mark 'strpbrk' obsolete.
55520         * modules/strpbrk (Status, Notice): New sections.
55521         * modules/strtok_r (Depends-on): Add strpbrk.
55522
55523 2008-11-02  Bruno Haible  <bruno@clisp.org>
55524
55525         Mark 'strdup' obsolete.
55526         * modules/strdup (Status, Notice): New sections.
55527         * modules/findprog (Depends-on): Add strdup.
55528         * modules/getaddrinfo (Depends-on): Likewise.
55529         * modules/localename (Depends-on): Likewise.
55530         * modules/relocatable-lib (Depends-on): Likewise.
55531         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55532         * modules/relocatable-prog (Depends-on): Likewise.
55533         * modules/trim (Depends-on): Likewise.
55534         * modules/unictype/gen-ctype (Depends-on): Likewise.
55535         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55536
55537 2008-11-02  Bruno Haible  <bruno@clisp.org>
55538
55539         Mark 'strcspn' obsolete.
55540         * modules/strcspn (Status, Notice): New sections.
55541
55542 2008-11-02  Bruno Haible  <bruno@clisp.org>
55543
55544         Mark 'rmdir' obsolete.
55545         * modules/rmdir (Status, Notice): New sections.
55546         * modules/clean-temp (Depends-on): Add rmdir.
55547         * modules/openat (Depends-on): Likewise.
55548
55549 2008-11-02  Bruno Haible  <bruno@clisp.org>
55550
55551         Mark 'raise' obsolete.
55552         * modules/raise (Status, Notice): New sections.
55553         (Include): Specify <signal.h>.
55554         * modules/stdio (Depends-on): Add raise.
55555         * modules/write (Depends-on): Likewise.
55556
55557 2008-11-02  Bruno Haible  <bruno@clisp.org>
55558
55559         Mark 'memset' obsolete.
55560         * modules/memset (Status, Notice): New sections.
55561
55562 2008-11-02  Bruno Haible  <bruno@clisp.org>
55563
55564         Mark 'memmove' obsolete.
55565         * modules/memmove (Status, Notice): New sections.
55566         * modules/argp (Depends-on): Add memmove.
55567         * modules/argz (Depends-on): Likewise.
55568         * modules/canonicalize (Depends-on): Likewise.
55569         * modules/canonicalize-lgpl (Depends-on): Likewise.
55570         * modules/fts (Depends-on): Likewise.
55571         * modules/getcwd (Depends-on): Likewise.
55572         * modules/human (Depends-on): Likewise.
55573         * modules/regex (Depends-on): Likewise.
55574         * modules/striconveh (Depends-on): Likewise.
55575         * modules/trim (Depends-on): Likewise.
55576         * modules/unistr/u8-move (Depends-on): Likewise.
55577         * modules/unistr/u16-move (Depends-on): Likewise.
55578         * modules/unistr/u32-move (Depends-on): Likewise.
55579
55580 2008-11-02  Bruno Haible  <bruno@clisp.org>
55581
55582         Mark 'memcpy' obsolete.
55583         * modules/memcpy (Status, Notice): New sections.
55584
55585 2008-11-02  Bruno Haible  <bruno@clisp.org>
55586
55587         Mark 'memcmp' obsolete.
55588         * modules/memcmp (Status, Notice): New sections.
55589         * modules/argmatch (Depends-on): Add memchr.
55590         * modules/backupfile (Depends-on): Likewise.
55591         * modules/c-strcasestr (Depends-on): Likewise.
55592         * modules/crypto/des (Depends-on): Likewise.
55593         * modules/csharpcomp (Depends-on): Likewise.
55594         * modules/fnmatch (Depends-on): Likewise.
55595         * modules/git-merge-changelog (Depends-on): Likewise.
55596         * modules/isnand (Depends-on): Likewise.
55597         * modules/isnand-nolibm (Depends-on): Likewise.
55598         * modules/isnanf (Depends-on): Likewise.
55599         * modules/isnanf-nolibm (Depends-on): Likewise.
55600         * modules/isnanl (Depends-on): Likewise.
55601         * modules/isnanl-nolibm (Depends-on): Likewise.
55602         * modules/mbchar (Depends-on): Likewise.
55603         * modules/memcoll (Depends-on): Likewise.
55604         * modules/quotearg (Depends-on): Likewise.
55605         * modules/regex (Depends-on): Likewise.
55606         * modules/relocatable-prog (Depends-on): Likewise.
55607         * modules/same (Depends-on): Likewise.
55608         * modules/signbit (Depends-on): Likewise.
55609         * modules/strcasestr-simple (Depends-on): Likewise.
55610         * modules/unictype/gen-ctype (Depends-on): Likewise.
55611         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55612         * modules/uniname/uniname (Depends-on): Likewise.
55613         * modules/unistr/u8-cmp (Depends-on): Likewise.
55614
55615 2008-11-02  Bruno Haible  <bruno@clisp.org>
55616
55617         Mark 'memchr' obsolete.
55618         * modules/memchr (Status, Notice): New sections.
55619         * modules/argp (Depends-on): Add memchr.
55620         * modules/base64 (Depends-on): Likewise.
55621         * modules/c-strcasestr (Depends-on): Likewise.
55622         * modules/chdir-long (Depends-on): Likewise.
55623         * modules/fnmatch (Depends-on): Likewise.
55624         * modules/getsubopt (Depends-on): Likewise.
55625         * modules/git-merge-changelog (Depends-on): Likewise.
55626         * modules/glob (Depends-on): Likewise.
55627         * modules/strcasestr-simple (Depends-on): Likewise.
55628         * modules/strnlen (Depends-on): Likewise.
55629
55630 2008-11-02  Bruno Haible  <bruno@clisp.org>
55631
55632         Mark 'atexit' obsolete.
55633         * modules/atexit (Status, Notice): New sections.
55634         * modules/chdir-long (Depends-on): Add atexit.
55635         * modules/wait-process (Depends-on): Likewise.
55636
55637 2008-11-02  Bruno Haible  <bruno@clisp.org>
55638
55639         * gnulib-tool: New option --with-obsolete.
55640         (func_usage): Document it.
55641         (func_modules_transitive_closure): Drop obsolete dependencies if
55642         incobsolete is not true.
55643         (func_import): Read and save the incobsolete variable to the cache.
55644
55645 2008-11-02  Bruno Haible  <bruno@clisp.org>
55646
55647         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55648         * gnulib-tool: New option --extract-status.
55649         (func_usage): Document it.
55650         (sed_extract_prog): Recognize it.
55651         (func_get_status): New function.
55652
55653 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55654
55655         * modules/sockets (License): Change from LGPL to LGPLv2+.
55656
55657 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55658
55659         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55660
55661 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55662
55663         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55664         Mention times and sys_times.
55665         * modules/sys_times, modules/sys_times-tests: New modules.
55666         * modules/times, modules/times-tests: Likewise
55667         * m4/sys_times_h.m4: New file.
55668         * lib/sys_times.in.h: Likewise
55669         * lib/times.c: Likewise.
55670         * tests/test-sys_times.c: Likewise.
55671         * tests/test-times.c: Likewise.
55672         * doc/posix-headers/sys_times.texi: Update.
55673         * doc/posix-functions/times.texi: Update.
55674
55675 2008-10-28  Jim Meyering  <meyering@redhat.com>
55676
55677         * modules/tempname (Depends-on): Add lstat.
55678
55679         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55680
55681 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55682
55683         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55684         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55685         using idiom used elsewhere in gnulib.
55686
55687 2008-10-27  Jim Meyering  <meyering@redhat.com>
55688
55689         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55690
55691 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55692
55693         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55694         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55695         programs.
55696         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55697
55698 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55699
55700         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55701
55702 2008-10-27  Bruno Haible  <bruno@clisp.org>
55703
55704         * tests/test-lstat.c: Include <stdio.h>.
55705
55706 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55707
55708         * modules/lstat-tests: New module.
55709         * tests/test-lstat.c: New file.
55710
55711 2008-10-26  Jim Meyering  <meyering@redhat.com>
55712
55713         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55714
55715 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55716             Bruno Haible  <bruno@clisp.org>
55717
55718         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55719         * modules/configmake (Include): Add a note that the include must come
55720         after all system headers.
55721         * lib/javaversion.c: Include configmake.h after all other includes.
55722
55723 2008-10-26  Bruno Haible  <bruno@clisp.org>
55724
55725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55726         HAVE_STRUCT_RANDOM_DATA to 1.
55727         (gl_STDLIB_H): Simplify.
55728
55729 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55730
55731         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55732         substitute HAVE_STRUCT_RANDOM_DATA.
55733         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55734         random_data.
55735         * modules/stdlib (Makefile.am): Substitute
55736         HAVE_STRUCT_RANDOM_DATA.
55737
55738 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55739
55740         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55741         * doc/gnulib-intro.texi (Copyright): Likewise.
55742
55743 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55744
55745         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55746         findings.
55747
55748 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55749             Bruno Haible  <bruno@clisp.org>
55750
55751         * lib/unistd.in.h: Include <winsock2.h>.
55752         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55753         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55754         Provide dummy declarations.
55755         (gethostname): Override.
55756         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55757         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55758         gl_PREREQ_SYS_H_WINSOCK2.
55759         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55760         * doc/posix-functions/gethostname.texi: More details.
55761
55762 2008-10-25  Bruno Haible  <bruno@clisp.org>
55763
55764         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55765         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55766         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55767
55768         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55769         here ...
55770         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55772         gl_UNISTD_H_DEFAULTS.
55773
55774 2008-10-25  Eric Blake  <ebb9@byu.net>
55775
55776         signbit: avoid spurious compiler failure
55777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55778         declarations inside function.
55779
55780 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55781             Bruno Haible  <bruno@clisp.org>
55782
55783         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55784         * modules/random_r (Depends-on): Add stdint.
55785
55786 2008-10-24  Bruno Haible  <bruno@clisp.org>
55787
55788         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55789         Eggert.
55790         * modules/strerror (License): Likewise.
55791
55792 2008-10-24  Jim Meyering  <meyering@redhat.com>
55793
55794         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55795         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55796
55797 2008-10-24  Eric Blake  <ebb9@byu.net>
55798
55799         getgroups: fix compilation when getgroups is available
55800         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55801         but with <config.h> override of getgroups disabled.
55802
55803 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55804
55805         * doc/gnulib.texi (Header files): Add note about C++ problems.
55806         Explained by Bruno Haible <bruno@clisp.org>.
55807
55808 2008-10-23  Bruno Haible  <bruno@clisp.org>
55809
55810         Define a dummy SA_NODEFER macro on Interix.
55811         * lib/signal.in.h (SA_NODEFER): Define fallback.
55812         Reported by Aleksey Cheusov <cheusov@tut.by> via
55813         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55814
55815 2008-10-23  Bruno Haible  <bruno@clisp.org>
55816
55817         * modules/freadahead (License): Change to LGPLv2+.
55818         Suggested by Simon Josefsson.
55819
55820 2008-10-23  Jim Meyering  <meyering@redhat.com>
55821
55822         random_r: new module
55823         * modules/random_r: New file.
55824         * m4/random_r.m4: New file.
55825         * lib/random_r.c: New file, from glibc.
55826         * modules/random_r-tests: New file.
55827         * tests/test-random_r.c: New file.
55828         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55829          Declare.
55830         (RAND_MAX): Define.
55831         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55832         * modules/stdlib: Substitute them, too.
55833         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55834         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55835         * doc/glibc-functions/random_r.texi: Likewise.
55836         * doc/glibc-functions/setstate_r.texi: Likewise.
55837         * doc/glibc-functions/srandom_r.texi: Likewise.
55838         * config/srclist.txt: Mention it.
55839
55840 2008-10-23  David Lutterkort  <lutter@redhat.com>
55841
55842         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55843         link requirement
55844
55845 2008-10-23  Jim Meyering  <meyering@redhat.com>
55846
55847         selinux-h: mark parameters of stub functions as intentionally unused
55848         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55849         * lib/se-context.in.h: Likewise.
55850
55851 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55852
55853         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55854
55855 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55856
55857         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55858
55859 2008-10-22  Eric Blake  <ebb9@byu.net>
55860
55861         glthread/thread: avoid compiler warning
55862         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55863         Add unreachable abort to silence compiler.
55864
55865 2008-10-22  Eric Blake  <ebb9@byu.net>
55866
55867         netdb: also supply struct addrinfo for cygwin 1.5.x
55868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55869         older cygwin.
55870         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55871         cygwin.
55872         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55873
55874 2008-10-22  Bruno Haible  <bruno@clisp.org>
55875
55876         * users.txt: Update entry about pspp.
55877
55878 2008-10-21  Bruno Haible  <bruno@clisp.org>
55879
55880         Simplification.
55881         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55882         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55883
55884         Simplification.
55885         * lib/ioctl.c (ioctl): Don't undefine.
55886         * lib/socket.c (socket): Don't undefine.
55887
55888         Remove unused module indicator macros.
55889         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55890         GNULIB_$1 as a C macro.
55891
55892         * doc/posix-functions/close.texi: Undo last change.
55893         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55894         Windows platforms.
55895
55896 2008-10-21  Bruno Haible  <bruno@clisp.org>
55897
55898         Add gethostname() declaration to <unistd.h>.
55899         * lib/unistd.in.h (gethostname): New declaration.
55900         * lib/gethostname.c: Include <unistd.h>.
55901         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55902         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55904         and HAVE_GETHOSTNAME.
55905         * modules/gethostname (Depends-on): Add unistd.
55906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55907         (Include): Specify <unistd.h>.
55908         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55909         HAVE_GETHOSTNAME.
55910         * tests/test-gethostname.c: Include <unistd.h> first.
55911
55912 2008-10-21  Bruno Haible  <bruno@clisp.org>
55913
55914         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55915         * modules/select-tests (Depends-on): Likewise.
55916         Reported by Simon Josefsson.
55917
55918 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55919
55920         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55921         * lib/accept.c: New file, based on winsock.c.
55922         * lib/bind.c: New file, based on winsock.c.
55923         * lib/connect.c: New file, based on winsock.c.
55924         * lib/getpeername.c: New file, based on winsock.c.
55925         * lib/getsockname.c: New file, based on winsock.c.
55926         * lib/getsockopt.c: New file, based on winsock.c.
55927         * lib/ioctl.c: New file, based on winsock.c.
55928         * lib/listen.c: New file, based on winsock.c.
55929         * lib/recv.c: New file, based on winsock.c.
55930         * lib/recvfrom.c: New file, based on winsock.c.
55931         * lib/send.c: New file, based on winsock.c.
55932         * lib/sendto.c: New file, based on winsock.c.
55933         * lib/setsockopt.c: New file, based on winsock.c.
55934         * lib/shutdown.c: New file, based on winsock.c.
55935         * lib/socket.c: New file, based on winsock.c.
55936         * lib/w32sock.h: New file, based on winsock.c.
55937         * lib/winsock.c: Remove file.
55938         * modules/accept: Likewise.
55939         * modules/bind: Likewise.
55940         * modules/connect: Likewise.
55941         * modules/getpeername: Likewise.
55942         * modules/getsockname: Likewise.
55943         * modules/getsockopt: Likewise.
55944         * modules/ioctl: Likewise.
55945         * modules/listen: Likewise.
55946         * modules/recv: Likewise.
55947         * modules/recvfrom: Likewise.
55948         * modules/send: Likewise.
55949         * modules/sendto: Likewise.
55950         * modules/setsockopt: Likewise.
55951         * modules/shutdown: Likewise.
55952         * modules/socket: Use socket.c instead of winsock.c.
55953         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55954         * doc/posix-functions/accept.texi: Doc fix.
55955         * doc/posix-functions/bind.texi: Doc fix.
55956         * doc/posix-functions/close.texi: Doc fix.
55957         * doc/posix-functions/connect.texi: Doc fix.
55958         * doc/posix-functions/getpeername.texi: Doc fix.
55959         * doc/posix-functions/getsockname.texi: Doc fix.
55960         * doc/posix-functions/getsockopt.texi: Doc fix.
55961         * doc/posix-functions/ioctl.texi: Doc fix.
55962         * doc/posix-functions/listen.texi: Doc fix.
55963         * doc/posix-functions/recv.texi: Doc fix.
55964         * doc/posix-functions/recvfrom.texi: Doc fix.
55965         * doc/posix-functions/send.texi: Doc fix.
55966         * doc/posix-functions/sendto.texi: Doc fix.
55967         * doc/posix-functions/setsockopt.texi: Doc fix.
55968         * doc/posix-functions/shutdown.texi: Doc fix.
55969         * doc/posix-functions/socket.texi: Doc fix.
55970
55971 2008-10-20  Bruno Haible  <bruno@clisp.org>
55972
55973         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55974         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55975         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55976         as an alias for SIGABRT.
55977         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55978         (sigaction): Map it to SIGABRT.
55979         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55980
55981 2008-10-20  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/fts.c: Don't include lstat.h.
55984         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55985
55986         Move the lstat() declaration to <sys/stat.h>.
55987         * lib/lstat.h: Remove file.
55988         * lib/sys_stat.in.h: Add special invocation convention.
55989         (lstat): New declaration.
55990         * lib/lstat.c (orig_lstat): New function.
55991         (rpl_lstat): Use orig_lstat instead of lstat.
55992         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55993         AC_C_INLINE. Set REPLACE_LSTAT.
55994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55995         and REPLACE_LSTAT.
55996         * modules/lstat (Files): Remove lib/lstat.h.
55997         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55998         (Include): Specify <sys/stat.h> instead of lstat.h.
55999         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56000         REPLACE_LSTAT.
56001         * NEWS: Mention the change.
56002
56003 2008-10-20  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/posix_spawn-tests: New file.
56006         * tests/test-posix_spawn3.c: New file.
56007
56008 2008-10-20  Bruno Haible  <bruno@clisp.org>
56009
56010         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56011         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56012         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56013         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56014         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56015
56016 2008-10-20  Bruno Haible  <bruno@clisp.org>
56017
56018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56019         of posix_spawn on AIX 5.3.
56020
56021 2008-10-20  Bruno Haible  <bruno@clisp.org>
56022
56023         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56024
56025 2008-10-20  Bruno Haible  <bruno@clisp.org>
56026
56027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56028         of AC_LANG_PROGRAM.
56029
56030 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56031
56032         * lib/netdb.in.h: Don't define GNU specific constants until they
56033         are supported or needed.  Reported by Bruno Haible
56034         <bruno@clisp.org>.
56035
56036 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56037
56038         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56039
56040 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56041
56042         * lib/getaddrinfo.h: Remove file.
56043         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56044         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56045         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56046         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56047         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56048         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56049         * tests/test-getaddrinfo.c: Likewise.
56050         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56051         * NEWS: Mention change.
56052
56053 2008-10-19  Bruno Haible  <bruno@clisp.org>
56054
56055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56056
56057 2008-10-19  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/wait-process.c: Include simply <sys/wait.h>.
56060         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56061         WIFSTOPPED): Remove fallback definitions.
56062         * modules/wait-process (Depends-on): Add sys_wait.
56063
56064         New module 'sys_wait'.
56065         * modules/sys_wait: New file.
56066         * lib/sys_wait.in.h: New file, partially copied from
56067         lib/wait-process.c.
56068         * m4/sys_wait_h.m4: New file.
56069         * doc/posix-headers/sys_wait.texi: Mention the new module.
56070
56071 2008-10-19  Bruno Haible  <bruno@clisp.org>
56072
56073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56074
56075 2008-10-19  Bruno Haible  <bruno@clisp.org>
56076
56077         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56078         * lib/wait-process.c (WAIT_T): Remove type.
56079         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56080         (wait_subprocess): Update.
56081
56082 2008-10-19  Bruno Haible  <bruno@clisp.org>
56083
56084         New module 'atoll'.
56085         * modules/atoll: New file.
56086         * lib/stdlib.in.h (atoll): New declaration.
56087         * lib/atoll.c: New file, from glibc with modifications.
56088         * m4/atoll.m4: New file.
56089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56090         HAVE_ATOLL.
56091         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56092         * doc/posix-functions/atoll.texi: Mention the new module.
56093
56094 2008-10-19  Bruno Haible  <bruno@clisp.org>
56095
56096         Add strtoull() declaration to <stdlib.h>.
56097         * lib/stdlib.in.h (strtoull): New declaration.
56098         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56099         Set HAVE_STRTOULL.
56100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56101         HAVE_STRTOULL.
56102         * modules/strtoull (Depends-on): Add stdlib.
56103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56104         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56105         HAVE_STRTOULL.
56106
56107 2008-10-19  Bruno Haible  <bruno@clisp.org>
56108
56109         Add strtoll() declaration to <stdlib.h>.
56110         * lib/stdlib.in.h (strtoll): New declaration.
56111         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56112         Set HAVE_STRTOLL.
56113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56114         HAVE_STRTOLL.
56115         * modules/strtoll (Depends-on): Add stdlib.
56116         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56117         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56118
56119 2008-10-19  Bruno Haible  <bruno@clisp.org>
56120
56121         * modules/bcopy (Depends-on): Add strings.
56122         (Include): Specify <strings.h>.
56123
56124 2008-10-19  Bruno Haible  <bruno@clisp.org>
56125
56126         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56127
56128 2008-10-19  Bruno Haible  <bruno@clisp.org>
56129
56130         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56131         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56132         mingw.
56133
56134 2008-10-19  Bruno Haible  <bruno@clisp.org>
56135
56136         * lib/atanl.c: Don't include isnanl.h.
56137         * lib/cosl.c: Likewise.
56138         * lib/ldexpl.c: Likewise.
56139         * lib/logl.c: Likewise.
56140         * lib/sinl.c: Likewise.
56141         * lib/sqrtl.c: Likewise.
56142         * lib/tanl.c: Likewise.
56143
56144         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56145         * lib/isnanf.h: Remove file.
56146         * lib/isnand.h: Remove file.
56147         * lib/isnanl.h: Remove file.
56148         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56149         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56150         macros.
56151         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56152         HAVE_ISNANF, don't define it as a C macro.
56153         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56154         HAVE_ISNAND, don't define it as a C macro.
56155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56156         HAVE_ISNANL, don't define it as a C macro.
56157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56158         HAVE_ISNAN[FDL].
56159         * modules/isnanf (Files): Remove lib/isnanf.h.
56160         (Depends-on): Add math.
56161         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56162         (Include): Specify <math.h> instead of isnanf.h.
56163         * modules/isnand (Files): Remove lib/isnand.h.
56164         (Depends-on): Add math.
56165         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56166         (Include): Specify <math.h> instead of isnand.h.
56167         * modules/isnanl (Files): Remove lib/isnanl.h.
56168         (Depends-on): Add math.
56169         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56170         (Include): Specify <math.h> instead of isnanl.h.
56171         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56172         HAVE_ISNAN[FDL].
56173         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56174         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56175         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56176         * NEWS: Mention the change.
56177
56178 2008-10-18  Bruno Haible  <bruno@clisp.org>
56179
56180         Add getusershell(), setusershell(), endusershell() declarations to
56181         <unistd.h>.
56182         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56183         declarations.
56184         * lib/getusershell.c: Include unistd.h.
56185         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56186         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56187         HAVE_GETUSERSHELL.
56188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56189         and HAVE_GETUSERSHELL.
56190         * modules/getusershell (Depends-on): Add unistd, extensions.
56191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56192         (Include): Specify <unistd.h>.
56193         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56194         HAVE_GETUSERSHELL.
56195
56196 2008-10-18  Bruno Haible  <bruno@clisp.org>
56197
56198         Add a getloadavg() declaration to <stdlib.h>.
56199         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56200         getloadavg declaration.
56201         (getloadavg): New declaration.
56202         * lib/getloadavg.c: Include <stdlib.h> first.
56203         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56204         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56205         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56207         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56208         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56210         (Include): Specify <stdlib.h>.
56211         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56212         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56213
56214 2008-10-18  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/dirchownmod.c: Don't include lchmod.h.
56217
56218         Move the lchmod() declaration to <sys/stat.h>.
56219         * lib/lchmod.h: Remove file.
56220         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56221         (lchmod): New declaration, moved here from lib/lchown.h.
56222         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56223         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56225         and HAVE_LCHMOD.
56226         * modules/lchmod (Files): Remove lib/lchmod.h.
56227         (Depends-on): Add sys_stat, extensions.
56228         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56229         (Include): Specify <sys/stat.h> instead of lchmod.h.
56230         * modules/sys_stat (Depends-on): Add link-warning.
56231         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56232         definition of GL_LINK_WARNING.
56233         * NEWS: Mention the change.
56234
56235 2008-10-18  Bruno Haible  <bruno@clisp.org>
56236
56237         * lib/fchdir.c: Don't include dirfd.h.
56238         * lib/fts.c: Likewise.
56239         * lib/getcwd.c: Likewise.
56240         * lib/glob.c: Likewise.
56241
56242         Move the dirfd() declaration to <dirent.h>.
56243         * lib/dirfd.h: Remove file.
56244         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56245         (dirfd): New declaration.
56246         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56247         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56248         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56249         HAVE_DECL_DIRFD.
56250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56251         HAVE_DECL_DIRFD.
56252         * modules/dirfd (Files): Remove lib/dirfd.h.
56253         (Depends-on): Add dirent, extensions.
56254         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56255         (Include): Specify <dirent.h> instead of dirfd.h.
56256         * modules/dirent (Depends-on): Add link-warning.
56257         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56258         definition of GL_LINK_WARNING.
56259         * NEWS: Mention the change.
56260
56261 2008-10-18  Bruno Haible  <bruno@clisp.org>
56262
56263         Move the euidaccess() declaration to <unistd.h>.
56264         * lib/euidaccess.h: Remove file.
56265         * lib/unistd.in.h (euidaccess): New declaration.
56266         * lib/euidaccess.c: Don't include euidaccess.h.
56267         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56268         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56270         and HAVE_EUIDACCESS.
56271         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56272         (Depends-on): Add unistd.
56273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56274         (Include): Specify <unistd.h> instead of euidaccess.h.
56275         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56276         HAVE_EUIDACCESS.
56277         * NEWS: Mention the change.
56278
56279 2008-10-18  Bruno Haible  <bruno@clisp.org>
56280
56281         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56282
56283         Move the getdomainname() declaration to <unistd.h>.
56284         * lib/getdomainname.h: Remove file.
56285         * lib/unistd.in.h (getdomainname): New declaration.
56286         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56287         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56288         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56289         HAVE_GETDOMAINNAME.
56290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56291         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56292         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56293         (Depends-on): Add unistd, extensions.
56294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56295         (Includes): Specify <unistd.h> instead of getdomainname.h.
56296         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56297         HAVE_GETDOMAINNAME.
56298         * NEWS: Mention the change.
56299
56300 2008-10-18  Bruno Haible  <bruno@clisp.org>
56301
56302         * modules/dirent: New file.
56303         * m4/dirent_h.m4: New file.
56304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56305         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56306         * modules/fchdir (Files): Remove lib/dirent.in.h.
56307         (Depends-on): Add dirent.
56308         (Makefile.am): Move rules to modules/dirent.
56309         * doc/posix-headers/dirent.texi: Mention the new module.
56310
56311 2008-10-18  Bruno Haible  <bruno@clisp.org>
56312
56313         Avoid -Wunused-parameter warnings in public gnulib header files.
56314         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56315         macro.
56316         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56317
56318 2008-10-18  Bruno Haible  <bruno@clisp.org>
56319
56320         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56321         * doc/glibc-functions/error.texi: Mention the module 'error'.
56322         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56323         * doc/glibc-functions/getdomainname.texi: Mention the module
56324         'getdomainname'.
56325         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56326         * doc/glibc-functions/getpagesize.texi: Mention the module
56327         'getpagesize'.
56328         * doc/glibc-functions/getusershell.texi: Mention the module
56329         'getusershell'.
56330         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56331         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56332         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56333         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56334         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56335         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56336         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56337         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56338         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56339         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56340         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56341         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56342         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56343         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56344
56345 2008-10-17  Bruno Haible  <bruno@clisp.org>
56346
56347         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56348         HP-UX and IRIX, use -0.0L.
56349         * tests/test-ceill.c (minus_zero): Likewise.
56350         * tests/test-floorl.c (minus_zero): Likewise.
56351         * tests/test-frexpl.c (minus_zero): Likewise.
56352         * tests/test-isnan.c (minus_zerol): Likewise.
56353         * tests/test-isnanl.h (minus_zero): Likewise.
56354         * tests/test-ldexpl.c (minus_zero): Likewise.
56355         * tests/test-roundl.c (minus_zero): Likewise.
56356         * tests/test-signbit.c (minus_zerol): Likewise.
56357         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56358         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56359         * tests/test-truncl.c (minus_zero): Likewise.
56360         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56361         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56362         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56363         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56364
56365 2008-10-17  Bruno Haible  <bruno@clisp.org>
56366
56367         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56368         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56369         that it gets activated only for gcc >= 3.0.
56370         * lib/dirent.in.h: Likewise.
56371         * lib/errno.in.h: Likewise.
56372         * lib/fcntl.in.h: Likewise.
56373         * lib/float.in.h: Likewise.
56374         * lib/iconv.in.h: Likewise.
56375         * lib/inttypes.in.h: Likewise.
56376         * lib/locale.in.h: Likewise.
56377         * lib/math.in.h: Likewise.
56378         * lib/netdb.in.h: Likewise.
56379         * lib/netinet_in.in.h: Likewise.
56380         * lib/search.in.h: Likewise.
56381         * lib/signal.in.h: Likewise.
56382         * lib/spawn.in.h: Likewise.
56383         * lib/stdarg.in.h: Likewise.
56384         * lib/stdint.in.h: Likewise.
56385         * lib/stdio.in.h: Likewise.
56386         * lib/stdlib.in.h: Likewise.
56387         * lib/string.in.h: Likewise.
56388         * lib/strings.in.h: Likewise.
56389         * lib/sys_file.in.h: Likewise.
56390         * lib/sys_ioctl.in.h: Likewise.
56391         * lib/sys_select.in.h: Likewise.
56392         * lib/sys_socket.in.h: Likewise.
56393         * lib/sys_stat.in.h: Likewise.
56394         * lib/sys_time.in.h: Likewise.
56395         * lib/sysexits.in.h: Likewise.
56396         * lib/time.in.h: Likewise.
56397         * lib/unistd.in.h: Likewise.
56398         * lib/wchar.in.h: Likewise.
56399         * lib/wctype.in.h: Likewise.
56400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56401
56402 2008-10-17  Jim Meyering  <meyering@redhat.com>
56403
56404         ignore-value: don't depend on inline module
56405         * modules/ignore-value (Depends-on): Remove 'inline'.
56406         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56407         Suggestion from Bruno Haible.
56408
56409 2008-10-17  Bruno Haible  <bruno@clisp.org>
56410
56411         New implementation of condition variables for Win32.
56412         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56413         (gl_linked_waitqueue_t): New type.
56414         (gl_cond_t): Use it.
56415         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56416         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56417         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56418         (glthread_cond_init_func, glthread_cond_wait_func,
56419         glthread_cond_timedwait_func, glthread_cond_signal_func,
56420         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56421         Reimplemented on the basis of gl_linked_waitqueue_t.
56422         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56423         gl_waitqueue_t.
56424         (gl_rwlock_t): Update.
56425         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56426
56427 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56428
56429         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56430         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56431
56432 2008-10-17  Jim Meyering  <meyering@redhat.com>
56433
56434         ignore-value: new module
56435         * modules/ignore-value: New file.
56436         * lib/ignore-value.h: New file.
56437         * MODULES.html.sh (Compiler warning management): New section,
56438         just for this module.  More to come.
56439
56440 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56441
56442         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56443         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56444         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56445
56446 2008-10-16  Jim Meyering  <meyering@redhat.com>
56447
56448         openat-die.c: avoid 'no previous prototype' warning
56449         * lib/openat-die.c: Include "openat.h".
56450         Reported by Reuben Thomas <rrt@sc3d.org>.
56451
56452 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56453
56454         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56455         * lib/netdb.in.h: Fix typo.
56456         Reported by Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/netdb.in.h: Include sys/socket.h for platforms without
56459         netdb.h, to get structures like hostent on MinGW.
56460         * modules/netdb (Depends-on): Add sys_socket.
56461
56462 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56463
56464         * modules/netdb, modules/netdb-tests: New file.
56465         * m4/netdb_h.m4: New file.
56466         * lib/netdb.in.h: Add, currently just an empty file pending
56467         definitions.
56468         * tests/test-netdb.c: New file.
56469         * doc/posix-headers/netdb.texi: Mention that we replace it if
56470         needed.
56471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56472         netdb.
56473
56474 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56475
56476         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56477         with code.
56478
56479 2008-10-13  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/glthread/cond.c (glthread_cond_wait_func,
56482         glthread_cond_timedwait_func): Add a comment.
56483
56484 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56485
56486         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56487         * tests/test-select.c: Likewise,
56488
56489 2008-10-13  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/glthread/cond.c (glthread_cond_wait_func,
56492         glthread_cond_timedwait_func): Fix variable name.
56493         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56494
56495 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56496
56497         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56499         struct sockaddr.sa_len.
56500         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56501
56502 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56503
56504         * build-aux/pmccabe2html: Add css and css_url parameters.
56505
56506 2008-10-12  Bruno Haible  <bruno@clisp.org>
56507
56508         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56509         calling aclx_get.
56510         Reported by Rainer Tammer <tammer@tammer.net>.
56511
56512 2008-10-12  Bruno Haible  <bruno@clisp.org>
56513
56514         Use msvcrt aware primitives for creation/termination of Win32 threads.
56515         * lib/glthread/thread.c: Include <process.h>.
56516         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56517         (wrapper_func): Update signature.
56518         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56519
56520 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56521             Bruno Haible  <bruno@clisp.org>
56522
56523         Provide a Win32 implementation of the 'cond' module.
56524         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56525         * lib/glthread/cond.c (glthread_cond_init_func,
56526         glthread_cond_wait_func, glthread_cond_timedwait_func,
56527         glthread_cond_signal_func, glthread_cond_broadcast_func,
56528         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56529         * modules/cond (Dependencies): Add gettimeofday.
56530
56531 2008-10-11  Bruno Haible  <bruno@clisp.org>
56532
56533         Make sleep work on older versions of mingw.
56534         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56535         only whether it exists.
56536         * doc/posix-functions/sleep.texi: Mention the problem with older
56537         versions of mingw.
56538
56539 2008-10-11  Bruno Haible  <bruno@clisp.org>
56540
56541         New module 'shutdown'.
56542         * modules/shutdown: New file.
56543         * lib/sys_socket.in.h (shutdown): New declaration.
56544         * lib/winsock.c (shutdown): New function.
56545         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56546         GNULIB_SHUTDOWN.
56547         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56548         * doc/posix-functions/shutdown.texi: Document the new module.
56549
56550 2008-10-11  Jim Meyering  <meyering@redhat.com>
56551
56552         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56553
56554 2008-10-11  Bruno Haible  <bruno@clisp.org>
56555
56556         New module 'fclose'.
56557         * modules/fclose: New file.
56558         * lib/stdio.in.h (fclose): New declaration.
56559         * lib/fclose.c: New file.
56560         * m4/fclose.m4: New file.
56561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56562         REPLACE_FCLOSE.
56563         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56564         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56565         REPLACE_FCLOSE.
56566         * modules/close (Depends-on): fclose.
56567         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56568
56569 2008-10-11  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56572         set errno and don't call _close.
56573
56574 2008-10-10  Bruno Haible  <bruno@clisp.org>
56575
56576         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56577         ACL, not afterwards. Fixes test failure on Cygwin.
56578
56579 2008-10-09  Ben Pfaff  <blp@gnu.org>
56580
56581         * build-aux/announce-gen: Fix gnulib version related part of usage
56582         message.  Die with a useful error message if no tarballs are
56583         found.
56584
56585 2008-10-10  Jim Meyering  <meyering@redhat.com>
56586
56587         bootstrap: use git's --depth=N option only if it's supported
56588         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56589         recognize the --depth option.  Reported by Pádraig Brady.
56590
56591 2008-10-09  Bruno Haible  <bruno@clisp.org>
56592
56593         New module 'ioctl'.
56594         * modules/ioctl: New file.
56595         * lib/sys_socket.in.h (ioctl): Remove declaration.
56596         * lib/winsock.c: Include <sys/ioctl.h>.
56597         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56598         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56599         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56600         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56601         * doc/posix-functions/ioctl.texi: Mention the new module.
56602
56603 2008-10-09  Bruno Haible  <bruno@clisp.org>
56604
56605         New module 'sys_ioctl'.
56606         * lib/sys_ioctl.in.h: New file.
56607         * m4/sys_ioctl_h.m4: New file.
56608         * modules/sys_ioctl: New file.
56609         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56610
56611 2008-10-09  Bruno Haible  <bruno@clisp.org>
56612
56613         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56614         * lib/winsock.c: Include <stdarg.h>.
56615         (rpl_ioctl): Change to second argument 'int' and then varargs.
56616
56617 2008-10-09  Bruno Haible  <bruno@clisp.org>
56618
56619         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56620         when the sys_socket module is present and the system has <winsock2.h>.
56621
56622 2008-10-09  Bruno Haible  <bruno@clisp.org>
56623
56624         * doc/posix-functions/close.texi: Mention module 'close' instead of
56625         module 'sys_socket'.
56626
56627 2008-10-09  Bruno Haible  <bruno@clisp.org>
56628
56629         * doc/glibc-headers/sys_ioctl.texi: New file.
56630         * doc/gnulib.texi: Include it.
56631
56632 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56633             Bruno Haible  <bruno@clisp.org>
56634
56635         Combine the two replacements of 'close'.
56636         * lib/sys_socket.in.h (close): Define to a reminder to include
56637         <unistd.h>.
56638         (_gl_close_fd_maybe_socket): New declaration.
56639         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56640         * lib/winsock.c (close): Remove undefinition.
56641         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56642         needed for the gnulib module 'close'.
56643         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56644         define to an error symbol or to a warning, if suitable.
56645         * lib/close.c: Include <sys/socket.h>.
56646         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56647         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56648         UNISTD_H_HAVE_WINSOCK2_H.
56649         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56651         UNISTD_H_HAVE_WINSOCK2_H.
56652         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56653         (configure.ac): Set a module indicator.
56654         (Makefile.am): Substitute GNULIB_CLOSE.
56655         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56656         * modules/poll-tests (Depends-on): Add close.
56657         * modules/select-tests (Depends-on): Likewise.
56658
56659 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56660             Bruno Haible  <bruno@clisp.org>
56661
56662         New module 'close'.
56663         * modules/close: New file.
56664         * lib/unistd.in.h (close): Move declaration out of the
56665         FCHDIR_REPLACEMENT scope.
56666         (_gl_unregister_fd): New declaration.
56667         * lib/close.c: New file.
56668         * lib/fchdir.c (rpl_close): Remove function.
56669         * m4/close.m4: New file.
56670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56671         close.
56672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56673         REPLACE_CLOSE.
56674         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56675         REPLACE_CLOSE.
56676         * modules/fchdir (Depends-on): Add close.
56677
56678 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56679             Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/fcntl.in.h (open): Simplify conditionals.
56682         (_gl_register_fd): New declaration.
56683         * lib/fchdir.c (rpl_open): Remove function.
56684         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56685         also.
56686         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56688         open.
56689
56690 2008-10-09  Jim Meyering  <meyering@redhat.com>
56691
56692         GNUmakefile: use the more name-space-friendly "_version"
56693         * top/GNUmakefile (_dummy): Update.
56694         (_version): Rename from "version".
56695
56696 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56697             Bruno Haible  <bruno@clisp.org>
56698
56699         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56700         rpl_close.
56701         (_gl_register_fd): New function, extracted from rpl_open.
56702         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56703         (rpl_open, rpl_opendir): Use _gl_register_fd.
56704
56705 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56706
56707         Fix organization of 'open' replacement.
56708         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56709         (gl_FUNC_OPEN): Use it.
56710         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56711
56712 2008-10-08  Bruno Haible  <bruno@clisp.org>
56713
56714         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56715
56716 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56717
56718         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56719         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56720         listen).
56721
56722 2008-10-08  Eric Blake  <ebb9@byu.net>
56723
56724         GNUmakefile: add 'make version' target
56725         * top/GNUmakefile (_curr-ver): Split version update rules...
56726         (version): ...into a target.
56727
56728 2008-10-07  Bruno Haible  <bruno@clisp.org>
56729
56730         Use a more portable replacement expression for -0.0L.
56731         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56732         instead of -0.0L. Fix m4 quotation.
56733
56734         * tests/test-signbit.c: Include <float.h>.
56735         (minus_zero): New variable.
56736         (test_signbitl): Use minus_zero instead of -zero.
56737         * modules/signbit-tests (Depends-on): Add float.
56738
56739         * tests/test-ceill.c: Include <float.h>.
56740         (zero): Remove variable.
56741         (minus_zero): New variable.
56742         (main): Use minus_zero instead of -zero.
56743         * modules/ceill-tests (Depends-on): Add float.
56744
56745         * tests/test-floorl.c: Include <float.h>.
56746         (zero): Remove variable.
56747         (minus_zero): New variable.
56748         (main): Use minus_zero instead of -zero.
56749         * modules/floorl-tests (Depends-on): Add float.
56750
56751         * tests/test-roundl.c: Include <float.h>.
56752         (zero): Remove variable.
56753         (minus_zero): New variable.
56754         (main): Use minus_zero instead of -zero.
56755         * modules/roundl-tests (Depends-on): Add float.
56756
56757         * tests/test-truncl.c: Include <float.h>.
56758         (zero): Remove variable.
56759         (minus_zero): New variable.
56760         (main): Use minus_zero instead of -zero.
56761         * modules/truncl-tests (Depends-on): Add float.
56762
56763         * tests/test-frexpl.c (zero): Remove variable.
56764         (minus_zero): New variable.
56765         (main): Use minus_zero instead of -zero.
56766         * modules/frexpl-tests (Depends-on): Add float.
56767
56768         * tests/test-isnan.c (zerol): Remove variable.
56769         (minus_zerol): New variable.
56770         (test_long_double): Use minus_zerol instead of -zerol.
56771         * modules/isnan-tests (Depends-on): Add float.
56772
56773         * tests/test-isnanl.h (zero): Remove variable.
56774         (minus_zero): New variable.
56775         (main): Use minus_zero instead of -zero.
56776         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56777         * modules/isnanl-tests (Depends-on): Add float.
56778
56779         * tests/test-ldexpl.c (zero): Remove variable.
56780         (minus_zero): New variable.
56781         (main): Use minus_zero instead of -zero.
56782         * modules/ldexpl-tests (Depends-on): Add float.
56783
56784         * tests/test-snprintf-posix.h (zerol): Remove variable.
56785         (minus_zerol): New variable.
56786         (test_function): Use minus_zerol instead of -zerol.
56787         * modules/snprintf-posix-tests (Depends-on): Add float.
56788         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56789
56790         * tests/test-sprintf-posix.h (zerol): Remove variable.
56791         (minus_zerol): New variable.
56792         (test_function): Use minus_zerol instead of -zerol.
56793         * modules/sprintf-posix-tests (Depends-on): Add float.
56794         * modules/vsprintf-posix-tests (Depends-on): Add float.
56795
56796         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56797         (minus_zerol): New variable.
56798         (test_function): Use minus_zerol instead of -zerol.
56799         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56800
56801         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56802         (minus_zerol): New variable.
56803         (test_function): Use minus_zerol instead of -zerol.
56804         * modules/vasprintf-posix-tests (Depends-on): Add float.
56805
56806 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56807
56808         * MODULES.html.sh (Support for building documentation): Mention
56809         pmccabe2html.  Sort entries.
56810
56811         Add pmccabe2html module, from gnupdf.
56812         * build-aux/pmccabe.css: New file.
56813         * build-aux/pmccabe2html: New file.
56814         * m4/pmccabe2html.m4: New file.
56815         * modules/pmccabe2html: New file.
56816
56817 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56818
56819         flock: new module
56820         * MODULES.html.sh: Add to list of modules.
56821         * lib/flock.c: flock implementation for Windows and Unix systems
56822         which have fcntl.
56823         * doc/glibc-functions/flock.texi: Update documentation.
56824         * lib/sys_file.in.h: <sys/file.h> header file.
56825         * m4/flock.m4: M4 macros.
56826         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56827         * modules/flock: flock module.
56828         * modules/flock-tests: flock tests module.
56829         * modules/sys_file: sys/file.h module.
56830         * tests/test-flock.c: test suite for flock.
56831
56832 2008-10-06  Jim Meyering  <meyering@redhat.com>
56833
56834         bootstrap: check for LT_INIT more portably still ;-)
56835         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56836         Spotted by Bruno Haible.
56837
56838 2008-10-06  Eric Blake  <ebb9@byu.net>
56839
56840         test-signbit: avoid tripping Irix cc bug on -0.0L
56841         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56842         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56843         entire testsuite consistent and avoids an Irix 6.2 bug.
56844
56845 2008-10-05  Bruno Haible  <bruno@clisp.org>
56846             Jim Meyering  <jim@meyering.net>
56847
56848         Add an option for ignoring EPIPE during close_stdout.
56849         * lib/closeout.h: Include <stdbool.h>.
56850         (close_stdout_set_ignore_EPIPE): New declaration.
56851         * lib/closeout.c: Include <stdbool.h>.
56852         (ignore_EPIPE): New variable.
56853         (close_stdout_set_ignore_EPIPE): New function.
56854         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56855         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56856         failure.
56857         * modules/closeout (Depends-on): Add stdbool.
56858
56859 2008-10-05  Bruno Haible  <bruno@clisp.org>
56860
56861         * modules/accept: New file.
56862         * modules/bind: New file.
56863         * modules/connect: New file.
56864         * modules/getpeername: New file.
56865         * modules/getsockname: New file.
56866         * modules/getsockopt: New file.
56867         * modules/listen: New file.
56868         * modules/recv: New file.
56869         * modules/recvfrom: New file.
56870         * modules/send: New file.
56871         * modules/sendto: New file.
56872         * modules/setsockopt: New file.
56873         * modules/socket: New file.
56874         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56875         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56876         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56877         the particular module is requested. Add a link warning when the
56878         particular module is not requested.
56879         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56880         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56881         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56882         the particular module is requested.
56883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56884         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56885         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56886         * modules/sys_socket (Depends-on): Add link-warning.
56887         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56888         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56889         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56890         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56891         GL_LINK_WARNING.
56892         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56893         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56894         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56895         * doc/posix-functions/getpeername.texi: Mention the new module
56896         'getpeername'.
56897         * doc/posix-functions/getsockname.texi: Mention the new module
56898         'getsockname'.
56899         * doc/posix-functions/getsockopt.texi: Mention the new module
56900         'getsockopt'.
56901         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56902         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56903         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56904         * doc/posix-functions/send.texi: Mention the new module 'send'.
56905         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56906         * doc/posix-functions/setsockopt.texi: Mention the new module
56907         'setsockopt'.
56908         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56909         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56910         listen, connect, accept.
56911         * modules/select-tests (Depends-on): Likewise.
56912
56913 2008-10-05  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/winsock.c (strerror): Remove unused #undef.
56916         (rpl_close): Remove unused local variable.
56917
56918         * modules/sys_socket (Depends-on); Add errno.
56919
56920 2008-10-05  Bruno Haible  <bruno@clisp.org>
56921
56922         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56923         (select): Add a link warning when the 'select' module is not used.
56924         * modules/sys_select (Depends-on): Add link-warning.
56925         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56926         Suggested by Paolo Bonzini.
56927
56928 2008-10-05  Jim Meyering  <meyering@redhat.com>
56929
56930         bootstrap: check for LT_INIT more portably
56931         * build-aux/bootstrap: Avoid using grep -E, since it's not
56932         portable enough.  Suggestion from Bruno Haible.
56933
56934 2008-10-05  Bruno Haible  <bruno@clisp.org>
56935
56936         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56937         as being fixed by gnulib.
56938
56939 2008-10-05  Bruno Haible  <bruno@clisp.org>
56940
56941         * modules/select-tests: New file, mostly copied from
56942         modules/sys_select-tests.
56943         * tests/test-select.c: New file, mostly copied from
56944         tests/test-sys_select.c.
56945         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56946         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56947         (Makefile.am): Remove test_sys_select_LDADD.
56948
56949         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56950         to an undefined symbol, for an error message.
56951         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56952         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56953         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56954         winsock-select.c here.
56955         * modules/sys_select (Files): Remove lib/winsock-select.c.
56956         (Depends-on): Remove alloca.
56957         (Makefile.am): Substitute GNULIB_SELECT.
56958         * modules/select: New file.
56959         * doc/posix-functions/select.texi: Update.
56960
56961 2008-10-05  Bruno Haible  <bruno@clisp.org>
56962
56963         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56964         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56965         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56966         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56967         getdtablesize.
56968         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56969         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56970
56971 2008-10-05  Bruno Haible  <bruno@clisp.org>
56972
56973         * modules/getdtablesize-tests: New file.
56974         * tests/test-getdtablesize.c: New file.
56975
56976         New module 'getdtablesize'.
56977         * lib/unistd.in.h (getdtablesize): New declaration.
56978         * lib/getdtablesize.c: New file.
56979         * m4/getdtablesize.m4: New file.
56980         * modules/getdtablesize: New file.
56981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56982         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56983         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56984         HAVE_GETDTABLESIZE.
56985         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56986
56987 2008-10-05  Bruno Haible  <bruno@clisp.org>
56988
56989         * modules/sched (Makefile.am): Fix typo.
56990         Reported by Simon Josefsson.
56991
56992 2008-10-05  Jim Meyering  <meyering@redhat.com>
56993
56994         bootstrap: check for LT_INIT, too
56995         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56996         are deprecated.  Suggestion from Ralf Wildenhues.
56997
56998 2008-10-05  Bruno Haible  <bruno@clisp.org>
56999
57000         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57001         overriding them by ours.
57002         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57003
57004 2008-10-05  Jim Meyering  <meyering@redhat.com>
57005
57006         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57007         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57008         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57009
57010 2008-10-04  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/dup2 (License): Change to LGPLv2+.
57013         * modules/sleep (License): Likewise.
57014         * modules/perror (License): Likewise.
57015         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57016         Blake.
57017         * modules/signal (License): Likewise.
57018         * modules/sigprocmask (License): Likewise.
57019         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57020         Meyering.
57021
57022 2008-10-04  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57025         Reported by Rainer Tammer <tammer@tammer.net>.
57026
57027 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57028             Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57031         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57032         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57033
57034 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57035
57036         filevercmp: new module
57037         * lib/filevercmp.h: New function filevercmp comparing version strings.
57038         * lib/filevercmp.c: Implementation of filevercmp function.
57039         * modules/filevercmp: Module metadata.
57040         * tests/test-filevercmp.c: Unit test for new module.
57041         * modules/filevercmp-tests: Unit test metadata.
57042         * MODULES.html.sh: Add filevercmp module.
57043
57044 2008-10-03  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/c-ctype.h: Add comment.
57047         Reported by Jim Meyering.
57048
57049 2008-10-02  Bruno Haible  <bruno@clisp.org>
57050
57051         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57052
57053 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57054
57055         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57056         name of bootstrap.conf accordingly.
57057
57058 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57059
57060         * build-aux/bootstrap: Install git-merge-changelog configuration
57061         items into .gitconfig if needed.
57062
57063 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57064
57065         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57066         git repository, and initialize/update it accordingly.
57067
57068 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57069
57070         * modules/fsync-tests: New file.
57071         * tests/test-fsync.c: New file.
57072
57073         New module 'fsync'.
57074         * lib/fsync.c: New file.
57075         * m4/fsync.m4: New file.
57076         * modules/fsync: New file.
57077         * lib/unistd.in.h (fsync): New declaration.
57078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57079         GNULIB_FSYNC and HAVE_FSYNC.
57080         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57081         * MODULES.html.sh (posix_functions): Add fsync.
57082         * doc/posix-functions/fsync.texi: Mention the new module.
57083
57084 2008-10-02  Jim Meyering  <meyering@redhat.com>
57085
57086         fts.c: sync with similar code from coreutils' remove.c
57087         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57088         Guard also with "#if defined __linux__", since for now at least,
57089         this code is Linux-kernel-specific.
57090
57091 2008-10-02  Jim Meyering  <meyering@redhat.com>
57092
57093         fts: bug fixes
57094         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57095         Include <sys/vfs.h>, not <sys/statfs.h>.
57096
57097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57098         Include <sys/vfs.h>, not <sys/statfs.h>.
57099
57100 2008-10-01  Bruno Haible  <bruno@clisp.org>
57101
57102         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57104         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57105         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57106         * doc/posix-functions/posix_spawnp.texi: Likewise.
57107         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57108         whether posix_spawn actually works.
57109         * m4/pipe.m4 (gl_PIPE): Likewise.
57110         * modules/execute (Files): Add m4/posix_spawn.m4.
57111         * modules/pipe (Files): Add m4/posix_spawn.m4.
57112         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57113
57114 2008-10-01  Jim Meyering  <meyering@redhat.com>
57115
57116         remove trailing spaces
57117         * NEWS: Likewise.
57118         * lib/poll.c (poll): Likewise.
57119         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57120         * lib/winsock.c (rpl_close): Likewise.
57121         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57122         * modules/yield: Likewise.
57123         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57124         * tests/test-sys_select.c (connect_to_socket): Likewise.
57125
57126         fts.c: adjust a new interface to be more generally useful
57127         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57128         (fts_build): Adjust caller.
57129
57130 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57131
57132         * modules/cond-tests: New file.
57133         * tests/test-cond.c: New file.
57134
57135 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57136             Bruno Haible  <bruno@clisp.org>
57137
57138         * modules/cond (Dependencies): Add errno, time.
57139         * lib/glthread/cond.h: Include <time.h>.
57140         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57141         across platforms.
57142
57143 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57144             Bruno Haible  <bruno@clisp.org>
57145
57146         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57147
57148 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57149             Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/tls-tests (Depends-on): Add thread, yield.
57152         (configure.ac): Remove all checks.
57153         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57154         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57155         gl_thread_self): Remove definitions. Include glthread/thread.h and
57156         glthread/yield.h instead.
57157         (test_tls): Pass an additional NULL argument to gl_thread_join.
57158
57159 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57160             Bruno Haible  <bruno@clisp.org>
57161
57162         * modules/lock-tests (Depends-on): Add thread, yield.
57163         (configure.ac): Remove all checks.
57164         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57165         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57166         gl_thread_self): Remove definitions. Include glthread/thread.h and
57167         glthread/yield.h instead.
57168         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57169         additional NULL argument to gl_thread_join.
57170
57171 2008-09-30  Bruno Haible  <bruno@clisp.org>
57172
57173         Fix the Win32 implementation of the 'thread' module.
57174         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57175         pointer type.
57176         (gl_thread_self): Invoke gl_thread_self_func.
57177         (gl_thread_self_func): New declaration.
57178         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57179         (do_init_self_key, init_self_key): New functions.
57180         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57181         Remove some fields.
57182         (running_threads, running_lock): Remove variables.
57183         (get_current_thread_handle): New function.
57184         (gl_thread_self_func, wrapper_func, glthread_create_func,
57185         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57186         simplified.
57187
57188 2008-09-30  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57191         files.
57192
57193 2008-09-30  Jim Meyering  <meyering@redhat.com>
57194
57195         fts.m4: correct the test for statfs.f_type
57196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57197         when checking for statfs.f_type.
57198
57199 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57200
57201         tests: avoid some compiler warnings
57202         * tests/test-memchr.c (main): Pass NULL indirectly.
57203         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57204
57205 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57206
57207         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57208         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57209         exactly specified dayshifts.
57210         (dayshift): New rule.
57211         (rel): Add dayshift.
57212         (relative_time_table) [tomorrow, yesterday, today, now]:
57213         Use tDAY_SHIFT in place of tDAY_UNIT.
57214         * tests/test-getdate.c: Add tests for now-disallowed countable
57215         dayshifts, e.g., "4 yesterday ago".
57216
57217 2008-09-29  Bruno Haible  <bruno@clisp.org>
57218
57219         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57220         * tests/test-posix_spawn1.in.sh: Renamed from
57221         tests/test-posix_spawn.in.sh.
57222         * tests/test-posix_spawn2.c: New file.
57223         * tests/test-posix_spawn2.in.sh: New file.
57224         * modules/posix_spawnp-tests (Files): Update.
57225         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57226
57227 2008-09-29  Bruno Haible  <bruno@clisp.org>
57228
57229         Propagate effects of putenv/setenv/unsetenv to child processes.
57230         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57231         * lib/pipe.c (create_pipe): Likewise.
57232
57233 2008-09-29  Bruno Haible  <bruno@clisp.org>
57234
57235         Enable use of shell scripts as executables in mingw.
57236         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57237         run the program as a shell script.
57238         * lib/pipe.c (create_pipe): Likewise.
57239         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57240         resulting array.
57241
57242 2008-09-29  Eric Blake  <ebb9@byu.net>
57243
57244         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57245
57246 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57247
57248         * doc/posix-functions/accept.texi: Update mingw problems.
57249         * doc/posix-functions/bind.texi: Update mingw problems.
57250         * doc/posix-functions/close.texi: Update mingw problems.
57251         * doc/posix-functions/connect.texi: Update mingw problems.
57252         * doc/posix-functions/getpeername.texi: Update mingw problems.
57253         * doc/posix-functions/getsockname.texi: Update mingw problems.
57254         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57255         * doc/posix-functions/ioctl.texi: Update mingw problems.
57256         * doc/posix-functions/listen.texi: Update mingw problems.
57257         * doc/posix-functions/recv.texi: Update mingw problems.
57258         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57259         * doc/posix-functions/select.texi: Update mingw problems.
57260         * doc/posix-functions/send.texi: Update mingw problems.
57261         * doc/posix-functions/sendto.texi: Update mingw problems.
57262         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57263         * doc/posix-functions/socket.texi: Update mingw problems.
57264
57265 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57266             Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/sys_select.in.h: Include sys/time.h.
57269         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57270         * modules/sys_select: Depend on sys_time.
57271         * tests/test-sys_select.c: Test that sys/select.h defines struct
57272         timeval fully.
57273
57274 2008-09-29  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57277         * lib/sys_select.in.h: Likewise.
57278
57279 2008-09-29  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57282
57283 2008-09-29  Bruno Haible  <bruno@clisp.org>
57284
57285         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57286         Set LIBSOCKET instead of augmenting LIBS.
57287         * modules/sockets (Link): New section.
57288         * modules/sockets-tests (test_sockets_LDADD): New variable.
57289         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57290         * modules/poll-tests (test_poll_LDADD): New variable.
57291         * NEWS: Document the change.
57292
57293 2008-09-29  Bruno Haible  <bruno@clisp.org>
57294
57295         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57296         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57297         ARPA_INET_H directly.
57298         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57299
57300 2008-09-28  Bruno Haible  <bruno@clisp.org>
57301
57302         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57303         from gl_HEADER_SYS_SOCKET.
57304         (gl_HEADER_SYS_SOCKET): Invoke it.
57305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57306
57307 2008-09-28  Bruno Haible  <bruno@clisp.org>
57308
57309         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57310         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57311         Needed on OSF/1 4.0.
57312
57313 2008-09-28  Bruno Haible  <bruno@clisp.org>
57314
57315         Override open more carefully.
57316         * lib/open.c (orig_open): New function.
57317         (rpl_open): Use orig_open instead of open.
57318         * lib/fcntl.in.h: Add special invocation convention.
57319         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57320         (gl_FUNC_OPEN): Invoke it.
57321
57322         Override freopen more carefully.
57323         * lib/freopen.c (orig_freopen): New function.
57324         (rpl_freopen): Use orig_freopen instead of freopen.
57325         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57326         (gl_FUNC_FREOPEN): Invoke it.
57327
57328         Override fopen more carefully.
57329         * lib/fopen.c (orig_fopen): New function.
57330         (rpl_fopen): Use orig_fopen instead of fopen.
57331         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57332         (gl_FUNC_FOPEN): Invoke it.
57333         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57334
57335 2008-09-28  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57338         SIGPIPE.
57339
57340 2008-09-28  Bruno Haible  <bruno@clisp.org>
57341
57342         * tests/test-sigaction.c (handler, main): Disable the check whether
57343         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57344         glibc systems with LinuxThreads.
57345
57346 2008-09-28  Bruno Haible  <bruno@clisp.org>
57347
57348         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57349
57350         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57351         with AIX xlc.
57352         * lib/fcntl.in.h (open): Likewise.
57353         Reported by Rainer Tammer <tammer@tammer.net>.
57354
57355 2008-09-28  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/posix_spawnp-tests: New file.
57358         * tests/test-posix_spawn.c: New file.
57359         * tests/test-posix_spawn.in.sh: New file.
57360
57361         New module 'posix_spawnp'.
57362         * modules/posix_spawnp: New file.
57363         * lib/spawnp.c: New file, from GNU libc with modifications.
57364         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57365
57366         New module 'posix_spawn'.
57367         * modules/posix_spawn: New file.
57368         * lib/spawn.c: New file, from GNU libc with modifications.
57369         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57370
57371         New module 'posix_spawnattr_destroy'.
57372         * modules/posix_spawnattr_destroy: New file.
57373         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57374         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57375         module.
57376
57377         New module 'posix_spawnattr_setsigmask'.
57378         * modules/posix_spawnattr_setsigmask: New file.
57379         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57380         modifications.
57381         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57382         new module.
57383
57384         New module 'posix_spawnattr_getsigmask'.
57385         * modules/posix_spawnattr_getsigmask: New file.
57386         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57387         modifications.
57388         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57389         new module.
57390
57391         New module 'posix_spawnattr_setsigdefault'.
57392         * modules/posix_spawnattr_setsigdefault: New file.
57393         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57394         modifications.
57395         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57396         new module.
57397
57398         New module 'posix_spawnattr_getsigdefault'.
57399         * modules/posix_spawnattr_getsigdefault: New file.
57400         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57401         modifications.
57402         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57403         new module.
57404
57405         New module 'posix_spawnattr_setschedpolicy'.
57406         * modules/posix_spawnattr_setschedpolicy: New file.
57407         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57408         modifications.
57409         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57410         new module.
57411
57412         New module 'posix_spawnattr_getschedpolicy'.
57413         * modules/posix_spawnattr_getschedpolicy: New file.
57414         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57415         modifications.
57416         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57417         new module.
57418
57419         New module 'posix_spawnattr_setschedparam'.
57420         * modules/posix_spawnattr_setschedparam: New file.
57421         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57422         modifications.
57423         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57424         new module.
57425
57426         New module 'posix_spawnattr_getschedparam'.
57427         * modules/posix_spawnattr_getschedparam: New file.
57428         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57429         modifications.
57430         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57431         new module.
57432
57433         New module 'posix_spawnattr_setpgroup'.
57434         * modules/posix_spawnattr_setpgroup: New file.
57435         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57436         modifications.
57437         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57438         module.
57439
57440         New module 'posix_spawnattr_getpgroup'.
57441         * modules/posix_spawnattr_getpgroup: New file.
57442         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57443         modifications.
57444         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57445         module.
57446
57447         New module 'posix_spawnattr_setflags'.
57448         * modules/posix_spawnattr_setflags: New file.
57449         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57450         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57451         module.
57452
57453         New module 'posix_spawnattr_getflags'.
57454         * modules/posix_spawnattr_getflags: New file.
57455         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57456         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57457         module.
57458
57459         New module 'posix_spawnattr_init'.
57460         * modules/posix_spawnattr_init: New file.
57461         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57462         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57463         module.
57464
57465         New module 'posix_spawn_file_actions_destroy'.
57466         * modules/posix_spawn_file_actions_destroy: New file.
57467         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57468         modifications.
57469         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57470         the new module.
57471
57472         New module 'posix_spawn_file_actions_addopen'.
57473         * modules/posix_spawn_file_actions_addopen: New file.
57474         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57475         modifications.
57476         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57477         the new module.
57478
57479         New module 'posix_spawn_file_actions_adddup2'.
57480         * modules/posix_spawn_file_actions_adddup2: New file.
57481         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57482         modifications.
57483         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57484         the new module.
57485
57486         New module 'posix_spawn_file_actions_addclose'.
57487         * modules/posix_spawn_file_actions_addclose: New file.
57488         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57489         modifications.
57490         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57491         the new module.
57492
57493         New module 'posix_spawn_file_actions_init'.
57494         * modules/posix_spawn_file_actions_init: New file.
57495         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57496         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57497         new module.
57498
57499         New module 'posix_spawn-internal'.
57500         * modules/posix_spawn-internal: New file.
57501         * lib/spawn_int.h: New file, from GNU libc with modifications.
57502         * lib/spawni.c: New file, from GNU libc with modifications.
57503         * m4/posix_spawn.m4: New file.
57504
57505         New module 'spawn'.
57506         * modules/spawn: New file.
57507         * lib/spawn.in.h: New file, from GNU libc with modifications.
57508         * m4/spawn_h.m4: New file.
57509         * doc/posix-headers/spawn.texi: Mention the new module.
57510
57511 2008-09-28  Bruno Haible  <bruno@clisp.org>
57512
57513         * modules/sched-tests: New file.
57514         * tests/test-sched.c: New file.
57515
57516         New module 'sched'.
57517         * modules/sched: New file.
57518         * lib/sched.in.h: New file.
57519         * m4/sched_h.m4: New file.
57520         * doc/posix-headers/sched.texi: Mention the new module.
57521
57522 2008-09-27  Eric Blake  <ebb9@byu.net>
57523
57524         Fix previous patch, and tweak references to $0.
57525         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57526         (func_version, func_gnulib_dir): Don't call this program
57527         gnulib-tool.
57528         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57529         with using $0 in function.
57530         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57531         (func_fatal_error): Reuse the name the user invoked us with.
57532
57533 2008-09-27  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57536         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57537         (gl_ICONV_H): Not here.
57538         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57539         instead of assigning ICONV_H directly.
57540
57541         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57543         WCHAR_H directly.
57544
57545 2008-09-27  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57548         * modules/arpa_inet (Depends-on): Add link-warning.
57549         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57550         * modules/unistd (Makefile.am): Likewise.
57551
57552 2008-09-26  Bruno Haible  <bruno@clisp.org>
57553
57554         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57555         variables.
57556         (func_version): Essentially copied from gnulib-tool.
57557         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57558         func_readlink): Copied from gnulib-tool.
57559
57560 2008-09-26  Bruno Haible  <bruno@clisp.org>
57561
57562         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57563         invoking git-version-gen.
57564
57565 2008-09-26  Bruno Haible  <bruno@clisp.org>
57566
57567         * posix-modules: Update to directory names changed on 2008-01-19.
57568         Remove commas in output before splitting into words. No more need to
57569         avoid 'ftruncate' since 2007-02-19.
57570
57571 2008-09-26  Bruno Haible  <bruno@clisp.org>
57572
57573         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57574
57575 2008-09-26  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57578         * modules/fwriteerror (Depends-on): Add errno.
57579
57580 2008-09-26  Bruno Haible  <bruno@clisp.org>
57581
57582         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57583         * tests/test-vc-list-files-cvs.sh: Likewise.
57584
57585 2008-09-26  Bruno Haible  <bruno@clisp.org>
57586
57587         * doc/posix-headers/sys_resource.texi: Reorder items.
57588
57589 2008-09-26  Jim Meyering  <meyering@redhat.com>
57590
57591         fts: tweak inode comparison function
57592         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57593         inode numbers, as documented.
57594
57595         fts: sort dirent entries on inode number before traversing
57596         This avoids a quadratic, seek-related performance penalty when
57597         operating on a directory containing many entries (measurable at 10k;
57598         3.5 hours at 2 million entries with a cold cache) on certain types
57599         of file systems, including ext3 and ext4, but not tmpfs.
57600         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57601         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57602         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57603         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57604         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57605         (fts_build): Set the stat.st_ino member from D_INO.
57606         If it is likely to be useful, sort dirent entries on inode number.
57607
57608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57609         and the struct statfs.f_type member.
57610         * modules/fts (Depends-on): Add d-ino.
57611
57612 2008-09-26  Bruno Haible  <bruno@clisp.org>
57613
57614         * modules/sigpipe-die (Depends-on): Add sigpipe.
57615
57616         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57617         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57618         and GNULIB_STDIO_H_SIGPIPE are set.
57619         * lib/stdio-write.c: New file.
57620         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57621         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57622         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57623         REPLACE_STDIO_WRITE_FUNCS.
57624         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57625         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57626         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57627         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57628         * modules/stdio (Files): Add lib/stdio-write.c.
57629         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57630         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57631         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57632         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57633         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57634         REPLACE_FPRINTF_POSIX.
57635         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57636         REPLACE_PRINTF_POSIX.
57637         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57638         REPLACE_VFPRINTF_POSIX.
57639         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57640         REPLACE_VPRINTF_POSIX.
57641         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57642         SIGPIPE issue.
57643         * doc/posix-functions/fputc.texi: Likewise.
57644         * doc/posix-functions/fputs.texi: Likewise.
57645         * doc/posix-functions/fwrite.texi: Likewise.
57646         * doc/posix-functions/printf.texi: Likewise.
57647         * doc/posix-functions/putc.texi: Likewise.
57648         * doc/posix-functions/putchar.texi: Likewise.
57649         * doc/posix-functions/puts.texi: Likewise.
57650         * doc/posix-functions/vfprintf.texi: Likewise.
57651         * doc/posix-functions/vprintf.texi: Likewise.
57652
57653         * modules/safe-write (Depends-on): Add write.
57654
57655         * modules/sigpipe-tests: New file.
57656         * tests/test-sigpipe.c: New file.
57657         * tests/test-sigpipe.sh: New file.
57658
57659         * modules/write: New file.
57660         * lib/unistd.in.h: Include <sys/types.h>.
57661         (write): New declaration.
57662         * lib/write.c: New file.
57663         * m4/write.m4: New file.
57664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57665         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57666         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57667         GNULIB_WRITE, REPLACE_WRITE.
57668         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57669         and the SIGPIPE issue.
57670
57671         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57672         (raise): New declaration.
57673         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57674         (ext_signal): New function.
57675         (rpl_raise): New function.
57676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57677         GNULIB_SIGNAL_H_SIGPIPE.
57678         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57679         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57680
57681         * modules/sigpipe: New file.
57682         * m4/sigpipe.m4: New file.
57683
57684 2008-09-25  Derek Price  <derek@ximbiot.com>
57685             Bruno Haible  <bruno@clisp.org>
57686
57687         * gnulib-tool (func_import): Report all license incompatibilities, not
57688         just the first one.
57689
57690 2008-09-25  Bruno Haible  <bruno@clisp.org>
57691
57692         * gnulib-tool (func_import): When computing the edits, consider not
57693         only the Makefile.ams that exist but also those that will be generated.
57694
57695 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57696
57697         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57698         fixes gnulib-tool --test warning about duplicate dependency.
57699
57700 2008-09-25  Bruno Haible  <bruno@clisp.org>
57701
57702         * gnulib-tool: Don't ask the user to perform edits in the generated
57703         Makefile.ams.
57704         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57705         apply to the Makefile.am being generated.
57706         (func_emit_tests_Makefile_am): Execute edits that apply to the
57707         Makefile.am being generated.
57708         (func_import): Setup list of Makefile.am edits before emitting the
57709         Makefile.ams, not at the end.
57710         (func_create_testdir): Update.
57711         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57712
57713 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57714
57715         * gnulib-tool (func_import): Store the --tests-base option in the
57716         comment in gnulib-cache.m4.
57717
57718 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57719
57720         * NEWS: Document increased portability that sys_select now provides.
57721
57722         * lib/sys_select.in.h: Install select wrapper.
57723         * lib/sys_socket.in.h: Use more descriptive name when there is no
57724         select wrapper.
57725         * lib/winsock-select.c: New.
57726         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57727         Require gl_HEADER_SYS_SOCKET.
57728         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57729         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57730         * tests/test-sys_select.c: Add functional tests.
57731
57732 2008-09-24  Eric Blake  <ebb9@byu.net>
57733
57734         open, fopen: close fd leak in last patch
57735         * lib/open.c (rpl_open): Close fd before returning error.
57736         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57737         * doc/posix-functions/open.texi (open): Document that Irix also
57738         has the bug.
57739         * doc/posix-functions/fopen.texi (fopen): Likewise.
57740         Reported by Paolo Bonzini.
57741
57742 2008-09-24  Bruno Haible  <bruno@clisp.org>
57743
57744         Ensure that a filename ending in a slash cannot be used to access a
57745         non-directory.
57746         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57747         to check whether it's really a directory.
57748         * lib/fopen.c: Include fcntl.h, unistd.h.
57749         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57750         and fdopen().
57751         * modules/fopen (Depends-on): Add unistd.
57752         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57753         * tests/test-fopen.c (main): Likewise.
57754         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57755         * doc/posix-functions/fopen.texi: Likewise.
57756         Reported by Eric Blake.
57757
57758 2008-09-23  Eric Blake  <ebb9@byu.net>
57759
57760         c-stack: avoid compiler optimizations when provoking overflow
57761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57762         recursion harder to optimize, to ensure a stack overflow occurs.
57763         * tests/test-c-stack.c (recurse): Likewise.
57764         Borrowed from libsigsegv.
57765
57766         c-stack: work around Irix sigaltstack bug
57767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57768         whether sigaltstack uses wrong end of stack_t (copied in part from
57769         libsigsegv).
57770         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57771         Irix bug, without requiring an over-allocation.
57772         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57773         bug.
57774
57775         fopen: document mingw bug on directories
57776         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57777         not allowing a stream visiting a directory, even though reading
57778         from such a stream is not portable.
57779
57780 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57781
57782         * lib/poll.c: Rewrite.
57783         * modules/poll: Depend on alloca.
57784
57785 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57786
57787         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57788         instead define prototypes for a full set of wrappers.  Ensure
57789         that Cygwin does not use the compatibility code, which is only
57790         for MinGW.
57791         * lib/winsock.c: New.
57792         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57793         * modules/sys_socket: Add lib/winsock.c.
57794
57795         * modules/poll-tests: Add errno and perror.
57796         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57797
57798 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57799
57800         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57801
57802 2008-09-23  Bruno Haible  <bruno@clisp.org>
57803
57804         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57805         * doc/glibc-functions/*: Likewise.
57806
57807 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57808
57809         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57810         success.
57811
57812 2008-09-22  Eric Blake  <ebb9@byu.net>
57813             Bruno Haible  <bruno@clisp.org>
57814
57815         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57816         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57817         supply %A but mishandle pseudo-NaN.
57818         Reported by Simon Josefsson.
57819
57820 2008-09-21  Bruno Haible  <bruno@clisp.org>
57821
57822         * tests/test-lock.c (main): Tweak skip message.
57823         * tests/test-tls.c (main): Likewise.
57824
57825 2008-09-21  Bruno Haible  <bruno@clisp.org>
57826
57827         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57828         whether 'struct sigaction' has sa_sigaction here...
57829         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57830         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57831
57832 2008-09-21  Bruno Haible  <bruno@clisp.org>
57833
57834         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57835         section.
57836         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57837         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57838         the new section.
57839         (Support for obsolete systems lacking POSIX:2001): New section.
57840         (String handling <string.h>): Move strdup to the new section.
57841         Suggested by Simon Josefsson and Paolo Bonzini.
57842
57843 2008-09-21  Bruno Haible  <bruno@clisp.org>
57844
57845         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57846         exponents in %e and %g results on 'long double'. Needed for mingw's
57847         improved *printf functions.
57848         * tests/test-vasprintf-posix.c (test_function): Likewise.
57849         * tests/test-snprintf-posix.h (test_function): Likewise.
57850         * tests/test-sprintf-posix.h (test_function): Likewise.
57851         Reported by Eric Blake.
57852
57853 2008-09-21  Bruno Haible  <bruno@clisp.org>
57854
57855         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57856         * tests/test-sprintf-posix.h (test_function): Likewise.
57857
57858 2008-09-21  Bruno Haible  <bruno@clisp.org>
57859
57860         * modules/getpass (Depends-on): Add strdup-posix.
57861
57862         New module 'strdup-posix'.
57863         * modules/strdup-posix: New file.
57864         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57865         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57867         REPLACE_STRDUP.
57868         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57869         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57871         strdup-posix.
57872
57873         * modules/strdup (Depends-on): Remove malloc-posix.
57874
57875 2008-09-20  Bruno Haible  <bruno@clisp.org>
57876
57877         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57878         Wildenhues.
57879
57880 2008-09-20  Bruno Haible  <bruno@clisp.org>
57881
57882         Ensure that wint_t gets defined on IRIX 5.3.
57883         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57884         * lib/wctype.in.h (wint_t): Likewise.
57885         (__wctype_wint_t): Remove type.
57886         (isw*): Use wint_t instead of __wctype_wint_t.
57887         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57888         * modules/wchar (Files): Add m4/wint_t.m4.
57889         (Makefile.am): Substitute HAVE_WINT_T.
57890         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57891         * tests/test-wctype.c: Check that wint_t is defined.
57892         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57893         * doc/posix-headers/wctype.texi: Likewise.
57894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57895
57896 2008-09-18  Bruno Haible  <bruno@clisp.org>
57897
57898         * gnulib-tool (func_exit): Update comment.
57899
57900 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57901
57902         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57903         assumes strdup exists and does not depend on strdup to return
57904         ENOMEM on out of memory conditions.
57905
57906 2008-09-18  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57909         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57910         digits for the exponent.
57911
57912 2008-09-18  Jim Meyering  <meyering@redhat.com>
57913             Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/vasnprintf.c (decimal_point_char): Define also if
57916         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57917
57918 2008-09-16  Bruno Haible  <bruno@clisp.org>
57919         and Eric Blake  <ebb9@byu.net>
57920
57921         vasnprintf: support Irix 5.3
57922         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57923         that mishandle long double infinity.
57924         Reported by Tom G. Christensen.
57925
57926 2008-09-16  Bruno Haible  <bruno@clisp.org>
57927
57928         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57929         Solaris 9.
57930         * doc/glibc-functions/alphasort.texi: Likewise.
57931         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57932
57933 2008-09-16  Jim Meyering  <meyering@redhat.com>
57934
57935         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57936         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57937         a umask modification leak out of a subshell.  Otherwise, the
57938         opensolaris /bin/sh would be accepted and thus cause unwarranted
57939         failures in the coreutils test suite.
57940
57941 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57942
57943         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57944         to succeed.
57945
57946 2008-09-16  Jim Meyering  <meyering@redhat.com>
57947
57948         avoid spurious test failure when library is built without ACL support
57949         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57950         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57951         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57952         * tests/test-copy-acl.sh: Likewise.
57953
57954 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57955
57956         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57957         based on character occurrence counts.
57958
57959 2008-09-15  Eric Blake  <ebb9@byu.net>
57960
57961         tests: avoid some compiler warnings
57962         * tests/test-memchr.c (main): Pass NULL indirectly.
57963         * tests/test-closein.c (main): Avoid unused variable.
57964
57965 2008-09-15  Bruno Haible  <bruno@clisp.org>
57966
57967         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57968         are missing on OpenBSD 4.0 individually.
57969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57970
57971 2008-09-15  Bruno Haible  <bruno@clisp.org>
57972
57973         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57974         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57975         * doc/posix-functions/perror.texi: Likewise.
57976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57977         is missing.
57978         Reported by Eric Blake.
57979
57980         * lib/errno.in.h: Use replacement values >= 2000.
57981         Reported by Eric Blake.
57982
57983 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57984
57985         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57986         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57987         limit.
57988         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57989         compareseq was aborted.
57990
57991 2008-09-14  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57994         yvec_edit_count.
57995         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57996         (fstrcmp_bounded): Simplify result computation accordingly.
57997
57998 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57999
58000         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58001         (fstrcmp): Define in terms of fstrcmp_bounded.
58002         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58003         lower_bound argument.
58004         Return quickly if the result is certainly < lower_bound.
58005         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58006
58007 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58008
58009         * lib/diffseq.h (EARLY_ABORT): New macro.
58010         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58011         evaluates to true.
58012
58013 2008-09-14  Bruno Haible  <bruno@clisp.org>
58014
58015         * modules/perror-tests: New file.
58016         * tests/test-perror.sh: New file.
58017         * tests/test-perror.c: New file.
58018
58019         New module 'perror'.
58020         * lib/stdio.in.h (perror): New declaration.
58021         * lib/perror.c: New file.
58022         * m4/perror.m4: New file.
58023         * modules/perror: New file.
58024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58025         * doc/posix-functions/perror.texi: Mention the perror module.
58026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58027         REPLACE_PERROR.
58028         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58029         REPLACE_PERROR.
58030
58031 2008-09-14  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/stdio (Makefile.am): Reorder to match the order in
58034         lib/stdio.in.h.
58035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58036
58037 2008-09-13  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58040
58041 2008-09-13  Bruno Haible  <bruno@clisp.org>
58042
58043         Extend strerror to cover the added errno values.
58044         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58045         (rpl_strerror): Provide error messages for the added errno values and
58046         for the WSA* values.
58047         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58048         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58049         strerror.
58050         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58051         * modules/strerror (Depends-on): Add errno.
58052         * doc/posix-functions/strerror.texi: Document the change.
58053         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58054         and EOVERFLOW.
58055
58056 2008-09-13  Bruno Haible  <bruno@clisp.org>
58057
58058         * modules/EOVERFLOW: Remove file.
58059         * m4/eoverflow.m4: Remove file.
58060         * modules/EOVERFLOW-tests: Remove file.
58061         * tests/test-EOVERFLOW.c: Remove file.
58062         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58063         * modules/ftell (Depends-on): Likewise.
58064         * modules/getdelim (Depends-on): Likewise.
58065         * modules/getugroups (Depends-on): Likewise.
58066         * modules/poll (Depends-on): Likewise.
58067         * modules/snprintf (Depends-on): Likewise.
58068         * modules/sprintf-posix (Depends-on): Likewise.
58069         * modules/vasnprintf (Depends-on): Likewise.
58070         * modules/vasprintf (Depends-on): Likewise.
58071         * modules/vfprintf-posix (Depends-on): Likewise.
58072         * modules/vsnprintf (Depends-on): Likewise.
58073         * modules/vsprintf-posix (Depends-on): Likewise.
58074         * modules/xvasprintf (Depends-on): Likewise.
58075         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58076         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58077         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58078         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58079         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58080         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58081         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58082         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58083         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58084         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58085         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58086         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58087         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58088         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58089         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58090         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58091         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58092         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58093         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58094         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58096         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58097         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58098         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58099         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58100         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58101         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58102         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58103         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58104         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58105         * MODULES.html.sh: Remove EOVERFLOW.
58106         * NEWS: Mention the change.
58107
58108 2008-09-13  Bruno Haible  <bruno@clisp.org>
58109
58110         * modules/errno-tests: New file.
58111         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58112
58113         * lib/errno.in.h: New file.
58114         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58115         * modules/errno: New file.
58116         * doc/posix-headers/errno.texi: Update documentation.
58117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58118
58119 2008-09-13  Bruno Haible  <bruno@clisp.org>
58120
58121         * tests/test-poll.c: Use #if for native Windows, rather than testing
58122         __MSVCRT__.
58123
58124 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58125             Bruno Haible  <bruno@clisp.org>
58126
58127         * lib/glob.c: Don't include <pwd.h> on native Windows.
58128         (WINDOWS32): New macro.
58129         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58130
58131 2008-09-13  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58134         (ETIMEDOUT): Remove macro.
58135         (glthread_cond_timedwait_multithreaded): New declaration.
58136         (glthread_cond_timedwait): Use it.
58137         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58138         (glthread_cond_timedwait_multithreaded): New function.
58139
58140 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58141
58142         * modules/poll-tests: Do not check for io.h.
58143         * tests/test-poll.c: Check for __MSVCRT__ instead.
58144
58145 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58146
58147         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58148         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58149         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58150
58151 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58152
58153         * modules/poll-tests: New.
58154         * tests/test-poll.c: New.
58155
58156 2008-09-12  Eric Blake  <ebb9@byu.net>
58157
58158         frexp: test for NetBSD failure on -0.0
58159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58160         not all, bugs from NetBSD 3.0 have been fixed.
58161         * doc/posix-functions/frexp.texi (frexp): Document bug.
58162         Reported by Thomas Klausner.
58163
58164         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58165         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58166         literal -0.0.
58167         Reported by Jonathan C. Patschke <jp@centtech.com>.
58168
58169 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58170
58171         * lib/glthread/cond.h: Use dummy implementation also if
58172         USE_WIN32_THREADS.
58173
58174 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58175
58176         * modules/fnmatch-posix (License): Change to LGPLv2+.
58177         * modules/fnmatch-gnu (License): Likewise.
58178
58179 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58180
58181         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58182
58183 2008-09-11  Jim Meyering  <meyering@redhat.com>
58184
58185         * users.txt: Add gtk-vnc.
58186
58187 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58188
58189         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58190         rotate amounts.
58191
58192         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58193         required for 16-bit and 8-bit rotates.
58194         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58195         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58196         UINT8_MAX instead of hard-coded constants.
58197         Suggested by Paul Eggert.
58198
58199 2008-09-07  Bruno Haible  <bruno@clisp.org>
58200
58201         * tests/test-striconveh.c (main): Check behaviour when converting from
58202         UTF-7.
58203
58204         Make striconveh work better with stateful encodings.
58205         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58206         that iconv does not increment the inptr when returning -1/EINVAL.
58207
58208 2008-09-07  Bruno Haible  <bruno@clisp.org>
58209
58210         * build-aux/config.rpath: Update according to libtool-2.2.6.
58211         * build-aux/config.libpath: Likewise.
58212
58213 2008-09-06  Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58216         * lib/freadptr.c (freadptr): Likewise.
58217         * lib/freadseek.c (freadptrinc): Likewise.
58218         Reported by Simon Josefsson.
58219
58220 2008-09-06  Bruno Haible  <bruno@clisp.org>
58221
58222         * modules/freadptr (License): Change to LGPLv2+.
58223         * modules/freadseek (License): Likewise.
58224         Suggested by Eric Blake.
58225
58226         * modules/memchr2 (License): Change to LGPLv2+.
58227         Approved by Eric Blake.
58228
58229 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58230             Bruno Haible  <bruno@clisp.org>
58231
58232         Make gnulib-tool work with native 'sed' on AIX.
58233         * gnulib-tool (sed_noop): New variable.
58234         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58235         func_add_or_update, func_create_testdir): Use it to initialize sed
58236         script variables.
58237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58238
58239 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58240             Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58243         also works after #include directives.
58244
58245 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58246
58247         getdate.y: reject an out-of-range timezone value
58248         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58249         the range [-24...+24].  When specified with only one or two digits,
58250         * tests/test-getdate.c: Tests for the fix.
58251         * doc/getdate.texi: Document this change.
58252
58253 2008-09-03  Bruno Haible  <bruno@clisp.org>
58254
58255         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58256
58257 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58258
58259         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58260         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58261         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58262         Blake <ebb9@byu.net>.
58263
58264         * tests/test-bitrotate.c: Add more test vectors.
58265
58266 2008-09-02  Eric Blake  <ebb9@byu.net>
58267
58268         vasnprintf-posix: handle large precision via %.*d
58269         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58270         when handling it ourselves.
58271         * tests/test-vasnprintf-posix.c (test_function): Add test.
58272         * tests/test-snprintf-posix.h (test_function): Likewise.
58273         * tests/test-sprintf-posix.h (test_function): Likewise.
58274         * tests/test-vasprintf-posix.c (test_function): Likewise.
58275         Reported by Alain Guibert.
58276
58277 2008-09-01  Eric Blake  <ebb9@byu.net>
58278
58279         c-stack: make configure-time check more robust
58280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58281         successful sigaction call.
58282         Reported by Tom G. Christensen.
58283
58284 2008-09-01  Bruno Haible  <bruno@clisp.org>
58285
58286         New module 'findprog-lgpl'.
58287         * modules/findprog-lgpl: New file.
58288         * lib/findprog-lgpl.c: New file.
58289         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58290         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58291         to decide whether to use strdup or xstrdup, concatenated_filename or
58292         xconcatenated_filename.
58293
58294 2008-09-01  Bruno Haible  <bruno@clisp.org>
58295
58296         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58297         'xconcat-filename' (GPL).
58298         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58299         (License): Change to LGPLv2+.
58300         * modules/xconcat-filename: New file.
58301         * lib/concat-filename.h (concatenated_filename): Change specification.
58302         (xconcatenated_filename): New declaration.
58303         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58304         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58305         memory situations.
58306         * lib/xconcat-filename.c: New file.
58307         * NEWS: Mention the change.
58308         * lib/findprog.c: Include concat-filename.h, not filename.h.
58309         (find_in_path): Use xconcatenated_filename instead of
58310         concatenated_filename.
58311         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58312         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58313         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58314         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58315         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58316         instead of concatenated_filename.
58317         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58318         (execute_java_class): Use xconcatenated_filename instead of
58319         concatenated_filename.
58320         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58321         * modules/javacomp (Depends-on): Likewise.
58322         * modules/javaexec (Depends-on): Likewise.
58323
58324 2008-09-01  Bruno Haible  <bruno@clisp.org>
58325
58326         Split module 'filename' into 'filename' and 'concat-filename'.
58327         * modules/filename: Keep only lib/filename.h.
58328         (License): Change to LGPLv2+.
58329         * modules/concat-filename: New file, extracted from modules/filename.
58330         * lib/filename.h (concatenated_filename): Remove declaration.
58331         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58332         * lib/concat-filename.c: Include concat-filename.h.
58333         * NEWS: Mention the change.
58334
58335 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58336
58337         * lib/bitrotate.h (rotl8, rotr8): Add.
58338
58339         * modules/bitrotate (configure.ac): Need
58340         AC_REQUIRE([AC_C_INLINE]).
58341         (Description): Mention stdint.h.  Reported by Bruno Haible
58342         <bruno@clisp.org>.
58343
58344         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58345         Paolo Bonzini <bonzini@gnu.org>.
58346
58347 2008-08-31  Bruno Haible  <bruno@clisp.org>
58348
58349         Assume Solaris specific bi-arch conventions on Solaris systems.
58350         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58351         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58353         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58354         like acl_libdirstem.
58355         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58356         acl_libdirstem.
58357         * NEWS: Mention the change.
58358         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58359
58360 2008-08-31  Jim Meyering  <meyering@redhat.com>
58361
58362         * lib/strftime.h: Add comments describing the two added arguments.
58363
58364         remove duplicate #include directives
58365         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58366         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58367
58368 2008-08-31  Bruno Haible  <bruno@clisp.org>
58369
58370         New module 'sigpipe-die'.
58371         * modules/sigpipe-die: New file.
58372         * lib/sigpipe-die.h: New file.
58373         * lib/sigpipe-die.c: New file.
58374         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58375
58376 2008-08-31  Bruno Haible  <bruno@clisp.org>
58377
58378         Don't override previously installed signal handlers.
58379         * lib/fatal-signal.c (saved_sigactions): New variable.
58380         (uninstall_handlers): Reset the signal to the saved handler, not
58381         to SIG_DFL (except when ignored).
58382         (install_handlers): Save the previous handlers.
58383
58384 2008-08-30  Bruno Haible  <bruno@clisp.org>
58385
58386         * gnulib-tool (func_reset_sigpipe): New function.
58387         (func_get_automake_snippet, func_modules_transitive_closure,
58388         func_import): Invoke it before a join command that reads from stdin,
58389         to avoid "echo: write error: Broken pipe" error messages on stderr.
58390         Reported by Sam Steingold <sds@gnu.org>.
58391
58392 2008-08-30  Bruno Haible  <bruno@clisp.org>
58393
58394         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58395         Code copied from m4/open.m4.
58396         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58397         access and the filename ends in a slash. Code copied from lib/open.c.
58398         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58399         * tests/test-fopen.c (main): Check against bug with trailing slash.
58400
58401 2008-08-29  Bruno Haible  <bruno@clisp.org>
58402
58403         Avoid some "gcc -pedantic" warnings.
58404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58405         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58406         * lib/dirent.in.h: Likewise.
58407         * lib/fcntl.in.h: Likewise.
58408         * lib/float.in.h: Likewise.
58409         * lib/iconv.in.h: Likewise.
58410         * lib/inttypes.in.h: Likewise.
58411         * lib/locale.in.h: Likewise.
58412         * lib/math.in.h: Likewise.
58413         * lib/netinet_in.in.h: Likewise.
58414         * lib/search.in.h: Likewise.
58415         * lib/signal.in.h: Likewise.
58416         * lib/stdarg.in.h: Likewise.
58417         * lib/stdint.in.h: Likewise.
58418         * lib/stdio.in.h: Likewise.
58419         * lib/stdlib.in.h: Likewise.
58420         * lib/string.in.h: Likewise.
58421         * lib/strings.in.h: Likewise.
58422         * lib/sys_select.in.h: Likewise.
58423         * lib/sys_socket.in.h: Likewise.
58424         * lib/sys_stat.in.h: Likewise.
58425         * lib/sys_time.in.h: Likewise.
58426         * lib/sysexits.in.h: Likewise.
58427         * lib/time.in.h: Likewise.
58428         * lib/unistd.in.h: Likewise.
58429         * lib/wchar.in.h: Likewise.
58430         * lib/wctype.in.h: Likewise.
58431         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58432         * modules/fchdir (Makefile.am): Likewise.
58433         * modules/fcntl (Makefile.am): Likewise.
58434         * modules/float (Makefile.am): Likewise.
58435         * modules/iconv_open (Makefile.am): Likewise.
58436         * modules/inttypes (Makefile.am): Likewise.
58437         * modules/locale (Makefile.am): Likewise.
58438         * modules/math (Makefile.am): Likewise.
58439         * modules/netinet_in (Makefile.am): Likewise.
58440         * modules/search (Makefile.am): Likewise.
58441         * modules/signal (Makefile.am): Likewise.
58442         * modules/stdarg (Makefile.am): Likewise.
58443         * modules/stdint (Makefile.am): Likewise.
58444         * modules/stdio (Makefile.am): Likewise.
58445         * modules/stdlib (Makefile.am): Likewise.
58446         * modules/string (Makefile.am): Likewise.
58447         * modules/strings (Makefile.am): Likewise.
58448         * modules/sys_select (Makefile.am): Likewise.
58449         * modules/sys_socket (Makefile.am): Likewise.
58450         * modules/sys_stat (Makefile.am): Likewise.
58451         * modules/sys_time (Makefile.am): Likewise.
58452         * modules/sysexits (Makefile.am): Likewise.
58453         * modules/time (Makefile.am): Likewise.
58454         * modules/unistd (Makefile.am): Likewise.
58455         * modules/wchar (Makefile.am): Likewise.
58456         * modules/wctype (Makefile.am): Likewise.
58457         Reported by Reuben Thomas <rrt@sc3d.org>.
58458
58459 2008-08-29  Bruno Haible  <bruno@clisp.org>
58460
58461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58462         any more.
58463
58464 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58465
58466         * MODULES.html.sh (Misc): Add bitrotate.
58467
58468         * modules/bitrotate: New file.
58469
58470         * lib/bitrotate.h: New file.
58471
58472         * modules/bitrotate-tests: New file.
58473
58474         * tests/test-bitrotate.c: New file.
58475
58476         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58477         on the bitrotate module.
58478
58479         * lib/arctwo.c: Use new bitrotate module.
58480
58481 2008-08-29  Jim Meyering  <meyering@redhat.com>
58482
58483         bootstrap: merge changes from coreutils
58484         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58485         of copied files.  Remove a kludge, now that this is fixed.
58486         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58487         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58488         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58489
58490 2008-08-29  Bruno Haible  <bruno@clisp.org>
58491
58492         * MODULES.html.sh: Remove --cvs-urls option.
58493
58494 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58495
58496         maint.mk: adjust to file name change
58497         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58498
58499 2008-08-28  Jim Meyering  <meyering@redhat.com>
58500
58501         * modules/getndelim2 (License): Relicense to LGPLv2+.
58502         Approved by Richard Stallman for the version of 1995, and by
58503         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58504
58505 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58506
58507         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58508         dummy if one is not available.  Do not touch them if
58509         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58510         (getc_maybe_unlocked): New.
58511         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58512
58513 2008-08-26  Eric Blake  <ebb9@byu.net>
58514
58515         doc/INSTALL: resync from autoconf
58516         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58517         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58518         moving...
58519         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58520         * INSTALL: Regenerate.
58521         * INSTALL.ISO: New file.
58522         * INSTALL.UTF-8: Likewise.
58523
58524 2008-08-26  Jim Meyering  <meyering@redhat.com>
58525
58526         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58527         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58528         these definitions conditional, so that they may be overridden, too.
58529
58530 2008-08-26  Bruno Haible  <bruno@clisp.org>
58531
58532         Generate INSTALL file variants with prettier quotes.
58533         * doc/Makefile (INSTALL_PRELUDE): New macro.
58534         (INSTALL): Use it.
58535         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58536
58537 2008-08-26  Bruno Haible  <bruno@clisp.org>
58538
58539         Run makeinfo in an English locale.
58540         * doc/Makefile (MAKEINFO): New variable.
58541
58542 2008-08-26  Bruno Haible  <bruno@clisp.org>
58543
58544         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58545         Suggested by Eric Blake.
58546
58547 2008-08-25  Bruno Haible  <bruno@clisp.org>
58548
58549         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58550
58551 2008-08-25  Eric Blake  <ebb9@byu.net>
58552
58553         c-stack: test that stack overflow can be caught
58554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58555         that platform allows handling stack overflow; at least OS/2 EMX
58556         has sigaltstack, but crashes before transferring control to
58557         handler on stack overflow.
58558         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58559         check for HAVE_STACK_OVERFLOW_HANDLING.
58560         Reported by Elbert Pol.
58561
58562 2008-08-25  Bruno Haible  <bruno@clisp.org>
58563
58564         * doc/posix-functions/strftime.texi: Fix description of strftime
58565         module.
58566
58567 2008-08-24  Bruno Haible  <bruno@clisp.org>
58568
58569         * tests/uniwidth/test-uc_width2.c: New file.
58570         * tests/uniwidth/test-uc_width2.sh: New file.
58571         * modules/uniwidth/width-tests (Files): Add the new files.
58572         (TESTS): Add uniwidth/test-uc_width2.sh.
58573         (TESTS_ENVIRONMENT): New variable.
58574         (check_PROGRAMS): Add test-uc_width2.
58575         (test_uc_width2_SOURCES): New variable.
58576
58577         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58578         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58579         not 0x00AB.
58580         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58581
58582 2008-08-22  Eric Blake  <ebb9@byu.net>
58583
58584         test-lock, test-tls: mention why a test is skipped
58585         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58586         skipped.
58587         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58588
58589         count-one-bits: relax license
58590         * modules/count-one-bits (License): Relicense to LGPLv2+.
58591         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58592
58593 2008-08-22  Andreas Schwab  <schwab@suse.de>
58594
58595         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58596         Remove spurious space in assignment.
58597
58598 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58599
58600         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58601         Paul Eggert <eggert@CS.UCLA.EDU>.
58602
58603 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58604
58605         * modules/gettext: Add m4/threadlib.m4.
58606
58607 2008-08-19  Eric Blake  <ebb9@byu.net>
58608
58609         test-c-stack: fix compilation failure on FreeBSD 5.0
58610         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58611         headers before <sys/resource.h>.
58612         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58613         the bug.
58614         Reported by Nelson H. F. Beebe.
58615
58616         strverscmp: migrate from "strverscmp.h" to <string.h>
58617         * modules/string (Makefile.am): Add new hooks.
58618         * modules/strverscmp (Files): Remove strverscmp.h.
58619         (Depends-on): Add string.
58620         (configure.ac): Add indicator.
58621         (Include): Mention new header.
58622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58623         defaults.
58624         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58625         results.
58626         * lib/strverscmp.h: Delete.
58627         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58628         * tests/test-strverscmp.c (includes): Adjust client.
58629         * lib/check-version.c (includes): Likewise.
58630         * NEWS: Document the change.
58631
58632         strverscmp: add unit test
58633         * modules/strverscmp-tests: New file.
58634         * tests/test-strverscmp.c: Likewise.
58635
58636 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58637
58638         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58639         regarding Windows crypto stuff, from Mono.
58640
58641 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58642
58643         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58644         if present, for intel RND.  Return error on failures.
58645
58646 2008-08-18  Ben Pfaff  <blp@gnu.org>
58647
58648         gitlog-to-changelog: give better diagnostic for failed pipe-open
58649         * build-aux/gitlog-to-changelog: Improve error message: suggest
58650         that the version of Git may be too old.
58651
58652 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58653
58654         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58655         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58656
58657 2008-08-18  Bruno Haible  <bruno@clisp.org>
58658
58659         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58660         pthread_in_use().
58661
58662 2008-08-18  Bruno Haible  <bruno@clisp.org>
58663
58664         * lib/glthread/threadlib.c: Include <pthread.h>.
58665
58666 2008-08-18  Bruno Haible  <bruno@clisp.org>
58667
58668         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58669         glthread_recursive_lock_* macros.
58670         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58671         Fix syntax error.
58672
58673 2008-08-18  Bruno Haible  <bruno@clisp.org>
58674
58675         * lib/glthread/thread.c: Avoid forcing a context switch right after
58676         thread creation.
58677
58678 2008-08-17  Bruno Haible  <bruno@clisp.org>
58679
58680         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58681         * lib/glthread/thread.h: Provide Win32 specific implementation.
58682         * modules/thread (Files): Add lib/glthread/thread.c.
58683         (Depends-on): Add lock.
58684         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58685
58686 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58687
58688         New module 'yield'.
58689         * modules/yield: New file.
58690         * lib/glthread/yield.h: New file.
58691         * m4/yield.m4: New file.
58692         * MODULES.html.sh (Multithreading): Add yield.
58693
58694 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58695
58696         New module 'thread'.
58697         * modules/thread: New file.
58698         * lib/glthread/thread.h: New file.
58699         * m4/thread.m4: New file.
58700         * MODULES.html.sh (Multithreading): Add thread.
58701
58702 2008-08-17  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/glthread/lock.h: Include <stdlib.h> always.
58705         * lib/glthread/tls.h: Likewise.
58706         * lib/glthread/cond.h: Likewise.
58707
58708 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58709
58710         New module 'cond'.
58711         * modules/cond: New file.
58712         * lib/glthread/cond.h: New file.
58713         * lib/glthread/cond.c: New file.
58714         * m4/cond.m4: New file.
58715         * MODULES.html.sh (Multithreading): Add cond.
58716
58717 2008-08-16  Eric Blake  <ebb9@byu.net>
58718
58719         c-stack: fix regression on Irix 5.3 from 2008-06-21
58720         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58721         sa_sigaction...
58722         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58723         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58725         * modules/signal (Makefile.am): Use the value.
58726         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58727         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58728         * doc/posix-headers/signal.texi (signal.h): Document this
58729         portability issue.
58730         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58731         Reported by Tom G. Christensen.
58732
58733 2008-08-17  Bruno Haible  <bruno@clisp.org>
58734
58735         New module 'threadlib'.
58736         * modules/threadlib: New file.
58737         * lib/glthread/threadlib.c: New file, extracted from
58738         lib/glthread/lock.c.
58739         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58740         functions.
58741         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58742         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58743         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58744         macros.
58745         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58746         (gl_DISABLE_THREADS): Remove macro.
58747         * modules/lock (Files): Remove build-aux/config.rpath.
58748         (Depends-on): Remove havelib. Add threadlib.
58749         (configure.ac-early): Remove section.
58750         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58751         * modules/tls (Depends-on): Remove lock. Add threadlib.
58752         (Link): New section, copied from threadlib.
58753         * MODULES.html.sh (Multithreading): Add threadlib.
58754
58755 2008-08-14  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58758         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58759         glthread_rwlock_unlock, glthread_rwlock_destroy,
58760         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58761         glthread_recursive_lock_destroy): Define as macros always.
58762         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58763         glthread_lock_lock.
58764         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58765         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58766         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58767         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58768         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58769         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58770         (glthread_recursive_lock_lock_func): Renamed from
58771         glthread_recursive_lock_lock.
58772         (glthread_recursive_lock_unlock_func): Renamed from
58773         glthread_recursive_lock_unlock.
58774         (glthread_recursive_lock_destroy_func): Renamed from
58775         glthread_recursive_lock_destroy.
58776
58777 2008-08-14  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/glthread/lock.h: Renamed from lib/lock.h.
58780         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58781         * lib/glthread/tls.h: Renamed from lib/tls.h.
58782         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58783         * lib/fstrcmp.c: Update includes.
58784         * lib/strsignal.c: Update includes.
58785         * modules/lock (Files, Makefile.am): Update.
58786         (Include): Change to "glthread/lock.h".
58787         * modules/tls (Files, Makefile.am): Update.
58788         (Include): Change to "glthread/tls.h".
58789         * tests/test-lock.c: Update includes.
58790         * tests/test-tls.c: Update includes.
58791         * NEWS: Mention the renamed header files.
58792
58793 2008-08-11  Jim Meyering  <meyering@redhat.com>
58794
58795         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58796
58797 2008-08-11  Eric Blake  <ebb9@byu.net>
58798
58799         test-c-stack: avoid C99-ism
58800         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58801         before statement.
58802         Reported by Alain Guibert.
58803
58804 2008-08-10  Jim Meyering  <meyering@redhat.com>
58805
58806         ensure that return value of uinttostr et al are not ignored
58807         * lib/inttostr.h (__GNUC_PREREQ): Define.
58808         (__attribute_warn_unused_result__): Define.
58809         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58810
58811 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58812
58813         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58814         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58815
58816 2008-08-07  Jim Meyering  <meyering@redhat.com>
58817
58818         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58819
58820         * modules/mkstemp (License): Relicense under LGPLv2+.
58821         * modules/tempname (License): Likewise.
58822
58823 2008-08-06  Bruno Haible  <bruno@clisp.org>
58824
58825         * lib/poll.c (poll): Further micro-optimization.
58826
58827 2008-08-06  Jim Meyering  <meyering@redhat.com>
58828
58829         inet_pton.c: use locale-independent tolower
58830         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58831         (inet_pton6): Use c_tolower rather than tolower.
58832         * modules/inet_pton (Depends-on): Add c-ctype.
58833
58834 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58835
58836         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58837         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58838
58839 2008-08-06  Jim Meyering  <meyering@redhat.com>
58840
58841         * modules/inet_pton (License): Relicense under LGPLv2+.
58842
58843 2008-08-03  Bruno Haible  <bruno@clisp.org>
58844
58845         Additional non-aborting API for lock and tls.
58846         * lib/lock.h: Include <errno.h>.
58847         (glthread_lock_init): New macro/function.
58848         (gl_lock_init): Define as wrapper around glthread_lock_init.
58849         (glthread_lock_lock): New macro/function.
58850         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58851         (glthread_lock_unlock): New macro/function.
58852         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58853         (glthread_lock_destroy): New macro/function.
58854         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58855         (glthread_rwlock_init): New macro/function.
58856         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58857         (glthread_rwlock_rdlock): New macro/function.
58858         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58859         (glthread_rwlock_wrlock): New macro/function.
58860         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58861         (glthread_rwlock_unlock): New macro/function.
58862         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58863         (glthread_rwlock_destroy): New macro/function.
58864         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58865         (glthread_recursive_lock_init): New macro/function.
58866         (gl_recursive_lock_init): Define as wrapper around
58867         glthread_recursive_lock_init.
58868         (glthread_recursive_lock_lock): New macro/function.
58869         (gl_recursive_lock_lock): Define as wrapper around
58870         glthread_recursive_lock_lock.
58871         (glthread_recursive_lock_unlock): New macro/function.
58872         (gl_recursive_lock_unlock): Define as wrapper around
58873         glthread_recursive_lock_unlock.
58874         (glthread_recursive_lock_destroy): New macro/function.
58875         (gl_recursive_lock_destroy): Define as wrapper around
58876         glthread_recursive_lock_destroy.
58877         (glthread_once): New macro/function.
58878         (gl_once): Define as wrapper around glthread_once.
58879         Update function declarations.
58880         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58881         glthread_rwlock_init. Return error code.
58882         (glthread_rwlock_rdlock_multithreaded): Renamed from
58883         glthread_rwlock_rdlock. Return error code.
58884         (glthread_rwlock_wrlock_multithreaded): Renamed from
58885         glthread_rwlock_wrlock. Return error code.
58886         (glthread_rwlock_unlock_multithreaded): Renamed from
58887         glthread_rwlock_unlock. Return error code.
58888         (glthread_rwlock_destroy_multithreaded): Renamed from
58889         glthread_rwlock_destroy. Return error code.
58890         (glthread_recursive_lock_init_multithreaded): Renamed from
58891         glthread_recursive_lock_init. Return error code.
58892         (glthread_recursive_lock_lock_multithreaded): Renamed from
58893         glthread_recursive_lock_lock. Return error code.
58894         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58895         glthread_recursive_lock_unlock. Return error code.
58896         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58897         glthread_recursive_lock_destroy. Return error code.
58898         (glthread_once_call): Make static.
58899         (glthread_once_multithreaded): Renamed from glthread_once.
58900         * lib/tls.h: Include <errno.h>.
58901         (glthread_tls_key_init): New macro/function.
58902         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58903         (glthread_tls_set): New macro/function.
58904         (gl_tls_set): Define as wrapper around glthread_tls_set.
58905         (glthread_tls_key_destroy): New macro/function.
58906         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58907         Update function declarations.
58908         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58909         glthread_tls_get.
58910         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58911
58912 2008-08-04  Eric Blake  <ebb9@byu.net>
58913
58914         gnumakefile: use space, not TAB, outside of targets
58915         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58916
58917 2008-08-02  Jim Meyering  <meyering@redhat.com>
58918
58919         getdate.y: avoid locale-dependent date parsing failure
58920         In Turkish locales, getdate would fail to recognize keywords
58921         containing a lowercase "i".  The solution is not to rely on
58922         locale-sensitive case-conversion.
58923         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58924         (lookup_word): Use c_toupper in place of toupper.
58925         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58926         Reported by Vefa Bicakci <bicave@superonline.com> in
58927         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58928         * modules/getdate (Depends-on): Add c-ctype.
58929
58930 2008-08-02  Bruno Haible  <bruno@clisp.org>
58931
58932         * gnulib-tool (func_import): When updating or creating a .gitignore
58933         file, prepend each added line with a slash, and ignore leading slashes
58934         from the existing lines.
58935         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58936
58937 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58938
58939         Portability fix for GNU make 3.79.1.
58940         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58941         versions do not understand.
58942
58943 2008-08-01  Bruno Haible  <bruno@clisp.org>
58944
58945         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58946         * tests/test-isnanf.h (zero): New variable.
58947         (main): Avoid literal -0.0f.
58948         * tests/test-isnand.h (zero): New variable.
58949         (main): Avoid literal -0.0.
58950         * tests/test-isnanl.h (zero): New variable.
58951         (main): Avoid literal -0.0L.
58952         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58953         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58954         -0.0, -0.0L.
58955         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58956         (test_signbitd): Avoid literal -0.0.
58957         (test_signbitl): Avoid literal -0.0L.
58958         * tests/test-ceilf1.c (zero): New variable.
58959         (main): Avoid literal -0.0f.
58960         * tests/test-ceill.c (zero): New variable.
58961         (main): Avoid literal -0.0L.
58962         * tests/test-floorf1.c (zero): New variable.
58963         (main): Avoid literal -0.0f.
58964         * tests/test-floorl.c (zero): New variable.
58965         (main): Avoid literal -0.0L.
58966         * tests/test-roundf1.c (zero): New variable.
58967         (main): Avoid literal -0.0f.
58968         * tests/test-round1.c (zero): New variable.
58969         (main): Avoid literal -0.0.
58970         * tests/test-roundl.c (zero): New variable.
58971         (main): Avoid literal -0.0L.
58972         * tests/test-truncf1.c (zero): New variable.
58973         (main): Avoid literal -0.0f.
58974         * tests/test-trunc1.c (zero): New variable.
58975         (main): Avoid literal -0.0.
58976         * tests/test-truncl.c (zero): New variable.
58977         (main): Avoid literal -0.0L.
58978         * tests/test-frexp.c (zero): New variable.
58979         (main): Avoid literal -0.0.
58980         * tests/test-frexpl.c (zero): New variable.
58981         (main): Avoid literal -0.0L.
58982         * tests/test-ldexpl.c (zero): New variable.
58983         (main): Avoid literal -0.0L.
58984         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58985         (zerod, zerol): New variables.
58986         (test_function): Avoid literals -0.0, -0.0L.
58987         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58988         (zerod, zerol): New variables.
58989         (test_function): Avoid literals -0.0, -0.0L.
58990         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58991         (zerod, zerol): New variables.
58992         (test_function): Avoid literals -0.0, -0.0L.
58993         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58994         (zerod, zerol): New variables.
58995         (test_function): Avoid literals -0.0, -0.0L.
58996         * tests/test-strtod.c (zero): New variable.
58997         (main): Avoid literal -0.0.
58998         Reported by Jonathan C. Patschke <jp@centtech.com>.
58999
59000 2008-07-31  Jim Meyering  <meyering@redhat.com>
59001
59002         sha256.h: correct definition of SHA224_DIGEST_SIZE
59003         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59004         Reported by Paulie Pena IV <paulie4@gmail.com>.
59005         Define as 224 / 8, rather than as a literal.
59006         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59007         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59008         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59009
59010 2008-07-31  Bruno Haible  <bruno@clisp.org>
59011
59012         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59013         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59014         Reported by Jonathan Patschke <jp@centtech.com>.
59015
59016 2008-07-31  Bruno Haible  <bruno@clisp.org>
59017
59018         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59019         Reported by Paolo Bonzini <bonzini@gnu.org>.
59020
59021 2008-07-30  Eric Blake  <ebb9@byu.net>
59022
59023         test-strtod: allow compilation without -lm
59024         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59025         Reported by Dennis Clarke <blastwave@gmail.com>.
59026
59027 2008-07-28  Jim Meyering  <meyering@redhat.com>
59028
59029         bootstrap: work also when there are no .po files in po/
59030         * build-aux/bootstrap (update_po_files): Complete the change
59031         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59032
59033 2008-07-27  Jim Meyering  <meyering@redhat.com>
59034
59035         * users.txt: Add zile.
59036
59037 2008-07-26  Ben Pfaff  <blp@gnu.org>
59038
59039         Add missing dependencies on new m4/exponent[fdl].m4 files.
59040         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59041         * modules/isnand-nolibm: Add m4/exponentd.m4.
59042         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59043         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59044         m4/isnan[fdl].m4, because the macros actually used moved.
59045         Reported by Jim Meyering.
59046
59047 2008-07-14  Ben Pfaff  <blp@gnu.org>
59048
59049         Add isinf module.
59050         * lib/isinf.c: New file.
59051         * lib/math.in.h: Define isinf macro if we have decided to replace
59052         it.
59053         * m4/isinf.m4: New file.
59054         * m4/math_h.m4: Initialize and substitute variables for isinf
59055         module.
59056         * modules/isinf: New file.
59057         * modules/isinf-tests: New file.
59058         * modules/math: Add substitutions for new module.
59059         * tests/test-isinf.c: New file.
59060         * doc/posix-functions/isinf.texi: Mention new module.
59061         * MODULES.html.sh: Mention new module.
59062
59063 2008-07-14  Ben Pfaff  <blp@gnu.org>
59064
59065         Factor out some macros for use by additional modules.
59066         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59067         exponentf.m4.
59068         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59069         exponentd.m4.
59070         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59071         file exponentl.m4.
59072         * m4/exponentf.m4: New file.
59073         * m4/exponentd.m4: New file.
59074         * m4/exponentl.m4: New file.
59075         * modules/isnanf: Use new file m4/exponentf.m4.
59076         * modules/isnand: Use new file m4/exponentd.m4.
59077         * modules/isnanl: Use new file m4/exponentl.m4.
59078
59079 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59080
59081         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59082         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59083         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59084         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59085
59086         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59087         readlink on platforms without PATH_MAX.
59088
59089 2008-07-21  Eric Blake  <ebb9@byu.net>
59090
59091         Warn, not fail, on stale version.
59092         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59093
59094         Don't allow installation with stale devel version number.
59095         * top/GNUmakefile (_is-install-target): New macro.
59096         (_curr-ver): Forbid installation with stale version number.
59097
59098 2008-07-20  Bruno Haible  <bruno@clisp.org>
59099
59100         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59101         TESTS_ENVIRONMENT.
59102         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59103
59104 2008-07-20  Bruno Haible  <bruno@clisp.org>
59105
59106         * lib/c-stack.h (c_stack_action): Add documentation.
59107         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59108
59109 2008-07-20  Bruno Haible  <bruno@clisp.org>
59110
59111         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59112         * modules/readlink (License): Likewise.
59113
59114 2008-07-17  Eric Blake  <ebb9@byu.net>
59115
59116         * modules/c-stack (Link): Fix typo.
59117
59118         Make c-stack use libsigsegv, when available.
59119         * modules/c-stack (Depends-on): Add libsigsegv.
59120         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59121         needed.
59122         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59123         (segv_handler, overflow_handler, c_stack_action)
59124         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59125         implementation when libsigsegv is available, but only when using
59126         the library is necessary.
59127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59128         comment, explaining why XSI check fails on Linux.
59129         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59130         * tests/test-c-stack2.sh: Tweak skip message.
59131         * NEWS: Document new link-time requirements.
59132
59133 2008-07-16  Eric Blake  <ebb9@byu.net>
59134
59135         c-stack: Expose false positives when not using libsigsegv.
59136         * modules/c-stack-tests (Files): Expand test.
59137         * tests/test-c-stack.c (main): Add means to conditionally trigger
59138         non-overflow SIGSEGV.
59139         * tests/test-c-stack2.sh: New file.
59140
59141 2008-07-14  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59144         Reported by Eric Blake.
59145
59146 2008-07-14  Sam Steingold  <sds@gnu.org>
59147             Bruno Haible  <bruno@clisp.org>
59148
59149         New module libsigsegv.
59150         * modules/libsigsegv: New file.
59151         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59152         modifications.
59153         * MODULES.html.sh (Signal handling): New section.
59154
59155 2008-07-14  Bruno Haible  <bruno@clisp.org>
59156
59157         * modules/unictype/ctype-* (Description): Add the word "function".
59158         Improves the resulting doc in MODULES.html.
59159
59160 2008-07-12  Ben Pfaff  <blp@gnu.org>
59161
59162         Add longlong module.
59163         * modules/longlong: New file.
59164
59165 2008-07-12  Bruno Haible  <bruno@clisp.org>
59166
59167         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59168         to empty.
59169
59170 2008-07-10  Ben Pfaff  <blp@gnu.org>
59171
59172         Add isnan module.
59173         * doc/posix-functions/isnan.texi: Mention new module.
59174         * lib/math.in.h: Define isnan macro if we have decided to replace
59175         it.
59176         * m4/isnan.m4: New file.
59177         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59178         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59179         also.
59180         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59181         redundancy.
59182         * m4/math_h.m4: Initialize and substitute variables for isnan
59183         module.
59184         * modules/isnan: New file.
59185         * modules/isnan-tests: New file.
59186         * modules/math: Add substitutions for new module.
59187         * tests/test-isnan.c: New file.
59188         * MODULES.html.sh: Mention new module.
59189
59190 2008-07-10  Ben Pfaff  <blp@gnu.org>
59191
59192         Add isnanf module.
59193         * lib/isnanf.m4: New file.
59194         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59195         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59196         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59197         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59198         * modules/isnanf: New file.
59199         * modules/isnanf-tests: New file.
59200         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59201         files.
59202         * tests/test-isnanf-nolibm.c: factored most of its contents into
59203         new file tests/test-isnanf.h.
59204         * tests/test-isnanf.h: New file.
59205         * tests/test-isnanf.c: New file.
59206         * MODULES.html.sh: Mention new module.
59207         * doc/glibc-functions/isnanf.texi: Mention new module.
59208
59209 2008-07-10  Ben Pfaff  <blp@gnu.org>
59210
59211         Add isnand module.
59212         * lib/isnand.h: New file.
59213         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59214         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59215         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59216         functionality also.
59217         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59218         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59219         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59220         * modules/isnand: New file.
59221         * modules/isnand-tests: New file.
59222         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59223         files.
59224         * tests/test-isnand-nolibm.c: factored most of its contents into
59225         new file tests/test-isnand.h.
59226         * tests/test-isnand.h: New file.
59227         * tests/test-isnand.c: New file.
59228         * MODULES.html.sh: Mention new module.
59229
59230 2008-07-10  Ben Pfaff  <blp@gnu.org>
59231
59232         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59233         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59234         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59235         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59236         * modules/isnanf-nolibm: Update references to renamed files.
59237         * modules/isnand-nolibm: Likewise.
59238         * modules/isnanf-nolibm-tests: Likewise.
59239         * modules/isnand-nolibm-tests: Likewise.
59240         * lib/frexp.c: Likewise.
59241         * lib/isfinite.c: Likewise.
59242         * lib/signbitd.c: Likewise.
59243         * lib/signbitf.c: Likewise.
59244         * lib/vasnprintf.c: Likewise.
59245         * tests/test-ceilf1.c: Likewise.
59246         * tests/test-ceilf2.c: Likewise.
59247         * tests/test-floorf1.c: Likewise.
59248         * tests/test-floorf2.c: Likewise.
59249         * tests/test-frexp.c: Likewise.
59250         * tests/test-round1.c: Likewise.
59251         * tests/test-round2.c: Likewise.
59252         * tests/test-roundf1.c: Likewise.
59253         * tests/test-strtod.c: Likewise.
59254         * tests/test-trunc1.c: Likewise.
59255         * tests/test-trunc2.c: Likewise.
59256         * tests/test-truncf1.c: Likewise.
59257         * tests/test-truncf2.c: Likewise.
59258         * NEWS: Mention the renamed header files.
59259
59260 2008-07-11  Jim Meyering  <meyering@redhat.com>
59261
59262         vc-list-files: make the last-resort awk code more portable
59263         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59264         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59265         does not support it.
59266
59267 2008-07-10  Eric Blake  <ebb9@byu.net>
59268
59269         Work with tar's bootstrap.
59270         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59271         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59272         an m4 comment.
59273
59274 2008-07-09  Jim Meyering  <meyering@redhat.com>
59275
59276         posix-shell.m4: fix typo that made this test malfunction
59277         * m4/posix-shell.m4: Remove capitalization in variable name.
59278
59279 2008-07-08  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/onceonly.m4: Update comments.
59282         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59283
59284 2008-07-04  Jim Meyering  <meyering@redhat.com>
59285
59286         * users.txt: Add vc-dwim.
59287         (bison, coreutils): Use the gitweb URL.
59288
59289 2008-07-03  Jim Meyering  <meyering@redhat.com>
59290
59291         * users.txt: Add libffcall.  From Sam Steingold.
59292
59293 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59294
59295         getdate.y: do not ignore TZ with relative day, month or year offset
59296         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59297         relative-date-handling, since otherwise, the latter would clobber the
59298         sole output (an updated Start value) of the tz-handling block.
59299         * tests/test-getdate.c: Tests for the fix
59300
59301 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59302
59303         Recognize 'foo_LIBRARIES += libgnu.a'.
59304         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59305         makefile snippet has already specified an installation location,
59306         also using '+='.
59307
59308 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59309
59310         getdate.y: factor out common actions
59311         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59312         Use them in place of open-coded actions.
59313
59314 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59315
59316         Add self-test for getdate module.
59317         * modules/getdate-tests: New file.
59318         * tests/test-getdate.c: New file.
59319
59320 2008-06-29  Bruno Haible  <bruno@clisp.org>
59321
59322         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59323         .gitignore.
59324         Reported by Sylvain Beucler <beuc@beuc.net>.
59325
59326 2008-06-29  Bruno Haible  <bruno@clisp.org>
59327
59328         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59329         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59330
59331 2008-06-29  Bruno Haible  <bruno@clisp.org>
59332
59333         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59334         EXTRA_DIST.
59335         Reported by Sylvain Beucler <beuc@beuc.net>.
59336
59337 2008-06-26  Jim Meyering  <meyering@redhat.com>
59338
59339         make several modules depend on the "open" module
59340         This provides slightly increased consistency when opening-for-write
59341         the name of a non-directory spelled with a trailing slash.
59342         * modules/chdir-safer: Likewise.
59343         * modules/chown: Likewise.
59344         * modules/clean-temp: Likewise.
59345         * modules/copy-file: Likewise.
59346         * modules/fchdir: Likewise.
59347         * modules/fcntl-safer: Likewise.
59348         * modules/pipe: Likewise.
59349         * modules/utime: Likewise.
59350         Prompted by Eric Blake and Bruno Haible.
59351
59352 2008-06-24  Andreas Schwab  <schwab@suse.de>
59353
59354         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59355         literals can be used as initializers for global variables.
59356
59357 2008-06-23  Eric Blake  <ebb9@byu.net>
59358
59359         Make gnulib-cache.m4 easier to diff.
59360         * gnulib-tool (func_import): Allow newlines when reading cached
59361         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59362
59363 2008-06-23  Bruno Haible  <bruno@clisp.org>
59364
59365         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59366         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59367         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59368         m4/signalblocking.m4.
59369         (gl_PREREQ_SIGACTION): Don't invoke it.
59370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59371         gl_PREREQ_SIG_HANDLER_H.
59372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59373         Don't check for sigaction here.
59374
59375 2008-06-23  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59378         (install_handlers): Don't set the SA_RESETHAND flag.
59379
59380 2008-06-23  Bruno Haible  <bruno@clisp.org>
59381
59382         * m4/sigaction.m4: Comment fixes.
59383         * lib/signal.in.h: Likewise.
59384
59385 2008-06-23  Eric Blake  <ebb9@byu.net>
59386
59387         Fix typo.
59388         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59389
59390         Avoid SA_ namespace.
59391         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59392         Reported by Ralf Wildenhues.
59393
59394         Avoid test failure due to SA_RESTORER.
59395         * tests/test-sigaction.c (SA_MASK): New macro.
59396         (main): Avoid failing due to extension flags being set.
59397         Reported by Jim Meyering.
59398
59399         Revert use of sig-handler.h in sigprocmask.c.
59400         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59401         it requires the existence of struct sigaction.
59402         * lib/sigprocmask.c (handler_t): Restore typedef.
59403         (rpl_signal, old_handlers): Use local type.
59404
59405 2008-06-22  Bruno Haible  <bruno@clisp.org>
59406
59407         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59408         conditionally.
59409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59410
59411 2008-06-22  Bruno Haible  <bruno@clisp.org>
59412
59413         * doc/posix-functions/siginterrupt.texi: Move note.
59414
59415         * lib/signal.in.h (SA_RESTART): New macro.
59416         * lib/sigaction.c: Update comment.
59417
59418         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59419
59420         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59421         (gl_PREREQ_SIGPROCMASK): Invoke it.
59422         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59423
59424         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59425
59426         * lib/sigprocmask.c: Update a comment.
59427
59428 2008-06-21  Eric Blake  <ebb9@byu.net>
59429
59430         Use sigaction module rather than signal().
59431         * modules/c-stack (Depends-on): Add sigaction.
59432         * modules/fatal-signal (Depends-on): Likewise.
59433         * modules/nanosleep (Depends-on): Likewise.
59434         * modules/sigprocmask (Files): Add sig-handler.h.
59435         * modules/sigaction (Files): Likewise.
59436         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59437         Eggert.
59438         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59439         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59440         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59441         (init_fatal_signals): Likewise.
59442         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59443         (siginterrupt): Delete fallback.
59444         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59445         instead.
59446         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59447         siginterrupt.
59448
59449         New module sigaction, for mingw.
59450         * modules/sigaction: New module...
59451         * modules/sigaction-tests: ...and its test.
59452         * m4/sigaction.m4: New file.
59453         * lib/sigaction.c: Likewise.
59454         * tests/test-sigaction.c: Likewise.
59455         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59456         * modules/signal (Makefile.am): Likewise.
59457         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59458         needed.
59459         * doc/posix-headers/signal.texi (signal.h): Mention provided
59460         types.
59461         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59462         that sigaction is preferable.
59463         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59464         module.
59465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59466         sigaction.
59467
59468         Improve robustness of sigprocmask by overriding signal.
59469         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59470         is in use.
59471         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59472         (SIGKILL, SIGSTOP): Provide fallbacks.
59473         (rpl_signal): Implement.
59474         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59475         signal can be called inside handlers.
59476
59477         Fix nanosleep module on mingw.
59478         * modules/nanosleep (Depends-on): Add sys_select.
59479         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59480
59481         Fix licensing of sigprocmask.
59482         * modules/raise (License): Relicense as LGPL.
59483
59484 2008-06-21  Bruno Haible  <bruno@clisp.org>
59485
59486         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59487         result if it contains question marks.
59488         Reported by Michael Geng <linux@michaelgeng.de>.
59489
59490 2008-06-19  Bruno Haible  <bruno@clisp.org>
59491
59492         Fix CVS-ism.
59493         * doc/gnulib.texi: Include updated-stamp.texi.
59494         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59495         (updated-stamp.texi): New rule.
59496         (gnulib.info): Depend on it.
59497         * doc/.gitignore: Add updated-stamp.texi.
59498         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59499
59500 2008-06-19  Bruno Haible  <bruno@clisp.org>
59501
59502         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59503         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59504
59505 2008-06-19  Eric Blake  <ebb9@byu.net>
59506
59507         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59508         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59509         Reported by Stepan Kasal.
59510
59511 2008-06-18  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59514         Reported by Eric Blake.
59515
59516 2008-06-18  Eric Blake  <ebb9@byu.net>
59517
59518         Work around cygwin 1.5.25 strsignal bug.
59519         * tests/test-strsignal.c: Allow for const char *.
59520         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59521
59522 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59523
59524         * users.txt: Update URL to article and add author/date
59525         information.
59526
59527 2008-06-17  Bruno Haible  <bruno@clisp.org>
59528
59529         New macro gl_DISABLE_THREADS.
59530         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59531         if the user did not pass --enable-threads or --disable-threads option.
59532         (gl_DISABLE_THREADS): New macro.
59533         Reported by Eric Blake <ebb9@byu.net>.
59534
59535 2008-06-17  Bruno Haible  <bruno@clisp.org>
59536
59537         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59538         when the macro ignores it.
59539         Based on a patch by Eric Blake <ebb9@byu.net>.
59540
59541 2008-06-17  Bruno Haible  <bruno@clisp.org>
59542
59543         * modules/tls (License): Change to LGPLv2+.
59544         Reported by Eric Blake.
59545
59546 2008-06-17  Eric Blake  <ebb9@byu.net>
59547
59548         Simplify c-stack prerequisites.
59549         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59551         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59552         check.
59553         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59554         <sys/resource.h>.
59555
59556         Move c-stack test into testsuite.
59557         * modules/c-stack-tests: New file.
59558         * lib/c-stack.c [DEBUG]: Move test program...
59559         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59560         fail test if sigaltstack is lacking.
59561         * tests/test-c-stack.sh: New driver file.
59562
59563 2008-06-16  Eric Blake  <ebb9@byu.net>
59564
59565         Use raise module consistently.
59566         * modules/fatal-signal (Depends-on): Add raise.
59567         * modules/sigprocmask (Depends-on): Likewise.
59568         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59569         * lib/sigprocmask.c (sigprocmask): Likewise.
59570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59571         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59572
59573         Fix compliance bug in sigpending.
59574         * lib/sigprocmask.c (sigpending): Return pending array via
59575         parameter, not return value.
59576
59577 2008-06-14  Eric Blake  <ebb9@byu.net>
59578
59579         Improve obstack-printf test code.
59580         * tests/test-obstack-printf.c (test_function): Fix comment, and
59581         simplify usage of obstack_* in macros.  Add a test for coverage.
59582         Reported by Bruno Haible.
59583
59584 2008-06-14  Bruno Haible  <bruno@clisp.org>
59585
59586         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59587         array size as a constant, not as a const variable.
59588         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59589         AC_USE_SYSTEM_EXTENSIONS.
59590         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59591         Test whether the obstack_printf function actually exists.
59592         * modules/obstack-printf (Depends-on): Add extensions.
59593         (Include): Remove obstack.h.
59594         * modules/obstack-printf-posix (Depends-on): Add extensions.
59595         (Include): Remove obstack.h.
59596
59597 2008-06-13  Eric Blake  <ebb9@byu.net>
59598
59599         Add obstack-printf and obstack-printf-posix modules.
59600         * modules/obstack-printf: New file.
59601         * modules/obstack-printf-posix: Likewise.
59602         * MODULES.html.sh (Misc): Mention them.
59603         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59604         Likewise.
59605         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59606         Likewise.
59607         * modules/stdio (Makefile.am): Accomodate new modules.
59608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59609         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59610         Declare.
59611         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59612         functions.
59613         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59614         (gl_REPLACE_OBSTACK_PRINTF): New macros
59615         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59616         * tests/test-obstack-printf.c: New file.
59617         * modules/obstack-printf-tests: Likewise.
59618         * modules/obstack-printf-posix-tests: Likewise.
59619
59620 2008-06-11  Bruno Haible  <bruno@clisp.org>
59621
59622         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59623         * lib/open.c: Include errno.h.
59624         (open): Fail when attempting to write to a file that has a trailing
59625         slash.
59626         * tests/test-open.c (main): Test against trailing slash bug.
59627         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59628
59629 2008-06-10  Bruno Haible  <bruno@clisp.org>
59630
59631         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59632         for $? to work inside the trap command, with various /bin/sh-s.
59633         * tests/test-vc-list-files-cvs.sh: Likewise.
59634
59635 2008-06-10  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/acl-internal.h: Don't include gettext.h here.
59638         * lib/set-mode-acl.c: Include gettext.h here.
59639         * lib/copy-acl.c: Likewise.
59640
59641 2008-06-10  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59644         * lib/wait-process.c (wait_subprocess): Likewise.
59645         * lib/execute.h (execute): Add termsigp argument.
59646         * lib/execute.c (execute): Likewise.
59647         * lib/csharpcomp.c (compile_csharp_using_pnet,
59648         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59649         * lib/csharpexec.c (execute_csharp_using_pnet,
59650         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59651         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59652         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59653         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59654         is_jikes_present): Update.
59655         * lib/javaexec.c (execute_java_class): Update.
59656         * lib/javaversion.c (execute_and_read_line): Update.
59657         * NEWS: Document the changes.
59658         Reported by Eric Blake.
59659
59660 2008-06-10  Eric Blake  <ebb9@byu.net>
59661
59662         Add missing include.
59663         * tests/test-strstr.c (includes): Add <signal.h>.
59664         * tests/test-strcasestr.c (includes): Likewise.
59665         * tests/test-memmem.c (includes): Likewise.
59666
59667 2008-06-10  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/wait-process.c (wait_subprocess): Add an assertion.
59670
59671 2008-06-10  Bruno Haible  <bruno@clisp.org>
59672
59673         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59674
59675 2008-06-10  Bruno Haible  <bruno@clisp.org>
59676
59677         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59678         using alarm().
59679         * tests/test-strcasestr.c (main): Likewise.
59680         * tests/test-strstr.c (main): Likewise.
59681
59682 2008-06-09  Bruno Haible  <bruno@clisp.org>
59683
59684         Work around the Solaris 10 ACE ACLs ABI change.
59685         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59686         declare if ACL_NO_TRIVIAL is present.
59687         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59688         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59689         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59690         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59691         define if ACL_NO_TRIVIAL is present.
59692         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59693         and use the current ABI.
59694         (file_has_acl): Use same #if condition as elsewhere.
59695         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59696         in use, and use the current ABI.
59697         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59698         Reported by Jim Meyering.
59699
59700 2008-06-09  Eric Blake  <ebb9@byu.net>
59701
59702         Work around environments that (stupidly) ignore SIGALRM.
59703         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59704         before using alarm().
59705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59707         Reported by Ian Beckwith <ianb@erislabs.net>.
59708
59709         Produce autobuild blurb earlier in log.
59710         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59711
59712 2008-06-09  Jim Meyering  <meyering@redhat.com>
59713         and Ondřej Vašík  <ovasik@redhat.com>
59714
59715         utimens.c: correct kernel bug work-around
59716         Ondřej Vašík found that the invalid return value of 280 indicates
59717         failure, not success, and the kernel bug we're trying to work
59718         around affects not just the utimensat call, but also the fallback
59719         futimens call.
59720         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59721         not success.
59722         [HAVE_FUTIMENS]: Use the same work-around, here.
59723
59724 2008-06-09  Jim Meyering  <meyering@redhat.com>
59725
59726         add more guards around definition of ACE_-related code
59727         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59728         ALLOW and ACE_OWNER are also defined.
59729
59730 2008-06-08  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/acl-internal.h: Add me as co-author.
59733         * lib/file-has-acl.c: Likewise.
59734         * lib/set-mode-acl.c: Likewise.
59735         * lib/copy-acl.c: Likewise.
59736
59737 2008-06-08  Bruno Haible  <bruno@clisp.org>
59738
59739         Add support for AIX ACLs.
59740         * lib/acl-internal.h (acl_nontrivial): New declaration.
59741         * lib/file-has-acl.c (acl_nontrivial): New function.
59742         (file_has_acl): Add implementation using AIX 4 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         Add support for HP-UX ACLs.
59749         * lib/acl-internal.h (acl_nontrivial): New declaration.
59750         * lib/file-has-acl.c (acl_nontrivial): New function.
59751         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59752         * lib/set-mode-acl.c (qset_acl): Likewise.
59753         * lib/copy-acl.c (qcopy_acl): Likewise.
59754
59755 2008-06-08  Bruno Haible  <bruno@clisp.org>
59756
59757         Add support for Cygwin ACLs.
59758         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59759         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59760         the chmod_or_fchmod call.
59761         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59762
59763 2008-06-08  Bruno Haible  <bruno@clisp.org>
59764
59765         Fix bug with setuid modes in Solaris 10+ code.
59766         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59767         succeeded, when the mode contains some special bits.
59768
59769 2008-06-08  Bruno Haible  <bruno@clisp.org>
59770
59771         Add support for Solaris 7..10 ACLs.
59772         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59773         declarations.
59774         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59775         functions.
59776         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59777         * lib/set-mode-acl.c (qset_acl): Likewise.
59778         * lib/copy-acl.c (qcopy_acl): Likewise.
59779
59780 2008-06-08  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59783         declaration.
59784         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59785         (acl_access_nontrivial): Remove MacOS X case.
59786         (file_has_acl): Use acl_extended_nontrivial.
59787         * lib/copy-acl.c (qcopy_acl): Likewise.
59788
59789 2008-06-08  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59792
59793 2008-06-08  Jim Meyering  <meyering@redhat.com>
59794
59795         * modules/acl (Maintainer): Add Bruno Haible.
59796
59797 2008-06-07  Bruno Haible  <bruno@clisp.org>
59798
59799         Improve support for Tru64 ACLs.
59800         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59801         ACL on OSF/1.
59802
59803 2008-06-07  Bruno Haible  <bruno@clisp.org>
59804
59805         Add support for MacOS X ACLs.
59806         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59807         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59808         * lib/set-mode-acl.c (qset_acl): Likewise.
59809         * lib/copy-acl.c (qcopy_acl): Likewise.
59810
59811 2008-06-07  Bruno Haible  <bruno@clisp.org>
59812
59813         Fix memory leak introduced on 2008-05-22.
59814         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59815         use.
59816
59817 2008-06-07  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59820         to construct an empty ACL.
59821
59822 2008-06-07  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59825         precisely.
59826         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59827
59828 2008-06-07  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59831         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59832
59833 2008-06-07  Bruno Haible  <bruno@clisp.org>
59834
59835         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59836         regardless of POSIX.
59837         * doc/posix-functions/_longjmp.texi: Likewise.
59838         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59839         SystemV platform in this case.
59840
59841 2008-06-06  Eric Blake  <ebb9@byu.net>
59842
59843         Document abort() bugs.
59844         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59845
59846         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59847         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59848         sigsetjmp.
59849         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59850         siglongjmp, but only as a macro.
59851         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59852         is obsolete.
59853         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59854
59855         Tweak documentation to cover cygwin argz bugs.
59856         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59857         argz bug fix; no code change needed since no cygwin releases
59858         occurred between the last fix and the bug being tested.
59859         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59860         module and recently fixed cygwin bugs.
59861         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59862         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59863         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59864         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59865         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59866         Likewise.
59867         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59868         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59869         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59870         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59871         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59872         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59873         Likewise.
59874
59875         Avoid gcc warning on cygwin.
59876         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59877         !ACL_NO_TRIVIAL]: Avoid unused variable.
59878
59879 2008-06-05  Eric Blake  <ebb9@byu.net>
59880
59881         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59882         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59883         git-version-gen fails to come up with a version.
59884         Reported by Simon Josefsson.
59885
59886 2008-06-05  Jim Meyering  <meyering@redhat.com>
59887             Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         utimens.c: work around a probable Linux kernel bug
59890         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59891         appears to be a kernel bug that causes utimensat to return 280
59892         instead of 0, indicating success.
59893
59894 2008-06-04  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59897         2008-06-01 commit.
59898
59899 2008-06-04  Bruno Haible  <bruno@clisp.org>
59900
59901         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59902         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59903         (file_has_acl): Use it. Save errno afterwards.
59904         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59905
59906 2008-06-03  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59909         draft code. Simplify #ifs.
59910         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59911         Put Solaris code after POSIX-draft code. Fix comments regarding
59912         Solaris 10, HP-UX. Mention Cygwin.
59913         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59914
59915 2008-06-03  Eric Blake  <ebb9@byu.net>
59916
59917         Provide fallback for older kernels.
59918         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59919         Provide runtime fallback if kernel lacks support.
59920         Reported by Mike Frysinger.
59921
59922 2008-06-02  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59925         it exists.
59926
59927 2008-06-02  Bruno Haible  <bruno@clisp.org>
59928
59929         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59930         * lib/copy-acl.c (qcopy_acl): Update comment.
59931
59932 2008-06-02  Bruno Haible  <bruno@clisp.org>
59933
59934         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59935         like ACL APIs.
59936
59937 2008-06-02  Bruno Haible  <bruno@clisp.org>
59938
59939         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59940         * tests/test-set-mode-acl.sh: Likewise.
59941         * tests/test-copy-acl.sh: Likewise.
59942         * tests/test-copy-file.sh: Likewise.
59943
59944 2008-06-02  Bruno Haible  <bruno@clisp.org>
59945
59946         * tests/test-file-has-acl.sh: Remove unused code.
59947
59948 2008-06-01  Bruno Haible  <bruno@clisp.org>
59949
59950         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59951         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59952         messages.
59953         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59954
59955 2008-06-01  Bruno Haible  <bruno@clisp.org>
59956
59957         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59958         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59959         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59960         APIs.
59961         * modules/acl-tests (configure.ac): Remove tests now contained in
59962         m4/acl.m4.
59963
59964 2008-06-02  Jim Meyering  <meyering@redhat.com>
59965
59966         announce-gen: use a better key-server host name
59967         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59968         it may be more consistently reliable.  Suggested by Werner Koch
59969         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59970
59971 2008-06-01  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59974         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59975
59976 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59977
59978         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59979
59980 2008-06-01  Bruno Haible  <bruno@clisp.org>
59981
59982         New ACL tests.
59983         * tests/test-file-has-acl.sh: New file.
59984         * tests/test-file-has-acl.c: New file.
59985         * tests/test-set-mode-acl.sh: New file.
59986         * tests/test-set-mode-acl.c: New file.
59987         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59988         * tests/test-copy-acl.c: New file.
59989         * modules/acl-tests: New file, based on modules/copy-file-tests.
59990         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59991         (Depends-on): Add acl-tests.
59992         (configure.ac): Remove checks.
59993         (Makefile.am): Don't create test-sameacls program here any more.
59994
59995 2008-06-01  Bruno Haible  <bruno@clisp.org>
59996
59997         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59998         * tests/test-sameacls.c: Include progname.h.
59999         (main): Invoke set_program_name. Portability fixes for MacOS X,
60000         Solaris, HP-UX.
60001
60002 2008-06-01  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60005         function.
60006         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60007
60008 2008-06-01  Bruno Haible  <bruno@clisp.org>
60009
60010         * modules/rpmatch (Depends-on): Add strdup.
60011
60012 2008-06-01  Bruno Haible  <bruno@clisp.org>
60013
60014         * lib/pipe.c: Include unistd-safer.h.
60015         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60016         * modules/pipe (Depends-on): Add unistd-safer.
60017
60018 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60019
60020         * modules/autobuild (configure.ac): Call AB_INIT.
60021
60022 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60023
60024         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60025         Suggested by Bruno Haible <bruno@clisp.org>.
60026
60027 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60028
60029         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60030         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60031         <bruno@clisp.org>.
60032
60033 2008-05-29  Eric Blake  <ebb9@byu.net>
60034
60035         Prefer new POSIX 200x interfaces over futimesat.
60036         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60037         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60038         when available.
60039         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60040
60041 2008-05-28  Bruno Haible  <bruno@clisp.org>
60042
60043         * modules/stpcpy (License): Change to LGPLv2+.
60044         Requested by David Lutterkort <dlutter@redhat.com>.
60045
60046 2008-05-27  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60049         current mingw.
60050         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60051
60052 2008-05-27  Bruno Haible  <bruno@clisp.org>
60053
60054         * modules/iconv_open (Link): New section, from module 'iconv'.
60055         * modules/striconv (Link): Likewise.
60056         * modules/striconveh (Link): Likewise.
60057         * modules/xstriconv (Link): Likewise.
60058         * modules/unicodeio (Link): Likewise.
60059         * modules/propername (Link): Likewise.
60060         Reported by Jim Meyering.
60061
60062 2008-05-26  Jim Meyering  <meyering@redhat.com>
60063
60064         sha256: do not artificially restrict buffer length to be < 2^32
60065         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60066         uint32_t to size_t.
60067         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60068         to match.
60069
60070         avoid unaligned access errors, e.g., on sparc
60071         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60072         direct access through a possibly-unaligned uint64* pointer.
60073         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60074         direct access through a possibly-unaligned uint32* pointer.
60075         Prompted by this patch from Tom "spot" Callaway:
60076         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60077
60078         sha512.c: fix typo in comment
60079         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60080
60081 2008-05-25  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60084         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60085         (Makefile.am): Update lib_SOURCES.
60086
60087 2008-05-25  Bruno Haible  <bruno@clisp.org>
60088
60089         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60090
60091 2008-05-25  Jim Meyering  <meyering@redhat.com>
60092
60093         useless-if-before-free: freed expr may have white-space differences
60094         * build-aux/useless-if-before-free: Recognize cases in which the
60095         freed expression differs from the tested one in embedded white
60096         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60097         $1 was used, so we can't make any regexp shy.  Improved tests now
60098         detect this.
60099
60100         useless-if-before-free: accept white space in the expression.
60101         * build-aux/useless-if-before-free: For now, any white space
60102         in the expression must be identical in the free argument.
60103
60104         useless-if-before-free: efficiency tweak
60105         * build-aux/useless-if-before-free: Make the expression-matching
60106         regexp "shy".
60107         Make the *outer* regexp shy, not the expr-matching one.
60108
60109         update code-in-comment to accept cast of free arg
60110         * build-aux/useless-if-before-free: Update regexp.
60111
60112 2008-05-25  Bruno Haible  <bruno@clisp.org>
60113
60114         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60115         * modules/copy-file-tests (Files, Makefile.am): Update.
60116         * tests/test-copy-file.c (func_test_copy): Update.
60117
60118 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60119
60120         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60121
60122 2008-05-23  Bruno Haible  <bruno@clisp.org>
60123
60124         Improve support for ACLs on OSF/1.
60125         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60126         Remove fallback for unknown flavors of ACLs.
60127
60128 2008-05-22  Bruno Haible  <bruno@clisp.org>
60129
60130         Add support for ACLs on OSF/1.
60131         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60132         replacements.
60133         (acl_free_text): New macro fallback.
60134         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60135         acl_free.
60136         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60137         acl_free_text function. Require AC_C_INLINE.
60138
60139 2008-05-22  Bruno Haible  <bruno@clisp.org>
60140
60141         Make copy_acl work on MacOS X 10.5.
60142         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60143         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60144         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60145         If MODE_INSIDE_ACL, don't assume that every system has the same text
60146         representation for ACLs as FreeBSD.
60147         * lib/copy-acl.c (copy_acl): Add support for platforms with
60148         !MODE_INSIDE_ACL.
60149         * lib/file-has-acl.c (file_has_acl): Likewise.
60150         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60151         FreeBSD, MacOS X, or IRIX, respectively.
60152
60153 2008-05-22  Bruno Haible  <bruno@clisp.org>
60154
60155         * lib/acl.h: Don't include <sys/acl.h>.
60156         (GETACLCNT): Move fallback to lib/acl-internal.h.
60157         * lib/acl-internal.h: Include <sys/acl.h> here.
60158         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60159
60160 2008-05-22  Bruno Haible  <bruno@clisp.org>
60161
60162         Split off copy_acl function to separate file.
60163         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60164         * lib/acl.c (copy_acl): Moved function to separate file.
60165         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60166         * modules/acl (Files): Add lib/copy-acl.c.
60167         (Makefiles.am): Augment lib_SOURCES.
60168
60169 2008-05-22  Bruno Haible  <bruno@clisp.org>
60170
60171         * modules/copy-file-tests: New file.
60172         * tests/test-copy-file.sh: New file.
60173         * tests/test-copy-file.c: New file.
60174         * tests/test-copy-file-sameacls.c: New file.
60175
60176 2008-05-22  Eric Blake  <ebb9@byu.net>
60177
60178         Avoid gcc warning.
60179         * tests/test-memcmp.c (main): Pass NULL indirectly.
60180
60181 2008-05-21  Bruno Haible  <bruno@clisp.org>
60182
60183         Add reference doc about ACLs.
60184         * doc/acl-resources.txt: New file.
60185         * doc/acl-cygwin.txt: New file.
60186
60187 2008-05-21  Bruno Haible  <bruno@clisp.org>
60188
60189         Avoid one more warning from gcc.
60190         * lib/vasnprintf.c (IF_LINT): Update comments.
60191         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60192
60193 2008-05-21  Jim Meyering  <meyering@redhat.com>
60194
60195         avoid a warning from gcc
60196         * lib/vasnprintf.c (IF_LINT): Define.
60197         (scale10_round_decimal_long_double):
60198         Use it to avoid a "may be used uninitialized" warning.
60199         (scale10_round_decimal_double): Likewise.
60200
60201 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60202
60203         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60204         declared.
60205
60206 2008-05-20  Bruno Haible  <bruno@clisp.org>
60207
60208         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60209         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60210
60211 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60212
60213         * modules/memcmp-tests: New file.
60214         * tests/test-memcmp.c: New file.
60215
60216 2008-05-19  Bruno Haible  <bruno@clisp.org>
60217
60218         * modules/propername (Notice, configure.ac): Put quoted "..." into
60219         --keyword option.
60220         * lib/propername.h: Update comments accordingly.
60221         Reported by Eric Blake.
60222
60223 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60224
60225         * modules/getpass-gnu (Depends-on): Add fseeko.
60226
60227 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60228
60229         * modules/base64-tests: New file.
60230
60231 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60232
60233         * lib/base64.c (base64_decode_ctx): If a decode context structure
60234         was passed in use it to ignore newlines.  If a context structure
60235         was _not_ passed in, continue to treat newlines as garbage (this
60236         is the historical behavior).  Formerly base64_decode.
60237         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60238         takes a decode context structure.
60239         * lib/base64.h (base64_decode): Macro for four-argument calls.
60240         (base64_decode_alloc): Likewise.
60241         * lib/base64.c (base64_decode_ctx): If a decode context structure
60242         was passed in use it to ignore newlines.  If a context structure
60243         was _not_ passed in, continue to treat newlines as garbage (this
60244         is the historical behavior).  Formerly base64_decode.
60245         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60246         takes a decode context structure.
60247         * lib/base64.h (base64_decode): Macro for four-argument calls.
60248         (base64_decode_alloc): Likewise.
60249
60250 2008-05-19  Jim Meyering  <meyering@redhat.com>
60251
60252         avoid a warning from gcc
60253         * lib/trim.c (IF_LINT): Define.
60254         (trim2): Use it to avoid a "may be used uninitialized" warning.
60255
60256         Fix doc typo.
60257         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60258
60259 2008-05-19  Bruno Haible  <bruno@clisp.org>
60260
60261         * doc/glibc-functions/getpass.texi: Document limits of other
60262         implementations.
60263
60264 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60265             Bruno Haible <bruno@clisp.org>
60266
60267         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60268
60269 2008-05-18  Bruno Haible  <bruno@clisp.org>
60270
60271         * modules/propername: New file, from GNU gettext.
60272         * lib/propername.h: New file, from GNU gettext.
60273         * lib/propername.c: New file, from GNU gettext.
60274         * MODULES.html.sh (Internationalization functions): Add propername.
60275
60276 2008-05-16  Jim Meyering  <meyering@redhat.com>
60277             Bruno Haible  <bruno@clisp.org>
60278
60279         Avoid some warnings from "gcc -Wshadow".
60280         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60281
60282 2008-05-15  Eric Blake  <ebb9@byu.net>
60283
60284         Extend previous patch to cygwin 1.7.0.
60285         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60286         fast implementation in cygwin >= 1.7.0.
60287         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60289
60290 2008-05-15  Bruno Haible  <bruno@clisp.org>
60291
60292         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60293         implementation in glibc >= 2.9.
60294         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60296
60297 2008-05-15  Bruno Haible  <bruno@clisp.org>
60298
60299         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60300         (Unicode string functions): Add unilbrk/*.
60301         Reported by Karl Berry.
60302
60303 2008-05-15  Eric Blake  <ebb9@byu.net>
60304
60305         Fix violation of <stdbool.h> replacement in regex.
60306         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60307         * lib/regexec.c (re_search_internal): Likewise.
60308         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60309
60310 2008-05-15  Jim Meyering  <meyering@redhat.com>
60311
60312         avoid distracting test output when git or cvs is not found
60313         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60314         * tests/test-vc-list-files-git.sh: Likewise.
60315
60316 2008-05-15  Eric Blake  <ebb9@byu.net>
60317
60318         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60319         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60320         glibc version.
60321         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60322         * doc/posix-functions/strstr.texi (strstr): Likewise.
60323         * lib/str-two-way.h (MAX): Sychronize with glibc.
60324
60325 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60326
60327         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60328         opr.ctx_type.
60329         (calc_first): Initialize constraint field.
60330         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60331         Fix grammar.
60332         (duplicate_node): Merge constraint field for all node types.
60333         (calc_eclosure_iter): Look at constraint field for all node types.
60334         * lib/regex_internal.c (create_cd_newstate): Don't look at
60335         opr.ctx_type.
60336
60337 2008-05-14  Bruno Haible  <bruno@clisp.org>
60338
60339         Help GCC to do better code generation.
60340         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60341         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60342         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60343         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60344         Declare with attribute 'malloc' if supported.
60345
60346 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60347
60348         use "echo STR|wc -c" rather than unportable "expr length STR"
60349         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60350         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60351
60352 2008-05-14  Jim Meyering  <meyering@redhat.com>
60353
60354         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60355         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60356         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60357         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60358         via Collin Lasse.
60359
60360 2008-05-14  Eric Blake  <ebb9@byu.net>
60361
60362         Avoid quadratic growth in gl_LIBSOURCES.
60363         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60364         Suggested by Bruno Haible.
60365
60366         Test xmemdup0.
60367         * modules/xmemdup0-tests: New file.
60368         * tests/test-xmemdup0.c: Likewise.
60369
60370 2008-05-13  Eric Blake  <ebb9@byu.net>
60371
60372         Split xmemdup0 into its own module.
60373         * modules/xmemdup0: New file.
60374         * lib/xmemdup0.h: Likewise.
60375         * lib/xmemdup0.c: Likewise.
60376         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60377         * lib/xalloc.h (xmemdup0): Remove.
60378         * lib/xmalloc.c (xmemdup0): Likewise.
60379
60380 2008-05-13  Eric Blake  <ebb9@byu.net>
60381             Bruno Haible  <bruno@clisp.org>
60382
60383         Reduce number of forks required during autoconf.
60384         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60385         and gl_LIBSOURCES_DIR.
60386         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60387         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60388         m4_syscmd per file.
60389         <m4_foreach_w>: Move...
60390         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60391
60392 2008-05-13  Eric Blake  <ebb9@byu.net>
60393
60394         * gnulib-tool: Fix various comment typos.
60395
60396 2008-05-12  Bruno Haible  <bruno@clisp.org>
60397
60398         Tailor the linebreaking algorithm.
60399         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60400
60401 2008-05-12  Bruno Haible  <bruno@clisp.org>
60402
60403         Update to Unicode 5.0.0.
60404         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60405         LBP_JV, LBP_JT. Redistribute values.
60406         (unilbrk_table): Change size.
60407         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60408         Unicode TR#14 rev. 22.
60409         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60410         LBP_JV, LBP_JT. Redistribute values.
60411         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60412         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60413         Update.
60414         * lib/unilbrk/lbrkprop1.h: Regenerated.
60415         * lib/unilbrk/lbrkprop2.h: Regenerated.
60416         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60417         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60418         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60419         Likewise.
60420         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60421         Likewise.
60422         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60423         result.
60424         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60425         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60426         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60427         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60428         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60429         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60430
60431 2008-05-11  Bruno Haible  <bruno@clisp.org>
60432
60433         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60434
60435 2008-05-11  Bruno Haible  <bruno@clisp.org>
60436
60437         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60438         * modules/unilbrk/gen-lbrk: New file.
60439
60440 2008-05-11  Bruno Haible  <bruno@clisp.org>
60441
60442         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60443         * m4/sha512.m4 (gl_SHA512): Likewise.
60444
60445 2008-05-11  Jim Meyering  <meyering@redhat.com>
60446
60447         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60448         * modules/crypto/sha256: New file.
60449         * modules/crypto/sha512: Likewise.
60450         * lib/sha256.c: Likewise.
60451         * lib/sha256.h: Likewise.
60452         * lib/sha512.c: Likewise.
60453         * lib/sha512.h: Likewise.
60454         * lib/u64.h: Likewise.
60455         * m4/sha256.m4: Likewise.
60456         * m4/sha512.m4: Likewise.
60457         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60458
60459 2008-05-10  Bruno Haible  <bruno@clisp.org>
60460
60461         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60462         (Input/Output <stdio.h>): Add xprintf.
60463         (Signal handling <signal.h>): Add strsignal.
60464         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60465         (Core language properties): Add func.
60466         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60467         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60468         strings.
60469         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60470         (Input/output): New section.
60471         (File system functions): Add openat-die, stat-macros.
60472         (Networking functions): Add sockets.
60473         (Unicode string functions): Add unictype/*.
60474         (Support for building libraries and executables): Add gperf.
60475         (Support for building documentation): Add agpl-3.0.
60476         (Misc): Add nocrash.
60477
60478 2008-05-10  Bruno Haible  <bruno@clisp.org>
60479
60480         * modules/unictype/gen-ctype: New file.
60481
60482 2008-05-10  Jim Meyering  <meyering@redhat.com>
60483
60484         Make chdir-safer.c more efficient on a system with no symlinks.
60485         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60486         also if ELOOP is zero.  Suggested by Bruno Haible.
60487
60488         Make chdir-safer.c slightly safer.
60489         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60490         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60491
60492         Avoid compile failure on systems without ELOOP (like mingw).
60493         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60494         Reported by Bruno Haible.
60495
60496 2008-05-10  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60499         (is_utf8_encoding): Use a case-insensitive comparison.
60500         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60501         streq.
60502
60503 2008-05-10  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60506         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60507         * lib/unilbrk/ulc-common.h (iconv_string_length,
60508         iconv_string_keeping_offsets): Remove declarations.
60509         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60510         Don't include <iconv.h>, streq.h, xsize.h.
60511         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60512         conversion.
60513         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60514         <iconv.h>, streq.h, xsize.h.
60515         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60516         conversion.
60517         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60518         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60519         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60520         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60521
60522 2008-05-10  Bruno Haible  <bruno@clisp.org>
60523
60524         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60525         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60526
60527         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60528         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60529
60530         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60531         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60532
60533         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60534         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60535
60536         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60537         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60538
60539         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60540         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60541
60542         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60543         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60544
60545         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60546         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60547
60548 2008-05-10  Bruno Haible  <bruno@clisp.org>
60549
60550         Split up 'linebreak' module.
60551         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60552         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60553         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60554         modifications.
60555         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60556         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60557         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60558         lib/linebreak.c.
60559         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60560         lib/linebreak.c.
60561         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60562         lib/linebreak.c.
60563         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60564         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60565         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60566         lib/linebreak.c.
60567         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60568         lib/linebreak.c.
60569         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60570         lib/linebreak.c.
60571         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60572         lib/linebreak.c.
60573         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60574         lib/linebreak.c.
60575         * modules/unilbrk/base: New file.
60576         * modules/unilbrk/tables: New file.
60577         * modules/unilbrk/u8-possible-linebreaks: New file.
60578         * modules/unilbrk/u16-possible-linebreaks: New file.
60579         * modules/unilbrk/u32-possible-linebreaks: New file.
60580         * modules/unilbrk/ulc-common: New file.
60581         * modules/unilbrk/ulc-possible-linebreaks: New file.
60582         * modules/unilbrk/u8-width-linebreaks: New file.
60583         * modules/unilbrk/u16-width-linebreaks: New file.
60584         * modules/unilbrk/u32-width-linebreaks: New file.
60585         * modules/unilbrk/ulc-width-linebreaks: New file.
60586         * lib/linebreak.h: Remove file.
60587         * lib/linebreak.c: Remove file.
60588         * m4/linebreak.m4: Remove file.
60589         * modules/linebreak: Remove file.
60590         * NEWS: Mention the changes.
60591
60592 2008-05-09  Eric Blake  <ebb9@byu.net>
60593
60594         Add xmemdup0.
60595         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60596         implementation.
60597         * lib/xmalloc.c (xmemdup0): New C implementation.
60598
60599 2008-05-08  Bruno Haible  <bruno@clisp.org>
60600
60601         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60602
60603 2008-05-07  Eric Blake  <ebb9@byu.net>
60604
60605         Support cross-compilation of <wctype.h>.
60606         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60607         AC_CACHE_CHECK.
60608
60609 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60610
60611         * build-aux/vc-list-files: Add support for bzr.
60612
60613 2008-05-03  Jim Meyering  <meyering@redhat.com>
60614
60615         avoid failed assertion with tight malloc
60616         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60617
60618 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60619
60620         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60621         are needed from arpa/inet.h.
60622         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60623         Reported by Bruno Haible.
60624
60625 2008-05-02  Jim Meyering  <meyering@redhat.com>
60626
60627         avoid compilation error on FreeBSD 6
60628         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60629
60630 2008-05-01  Jim Meyering  <meyering@redhat.com>
60631
60632         useless-if-before-free: correct --help's exit status description
60633         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60634         for one or more matches, etc.  Reported by Bruno Haible.
60635
60636         vc-list-files: make the stand-alone gnulib test work
60637         * modules/vc-list-files-tests (configure.ac):
60638         Define and AC_SUBST abs_aux_dir.
60639         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60640         $(abs_top_srcdir) to each script and having each of them
60641         duplicate the work of setting PATH, set PATH here, using
60642         the new variable, abs_aux_dir instead.
60643         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60644         * tests/test-vc-list-files-git.sh: Likewise.
60645         Reported by Bruno Haible.
60646
60647 2008-05-01  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60650         reallocation. Rename 'done' to 'found_delimiter'.
60651
60652 2008-05-01  Jim Meyering  <meyering@redhat.com>
60653
60654         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60655         * build-aux/vc-list-files: Use `...`, not $(...).
60656
60657 2008-04-30  Jim Meyering  <meyering@redhat.com>
60658
60659         add tests for vc-list-files
60660         * modules/vc-list-files-tests: New module.
60661         * tests/test-vc-list-files-cvs.sh: New file.
60662         * tests/test-vc-list-files-git.sh: New file.
60663
60664         avoid a warning from gcc
60665         * lib/getndelim2.c (IF_LINT): Define.
60666         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60667
60668         vc-list-files: work properly with build-aux/cvsu, too
60669         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60670         to all cvs-based clauses.
60671
60672         vc-list-files: work properly in the CVS+awk case, too
60673         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60674
60675         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60676         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60677         take more than one file argument, so .  Add quotes, just in case $dir
60678         ever contains a shell meta-character.  Prompted by Soren Hansen in
60679         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60680
60681 2008-04-29  Eric Blake  <ebb9@byu.net>
60682
60683         Optimize getndelim2 to use block operations when possible.
60684         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60685         freadseek, and memchr2.
60686         * lib/getndelim2.c (getndelim2): Use them for block reads.
60687
60688 2008-04-29  Bruno Haible  <bruno@clisp.org>
60689
60690         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60692         * modules/inet_ntop (Depends-on): Add extensions.
60693         * modules/inet_pton (Depends-on): Likewise.
60694         Reported by Simon Josefsson.
60695
60696 2008-04-29  Jim Meyering  <meyering@redhat.com>
60697
60698         When the is more than one match in a block, match all of them.
60699         * build-aux/useless-if-before-free: Iterate through each block
60700         until there are no more matches.
60701
60702         Fix broken useless-if-before-free script.
60703         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60704         the expression to match cast of argument to free-like function.
60705
60706 2008-04-29  Eric Blake  <ebb9@byu.net>
60707
60708         Use new header.
60709         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60710
60711 2008-04-29  Jim Meyering  <meyering@redhat.com>
60712
60713         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60714         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60715         by gnulib to exist and to declare e.g., inet_ntop.
60716         Don't include "inet_ntop.h", now removed.
60717
60718         * m4/arpa_inet_h.m4: Remove trailing blanks.
60719
60720 2008-04-29  Eric Blake  <ebb9@byu.net>
60721
60722         Silence valgrind on safe reads beyond potential array bounds.
60723         * lib/rawmemchr.valgrind: New file.
60724         * lib/strchrnul.valgrind: Likewise.
60725         * modules/rawmemchr (Files): Distribute new file.
60726         * modules/strchrnul (Files): Likewise.
60727         Suggested by Bruno Haible.
60728
60729 2008-04-29  Bruno Haible  <bruno@clisp.org>
60730
60731         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60732         (inet_ntop, inet_pton): Change portability warning's wording.
60733         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60734         Invoke gl_CHECK_NEXT_HEADERS.
60735         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60736         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60737         set ARPA_INET_H.
60738         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60739         * modules/arpa_inet (Description): No longer only for systems that
60740         lack it.
60741         (Depends-on): Add include_next.
60742         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60743         HAVE_ARPA_INET_H.
60744
60745 2008-04-29  Jim Meyering  <meyering@redhat.com>
60746
60747         * modules/mkdir (License): Re-license as LGPLv2+.
60748
60749 2008-04-29  Bruno Haible  <bruno@clisp.org>
60750
60751         * modules/rawmemchr (Maintainer): Set to Eric.
60752         * modules/strchrnul (Maintainer): Likewise.
60753
60754 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60755
60756         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60757         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60758
60759         * modules/arpa_inet (arpa/inet.h): Use them.
60760
60761 2008-04-28  Eric Blake  <ebb9@byu.net>
60762
60763         Test getndelim2.
60764         * modules/getndelim2-tests: New file.
60765         * tests/test-getndelim2.c: Likewise.
60766         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60767         stream.
60768         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60769
60770         * MODULES.html.sh: Document new module.
60771
60772 2008-04-20  Bruno Haible  <bruno@clisp.org>
60773
60774         * lib/c-stack.c (die): Use raise.
60775         * modules/c-stack (Depends-on): Add raise.
60776
60777 2008-04-28  Bruno Haible  <bruno@clisp.org>
60778
60779         Expect rpmatch to be declared.
60780         * lib/yesno.c (rpmatch): Remove declaration.
60781
60782         Declare rpmatch.
60783         * lib/stdlib.in.h (rpmatch): New declaration.
60784         * lib/rpmatch.c: Include <stdlib.h> first.
60785         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60786         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60788         HAVE_RPMATCH.
60789         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60790         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60791         (Include): Set to <stdlib.h>.
60792         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60793         HAVE_RPMATCH.
60794         * NEWS: Document the change.
60795
60796 2008-04-28  Bruno Haible  <bruno@clisp.org>
60797
60798         Change rpmatch to use nl_langinfo when appropriate.
60799         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60800         (N_): New macro.
60801         (localized_pattern): New function/macro.
60802         (try): Remove match, nomatch arguments. Copy the pattern into safe
60803         memory before caching it.
60804         (rpmatch): Use localized_pattern. Add translator comments.
60805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60806         Suggested by Eric Blake.
60807         * modules/rpmatch (Depends-on): Add stdbool.
60808
60809 2008-04-28  Eric Blake  <ebb9@byu.net>
60810
60811         Add rawmemchr module, matching glibc.
60812         * modules/string (Makefile.am): New indicator.
60813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60814         * lib/string.in.h (rawmemchr): Declare when appropriate.
60815         * modules/rawmemchr: New file.
60816         * m4/rawmemchr.m4: Likewise.
60817         * lib/rawmemchr.c: Likewise.
60818         * modules/rawmemchr-tests: Likewise.
60819         * tests/test-rawmemchr.c: Likewise.
60820         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60821         module.
60822         * modules/strchrnul (Depends-on): Add rawmemchr.
60823         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60824
60825         Whitespace cleanup.
60826         * tests/test-strchrnul.c: Reindent.
60827         * lib/strchrnul.c: Likewise.
60828
60829         Optimize and test strchrnul.
60830         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60831         * modules/strchrnul-tests: New file.
60832         * tests/test-strchrnul.c: Likewise.
60833
60834         Remove intprops dependency.
60835         * modules/memchr (Depends-on): Remove intprops.
60836         * modules/memrchr (Depends-on): Likewise.
60837         * modules/memchr2 (Depends-on): Likewise.
60838         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60839         * lib/memrchr.c (__memrchr): Likewise.
60840         * lib/memrchr2.c (memchr2): Likewise.
60841         Reported by Simon Josefsson.
60842
60843 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60844
60845         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60846         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60847
60848 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60849
60850         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60851
60852         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60853
60854         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60855
60856         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60857         declarations.
60858         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60859
60860         * m4/inet_pton.m4: Don't check for header files.
60861
60862         * m4/inet_ntop.m4: Don't check for header files.
60863
60864 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60865
60866         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60867         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60868         trigger for cygwin).
60869         Reported by Bruno Haible  <bruno@clisp.org>.
60870
60871 2008-04-28  Bruno Haible  <bruno@clisp.org>
60872
60873         * doc/posix-functions/strdup.texi: Mention mingw problem.
60874
60875 2008-04-27  Bruno Haible  <bruno@clisp.org>
60876
60877         * modules/stat-time-tests (Depends-on): Add sleep.
60878         * tests/test-stat-time.c (force_unlink): New function.
60879         (cleanup): Use it.
60880         (test_mtime): Remove the ctime related tests.
60881         (test_ctime): New function, containing the ctime related tests.
60882         (main): Call test_ctime, except on native Windows platforms.
60883
60884 2008-04-27  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/rpmatch.c (rpmatch): Add some comments.
60887         Reported by James Youngman <jay@gnu.org>.
60888
60889 2008-04-27  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60892         quiet NaNs.
60893
60894 2008-04-27  Bruno Haible  <bruno@clisp.org>
60895
60896         Make test-yesno.sh work on mingw.
60897         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60898         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60899         (main): Set stdin to binary mode.
60900         * modules/yesno-tests (Depends-on): Add binary-io.
60901
60902 2008-04-27  Bruno Haible  <bruno@clisp.org>
60903
60904         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60905         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60906         argument that lie outside the IEEE 854 domain.
60907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60908         (gl_ISFINITE): Use it.
60909         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60910
60911 2008-04-27  Bruno Haible  <bruno@clisp.org>
60912
60913         Allow local renaming in config.h.
60914         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60915
60916 2008-04-27  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/memchr.c (__memchr): Change type of 'i'.
60919         * lib/memchr2.c (memchr2): Likewise.
60920
60921 2008-04-26  Eric Blake  <ebb9@byu.net>
60922         and Bruno Haible  <bruno@clisp.org>
60923
60924         Optimize and test memrchr.
60925         * modules/memrchr (Depends-on): Add intprops.
60926         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60927         * modules/memrchr-tests: New file.
60928         * tests/test-memrchr.c: New file.
60929
60930 2008-04-26  Bruno Haible  <bruno@clisp.org>
60931
60932         Add tentative support for DragonFly BSD.
60933         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60934         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60935         fp.
60936         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60937         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60938         * lib/fpurge.c (fpurge): Likewise.
60939         * lib/freadable.c (freaadable): Likewise.
60940         * lib/freadahead.c (freadahead): Likewise.
60941         * lib/freading.c (freading): Likewise.
60942         * lib/freadptr.c (freadptr): Likewise.
60943         * lib/freadseek.c (freadptrinc): Likewise.
60944         * lib/fseeko.c (fseeko): Likewise.
60945         * lib/fseterr.c (fseterr): Likewise.
60946         * lib/fwritable.c (fwritable): Likewise.
60947         * lib/fwriting.c (fwriting): Likewise.
60948
60949 2008-04-26  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/stdio-impl.h: New file.
60952         * lib/fbufmode.c: Include stdio-impl.h.
60953         (fbufmode): Use fp_, remove redundant #defines.
60954         * lib/fflush.c: Include stdio-impl.h.
60955         (clear_ungetc_buffer): Remove redundant #defines.
60956         * lib/fpurge.c: Include stdio-impl.h.
60957         (fpurge): Remove redundant #defines.
60958         * lib/freadable.c: Include stdio-impl.h.
60959         (freadable): Remove redundant #defines.
60960         * lib/freadahead.c: Include stdio-impl.h.
60961         (freadahead): Remove redundant #defines.
60962         * lib/freading.c: Include stdio-impl.h.
60963         (freading): Remove redundant #defines.
60964         * lib/freadptr.c: Include stdio-impl.h.
60965         (freadptr): Remove redundant #defines.
60966         * lib/freadseek.c: Include stdio-impl.h.
60967         (freadptrinc): Remove redundant #defines.
60968         * lib/fseeko.c: Include stdio-impl.h.
60969         (rpl_fseeko): Remove redundant #defines.
60970         * lib/fseterr.c: Include stdio-impl.h.
60971         (fseterr): Remove redundant #defines.
60972         * lib/fwritable.c: Include stdio-impl.h.
60973         (fwritable: Remove redundant #defines.
60974         * lib/fwriting.c: Include stdio-impl.h.
60975         (fwriting): Remove redundant #defines.
60976         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60977         * modules/fflush (Files): Likewise.
60978         * modules/fpurge (Files): Likewise.
60979         * modules/freadable (Files): Likewise.
60980         * modules/freadahead (Files): Likewise.
60981         * modules/freading (Files): Likewise.
60982         * modules/freadptr (Files): Likewise.
60983         * modules/freadseek (Files): Likewise.
60984         * modules/fseeko (Files): Likewise.
60985         * modules/fseterr (Files): Likewise.
60986         * modules/fwritable (Files): Likewise.
60987         * modules/fwriting (Files): Likewise.
60988
60989 2008-04-26  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60992         restore_seek_optimization, update_fpos_cache): New functions, extracted
60993         from rpl_fflush.
60994         (rpl_fflush): Use them.
60995         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60996         (gl_REPLACE_FFLUSH): Use it.
60997
60998 2008-04-26  Bruno Haible  <bruno@clisp.org>
60999
61000         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61001         on Solaris.
61002         * tests/test-xstrtoimax.sh: Likewise.
61003         * tests/test-xstrtoumax.sh: Likewise.
61004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61005
61006 2008-04-26  Bruno Haible  <bruno@clisp.org>
61007
61008         * modules/memchr-tests: New file.
61009         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61010
61011 2008-04-26  Eric Blake  <ebb9@byu.net>
61012             Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/memchr.c: Include intprops.h.
61015         (__memchr): Optimize parallel detection of matching bytes. Rename local
61016         variables. Add explanatory comments.
61017
61018 2008-04-26  Bruno Haible  <bruno@clisp.org>
61019
61020         Fix module 'memchr', broken since 2000-10-28.
61021         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61022
61023 2008-04-26  Bruno Haible  <bruno@clisp.org>
61024
61025         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61026         comments.
61027
61028 2008-04-25  Eric Blake  <ebb9@byu.net>
61029
61030         Use native fstatat on cygwin 1.7.0.
61031         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61032         first.
61033
61034 2008-04-23  Eric Blake  <ebb9@byu.net>
61035
61036         Improve memchr2 performance.
61037         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61038         NUL bytes.
61039         * modules/memchr2 (Depends-on): Use intprops.h.
61040
61041 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61042
61043         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61044         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61045         <blp@cs.stanford.edu>.
61046
61047 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61048
61049         * lib/arpa_inet.in.h: New file.
61050
61051         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61052         (Makefile.am): Sed in substitute header file.
61053
61054         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61055         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61056
61057         * modules/inet_ntop (configure.ac): Use
61058         gl_ARPA_INET_MODULE_INDICATOR.
61059
61060         * modules/inet_pton (configure.ac): Use
61061         gl_ARPA_INET_MODULE_INDICATOR.
61062
61063 2008-04-22  Jim Meyering  <meyering@redhat.com>
61064
61065         * modules/verify (License): Re-license as LGPLv2+.
61066
61067 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61068
61069         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61070         parameter to void* as per POSIX standard (MinGW uses char*).
61071
61072 2008-04-21  Bruno Haible  <bruno@clisp.org>
61073
61074         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61075         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61076         Define to replacements if REPLACE_ISWCNTRL is 1.
61077         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61078         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61079         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61080         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61081         what it fixes.
61082         * doc/posix-functions/iswalpha.texi: Likewise.
61083         * doc/posix-functions/iswblank.texi: Likewise.
61084         * doc/posix-functions/iswcntrl.texi: Likewise.
61085         * doc/posix-functions/iswdigit.texi: Likewise.
61086         * doc/posix-functions/iswgraph.texi: Likewise.
61087         * doc/posix-functions/iswlower.texi: Likewise.
61088         * doc/posix-functions/iswprint.texi: Likewise.
61089         * doc/posix-functions/iswpunct.texi: Likewise.
61090         * doc/posix-functions/iswspace.texi: Likewise.
61091         * doc/posix-functions/iswupper.texi: Likewise.
61092         * doc/posix-functions/iswxdigit.texi: Likewise.
61093         Reported by Alain Guibert.
61094
61095 2008-04-21  Bruno Haible  <bruno@clisp.org>
61096
61097         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61098         Patch by Alain Guibert.
61099
61100 2008-04-21  Bruno Haible  <bruno@clisp.org>
61101
61102         Fix test failures on mingw.
61103         * tests/test-xstrtol.c (print_no_progname): New function.
61104         (main): Install it in error_print_progname hook.
61105         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61106         * tests/test-xstrtoimax.sh: Likewise.
61107         * tests/test-xstrtoumax.sh: Likewise.
61108
61109 2008-04-21  Bruno Haible  <bruno@clisp.org>
61110
61111         Fix test failure on mingw.
61112         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61113
61114 2008-04-21  Bruno Haible  <bruno@clisp.org>
61115
61116         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61117         Actually assign a value.
61118
61119 2008-04-20  Bruno Haible  <bruno@clisp.org>
61120
61121         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61122         take 2.
61123         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61124         'canonicalize-lgpl' module is also used.
61125         * lib/canonicalize-lgpl.c: Undo last change.
61126         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61127
61128 2008-04-20  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61131         config.h. Provide _mkdir based fallback for mingw.
61132         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61133         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61134         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61135         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61136         rather than defining mkdir in config.h.
61137         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61138         (gl_SYS_STAT_H_DEFAULTS): New macro.
61139         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61140         HAVE_IO_H any more.
61141         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61142         HAVE_DECL_MKDIR and HAVE_IO_H.
61143
61144 2008-04-20  Bruno Haible  <bruno@clisp.org>
61145
61146         * lib/isapipe.c: Port to native Windows platforms.
61147
61148 2008-04-20  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61151
61152 2008-04-21  Eric Blake  <ebb9@byu.net>
61153
61154         Work around preprocessors that don't handle UINTMAX_MAX.
61155         * lib/memchr2.c (memchr2): Avoid embedded #if.
61156         Reported by Alain Guibert, fix suggested by Bruno Haible.
61157
61158 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61159
61160         * doc/posix-functions/strftime.texi (strftime): Explain better
61161         Windows incompatibility.  Suggested by Micah Cowan
61162         <micah@cowan.name>.
61163
61164 2008-04-20  Bruno Haible  <bruno@clisp.org>
61165
61166         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61167         unistr/u8-mblen.
61168
61169 2008-04-20  Bruno Haible  <bruno@clisp.org>
61170
61171         Fix test failure on platforms with non-GNU iconv.
61172         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61173         (U_TO_U8): Use it, rather than u16_to_u8.
61174         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61175         units at the end of the input string.
61176         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61177
61178 2008-04-20  Bruno Haible  <bruno@clisp.org>
61179
61180         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61181         when the resulting length is 0.
61182         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61183
61184 2008-04-20  Bruno Haible  <bruno@clisp.org>
61185
61186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61187         works.
61188         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61189
61190 2008-04-20  Bruno Haible  <bruno@clisp.org>
61191
61192         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61193         * modules/tsearch-tests (configure.ac): Test for initstate function.
61194
61195 2008-04-20  Bruno Haible  <bruno@clisp.org>
61196
61197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61198         for nlink_t if missing.
61199         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61200
61201 2008-04-19  Bruno Haible  <bruno@clisp.org>
61202
61203         Work around snprintf bug on Linux libc5.
61204         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61206         gl_SNPRINTF_SIZE1.
61207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61208         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61209         that test failed.
61210         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61211         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61212         * modules/snprintf (Files): Add m4/printf.m4.
61213         * modules/vsnprintf (Files): Likewise.
61214         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61215         * doc/posix-functions/vsnprintf.texi: Likewise.
61216
61217 2008-04-19  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61220         from 0.0058 to less than 10^-7.
61221
61222 2008-04-19  Bruno Haible  <bruno@clisp.org>
61223
61224         Fix rounding when a precision is given.
61225         * lib/vasnprintf.c (is_borderline): New function.
61226         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61227         9...9x.
61228         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61229         %e, %g.
61230         * tests/test-vasprintf-posix.c (test_function): Likewise.
61231         * tests/test-snprintf-posix.h (test_function): Likewise.
61232         * tests/test-sprintf-posix.h (test_function): Likewise.
61233         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61234         * tests/test-printf-posix.h (test_function): Likewise.
61235         * tests/test-printf-posix.output: Update.
61236         Reported by John Darrington <john@darrington.wattle.id.au> via
61237         Ben Pfaff <blp@cs.stanford.edu>.
61238
61239 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61240
61241         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61242         Suggested by Bruno Haible <bruno@clisp.org>.
61243
61244 2008-04-17  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61247         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61248         implementation.
61249         Patch by Bruce Merry <bmerry@gmail.com>.
61250
61251 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61252
61253         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61254         doesn't work under Windows.
61255
61256 2008-04-16  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61259         New macros.
61260         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61261         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61262         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61263         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61264         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61265         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61266         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61267         macros.
61268         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61269         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61270         Northern Sotho, Uighur.
61271
61272 2008-04-16  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61275         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61276         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61277         Reported by Daniel Bergström <daniel@octocode.com>.
61278
61279 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61280             Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61283         function.
61284         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61285         New functions, mostly extracted from gl_locale_name_default.
61286         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61287
61288 2008-04-16  Eric Blake  <ebb9@byu.net>
61289
61290         Adjust strtod detection to catch glibc 2.7 bug.
61291         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61292         Reported by John Gatewood Ham.
61293
61294 2008-04-16  Bruno Haible  <bruno@clisp.org>
61295
61296         Add tentative support for Linux libc5.
61297         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61298         * lib/fpurge.c (fpurge): Likewise.
61299         * lib/freadable.c (freadable): Likewise.
61300         * lib/freadahead.c (freadahead): Likewise.
61301         * lib/freading.c (freading): Likewise.
61302         * lib/freadptr.c (freadptr): Likewise.
61303         * lib/freadseek.c (freadptrinc): Likewise.
61304         * lib/fseeko.c (rpl_fseeko): Likewise.
61305         * lib/fseterr.c (fseterr): Likewise.
61306         * lib/fwritable.c (fwritable): Likewise.
61307         * lib/fwriting.c (fwriting): Likewise.
61308         Reported by Alain Guibert <alguibert+bts@free.fr>.
61309
61310 2008-04-15  Bruno Haible  <bruno@clisp.org>
61311
61312         * modules/mathl (configure.ac): Define module indicator.
61313
61314 2008-04-15  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/logl.c (logl): Remove unused variables.
61317
61318 2008-04-15  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61321         fails.
61322
61323 2008-04-15  Bruno Haible  <bruno@clisp.org>
61324
61325         * lib/trim.c (trim2): Fix argument of isspace() macro.
61326
61327 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61328
61329         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61330         to 0.
61331         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61332
61333 2008-04-14  Bruno Haible  <bruno@clisp.org>
61334
61335         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61336         AC_LANG_PROGRAM argument.
61337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61338         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61341         * m4/math_h.m4 (gl_MATH_H): Likewise.
61342         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61344         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61345         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61346         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61347         * m4/regex.m4 (gl_REGEX): Likewise.
61348         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61349         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61351         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61353         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61356
61357 2008-04-14  Jim Meyering  <meyering@redhat.com>
61358
61359         test-strtod: fix typos: s/abs/fabs/
61360         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61361
61362 2008-04-13  Bruno Haible  <bruno@clisp.org>
61363
61364         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61365         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61366         module is also used and while not building the reloc-wrapper.
61367
61368 2008-04-13  Bruno Haible  <bruno@clisp.org>
61369
61370         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61371
61372 2008-04-13  Bruno Haible  <bruno@clisp.org>
61373
61374         Fix AIX compilation failure introduced on 2008-04-02.
61375         * tests/test-frexp.c (exp): Undefine before redefining.
61376         * tests/test-frexpl.c (exp): Likewise.
61377
61378 2008-04-13  Bruno Haible  <bruno@clisp.org>
61379
61380         Work around a HP-UX stdio bug.
61381         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61382         * tests/test-ftello.c (main): Likewise.
61383         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61384         * doc/posix-functions/ftello.texi: Likewise.
61385
61386 2008-04-13  Bruno Haible  <bruno@clisp.org>
61387
61388         Make test-signbit pass on HP-UX/hppa.
61389         * tests/test-signbit.c (minus_zerol): New variable.
61390         (test_signbitl): Use it.
61391
61392 2008-04-13  Bruno Haible  <bruno@clisp.org>
61393
61394         Make truncl work on OSF/1 4.0.
61395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61396         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61397         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61399         HAVE_DECL_TRUNCL.
61400         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61401         HAVE_DECL_TRUNCL.
61402         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61403
61404 2008-04-13  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61407
61408 2008-04-13  Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61411         expression, so as to avoid HP-UX 11 cc compiler bug.
61412
61413 2008-04-13  Bruno Haible  <bruno@clisp.org>
61414
61415         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61416
61417 2008-04-13  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/git-merge-changelog.c: Remove empty declaration outside of
61420         functions.
61421
61422 2008-04-13  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61425
61426 2008-04-13  Bruno Haible  <bruno@clisp.org>
61427
61428         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61429         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61431         also if it exists but lacks definitions of the SHUT_* macros.
61432         * modules/sys_socket (Description): Update.
61433         Reported by Elbert Pol <e.pol@chello.nl>.
61434
61435 2008-04-13  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/localcharset.c (OS2): Don't redefine if already defined.
61438         Reported by Elbert Pol <e.pol@chello.nl>.
61439
61440 2008-04-13  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/binary-io.h [__EMX__]: Include <io.h>.
61443         Reported by Elbert Pol <e.pol@chello.nl>.
61444
61445 2008-04-12  Bruno Haible  <bruno@clisp.org>
61446
61447         * lib/fpucw.h: Enable the definitions also for x86_64.
61448         Needed for NetBSD/x86_64.
61449         Reported by Thomas Klausner <tk@giga.or.at>.
61450
61451 2008-04-12  Bruno Haible  <bruno@clisp.org>
61452
61453         * tests/test-strtod.c: Include isnand.h.
61454         (main): Use isnand instead of isnan.
61455         Reported by Jim Meyering.
61456
61457 2008-04-12  Bruno Haible  <bruno@clisp.org>
61458
61459         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61460         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61461
61462 2008-04-12  Jim Meyering  <meyering@redhat.com>
61463
61464         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61465
61466 2008-04-12  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61469         Reported by Elbert Pol <e.pol@chello.nl>.
61470
61471 2008-04-12  Eric Blake  <ebb9@byu.net>
61472
61473         Work around Solaris 10 math.h bug.
61474         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61475         (gl_MATH_H_DEFAULTS): Set up default.
61476         * modules/math (Makefile.am): Replace new indicators.
61477         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61478         * tests/test-math.c (main): Test this.
61479         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61480         * doc/posix-headers/math.texi (math.h): Mention bug.
61481         Reported by Nelson H. F. Beebe and Jim Meyering.
61482
61483 2008-04-11  Bruno Haible  <bruno@clisp.org>
61484
61485         Adapt to future versions of Apple GCC.
61486         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61487         Reported by Peter O'Gorman <peter@pogma.com>.
61488
61489 2008-04-11  Bruno Haible  <bruno@clisp.org>
61490
61491         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61492
61493 2008-04-11  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61496
61497         * modules/getaddrinfo-tests (Makefile.am): Define
61498         test_getaddrinfo_LDADD.
61499
61500 2008-04-11  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61503         (init): Fix syntax error.
61504         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61505         is declared.
61506
61507 2008-04-11  Bruno Haible  <bruno@clisp.org>
61508
61509         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61510         * modules/glob (Depends-on): Add stdbool.
61511
61512 2008-04-11  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/trim.c: Include <string.h>.
61515
61516 2008-04-11  Eric Blake  <ebb9@byu.net>
61517
61518         Avoid compile failure on OS/2.
61519         * lib/regex_internal.h (internal_function): Disable optimization
61520         on OS/2 (__EMX__), where it caused compiler error.
61521         Reported by Elbert Pol.
61522
61523 2008-04-11  Bruno Haible  <bruno@clisp.org>
61524
61525         Flush the standard error stream before aborting. Needed on mingw.
61526         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61527         * tests/test-array_list.c (ASSERT): Likewise.
61528         * tests/test-array_oset.c (ASSERT): Likewise.
61529         * tests/test-avltree_list.c (ASSERT): Likewise.
61530         * tests/test-avltree_oset.c (ASSERT): Likewise.
61531         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61532         * tests/test-binary-io.c (ASSERT): Likewise.
61533         * tests/test-byteswap.c (ASSERT): Likewise.
61534         * tests/test-c-ctype.c (ASSERT): Likewise.
61535         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61536         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61537         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61538         * tests/test-c-strstr.c (ASSERT): Likewise.
61539         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61540         * tests/test-canonicalize.c (ASSERT): Likewise.
61541         * tests/test-carray_list.c (ASSERT): Likewise.
61542         * tests/test-ceilf1.c (ASSERT): Likewise.
61543         * tests/test-ceilf2.c (ASSERT): Likewise.
61544         * tests/test-ceill.c (ASSERT): Likewise.
61545         * tests/test-count-one-bits.c (ASSERT): Likewise.
61546         * tests/test-fbufmode.c (ASSERT): Likewise.
61547         * tests/test-fflush2.c (ASSERT): Likewise.
61548         * tests/test-floorf1.c (ASSERT): Likewise.
61549         * tests/test-floorf2.c (ASSERT): Likewise.
61550         * tests/test-floorl.c (ASSERT): Likewise.
61551         * tests/test-fopen.c (ASSERT): Likewise.
61552         * tests/test-fpending.c (ASSERT): Likewise.
61553         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61554         * tests/test-fpurge.c (ASSERT): Likewise.
61555         * tests/test-freadable.c (ASSERT): Likewise.
61556         * tests/test-freadahead.c (ASSERT): Likewise.
61557         * tests/test-freading.c (ASSERT): Likewise.
61558         * tests/test-freadptr.c (ASSERT): Likewise.
61559         * tests/test-freadptr2.c (ASSERT): Likewise.
61560         * tests/test-freadseek.c (ASSERT): Likewise.
61561         * tests/test-freopen.c (ASSERT): Likewise.
61562         * tests/test-frexp.c (ASSERT): Likewise.
61563         * tests/test-frexpl.c (ASSERT): Likewise.
61564         * tests/test-fseek.c (ASSERT): Likewise.
61565         * tests/test-fseeko.c (ASSERT): Likewise.
61566         * tests/test-fstrcmp.c (ASSERT): Likewise.
61567         * tests/test-ftell.c (ASSERT): Likewise.
61568         * tests/test-ftello.c (ASSERT): Likewise.
61569         * tests/test-func.c (ASSERT): Likewise.
61570         * tests/test-fwritable.c (ASSERT): Likewise.
61571         * tests/test-fwriting.c (ASSERT): Likewise.
61572         * tests/test-getdelim.c (ASSERT): Likewise.
61573         * tests/test-getline.c (ASSERT): Likewise.
61574         * tests/test-i-ring.c (ASSERT): Likewise.
61575         * tests/test-iconv-utf.c (ASSERT): Likewise.
61576         * tests/test-iconv.c (ASSERT): Likewise.
61577         * tests/test-isfinite.c (ASSERT): Likewise.
61578         * tests/test-isnand.c (ASSERT): Likewise.
61579         * tests/test-isnanf.c (ASSERT): Likewise.
61580         * tests/test-isnanl.h (ASSERT): Likewise.
61581         * tests/test-ldexpl.c (ASSERT): Likewise.
61582         * tests/test-linked_list.c (ASSERT): Likewise.
61583         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61584         * tests/test-localename.c (ASSERT): Likewise.
61585         * tests/test-lseek.c (ASSERT): Likewise.
61586         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61587         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61588         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61589         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61590         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61591         * tests/test-mbschr.c (ASSERT): Likewise.
61592         * tests/test-mbscspn.c (ASSERT): Likewise.
61593         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61594         * tests/test-mbspbrk.c (ASSERT): Likewise.
61595         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61596         * tests/test-mbsrchr.c (ASSERT): Likewise.
61597         * tests/test-mbsspn.c (ASSERT): Likewise.
61598         * tests/test-mbsstr1.c (ASSERT): Likewise.
61599         * tests/test-mbsstr2.c (ASSERT): Likewise.
61600         * tests/test-mbsstr3.c (ASSERT): Likewise.
61601         * tests/test-memchr2.c (ASSERT): Likewise.
61602         * tests/test-memmem.c (ASSERT): Likewise.
61603         * tests/test-open.c (ASSERT): Likewise.
61604         * tests/test-printf-frexp.c (ASSERT): Likewise.
61605         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61606         * tests/test-printf-posix.c (ASSERT): Likewise.
61607         * tests/test-quotearg.c (ASSERT): Likewise.
61608         * tests/test-rbtree_list.c (ASSERT): Likewise.
61609         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61610         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61611         * tests/test-round1.c (ASSERT): Likewise.
61612         * tests/test-roundf1.c (ASSERT): Likewise.
61613         * tests/test-roundl.c (ASSERT): Likewise.
61614         * tests/test-signbit.c (ASSERT): Likewise.
61615         * tests/test-sleep.c (ASSERT): Likewise.
61616         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61617         * tests/test-snprintf.c (ASSERT): Likewise.
61618         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61619         * tests/test-stat-time.c (ASSERT): Likewise.
61620         * tests/test-strcasestr.c (ASSERT): Likewise.
61621         * tests/test-strerror.c (ASSERT): Likewise.
61622         * tests/test-striconv.c (ASSERT): Likewise.
61623         * tests/test-striconveh.c (ASSERT): Likewise.
61624         * tests/test-striconveha.c (ASSERT): Likewise.
61625         * tests/test-strsignal.c (ASSERT): Likewise.
61626         * tests/test-strstr.c (ASSERT): Likewise.
61627         * tests/test-strtod.c (ASSERT): Likewise.
61628         * tests/test-trunc1.c (ASSERT): Likewise.
61629         * tests/test-trunc2.c (ASSERT): Likewise.
61630         * tests/test-truncf1.c (ASSERT): Likewise.
61631         * tests/test-truncf2.c (ASSERT): Likewise.
61632         * tests/test-truncl.c (ASSERT): Likewise.
61633         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61634         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61635         * tests/test-vasnprintf.c (ASSERT): Likewise.
61636         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61637         * tests/test-vasprintf.c (ASSERT): Likewise.
61638         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61639         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61640         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61641         * tests/test-vsnprintf.c (ASSERT): Likewise.
61642         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61643         * tests/test-wcwidth.c (ASSERT): Likewise.
61644         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61645         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61646         * tests/test-xvasprintf.c (ASSERT): Likewise.
61647         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61648         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61649         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61650         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61651         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61652         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61653         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61654         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61655         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61656         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61657         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61658         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61659         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61660         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61661         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61662         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61663         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61664         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61665         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61666         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61667         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61668         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61669         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61670         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61671         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61672         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61673         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61674         * tests/unictype/test-combining.c (ASSERT): Likewise.
61675         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61676         * tests/unictype/test-digit.c (ASSERT): Likewise.
61677         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61678         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61679         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61680         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61681         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61682         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61683         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61684         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61685         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61686         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61687         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61688         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61689         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61690         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61691         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61692         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61693         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61694         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61695         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61696         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61697         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61698         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61699         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61700         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61701         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61702         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61703         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61704         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61705         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61706         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61707         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61708         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61709         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61710         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61711         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61712         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61713         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61714         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61715         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61716         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61717         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61718         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61719         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61720         Reported by Eric Blake.
61721
61722 2008-04-11  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/wchar.in.h: Tweak comment.
61725
61726 2008-04-11  Bruno Haible  <bruno@clisp.org>
61727
61728         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61729         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61730         gl_COMMON.
61731         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61732
61733 2008-04-11  Bruno Haible  <bruno@clisp.org>
61734
61735         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61736
61737 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61738
61739         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61740         of attempting to use non-existing /dev/*random.  Based on patch
61741         from Adam Strzelecki <ono@java.pl> in
61742         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61743
61744 2008-04-08  Bruno Haible  <bruno@clisp.org>
61745
61746         Add tentative support for emx+gcc.
61747         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61748         * lib/fpurge.c (fpurge): Likewise.
61749         * lib/freadable.c (freadable): Likewise.
61750         * lib/freadahead.c (freadahead): Likewise.
61751         * lib/freading.c (freading): Likewise.
61752         * lib/freadptr.c (freadptr): Likewise.
61753         * lib/freadseek.c (freadptrinc): Likewise.
61754         * lib/fseeko.c (rpl_fseeko): Likewise.
61755         * lib/fseterr.c (fseterr): Likewise.
61756         * lib/fwritable.c (fwritable): Likewise.
61757         * lib/fwriting.c (fwriting): Likewise.
61758         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61759
61760 2008-04-09  Eric Blake  <ebb9@byu.net>
61761
61762         Avoid some autoconf warnings.
61763         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61764         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61765         * m4/afs.m4 (gl_AFS): Likewise.
61766         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61767         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61769         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61770         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61771         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61772         (AC_CHECK_DECLS_ONCE): Likewise.
61773         Rename file...
61774         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61775         gnulib-tool requires autoconf 2.59 or better.
61776         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61777
61778 2008-04-08  Eric Blake  <ebb9@byu.net>
61779
61780         Use 'git describe --match' if present (added in git 1.5.5).
61781         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61782         if possible.
61783
61784 2008-04-08  Bruno Haible  <bruno@clisp.org>
61785
61786         Add tentative support for OpenServer.
61787         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61788         _ptr, _cnt.
61789         * lib/fpurge.c (fpurge): Likewise.
61790         * lib/freadable.c (freadable): Likewise.
61791         * lib/freadahead.c (freadahead): Likewise.
61792         * lib/freading.c (freading): Likewise.
61793         * lib/freadptr.c (freadptr): Likewise.
61794         * lib/freadseek.c (freadptrinc): Likewise.
61795         * lib/fseeko.c (rpl_fseeko): Likewise.
61796         * lib/fseterr.c (fseterr): Likewise.
61797         * lib/fwritable.c (fwritable): Likewise.
61798         * lib/fwriting.c (fwriting): Likewise.
61799         Reported by Roger Cornelius <rac@tenzing.org> and
61800         Brian K. White <brian@aljex.com>.
61801
61802 2008-04-06  Jim Meyering  <meyering@redhat.com>
61803
61804         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61805
61806 2008-04-06  Bruno Haible  <bruno@clisp.org>
61807
61808         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61809         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61810         * tests/test-printf-posix.sh: Likewise.
61811         * tests/test-vfprintf-posix.sh: Likewise.
61812         * tests/test-vprintf-posix.sh: Likewise.
61813         * tests/test-xprintf-posix.sh: Likewise.
61814
61815 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61816
61817         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61818         hide error from 'ls', needed on OS/2.
61819         Report by Elbert Pol <elbert.pol@gmail.com>.
61820
61821 2008-04-04  Eric Blake  <ebb9@byu.net>
61822
61823         Make test-fseeko.c failures meaningful.
61824         * tests/test-fseeko.c: Print line number on failure.
61825         * tests/test-fseek.c: Likewise.
61826         Reported by Nelson H. F. Beebe.
61827
61828         Improve strtod bug detection check.
61829         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61830         required for Solaris 10.
61831         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61832
61833 2008-04-04  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61836         by m4/setenv.m4.
61837
61838 2008-04-03  Eric Blake  <ebb9@byu.net>
61839
61840         Ensure sane .version contents.
61841         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61842         version string.
61843         * build-aux/git-version-gen: Improve documentation.
61844
61845         Make GNU make output nicer.
61846         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61847         MAKECMDGOALS to enforce message for all command line targets.  Set
61848         srcdir for use in maint.mk.
61849
61850         Another maintainer tweak.
61851         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61852         a target that regenerates version.
61853
61854 2008-04-03  Jim Meyering  <meyering@redhat.com>
61855
61856         vc-list-files: don't cause coreutils "make po-check" failure
61857         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61858
61859 2008-04-03  Eric Blake  <ebb9@byu.net>
61860
61861         Allow VPATH usage of vc-list-files.
61862         * build-aux/vc-list-files (scriptversion): Add timestamp.
61863         (options): Add --help, --version, -C.
61864         (CVS): Support installed cvsu.
61865
61866 2008-04-02  Bruno Haible  <bruno@clisp.org>
61867
61868         Avoid some "statement with no effect" warnings from gcc.
61869         * tests/test-wctype.c (main): Explicitly ignore unused values.
61870         Reported by Jim Meyering.
61871
61872 2008-04-02  Jim Meyering  <meyering@redhat.com>
61873
61874         Avoid some warnings from "gcc -Wshadow".
61875         * tests/test-frexp.c (exp): Define to a different identifier.
61876         * tests/test-frexpl.c (exp): Likewise.
61877
61878 2008-04-03  Jim Meyering  <meyering@redhat.com>
61879
61880         bootstrap: remove dangling *.[ch] symlinks from lib
61881         * build-aux/bootstrap [dangling symlink removal]: Move find's
61882         -depth option to precede all others, to avoid a warning.
61883         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61884
61885 2008-04-02  Bruno Haible  <bruno@clisp.org>
61886
61887         Avoid some warnings from "gcc -Wshadow".
61888         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61889         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61890         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61891         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61892         Reported by Jim Meyering.
61893
61894 2008-04-01  Bruno Haible  <bruno@clisp.org>
61895
61896         Fix test to work on IRIX 6.5 with cc.
61897         * tests/test-math.c (numeric_equal): New function.
61898         (main): Use it.
61899
61900 2008-04-01  Bruno Haible  <bruno@clisp.org>
61901
61902         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61903
61904 2008-04-01  Bruno Haible  <bruno@clisp.org>
61905
61906         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61907         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61908         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61909         (Depends-on): Remove math.
61910
61911         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61912         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61913         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61914         (Depends-on): Remove math.
61915
61916         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61917         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61918         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61919         (Depends-on): Remove math.
61920         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61921         (Depends-on): Remove math.
61922
61923         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61924         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61925         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61926         (Depends-on): Remove math.
61927         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61928         (Depends-on): Remove math.
61929
61930         * tests/test-round1.c: Include nan.h.
61931         (main): Use NaNd instead of NAN.
61932         * modules/round-tests (Files): Add tests/nan.h.
61933
61934         * tests/test-trunc1.c: Include nan.h.
61935         (main): Use NaNd instead of NAN.
61936         * modules/trunc-tests (Files): Add tests/nan.h.
61937
61938         * tests/test-roundf1.c: Include nan.h.
61939         (main): Use NaNf instead of NAN.
61940         * modules/roundf-tests (Files): Add tests/nan.h.
61941
61942         * tests/test-truncf1.c: Include nan.h.
61943         (main): Use NaNf instead of NAN.
61944         * modules/truncf-tests (Files): Add tests/nan.h.
61945
61946         * tests/test-ceilf1.c: Include nan.h.
61947         (main): Use NaNf instead of NAN.
61948         * modules/ceilf-tests (Files): Add tests/nan.h.
61949
61950         * tests/test-floorf1.c: Include nan.h.
61951         (main): Use NaNf instead of NAN.
61952         * modules/floorf-tests (Files): Add tests/nan.h.
61953
61954         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61955         (main): Use NaNf instead of NAN.
61956         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61957
61958         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61959         (main): Use NaNd instead of NAN.
61960         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61961
61962         * tests/test-frexp.c: Include nan.h.
61963         (main): Use NaNd instead of NAN.
61964         * modules/frexp-tests (Files): Add tests/nan.h.
61965
61966         * lib/isnan.c: Don't include <math.h>.
61967         (FUNC): Don't use NAN macro.
61968         * modules/isnand-nolibm (Depends-on): Remove math.
61969         * modules/isnanf-nolibm (Depends-on): Remove math.
61970         * modules/isnanl (Depends-on): Remove math.
61971         * modules/isnanl-nolibm (Depends-on): Remove math.
61972
61973         * tests/nan.h: New file.
61974
61975 2008-04-01  Eric Blake  <ebb9@byu.net>
61976
61977         Fix typos.
61978         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61979         values to be the right type.
61980
61981         For now, cater to gnulib strtod inaccuracies.
61982         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61983         fractional results.  While not as nice from a QoI perspective, it
61984         is a quicker patch than correctly implementing decimal to binary
61985         rounding.
61986
61987 2008-03-31  Eric Blake  <ebb9@byu.net>
61988
61989         Guarantee a definition of NAN.
61990         * lib/math.in.h (NAN): Define if missing.
61991         * tests/test-math.c (main): Test it.
61992         * doc/posix-headers/math.texi (math.h): Document this.
61993         * lib/isnan.c (rpl_isnand): Use it.
61994         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61995         * tests/test-floorf1.c (NaN): Likewise.
61996         * tests/test-frexp.c (NaN): Likewise.
61997         * tests/test-isnand.c (NaN): Likewise.
61998         * tests/test-isnanf.c (NaN): Likewise.
61999         * tests/test-round1.c (NaN): Likewise.
62000         * tests/test-roundf1.c (NaN): Likewise.
62001         * tests/test-snprintf-posix.h (NaN): Likewise.
62002         * tests/test-sprintf-posix.h (NaN): Likewise.
62003         * tests/test-trunc1.c (NaN): Likewise.
62004         * tests/test-truncf1.c (NaN): Likewise.
62005         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62006         * tests/test-vasprintf-posix.c (NaN): Likewise.
62007         * modules/isnand-nolibm (Depends-on): Add math.
62008         * modules/isnanf-nolibm (Depends-on): Likewise.
62009         * modules/isnanl (Depends-on): Likewise.
62010         * modules/isnanl-nolibm (Depends-on): Likewise.
62011         * modules/snprintf-posix-tests (Depends-on): Likewise.
62012         * modules/sprintf-posix-tests (Depends-on): Likewise.
62013         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62014         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62015         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62016         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62017
62018 2008-03-31  Bruno Haible  <bruno@clisp.org>
62019
62020         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62021         * doc/posix-functions/strtod.texi: Likewise.
62022
62023 2008-03-31  Bruno Haible  <bruno@clisp.org>
62024
62025         * tests/test-strtod.c (main): Don't use C99 syntax.
62026
62027 2008-03-31  Bruno Haible  <bruno@clisp.org>
62028
62029         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62030         Reported by Eric Blake.
62031
62032 2008-03-31  Jim Meyering  <meyering@redhat.com>
62033
62034         Don't compare actual signbit return values.
62035         * tests/test-strtod.c (main): Rather, compare only their
62036         zero/non-zero nature.
62037
62038 2008-03-31  Eric Blake  <ebb9@byu.net>
62039
62040         More strtod documentation.
62041         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62042         failures as distinct bugs.
62043
62044 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62045
62046         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62047         Problem reported by Erik Benada in
62048         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62049
62050 2008-03-30  Bruno Haible  <bruno@clisp.org>
62051
62052         * tests/test-strtod.c: Add comments about which assertion fails on which
62053         platform.
62054         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62055
62056 2008-03-30  Eric Blake  <ebb9@byu.net>
62057
62058         Test signbit behavior on zeros.
62059         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62060         (test_signbitd, test_signbitl): Likewise.
62061
62062         More strtod touchups.
62063         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62064         sign of negative underflow, for now.  Use .5, not .1.
62065         * doc/posix-functions/strtod.texi (strtod): Mention these
62066         limitations.
62067         Reported by Jim Meyering.
62068
62069 2008-03-30  Bruno Haible  <bruno@clisp.org>
62070
62071         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62072         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62073
62074 2008-03-30  Bruno Haible  <bruno@clisp.org>
62075
62076         Avoid failure when attempting to return empty iconv results on some
62077         platforms.
62078         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62079         allocation, don't report ENOMEM when the resulting string is empty.
62080
62081 2008-03-30  Bruno Haible  <bruno@clisp.org>
62082
62083         Fix buffer overrun.
62084         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62085         Don't consider the width for tmp_length. Check count against tmp_length
62086         before doing the padding. Ensure enough allocation during padding.
62087
62088 2008-03-30  Eric Blake  <ebb9@byu.net>
62089
62090         strtod touchups.
62091         * lib/strtod.c (strtod): Avoid compiler warnings.
62092         Reported by Jim Meyering.
62093
62094 2008-03-30  Bruno Haible  <bruno@clisp.org>
62095
62096         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62097         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62098         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62099         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62100         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62101         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62102         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62103         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62104
62105         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62106         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62107         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62108         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62109         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62110         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62111         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62112         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62113
62114         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62115         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62116         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62117         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62118         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62119         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62120         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62121         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62122
62123         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62124         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62125
62126         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62127         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62128
62129         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62130         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62131
62132         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62134         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62135
62136         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62138         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62139
62140         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62142         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62143
62144         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62146         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62147
62148         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62149         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62151         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62152         (Depends-on): Add EOVERFLOW.
62153         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62154         (Depends-on): Add EOVERFLOW.
62155         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62156         (Depends-on): Add EOVERFLOW.
62157         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62158         (Depends-on): Add EOVERFLOW.
62159         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62160         (Depends-on): Add EOVERFLOW.
62161         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62162         (Depends-on): Add EOVERFLOW.
62163         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62164         (Depends-on): Add EOVERFLOW.
62165         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62166         (Depends-on): Add EOVERFLOW.
62167
62168         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62170         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62171
62172         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62174         * modules/snprintf (Depends-on): Add EOVERFLOW.
62175
62176         * lib/poll.c (EOVERFLOW): Remove fallback.
62177         * modules/poll (Depends-on): Add EOVERFLOW.
62178
62179         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62180         * modules/getugroups (Depends-on): Add EOVERFLOW.
62181
62182         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62183         * modules/getdelim (Depends-on): Add EOVERFLOW.
62184
62185         * lib/ftell.c (EOVERFLOW): Remove fallback.
62186         * modules/ftell (Depends-on): Add EOVERFLOW.
62187
62188         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62190         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62191
62192         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62193
62194         * modules/EOVERFLOW-tests: New file.
62195         * tests/test-EOVERFLOW.c: New file.
62196
62197         * modules/EOVERFLOW: New file.
62198         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62199
62200 2008-03-30  Bruno Haible  <bruno@clisp.org>
62201
62202         Fix bug introduced on 2007-06-10.
62203         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62204         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62205
62206 2008-03-30  Bruno Haible  <bruno@clisp.org>
62207
62208         Improve freadseek's efficiency after ungetc.
62209         * lib/freadseek.c: Include freadahead.h.
62210         (freadptrinc): New function, extracted from freadseek.
62211         (freadseek): Use it in a loop. Use freadahead to determine the number
62212         of loop iterations.
62213         * modules/freadseek (Depends-on): Add freadahead.
62214         (configure.ac): Require AC_C_INLINE.
62215
62216 2008-03-30  Bruno Haible  <bruno@clisp.org>
62217
62218         * lib/freadseek.c (freadseek): Don't ignore the return value of
62219         freadptr.
62220
62221 2008-03-29  Eric Blake  <ebb9@byu.net>
62222
62223         Add hex float support.
62224         * modules/strtod (Depends-on): Add c-ctype.
62225         (Link): Mention POW_LIB.
62226         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62227         whitespace between 'e' and exponent.
62228         * tests/test-strtod.c (main): Enable hex float tests.
62229         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62230         now provides.
62231
62232         Document various strtod bugs, with some fixes.
62233         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62234         "-0x", "inf", "nan", and hex constants.
62235         * doc/posix-functions/atof.texi (atof): Likewise.
62236         * modules/stdlib (Makefile.am): Support strtod.
62237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62238         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62239         detect additional strtod bugs.
62240         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62241         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62242         bool where appropriate.  Parse 'inf' and 'nan'.
62243         * tests/test-strtod.c: New file.
62244         * modules/strtod (Depends-on): Add stdbool, stdlib.
62245         (configure.ac): Turn on module indicator.
62246         * modules/strtod-tests: New module.
62247
62248 2008-03-29  Eric Blake  <ebb9@byu.net>
62249
62250         Fix ftell on mingw.
62251         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62252         * modules/ftell-tests (Depends-on): Add binary-io.
62253         * modules/ftello-tests (Depends-on): Likewise.
62254         * tests/test-ftell.c (main): Enhance test to cover behavior after
62255         ungetc.  Enforce binary mode.
62256         * tests/test-ftello.c (main): Likewise.
62257
62258         Pass test-freadseek on cygwin.
62259         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62260         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62261         ungetc buffer.
62262
62263         * tests/test-fflush2.c (main): Fix typo.
62264
62265 2008-03-29  Bruno Haible  <bruno@clisp.org>
62266
62267         * tests/test-fflush2.c (main): Temporarily disable the contents of
62268         this test.
62269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62270         Reported by Eric Blake.
62271
62272 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62273
62274         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62275         (GC_SHA224_DIGEST_SIZE): Add.
62276
62277         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62278         (gc_hash_digest_length): Likewise.
62279         (gc_hash_buffer): Likewise.
62280
62281 2008-03-25  Bruno Haible  <bruno@clisp.org>
62282
62283         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62284         detail which gettext release to use.
62285         Reported by Simon Josefsson.
62286
62287 2008-03-26  Jim Meyering  <meyering@redhat.com>
62288
62289         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62290         * modules/gnumakefile (clean-GNUmakefile): Also, use
62291         test ... && ... || : syntax rather than if-then ... fi.
62292
62293         gnumakefile: Don't double-quote-expand $(VPATH) value.
62294         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62295
62296 2008-03-24  Eric Blake  <ebb9@byu.net>
62297
62298         Alter GNUmakefile to install into top directory.
62299         * modules/maintainer-makefile: Split, and add dependency...
62300         * modules/gnumakefile: to this new module.
62301         * build-aux/GNUmakefile: Move...
62302         * top/GNUmakefile: ...here.
62303         * build-aux/maint.mk: Move...
62304         * top/maint.mk: ...here.
62305         * MODULES.html.sh (Support for maintaining...): Document new
62306         module.
62307
62308 2008-03-23  Bruno Haible  <bruno@clisp.org>
62309
62310         * gnulib-tool: New options --vc-files, --no-vc-files.
62311         (func_usage): Document them.
62312         (vc_files): New variable.
62313         (func_import): Consider vc_files.
62314         (func_create_testdir): Set vc_files to empty.
62315         Suggested by Jim Meyering and Karl Berry.
62316
62317 2008-03-23  Bruno Haible  <bruno@clisp.org>
62318
62319         Fix regex compilation error on HP-UX 11.
62320         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62321         * modules/regex (Files): Add m4/mbstate_t.m4.
62322         Reported by Ton Voon <ton.voon@altinity.com>.
62323
62324 2008-03-23  Bruno Haible  <bruno@clisp.org>
62325
62326         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62327
62328 2008-03-23  Eric Blake  <ebb9@byu.net>
62329             Bruno Haible  <bruno@clisp.org>
62330
62331         Install files from top/ in the destination directory.
62332         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62333         augmentation also for the files from top/.
62334         (func_import, func_create_testdir): Rewrite file names:
62335         top/filename -> filename.
62336
62337 2008-03-23  Bruno Haible  <bruno@clisp.org>
62338
62339         Tweak "gnulib --version" output.
62340         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62341
62342 2008-03-23  Bruno Haible  <bruno@clisp.org>
62343
62344         Tweak "gnulib --version" output.
62345         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62346         rather than contents of ChangeLog, when possible.
62347
62348 2008-03-21  Eric Blake  <ebb9@byu.net>
62349
62350         More --version tweaks.
62351         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62352         date of last ChangeLog entry.
62353
62354 2008-03-21  Jim Meyering  <meyering@redhat.com>
62355
62356         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62357
62358 2008-03-20  Eric Blake  <ebb9@byu.net>
62359
62360         VPATH fix.
62361         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62362
62363 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62364
62365         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62366         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62367
62368 2008-03-20  Eric Blake  <ebb9@byu.net>
62369
62370         Sync GNUmakefile with coreutils.
62371         * build-aux/GNUmakefile (have-Makefile): Rename...
62372         (_have-Makefile): ...to this, for namespace consideration.
62373         (GNUmakefile.cfg): Include, if present.
62374         (_autoreconf): Define a default.
62375         (_is-dist-target): New rule for rebuilds to pick up intra-release
62376         version.
62377         (maint-cfg.mk): Rename...
62378         (cfg.mk): ...to this.
62379
62380 2008-03-18  Jim Meyering  <meyering@redhat.com>
62381
62382         New script and module: mktempd
62383         * MODULES.html.sh (maint+release support): Add mktempd.
62384         * build-aux/mktempd: New file.
62385         * modules/mktempd: New file.
62386
62387 2008-03-15  Jim Meyering  <meyering@redhat.com>
62388
62389         Undo last change.
62390         * lib/sha1.c, lib/md5.c: 63 != ~63.
62391         Reported by Andreas Schwab.
62392
62393         sha1.c, md5.c: Hoist a redundant expression.
62394         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62395         "ctx->buflen" only once, before calling *_process_block.
62396         * lib/md5.c (md5_process_bytes): Likewise.
62397
62398 2008-03-14  Eric Blake  <ebb9@byu.net>
62399
62400         Bump copyright year in files generated by gnulib-tool.
62401         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62402         gnulib-tool, rather than hard-coding it.
62403
62404         Fix 'gnulib-tool --version' output to work with git.
62405         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62406         (startup): ...here.
62407         (func_version): Use it to invoke git-version-gen, rather than
62408         relying on CVS keyword expansion.  Modernize wording.
62409         (cvsdatestamp, last_checkin_date, version): Kill unused
62410         variables.
62411
62412 2008-03-12  Jim Meyering  <meyering@redhat.com>
62413
62414         Recognize optional cast of the argument to free.
62415         * build-aux/useless-if-before-free: Update regexps.
62416
62417         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62418
62419 2008-03-11  Bruno Haible  <bruno@clisp.org>
62420
62421         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62422         by a single package.
62423         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62424         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62425         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62426         Reported by Sam Steingold <sds@gnu.org>.
62427
62428 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62429
62430         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62431         repositories.
62432
62433 2008-03-11  Bruno Haible  <bruno@clisp.org>
62434
62435         Avoid conflicts between local macro definitions.
62436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62437         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62438
62439 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62440             Bruno Haible  <bruno@clisp.org>
62441
62442         Make va_copy work with some version of xlc on AIX 5.1.
62443         * lib/stdarg.in.h: New file.
62444         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62445         On AIX, use a <stdarg.h> file substitute.
62446         * modules/stdarg (Files): Add lib/stdarg.in.h.
62447         (Depends-on): Add include_next.
62448         (Makefile.am): Build a stdarg.h substitute if requested.
62449         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62450
62451 2008-03-10  Bruno Haible  <bruno@clisp.org>
62452
62453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62455         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62456
62457 2008-03-10  Bruno Haible  <bruno@clisp.org>
62458
62459         * modules/stdlib (Depends-on): Add include_next, remove
62460         absolute-header.
62461
62462 2008-03-09  Bruno Haible  <bruno@clisp.org>
62463
62464         * lib/freadahead.h (freadahead): Document more precisely.
62465         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62466         the sum of both buffer sizes.
62467         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62468         * NEWS: Document the change.
62469
62470 2008-03-09  Bruno Haible  <bruno@clisp.org>
62471
62472         Extend freadptr to return also the buffer size.
62473         * lib/freadptr.h (freadptr): Add sizep argument.
62474         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62475         (freadptr): Add sizep argument. Determine buffer size like freadahead
62476         does.
62477         * tests/test-freadptr.c: Don't include freadahead.h.
62478         (main): Adapt for new calling convention of freadptr.
62479         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62480         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62481         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62482         tests/test-freadptr2.sh.
62483         (Depends): Remove freadahead.
62484         (TESTS): Add test-freadptr2.sh.
62485         (check_PROGRAMS): Add test-freadptr2.
62486
62487 2008-03-09  Bruno Haible  <bruno@clisp.org>
62488
62489         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62490         Report and solution by Simon Josefsson.
62491
62492 2008-03-06  Bruno Haible  <bruno@clisp.org>
62493
62494         Make fflush after ungetc work on BSD platforms.
62495         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62496         * tests/test-fflush2.c: New file.
62497         * tests/test-fflush2.sh: New file.
62498         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62499         tests/test-fflush2.c.
62500         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62501         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62502
62503 2008-03-06  Eric Blake  <ebb9@byu.net>
62504
62505         Likewise for ftello.
62506         * modules/ftello (Dependencies): Add extensions.
62507         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62508
62509 2008-03-06  Bruno Haible  <bruno@clisp.org>
62510
62511         * modules/fseeko (Dependencies): Add extensions.
62512         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62513         Needed on glibc systems.
62514
62515 2008-03-06  Bruno Haible  <bruno@clisp.org>
62516
62517         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62518         email address.
62519         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62520
62521 2008-03-06  Bruno Haible  <bruno@clisp.org>
62522
62523         * users.txt: Add libgnupdf.
62524
62525 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62526
62527         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62528         (Header File Substitutes, Function Substitutes,
62529         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62530         (Build robot for gnulib): Fix typo.
62531
62532 2008-03-06  Bruno Haible  <bruno@clisp.org>
62533
62534         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62535         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62536
62537 2008-03-06  Bruno Haible  <bruno@clisp.org>
62538
62539         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62540         * doc/gnulib.texi: Include it.
62541
62542 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62543
62544         * modules/func (License): Change license to unlimited; there was
62545         no LGPL parts in the module anyway.
62546
62547 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62548
62549         * modules/__func__: Renamed to modules/func.
62550         * modules/__func__-tests: Renamed to modules/func-tests.
62551         * tests/test-__func__.c: Renamed to tests/test-func.c.
62552         * m4/__func__.m4: Renamed to m4/func.m4.
62553         * doc/gnulib.texi (__func__): Section renamed to func.
62554         Suggested by Eric Blake <ebb9@byu.net>.
62555
62556 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62557
62558         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62559         about __func__.  Make example self-contained.  Suggested by Eric
62560         Blake <ebb9@byu.net>.
62561
62562         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62563         Suggested by Eric Blake <ebb9@byu.net>.
62564
62565 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62566
62567         * modules/__func__: New file.
62568         * modules/__func__-tests: New file.
62569         * tests/test-__func__.c: New file.
62570         * m4/__func__.m4: New file.
62571         * doc/gnulib.texi (__func__): Document __func__ module.
62572
62573 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62574
62575         * modules/byteswap (License): Re-license as LGPLv2+.
62576
62577 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62578
62579         * doc/Makefile: Add pdf target.
62580
62581 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62582
62583         * modules/inline (License): Use 'unlimited', since there are only
62584         *.m4 files in this module.
62585
62586 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62587             Bruno Haible  <bruno@clisp.org>
62588
62589         Add support for HP C 7.1 on OpenVMS 8.3.
62590         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62591
62592 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62593
62594         Update VMS specifics.
62595         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62596
62597 2008-03-02  Jim Meyering  <meyering@redhat.com>
62598
62599         Remove the last dependency on the "free" module.
62600         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62601         Reported by Bob Proulx.
62602
62603         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62604
62605         Remove useless "if" tests before free.  Deprecate "free" module.
62606         * doc/posix-functions/free.texi: Mention that this
62607         module is no longer useful.
62608         * modules/free (Notice): Say this module is obsolete.
62609         * modules/readutmp (Depends-on): Remove free.
62610         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62611         * lib/putenv.c (putenv): Likewise.
62612         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62613         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62614         * tests/test-c-strcasestr.c (main): Likewise.
62615         * tests/test-c-strstr.c (main): Likewise.
62616         * tests/test-mbscasestr1.c (main): Likewise.
62617         * tests/test-mbscasestr2.c (main): Likewise.
62618         * tests/test-mbsstr1.c (main): Likewise.
62619         * tests/test-mbsstr2.c (main): Likewise.
62620         * tests/test-memmem.c (main): Likewise.
62621         * tests/test-strcasestr.c (main): Likewise.
62622         * tests/test-striconv.c (main): Likewise.
62623         * tests/test-striconveh.c (main): Likewise.
62624         * tests/test-striconveha.c (main): Likewise.
62625         * tests/test-strstr.c (main): Likewise.
62626
62627         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62628
62629         bootstrap: sync from coreutils again
62630         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62631
62632 2008-03-01  Jim Meyering  <meyering@redhat.com>
62633
62634         bootstrap: sync from coreutils
62635         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62636         also when the target doesn't exist.
62637
62638 2008-03-01  Eric Blake  <ebb9@byu.net>
62639
62640         Fix bugs in last patch.
62641         * lib/memchr2.c (memchr2): Fix typo.
62642         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62643         extension.
62644         Reported by Bruce Korb.
62645
62646         New module 'memchr2'.
62647         * modules/memchr2: New file.
62648         * modules/memchr2-tests: Likewise.
62649         * lib/memchr2.h: Likewise.
62650         * lib/memchr2.c: Likewise, based on memchr.c.
62651         * tests/test-memchr2.c: New test.
62652         * MODULES.html.sh (String handling): Add memchr2.
62653
62654 2008-02-29  Bruno Haible  <bruno@clisp.org>
62655
62656         * modules/freadseek-tests: New file.
62657         * tests/test-freadseek.sh: New file.
62658         * tests/test-freadseek.c: New file.
62659
62660         New module 'freadseek'.
62661         * modules/freadseek: New file.
62662         * lib/freadseek.h: New file.
62663         * lib/freadseek.c: New file.
62664         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62665
62666 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62667
62668         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62669         wydawca.
62670
62671         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62672         program_invocation_name and program_invocation_short_name are
62673         present.
62674
62675 2008-02-28  Bruno Haible  <bruno@clisp.org>
62676
62677         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62678         * tests/test-freadptr.sh: Also test non-seekable stdin.
62679
62680 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62681
62682         * build-aux/bootstrap (source_base, m4_base)
62683         (doc_base, tests_base): New variables.
62684         (gnulib_tool_options): Do not hardcode base directories, use
62685         the above variables instead.
62686
62687 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62688
62689         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62690
62691 2008-02-28  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/freadptr-tests: New file.
62694         * tests/test-freadptr.sh: New file.
62695         * tests/test-freadptr.c: New file.
62696
62697         New module 'freadptr'.
62698         * modules/freadptr: New file.
62699         * lib/freadptr.h: New file.
62700         * lib/freadptr.c: New file.
62701         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62702
62703 2008-02-26  Karl Berry  <karl@freefriends.org>
62704
62705         Sync from Libtool:
62706         * libltdl/argz.c (argz_add, argz_count): New functions.
62707         * libltdl/argz.in.h: Declare them.
62708         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62709
62710 2008-02-22  Bruno Haible  <bruno@clisp.org>
62711
62712         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62713         is a pointer type.  Needed for HP-UX 10.
62714         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62715         * doc/posix-functions/gmtime_r.texi: Likewise.
62716         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62717
62718 2008-02-24  Bruno Haible  <bruno@clisp.org>
62719
62720         * modules/environ-tests: New file.
62721         * tests/test-environ.c: New file.
62722
62723         New module 'environ'.
62724         * modules/environ: New file.
62725         * lib/unistd.in.h (environ): New declaration.
62726         * m4/environ.m4: New file.
62727         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62728         after use.
62729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62730         HAVE_DECL_ENVIRON.
62731         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62732         HAVE_DECL_ENVIRON.
62733         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62734         wrong claim that 'environ' is missing on some systems.
62735         * modules/execute (Depends-on): Add environ.
62736         * lib/execute.c (environ): Remove fallback declaration.
62737         * modules/pipe (Depends-on): Add environ.
62738         * lib/pipe.c (environ): Remove fallback declaration.
62739         * modules/setenv (Depends-on): Add environ.
62740         * lib/setenv.c (environ): Remove fallback declaration.
62741         * modules/unsetenv (Depends-on): Add environ.
62742         * lib/unsetenv.c (environ): Remove fallback declaration.
62743         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62744         m4/environ.m4.
62745         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62746         (gl_PREREQ_UNSETENV): Likewise.
62747
62748 2008-02-24  Bruno Haible  <bruno@clisp.org>
62749
62750         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62751
62752 2008-02-20  Bob Proulx  <bob@proulx.com>
62753
62754         Enable use of older two part flavor 'git describe'.
62755         * build-aux/git-version-gen: If using the older two part flavor of
62756         git version then recreate the third part now present in the
62757         newer three part flavor of git describe.
62758
62759 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62760
62761         * lib/fts.c (fts_build): Typo correction to comment.
62762
62763 2008-02-17  Bruno Haible  <bruno@clisp.org>
62764
62765         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62766         generating no-op conflicts.
62767
62768 2008-02-17  Bruno Haible  <bruno@clisp.org>
62769
62770         Speed up by 10%.
62771         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62772         result_entries, rather than an index-based loop.
62773
62774 2008-02-17  Bruno Haible  <bruno@clisp.org>
62775
62776         Speed up by 25%.
62777         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62778         'hashcode_cached'.
62779         (entry_create): New function.
62780         (entry_hashcode): Use the cached hashcode if possible.
62781         (read_changelog_file, try_split_merged_entry): Use entry_create.
62782
62783 2008-02-17  Bruno Haible  <bruno@clisp.org>
62784
62785         Speed up from O(n^2) to O(n) for long ChangeLog files.
62786         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62787         (read_changelog_file): Change implementation of entries_reversed list
62788         to rbtreehash.
62789         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62790
62791 2008-02-17  Bruno Haible  <bruno@clisp.org>
62792
62793         New option --split-merged-entry.
62794         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62795         (find_paragraph_end, try_split_merged_entry): New functions.
62796         (long_options): Add option --split-merged-entry.
62797         (usage): Document option --split-merged-entry.
62798         (main): Implement option --split-merged-entry.
62799         Reported by Eric Blake.
62800
62801 2008-02-17  Bruno Haible  <bruno@clisp.org>
62802
62803         * lib/git-merge-changelog.c: Include c-strstr.h.
62804         (main): Support the "git pull --rebase" situation.
62805         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62806         Reported by Eric Blake.
62807
62808 2008-02-16  Eric Blake  <ebb9@byu.net>
62809
62810         Avoid doubling \ in common case of "c-maybe" quoting style.
62811         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62812         eliding outer quotes.
62813         * lib/quotearg.h: Document this.
62814         * tests/test-quotearg.c (result_strings, inputs, results_g)
62815         (flag_results, locale_results): Test it by adding a new string to
62816         each test group.
62817         (compare_strings): Test new string.
62818
62819 2008-02-13  Eric Blake  <ebb9@byu.net>
62820
62821         Avoid trigraph quoting in default output.
62822         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62823         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62824         unless explicitly requested.
62825         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62826
62827 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62828
62829         Don't rely on signed integer overflowing to negative value.
62830         * lib/getugroups.c (getugroups): Include <limits.h>.
62831         Instead, compare against INT_MAX, and increment only if the test passes.
62832
62833 2008-02-13  Jim Meyering  <meyering@redhat.com>
62834         and Eric Blake  <ebb9@byu.net>
62835
62836         Avoid shadowing warning and compile errors on Linux.
62837         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62838         forwarding macros on Linux.
62839         (dcgettext): Define a stub, for Linux.
62840         (results_g, main): Avoid warnings.
62841
62842 2008-02-12  Eric Blake  <ebb9@byu.net>
62843
62844         Silence warning in last patch.
62845         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62846
62847         Quotearg part 4: add tests, fix c-maybe colon quoting.
62848         * lib/quotearg.h: Improve documentation.
62849         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62850         escapes when adding outer quotes.  When quoting trigraphs, use
62851         valid C notation.  When quoting NUL, omit extra characters if next
62852         character is not digit.  Alter prototype.
62853         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62854         callers.
62855         * modules/quotearg-tests: New module.
62856         * tests/test-quotearg.c: New test.
62857
62858 2008-02-07  Eric Blake  <ebb9@byu.net>
62859
62860         Quotearg part 3: add flag to control outer quote elision.
62861         * lib/quotearg.h (c_maybe_quoting_style): New style.
62862         (enum quoting_flags): Better documentation of flags.
62863         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62864         c-maybe style.
62865         (quotearg_buffer_restyled): Handle new flag to elide outer
62866         quotes.
62867
62868         Quotearg part 2: add flag that can control NUL elision.
62869         * lib/quotearg.h (set_quoting_flags): New prototype.
62870         * lib/quotearg.c (struct quoting_options): Add flag field.
62871         (set_quoting_flags): New function.
62872         (quotearg_buffer_restyled): Add flags parameter.
62873         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62874         (quotearg_n_options): Set the flag, since length cannot be
62875         returned.
62876         (quoting_options_from_style): Default flags correctly.
62877
62878         Quotearg part 1: more wrappers, restore quotearg_char state.
62879         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62880         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62881         (quotearg_colon_mem): New wrappers.
62882         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62883         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62884         functions.
62885         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62886         (quotearg_colon_mem): New functions.
62887
62888 2008-02-11  Bruno Haible  <bruno@clisp.org>
62889
62890         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62891         library in the current directory: it does not work with parallel make.
62892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62893
62894 2008-02-11  Bruno Haible  <bruno@clisp.org>
62895
62896         * .gitattributes: New file.
62897
62898 2008-02-11  Jim Meyering  <meyering@redhat.com>
62899
62900         useless-if-before-free: Fix reversed exit values.
62901         * build-aux/useless-if-before-free: Use correct values
62902         for EXIT_MATCH and EXIT_NO_MATCH.
62903
62904         * build-aux/useless-if-before-free: Close stdout carefully.
62905
62906 2008-02-10  Bruno Haible  <bruno@clisp.org>
62907
62908         New module 'git-merge-changelog'.
62909         * modules/git-merge-changelog: New file.
62910         * lib/git-merge-changelog.c: New file.
62911
62912 2008-02-10  Jim Meyering  <meyering@redhat.com>
62913
62914         useless-if-before-free: New option: --list (-l).
62915
62916         useless-if-before-free: Don't exit immediately upon open failure.
62917         * build-aux/useless-if-before-free: Exit 2 for errors.
62918         Upon failure to open a file, don't exit immediately.
62919         Rather, just warn and continue with any remaining files.
62920
62921 2008-02-10  Bruno Haible  <bruno@clisp.org>
62922
62923         New abstract list operation 'node_set_value'.
62924         * lib/gl_list.h (gl_list_node_set_value): New function.
62925         (struct gl_list_implementation): New field node_set_value.
62926         * lib/gl_list.c (gl_list_node_set_value): New function.
62927         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62928         (gl_array_list_implementation): Update.
62929         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62930         (gl_carray_list_implementation): Update.
62931         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62932         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62933         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62934         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62935         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62936         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62937         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62938         Update.
62939         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62940         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62941         (gl_sublist_list_implementation): Update.
62942
62943 2008-02-10  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62946         Needed when ELEMENT is #defined to 'some_type *'.
62947
62948 2008-02-10  Jim Meyering  <meyering@redhat.com>
62949
62950         New script and module: useless-if-before-free
62951         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62952         * build-aux/useless-if-before-free: New file.
62953         * modules/useless-if-before-free: New file.
62954
62955         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62956
62957         xstrtol_error: Fix typo.
62958         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62959         s/exit_failure/exit_status/.
62960
62961 2008-02-09  Jim Meyering  <meyering@redhat.com>
62962
62963         New script and module: gitlog-to-changelog
62964         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62965         * modules/gitlog-to-changelog: New file.
62966         * build-aux/gitlog-to-changelog: New file.
62967
62968 2008-02-08  Jim Meyering  <meyering@redhat.com>
62969
62970         Avoid two "parameter unused" warnings.
62971         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62972         Mark "st" as used.
62973
62974         Use "git COMMAND", not "git-COMMAND".
62975         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62976         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62977         * build-aux/git-version-gen: Use "git status", not "git-status".
62978
62979 2008-02-07  Bruno Haible  <bruno@clisp.org>
62980
62981         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62982         Avoids a crash on Windows Vista.
62983         Reported by Adam Strzelecki <ono@java.pl> via
62984         Simon Josefsson <simon@josefsson.org>.
62985
62986 2008-02-06  Bruno Haible  <bruno@clisp.org>
62987
62988         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62989         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62990         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62992         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62994         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62995         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63003         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63004         left-adjust flag.
63005         * tests/test-snprintf-posix.h (test_function): Likewise.
63006         * tests/test-sprintf-posix.h (test_function): Likewise.
63007         * tests/test-vasprintf-posix.c (test_function): Likewise.
63008         * doc/posix-functions/fprintf.texi: Update.
63009         * doc/posix-functions/printf.texi: Update.
63010         * doc/posix-functions/snprintf.texi: Update.
63011         * doc/posix-functions/sprintf.texi: Update.
63012         * doc/posix-functions/vfprintf.texi: Update.
63013         * doc/posix-functions/vprintf.texi: Update.
63014         * doc/posix-functions/vsnprintf.texi: Update.
63015         * doc/posix-functions/vsprintf.texi: Update.
63016         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63017
63018 2008-02-06  Bruno Haible  <bruno@clisp.org>
63019
63020         Fix bug introduced on 2008-01-26.
63021         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63022
63023 2008-02-06  Bruno Haible  <bruno@clisp.org>
63024
63025         Fix bug introduced on 2007-06-10.
63026         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63027         !NEED_PRINTF_FLAG_ZERO.
63028
63029 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63030
63031         getloadavg: use libperfstat on AIX5
63032         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63033
63034 2008-02-03  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/diffseq.h: Add comments about required #includes.
63037         Reported by Michael Biggs <gnulib@doubleplum.net>.
63038
63039 2008-02-01  Bruno Haible  <bruno@clisp.org>
63040
63041         * users.txt: Add gnuit.
63042
63043 2008-01-31  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/md4.c (set_uint32): Mark as inline.
63046         * lib/md5.c (set_uint32): Likewise.
63047         * lib/sha1.c (set_uint32): Likewise.
63048         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63049         * m4/md5.m4 (gl_MD5): Likewise.
63050         * m4/sha1.m4 (gl_SHA1): Likewise.
63051
63052 2008-01-31  Jim Meyering  <meyering@redhat.com>
63053
63054         Use "sizeof VAR", rather than a literal "4".
63055         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63056         * lib/md4.c (md4_read_ctx): Likewise.
63057         * lib/sha1.c (sha1_read_ctx): Likewise.
63058
63059 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63060
63061         * tests/test-sha1.c: New file, based on test-md5.c.
63062
63063         * modules/crypto/sha1-tests: New file.
63064
63065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63066
63067         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63068
63069 2008-01-31  Jim Meyering  <meyering@redhat.com>
63070
63071         Prefer "sizeof v" over the equivalent "4".
63072         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63073         * lib/md5.c (set_uint32): Likewise.
63074         * lib/sha1.c (set_uint32): Likewise.
63075
63076 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63077
63078         * lib/sha1.c (set_uint32): Mark function as static.
63079
63080 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63081
63082         md2: clarify comments to say that alignment is not required.
63083         * lib/md2.h: Remove warning about alignment in comment.
63084         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63085         never been required.
63086
63087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63088
63089         md4: adapt alignment constraint fix from sha1.
63090         * lib/md4.c (set_uint32): New function, from sha1.c
63091         (md4_read_ctx): Use it.
63092         (md4_finish_ctx): Doc fix.
63093         * lib/md4.h: Doc fix.
63094
63095 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63096
63097         md5: adapt alignment constraint fix from sha1.
63098         * lib/md5.c (set_uint32): New function, from sha1.c
63099         (md5_read_ctx): Use it.
63100         (md5_finish_ctx): Doc fix.
63101         * lib/md5.h: Doc fix.
63102
63103 2008-01-30  Peter Palfrader  <weasel@debian.org>
63104
63105         sha1: remove the result buffer alignment constraint
63106         * lib/sha1.c (set_uint32): New function.
63107         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63108         constraint.
63109         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63110         * lib/sha1.h: Likewise.
63111
63112 2008-01-30  Andreas Schwab  <schwab@suse.de>
63113             Bruno Haible  <bruno@clisp.org>
63114
63115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63116         correct definition of LDBL_MIN_EXP.
63117
63118 2008-01-30  Karl Berry  <karl@gnu.org>
63119
63120         * config/srclist-update: try to preserve x bit on updates.
63121         * config/srclistvars.sh: update for karl.
63122
63123 2008-01-29  Jim Meyering  <meyering@redhat.com>
63124
63125         vasnprintf.c: Avoid warning about unused label
63126         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63127         "overflow" label definition and associated code with the
63128         same cpp condition that guards the sole use of that label.
63129
63130 2008-01-26  Bruno Haible  <bruno@clisp.org>
63131
63132         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63133         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63134         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63135         * lib/isnanl-nolibm.h (isnanl): Likewise.
63136         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63137
63138 2008-01-26  Bruno Haible  <bruno@clisp.org>
63139
63140         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63141         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63142
63143 2008-01-26  Bruno Haible  <bruno@clisp.org>
63144
63145         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63146         GCC >= 4.0 built-in.
63147         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63148
63149 2008-01-26  Bruno Haible  <bruno@clisp.org>
63150
63151         Rename isnan, applicable to 'double' only, to isnand.
63152         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63153         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63154         (configure.ac): Update.
63155         (Include): Replace "isnan.h" with "isnand.h".
63156         * m4/isnand.m4: Renamed from m4/isnan.m4.
63157         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63158         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63159         instead of isnan.c.
63160         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63161         instead of HAVE_ISNAN_IN_LIBC.
63162         (isnand): Renamed from isnan.
63163         * lib/isnand.c: New file.
63164         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63165         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63166         (Makefile.am): Update.
63167         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63168         Include isnand.h instead of isnan.h.
63169         (main): Test isnand instead of isnan.
63170         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63171         isnan-nolibm.
63172         * modules/frexp (Depends-on): Likewise.
63173         * modules/frexp-tests (Depends-on): Likewise.
63174         * modules/frexp-nolibm (Depends-on): Likewise.
63175         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63176         * modules/isfinite (Depends-on): Likewise.
63177         * modules/round-tests (Depends-on): Likewise.
63178         * modules/signbit (Depends-on): Likewise.
63179         * modules/signbit-tests (Depends-on): Likewise.
63180         * modules/snprintf-posix (Depends-on): Likewise.
63181         * modules/sprintf-posix (Depends-on): Likewise.
63182         * modules/trunc-tests (Depends-on): Likewise.
63183         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63184         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63185         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63186         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63187         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63188         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63189         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63190         * modules/vasnprintf-posix (Depends-on): Likewise.
63191         * modules/vasprintf-posix (Depends-on): Likewise.
63192         * modules/vfprintf-posix (Depends-on): Likewise.
63193         * modules/vsnprintf-posix (Depends-on): Likewise.
63194         * modules/vsprintf-posix (Depends-on): Likewise.
63195         * lib/frexp.c: Include isnand.h instead of isnan.h.
63196         (ISNAN): Set to isnand instead of isnan.
63197         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63198         (gl_isfinited): Use isnand instead of isnan.
63199         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63200         (gl_signbitd): Use isnand instead of isnan.
63201         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63202         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63203         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63204         (main): Use isnand instead of isnan.
63205         * tests/test-round1.c: Include isnand.h.
63206         (main): Use isnand instead of isnan.
63207         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63208         (ISNAN): Set to isnand instead of isnan.
63209         * tests/test-trunc1.c: Include isnand.h.
63210         (main): Use isnand instead of isnan.
63211         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63212         (equal): Use isnand instead of isnan.
63213         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63214         isnand-nolibm.
63215         * NEWS: Mention the change.
63216
63217 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63218             Bruno Haible  <bruno@clisp.org>
63219
63220         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63221         the GCC builtins for signbits are present and set
63222         REPLACE_SIGNBIT_USING_GCC if so.
63223         * lib/math.in.h (signbit): Define using GCC builtins if
63224         REPLACE_SIGNBIT_USING_GCC is set.
63225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63226         REPLACE_SIGNBIT_USING_GCC.
63227         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63228
63229 2008-01-25  Jim Meyering  <meyering@redhat.com>
63230
63231         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63232         * lib/poll.c: Include <config.h>, not "config.h".
63233         * tests/test-getaddrinfo.c: Likewise.
63234
63235 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63236
63237         * modules/sockets-tests: New file.
63238
63239 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63240
63241         * modules/sockets: New module, can be used to call WSA_Startup and
63242         WSA_Cleanup when needed.
63243
63244         * lib/sockets.h, lib/sockets.c: New files.
63245
63246         * m4/sockets.m4: New file.
63247
63248         * tests/test-sockets.c: New file.
63249
63250 2008-01-19  Bruno Haible  <bruno@clisp.org>
63251
63252         * doc/posix-headers: Renamed from doc/headers.
63253         * doc/posix-functions: Renamed from doc/functions.
63254         * doc/gnulib.texi: Update.
63255
63256 2008-01-19  Bruno Haible  <bruno@clisp.org>
63257
63258         * doc/glibc-functions/strcasestr.texi: Include contents of
63259         doc/functions/strcasestr.texi, fixing the list of platforms.
63260         * doc/functions/strcasestr.texi: Remove file.
63261
63262 2008-01-19  Bruno Haible  <bruno@clisp.org>
63263
63264         * doc/glibc-functions/memmem.texi: Include contents of
63265         doc/functions/memmem.texi.
63266         * doc/functions/memmem.texi: Remove file.
63267
63268 2008-01-18  Bruno Haible  <bruno@clisp.org>
63269
63270         * doc/glibc-functions/*.texi: New files.
63271         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63272         to use the new files.
63273
63274 2008-01-17  Bruno Haible  <bruno@clisp.org>
63275
63276         * tests/test-gethostname.c (main): Fix printf statement.
63277
63278 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63279
63280         * modules/gethostname-tests: New file.
63281
63282         * tests/test-gethostname.c: New file.
63283
63284 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63285
63286         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63287         used by the UNAME case.  Reported by Bruno Haible
63288         <bruno@clisp.org>.
63289
63290 2008-01-17  Eric Blake  <ebb9@byu.net>
63291
63292         Convert c-strcasestr to be more efficient.
63293         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63294         (Depends-on): Add c-strcase, remove malloca, strnlen.
63295         * tests/test-c-strcasestr.c (main): Enhance test.
63296         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63297
63298 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63299
63300         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63301         Use it in creating po/Makevars.
63302
63303 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63304
63305         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63306         Applications that requires it should initialize libgcrypt
63307         manually.
63308
63309 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63310
63311         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63312
63313 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         Fix problem with getdate on mingw32 reported by Simon Josefsson
63316         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63317         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63318         tzname", when deciding whether to declare tzname.
63319         * lib/strftime.c (tzname): Likewise.
63320
63321 2008-01-15  Bruno Haible  <bruno@clisp.org>
63322
63323         Work around a MacOS X 10.5 bug in frexpl().
63324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63325         * doc/functions/frexpl.texi: Document the bug.
63326         Reported by Elias Pipping <pipping@gentoo.org>.
63327
63328 2008-01-14  Eric Blake  <ebb9@byu.net>
63329
63330         Touch up previous patch.
63331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63332         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63333
63334         Convert strcasestr module to use Two-Way algorithm.
63335         * modules/strcasestr-simple: New module, based on the old
63336         strcasestr, but with Two-Way rather than KMP.
63337         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63338         * lib/string.in.h (rpl_strcasestr): Declare.
63339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63340         performance.
63341         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63342         * modules/string (Makefile.am): Support strcasestr.
63343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63344         * modules/strcasestr-tests (Depends-on): Check for alarm.
63345         * tests/test-strcasestr.c: Augment test.
63346         * lib/str-two-way.h: Clean up stray macro.
63347         * NEWS: Document new module.
63348         * MODULES.html.sh (string handling): Likewise.
63349         * doc/functions/strcasestr.texi: New file.
63350         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63351         here, since it is not a POSIX function.
63352
63353 2008-01-14  Colin Watson  <cjwatson@debian.org>
63354             Bruno Haible  <bruno@clisp.org>
63355
63356         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63357         works fine; if not, set REPLACE_STRSIGNAL.
63358         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63360         REPLACE_STRSIGNAL.
63361         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63362         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63363         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63364
63365 2008-01-14  Bruno Haible  <bruno@clisp.org>
63366
63367         * modules/strsignal (Include): Change to <string.h>.
63368
63369 2008-01-14  Colin Watson  <cjwatson@debian.org>
63370
63371         * modules/argp (Notice): Add a notice recommending to change
63372         XGETTEXT_OPTIONS.
63373         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63374
63375 2008-01-13  Colin Watson  <cjwatson@debian.org>
63376
63377         * modules/strsignal-tests: New file.
63378         * tests/test-strsignal.c: New file.
63379
63380         * lib/strsignal.c: New file, from glibc with modifications.
63381         * lib/siglist.h: New file, from glibc with modifications.
63382         * lib/string.in.h (strsignal): New declaration.
63383         * m4/strsignal.m4: New file.
63384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63385         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63386         * modules/strsignal: New file.
63387         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63388         HAVE_DECL_STRSIGNAL.
63389
63390 2008-01-13  Bruno Haible  <bruno@clisp.org>
63391
63392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63393         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63396
63397 2008-01-13  Bruno Haible  <bruno@clisp.org>
63398
63399         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63400         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63401         * lib/argp.h (__attribute__): Likewise.
63402         * lib/c-stack.c (__attribute__): Likewise.
63403         * lib/error.h (__attribute__): Likewise.
63404         * lib/fts.c (__attribute__): Likewise.
63405         * lib/openat.h (__attribute__): Likewise.
63406         * lib/stdio.in.h (__attribute__): Likewise.
63407         * lib/string.in.h (__attribute__): Likewise.
63408         * lib/utimens.c (__attribute__): Likewise.
63409         * lib/vasnprintf.h (__attribute__): Likewise.
63410         * lib/xalloc.h (__attribute__): Likewise.
63411         * lib/xprintf.h (__attribute__): Likewise.
63412         * lib/xstrtol.h (__attribute__): Likewise.
63413         * lib/xvasprintf.h (__attribute__): Likewise.
63414
63415 2008-01-12  Bruno Haible  <bruno@clisp.org>
63416
63417         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63418         * doc/glibc-headers/a.out.texi: New file.
63419         * doc/glibc-headers/aliases.texi: New file.
63420         * doc/glibc-headers/alloca.texi: New file.
63421         * doc/glibc-headers/ar.texi: New file.
63422         * doc/glibc-headers/argp.texi: New file.
63423         * doc/glibc-headers/argz.texi: New file.
63424         * doc/glibc-headers/byteswap.texi: New file.
63425         * doc/glibc-headers/crypt.texi: New file.
63426         * doc/glibc-headers/endian.texi: New file.
63427         * doc/glibc-headers/envz.texi: New file.
63428         * doc/glibc-headers/err.texi: New file.
63429         * doc/glibc-headers/error.texi: New file.
63430         * doc/glibc-headers/execinfo.texi: New file.
63431         * doc/glibc-headers/fpu_control.texi: New file.
63432         * doc/glibc-headers/fstab.texi: New file.
63433         * doc/glibc-headers/fts.texi: New file.
63434         * doc/glibc-headers/getopt.texi: New file.
63435         * doc/glibc-headers/ieee754.texi: New file.
63436         * doc/glibc-headers/ifaddrs.texi: New file.
63437         * doc/glibc-headers/libintl.texi: New file.
63438         * doc/glibc-headers/mcheck.texi: New file.
63439         * doc/glibc-headers/mntent.texi: New file.
63440         * doc/glibc-headers/obstack.texi: New file.
63441         * doc/glibc-headers/paths.texi: New file.
63442         * doc/glibc-headers/printf.texi: New file.
63443         * doc/glibc-headers/pty.texi: New file.
63444         * doc/glibc-headers/resolv.texi: New file.
63445         * doc/glibc-headers/shadow.texi: New file.
63446         * doc/glibc-headers/sysexits.texi: New file.
63447         * doc/glibc-headers/ttyent.texi: New file.
63448
63449 2008-01-12  Jim Meyering  <meyering@redhat.com>
63450
63451         announce-gen: emit Gnulib's git-based version string.
63452         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63453         New option --gnulib-version=V, where V is expected to be
63454         the output of running git describe in the gnulib directory.
63455         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63456         not useful, and plan to stop publishing an xdelta file with each
63457         coreutils release.
63458
63459         * build-aux/announce-gen: Also check for lzma-compressed files.
63460
63461 2008-01-11  Bruno Haible  <bruno@clisp.org>
63462
63463         * tests/test-memmem.c (main): Increase maximum allowed time.
63464         * tests/test-strstr.c (main): Likewise.
63465
63466 2008-01-11  Bruno Haible  <bruno@clisp.org>
63467
63468         * doc/functions/memmem.texi: Add more precisions about platforms.
63469         * doc/functions/strstr.texi: Likewise.
63470
63471 2008-01-10  Eric Blake  <ebb9@byu.net>
63472
63473         * m4/strstr.m4: Delete cruft from copy-n-paste.
63474         Reported by Bruno Haible.
63475
63476 2008-01-10  Bruno Haible  <bruno@clisp.org>
63477
63478         Make c-strstr rely on strstr.
63479         * lib/c-strstr.c: Don't include str-kmp.h.
63480         (c_strstr): Define in terms of strstr.
63481         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63482         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63483
63484 2008-01-10  Bruno Haible  <bruno@clisp.org>
63485
63486         * doc/gnulib.texi (String Functions in C Locale): New section.
63487         * doc/c-ctype.texi: New file.
63488         * doc/c-strcase.texi: New file.
63489         * doc/c-strcaseeq.texi: New file.
63490         * doc/c-strcasestr.texi: New file.
63491         * doc/c-strstr.texi: New file.
63492         * doc/c-strtod.texi: New file.
63493         * doc/c-strtold.texi: New file.
63494
63495 2008-01-10  Eric Blake  <ebb9@byu.net>
63496
63497         * lib/relocatable.h: Fix a comment.
63498
63499 2008-01-10  Eric Blake  <ebb9@byu.net>
63500
63501         Share two-way algorithm.
63502         * lib/str-two-way.h: New file, merged from...
63503         * lib/memmem.c: ...here...
63504         * lib/strstr.c: ...and here.
63505         * modules/memmem (Files): Use it.
63506         * modules/strstr (Files): Likewise.
63507
63508         Avoid quadratic strstr implementations.
63509         * lib/strstr.c: New file.
63510         * m4/strstr.m4: Likewise.
63511         * modules/strstr: Likewise.
63512         * modules/strstr-tests: Likewise.
63513         * tests/test-strstr.c: Likewise.
63514         * lib/string.in.h (rpl_strstr): Declare.
63515         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63517         * modules/string (Makefile.am): Likewise.
63518         * MODULES.html.sh (string handling): Mention new module.
63519         * doc/functions/strstr.texi (strstr): Document the bug.
63520
63521 2008-01-10  Bruno Haible  <bruno@clisp.org>
63522
63523         * lib/relocatable.h (relocate): State whether result is freshly
63524         allocated or not.
63525         * lib/relocatable.c (relocate): Return a freshly allocated string
63526         instead of a pointer to a privately held string.
63527         Reported by Sylvain Beucler <beuc@gnu.org>.
63528
63529 2008-01-10  Colin Watson  <cjwatson@debian.org>
63530
63531         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63532         s/S_ISNLK/S_ISLNK/.
63533
63534 2008-01-09  Bruno Haible  <bruno@clisp.org>
63535
63536         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63537         and other files.
63538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63539         if it's only a guess.
63540         * modules/memmem: Simplify by depending on memmem-simple.
63541
63542 2008-01-09  Bruno Haible  <bruno@clisp.org>
63543
63544         Work around OpenBSD 4.0 tdelete() bug.
63545         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63546         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63547         macros and don't redefine the enum values.
63548         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63549         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63550         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63551
63552 2008-01-09  Bruno Haible  <bruno@clisp.org>
63553
63554         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63555         (main): Don't perform the tests if setlocale did not install a UTF-8
63556         locale. Needed on OpenBSD 4.0.
63557         * modules/wcwidth-tests (Depends-on): Add localcharset.
63558
63559 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63562         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63563         * NEWS: announce this.
63564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63565
63566 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63567         and Eric Blake  <ebb9@byu.net>
63568
63569         Add memmem-simple module.
63570         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63571         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63572         * modules/memmem-simple: New file.
63573         * modules/memmem (Description): Tweak.
63574         * MODULES.html.sh (string handling): Mention new module.
63575         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63576         addressed by memmem-simple.
63577         * NEWS: Document the difference.
63578
63579 2008-01-09  Eric Blake  <ebb9@byu.net>
63580
63581         Give gcc some memmem optimization hints.
63582         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63583         (strcasestr): Declare as pure.
63584         * modules/memmem (Maintainer): Claim my implementation.
63585
63586 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63587
63588         Support AIX 6.1 and higher.
63589         * build-aux/config.libpath: Likewise.
63590         * build-aux/config.rpath: Likewise.
63591
63592 2008-01-08  Jim Meyering  <meyering@redhat.com>
63593             Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63596         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63597         Reported by Peter Fales in
63598         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63599
63600 2008-01-08  Bruno Haible  <bruno@clisp.org>
63601
63602         * modules/unictype/category-of (Depends-on): Add
63603         unictype/category-none.
63604         * modules/unictype/category-and-tests (Depends-on): Add
63605         unictype/category-{L,N,Lu,Nd}.
63606         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63607         * modules/unictype/category-or-tests (Depends-on): Add
63608         unictype/category-{L,N}.
63609         * modules/unictype/category-name-tests (Depends-on): Add
63610         unictype/category-{Z,Nl}.
63611         Reported by Simon Josefsson.
63612
63613 2008-01-08  Bruno Haible  <bruno@clisp.org>
63614
63615         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63616         convention better.
63617         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63618         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63619         Reported by Peter Miller <millerp@canb.auug.org.au>.
63620
63621 2008-01-08  Eric Blake  <ebb9@byu.net>
63622
63623         Rewrite memmem to guarantee linear complexity without malloc.
63624         * lib/memmem.c (memmem): Use Two-Way rather than
63625         Knuth-Morris-Pratt, to allow O(1) space usage.
63626         (critical_factorization, two_way_short_needle)
63627         (two_way_long_needle): New functions.
63628         (knuth_morris_pratt): Delete.
63629         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63630         Add stdint.
63631         * tests/test-memmem.c (main): Add tests for periodic needle and
63632         sublinear performance.
63633         * doc/functions/memmem.texi (memmem): Document other deficiencies
63634         in cygwin and older glibc.
63635
63636 2008-01-08  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63639         augmentation.
63640
63641 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63642
63643         Add a configure time option: --disable-acl.
63644         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63645         AC_ARG_ENABLE(acl).
63646
63647 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63648
63649         * tests/test-localename.c: Don't include obsolete "setenv.h".
63650
63651         * modules/localename-tests (Depends-on): Need unsetenv.
63652
63653 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63654
63655         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63656
63657 2008-01-06  Colin Watson  <cjwatson@debian.org>
63658
63659         * users.txt: Add man-db.
63660
63661 2008-01-07  Bruno Haible  <bruno@clisp.org>
63662
63663         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63664         previous section name.
63665
63666 2008-01-07  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/progname.c (set_program_name): Don't strip off a leading
63669         "lt-" prefix outside a .libs directory.
63670         Suggested by Paul Eggert.
63671
63672 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63673             Bruno Haible  <bruno@clisp.org>
63674
63675         Improve memory cleanup in 'relocatable' module.
63676         * lib/relocatable.h (compute_curr_prefix): Change return type to
63677         'char *'.
63678         * lib/relocatable.c (compute_curr_prefix): Change return type to
63679         'char *'. Free curr_installdir after use.
63680         (relocate): Free curr_prefix_better after use.
63681         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63682
63683 2008-01-01  Bruno Haible  <bruno@clisp.org>
63684
63685         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63686         failure on older glibc systems.
63687         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63688
63689 2008-01-05  Eric Blake  <ebb9@byu.net>
63690
63691         Avoid quadratic system memmem.
63692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63693         Reported by Ralf Wildenhues.
63694
63695         Fix memmem test for mingw.
63696         * modules/memmem-tests (configure.ac): Check for alarm.
63697         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63698         it.
63699         * doc/functions/memmem.texi: New file.
63700         * doc/gnulib.texi (Function Substitutes): Add memmem.
63701         Reported by Bruno Haible.
63702
63703 2008-01-04  Bruno Haible  <bruno@clisp.org>
63704
63705         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63706         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63707         gl_HEADER_STRING_H_DEFAULTS.
63708
63709 2008-01-04  Eric Blake  <ebb9@byu.net>
63710
63711         Shorten duration of memmem test.
63712         * tests/test-memmem.c (main): Use alarm to declare failure if test
63713         is taking too long.
63714         Reported by Ralf Wildenhues.
63715
63716 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63717
63718         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63719         string, needed by strerror.
63720
63721 2008-01-03  Colin Watson  <cjwatson@debian.org>
63722             Bruno Haible  <bruno@clisp.org>
63723
63724         * doc/gnulib-tool.texi (Localization): New section.
63725
63726 2008-01-02  Bruno Haible  <bruno@clisp.org>
63727
63728         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63729         variables to 'unsigned char *' type.
63730         Reported by Paul Eggert.
63731
63732 2008-01-02  Jim Meyering  <jim@meyering.net>
63733
63734         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63735
63736 2007-12-31  Jim Meyering  <jim@meyering.net>
63737
63738         Avoid use of private FTS type name.
63739         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63740
63741 2007-12-30  Karl Berry  <karl@gnu.org>
63742
63743         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63744         work around defect in Texinfo and/or the standalone Info browser.
63745
63746 2007-12-30  Bruno Haible  <bruno@clisp.org>
63747
63748         Unify 5 copies of the KMP code.
63749         * lib/str-kmp.h: New file.
63750         * lib/c-strcasestr.c: Include str-kmp.h.
63751         (knuth_morris_pratt): Remove function.
63752         (c_strcasestr): Update.
63753         * lib/c-strstr.c: Include str-kmp.h.
63754         (knuth_morris_pratt): Remove function.
63755         (c_strcasestr): Update.
63756         * lib/mbscasestr.c: Include str-kmp.h.
63757         (knuth_morris_pratt_unibyte): Remove function.
63758         * lib/mbsstr.c: Include str-kmp.h.
63759         (knuth_morris_pratt_unibyte): Remove function.
63760         * lib/strcasestr.c: Include str-kmp.h.
63761         (knuth_morris_pratt): Remove function.
63762         (strcasestr): Update.
63763         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63764         * modules/c-strstr (Files): Likewise.
63765         * modules/mbscasestr (Files): Likewise.
63766         * modules/mbsstr (Files): Likewise.
63767         * modules/strcasestr (Files): Likewise.
63768         Suggested by Paul Eggert.
63769
63770 2007-12-30  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63773         defined.
63774
63775 2007-12-30  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/xmalloca.h: Include xalloc.h.
63778         (xnmalloca): New macro.
63779
63780 2007-12-30  Bruno Haible  <bruno@clisp.org>
63781
63782         * lib/malloca.h (nmalloca): New macro.
63783         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63784         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63785         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63786         knuth_morris_pratt_multibyte): Likewise.
63787         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63788         knuth_morris_pratt_multibyte): Likewise.
63789         * lib/memmem.c (knuth_morris_pratt): Likewise.
63790         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63791
63792 2007-12-25  Bruno Haible  <bruno@clisp.org>
63793
63794         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63795         * lib/glob.c: Don't include openat.h.
63796         (link_exists2_p): Add back the code that deals with the
63797         !GLOB_ALTDIRFUNC case.
63798         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63799         let it do the filename concatenation.
63800         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63801         * modules/glob (Depends-on): Remove openat.
63802
63803 2007-12-31  Bruno Haible  <bruno@clisp.org>
63804
63805         * modules/dirfd (License): Change to LGPLv2+.
63806         Approved by Jim Meyering.
63807
63808 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63811         when multiplying M by sizeof (size_t).
63812
63813 2007-12-10  Martin Lambers  <marlam@marlam.de>
63814
63815         Override getpagesize on mingw.
63816         * lib/getpagesize.c: New file.
63817         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63818         * modules/getpagesize (Files): Add lib/getpagesize.c.
63819         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63821         REPLACE_GETPAGESIZE.
63822         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63823
63824 2007-12-25  Bruno Haible  <bruno@clisp.org>
63825
63826         * modules/localcharset (Notice): New field.
63827         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63828         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63829
63830 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63831             Bruno Haible  <bruno@clisp.org>
63832
63833         Avoid using the syntax symbol() in formatted documentation.
63834         * MODULES.html.sh (func_module): When replacing symbol() with a
63835         hyperlink, remove the parentheses. Show an error if some remain.
63836         Recognize and render the '...' syntax.
63837         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63838         Rework. Add paragraph about GCC's inlining.
63839         * doc/alloca.texi: Likewise.
63840         * doc/error.texi: Remove parentheses from symbol reference.
63841         * doc/gnulib-intro.texi: Likewise.
63842         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63843         * modules/fnmatch (Description): Reword to say "the ... function".
63844         * modules/full-read (Description): Likewise.
63845         * modules/full-write (Description): Likewise.
63846         * modules/safe-read (Description): Likewise.
63847         * modules/safe-write (Description): Likewise.
63848         * modules/strchrnul (Description): Likewise.
63849         * modules/trim (Description): Likewise.
63850         * modules/error (Description): Remove parentheses from symbol
63851         references.
63852         * modules/verror (Description): Likewise.
63853         Reported by Karl Berry.
63854
63855 2007-12-25  Bruno Haible  <bruno@clisp.org>
63856
63857         Fixup after 2007-10-16 commit.
63858         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63859
63860 2007-12-24  Bruno Haible  <bruno@clisp.org>
63861
63862         Make --enable-relocatable work with DESTDIR.
63863         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63864         to compute installdir from destprog.
63865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63866         also set the RELOC_DESTDIR variable.
63867         Reported by Левашев Иван <octagram@bluebottle.com>.
63868
63869 2007-12-24  Bruno Haible  <bruno@clisp.org>
63870
63871         Fix link error due to xalloc_die().
63872         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63873         of xreadlink.
63874         * lib/relocwrapper.c: Update comments.
63875         * build-aux/install-reloc: Remove xreadlink.c from file list.
63876         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63877         xreadlink.c.
63878         Reported by Левашев Иван <octagram@bluebottle.com>.
63879
63880 2007-12-24  Bruno Haible  <bruno@clisp.org>
63881
63882         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63883         * lib/setenv.h: Remove file.
63884         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63885         lib/setenv.h.
63886         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63887         (Depends-on): Add stdlib.
63888         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63889         gl_FUNC_UNSETENV.
63890         (Include): Replace setenv.h with <stdlib.h>.
63891         * modules/unsetenv: New file.
63892         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63893         * lib/unsetenv.c: Include <stdlib.h> first.
63894         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63895         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63896         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63897         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63898         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63899         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63901         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63902         * doc/functions/unsetenv.texi: Update.
63903         * modules/xsetenv (Depends-on): Add unsetenv.
63904         * modules/getdate (Depends-on): Likewise.
63905         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63906         * lib/xsetenv.c: Don't include setenv.h.
63907         * lib/getdate.y: Likewise.
63908         * lib/relocwrapper.c: Likewise.
63909         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63910         (Depends-on): Add stdlib.
63911         * NEWS: Mention the changes.
63912         Reported by Левашев Иван <octagram@bluebottle.com>.
63913
63914 2007-12-23  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63917         indentation.
63918
63919 2007-12-23  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/c-strcasestr.c: Add more comments.
63922         * lib/c-strstr.c: Likewise.
63923         * lib/mbscasestr.c: Likewise.
63924         * lib/mbsstr.c: Likewise.
63925         * lib/strcasestr.c: Likewise.
63926         * lib/memmem.c: Likewise.
63927
63928 2007-12-23  Bruno Haible  <bruno@clisp.org>
63929
63930         * tests/test-memmem.c: Include <string.h> first.
63931
63932 2007-12-22  Bruno Haible  <bruno@clisp.org>
63933
63934         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63935         the contents of $testsbase.
63936         Reported by Ralf Wildenhues.
63937
63938 2007-12-22  Bruno Haible  <bruno@clisp.org>
63939
63940         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63941         two variables local_ldadd_before, local_ldadd_last.
63942
63943 2007-12-20  Eric Blake  <ebb9@byu.net>
63944
63945         Work around circular library issue when cross-compiling.
63946         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63947         that progname.o does not need to pull in rpl_memcmp.
63948
63949 2007-12-19  Eric Blake  <ebb9@byu.net>
63950
63951         Fix memmem to avoid O(n^2) worst-case complexity.
63952         * lib/memmem.c (knuth_morris_pratt): New function.
63953         (memmem): Use it if first few naive iterations fail.
63954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63955         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63956         * modules/memchr (License): Likewise.
63957         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63958         malloca.
63959         * tests/test-memmem.c: Rewrite, borrowing ideas from
63960         test-mbsstr1.c; the old version wouldn't even compile!
63961         * modules/memmem-tests: New file.
63962         * lib/string.in.h (rpl_memmem): Add declaration.
63963         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63965         REPLACE_MEMMEM.
63966
63967 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63968
63969         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63970         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63971         before any system include files, and undef after them all.  This
63972         should fix a problem on VMS reported by John E. Malmberg in
63973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63974
63975 2007-12-17  Eric Blake  <ebb9@byu.net>
63976
63977         Revert addition of verify, for BSD/OS.
63978         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63979         can't handle large files, for the sake of obsolete platforms.
63980         * modules/fseeko (Depends-on): Remove verify.
63981         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63982         * doc/functions/ftello.texi (ftello): Likewise.
63983         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63984         Reported by Larry Jones.
63985
63986 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63987
63988         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63989         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63990
63991 2007-12-17  Jim Meyering  <meyering@redhat.com>
63992
63993         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63994         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63995         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63996         * modules/getcwd (Depends-on): Add openat.
63997         Reported by Petr Salinger.
63998
63999 2007-12-17  Bruno Haible  <bruno@clisp.org>
64000
64001         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64002         avoid a segmentation fault of the configure test on x86_64 systems.
64003
64004 2007-12-15  Jim Meyering  <meyering@redhat.com>
64005
64006         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64007
64008 2007-12-13  Eric Blake  <ebb9@byu.net>
64009
64010         Another fseek test.
64011         * tests/test-fseek.c (main): Also test ungetc handling.
64012         * tests/test-fseeko.c (main): Likewise.
64013         * modules/fseeko (Depends-on): Add verify.
64014         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64015         large.
64016         Reported by Larry Jones.
64017
64018         Fix fseeko on mingw.
64019         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64020         seek.
64021
64022         Beef up fseek tests.
64023         * tests/test-fseek.c (main): Also test eof handling.
64024         * tests/test-fseeko.c (main): Likewise.
64025         Reported by Larry Jones.
64026
64027 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64028
64029         Fix fseeko on BSD-based platforms.
64030         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64031         successful seek.
64032
64033 2007-12-12  Eric Blake  <ebb9@byu.net>
64034
64035         Allow circular dependency of separate libtests.a
64036         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64037         when use_libtests.
64038
64039 2007-12-11  Eric Blake  <ebb9@byu.net>
64040
64041         Fix bug with -0.0L in previous patch.
64042         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64043         * tests/test-isnan.c (main): Also test on zeroes.
64044         * tests/test-isnanf.c (main): Likewise.
64045         * tests/test-isnanl.h (main): Likewise.
64046
64047         Detect pseudo-denormals on x86 even when cross-compiling.
64048         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64049         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64050         invalid bit patterns that happen to satisfy ==.
64051
64052         Avoid link failures with separate libtests.a.
64053         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64054         last, to satisfy circular dependencies.
64055
64056 2007-12-11  Eric Blake  <ebb9@byu.net>
64057         and Bruno Haible  <bruno@clisp.org>
64058
64059         Fix OpenBSD 4.0 <float.h> handling of long double.
64060         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64061         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64062         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64063
64064 2007-12-11  Jim Meyering  <meyering@redhat.com>
64065
64066         * users.txt: Add libvirt.
64067
64068         Support versions of autoconf prior to 2.59c.
64069         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64070         if it is not already defined.
64071
64072 2007-12-09  Bruno Haible  <bruno@clisp.org>
64073
64074         Let 'gnulib-tool --import' collect sources needed for the tests in
64075         tests/ rather than in lib/.
64076         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64077         argument. If true, add rules to generate libtests.a, and put libtests.a
64078         into $(LDADD). Consider source files in subdirectories and set
64079         uses_subdirs.
64080         (func_emit_initmacro_start, func_emit_initmacro_end,
64081         func_emit_initmacro_done): Pass all arguments explicitly.
64082         (func_import): Determine two module lists main_modules,
64083         testsrelated_modules. Determine use_libtests. Determine two variables
64084         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64085         instead of just sed_transform_lib_file. Determine two variables
64086         main_files and testsrelated_files. Compute 'files' as the union of
64087         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64088         func_add_or_update. In the generated gnulib-comp.m4, collect the
64089         object files for tests/ in different variables than those for lib/.
64090         Substitute LIBTESTS_LIBDEPS.
64091         (func_create_testdir): Combine the uses_subdirs results from
64092         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64093
64094 2007-12-09  Bruno Haible  <bruno@clisp.org>
64095
64096         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64097         the build-aux directory.
64098
64099 2007-12-09  Bruno Haible  <bruno@clisp.org>
64100
64101         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64102         introduced on 2006-09-09.
64103
64104 2007-12-07  Jim Meyering  <meyering@redhat.com>
64105
64106         Let these macros work also with autoconf-2.59.
64107         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64108         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64109         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64110
64111 2007-12-06  Jim Meyering  <meyering@redhat.com>
64112
64113         Avoid a configure-time syntax error in gl_FUNC_ACL.
64114         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64115         function in each branch, before testing the cache variable.
64116
64117 2007-12-04  Eric Blake  <ebb9@byu.net>
64118
64119         Make scripts executable.
64120         * build-aux/config.guess: Add execute permissions.
64121         * build-aux/config.sub: Likewise.
64122         * build-aux/gendocs.sh: Likewise.
64123
64124         Fix frexp on mingw.
64125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64126         cross-compiling.
64127         * doc/functions/frexp.texi (frexp): Document the bug.
64128
64129         Make cygwin fseeko check more reliable.
64130         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64131         version numbers, rather than unrelated feature check.
64132         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64133         * doc/functions/ftello.texi (ftello): Likewise.
64134         Reported by Bruno Haible.
64135
64136         * m4/strerror.m4: Bump version number.
64137
64138 2007-12-03  Bruno Haible  <bruno@clisp.org>
64139
64140         * doc/functions/mprotect.texi: Mention the mingw problem.
64141
64142 2007-12-03  Eric Blake  <ebb9@byu.net>
64143
64144         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64145         REPLACE_STRERROR is initialized before this macro.
64146
64147 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64150         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64151         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64152         put -lsec in even for programs other than 'ls'.  This fixes a problem
64153         for gettext reported by Bruno Haible in
64154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64155         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64156         Add support for Solaris 10.  This isn't efficient, but should get the
64157         job done for now.
64158
64159 2007-12-03  James Youngman  <jay@gnu.org>
64160
64161         * doc/regexprops-generic.texi: change "an close-group" to "a
64162         close-group" and "illegal" to "not allowed".
64163
64164 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64165
64166         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64167         pr_byname.h. Needed for the rare case when the maintainer has done
64168         "make maintainer-clean" in the source directory and then attempts a
64169         build outside the source directory.
64170         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64171         scripts_byname.h.
64172
64173 2007-12-02  Martin Lambers <marlam@marlam.de>
64174             Bruno Haible  <bruno@clisp.org>
64175
64176         * lib/getpagesize.h: Remove file.
64177         * lib/unistd.in.h: Include declaration of getpagesize here.
64178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64179         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64180         HAVE_SYS_PARAM_H.
64181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64182         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64183         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64184         (Depends-on): Add unistd.
64185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64186         (Include): Use <unistd.h> instead of getpagesize.h.
64187         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64188         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64189         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64190         gl_GETPAGESIZE invocation, already handled by module dependency.
64191         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64192
64193 2007-12-02  Bruno Haible  <bruno@clisp.org>
64194
64195         * modules/strings-tests: New file.
64196         * tests/test-strings.c: New file.
64197
64198         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64199         * lib/strings.in.h: New file.
64200         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64201         * m4/strings_h.m4: New file.
64202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64203         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64204         * modules/strings: New file.
64205         * modules/string (Makefile.am): Update.
64206         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64207         Reported by Karl Berry.
64208
64209 2007-12-01  Eric Blake  <ebb9@byu.net>
64210
64211         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64212         accommodate fix in cygwin 1.5.25.
64213
64214 2007-12-01  Jim Meyering  <meyering@redhat.com>
64215
64216         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64217         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64218         that would inhibit utf8-optimization of a regexp containing line-
64219         or buffer-anchors, e.g., `^', `$'.
64220
64221 2007-11-30  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64224         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64225         glthread_recursive_lock_init.
64226         * lib/lock.c (glthread_recursive_lock_init)
64227         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64228         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64229
64230 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64231
64232         New function qset_acl, like set_acl but with syscall semantics.
64233         * lib/acl.h (qset_acl): New decl.
64234         * lib/acl.c (qset_acl): New function.
64235         (set_acl): Use new function.  Use more-consistent diagnostics.
64236
64237 2007-11-28  Jim Meyering  <meyering@redhat.com>
64238
64239         * modules/physmem (License): Change from GPL to LGPLv2+.
64240
64241 2007-11-26  Bruno Haible  <bruno@clisp.org>
64242
64243         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64244         'long double' type has excess precision.
64245         Reported by Jim Meyering in
64246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64247
64248 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64249
64250         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64251         Sync from <http://gnu.org/licenses>.
64252         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64253         with license text from same location.
64254         * doc/maintain.texi, doc/standards.texi:  Sync from
64255         <http://savannah.gnu.org/projects/gnustandards>.
64256
64257 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64258         and Jim Meyering  <meyering@redhat.com>
64259
64260         Adjust getdate' grammar to accept a slightly more regular language.
64261         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64262         Before, the former was rejected.
64263         * lib/getdate.y (digits_to_date_time): New function, factored
64264         out of ...
64265         (number): ...here.  Just call digits_to_date_time.
64266         (hybrid): New non-terminal to handle an <unsigned number,
64267         signed relative offset> sequence consistently.
64268
64269 2007-11-18  Jim Meyering  <meyering@redhat.com>
64270
64271         Pull my changes from coreutils:
64272         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64273         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64274         use of $gnulib_tool_option_extras, so that it's separated from the
64275         preceding argument.
64276
64277         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64278         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64279         parent destination directories before copying a file into place.
64280
64281 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64282
64283         bootstrap: work also with 4-argument variant of AC_INIT
64284         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64285
64286 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64287
64288         Port test-getaddrinfo to Solaris.
64289         Problem reported by Bruno Haible in
64290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64291         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64292         explanation of setting 'hints'.
64293         Don't reject an implementation merely because it returns EAI_SERVICE.
64294         (EAI_SERVICE): Define to 0 if not defined.
64295
64296 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         The license of gnu-make and posix-shell is now "GPLed build tool".
64299         * modules/gnu-make (License): Likewise.
64300         * modules/posix-shell (License): Likewise.
64301
64302         New module posix-shell, for determining a POSIX shell
64303         or perhaps something that is close enough to a POSIX shell.
64304         * m4/posix-shell.m4: New file.
64305         * modules/posix-shell: New file.
64306
64307         * MODULES.html.sh: Mention new module.
64308
64309         New module gnu-make, for determining whether we're using GNU Make.
64310         * m4/gnu-make.m4: New file.
64311         * modules/gnu-make: New file.
64312         * MODULES.html.sh: Mention new module.
64313
64314 2007-11-14  Jim Meyering  <meyering@redhat.com>
64315
64316         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64317         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64318         use this macro to create a function _definition_.
64319         Remove useless "#undef ARGMATCH_DIE".
64320
64321 2007-11-14  Bruno Haible  <bruno@clisp.org>
64322
64323         * lib/config.charset: Update for OpenBSD 4.1.
64324         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64325
64326 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         Document 64-bit #if problems in stdint.texi.
64329         * doc/headers/stdint.texi (stdint.h): Mention problems with
64330         64-bit-#if, and how to work around them.
64331
64332         Don't insist on 'long long int' support in the preprocessor.  It
64333         breaks too many things.  For example, PRIdMAX still uses a 'long
64334         long int' format with the latest Sun compiler, even though
64335         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64336         preprocessor problem.  This causes the latest coreutils to dump
64337         core on Solaris 10 sparc with the Sun C compiler.
64338         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64339         the troublesome expressions at configure-time, not at #if-time.
64340         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64341         preprocessor.
64342         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64343         compile-time C checks, done at 'configure'-time.
64344         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64345         * modules/inttypes (Makefile): Substitute the new symbols that
64346         gl_INTTYPES_H now generates.
64347         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64348
64349 2007-11-12  Bruno Haible  <bruno@clisp.org>
64350
64351         Tests for Unicode character classification functions.
64352
64353         * modules/unictype/bidicategory-byname-tests: New file.
64354         * modules/unictype/bidicategory-name-tests: New file.
64355         * modules/unictype/bidicategory-of-tests: New file.
64356         * modules/unictype/bidicategory-test-tests: New file.
64357         * modules/unictype/block-list-tests: New file.
64358         * modules/unictype/block-of-tests: New file.
64359         * modules/unictype/block-test-tests: New file.
64360         * modules/unictype/category-C-tests: New file.
64361         * modules/unictype/category-Cc-tests: New file.
64362         * modules/unictype/category-Cf-tests: New file.
64363         * modules/unictype/category-Cn-tests: New file.
64364         * modules/unictype/category-Co-tests: New file.
64365         * modules/unictype/category-Cs-tests: New file.
64366         * modules/unictype/category-L-tests: New file.
64367         * modules/unictype/category-Ll-tests: New file.
64368         * modules/unictype/category-Lm-tests: New file.
64369         * modules/unictype/category-Lo-tests: New file.
64370         * modules/unictype/category-Lt-tests: New file.
64371         * modules/unictype/category-Lu-tests: New file.
64372         * modules/unictype/category-M-tests: New file.
64373         * modules/unictype/category-Mc-tests: New file.
64374         * modules/unictype/category-Me-tests: New file.
64375         * modules/unictype/category-Mn-tests: New file.
64376         * modules/unictype/category-N-tests: New file.
64377         * modules/unictype/category-Nd-tests: New file.
64378         * modules/unictype/category-Nl-tests: New file.
64379         * modules/unictype/category-No-tests: New file.
64380         * modules/unictype/category-P-tests: New file.
64381         * modules/unictype/category-Pc-tests: New file.
64382         * modules/unictype/category-Pd-tests: New file.
64383         * modules/unictype/category-Pe-tests: New file.
64384         * modules/unictype/category-Pf-tests: New file.
64385         * modules/unictype/category-Pi-tests: New file.
64386         * modules/unictype/category-Po-tests: New file.
64387         * modules/unictype/category-Ps-tests: New file.
64388         * modules/unictype/category-S-tests: New file.
64389         * modules/unictype/category-Sc-tests: New file.
64390         * modules/unictype/category-Sk-tests: New file.
64391         * modules/unictype/category-Sm-tests: New file.
64392         * modules/unictype/category-So-tests: New file.
64393         * modules/unictype/category-Z-tests: New file.
64394         * modules/unictype/category-Zl-tests: New file.
64395         * modules/unictype/category-Zp-tests: New file.
64396         * modules/unictype/category-Zs-tests: New file.
64397         * modules/unictype/category-and-not-tests: New file.
64398         * modules/unictype/category-and-tests: New file.
64399         * modules/unictype/category-byname-tests: New file.
64400         * modules/unictype/category-name-tests: New file.
64401         * modules/unictype/category-none-tests: New file.
64402         * modules/unictype/category-of-tests: New file.
64403         * modules/unictype/category-or-tests: New file.
64404         * modules/unictype/category-test-withtable-tests: New file.
64405         * modules/unictype/combining-class-tests: New file.
64406         * modules/unictype/ctype-alnum-tests: New file.
64407         * modules/unictype/ctype-alpha-tests: New file.
64408         * modules/unictype/ctype-blank-tests: New file.
64409         * modules/unictype/ctype-cntrl-tests: New file.
64410         * modules/unictype/ctype-digit-tests: New file.
64411         * modules/unictype/ctype-graph-tests: New file.
64412         * modules/unictype/ctype-lower-tests: New file.
64413         * modules/unictype/ctype-print-tests: New file.
64414         * modules/unictype/ctype-punct-tests: New file.
64415         * modules/unictype/ctype-space-tests: New file.
64416         * modules/unictype/ctype-upper-tests: New file.
64417         * modules/unictype/ctype-xdigit-tests: New file.
64418         * modules/unictype/decimal-digit-tests: New file.
64419         * modules/unictype/digit-tests: New file.
64420         * modules/unictype/mirror-tests: New file.
64421         * modules/unictype/numeric-tests: New file.
64422         * modules/unictype/property-alphabetic-tests: New file.
64423         * modules/unictype/property-ascii-hex-digit-tests: New file.
64424         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64425         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64426         * modules/unictype/property-bidi-block-separator-tests: New file.
64427         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64428         * modules/unictype/property-bidi-common-separator-tests: New file.
64429         * modules/unictype/property-bidi-control-tests: New file.
64430         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64431         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64432         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64433         * modules/unictype/property-bidi-european-digit-tests: New file.
64434         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64435         * modules/unictype/property-bidi-left-to-right-tests: New file.
64436         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64437         * modules/unictype/property-bidi-other-neutral-tests: New file.
64438         * modules/unictype/property-bidi-pdf-tests: New file.
64439         * modules/unictype/property-bidi-segment-separator-tests: New file.
64440         * modules/unictype/property-bidi-whitespace-tests: New file.
64441         * modules/unictype/property-byname-tests: New file.
64442         * modules/unictype/property-combining-tests: New file.
64443         * modules/unictype/property-composite-tests: New file.
64444         * modules/unictype/property-currency-symbol-tests: New file.
64445         * modules/unictype/property-dash-tests: New file.
64446         * modules/unictype/property-decimal-digit-tests: New file.
64447         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64448         * modules/unictype/property-deprecated-tests: New file.
64449         * modules/unictype/property-diacritic-tests: New file.
64450         * modules/unictype/property-extender-tests: New file.
64451         * modules/unictype/property-format-control-tests: New file.
64452         * modules/unictype/property-grapheme-base-tests: New file.
64453         * modules/unictype/property-grapheme-extend-tests: New file.
64454         * modules/unictype/property-grapheme-link-tests: New file.
64455         * modules/unictype/property-hex-digit-tests: New file.
64456         * modules/unictype/property-hyphen-tests: New file.
64457         * modules/unictype/property-id-continue-tests: New file.
64458         * modules/unictype/property-id-start-tests: New file.
64459         * modules/unictype/property-ideographic-tests: New file.
64460         * modules/unictype/property-ids-binary-operator-tests: New file.
64461         * modules/unictype/property-ids-trinary-operator-tests: New file.
64462         * modules/unictype/property-ignorable-control-tests: New file.
64463         * modules/unictype/property-iso-control-tests: New file.
64464         * modules/unictype/property-join-control-tests: New file.
64465         * modules/unictype/property-left-of-pair-tests: New file.
64466         * modules/unictype/property-line-separator-tests: New file.
64467         * modules/unictype/property-logical-order-exception-tests: New file.
64468         * modules/unictype/property-lowercase-tests: New file.
64469         * modules/unictype/property-math-tests: New file.
64470         * modules/unictype/property-non-break-tests: New file.
64471         * modules/unictype/property-not-a-character-tests: New file.
64472         * modules/unictype/property-numeric-tests: New file.
64473         * modules/unictype/property-other-alphabetic-tests: New file.
64474         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64475         * modules/unictype/property-other-grapheme-extend-tests: New file.
64476         * modules/unictype/property-other-id-continue-tests: New file.
64477         * modules/unictype/property-other-id-start-tests: New file.
64478         * modules/unictype/property-other-lowercase-tests: New file.
64479         * modules/unictype/property-other-math-tests: New file.
64480         * modules/unictype/property-other-uppercase-tests: New file.
64481         * modules/unictype/property-paired-punctuation-tests: New file.
64482         * modules/unictype/property-paragraph-separator-tests: New file.
64483         * modules/unictype/property-pattern-syntax-tests: New file.
64484         * modules/unictype/property-pattern-white-space-tests: New file.
64485         * modules/unictype/property-private-use-tests: New file.
64486         * modules/unictype/property-punctuation-tests: New file.
64487         * modules/unictype/property-quotation-mark-tests: New file.
64488         * modules/unictype/property-radical-tests: New file.
64489         * modules/unictype/property-sentence-terminal-tests: New file.
64490         * modules/unictype/property-soft-dotted-tests: New file.
64491         * modules/unictype/property-space-tests: New file.
64492         * modules/unictype/property-terminal-punctuation-tests: New file.
64493         * modules/unictype/property-test-tests: New file.
64494         * modules/unictype/property-titlecase-tests: New file.
64495         * modules/unictype/property-unassigned-code-value-tests: New file.
64496         * modules/unictype/property-unified-ideograph-tests: New file.
64497         * modules/unictype/property-uppercase-tests: New file.
64498         * modules/unictype/property-variation-selector-tests: New file.
64499         * modules/unictype/property-white-space-tests: New file.
64500         * modules/unictype/property-xid-continue-tests: New file.
64501         * modules/unictype/property-xid-start-tests: New file.
64502         * modules/unictype/property-zero-width-tests: New file.
64503         * modules/unictype/scripts-tests: New file.
64504         * modules/unictype/syntax-c-ident-tests: New file.
64505         * modules/unictype/syntax-c-whitespace-tests: New file.
64506         * modules/unictype/syntax-java-ident-tests: New file.
64507         * modules/unictype/syntax-java-whitespace-tests: New file.
64508         * tests/unictype/test-bidi_byname.c: New file.
64509         * tests/unictype/test-bidi_name.c: New file.
64510         * tests/unictype/test-bidi_of.c: New file.
64511         * tests/unictype/test-bidi_test.c: New file.
64512         * tests/unictype/test-block_list.c: New file.
64513         * tests/unictype/test-block_of.c: New file.
64514         * tests/unictype/test-block_test.c: New file.
64515         * tests/unictype/test-categ_and.c: New file.
64516         * tests/unictype/test-categ_and_not.c: New file.
64517         * tests/unictype/test-categ_byname.c: New file.
64518         * tests/unictype/test-categ_name.c: New file.
64519         * tests/unictype/test-categ_none.c: New file.
64520         * tests/unictype/test-categ_of.c: New file.
64521         * tests/unictype/test-categ_or.c: New file.
64522         * tests/unictype/test-categ_test_withtable.c: New file.
64523         * tests/unictype/test-combining.c: New file.
64524         * tests/unictype/test-decdigit.c: New file.
64525         * tests/unictype/test-digit.c: New file.
64526         * tests/unictype/test-mirror.c: New file.
64527         * tests/unictype/test-numeric.c: New file.
64528         * tests/unictype/test-pr_byname.c: New file.
64529         * tests/unictype/test-pr_test.c: New file.
64530         * tests/unictype/test-predicate-part1.h: New file.
64531         * tests/unictype/test-predicate-part2.h: New file.
64532         * tests/unictype/test-scripts.c: New file.
64533         * tests/unictype/test-sy_c_ident.c: New file.
64534         * tests/unictype/test-sy_java_ident.c: New file.
64535
64536         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64537         for Unicode 5.0.0.
64538         * tests/unictype/test-categ_Cc.c: Likewise.
64539         * tests/unictype/test-categ_Cf.c: Likewise.
64540         * tests/unictype/test-categ_Cn.c: Likewise.
64541         * tests/unictype/test-categ_Co.c: Likewise.
64542         * tests/unictype/test-categ_Cs.c: Likewise.
64543         * tests/unictype/test-categ_L.c: Likewise.
64544         * tests/unictype/test-categ_Ll.c: Likewise.
64545         * tests/unictype/test-categ_Lm.c: Likewise.
64546         * tests/unictype/test-categ_Lo.c: Likewise.
64547         * tests/unictype/test-categ_Lt.c: Likewise.
64548         * tests/unictype/test-categ_Lu.c: Likewise.
64549         * tests/unictype/test-categ_M.c: Likewise.
64550         * tests/unictype/test-categ_Mc.c: Likewise.
64551         * tests/unictype/test-categ_Me.c: Likewise.
64552         * tests/unictype/test-categ_Mn.c: Likewise.
64553         * tests/unictype/test-categ_N.c: Likewise.
64554         * tests/unictype/test-categ_Nd.c: Likewise.
64555         * tests/unictype/test-categ_Nl.c: Likewise.
64556         * tests/unictype/test-categ_No.c: Likewise.
64557         * tests/unictype/test-categ_P.c: Likewise.
64558         * tests/unictype/test-categ_Pc.c: Likewise.
64559         * tests/unictype/test-categ_Pd.c: Likewise.
64560         * tests/unictype/test-categ_Pe.c: Likewise.
64561         * tests/unictype/test-categ_Pf.c: Likewise.
64562         * tests/unictype/test-categ_Pi.c: Likewise.
64563         * tests/unictype/test-categ_Po.c: Likewise.
64564         * tests/unictype/test-categ_Ps.c: Likewise.
64565         * tests/unictype/test-categ_S.c: Likewise.
64566         * tests/unictype/test-categ_Sc.c: Likewise.
64567         * tests/unictype/test-categ_Sk.c: Likewise.
64568         * tests/unictype/test-categ_Sm.c: Likewise.
64569         * tests/unictype/test-categ_So.c: Likewise.
64570         * tests/unictype/test-categ_Z.c: Likewise.
64571         * tests/unictype/test-categ_Zl.c: Likewise.
64572         * tests/unictype/test-categ_Zp.c: Likewise.
64573         * tests/unictype/test-categ_Zs.c: Likewise.
64574         * tests/unictype/test-ctype_alnum.c: Likewise.
64575         * tests/unictype/test-ctype_alpha.c: Likewise.
64576         * tests/unictype/test-ctype_blank.c: Likewise.
64577         * tests/unictype/test-ctype_cntrl.c: Likewise.
64578         * tests/unictype/test-ctype_digit.c: Likewise.
64579         * tests/unictype/test-ctype_graph.c: Likewise.
64580         * tests/unictype/test-ctype_lower.c: Likewise.
64581         * tests/unictype/test-ctype_print.c: Likewise.
64582         * tests/unictype/test-ctype_punct.c: Likewise.
64583         * tests/unictype/test-ctype_space.c: Likewise.
64584         * tests/unictype/test-ctype_upper.c: Likewise.
64585         * tests/unictype/test-ctype_xdigit.c: Likewise.
64586         * tests/unictype/test-decdigit.h: Likewise.
64587         * tests/unictype/test-digit.h: Likewise.
64588         * tests/unictype/test-numeric.h: Likewise.
64589         * tests/unictype/test-pr_alphabetic.c: Likewise.
64590         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64591         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64592         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64593         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64594         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64595         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64596         * tests/unictype/test-pr_bidi_control.c: Likewise.
64597         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64598         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64599         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64600         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64601         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64602         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64603         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64604         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64605         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64606         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64607         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64608         * tests/unictype/test-pr_combining.c: Likewise.
64609         * tests/unictype/test-pr_composite.c: Likewise.
64610         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64611         * tests/unictype/test-pr_dash.c: Likewise.
64612         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64613         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64614         * tests/unictype/test-pr_deprecated.c: Likewise.
64615         * tests/unictype/test-pr_diacritic.c: Likewise.
64616         * tests/unictype/test-pr_extender.c: Likewise.
64617         * tests/unictype/test-pr_format_control.c: Likewise.
64618         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64619         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64620         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64621         * tests/unictype/test-pr_hex_digit.c: Likewise.
64622         * tests/unictype/test-pr_hyphen.c: Likewise.
64623         * tests/unictype/test-pr_id_continue.c: Likewise.
64624         * tests/unictype/test-pr_id_start.c: Likewise.
64625         * tests/unictype/test-pr_ideographic.c: Likewise.
64626         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64627         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64628         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64629         * tests/unictype/test-pr_iso_control.c: Likewise.
64630         * tests/unictype/test-pr_join_control.c: Likewise.
64631         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64632         * tests/unictype/test-pr_line_separator.c: Likewise.
64633         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64634         * tests/unictype/test-pr_lowercase.c: Likewise.
64635         * tests/unictype/test-pr_math.c: Likewise.
64636         * tests/unictype/test-pr_non_break.c: Likewise.
64637         * tests/unictype/test-pr_not_a_character.c: Likewise.
64638         * tests/unictype/test-pr_numeric.c: Likewise.
64639         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64640         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64641         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64642         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64643         * tests/unictype/test-pr_other_id_start.c: Likewise.
64644         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64645         * tests/unictype/test-pr_other_math.c: Likewise.
64646         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64647         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64648         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64649         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64650         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64651         * tests/unictype/test-pr_private_use.c: Likewise.
64652         * tests/unictype/test-pr_punctuation.c: Likewise.
64653         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64654         * tests/unictype/test-pr_radical.c: Likewise.
64655         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64656         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64657         * tests/unictype/test-pr_space.c: Likewise.
64658         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64659         * tests/unictype/test-pr_titlecase.c: Likewise.
64660         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64661         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64662         * tests/unictype/test-pr_uppercase.c: Likewise.
64663         * tests/unictype/test-pr_variation_selector.c: Likewise.
64664         * tests/unictype/test-pr_white_space.c: Likewise.
64665         * tests/unictype/test-pr_xid_continue.c: Likewise.
64666         * tests/unictype/test-pr_xid_start.c: Likewise.
64667         * tests/unictype/test-pr_zero_width.c: Likewise.
64668         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64669         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64670
64671 2007-11-12  Bruno Haible  <bruno@clisp.org>
64672
64673         Unicode character classification functions.
64674         * lib/unictype.h: New file.
64675         * modules/unictype/base: New file.
64676         * modules/unictype/category-L: New file.
64677         * modules/unictype/category-Lu: New file.
64678         * modules/unictype/category-Ll: New file.
64679         * modules/unictype/category-Lt: New file.
64680         * modules/unictype/category-Lm: New file.
64681         * modules/unictype/category-Lo: New file.
64682         * modules/unictype/category-M: New file.
64683         * modules/unictype/category-Mn: New file.
64684         * modules/unictype/category-Mc: New file.
64685         * modules/unictype/category-Me: New file.
64686         * modules/unictype/category-N: New file.
64687         * modules/unictype/category-Nd: New file.
64688         * modules/unictype/category-Nl: New file.
64689         * modules/unictype/category-No: New file.
64690         * modules/unictype/category-P: New file.
64691         * modules/unictype/category-Pc: New file.
64692         * modules/unictype/category-Pd: New file.
64693         * modules/unictype/category-Ps: New file.
64694         * modules/unictype/category-Pe: New file.
64695         * modules/unictype/category-Pi: New file.
64696         * modules/unictype/category-Pf: New file.
64697         * modules/unictype/category-Po: New file.
64698         * modules/unictype/category-S: New file.
64699         * modules/unictype/category-Sm: New file.
64700         * modules/unictype/category-Sc: New file.
64701         * modules/unictype/category-Sk: New file.
64702         * modules/unictype/category-So: New file.
64703         * modules/unictype/category-Z: New file.
64704         * modules/unictype/category-Zs: New file.
64705         * modules/unictype/category-Zl: New file.
64706         * modules/unictype/category-Zp: New file.
64707         * modules/unictype/category-C: New file.
64708         * modules/unictype/category-Cc: New file.
64709         * modules/unictype/category-Cf: New file.
64710         * modules/unictype/category-Cs: New file.
64711         * modules/unictype/category-Co: New file.
64712         * modules/unictype/category-Cn: New file.
64713         * modules/unictype/category-or: New file.
64714         * modules/unictype/category-of: New file.
64715         * modules/unictype/category-test: New file.
64716         * modules/unictype/category-test-withtable: New file.
64717         * modules/unictype/category-byname: New file.
64718         * modules/unictype/category-none: New file.
64719         * modules/unictype/category-and: New file.
64720         * modules/unictype/category-and-not: New file.
64721         * modules/unictype/category-name: New file.
64722         * modules/unictype/combining-class: New file.
64723         * modules/unictype/category-all: New file.
64724         * modules/unictype/bidicategory-all: New file.
64725         * modules/unictype/bidicategory-byname: New file.
64726         * modules/unictype/bidicategory-name: New file.
64727         * modules/unictype/bidicategory-of: New file.
64728         * modules/unictype/bidicategory-test: New file.
64729         * modules/unictype/decimal-digit: New file.
64730         * modules/unictype/digit: New file.
64731         * modules/unictype/numeric: New file.
64732         * modules/unictype/mirror: New file.
64733         * modules/unictype/property-white-space: New file.
64734         * modules/unictype/property-alphabetic: New file.
64735         * modules/unictype/property-other-alphabetic: New file.
64736         * modules/unictype/property-not-a-character: New file.
64737         * modules/unictype/property-default-ignorable-code-point: New file.
64738         * modules/unictype/property-other-default-ignorable-code-point: New
64739         file.
64740         * modules/unictype/property-deprecated: New file.
64741         * modules/unictype/property-logical-order-exception: New file.
64742         * modules/unictype/property-variation-selector: New file.
64743         * modules/unictype/property-private-use: New file.
64744         * modules/unictype/property-unassigned-code-value: New file.
64745         * modules/unictype/property-uppercase: New file.
64746         * modules/unictype/property-other-uppercase: New file.
64747         * modules/unictype/property-lowercase: New file.
64748         * modules/unictype/property-other-lowercase: New file.
64749         * modules/unictype/property-titlecase: New file.
64750         * modules/unictype/property-soft-dotted: New file.
64751         * modules/unictype/property-id-start: New file.
64752         * modules/unictype/property-other-id-start: New file.
64753         * modules/unictype/property-id-continue: New file.
64754         * modules/unictype/property-other-id-continue: New file.
64755         * modules/unictype/property-xid-start: New file.
64756         * modules/unictype/property-xid-continue: New file.
64757         * modules/unictype/property-pattern-white-space: New file.
64758         * modules/unictype/property-pattern-syntax: New file.
64759         * modules/unictype/property-join-control: New file.
64760         * modules/unictype/property-grapheme-base: New file.
64761         * modules/unictype/property-grapheme-extend: New file.
64762         * modules/unictype/property-other-grapheme-extend: New file.
64763         * modules/unictype/property-grapheme-link: New file.
64764         * modules/unictype/property-bidi-control: New file.
64765         * modules/unictype/property-bidi-left-to-right: New file.
64766         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64767         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64768         * modules/unictype/property-bidi-european-digit: New file.
64769         * modules/unictype/property-bidi-eur-num-separator: New file.
64770         * modules/unictype/property-bidi-eur-num-terminator: New file.
64771         * modules/unictype/property-bidi-arabic-digit: New file.
64772         * modules/unictype/property-bidi-common-separator: New file.
64773         * modules/unictype/property-bidi-block-separator: New file.
64774         * modules/unictype/property-bidi-segment-separator: New file.
64775         * modules/unictype/property-bidi-whitespace: New file.
64776         * modules/unictype/property-bidi-non-spacing-mark: New file.
64777         * modules/unictype/property-bidi-boundary-neutral: New file.
64778         * modules/unictype/property-bidi-pdf: New file.
64779         * modules/unictype/property-bidi-embedding-or-override: New file.
64780         * modules/unictype/property-bidi-other-neutral: New file.
64781         * modules/unictype/property-hex-digit: New file.
64782         * modules/unictype/property-ascii-hex-digit: New file.
64783         * modules/unictype/property-ideographic: New file.
64784         * modules/unictype/property-unified-ideograph: New file.
64785         * modules/unictype/property-radical: New file.
64786         * modules/unictype/property-ids-binary-operator: New file.
64787         * modules/unictype/property-ids-trinary-operator: New file.
64788         * modules/unictype/property-zero-width: New file.
64789         * modules/unictype/property-space: New file.
64790         * modules/unictype/property-non-break: New file.
64791         * modules/unictype/property-iso-control: New file.
64792         * modules/unictype/property-format-control: New file.
64793         * modules/unictype/property-dash: New file.
64794         * modules/unictype/property-hyphen: New file.
64795         * modules/unictype/property-punctuation: New file.
64796         * modules/unictype/property-line-separator: New file.
64797         * modules/unictype/property-paragraph-separator: New file.
64798         * modules/unictype/property-quotation-mark: New file.
64799         * modules/unictype/property-sentence-terminal: New file.
64800         * modules/unictype/property-terminal-punctuation: New file.
64801         * modules/unictype/property-currency-symbol: New file.
64802         * modules/unictype/property-math: New file.
64803         * modules/unictype/property-other-math: New file.
64804         * modules/unictype/property-paired-punctuation: New file.
64805         * modules/unictype/property-left-of-pair: New file.
64806         * modules/unictype/property-combining: New file.
64807         * modules/unictype/property-composite: New file.
64808         * modules/unictype/property-decimal-digit: New file.
64809         * modules/unictype/property-numeric: New file.
64810         * modules/unictype/property-diacritic: New file.
64811         * modules/unictype/property-extender: New file.
64812         * modules/unictype/property-ignorable-control: New file.
64813         * modules/unictype/property-test: New file.
64814         * modules/unictype/property-byname: New file.
64815         * modules/unictype/property-all: New file.
64816         * modules/unictype/scripts: New file.
64817         * modules/unictype/scripts-all: New file.
64818         * modules/unictype/block-of: New file.
64819         * modules/unictype/block-test: New file.
64820         * modules/unictype/block-list: New file.
64821         * modules/unictype/block-all: New file.
64822         * modules/unictype/syntax-c-whitespace: New file.
64823         * modules/unictype/syntax-java-whitespace: New file.
64824         * modules/unictype/syntax-c-ident: New file.
64825         * modules/unictype/syntax-java-ident: New file.
64826         * modules/unictype/ctype-alnum: New file.
64827         * modules/unictype/ctype-alpha: New file.
64828         * modules/unictype/ctype-cntrl: New file.
64829         * modules/unictype/ctype-digit: New file.
64830         * modules/unictype/ctype-graph: New file.
64831         * modules/unictype/ctype-lower: New file.
64832         * modules/unictype/ctype-print: New file.
64833         * modules/unictype/ctype-punct: New file.
64834         * modules/unictype/ctype-space: New file.
64835         * modules/unictype/ctype-upper: New file.
64836         * modules/unictype/ctype-xdigit: New file.
64837         * modules/unictype/ctype-blank: New file.
64838         * lib/unictype/bidi_byname.c: New file.
64839         * lib/unictype/bidi_name.c: New file.
64840         * lib/unictype/bidi_of.c: New file.
64841         * lib/unictype/bidi_test.c: New file.
64842         * lib/unictype/bitmap.h: New file.
64843         * lib/unictype/block_test.c: New file.
64844         * lib/unictype/blocks.c: New file.
64845         * lib/unictype/categ_C.c: New file.
64846         * lib/unictype/categ_Cc.c: New file.
64847         * lib/unictype/categ_Cf.c: New file.
64848         * lib/unictype/categ_Cn.c: New file.
64849         * lib/unictype/categ_Co.c: New file.
64850         * lib/unictype/categ_Cs.c: New file.
64851         * lib/unictype/categ_L.c: New file.
64852         * lib/unictype/categ_Ll.c: New file.
64853         * lib/unictype/categ_Lm.c: New file.
64854         * lib/unictype/categ_Lo.c: New file.
64855         * lib/unictype/categ_Lt.c: New file.
64856         * lib/unictype/categ_Lu.c: New file.
64857         * lib/unictype/categ_M.c: New file.
64858         * lib/unictype/categ_Mc.c: New file.
64859         * lib/unictype/categ_Me.c: New file.
64860         * lib/unictype/categ_Mn.c: New file.
64861         * lib/unictype/categ_N.c: New file.
64862         * lib/unictype/categ_Nd.c: New file.
64863         * lib/unictype/categ_Nl.c: New file.
64864         * lib/unictype/categ_No.c: New file.
64865         * lib/unictype/categ_P.c: New file.
64866         * lib/unictype/categ_Pc.c: New file.
64867         * lib/unictype/categ_Pd.c: New file.
64868         * lib/unictype/categ_Pe.c: New file.
64869         * lib/unictype/categ_Pf.c: New file.
64870         * lib/unictype/categ_Pi.c: New file.
64871         * lib/unictype/categ_Po.c: New file.
64872         * lib/unictype/categ_Ps.c: New file.
64873         * lib/unictype/categ_S.c: New file.
64874         * lib/unictype/categ_Sc.c: New file.
64875         * lib/unictype/categ_Sk.c: New file.
64876         * lib/unictype/categ_Sm.c: New file.
64877         * lib/unictype/categ_So.c: New file.
64878         * lib/unictype/categ_Z.c: New file.
64879         * lib/unictype/categ_Zl.c: New file.
64880         * lib/unictype/categ_Zp.c: New file.
64881         * lib/unictype/categ_Zs.c: New file.
64882         * lib/unictype/categ_and.c: New file.
64883         * lib/unictype/categ_and_not.c: New file.
64884         * lib/unictype/categ_byname.c: New file.
64885         * lib/unictype/categ_name.c: New file.
64886         * lib/unictype/categ_none.c: New file.
64887         * lib/unictype/categ_of.c: New file.
64888         * lib/unictype/categ_or.c: New file.
64889         * lib/unictype/categ_test.c: New file.
64890         * lib/unictype/combining.c: New file.
64891         * lib/unictype/ctype_alnum.c: New file.
64892         * lib/unictype/ctype_alpha.c: New file.
64893         * lib/unictype/ctype_blank.c: New file.
64894         * lib/unictype/ctype_cntrl.c: New file.
64895         * lib/unictype/ctype_digit.c: New file.
64896         * lib/unictype/ctype_graph.c: New file.
64897         * lib/unictype/ctype_lower.c: New file.
64898         * lib/unictype/ctype_print.c: New file.
64899         * lib/unictype/ctype_punct.c: New file.
64900         * lib/unictype/ctype_space.c: New file.
64901         * lib/unictype/ctype_upper.c: New file.
64902         * lib/unictype/ctype_xdigit.c: New file.
64903         * lib/unictype/decdigit.c: New file.
64904         * lib/unictype/digit.c: New file.
64905         * lib/unictype/identsyntaxmap.h: New file.
64906         * lib/unictype/mirror.c: New file.
64907         * lib/unictype/numeric.c: New file.
64908         * lib/unictype/pr_alphabetic.c: New file.
64909         * lib/unictype/pr_ascii_hex_digit.c: New file.
64910         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64911         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64912         * lib/unictype/pr_bidi_block_separator.c: New file.
64913         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64914         * lib/unictype/pr_bidi_common_separator.c: New file.
64915         * lib/unictype/pr_bidi_control.c: New file.
64916         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64917         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64918         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64919         * lib/unictype/pr_bidi_european_digit.c: New file.
64920         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64921         * lib/unictype/pr_bidi_left_to_right.c: New file.
64922         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64923         * lib/unictype/pr_bidi_other_neutral.c: New file.
64924         * lib/unictype/pr_bidi_pdf.c: New file.
64925         * lib/unictype/pr_bidi_segment_separator.c: New file.
64926         * lib/unictype/pr_bidi_whitespace.c: New file.
64927         * lib/unictype/pr_byname.c: New file.
64928         * lib/unictype/pr_byname.gperf: New file.
64929         * lib/unictype/pr_combining.c: New file.
64930         * lib/unictype/pr_composite.c: New file.
64931         * lib/unictype/pr_currency_symbol.c: New file.
64932         * lib/unictype/pr_dash.c: New file.
64933         * lib/unictype/pr_decimal_digit.c: New file.
64934         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64935         * lib/unictype/pr_deprecated.c: New file.
64936         * lib/unictype/pr_diacritic.c: New file.
64937         * lib/unictype/pr_extender.c: New file.
64938         * lib/unictype/pr_format_control.c: New file.
64939         * lib/unictype/pr_grapheme_base.c: New file.
64940         * lib/unictype/pr_grapheme_extend.c: New file.
64941         * lib/unictype/pr_grapheme_link.c: New file.
64942         * lib/unictype/pr_hex_digit.c: New file.
64943         * lib/unictype/pr_hyphen.c: New file.
64944         * lib/unictype/pr_id_continue.c: New file.
64945         * lib/unictype/pr_id_start.c: New file.
64946         * lib/unictype/pr_ideographic.c: New file.
64947         * lib/unictype/pr_ids_binary_operator.c: New file.
64948         * lib/unictype/pr_ids_trinary_operator.c: New file.
64949         * lib/unictype/pr_ignorable_control.c: New file.
64950         * lib/unictype/pr_iso_control.c: New file.
64951         * lib/unictype/pr_join_control.c: New file.
64952         * lib/unictype/pr_left_of_pair.c: New file.
64953         * lib/unictype/pr_line_separator.c: New file.
64954         * lib/unictype/pr_logical_order_exception.c: New file.
64955         * lib/unictype/pr_lowercase.c: New file.
64956         * lib/unictype/pr_math.c: New file.
64957         * lib/unictype/pr_non_break.c: New file.
64958         * lib/unictype/pr_not_a_character.c: New file.
64959         * lib/unictype/pr_numeric.c: New file.
64960         * lib/unictype/pr_other_alphabetic.c: New file.
64961         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64962         * lib/unictype/pr_other_grapheme_extend.c: New file.
64963         * lib/unictype/pr_other_id_continue.c: New file.
64964         * lib/unictype/pr_other_id_start.c: New file.
64965         * lib/unictype/pr_other_lowercase.c: New file.
64966         * lib/unictype/pr_other_math.c: New file.
64967         * lib/unictype/pr_other_uppercase.c: New file.
64968         * lib/unictype/pr_paired_punctuation.c: New file.
64969         * lib/unictype/pr_paragraph_separator.c: New file.
64970         * lib/unictype/pr_pattern_syntax.c: New file.
64971         * lib/unictype/pr_pattern_white_space.c: New file.
64972         * lib/unictype/pr_private_use.c: New file.
64973         * lib/unictype/pr_punctuation.c: New file.
64974         * lib/unictype/pr_quotation_mark.c: New file.
64975         * lib/unictype/pr_radical.c: New file.
64976         * lib/unictype/pr_sentence_terminal.c: New file.
64977         * lib/unictype/pr_soft_dotted.c: New file.
64978         * lib/unictype/pr_space.c: New file.
64979         * lib/unictype/pr_terminal_punctuation.c: New file.
64980         * lib/unictype/pr_test.c: New file.
64981         * lib/unictype/pr_titlecase.c: New file.
64982         * lib/unictype/pr_unassigned_code_value.c: New file.
64983         * lib/unictype/pr_unified_ideograph.c: New file.
64984         * lib/unictype/pr_uppercase.c: New file.
64985         * lib/unictype/pr_variation_selector.c: New file.
64986         * lib/unictype/pr_white_space.c: New file.
64987         * lib/unictype/pr_xid_continue.c: New file.
64988         * lib/unictype/pr_xid_start.c: New file.
64989         * lib/unictype/pr_zero_width.c: New file.
64990         * lib/unictype/scripts.c: New file.
64991         * lib/unictype/sy_c_ident.c: New file.
64992         * lib/unictype/sy_c_whitespace.c: New file.
64993         * lib/unictype/sy_java_ident.c: New file.
64994         * lib/unictype/sy_java_whitespace.c: New file.
64995
64996         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64997         Unicode 5.0.0.
64998         * lib/unictype/blocks.h: Likewise.
64999         * lib/unictype/categ_C.h: Likewise.
65000         * lib/unictype/categ_Cc.h: Likewise.
65001         * lib/unictype/categ_Cf.h: Likewise.
65002         * lib/unictype/categ_Cn.h: Likewise.
65003         * lib/unictype/categ_Co.h: Likewise.
65004         * lib/unictype/categ_Cs.h: Likewise.
65005         * lib/unictype/categ_L.h: Likewise.
65006         * lib/unictype/categ_Ll.h: Likewise.
65007         * lib/unictype/categ_Lm.h: Likewise.
65008         * lib/unictype/categ_Lo.h: Likewise.
65009         * lib/unictype/categ_Lt.h: Likewise.
65010         * lib/unictype/categ_Lu.h: Likewise.
65011         * lib/unictype/categ_M.h: Likewise.
65012         * lib/unictype/categ_Mc.h: Likewise.
65013         * lib/unictype/categ_Me.h: Likewise.
65014         * lib/unictype/categ_Mn.h: Likewise.
65015         * lib/unictype/categ_N.h: Likewise.
65016         * lib/unictype/categ_Nd.h: Likewise.
65017         * lib/unictype/categ_Nl.h: Likewise.
65018         * lib/unictype/categ_No.h: Likewise.
65019         * lib/unictype/categ_P.h: Likewise.
65020         * lib/unictype/categ_Pc.h: Likewise.
65021         * lib/unictype/categ_Pd.h: Likewise.
65022         * lib/unictype/categ_Pe.h: Likewise.
65023         * lib/unictype/categ_Pf.h: Likewise.
65024         * lib/unictype/categ_Pi.h: Likewise.
65025         * lib/unictype/categ_Po.h: Likewise.
65026         * lib/unictype/categ_Ps.h: Likewise.
65027         * lib/unictype/categ_S.h: Likewise.
65028         * lib/unictype/categ_Sc.h: Likewise.
65029         * lib/unictype/categ_Sk.h: Likewise.
65030         * lib/unictype/categ_Sm.h: Likewise.
65031         * lib/unictype/categ_So.h: Likewise.
65032         * lib/unictype/categ_Z.h: Likewise.
65033         * lib/unictype/categ_Zl.h: Likewise.
65034         * lib/unictype/categ_Zp.h: Likewise.
65035         * lib/unictype/categ_Zs.h: Likewise.
65036         * lib/unictype/categ_of.h: Likewise.
65037         * lib/unictype/combining.h: Likewise.
65038         * lib/unictype/ctype_alnum.h: Likewise.
65039         * lib/unictype/ctype_alpha.h: Likewise.
65040         * lib/unictype/ctype_blank.h: Likewise.
65041         * lib/unictype/ctype_cntrl.h: Likewise.
65042         * lib/unictype/ctype_digit.h: Likewise.
65043         * lib/unictype/ctype_graph.h: Likewise.
65044         * lib/unictype/ctype_lower.h: Likewise.
65045         * lib/unictype/ctype_print.h: Likewise.
65046         * lib/unictype/ctype_punct.h: Likewise.
65047         * lib/unictype/ctype_space.h: Likewise.
65048         * lib/unictype/ctype_upper.h: Likewise.
65049         * lib/unictype/ctype_xdigit.h: Likewise.
65050         * lib/unictype/decdigit.h: Likewise.
65051         * lib/unictype/digit.h: Likewise.
65052         * lib/unictype/mirror.h: Likewise.
65053         * lib/unictype/numeric.h: Likewise.
65054         * lib/unictype/pr_alphabetic.h: Likewise.
65055         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65056         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65057         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65058         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65059         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65060         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65061         * lib/unictype/pr_bidi_control.h: Likewise.
65062         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65063         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65064         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65065         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65066         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65067         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65068         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65069         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65070         * lib/unictype/pr_bidi_pdf.h: Likewise.
65071         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65072         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65073         * lib/unictype/pr_combining.h: Likewise.
65074         * lib/unictype/pr_composite.h: Likewise.
65075         * lib/unictype/pr_currency_symbol.h: Likewise.
65076         * lib/unictype/pr_dash.h: Likewise.
65077         * lib/unictype/pr_decimal_digit.h: Likewise.
65078         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65079         * lib/unictype/pr_deprecated.h: Likewise.
65080         * lib/unictype/pr_diacritic.h: Likewise.
65081         * lib/unictype/pr_extender.h: Likewise.
65082         * lib/unictype/pr_format_control.h: Likewise.
65083         * lib/unictype/pr_grapheme_base.h: Likewise.
65084         * lib/unictype/pr_grapheme_extend.h: Likewise.
65085         * lib/unictype/pr_grapheme_link.h: Likewise.
65086         * lib/unictype/pr_hex_digit.h: Likewise.
65087         * lib/unictype/pr_hyphen.h: Likewise.
65088         * lib/unictype/pr_id_continue.h: Likewise.
65089         * lib/unictype/pr_id_start.h: Likewise.
65090         * lib/unictype/pr_ideographic.h: Likewise.
65091         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65092         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65093         * lib/unictype/pr_ignorable_control.h: Likewise.
65094         * lib/unictype/pr_iso_control.h: Likewise.
65095         * lib/unictype/pr_join_control.h: Likewise.
65096         * lib/unictype/pr_left_of_pair.h: Likewise.
65097         * lib/unictype/pr_line_separator.h: Likewise.
65098         * lib/unictype/pr_logical_order_exception.h: Likewise.
65099         * lib/unictype/pr_lowercase.h: Likewise.
65100         * lib/unictype/pr_math.h: Likewise.
65101         * lib/unictype/pr_non_break.h: Likewise.
65102         * lib/unictype/pr_not_a_character.h: Likewise.
65103         * lib/unictype/pr_numeric.h: Likewise.
65104         * lib/unictype/pr_other_alphabetic.h: Likewise.
65105         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65106         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65107         * lib/unictype/pr_other_id_continue.h: Likewise.
65108         * lib/unictype/pr_other_id_start.h: Likewise.
65109         * lib/unictype/pr_other_lowercase.h: Likewise.
65110         * lib/unictype/pr_other_math.h: Likewise.
65111         * lib/unictype/pr_other_uppercase.h: Likewise.
65112         * lib/unictype/pr_paired_punctuation.h: Likewise.
65113         * lib/unictype/pr_paragraph_separator.h: Likewise.
65114         * lib/unictype/pr_pattern_syntax.h: Likewise.
65115         * lib/unictype/pr_pattern_white_space.h: Likewise.
65116         * lib/unictype/pr_private_use.h: Likewise.
65117         * lib/unictype/pr_punctuation.h: Likewise.
65118         * lib/unictype/pr_quotation_mark.h: Likewise.
65119         * lib/unictype/pr_radical.h: Likewise.
65120         * lib/unictype/pr_sentence_terminal.h: Likewise.
65121         * lib/unictype/pr_soft_dotted.h: Likewise.
65122         * lib/unictype/pr_space.h: Likewise.
65123         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65124         * lib/unictype/pr_titlecase.h: Likewise.
65125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65126         * lib/unictype/pr_unified_ideograph.h: Likewise.
65127         * lib/unictype/pr_uppercase.h: Likewise.
65128         * lib/unictype/pr_variation_selector.h: Likewise.
65129         * lib/unictype/pr_white_space.h: Likewise.
65130         * lib/unictype/pr_xid_continue.h: Likewise.
65131         * lib/unictype/pr_xid_start.h: Likewise.
65132         * lib/unictype/pr_zero_width.h: Likewise.
65133         * lib/unictype/scripts.h: Likewise.
65134         * lib/unictype/scripts_byname.gperf: Likewise.
65135         * lib/unictype/sy_c_ident.h: Likewise.
65136         * lib/unictype/sy_c_whitespace.h: Likewise.
65137         * lib/unictype/sy_java_ident.h: Likewise.
65138         * lib/unictype/sy_java_whitespace.h: Likewise.
65139
65140         * lib/unictype/Makefile: New file.
65141         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65142         glibc.
65143         * lib/unictype/3level.h: New file, copied from glibc.
65144         * lib/unictype/3levelbit.h: New file.
65145
65146 2007-11-11  Bruno Haible  <bruno@clisp.org>
65147
65148         * modules/gperf: New file.
65149         * modules/iconv_open (Depends-on): Add it.
65150         (Makefile.am): Remove the GPERF definition.
65151
65152 2007-11-11  Bruno Haible  <bruno@clisp.org>
65153
65154         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65155         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65156
65157 2007-11-11  Bruno Haible  <bruno@clisp.org>
65158
65159         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65160         (usage): Remove function.
65161
65162 2007-11-11  Bruno Haible  <bruno@clisp.org>
65163
65164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65165         gl_FUNC_CEILF_LIBS.
65166         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65167         gl_FUNC_CEIL_LIBS.
65168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65169         gl_FUNC_CEILL_LIBS.
65170         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65171         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65172         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65173
65174 2007-11-11  Bruno Haible  <bruno@clisp.org>
65175
65176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65177         roundf were declared but do not exist on functions.
65178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65179         roundl were declared but do not exist on functions.
65180         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65181         HAVE_FLOORL_AND_CEILL, respectively.
65182         Needed for Sun C on Solaris 10.
65183
65184 2007-11-11  Bruno Haible  <bruno@clisp.org>
65185
65186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65187         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65188         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65189         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65191         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65192         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65193         HAVE_DECL_ROUNDF.
65194         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65195         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65197         of HAVE_DECL_ROUND*.
65198         * modules/math (Makefile.am): Update.
65199
65200 2007-11-10  Bruno Haible  <bruno@clisp.org>
65201
65202         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65203         ptrdiff_t as m4/intl.m4.
65204
65205 2007-11-10  Jim Meyering  <meyering@redhat.com>
65206
65207         Avoid link failure for the argmatch test.
65208         * tests/test-argmatch.c (usage): Define function to avoid a link
65209         failure: argmatch_die requires a usage function.
65210
65211 2007-11-09  Bruno Haible  <bruno@clisp.org>
65212
65213         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65214         * doc/functions/vsnprintf.texi: Likewise.
65215         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65216         with a size argument < 2.
65217
65218 2007-11-09  Bruno Haible  <bruno@clisp.org>
65219
65220         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65221         buffer. Fixes an inefficiency introduced on 2007-11-03.
65222
65223 2007-11-09  Bruno Haible  <bruno@clisp.org>
65224
65225         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65226         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65227
65228 2007-11-08  Jim Meyering  <meyering@redhat.com>
65229
65230         Change cache variable name prefix "jm_" to "gl_" everywhere.
65231         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65232         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65233         * m4/uptime.m4: s/gl_/jm_/
65234
65235 2007-11-07  Bruno Haible  <bruno@clisp.org>
65236
65237         Update to GNU gettext 0.17.
65238         * m4/intl.m4: Update to GNU gettext 0.17.
65239         * m4/po.m4: Likewise.
65240         * modules/gettext (Files): Remove m4/ulonglong.m4.
65241         (configure.ac): Require gettext infrastructure from version 0.17.
65242
65243 2007-11-06  Bruno Haible  <bruno@clisp.org>
65244
65245         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65246         symbolic values are not defined in a public header.
65247         * lib/freadable.c (freadable) [QNX]: Likewise.
65248         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65249         * lib/freading.c (freading) [QNX]: Likewise.
65250         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65251         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65252         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65253         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65254         Reported by Alain Magloire.
65255
65256         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65257
65258 2007-11-05  Bruno Haible  <bruno@clisp.org>
65259
65260         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65261         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65262         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65263         Reported by Eric Blake.
65264
65265 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65266             Bruno Haible  <bruno@clisp.org>
65267
65268         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65269         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65270         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65271         (malloc): Undefine also before including <stdlib.h>.
65272         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65273         Needed on OSF/1 4.0.
65274
65275 2007-11-05  Jim Meyering  <meyering@redhat.com>
65276
65277         git-version-gen: sync from coreutils.
65278         * build-aux/git-version-gen: Add comments.
65279         Change the first '-' to '.' in the snapshot version string,
65280         e.g., 6.9-377-08144 -> 6.9.377-08144
65281         Remove first parameter.
65282         Don't declare a version "-dirty" merely because a time
65283         stamp has changed.
65284
65285 2007-11-04  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/lock.h: Protect all macro definitions containing an 'if'
65288         statement through a "do { ... } while (0)".
65289         * lib/tls.h: Likewise.
65290
65291 2007-11-04  Bruno Haible  <bruno@clisp.org>
65292
65293         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65294
65295 2007-11-04  Bruno Haible  <bruno@clisp.org>
65296
65297         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65298         * modules/fprintf-posix (Depends-on): Add nocrash.
65299         * modules/snprintf-posix (Depends-on): Likewise.
65300         * modules/sprintf-posix (Depends-on): Likewise.
65301         * modules/vasnprintf-posix (Depends-on): Likewise.
65302         * modules/vasprintf-posix (Depends-on): Likewise.
65303         * modules/vfprintf-posix (Depends-on): Likewise.
65304         * modules/vsnprintf-posix (Depends-on): Likewise.
65305         * modules/vsprintf-posix (Depends-on): Likewise.
65306         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65311         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65313
65314 2007-11-04  Bruno Haible  <bruno@clisp.org>
65315
65316         * modules/nocrash: New file.
65317         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65318         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65319
65320 2007-11-04  Bruno Haible  <bruno@clisp.org>
65321
65322         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65323         precision handling.
65324         * tests/test-vasprintf-posix.c (test_function): Likewise.
65325         * tests/test-snprintf-posix.h (test_function): Likewise.
65326         * tests/test-sprintf-posix.h (test_function): Likewise.
65327
65328         Fix *printf behaviour for large precisions on mingw and BeOS.
65329         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65330         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65332         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65334         gl_PRINTF_PRECISION and test its result. Invoke
65335         gl_PREREQ_VASNPRINTF_PRECISION.
65336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65343         * doc/functions/fprintf.texi: Update.
65344         * doc/functions/printf.texi: Update.
65345         * doc/functions/snprintf.texi: Update.
65346         * doc/functions/sprintf.texi: Update.
65347         * doc/functions/vfprintf.texi: Update.
65348         * doc/functions/vprintf.texi: Update.
65349         * doc/functions/vsnprintf.texi: Update.
65350         * doc/functions/vsprintf.texi: Update.
65351
65352 2007-11-04  Bruno Haible  <bruno@clisp.org>
65353
65354         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65355
65356 2007-11-04  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65359         Reported by Sylvain Beucler <beuc@gnu.org>.
65360
65361 2007-11-03  Bruno Haible  <bruno@clisp.org>
65362
65363         * tests/test-fprintf-posix2.sh: New file.
65364         * tests/test-fprintf-posix2.c: New file.
65365         * modules/fprintf-posix-tests (Files): Add them.
65366         (TESTS): Add test-fprintf-posix2.sh.
65367         (configure.ac): Check for getrlimit and setrlimit.
65368         (check_PROGRAMS): Add test-fprintf-posix2.
65369
65370         * tests/test-printf-posix2.sh: New file.
65371         * tests/test-printf-posix2.c: New file.
65372         * modules/printf-posix-tests (Files): Add them.
65373         (TESTS): Add test-printf-posix2.sh.
65374         (configure.ac): Check for getrlimit and setrlimit.
65375         (check_PROGRAMS): Add test-printf-posix2.
65376
65377         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65378         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65379         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65380         (decode_double): New function, copied from decode_long_double.
65381         (scale10_round_decimal_decoded): New function, extracted from
65382         scale10_round_decimal_long_double.
65383         (scale10_round_decimal_long_double): Use it.
65384         (scale10_round_decimal_double): New function.
65385         (floorlog10): New function.
65386         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65388         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65390         gl_PRINTF_ENOMEM and test its result. Invoke
65391         gl_PREREQ_VASNPRINTF_ENOMEM.
65392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65399         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65400         * modules/snprintf-posix (Depends-on): Likewise.
65401         * modules/sprintf-posix (Depends-on): Likewise.
65402         * modules/vasnprintf-posix (Depends-on): Likewise.
65403         * modules/vasprintf-posix (Depends-on): Likewise.
65404         * modules/vfprintf-posix (Depends-on): Likewise.
65405         * modules/vsnprintf-posix (Depends-on): Likewise.
65406         * modules/vsprintf-posix (Depends-on): Likewise.
65407         * doc/functions/fprintf.texi: Update.
65408         * doc/functions/printf.texi: Update.
65409         * doc/functions/snprintf.texi: Update.
65410         * doc/functions/sprintf.texi: Update.
65411         * doc/functions/vfprintf.texi: Update.
65412         * doc/functions/vprintf.texi: Update.
65413         * doc/functions/vsnprintf.texi: Update.
65414         * doc/functions/vsprintf.texi: Update.
65415
65416 2007-11-03  Bruno Haible  <bruno@clisp.org>
65417
65418         * modules/frexp-nolibm-tests: New file.
65419
65420         * modules/frexp-nolibm: New file.
65421         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65422
65423 2007-11-03  Bruno Haible  <bruno@clisp.org>
65424
65425         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65426         value is C99 compliant.
65427         Needed for OSF/1 5.1.
65428
65429 2007-11-03  Bruno Haible  <bruno@clisp.org>
65430
65431         Fix out-of-memory handling of vasnprintf.
65432         * lib/printf-parse.c: Include <errno.h>.
65433         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65434         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65435         is already set.
65436
65437 2007-11-02  Eric Blake  <ebb9@byu.net>
65438
65439         Fix tests on cygwin.
65440         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65441
65442 2007-11-01  Bruno Haible  <bruno@clisp.org>
65443
65444         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65445         warning.
65446         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65447         needed for POSIX compatibility.
65448
65449 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65452         for compatibility with GNU.
65453
65454 2007-11-01  Bruno Haible  <bruno@clisp.org>
65455
65456         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65457         (putenv): Renamed from rpl_putenv. Change argument type from
65458         'const char *' to 'char *'.
65459         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65460         of defining putenv in config.h, just set REPLACE_PUTENV.
65461         * modules/putenv (Depends-on): Add stdlib.
65462         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65463         (Include): Use <stdlib.h>.
65464         * lib/stdlib.in.h (putenv): New declaration.
65465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65466         REPLACE_PUTENV.
65467         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65468         REPLACE_PUTENV.
65469         Needed for MacOS X 10.5.0.
65470         Reported by Peter O'Gorman <peter@pogma.com>.
65471
65472 2007-11-01  Jim Meyering  <meyering@redhat.com>
65473
65474         Treat an empty date string exactly like "0".
65475         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65476         if the remaining date string (to be parsed) is empty, use "0".
65477         Reported by Mischa Molhoek and discussed in this thread:
65478         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65479
65480 2007-10-31  Bruno Haible  <bruno@clisp.org>
65481
65482         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65483         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65484         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65485         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65486         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65487         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65488
65489 2007-10-31  Bruno Haible  <bruno@clisp.org>
65490
65491         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65492         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65493         (AC_TYPE_LONG_LONG_INT): Use it.
65494         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65495         it as well.
65496         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65497         to m4/longlong.m4.
65498         * modules/stdint (Files): Remove m4/ulonglong.m4.
65499         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65500         m4/ulonglong.m4.
65501         * modules/strtoumax (Files): Likewise.
65502
65503 2007-10-30  Bruno Haible  <bruno@clisp.org>
65504
65505         * modules/xvasprintf-posix: New file.
65506         Suggested by Eric Blake.
65507
65508 2007-10-30  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/xprintf-posix-tests: New file.
65511         * tests/test-xprintf-posix.sh: New file.
65512         * tests/test-xprintf-posix.c: New file.
65513         * tests/test-xfprintf-posix.c: New file.
65514
65515         * modules/xprintf-posix: New file.
65516
65517 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65518
65519         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65520         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65521         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65522
65523 2007-10-29  Bruno Haible  <bruno@clisp.org>
65524
65525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65526         contain the special marker '_cv_'.
65527         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65528         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65529         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65530         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65531         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65532         Reported by Ralf Wildenhues.
65533
65534 2007-10-29  Bruno Haible  <bruno@clisp.org>
65535
65536         * gnulib-tool (func_import): When --lgpl is not specified, set
65537         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65538         GPLv3.
65539         Reported by Simon Josefsson.
65540
65541 2007-10-28  Bruno Haible  <bruno@clisp.org>
65542
65543         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65544         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65545         HAVE_DECL_ISFINITE.
65546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65547         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65548         HAVE_DECL_ISFINITE.
65549
65550 2007-10-28  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65553         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65554
65555 2007-10-28  Bruno Haible  <bruno@clisp.org>
65556
65557         Fix link errors with Sun C 5.0 on Solaris 10.
65558         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65559         function is declared but not present in the compiler's libm.
65560         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65561         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65562         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65563         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65564         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65565         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65566         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65568         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65569         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65570         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65571         HAVE_DECL_FLOORL.
65572
65573 2007-10-28  Bruno Haible  <bruno@clisp.org>
65574
65575         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65576         gl_FUNC_FLOORL. Cache the result.
65577         (gl_FUNC_FLOORL): Use it.
65578         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65579         gl_FUNC_CEILL. Cache the result.
65580         (gl_FUNC_CEILL): Use it.
65581
65582         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65583         gl_FUNC_FLOOR. Cache the result.
65584         (gl_FUNC_FLOOR): Use it.
65585         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65586         gl_FUNC_CEIL. Cache the result.
65587         (gl_FUNC_CEIL): Use it.
65588
65589         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65590         gl_FUNC_FLOORF. Cache the result.
65591         (gl_FUNC_FLOORF): Use it.
65592         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65593         gl_FUNC_CEILF. Cache the result.
65594         (gl_FUNC_CEILF): Use it.
65595
65596 2007-10-28  Bruno Haible  <bruno@clisp.org>
65597
65598         * gnulib-tool: Allow specifying the LGPL version number through
65599         --lgpl=2 or --lgpl=3.
65600         (func_usage): Document --lgpl with argument.
65601         Handle --lgpl=... arguments.
65602         (func_import): Recognize also gl_LGPL calls with an argument. When
65603         --lgpl=2 is used and the module's license is just LGPL, report an
65604         error. Set sed_transform_lib_file according to the lgpl variable. In
65605         the generated files, use --lgpl or gl_LGPL invocations with argument,
65606         if necessary.
65607         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65608         an LGPv2+ license.
65609         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65610         gl_LGPL macro.
65611
65612 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65613             Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65616         (u16_uctomb_aux): Likewise.
65617         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65618         !HAVE_INLINE.
65619         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65620
65621 2007-10-28  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65624         Invoke AM_GETTEXT_OPTION if it exists.
65625         * modules/vasprintf: Likewise.
65626         * modules/verror: Likewise.
65627         * modules/xprintf: Likewise.
65628         * modules/xvasprintf: Likewise.
65629
65630 2007-10-27  Ben Pfaff  <blp@gnu.org>
65631
65632         * lib/math.in.h: Define isfinite macro and prototypes for
65633         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65634         implementations.
65635         * m4/math_h.m4: New substitutions for isfinite module.
65636         * lib/isfinite.c: New file.
65637         * m4/isfinite.m4: New file.
65638         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65639         * modules/isfinite: New file.
65640         * modules/isfinite-tests: New file.
65641         * tests/tests-isfinite.c: New file.
65642         * doc/functions/isfinite.texi: Mention isfinite module.
65643         * MODULES.html.sh: Mention new module.
65644
65645 2007-10-27  Ben Pfaff  <blp@gnu.org>
65646
65647         Ralf Wildenhues reported that Tru64 4.0D declares the round
65648         functions but does not have definitions.
65649         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65650         cannot be found in any library, set the output variable to
65651         "missing" instead of "".
65652         * m4/round.m4: Also use our substitute if we cannot find round in
65653         any library, even if it is declared.
65654         * m4/roundf.m4: Likewise for roundf.
65655         * m4/roundl.m4: Likewise for roundl.
65656         * lib/math.in.h: Undefine roundf, round, roundl before defining
65657         their replacements, to allow for hypothetical systems where these
65658         may be defined as macros but not available in libraries.
65659
65660 2007-10-27  Bruno Haible  <bruno@clisp.org>
65661
65662         * doc/gnulib.texi: Invoke @firstparagraphindent.
65663         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65664         changes in gnulib.
65665         (Source changes): New section.
65666
65667 2007-10-26  Bruno Haible  <bruno@clisp.org>
65668
65669         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65670         borrowed from autoconf.
65671
65672 2007-10-26  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65675         strerror returned the empty string. Needed on HP-UX 11.00.
65676
65677 2007-10-24  Micah Cowan  <micah@cowan.name>
65678
65679         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65680         * build-aux/bootstrap: Remove support for now-unnecessary option,
65681         --cvs-user, and envvars CVS_USER, CVS_RSH.
65682
65683 2007-10-24  Jim Meyering  <meyering@redhat.com>
65684
65685         Avoid diagnostics from sha1sum when there is no cached checksum.
65686         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65687         if the po.s1 file hasn't been created yet.
65688
65689         * build-aux/bootstrap: Sync from coreutils:
65690         2007-10-24  Jim Meyering  <meyering@redhat.com>
65691         Get gnulib from the git repository, not from an obsolete cvs one.
65692         * build-aux/bootstrap: Suggestion from Micah Cowan.
65693         2007-10-04  Jim Meyering  <jim@meyering.net>
65694         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65695         (update_po_files): Work also when there are no .po files in po/.
65696
65697 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * README: Append ".git" to git and cg examples.
65700         Problem reported by Benoit Sigoure.
65701
65702 2007-10-23  Micah Cowan  <micah@cowan.name>
65703
65704         * users.txt: Add wget.
65705
65706 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65707
65708         Fix linking of some unistdio tests on FreeBSD.
65709         * modules/unistdio/u16-vsnprintf-tests
65710         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65711         * modules/unistdio/u16-vsprintf-tests
65712         (test_u16_vsnprintf1_LDADD): Likewise.
65713         * modules/unistdio/u32-vsnprintf-tests
65714         (test_u32_vsnprintf1_LDADD): Likewise.
65715         * modules/unistdio/u32-vsprintf-tests
65716         (test_u32_vsprintf1_LDADD): Likewise.
65717         * modules/unistdio/u8-vsnprintf-tests
65718         (test_u8_vsnprintf1_LDADD): Likewise.
65719         * modules/unistdio/u8-vsprintf-tests
65720         (test_u8_vsprintf1_LDADD): Likewise.
65721         * modules/unistdio/ulc-vsnprintf-tests
65722         (test_ulc_vsnprintf1_LDADD): Likewise.
65723         * modules/unistdio/ulc-vsprintf-tests
65724         (test_ulc_vsprintf1_LDADD): Likewise.
65725
65726         Fix linking of some uniconv tests on FreeBSD.
65727         * modules/uniconv/u16-conv-from-enc-tests
65728         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65729         * modules/uniconv/u16-conv-to-enc-tests
65730         (test_u16_conv_to_enc_LDADD): Likewise.
65731         * modules/uniconv/u16-strconv-from-enc-tests
65732         (test_u16_strconv_from_enc_LDADD): Likewise.
65733         * modules/uniconv/u16-strconv-to-enc-tests
65734         (test_u16_strconv_to_enc_LDADD): Likewise.
65735         * modules/uniconv/u32-conv-from-enc-tests
65736         (test_u32_conv_from_enc_LDADD): Likewise.
65737         * modules/uniconv/u32-conv-to-enc-tests
65738         (test_u32_conv_to_enc_LDADD): Likewise.
65739         * modules/uniconv/u32-strconv-from-enc-tests
65740         (test_u32_strconv_from_enc_LDADD): Likewise.
65741         * modules/uniconv/u32-strconv-to-enc-tests
65742         (test_u32_strconv_to_enc_LDADD): Likewise.
65743         * modules/uniconv/u8-conv-from-enc-tests
65744         (test_u8_conv_from_enc_LDADD): Likewise.
65745         * modules/uniconv/u8-conv-to-enc-tests
65746         (test_u8_conv_to_enc_LDADD): Likewise.
65747         * modules/uniconv/u8-strconv-from-enc-tests
65748         (test_u8_strconv_from_enc_LDADD): Likewise.
65749         * modules/uniconv/u8-strconv-to-enc-tests
65750         (test_u8_strconv_to_enc_LDADD): Likewise.
65751
65752 2007-10-22  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65755         size.
65756
65757 2007-10-22  Eric Blake  <ebb9@byu.net>
65758
65759         Tweak x*printf documentation.
65760         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65761         variable name and comments.
65762         Suggested by Bruno Haible.
65763
65764 2007-10-22  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/acl.c (copy_acl): Fix file name in comment.
65767
65768 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65769
65770         Fix Tru64 problem with stdbool.h.
65771         * lib/stdbool.in.h (false, true):
65772         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65773         Don't declare as an enum in this situation; it runs afoul of Tru64.
65774         Problem reported by Steven M. Schweda in
65775         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65776
65777 2007-10-22  Eric Blake  <ebb9@byu.net>
65778
65779         Also wrap vf?printf.
65780         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65781         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65782         (xvprintf, xvfprintf): New functions.
65783
65784 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65785
65786         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65787         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65788
65789         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65790         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65791
65792 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65793
65794         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65795         by Bruno Haible.
65796
65797 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65798
65799         * lib/getloadavg.c
65800         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65801         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65802
65803         * tests/test-i-ring.c: Work for C89.
65804
65805 2007-10-22  Bruno Haible  <bruno@clisp.org>
65806
65807         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65808         -1u, in preprocessor expression, so that we don't test for the bug
65809         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65811
65812 2007-10-22  Eric Blake  <ebb9@byu.net>
65813
65814         * tests/test-yesno.sh: Silence stderr during test.
65815
65816 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65817
65818         * modules/crypto/gc-camellia: New file.
65819
65820         * m4/gc-camellia.m4: New file.
65821
65822         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65823
65824         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65825
65826 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65827
65828         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65829         --help to stdout.  Reported by sms@antinode.org (Steven
65830         M. Schweda).
65831
65832 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65833
65834         * users.txt: Fix link to libksba.
65835
65836 2007-10-21  Ben Pfaff  <blp@gnu.org>
65837
65838         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65839         round.c roundf implementation that depends on floorf and ceilf to
65840         be tested unconditionally.
65841
65842 2007-10-21  Ben Pfaff  <blp@gnu.org>
65843
65844         * m4/check-libm-func.m4: Removed.
65845         * m4/check-math-lib.m4: New file.
65846         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65847         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65848         definition and lack of AC_LIBOBJ([roundf]).
65849         * m4/roundl.m4: Ditto, and similarly for roundl.
65850         * modules/round: Reference new m4 file.
65851         * modules/roundf: Ditto.
65852         * modules/roundl: Ditto.
65853         * tests/test-round2.c (main): Use ROUND instead of round.
65854         Bug report from Bruno Haible.
65855
65856 2007-10-21  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65859         context.
65860
65861 2007-10-21  Bruno Haible  <bruno@clisp.org>
65862
65863         * tests/test-wcwidth.c (main): Allow negative result for some control
65864         characters.
65865
65866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65867         Needed on OSF/1 5.1.
65868
65869 2007-10-21  Bruno Haible  <bruno@clisp.org>
65870
65871         * tests/test-floorf1.c: Include isnanf.h.
65872         (main): Use isnanf() instead of isnan().
65873         * tests/test-ceilf1.c: Include isnanf.h.
65874         (main): Use isnanf() instead of isnan().
65875         * tests/test-truncf1.c: Include isnanf.h.
65876         (main): Use isnanf() instead of isnan().
65877         * tests/test-roundf1.c: Include isnanf.h.
65878         (main): Use isnanf() instead of isnan().
65879
65880 2007-10-21  Eric Blake  <ebb9@byu.net>
65881
65882         * users.txt: Update URL for m4.
65883
65884 2007-10-21  Bruno Haible  <bruno@clisp.org>
65885
65886         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65887
65888 2007-10-21  Bruno Haible  <bruno@clisp.org>
65889
65890         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65891         Git's management files if the CVS files are not present.
65892
65893 2007-10-20  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65896         gcc-3.4.x.
65897
65898 2007-10-20  Ben Pfaff  <blp@gnu.org>
65899
65900         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65901         implementations.
65902         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65903         * lib/round.c: New file.
65904         * lib/roundf.c: New file.
65905         * lib/roundl.c: New file.
65906         * m4/round.m4: New file.
65907         * m4/roundf.m4: New file.
65908         * m4/roundl.m4: New file.
65909         * m4/check-libm-func-m4: New file.
65910         * modules/math: Replace round, roundf, roundl related @VARS@ in
65911         math.in.h.
65912         * modules/round: New file.
65913         * modules/round-tests: New file.
65914         * modules/roundf: New file.
65915         * modules/roundf-tests: New file.
65916         * modules/roundl: New file.
65917         * modules/roundl-tests: New file.
65918         * tests/test-round1.c: New file.
65919         * tests/test-round2.c: New file.
65920         * tests/test-roundf1.c: New file.
65921         * tests/test-roundf2.c: New file.
65922         * tests/test-roundl.c: New file.
65923         * doc/functions/round.texi: Mention round module.
65924         * doc/functions/roundf.texi: Mention roundf module.
65925         * doc/functions/roundl.texi: Mention roundl module.
65926         * MODULES.html.sh: Mention new modules.
65927         Thanks to Bruno Haible for suggestions.
65928
65929 2007-10-20  Jim Meyering  <meyering@redhat.com>
65930
65931         * lib/xprintf.c: Include <config.h> unconditionally.
65932
65933         Change xprintf's license to GPL.
65934         * modules/xprintf (License): s/LGPL/GPL/, since this module
65935         depends on modules (exit and exitfail) which are GPL.
65936         Suggestion from Bruno Haible.
65937
65938         xprintf fixes.
65939         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65940         Use a clearer diagnostic.
65941         Patch from Bruno Haible.
65942
65943 2007-10-20  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65946         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65948
65949 2007-10-20  Bruno Haible  <bruno@clisp.org>
65950
65951         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65952         precision in the comparison result > x - 1 or similar.
65953         * tests/test-ceilf2.c (correct_result_p): Likewise.
65954         * tests/test-truncf2.c (correct_result_p): Likewise.
65955         * tests/test-trunc2.c (correct_result_p): Likewise.
65956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65957
65958 2007-10-20  Bruno Haible  <bruno@clisp.org>
65959
65960         * modules/ceil: New file.
65961         * m4/ceil.m4: New file.
65962         * doc/functions/ceil.texi: Mention the 'ceil' module.
65963
65964 2007-10-20  Bruno Haible  <bruno@clisp.org>
65965
65966         * modules/floor: New file.
65967         * m4/floor.m4: New file.
65968         * doc/functions/floor.texi: Mention the 'floor' module.
65969
65970 2007-10-20  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65973         of %a.
65974         * modules/floorf-tests (Depends-on): Likewise.
65975         * modules/truncf-tests (Depends-on): Likewise.
65976         * modules/trunc-tests (Depends-on): Likewise.
65977         Reported by Ben Pfaff.
65978
65979 2007-10-19  Jim Meyering  <meyering@redhat.com>
65980
65981         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65982         Don't bother testing specific errno values.  Just test ferror.
65983
65984         New module: xprintf
65985         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65986
65987 2007-10-19  Bruno Haible  <bruno@clisp.org>
65988
65989         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65990         syntax.
65991         * modules/javaexec (Makefile.am): Likewise.
65992         * modules/relocatable-prog (Makefile.am): Likewise.
65993         Suggested by Jim Meyering.
65994
65995 2007-10-18  Bruno Haible  <bruno@clisp.org>
65996
65997         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65998         Reported by Jim Meyering.
65999
66000 2007-10-18  Eric Blake  <ebb9@byu.net>
66001
66002         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66003
66004 2007-10-18  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66007         the format string into writable memory. Needed in Fortify conditions.
66008
66009 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66010             Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66013         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66014         * modules/trim (Depends-on): Add mbchar.
66015         (configure.ac): Add gl_FUNC_MBRTOWC.
66016         (Makefile.am): Augment lib_SOURCES.
66017
66018 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         Modify glob.c to use fstatat and dirfd, to simplify it.
66021         Suggested by Eric Blake.
66022         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66023         Don't include <stdbool.h>; not used.
66024         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66025         (link_exists_p): Simplify implementation, since we can now assume
66026         dirfd and fstatat.
66027         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66028
66029 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66030
66031         * gnulib-tool (func_get_dependencies): Fix sed script to
66032         match only tests.
66033
66034 2007-10-17  Bruno Haible  <bruno@clisp.org>
66035
66036         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66037         allow locale names without encoding suffix.
66038         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66039         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66040
66041 2007-10-16  Bruno Haible  <bruno@clisp.org>
66042
66043         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66044         * lib/getgroups.c (getgroups): Likewise.
66045         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66046
66047 2007-10-16  Bruno Haible  <bruno@clisp.org>
66048
66049         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66050         * modules/malloc-posix (License): Likewise.
66051         * modules/realloc-posix (License): Likewise.
66052         * modules/calloc-posix (License): Likewise.
66053         * modules/intprops (License): Change from GPL to LGPL, with
66054         Paul Eggert's approval.
66055
66056 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         Merge glibc changes into lib/glob.c.
66059
66060         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66061         2007-10-15 04:59:03 UTC.  Here are the changes:
66062
66063         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66064
66065         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66066
66067         * lib/glob.c: Add some branch prediction throughout.
66068
66069         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66070
66071         [BZ #5103]
66072         * lib/glob.c (glob): Recognize patterns starting \/.
66073
66074         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66075
66076         [BZ #3996]
66077         * lib/glob.c (attribute_hidden): Define if not defined.
66078         (glob): Unescape dirname, filename or username when needed and not
66079         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66080         is NULL.  Handle unescaped [ in pattern without closing ].
66081         Don't pass GLOB_CHECK down to recursive glob for directories.
66082         (__glob_pattern_type): New function.
66083         (__glob_pattern_p): Implement using __glob_pattern_type.
66084         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66085         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66086         Remove unreachable code.
66087
66088         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66089
66090         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66091         explain why there are no leaks.
66092
66093         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66094
66095         [BZ #3253]
66096         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66097         time, rather allocate increasingly bigger arrays of pointers, if
66098         possible with alloca, if too large with malloc.
66099
66100 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66101
66102         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66103         Problem reported by H.Merijn Brand in
66104         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66105         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66106         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66107
66108 2007-10-15  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66111         with explicit rpl_ prefix.
66112         * lib/fopen.c (fopen): Likewise.
66113         * lib/freopen.c (freopen): Likewise.
66114         * lib/iconv.c (iconv): Likewise.
66115         * lib/iconv_close.c (iconv_close): Likewise.
66116
66117 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66118
66119         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66120
66121 2007-10-15  Bruno Haible  <bruno@clisp.org>
66122
66123         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66124         <stddef.h> instead of <stdlib.h> since we only need NULL.
66125         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66126
66127 2007-10-15  Bruno Haible  <bruno@clisp.org>
66128
66129         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66130         Replace paragraph talking about LIBOBJS.
66131         Reported by Colin Watson <cjwatson@debian.org>.
66132
66133 2007-10-15  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66136         <stdlib.h> before using NULL.
66137
66138 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66139
66140         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66141         Reported by Albert Chin <china@thewrittenword.com>.
66142
66143 2007-10-14  Bruno Haible  <bruno@clisp.org>
66144
66145         * modules/iconv_open-utf-tests: New file.
66146         * tests/test-iconv-utf.c: New file.
66147
66148         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66149         * modules/iconv_open-utf: New file.
66150         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66151         (iconv, iconv_close): New declarations.
66152         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66153         be defined.
66154         (iconv_open): Add special handling of conversion between UTF-8 and
66155         UTF-{16,32}{BE,LE}.
66156         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66157         * lib/iconv_close.c: New file.
66158         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66159         gl_FUNC_ICONV_OPEN.
66160         (gl_FUNC_ICONV_OPEN): Use it.
66161         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66162         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66163         and REPLACE_ICONV_UTF.
66164         * modules/iconv_open (Depends-on): Add c-strcase.
66165         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66166         ICONV_CONST.
66167         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66168
66169 2007-10-13  Albert Chin  <china@thewrittenword.com>
66170             Bruno Haible  <bruno@clisp.org>
66171
66172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66173         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66174
66175 2007-10-13  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66178         defined, use the ISO C99 inline semantics.
66179         * lib/argp.h (ARGP_EI): Likewise.
66180
66181 2007-10-13  Bruno Haible  <bruno@clisp.org>
66182
66183         Handle 'inline' change in gcc 4.3.0.
66184         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66185         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66186         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66187         argp_fmtstream_point): Disable 'extern' declaration if the function
66188         definition is going to be provided inline.
66189         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66190         semantics, not the ISO C99 inline semantics.
66191         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66192         'extern' declaration if the function definition is going to be provided
66193         inline.
66194         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66195         the GNU C inline semantics, not the ISO C99 inline semantics. With
66196         GCC 4.2, avoid a warning.
66197
66198 2007-10-13  Bruno Haible  <bruno@clisp.org>
66199
66200         * lib/freading.h (freading): Enable the use of __freading for
66201         glibc >= 2.7.
66202         * lib/freading.c (freading): Likewise.
66203
66204 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66205
66206         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66207         "warning: C99 inline functions are not supported; using GNU89".
66208
66209 2007-10-12  Bruno Haible  <bruno@clisp.org>
66210
66211         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66212         of 2.
66213         * tests/test-ceilf2.c: New file.
66214         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66215
66216         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66217         * modules/ceilf-tests: Update.
66218
66219 2007-10-12  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66222         of 2.
66223         * tests/test-floorf2.c: New file.
66224         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66225
66226         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66227         * modules/floorf-tests: Update.
66228
66229 2007-10-12  Bruno Haible  <bruno@clisp.org>
66230
66231         * tests/test-trunc2.c: New file.
66232         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66233
66234         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66235         * modules/trunc-tests: Update.
66236
66237 2007-10-12  Bruno Haible  <bruno@clisp.org>
66238
66239         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66240         of 2.
66241         * tests/test-truncf2.c: New file.
66242         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66243
66244         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66245         * modules/truncf-tests: Update.
66246
66247 2007-10-11  Eric Blake  <ebb9@byu.net>
66248
66249         Don't claim strerror is broken on Interix.
66250         * doc/functions/strerror.texi (strerror): Known broken systems are
66251         now Solaris 8, and not Interix.
66252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66253         Interix on cross-compile.
66254         Reported by Martin Koeppe in
66255         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66256
66257 2007-10-11  Bruno Haible  <bruno@clisp.org>
66258
66259         * modules/i-ring-tests: New file.
66260         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66261         instead of assert.
66262
66263 2007-10-11  Bruno Haible  <bruno@clisp.org>
66264
66265         * modules/filenamecat-tests: New file.
66266         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66267         * lib/filenamecat.c: Remove test code.
66268
66269 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66272
66273         * lib/strerror.c: Include <string.h> always, to test interface,
66274         and to remove the need for the dummy.
66275         Include intprops.h to compute width instead of doing it ourselves
66276         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66277         (strerror): Define it to return NULL if there's no system strerror.
66278         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66279         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66280         ancient pre-strerror Unix systems well any more.  Saying "unknown
66281         system error" is enough.
66282         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66283         simpler strerror.c implementation.
66284         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66285         Simplify the tests to reflect the simpler strerror implementation.
66286         * modules/strerror (Depends-on): Add intprops.
66287
66288 2007-10-09  Eric Blake  <ebb9@byu.net>
66289
66290         Silence test-fpending.
66291         * modules/fpending-tests (Files): Add wrapper script.
66292         * tests/test-fpending.sh: New file.
66293
66294 2007-10-09  Bruno Haible  <bruno@clisp.org>
66295
66296         * MODULES.html.sh (func_module): Don't create a hyperlink for
66297         function names like 'printf_frexp'.
66298         (Misc): Add crc, memxor.
66299         (Characteristics of floating types): New section.
66300         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66301         isnanf-nolibm, signbit, trunc, truncf, truncl.
66302         (Enhancements for ISO C 99 functions): New subsection Input/output.
66303         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66304         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66305         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66306         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66307         (Enhancements for POSIX:2001 functions): Add chdir-long.
66308         (File system functions): Add areadlink, chdir-safer, read-file.
66309         Remove cycle-check.
66310         (File system as inode set): New section.
66311         (Date and time): Add gethrxtime.
66312         (Multithreading): Add openmp.
66313         (Internationalization functions): Add localename.
66314         (Unicode string functions): Add unistr/u*-mbsnlen.
66315         (Support for maintaining and releasing projects): Add git-version-gen.
66316         (Lone files): Remove directories.
66317
66318 2007-10-08  Ben Pfaff  <blp@gnu.org>
66319
66320         * lib/xmalloca.h: Fix typo in comment.
66321
66322 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66323
66324         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66325         when avoiding problems with integer overflow.  Use a portable test
66326         instead.
66327
66328 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66329
66330         * modules/dummy (License): Change to LGPLv2+.
66331         * modules/float (License): Likewise
66332         * modules/realloc (License): Likewise
66333         * modules/stdlib (License): Likewise
66334
66335 2007-10-07  Bruno Haible  <bruno@clisp.org>
66336
66337         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66338         * floor.c (TWO_MANT_DIG): Likewise.
66339         * ceil.c (TWO_MANT_DIG): Likewise.
66340         Reported by Ben Pfaff.
66341
66342 2007-10-07  Bruno Haible  <bruno@clisp.org>
66343
66344         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66345         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66346         * lib/frexp.c (FUNC): Likewise.
66347         * lib/printf-frexp.h (printf_frexp): Likewise.
66348         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66349         * lib/printf-frexp.c (FUNC): Likewise.
66350         Suggested by Jim Meyering.
66351
66352 2007-10-07  Jim Meyering  <meyering@redhat.com>
66353
66354         Make xnanosleep's integer overflow test more robust.
66355         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66356         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66357
66358 2007-10-07  Bruno Haible  <bruno@clisp.org>
66359
66360         * NEWS: Mention the license change.
66361
66362         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66363         abbreviations in the modules files.
66364
66365         Change copyright notice from GPLv2+ to GPLv3+.
66366         * README: Change copyright notice.
66367         * MODULES.html.sh: Likewise.
66368         * build-aux/bootstrap.conf: Likewise.
66369         * build-aux/config.libpath: Likewise.
66370         * build-aux/csharpcomp.sh.in: Likewise.
66371         * build-aux/csharpexec.sh.in: Likewise.
66372         * build-aux/install-reloc: Likewise.
66373         * build-aux/javacomp.sh.in: Likewise.
66374         * build-aux/javaexec.sh.in: Likewise.
66375         * build-aux/ldd.sh.in: Likewise.
66376         * build-aux/reloc-ldflags: Likewise.
66377         * build-aux/relocatable.sh.in: Likewise.
66378         * build-aux/x-to-1.in: Likewise.
66379         * check-module: Likewise.
66380         * config/srclistvars.sh: Likewise.
66381         * gnulib-tool: Likewise.
66382         * lib/acl-internal.h: Likewise.
66383         * lib/acl.c: Likewise.
66384         * lib/acl.h: Likewise.
66385         * lib/acl_entries.c: Likewise.
66386         * lib/areadlink-with-size.c: Likewise.
66387         * lib/areadlink.c: Likewise.
66388         * lib/areadlink.h: Likewise.
66389         * lib/argmatch.c: Likewise.
66390         * lib/argmatch.h: Likewise.
66391         * lib/argp-ba.c: Likewise.
66392         * lib/argp-eexst.c: Likewise.
66393         * lib/argp-fmtstream.c: Likewise.
66394         * lib/argp-fmtstream.h: Likewise.
66395         * lib/argp-fs-xinl.c: Likewise.
66396         * lib/argp-help.c: Likewise.
66397         * lib/argp-namefrob.h: Likewise.
66398         * lib/argp-parse.c: Likewise.
66399         * lib/argp-pin.c: Likewise.
66400         * lib/argp-pv.c: Likewise.
66401         * lib/argp-pvh.c: Likewise.
66402         * lib/argp-xinl.c: Likewise.
66403         * lib/argp.h: Likewise.
66404         * lib/at-func.c: Likewise.
66405         * lib/atanl.c: Likewise.
66406         * lib/backupfile.c: Likewise.
66407         * lib/backupfile.h: Likewise.
66408         * lib/basename.c: Likewise.
66409         * lib/binary-io.h: Likewise.
66410         * lib/byteswap.in.h: Likewise.
66411         * lib/c-stack.c: Likewise.
66412         * lib/c-stack.h: Likewise.
66413         * lib/c-strcasestr.c: Likewise.
66414         * lib/c-strcasestr.h: Likewise.
66415         * lib/c-strstr.c: Likewise.
66416         * lib/c-strstr.h: Likewise.
66417         * lib/c-strtod.c: Likewise.
66418         * lib/calloc.c: Likewise.
66419         * lib/canon-host.c: Likewise.
66420         * lib/canon-host.h: Likewise.
66421         * lib/canonicalize-lgpl.c: Likewise.
66422         * lib/canonicalize.c: Likewise.
66423         * lib/canonicalize.h: Likewise.
66424         * lib/ceil.c: Likewise.
66425         * lib/ceilf.c: Likewise.
66426         * lib/ceill.c: Likewise.
66427         * lib/chdir-long.c: Likewise.
66428         * lib/chdir-long.h: Likewise.
66429         * lib/chdir-safer.c: Likewise.
66430         * lib/chdir-safer.h: Likewise.
66431         * lib/chown.c: Likewise.
66432         * lib/classpath.c: Likewise.
66433         * lib/classpath.h: Likewise.
66434         * lib/clean-temp.c: Likewise.
66435         * lib/clean-temp.h: Likewise.
66436         * lib/cloexec.c: Likewise.
66437         * lib/close-stream.c: Likewise.
66438         * lib/closein.c: Likewise.
66439         * lib/closein.h: Likewise.
66440         * lib/closeout.c: Likewise.
66441         * lib/closeout.h: Likewise.
66442         * lib/concat-filename.c: Likewise.
66443         * lib/copy-file.c: Likewise.
66444         * lib/copy-file.h: Likewise.
66445         * lib/count-one-bits.h: Likewise.
66446         * lib/crc.c: Likewise.
66447         * lib/crc.h: Likewise.
66448         * lib/creat-safer.c: Likewise.
66449         * lib/csharpcomp.c: Likewise.
66450         * lib/csharpcomp.h: Likewise.
66451         * lib/csharpexec.c: Likewise.
66452         * lib/csharpexec.h: Likewise.
66453         * lib/cycle-check.c: Likewise.
66454         * lib/cycle-check.h: Likewise.
66455         * lib/diacrit.c: Likewise.
66456         * lib/diacrit.h: Likewise.
66457         * lib/diffseq.h: Likewise.
66458         * lib/dirchownmod.c: Likewise.
66459         * lib/dirent.in.h: Likewise.
66460         * lib/dirfd.c: Likewise.
66461         * lib/dirfd.h: Likewise.
66462         * lib/dirname.c: Likewise.
66463         * lib/dirname.h: Likewise.
66464         * lib/dummy.c: Likewise.
66465         * lib/dup-safer.c: Likewise.
66466         * lib/dup2.c: Likewise.
66467         * lib/eealloc.h: Likewise.
66468         * lib/error.c: Likewise.
66469         * lib/error.h: Likewise.
66470         * lib/euidaccess.c: Likewise.
66471         * lib/exclude.c: Likewise.
66472         * lib/exclude.h: Likewise.
66473         * lib/execute.c: Likewise.
66474         * lib/execute.h: Likewise.
66475         * lib/exitfail.c: Likewise.
66476         * lib/exitfail.h: Likewise.
66477         * lib/expl.c: Likewise.
66478         * lib/fatal-signal.c: Likewise.
66479         * lib/fatal-signal.h: Likewise.
66480         * lib/fbufmode.c: Likewise.
66481         * lib/fbufmode.h: Likewise.
66482         * lib/fchdir.c: Likewise.
66483         * lib/fchmodat.c: Likewise.
66484         * lib/fchownat.c: Likewise.
66485         * lib/fcntl--.h: Likewise.
66486         * lib/fcntl-safer.h: Likewise.
66487         * lib/fcntl.in.h: Likewise.
66488         * lib/fd-safer.c: Likewise.
66489         * lib/fflush.c: Likewise.
66490         * lib/file-has-acl.c: Likewise.
66491         * lib/file-set.c: Likewise.
66492         * lib/file-type.c: Likewise.
66493         * lib/file-type.h: Likewise.
66494         * lib/fileblocks.c: Likewise.
66495         * lib/filemode.c: Likewise.
66496         * lib/filemode.h: Likewise.
66497         * lib/filename.h: Likewise.
66498         * lib/filenamecat.c: Likewise.
66499         * lib/filenamecat.h: Likewise.
66500         * lib/findprog.c: Likewise.
66501         * lib/findprog.h: Likewise.
66502         * lib/float.in.h: Likewise.
66503         * lib/floor.c: Likewise.
66504         * lib/floorf.c: Likewise.
66505         * lib/floorl.c: Likewise.
66506         * lib/fopen-safer.c: Likewise.
66507         * lib/fopen.c: Likewise.
66508         * lib/fpending.c: Likewise.
66509         * lib/fpending.h: Likewise.
66510         * lib/fprintf.c: Likewise.
66511         * lib/fprintftime.h: Likewise.
66512         * lib/fpucw.h: Likewise.
66513         * lib/fpurge.c: Likewise.
66514         * lib/fpurge.h: Likewise.
66515         * lib/freadable.c: Likewise.
66516         * lib/freadable.h: Likewise.
66517         * lib/freadahead.c: Likewise.
66518         * lib/freadahead.h: Likewise.
66519         * lib/freading.c: Likewise.
66520         * lib/freading.h: Likewise.
66521         * lib/free.c: Likewise.
66522         * lib/freopen.c: Likewise.
66523         * lib/frexp.c: Likewise.
66524         * lib/frexpl.c: Likewise.
66525         * lib/fseek.c: Likewise.
66526         * lib/fseterr.c: Likewise.
66527         * lib/fseterr.h: Likewise.
66528         * lib/fstatat.c: Likewise.
66529         * lib/fstrcmp.c: Likewise.
66530         * lib/fstrcmp.h: Likewise.
66531         * lib/fsusage.c: Likewise.
66532         * lib/fsusage.h: Likewise.
66533         * lib/ftell.c: Likewise.
66534         * lib/ftello.c: Likewise.
66535         * lib/fts-cycle.c: Likewise.
66536         * lib/fts.c: Likewise.
66537         * lib/fts_.h: Likewise.
66538         * lib/full-read.c: Likewise.
66539         * lib/full-read.h: Likewise.
66540         * lib/full-write.c: Likewise.
66541         * lib/full-write.h: Likewise.
66542         * lib/fwritable.c: Likewise.
66543         * lib/fwritable.h: Likewise.
66544         * lib/fwriteerror.c: Likewise.
66545         * lib/fwriteerror.h: Likewise.
66546         * lib/fwriting.c: Likewise.
66547         * lib/fwriting.h: Likewise.
66548         * lib/gcd.c: Likewise.
66549         * lib/gcd.h: Likewise.
66550         * lib/getcwd.c: Likewise.
66551         * lib/getdate.h: Likewise.
66552         * lib/getdate.y: Likewise.
66553         * lib/getdomainname.c: Likewise.
66554         * lib/getdomainname.h: Likewise.
66555         * lib/getgroups.c: Likewise.
66556         * lib/gethostname.c: Likewise.
66557         * lib/gethrxtime.c: Likewise.
66558         * lib/gethrxtime.h: Likewise.
66559         * lib/getloadavg.c: Likewise.
66560         * lib/getndelim2.c: Likewise.
66561         * lib/getndelim2.h: Likewise.
66562         * lib/getnline.c: Likewise.
66563         * lib/getnline.h: Likewise.
66564         * lib/getopt.c: Likewise.
66565         * lib/getopt.in.h: Likewise.
66566         * lib/getopt1.c: Likewise.
66567         * lib/getopt_int.h: Likewise.
66568         * lib/getpagesize.h: Likewise.
66569         * lib/getsubopt.c: Likewise.
66570         * lib/gettime.c: Likewise.
66571         * lib/getugroups.c: Likewise.
66572         * lib/getugroups.h: Likewise.
66573         * lib/getusershell.c: Likewise.
66574         * lib/gl_anyavltree_list1.h: Likewise.
66575         * lib/gl_anyavltree_list2.h: Likewise.
66576         * lib/gl_anyhash_list1.h: Likewise.
66577         * lib/gl_anyhash_list2.h: Likewise.
66578         * lib/gl_anylinked_list1.h: Likewise.
66579         * lib/gl_anylinked_list2.h: Likewise.
66580         * lib/gl_anyrbtree_list1.h: Likewise.
66581         * lib/gl_anyrbtree_list2.h: Likewise.
66582         * lib/gl_anytree_list1.h: Likewise.
66583         * lib/gl_anytree_list2.h: Likewise.
66584         * lib/gl_anytree_oset.h: Likewise.
66585         * lib/gl_anytreehash_list1.h: Likewise.
66586         * lib/gl_anytreehash_list2.h: Likewise.
66587         * lib/gl_array_list.c: Likewise.
66588         * lib/gl_array_list.h: Likewise.
66589         * lib/gl_array_oset.c: Likewise.
66590         * lib/gl_array_oset.h: Likewise.
66591         * lib/gl_avltree_list.c: Likewise.
66592         * lib/gl_avltree_list.h: Likewise.
66593         * lib/gl_avltree_oset.c: Likewise.
66594         * lib/gl_avltree_oset.h: Likewise.
66595         * lib/gl_avltreehash_list.c: Likewise.
66596         * lib/gl_avltreehash_list.h: Likewise.
66597         * lib/gl_carray_list.c: Likewise.
66598         * lib/gl_carray_list.h: Likewise.
66599         * lib/gl_linked_list.c: Likewise.
66600         * lib/gl_linked_list.h: Likewise.
66601         * lib/gl_linkedhash_list.c: Likewise.
66602         * lib/gl_linkedhash_list.h: Likewise.
66603         * lib/gl_list.c: Likewise.
66604         * lib/gl_list.h: Likewise.
66605         * lib/gl_oset.c: Likewise.
66606         * lib/gl_oset.h: Likewise.
66607         * lib/gl_rbtree_list.c: Likewise.
66608         * lib/gl_rbtree_list.h: Likewise.
66609         * lib/gl_rbtree_oset.c: Likewise.
66610         * lib/gl_rbtree_oset.h: Likewise.
66611         * lib/gl_rbtreehash_list.c: Likewise.
66612         * lib/gl_rbtreehash_list.h: Likewise.
66613         * lib/gl_sublist.c: Likewise.
66614         * lib/gl_sublist.h: Likewise.
66615         * lib/group-member.c: Likewise.
66616         * lib/group-member.h: Likewise.
66617         * lib/hard-locale.c: Likewise.
66618         * lib/hard-locale.h: Likewise.
66619         * lib/hash-pjw.c: Likewise.
66620         * lib/hash-pjw.h: Likewise.
66621         * lib/hash-triple.c: Likewise.
66622         * lib/hash.c: Likewise.
66623         * lib/hash.h: Likewise.
66624         * lib/human.c: Likewise.
66625         * lib/human.h: Likewise.
66626         * lib/i-ring.c: Likewise.
66627         * lib/i-ring.h: Likewise.
66628         * lib/idcache.c: Likewise.
66629         * lib/imaxabs.c: Likewise.
66630         * lib/imaxdiv.c: Likewise.
66631         * lib/inet_pton.c: Likewise.
66632         * lib/inet_pton.h: Likewise.
66633         * lib/intprops.h: Likewise.
66634         * lib/inttostr.c: Likewise.
66635         * lib/inttostr.h: Likewise.
66636         * lib/inttypes.in.h: Likewise.
66637         * lib/isapipe.c: Likewise.
66638         * lib/isdir.c: Likewise.
66639         * lib/isnan.c: Likewise.
66640         * lib/isnan.h: Likewise.
66641         * lib/isnanf.c: Likewise.
66642         * lib/isnanf.h: Likewise.
66643         * lib/isnanl-nolibm.h: Likewise.
66644         * lib/isnanl.c: Likewise.
66645         * lib/isnanl.h: Likewise.
66646         * lib/javacomp.c: Likewise.
66647         * lib/javacomp.h: Likewise.
66648         * lib/javaexec.c: Likewise.
66649         * lib/javaexec.h: Likewise.
66650         * lib/javaversion.c: Likewise.
66651         * lib/javaversion.h: Likewise.
66652         * lib/javaversion.java: Likewise.
66653         * lib/lbrkprop.h: Likewise.
66654         * lib/lchmod.h: Likewise.
66655         * lib/lchown.c: Likewise.
66656         * lib/ldexpl.c: Likewise.
66657         * lib/linebreak.c: Likewise.
66658         * lib/linebreak.h: Likewise.
66659         * lib/linebuffer.c: Likewise.
66660         * lib/linebuffer.h: Likewise.
66661         * lib/locale.in.h: Likewise.
66662         * lib/logl.c: Likewise.
66663         * lib/long-options.c: Likewise.
66664         * lib/long-options.h: Likewise.
66665         * lib/lstat.c: Likewise.
66666         * lib/lstat.h: Likewise.
66667         * lib/math.in.h: Likewise.
66668         * lib/mbchar.c: Likewise.
66669         * lib/mbchar.h: Likewise.
66670         * lib/mbfile.h: Likewise.
66671         * lib/mbiter.h: Likewise.
66672         * lib/mbscasecmp.c: Likewise.
66673         * lib/mbscasestr.c: Likewise.
66674         * lib/mbschr.c: Likewise.
66675         * lib/mbscspn.c: Likewise.
66676         * lib/mbslen.c: Likewise.
66677         * lib/mbsncasecmp.c: Likewise.
66678         * lib/mbsnlen.c: Likewise.
66679         * lib/mbspbrk.c: Likewise.
66680         * lib/mbspcasecmp.c: Likewise.
66681         * lib/mbsrchr.c: Likewise.
66682         * lib/mbssep.c: Likewise.
66683         * lib/mbsspn.c: Likewise.
66684         * lib/mbsstr.c: Likewise.
66685         * lib/mbstok_r.c: Likewise.
66686         * lib/mbswidth.c: Likewise.
66687         * lib/mbswidth.h: Likewise.
66688         * lib/mbuiter.h: Likewise.
66689         * lib/memcasecmp.c: Likewise.
66690         * lib/memcasecmp.h: Likewise.
66691         * lib/memchr.c: Likewise.
66692         * lib/memcmp.c: Likewise.
66693         * lib/memcoll.c: Likewise.
66694         * lib/memcoll.h: Likewise.
66695         * lib/memcpy.c: Likewise.
66696         * lib/memrchr.c: Likewise.
66697         * lib/mkancesdirs.c: Likewise.
66698         * lib/mkdir-p.c: Likewise.
66699         * lib/mkdir-p.h: Likewise.
66700         * lib/mkdir.c: Likewise.
66701         * lib/mkdirat.c: Likewise.
66702         * lib/mkdtemp.c: Likewise.
66703         * lib/mkstemp-safer.c: Likewise.
66704         * lib/mkstemp.c: Likewise.
66705         * lib/modechange.c: Likewise.
66706         * lib/modechange.h: Likewise.
66707         * lib/mountlist.c: Likewise.
66708         * lib/mountlist.h: Likewise.
66709         * lib/mpsort.c: Likewise.
66710         * lib/nanosleep.c: Likewise.
66711         * lib/obstack.c: Likewise.
66712         * lib/obstack.h: Likewise.
66713         * lib/open-safer.c: Likewise.
66714         * lib/open.c: Likewise.
66715         * lib/openat-die.c: Likewise.
66716         * lib/openat-priv.h: Likewise.
66717         * lib/openat-proc.c: Likewise.
66718         * lib/openat.c: Likewise.
66719         * lib/openat.h: Likewise.
66720         * lib/pagealign_alloc.c: Likewise.
66721         * lib/pagealign_alloc.h: Likewise.
66722         * lib/physmem.c: Likewise.
66723         * lib/physmem.h: Likewise.
66724         * lib/pipe-safer.c: Likewise.
66725         * lib/pipe.c: Likewise.
66726         * lib/pipe.h: Likewise.
66727         * lib/posixtm.c: Likewise.
66728         * lib/posixtm.h: Likewise.
66729         * lib/posixver.c: Likewise.
66730         * lib/printf-frexp.c: Likewise.
66731         * lib/printf-frexp.h: Likewise.
66732         * lib/printf-frexpl.c: Likewise.
66733         * lib/printf-frexpl.h: Likewise.
66734         * lib/printf.c: Likewise.
66735         * lib/progname.c: Likewise.
66736         * lib/progname.h: Likewise.
66737         * lib/progreloc.c: Likewise.
66738         * lib/putenv.c: Likewise.
66739         * lib/quote.c: Likewise.
66740         * lib/quote.h: Likewise.
66741         * lib/quotearg.c: Likewise.
66742         * lib/quotearg.h: Likewise.
66743         * lib/raise.c: Likewise.
66744         * lib/readline.c: Likewise.
66745         * lib/readline.h: Likewise.
66746         * lib/readlink.c: Likewise.
66747         * lib/readtokens.c: Likewise.
66748         * lib/readtokens.h: Likewise.
66749         * lib/readtokens0.c: Likewise.
66750         * lib/readtokens0.h: Likewise.
66751         * lib/readutmp.c: Likewise.
66752         * lib/readutmp.h: Likewise.
66753         * lib/realloc.c: Likewise.
66754         * lib/relocwrapper.c: Likewise.
66755         * lib/rename-dest-slash.c: Likewise.
66756         * lib/rename.c: Likewise.
66757         * lib/rmdir.c: Likewise.
66758         * lib/rpmatch.c: Likewise.
66759         * lib/safe-read.c: Likewise.
66760         * lib/safe-read.h: Likewise.
66761         * lib/safe-write.c: Likewise.
66762         * lib/safe-write.h: Likewise.
66763         * lib/same-inode.h: Likewise.
66764         * lib/same.c: Likewise.
66765         * lib/same.h: Likewise.
66766         * lib/save-cwd.c: Likewise.
66767         * lib/save-cwd.h: Likewise.
66768         * lib/savedir.c: Likewise.
66769         * lib/savedir.h: Likewise.
66770         * lib/savewd.c: Likewise.
66771         * lib/savewd.h: Likewise.
66772         * lib/search.in.h: Likewise.
66773         * lib/setenv.c: Likewise.
66774         * lib/setenv.h: Likewise.
66775         * lib/settime.c: Likewise.
66776         * lib/sh-quote.c: Likewise.
66777         * lib/sh-quote.h: Likewise.
66778         * lib/sig2str.c: Likewise.
66779         * lib/sig2str.h: Likewise.
66780         * lib/signal.in.h: Likewise.
66781         * lib/signbitd.c: Likewise.
66782         * lib/signbitf.c: Likewise.
66783         * lib/signbitl.c: Likewise.
66784         * lib/sigprocmask.c: Likewise.
66785         * lib/sincosl.c: Likewise.
66786         * lib/sleep.c: Likewise.
66787         * lib/sprintf.c: Likewise.
66788         * lib/sqrtl.c: Likewise.
66789         * lib/stat-time.h: Likewise.
66790         * lib/stdio--.h: Likewise.
66791         * lib/stdio-safer.h: Likewise.
66792         * lib/stdlib--.h: Likewise.
66793         * lib/stdlib-safer.h: Likewise.
66794         * lib/stdlib.in.h: Likewise.
66795         * lib/stpcpy.c: Likewise.
66796         * lib/stpncpy.c: Likewise.
66797         * lib/strchrnul.c: Likewise.
66798         * lib/strcspn.c: Likewise.
66799         * lib/strerror.c: Likewise.
66800         * lib/strftime.c: Likewise.
66801         * lib/strftime.h: Likewise.
66802         * lib/striconveh.c: Likewise.
66803         * lib/striconveh.h: Likewise.
66804         * lib/striconveha.c: Likewise.
66805         * lib/striconveha.h: Likewise.
66806         * lib/stripslash.c: Likewise.
66807         * lib/strnlen1.c: Likewise.
66808         * lib/strnlen1.h: Likewise.
66809         * lib/strtod.c: Likewise.
66810         * lib/strtoimax.c: Likewise.
66811         * lib/strtok_r.c: Likewise.
66812         * lib/strtol.c: Likewise.
66813         * lib/strtoll.c: Likewise.
66814         * lib/strtoul.c: Likewise.
66815         * lib/strtoull.c: Likewise.
66816         * lib/sysexits.in.h: Likewise.
66817         * lib/tempname.c: Likewise.
66818         * lib/tempname.h: Likewise.
66819         * lib/timespec.h: Likewise.
66820         * lib/tls.c: Likewise.
66821         * lib/tls.h: Likewise.
66822         * lib/tmpdir.c: Likewise.
66823         * lib/tmpdir.h: Likewise.
66824         * lib/tmpfile-safer.c: Likewise.
66825         * lib/tmpfile.c: Likewise.
66826         * lib/trigl.c: Likewise.
66827         * lib/trigl.h: Likewise.
66828         * lib/trim.c: Likewise.
66829         * lib/trim.h: Likewise.
66830         * lib/trunc.c: Likewise.
66831         * lib/truncf.c: Likewise.
66832         * lib/truncl.c: Likewise.
66833         * lib/tsearch.c: Likewise.
66834         * lib/unicodeio.c: Likewise.
66835         * lib/unicodeio.h: Likewise.
66836         * lib/unistd--.h: Likewise.
66837         * lib/unistd-safer.h: Likewise.
66838         * lib/unistdio/ulc-fprintf.c: Likewise.
66839         * lib/unistdio/ulc-vfprintf.c: Likewise.
66840         * lib/unlinkdir.c: Likewise.
66841         * lib/unlinkdir.h: Likewise.
66842         * lib/unlocked-io.h: Likewise.
66843         * lib/unsetenv.c: Likewise.
66844         * lib/userspec.c: Likewise.
66845         * lib/utime.c: Likewise.
66846         * lib/utimecmp.c: Likewise.
66847         * lib/utimecmp.h: Likewise.
66848         * lib/utimens.c: Likewise.
66849         * lib/verify.h: Likewise.
66850         * lib/verror.c: Likewise.
66851         * lib/verror.h: Likewise.
66852         * lib/version-etc-fsf.c: Likewise.
66853         * lib/version-etc.c: Likewise.
66854         * lib/version-etc.h: Likewise.
66855         * lib/vfprintf.c: Likewise.
66856         * lib/vprintf.c: Likewise.
66857         * lib/vsprintf.c: Likewise.
66858         * lib/w32spawn.h: Likewise.
66859         * lib/wait-process.c: Likewise.
66860         * lib/wait-process.h: Likewise.
66861         * lib/wcwidth.c: Likewise.
66862         * lib/write-any-file.c: Likewise.
66863         * lib/xalloc-die.c: Likewise.
66864         * lib/xalloc.h: Likewise.
66865         * lib/xasprintf.c: Likewise.
66866         * lib/xgetcwd.c: Likewise.
66867         * lib/xgetcwd.h: Likewise.
66868         * lib/xgetdomainname.c: Likewise.
66869         * lib/xgetdomainname.h: Likewise.
66870         * lib/xgethostname.c: Likewise.
66871         * lib/xmalloc.c: Likewise.
66872         * lib/xmalloca.c: Likewise.
66873         * lib/xmalloca.h: Likewise.
66874         * lib/xmemcoll.c: Likewise.
66875         * lib/xnanosleep.c: Likewise.
66876         * lib/xreadlink.c: Likewise.
66877         * lib/xreadlink.h: Likewise.
66878         * lib/xsetenv.c: Likewise.
66879         * lib/xsetenv.h: Likewise.
66880         * lib/xstriconv.c: Likewise.
66881         * lib/xstriconv.h: Likewise.
66882         * lib/xstrndup.c: Likewise.
66883         * lib/xstrndup.h: Likewise.
66884         * lib/xstrtod.c: Likewise.
66885         * lib/xstrtod.h: Likewise.
66886         * lib/xstrtol-error.c: Likewise.
66887         * lib/xstrtol.c: Likewise.
66888         * lib/xstrtol.h: Likewise.
66889         * lib/xtime.h: Likewise.
66890         * lib/xvasprintf.c: Likewise.
66891         * lib/xvasprintf.h: Likewise.
66892         * lib/yesno.c: Likewise.
66893         * lib/yesno.h: Likewise.
66894         * posix-modules: Likewise.
66895         * tests/test-alloca-opt.c: Likewise.
66896         * tests/test-arcfour.c: Likewise.
66897         * tests/test-arctwo.c: Likewise.
66898         * tests/test-argmatch.c: Likewise.
66899         * tests/test-argp-2.sh: Likewise.
66900         * tests/test-argp.c: Likewise.
66901         * tests/test-arpa_inet.c: Likewise.
66902         * tests/test-array_list.c: Likewise.
66903         * tests/test-array_oset.c: Likewise.
66904         * tests/test-atexit.c: Likewise.
66905         * tests/test-avltree_list.c: Likewise.
66906         * tests/test-avltree_oset.c: Likewise.
66907         * tests/test-avltreehash_list.c: Likewise.
66908         * tests/test-base64.c: Likewise.
66909         * tests/test-binary-io.c: Likewise.
66910         * tests/test-byteswap.c: Likewise.
66911         * tests/test-c-ctype.c: Likewise.
66912         * tests/test-c-strcasecmp.c: Likewise.
66913         * tests/test-c-strcasestr.c: Likewise.
66914         * tests/test-c-strncasecmp.c: Likewise.
66915         * tests/test-c-strstr.c: Likewise.
66916         * tests/test-canonicalize-lgpl.c: Likewise.
66917         * tests/test-canonicalize.c: Likewise.
66918         * tests/test-carray_list.c: Likewise.
66919         * tests/test-ceilf.c: Likewise.
66920         * tests/test-ceill.c: Likewise.
66921         * tests/test-count-one-bits.c: Likewise.
66922         * tests/test-crc.c: Likewise.
66923         * tests/test-dirname.c: Likewise.
66924         * tests/test-fbufmode.c: Likewise.
66925         * tests/test-fcntl.c: Likewise.
66926         * tests/test-fflush.c: Likewise.
66927         * tests/test-floorf.c: Likewise.
66928         * tests/test-floorl.c: Likewise.
66929         * tests/test-fopen.c: Likewise.
66930         * tests/test-fprintf-posix.c: Likewise.
66931         * tests/test-fprintf-posix.h: Likewise.
66932         * tests/test-fpurge.c: Likewise.
66933         * tests/test-freadable.c: Likewise.
66934         * tests/test-freadahead.c: Likewise.
66935         * tests/test-freading.c: Likewise.
66936         * tests/test-freopen.c: Likewise.
66937         * tests/test-frexp.c: Likewise.
66938         * tests/test-frexpl.c: Likewise.
66939         * tests/test-fseek.c: Likewise.
66940         * tests/test-fseeko.c: Likewise.
66941         * tests/test-fseterr.c: Likewise.
66942         * tests/test-fstrcmp.c: Likewise.
66943         * tests/test-ftell.c: Likewise.
66944         * tests/test-ftello.c: Likewise.
66945         * tests/test-fwritable.c: Likewise.
66946         * tests/test-fwriting.c: Likewise.
66947         * tests/test-getaddrinfo.c: Likewise.
66948         * tests/test-getpass.c: Likewise.
66949         * tests/test-gettimeofday.c: Likewise.
66950         * tests/test-hmac-md5.c: Likewise.
66951         * tests/test-hmac-sha1.c: Likewise.
66952         * tests/test-iconv.c: Likewise.
66953         * tests/test-iconvme.c: Likewise.
66954         * tests/test-inttypes.c: Likewise.
66955         * tests/test-isnan.c: Likewise.
66956         * tests/test-isnanf.c: Likewise.
66957         * tests/test-isnanl-nolibm.c: Likewise.
66958         * tests/test-isnanl.c: Likewise.
66959         * tests/test-isnanl.h: Likewise.
66960         * tests/test-ldexpl.c: Likewise.
66961         * tests/test-linked_list.c: Likewise.
66962         * tests/test-linkedhash_list.c: Likewise.
66963         * tests/test-locale.c: Likewise.
66964         * tests/test-localename.c: Likewise.
66965         * tests/test-lock.c: Likewise.
66966         * tests/test-lseek.c: Likewise.
66967         * tests/test-malloca.c: Likewise.
66968         * tests/test-math.c: Likewise.
66969         * tests/test-mbscasecmp.c: Likewise.
66970         * tests/test-mbscasestr1.c: Likewise.
66971         * tests/test-mbscasestr2.c: Likewise.
66972         * tests/test-mbscasestr3.c: Likewise.
66973         * tests/test-mbscasestr4.c: Likewise.
66974         * tests/test-mbschr.c: Likewise.
66975         * tests/test-mbscspn.c: Likewise.
66976         * tests/test-mbsncasecmp.c: Likewise.
66977         * tests/test-mbspbrk.c: Likewise.
66978         * tests/test-mbspcasecmp.c: Likewise.
66979         * tests/test-mbsrchr.c: Likewise.
66980         * tests/test-mbsspn.c: Likewise.
66981         * tests/test-mbsstr1.c: Likewise.
66982         * tests/test-mbsstr2.c: Likewise.
66983         * tests/test-mbsstr3.c: Likewise.
66984         * tests/test-md5.c: Likewise.
66985         * tests/test-memmem.c: Likewise.
66986         * tests/test-netinet_in.c: Likewise.
66987         * tests/test-open.c: Likewise.
66988         * tests/test-printf-frexp.c: Likewise.
66989         * tests/test-printf-frexpl.c: Likewise.
66990         * tests/test-printf-posix.c: Likewise.
66991         * tests/test-printf-posix.h: Likewise.
66992         * tests/test-rbtree_list.c: Likewise.
66993         * tests/test-rbtree_oset.c: Likewise.
66994         * tests/test-rbtreehash_list.c: Likewise.
66995         * tests/test-read-file.c: Likewise.
66996         * tests/test-rijndael.c: Likewise.
66997         * tests/test-search.c: Likewise.
66998         * tests/test-signbit.c: Likewise.
66999         * tests/test-sleep.c: Likewise.
67000         * tests/test-snprintf-posix.c: Likewise.
67001         * tests/test-snprintf-posix.h: Likewise.
67002         * tests/test-snprintf.c: Likewise.
67003         * tests/test-sprintf-posix.c: Likewise.
67004         * tests/test-sprintf-posix.h: Likewise.
67005         * tests/test-stat-time.c: Likewise.
67006         * tests/test-stdbool.c: Likewise.
67007         * tests/test-stdint.c: Likewise.
67008         * tests/test-stdio.c: Likewise.
67009         * tests/test-stdlib.c: Likewise.
67010         * tests/test-stpncpy.c: Likewise.
67011         * tests/test-strcasestr.c: Likewise.
67012         * tests/test-striconv.c: Likewise.
67013         * tests/test-striconveh.c: Likewise.
67014         * tests/test-striconveha.c: Likewise.
67015         * tests/test-string.c: Likewise.
67016         * tests/test-sys_select.c: Likewise.
67017         * tests/test-sys_socket.c: Likewise.
67018         * tests/test-sys_stat.c: Likewise.
67019         * tests/test-sys_time.c: Likewise.
67020         * tests/test-sysexits.c: Likewise.
67021         * tests/test-time.c: Likewise.
67022         * tests/test-tls.c: Likewise.
67023         * tests/test-trunc.c: Likewise.
67024         * tests/test-truncf.c: Likewise.
67025         * tests/test-truncl.c: Likewise.
67026         * tests/test-unistd.c: Likewise.
67027         * tests/test-vasnprintf-posix.c: Likewise.
67028         * tests/test-vasnprintf-posix2.c: Likewise.
67029         * tests/test-vasnprintf.c: Likewise.
67030         * tests/test-vasprintf-posix.c: Likewise.
67031         * tests/test-vasprintf.c: Likewise.
67032         * tests/test-verify.c: Likewise.
67033         * tests/test-vfprintf-posix.c: Likewise.
67034         * tests/test-vprintf-posix.c: Likewise.
67035         * tests/test-vsnprintf-posix.c: Likewise.
67036         * tests/test-vsnprintf.c: Likewise.
67037         * tests/test-vsprintf-posix.c: Likewise.
67038         * tests/test-wchar.c: Likewise.
67039         * tests/test-wctype.c: Likewise.
67040         * tests/test-wcwidth.c: Likewise.
67041         * tests/test-xstrtol.c: Likewise.
67042         * tests/test-xvasprintf.c: Likewise.
67043         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67044         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67045         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67046         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67047         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67048         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67049         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67050         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67051         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67052         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67053         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67054         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67055         * tests/uniname/test-uninames.c: Likewise.
67056         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67057         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67058         * tests/unistdio/test-u16-printf1.h: Likewise.
67059         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67060         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67061         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67062         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67063         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67064         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67065         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67066         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67067         * tests/unistdio/test-u32-printf1.h: Likewise.
67068         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67069         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67070         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67071         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67072         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67073         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67074         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67075         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67076         * tests/unistdio/test-u8-printf1.h: Likewise.
67077         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67078         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67079         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67080         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67081         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67082         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67083         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67084         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67085         * tests/unistdio/test-ulc-printf1.h: Likewise.
67086         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67087         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67088         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67089         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67090         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67091         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67092         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67093         * tests/uniwidth/test-u16-width.c: Likewise.
67094         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67095         * tests/uniwidth/test-u32-width.c: Likewise.
67096         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67097         * tests/uniwidth/test-u8-width.c: Likewise.
67098         * tests/uniwidth/test-uc_width.c: Likewise.
67099         * config/srclist-update: Likewise.
67100         (fixlicense): Update to GPLv3+.
67101
67102         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67103         * tests/test-tsearch.c: Change copyright notice.
67104
67105         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67106         * lib/c-strcaseeq.h: Change copyright notice.
67107         * lib/streq.h: Likewise.
67108         * lib/uniconv.h: Likewise.
67109         * lib/uniconv/u-conv-from-enc.h: Likewise.
67110         * lib/uniconv/u-conv-to-enc.h: Likewise.
67111         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67112         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67113         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67114         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67115         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67116         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67117         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67118         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67119         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67120         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67121         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67122         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67123         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67124         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67125         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67126         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67127         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67128         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67129         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67130         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67131         * lib/uniname.h: Likewise.
67132         * lib/uniname/uniname.c: Likewise.
67133         * lib/unistdio.h: Likewise.
67134         * lib/unistdio/u-asnprintf.h: Likewise.
67135         * lib/unistdio/u-asprintf.h: Likewise.
67136         * lib/unistdio/u-printf-args.c: Likewise.
67137         * lib/unistdio/u-printf-args.h: Likewise.
67138         * lib/unistdio/u-printf-parse.h: Likewise.
67139         * lib/unistdio/u-snprintf.h: Likewise.
67140         * lib/unistdio/u-sprintf.h: Likewise.
67141         * lib/unistdio/u-vasprintf.h: Likewise.
67142         * lib/unistdio/u-vsnprintf.h: Likewise.
67143         * lib/unistdio/u-vsprintf.h: Likewise.
67144         * lib/unistdio/u16-asnprintf.c: Likewise.
67145         * lib/unistdio/u16-asprintf.c: Likewise.
67146         * lib/unistdio/u16-printf-parse.c: Likewise.
67147         * lib/unistdio/u16-snprintf.c: Likewise.
67148         * lib/unistdio/u16-sprintf.c: Likewise.
67149         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67150         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67151         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67152         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67153         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67154         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67155         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67156         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67157         * lib/unistdio/u16-vasnprintf.c: Likewise.
67158         * lib/unistdio/u16-vasprintf.c: Likewise.
67159         * lib/unistdio/u16-vsnprintf.c: Likewise.
67160         * lib/unistdio/u16-vsprintf.c: Likewise.
67161         * lib/unistdio/u32-asnprintf.c: Likewise.
67162         * lib/unistdio/u32-asprintf.c: Likewise.
67163         * lib/unistdio/u32-printf-parse.c: Likewise.
67164         * lib/unistdio/u32-snprintf.c: Likewise.
67165         * lib/unistdio/u32-sprintf.c: Likewise.
67166         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67167         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67168         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67169         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67170         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67171         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67172         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67173         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67174         * lib/unistdio/u32-vasnprintf.c: Likewise.
67175         * lib/unistdio/u32-vasprintf.c: Likewise.
67176         * lib/unistdio/u32-vsnprintf.c: Likewise.
67177         * lib/unistdio/u32-vsprintf.c: Likewise.
67178         * lib/unistdio/u8-asnprintf.c: Likewise.
67179         * lib/unistdio/u8-asprintf.c: Likewise.
67180         * lib/unistdio/u8-printf-parse.c: Likewise.
67181         * lib/unistdio/u8-snprintf.c: Likewise.
67182         * lib/unistdio/u8-sprintf.c: Likewise.
67183         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67184         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67185         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67186         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67187         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67188         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67189         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67190         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67191         * lib/unistdio/u8-vasnprintf.c: Likewise.
67192         * lib/unistdio/u8-vasprintf.c: Likewise.
67193         * lib/unistdio/u8-vsnprintf.c: Likewise.
67194         * lib/unistdio/u8-vsprintf.c: Likewise.
67195         * lib/unistdio/ulc-asnprintf.c: Likewise.
67196         * lib/unistdio/ulc-asprintf.c: Likewise.
67197         * lib/unistdio/ulc-printf-parse.c: Likewise.
67198         * lib/unistdio/ulc-snprintf.c: Likewise.
67199         * lib/unistdio/ulc-sprintf.c: Likewise.
67200         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67201         * lib/unistdio/ulc-vasprintf.c: Likewise.
67202         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67203         * lib/unistdio/ulc-vsprintf.c: Likewise.
67204         * lib/unistr.h: Likewise.
67205         * lib/unistr/u-cpy-alloc.h: Likewise.
67206         * lib/unistr/u-cpy.h: Likewise.
67207         * lib/unistr/u-endswith.h: Likewise.
67208         * lib/unistr/u-move.h: Likewise.
67209         * lib/unistr/u-set.h: Likewise.
67210         * lib/unistr/u-startswith.h: Likewise.
67211         * lib/unistr/u-stpcpy.h: Likewise.
67212         * lib/unistr/u-stpncpy.h: Likewise.
67213         * lib/unistr/u-strcat.h: Likewise.
67214         * lib/unistr/u-strcpy.h: Likewise.
67215         * lib/unistr/u-strcspn.h: Likewise.
67216         * lib/unistr/u-strdup.h: Likewise.
67217         * lib/unistr/u-strlen.h: Likewise.
67218         * lib/unistr/u-strncat.h: Likewise.
67219         * lib/unistr/u-strncpy.h: Likewise.
67220         * lib/unistr/u-strnlen.h: Likewise.
67221         * lib/unistr/u-strpbrk.h: Likewise.
67222         * lib/unistr/u-strspn.h: Likewise.
67223         * lib/unistr/u-strstr.h: Likewise.
67224         * lib/unistr/u-strtok.h: Likewise.
67225         * lib/unistr/u16-check.c: Likewise.
67226         * lib/unistr/u16-chr.c: Likewise.
67227         * lib/unistr/u16-cmp.c: Likewise.
67228         * lib/unistr/u16-cpy-alloc.c: Likewise.
67229         * lib/unistr/u16-cpy.c: Likewise.
67230         * lib/unistr/u16-endswith.c: Likewise.
67231         * lib/unistr/u16-mblen.c: Likewise.
67232         * lib/unistr/u16-mbsnlen.c: Likewise.
67233         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67234         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67235         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67236         * lib/unistr/u16-mbtouc.c: Likewise.
67237         * lib/unistr/u16-mbtoucr.c: Likewise.
67238         * lib/unistr/u16-move.c: Likewise.
67239         * lib/unistr/u16-next.c: Likewise.
67240         * lib/unistr/u16-prev.c: Likewise.
67241         * lib/unistr/u16-set.c: Likewise.
67242         * lib/unistr/u16-startswith.c: Likewise.
67243         * lib/unistr/u16-stpcpy.c: Likewise.
67244         * lib/unistr/u16-stpncpy.c: Likewise.
67245         * lib/unistr/u16-strcat.c: Likewise.
67246         * lib/unistr/u16-strchr.c: Likewise.
67247         * lib/unistr/u16-strcmp.c: Likewise.
67248         * lib/unistr/u16-strcpy.c: Likewise.
67249         * lib/unistr/u16-strcspn.c: Likewise.
67250         * lib/unistr/u16-strdup.c: Likewise.
67251         * lib/unistr/u16-strlen.c: Likewise.
67252         * lib/unistr/u16-strmblen.c: Likewise.
67253         * lib/unistr/u16-strmbtouc.c: Likewise.
67254         * lib/unistr/u16-strncat.c: Likewise.
67255         * lib/unistr/u16-strncmp.c: Likewise.
67256         * lib/unistr/u16-strncpy.c: Likewise.
67257         * lib/unistr/u16-strnlen.c: Likewise.
67258         * lib/unistr/u16-strpbrk.c: Likewise.
67259         * lib/unistr/u16-strrchr.c: Likewise.
67260         * lib/unistr/u16-strspn.c: Likewise.
67261         * lib/unistr/u16-strstr.c: Likewise.
67262         * lib/unistr/u16-strtok.c: Likewise.
67263         * lib/unistr/u16-to-u32.c: Likewise.
67264         * lib/unistr/u16-to-u8.c: Likewise.
67265         * lib/unistr/u16-uctomb-aux.c: Likewise.
67266         * lib/unistr/u16-uctomb.c: Likewise.
67267         * lib/unistr/u32-check.c: Likewise.
67268         * lib/unistr/u32-chr.c: Likewise.
67269         * lib/unistr/u32-cmp.c: Likewise.
67270         * lib/unistr/u32-cpy-alloc.c: Likewise.
67271         * lib/unistr/u32-cpy.c: Likewise.
67272         * lib/unistr/u32-endswith.c: Likewise.
67273         * lib/unistr/u32-mblen.c: Likewise.
67274         * lib/unistr/u32-mbsnlen.c: Likewise.
67275         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67276         * lib/unistr/u32-mbtouc.c: Likewise.
67277         * lib/unistr/u32-mbtoucr.c: Likewise.
67278         * lib/unistr/u32-move.c: Likewise.
67279         * lib/unistr/u32-next.c: Likewise.
67280         * lib/unistr/u32-prev.c: Likewise.
67281         * lib/unistr/u32-set.c: Likewise.
67282         * lib/unistr/u32-startswith.c: Likewise.
67283         * lib/unistr/u32-stpcpy.c: Likewise.
67284         * lib/unistr/u32-stpncpy.c: Likewise.
67285         * lib/unistr/u32-strcat.c: Likewise.
67286         * lib/unistr/u32-strchr.c: Likewise.
67287         * lib/unistr/u32-strcmp.c: Likewise.
67288         * lib/unistr/u32-strcpy.c: Likewise.
67289         * lib/unistr/u32-strcspn.c: Likewise.
67290         * lib/unistr/u32-strdup.c: Likewise.
67291         * lib/unistr/u32-strlen.c: Likewise.
67292         * lib/unistr/u32-strmblen.c: Likewise.
67293         * lib/unistr/u32-strmbtouc.c: Likewise.
67294         * lib/unistr/u32-strncat.c: Likewise.
67295         * lib/unistr/u32-strncmp.c: Likewise.
67296         * lib/unistr/u32-strncpy.c: Likewise.
67297         * lib/unistr/u32-strnlen.c: Likewise.
67298         * lib/unistr/u32-strpbrk.c: Likewise.
67299         * lib/unistr/u32-strrchr.c: Likewise.
67300         * lib/unistr/u32-strspn.c: Likewise.
67301         * lib/unistr/u32-strstr.c: Likewise.
67302         * lib/unistr/u32-strtok.c: Likewise.
67303         * lib/unistr/u32-to-u16.c: Likewise.
67304         * lib/unistr/u32-to-u8.c: Likewise.
67305         * lib/unistr/u32-uctomb.c: Likewise.
67306         * lib/unistr/u8-check.c: Likewise.
67307         * lib/unistr/u8-chr.c: Likewise.
67308         * lib/unistr/u8-cmp.c: Likewise.
67309         * lib/unistr/u8-cpy-alloc.c: Likewise.
67310         * lib/unistr/u8-cpy.c: Likewise.
67311         * lib/unistr/u8-endswith.c: Likewise.
67312         * lib/unistr/u8-mblen.c: Likewise.
67313         * lib/unistr/u8-mbsnlen.c: Likewise.
67314         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67315         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67316         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67317         * lib/unistr/u8-mbtouc.c: Likewise.
67318         * lib/unistr/u8-mbtoucr.c: Likewise.
67319         * lib/unistr/u8-move.c: Likewise.
67320         * lib/unistr/u8-next.c: Likewise.
67321         * lib/unistr/u8-prev.c: Likewise.
67322         * lib/unistr/u8-set.c: Likewise.
67323         * lib/unistr/u8-startswith.c: Likewise.
67324         * lib/unistr/u8-stpcpy.c: Likewise.
67325         * lib/unistr/u8-stpncpy.c: Likewise.
67326         * lib/unistr/u8-strcat.c: Likewise.
67327         * lib/unistr/u8-strchr.c: Likewise.
67328         * lib/unistr/u8-strcmp.c: Likewise.
67329         * lib/unistr/u8-strcpy.c: Likewise.
67330         * lib/unistr/u8-strcspn.c: Likewise.
67331         * lib/unistr/u8-strdup.c: Likewise.
67332         * lib/unistr/u8-strlen.c: Likewise.
67333         * lib/unistr/u8-strmblen.c: Likewise.
67334         * lib/unistr/u8-strmbtouc.c: Likewise.
67335         * lib/unistr/u8-strncat.c: Likewise.
67336         * lib/unistr/u8-strncmp.c: Likewise.
67337         * lib/unistr/u8-strncpy.c: Likewise.
67338         * lib/unistr/u8-strnlen.c: Likewise.
67339         * lib/unistr/u8-strpbrk.c: Likewise.
67340         * lib/unistr/u8-strrchr.c: Likewise.
67341         * lib/unistr/u8-strspn.c: Likewise.
67342         * lib/unistr/u8-strstr.c: Likewise.
67343         * lib/unistr/u8-strtok.c: Likewise.
67344         * lib/unistr/u8-to-u16.c: Likewise.
67345         * lib/unistr/u8-to-u32.c: Likewise.
67346         * lib/unistr/u8-uctomb-aux.c: Likewise.
67347         * lib/unistr/u8-uctomb.c: Likewise.
67348         * lib/unitypes.h: Likewise.
67349         * lib/uniwidth.h: Likewise.
67350         * lib/uniwidth/cjk.h: Likewise.
67351         * lib/uniwidth/u16-strwidth.c: Likewise.
67352         * lib/uniwidth/u16-width.c: Likewise.
67353         * lib/uniwidth/u32-strwidth.c: Likewise.
67354         * lib/uniwidth/u32-width.c: Likewise.
67355         * lib/uniwidth/u8-strwidth.c: Likewise.
67356         * lib/uniwidth/u8-width.c: Likewise.
67357         * lib/uniwidth/width.c: Likewise.
67358
67359 2007-10-07  Bruno Haible  <bruno@clisp.org>
67360
67361         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67362         The file is still under LGPL (see modules/inttypes).
67363
67364 2007-10-06  Bruno Haible  <bruno@clisp.org>
67365
67366         * modules/trunc (Dependencies): Add 'extensions'.
67367         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67368         Reported by Ben Pfaff <blp@gnu.org>.
67369
67370 2007-10-06  Bruno Haible  <bruno@clisp.org>
67371
67372         * modules/freopen-tests: New file.
67373         * tests/test-freopen.c: New file.
67374
67375         * modules/fopen-tests: New file.
67376         * tests/test-fopen.c: New file.
67377
67378         * modules/fopen: New file.
67379         * lib/fopen.c: New file.
67380         * m4/fopen.m4: New file.
67381         * modules/freopen: New file.
67382         * lib/freopen.c: New file.
67383         * m4/freopen.m4: New file.
67384         * lib/stdio.in.h (fopen, freopen): New declarations.
67385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67386         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67387         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67388         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67389         * doc/functions/fopen.texi: Mention the 'fopen' module.
67390         * doc/functions/freopen.texi: Mention the 'freopen' module.
67391
67392 2007-10-06  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/open-tests: New file.
67395         * tests/test-open.c: New file.
67396
67397         * modules/open: New file.
67398         * lib/open.c: New file.
67399         * m4/open.m4: New file.
67400         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67401         lib/open.c does.
67402         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67403         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67404         macros.
67405         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67406         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67407         REPLACE_OPEN.
67408         * doc/functions/open.texi: Mention the 'open' module.
67409
67410 2007-10-04  Bruno Haible  <bruno@clisp.org>
67411
67412         * modules/ceill-tests: New file.
67413         * tests/test-ceill.c: New file.
67414
67415         * modules/ceill: New file.
67416         * lib/ceill.c: Replace entire file.
67417         * m4/ceill.m4: New file.
67418         * lib/math.in.h (ceill): Replace declaration.
67419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67420         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67421         * doc/functions/ceill.texi: Mention the 'ceill' module.
67422         * modules/mathl (Files): Remove lib/ceill.c.
67423         (Depends-on): Add ceill.
67424
67425 2007-10-04  Bruno Haible  <bruno@clisp.org>
67426
67427         * modules/ceilf-tests: New file.
67428         * tests/test-ceilf.c: New file.
67429
67430         * modules/ceilf: New file.
67431         * lib/ceil.c: New file.
67432         * lib/ceilf.c: New file.
67433         * m4/ceilf.m4: New file.
67434         * lib/math.in.h (ceilf): New declaration.
67435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67436         HAVE_DECL_CEILF.
67437         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67438         HAVE_DECL_CEILF.
67439         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67440
67441 2007-10-04  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/floorl-tests: New file.
67444         * tests/test-floorl.c: New file.
67445
67446         * modules/floorl: New file.
67447         * lib/floorl.c: Replace entire file.
67448         * m4/floorl.m4: New file.
67449         * lib/math.in.h (floorl): Replace declaration.
67450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67451         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67452         * doc/functions/floorl.texi: Mention the 'floorl' module.
67453         * modules/mathl (Files): Remove lib/floorl.c.
67454         (Depends-on): Add floorl.
67455
67456 2007-10-04  Bruno Haible  <bruno@clisp.org>
67457
67458         * modules/floorf-tests: New file.
67459         * tests/test-floorf.c: New file.
67460
67461         * modules/floorf: New file.
67462         * lib/floor.c: New file.
67463         * lib/floorf.c: New file.
67464         * m4/floorf.m4: New file.
67465         * lib/math.in.h (floorf): New declaration.
67466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67467         HAVE_DECL_FLOORF.
67468         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67469         HAVE_DECL_FLOORF.
67470         * doc/functions/floorf.texi: Mention the 'floorf' module.
67471
67472 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67473             Bruno Haible  <bruno@clisp.org>
67474
67475         Advertise for the Git server instead of the CVS server.
67476         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67477         repository instead of the CVS one.
67478         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67479         about all VCS systems generically.
67480         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67481
67482 2007-10-04  Bruno Haible  <bruno@clisp.org>
67483
67484         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67485         means.
67486         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67487
67488 2007-10-04  Bruno Haible  <bruno@clisp.org>
67489
67490         * modules/truncl-tests: New file.
67491         * tests/test-truncl.c: New file.
67492
67493         * modules/truncl: New file.
67494         * lib/truncl.c: New file.
67495         * m4/truncl.m4: New file.
67496         * lib/math.in.h (truncl): New declaration.
67497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67498         HAVE_DECL_TRUNCL.
67499         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67500         HAVE_DECL_TRUNCL.
67501         * doc/functions/truncl.texi: Mention the 'truncl' module.
67502
67503 2007-10-04  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/truncf-tests: New file.
67506         * tests/test-truncf.c: New file.
67507
67508         * modules/truncf: New file.
67509         * lib/trunc.c: Make paramerizable through USE_* macros.
67510         * lib/truncf.c: New file.
67511         * m4/truncf.m4: New file.
67512         * lib/math.in.h (truncf): New declaration.
67513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67514         HAVE_DECL_TRUNCF.
67515         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67516         HAVE_DECL_TRUNCF.
67517         * doc/functions/truncf.texi: Mention the 'truncf' module.
67518
67519 2007-10-03  Bruno Haible  <bruno@clisp.org>
67520
67521         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67522         augmentation also for tests modules.
67523         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67524         * modules/atexit-tests (Makefile.am): Likewise.
67525         * modules/binary-io-tests (Makefile.am): Likewise.
67526         * modules/c-strcase-tests (Makefile.am): Likewise.
67527         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67528         * modules/canonicalize-tests (Makefile.am): Likewise.
67529         * modules/closein-tests (Makefile.am): Likewise.
67530         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67531         * modules/freadahead-tests (Makefile.am): Likewise.
67532         * modules/fseek-tests (Makefile.am): Likewise.
67533         * modules/fseeko-tests (Makefile.am): Likewise.
67534         * modules/ftell-tests (Makefile.am): Likewise.
67535         * modules/ftello-tests (Makefile.am): Likewise.
67536         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67537         * modules/isnanl-tests (Makefile.am): Likewise.
67538         * modules/lseek-tests (Makefile.am): Likewise.
67539         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67540         * modules/mbscasestr-tests (Makefile.am): Likewise.
67541         * modules/mbschr-tests (Makefile.am): Likewise.
67542         * modules/mbscspn-tests (Makefile.am): Likewise.
67543         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67544         * modules/mbspbrk-tests (Makefile.am): Likewise.
67545         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67546         * modules/mbsrchr-tests (Makefile.am): Likewise.
67547         * modules/mbsspn-tests (Makefile.am): Likewise.
67548         * modules/mbsstr-tests (Makefile.am): Likewise.
67549         * modules/printf-posix-tests (Makefile.am): Likewise.
67550         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67551         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67552         * modules/tsearch-tests (Makefile.am): Likewise.
67553         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67554         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67555         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67556         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67557         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67558         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67559         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67560         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67561         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67562         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67563         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67564         * modules/xstrtol-tests (Makefile.am): Likewise.
67565         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67566         * modules/yesno-tests (Makefile.am): Likewise.
67567
67568 2007-10-03  Bruno Haible  <bruno@clisp.org>
67569
67570         * modules/trunc-tests: New file.
67571         * tests/test-trunc.c: New file.
67572
67573         * modules/trunc: New file.
67574         * lib/trunc.c: New file.
67575         * m4/trunc.m4: New file.
67576         * lib/math.in.h (trunc): New declaration.
67577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67578         HAVE_DECL_TRUNC.
67579         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67580         HAVE_DECL_TRUNC.
67581         * doc/functions/trunc.texi: Mention the 'trunc' module.
67582
67583 2007-10-03  Bruno Haible  <bruno@clisp.org>
67584
67585         * tests/test-fpending.c: New file, mostly copied
67586         from coreutils/lib/t-fpending.c.
67587         * modules/fpending-tests: New file.
67588
67589 2007-10-03  Bruno Haible  <bruno@clisp.org>
67590
67591         Port the stdio extensions to QNX (untested).
67592         * lib/fseterr.c (fseterr): Add support for QNX.
67593         * lib/fbufmode.c (fbufmode): Likewise.
67594         * lib/freadable.c (freadable): Likewise.
67595         * lib/fwritable.c (fwritable): Likewise.
67596         * lib/freading.c (freading): Likewise.
67597         * lib/fwriting.c (fwriting): Likewise.
67598         * lib/freadahead.c (freadahed): Likewise.
67599         * lib/fpurge.c (fpurge): Likewise.
67600         * lib/fseeko.c (rpl_fseeko): Likewise.
67601
67602 2007-10-03  Bruno Haible  <bruno@clisp.org>
67603             Jim Meyering  <jim@meyering.net>
67604             Eric Blake  <ebb9@byu.net>
67605
67606         * doc/relocatable.texi: Use @command instead of @program.
67607
67608 2007-10-02  Jim Meyering  <jim@meyering.net>
67609
67610         Perform one more "_.h" -> ".in.h" substitution.
67611         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67612         instead of unistd_.h here, too.
67613
67614 2007-10-01  Bruno Haible  <bruno@clisp.org>
67615
67616         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67617         Needed for the alloca-opt module.
67618
67619 2007-09-30  Bruno Haible  <bruno@clisp.org>
67620
67621         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67622         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67623         alloca_.h.
67624         * lib/argz.in.h: Renamed from lib/argz_.h.
67625         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67626         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67627         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67628         byteswap_.h.
67629         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67630         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67631         dirent_.h.
67632         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67633         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67634         fcntl_.h.
67635         * lib/float.in.h: Renamed from lib/float_.h.
67636         * modules/float (Files, Makefile.am): Use float.in.h instead of
67637         float_.h.
67638         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67639         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67640         fnmatch_.h.
67641         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67642         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67643         getopt_.h.
67644         * lib/glob.in.h: Renamed from lib/glob_.h.
67645         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67646         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67647         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67648         iconv_.h.
67649         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67650         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67651         inttypes_.h.
67652         * lib/locale.in.h: Renamed from lib/locale_.h.
67653         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67654         locale_.h.
67655         * lib/math.in.h: Renamed from lib/math_.h.
67656         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67657         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67658         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67659         of netinet_in_.h. Add dependency.
67660         * lib/poll.in.h: Renamed from lib/poll_.h.
67661         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67662         * lib/search.in.h: Renamed from lib/search_.h.
67663         * modules/search (Files, Makefile.am): Use search.in.h instead of
67664         search_.h.
67665         * lib/signal.in.h: Renamed from lib/signal_.h.
67666         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67667         _signal.h.
67668         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67669         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67670         stdbool_.h.
67671         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67672         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67673         stdint_.h.
67674         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67675         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67676         stdio_.h.
67677         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67678         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67679         stdlib_.h.
67680         * lib/string.in.h: Renamed from lib/string_.h.
67681         * modules/string (Files, Makefile.am): Use string.in.h instead of
67682         string_.h.
67683         * doc/gnulib-tool.texi (Initial import): Update.
67684         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67685         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67686         of sys_select_.h. Add dependency.
67687         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67688         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67689         of sys_socket_.h.
67690         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67691         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67692         sys_stat_.h.
67693         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67694         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67695         sys_time_.h.
67696         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67697         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67698         sysexits_.h.
67699         * lib/time.in.h: Renamed from lib/time_.h.
67700         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67701         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67702         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67703         unistd_.h.
67704         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67705         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67706         wchar_.h.
67707         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67708         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67709         wctype_.h.
67710         * build-aux/bootstrap (slurp): Update.
67711         * lib/.cppi-disable: Update.
67712
67713 2007-09-30  Bruno Haible  <bruno@clisp.org>
67714
67715         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67716         Needed on BeOS.
67717
67718 2007-09-30  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67721
67722 2007-09-29  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67725
67726 2007-09-29  Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67729         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67730         * build-aux/install-reloc: Compile also areadlink.c.
67731         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67732
67733 2007-09-29  Bruno Haible  <bruno@clisp.org>
67734
67735         * gnulib-tool (func_emit_initmacro_done): Indentation.
67736
67737 2007-09-29  Bruno Haible  <bruno@clisp.org>
67738
67739         * README: Add CVS checkout update instructions.
67740         Info from Bob Proulx <bob@proulx.com>.
67741
67742 2007-09-28  Eric Blake  <ebb9@byu.net>
67743
67744         Provide move-if-change.
67745         * build-aux/move-if-change: New file, based on best practice
67746         rather than any canonical upstream location.
67747
67748 2007-09-28  Jim Meyering  <jim@meyering.net>
67749
67750         Fix canonicalize loop-detection corner case.
67751         Do not attempt to stat the symlink values stored via seen_triple.
67752         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67753         on linux-2.6.18, (but not 2.6.22).
67754         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67755         triple_compare.  The former compares dev,ino,filename, while the latter
67756         would actually stat dirname(filename) when dev and ino were equal.
67757         * lib/hash-triple.c: Install <string.h>.
67758         (STREQ): Define.
67759         (triple_compare_ino_str): New function.
67760         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67761
67762 2007-09-28  Eric Blake  <ebb9@byu.net>
67763
67764         Enforce that AC_REPLACE_FUNCS files exist.
67765         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67766         override check for typos.
67767
67768         Fix test-closein on Solaris 10.
67769         * tests/test-closein.c (main): Don't assume stdin can be inherited
67770         closed on all systems.
67771         * tests/test-closein.sh: Likewise.
67772         Reported by Piotr Tarnowski.
67773
67774 2007-09-28  Jim Meyering  <jim@meyering.net>
67775
67776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67777
67778 2007-09-27  Jim Meyering  <jim@meyering.net>
67779
67780         canonicalize: Avoid a false-positive cycle failure.
67781         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67782         Sort.  Remove cycle-check.
67783         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67784         not cycle-check.h.
67785         (seen_triple): New function.
67786         (canonicalize_filename_mode): Use it instead of cycle-check.
67787         * tests/test-canonicalize.c: Add a test for this bug.
67788         * tests/test-canonicalize.sh: Set up and run the test.
67789
67790         New module, file-set, from coreutils.
67791         * modules/file-set: Define it.
67792         * lib/file-set.c, lib/file-set.h: Implement.
67793
67794         New module, hash-triple, from coreutils.
67795         * modules/hash-triple: Define it.
67796         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67797
67798 2007-09-25  Eric Blake  <ebb9@byu.net>
67799
67800         Fix strerror on Interix.
67801         * lib/string_.h (strerror): Declare replacement.
67802         * doc/functions/strerror.texi (strerror): Document the Interix
67803         shortcoming.
67804         * modules/string (Makefile.am): Support new hooks.
67805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67806         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67807         gl_FUNC_STRERROR_SEPARATE.
67808         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67809         * lib/strerror.c (rpl_strerror): Provide replacement.
67810         * modules/strerror (Depends-on): Add string.
67811         (configure.ac): Detect use of module.
67812         * tests/test-strerror.c: New file.
67813         * modules/strerror-tests: New test module.
67814         * modules/argp (Depends-on): Add strerror.
67815         * modules/error (Depends-on): Likewise.
67816         Reported by Martin Koeppe.
67817
67818 2007-09-24  Bruno Haible  <bruno@clisp.org>
67819
67820         * README: Update git instructions.
67821
67822 2007-09-24  Eric Blake  <ebb9@byu.net>
67823
67824         Revert fpending breakage from 2007-09-08.
67825         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67826         __fpending.c.
67827
67828 2007-09-24  Jim Meyering  <jim@meyering.net>
67829
67830         filenamecat.c: Add a test.
67831         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67832         showing how the function works when DIR is the empty string.
67833
67834 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67835
67836         * tests/test-canonicalize.sh: Turn on executable bit.
67837
67838 2007-09-19  Eric Blake  <ebb9@byu.net>
67839
67840         * README: Update CVS instructions.
67841
67842 2007-09-18  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/areadlink: New file.
67845         * lib/areadlink.h (areadlink): New declaration.
67846         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67847
67848 2007-09-17  Jim Meyering  <jim@meyering.net>
67849
67850         * lib/savewd.c (ESTALE) [!defined]: Define.
67851         Reported to be required on Interix by Martin Koeppe.
67852
67853 2007-09-17  Bruno Haible  <bruno@clisp.org>
67854
67855         * gnulib-tool (func_version): Use $version.
67856
67857 2007-09-16  Bruno Haible  <bruno@clisp.org>
67858
67859         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67860         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67861         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67862         Reported by Greg Schafer <gschafer@zip.com.au>.
67863
67864 2007-09-15  Bruno Haible  <bruno@clisp.org>
67865
67866         * gnulib-tool (sed): Try a little harder to make bash understand the
67867         alias.
67868         Reported by Bruce Korb <bruce.korb@gmail.com>.
67869
67870 2007-09-13  Eric Blake  <ebb9@byu.net>
67871
67872         * ChangeLog: Remove conflict markers.
67873
67874 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67875
67876         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67877         Reported by Bruno Haible <bruno@clisp.org>.
67878
67879 2007-09-12  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67882         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67883         is not defined.
67884
67885 2007-09-12  Eric Blake  <ebb9@byu.net>
67886
67887         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67889         Autoconf definition.
67890         * modules/euidaccess (Depends-on): Add extensions, for
67891         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67892         * modules/fnmatch (Depends-on): Likewise.
67893         * modules/getaddrinfo (Depends-on): Likewise.
67894         * modules/getdelim (Depends-on): Likewise.
67895         * modules/getline (Depends-on): Likewise.
67896         * modules/getsubopt (Depends-on): Likewise.
67897         * modules/gettext (Depends-on): Likewise.
67898         * modules/group-member (Depends-on): Likewise.
67899         * modules/mbchar (Depends-on): Likewise.
67900         * modules/memmem (Depends-on): Likewise.
67901         * modules/mempcpy (Depends-on): Likewise.
67902         * modules/memrchr (Depends-on): Likewise.
67903         * modules/pagealign_alloc (Depends-on): Likewise.
67904         * modules/readutmp (Depends-on): Likewise.
67905         * modules/stpcpy (Depends-on): Likewise.
67906         * modules/stpncpy (Depends-on): Likewise.
67907         * modules/strchrnul (Depends-on): Likewise.
67908         * modules/strndup (Depends-on): Likewise.
67909         * modules/strsep (Depends-on): Likewise.
67910         * modules/strverscmp (Depends-on): Likewise.
67911         * modules/vasprintf (Depends-on): Likewise.
67912         * modules/wcwidth (Depends-on): Likewise.
67913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67914         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67915         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67917         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67918         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67919         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67920         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67921         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67922         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67927         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67928         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67929         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67930         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67933         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67934         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67935         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67937         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67939         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67940         so that lock.m4 can be used in gettext without extensions module.
67941
67942 2007-09-11  Bruno Haible  <bruno@clisp.org>
67943
67944         * m4/isc-posix.m4: Remove file.
67945         Suggested by Eric Blake.
67946
67947 2007-09-11  Eric Blake  <ebb9@byu.net>
67948
67949         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67950
67951 2007-09-10  Bruno Haible  <bruno@clisp.org>
67952
67953         * posix-modules: Fix typo in error message.
67954         Reported by Matt <mkraai@beckman.com>.
67955
67956 2007-09-09  Bruno Haible  <bruno@clisp.org>
67957
67958         * doc/functions/getdelim.texi: Update list of platforms lacking the
67959         function.
67960         * doc/functions/getline.texi: Likewise.
67961
67962 2007-09-09  Jim Meyering  <jim@meyering.net>
67963
67964         * lib/hash.c (hash_initialize): Detect calloc failure.
67965         Reported by Bruno Haible.
67966
67967 2007-09-09  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67970         malloc or realloc fails.
67971
67972 2007-09-09  Bruno Haible  <bruno@clisp.org>
67973
67974         * modules/getcwd (Depends-on): Add malloc-posix.
67975         * modules/glob (Depends-on): Likewise.
67976         * modules/putenv (Depends-on): Likewise.
67977         * modules/strdup (Depends-on): Likewise.
67978         * modules/getdelim (Depends-on): Add realloc-posix.
67979         * modules/read-file (Depends-on): Likewise.
67980
67981 2007-09-09  Bruno Haible  <bruno@clisp.org>
67982
67983         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67984         (gl_FUNC_MALLOC_POSIX): Require it.
67985         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67986         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67987         * modules/realloc (Files): Add m4/malloc.m4.
67988         * modules/calloc (Files): Likewise.
67989
67990 2007-09-09  Bruno Haible  <bruno@clisp.org>
67991
67992         * modules/malloc-posix: New file.
67993         * modules/malloc (Depends-on): Add malloc-posix.
67994         * lib/malloc.c: Include errno.h.
67995         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67996         and a POSIX-compatible malloc into a single function. Set ENOMEM
67997         when returning NULL.
67998         * m4/malloc.m4: New file.
67999         * doc/functions/malloc.texi: Mention the malloc-posix module.
68000         * lib/stdlib_.h (malloc): New declaration.
68001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68002         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68003         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68004         and HAVE_MALLOC_POSIX.
68005
68006 2007-09-09  Bruno Haible  <bruno@clisp.org>
68007
68008         * modules/realloc-posix: New file.
68009         * modules/realloc (Depends-on): Add realloc-posix.
68010         * lib/realloc.c: Include errno.h.
68011         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68012         and a POSIX-compatible realloc into a single function. Set ENOMEM
68013         when returning NULL.
68014         * m4/realloc.m4: New file.
68015         * doc/functions/realloc.texi: Mention the realloc-posix module.
68016         * lib/stdlib_.h (realloc): New declaration.
68017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68018         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68019         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68020         and HAVE_REALLOC_POSIX.
68021
68022 2007-09-09  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/calloc-posix: New file.
68025         * modules/calloc (Depends-on): Add calloc-posix.
68026         * lib/calloc.c: Include errno.h.
68027         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68028         and a POSIX-compatible calloc into a single function. Set ENOMEM
68029         when returning NULL.
68030         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68031         * doc/functions/calloc.texi: Mention the calloc-posix module.
68032         * lib/stdlib_.h (calloc): New declaration.
68033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68034         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68035         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68036         and HAVE_CALLOC_POSIX.
68037
68038 2007-09-09  Bruno Haible  <bruno@clisp.org>
68039
68040         Allow for modules to show an arbitrary notice.
68041         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68042         * gnulib-tool: New option --extract-notice.
68043         (func_usage): Document it.
68044         (sed_extract_prog): Update.
68045         (func_get_notice): New function.
68046         (func_modules_notice): New function.
68047         (func_import, func_create_testdir): Invoke it.
68048         Suggested by Jim Meyering.
68049
68050 2007-09-09  Bruno Haible  <bruno@clisp.org>
68051
68052         * gnulib-tool: New options --verbose, --quiet.
68053         (func_usage): Document them.
68054         (verbose): New variable.
68055         (func_execute_command): New function.
68056         (func_import): Don't show the module list and the file list if
68057         $verbose < 0.
68058         (func_create_testdir): Likewise. Use func_execute_command.
68059         (func_create_megatestdir): Use func_execute_command.
68060
68061 2007-09-08  Bruno Haible  <bruno@clisp.org>
68062
68063         * gnulib-tool (func_import): Prefer rsync over wget when available,
68064         for fetching the PO files.
68065
68066 2007-09-08  Bruno Haible  <bruno@clisp.org>
68067
68068         * posix-modules: New file. Portions copied from gnulib-tool.
68069         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68070
68071 2007-09-08  Jim Meyering  <jim@meyering.net>
68072
68073         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68074         * lib/fpending.h: Rename from __fpending.h.
68075         * lib/fpending.c: Rename from __fpending.c.
68076         Include "fpending.h", not "__fpending.h".
68077         * lib/__fpending.h, lib/__fpending.c: Remove files.
68078         * modules/fpending (Files): Reflect new file names.
68079         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68080
68081 2007-09-08  Bruno Haible  <bruno@clisp.org>
68082
68083         * m4/inttypes-h.m4: Remove stub file.
68084
68085 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68086
68087         * doc/headers/stdint.texi: Discuss #include_next issue.
68088
68089 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68092
68093 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68094
68095         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68096         in variable name.
68097
68098 2007-09-03  Jim Meyering  <jim@meyering.net>
68099
68100         New module: git-version-gen.
68101         * modules/git-version-gen: New file.
68102
68103         Import changes from coreutils for bootstrap script.
68104
68105         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68106
68107         bootstrap: uses rsync to download the .po files
68108         * build-aux/bootstrap (po_download_command_format): New global.
68109         (download_po_files): Use rsync.
68110         (update_po_files): Don't remove .po files after download,
68111         so future rsync runs can take advantage of the copies.
68112
68113         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68114
68115         Solve the unnecessary-.po-file-regeneration problem once and for all.
68116         * build-aux/bootstrap (download_po_files): New function, renamed from
68117         get_translations.  Now, downloads, but doesn't update LINGUAS.
68118         (update_po_files): New function.
68119
68120         bootstrap: Ignore more.
68121         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68122         uniwidth to e.g., lib/.gitignore.
68123         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68124
68125         * build-aux/bootstrap: New setting: vc_ignore.
68126         (insert_sorted_if_absent): Create $file if absent.
68127         Adapt to new, possibly empty, list: $vc_ignore.
68128
68129         bootstrap: generate more ignorable names
68130         * build-aux/bootstrap (slurp): When generating ignorable names,
68131         also map .sin to .sed, .gperf to .c, and .y to .c.
68132
68133 2007-09-03  Jim Meyering  <jim@meyering.net>
68134
68135         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68136         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68137
68138 2007-09-02  Bruno Haible  <bruno@clisp.org>
68139
68140         Fix mis-recognition of 'mcs' on QNX 6.
68141         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68142         output contains the string "Mono".
68143         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68144         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68145
68146 2007-09-01  Bruno Haible  <bruno@clisp.org>
68147
68148         Fix collision between uniwidth/* and linebreak modules.
68149         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68150         u32_width): Remove declarations.
68151         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68152         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68153         streq3, streq2, streq1, streq0): Remove functions.
68154         (STREQ): Remove macro.
68155         (is_cjk_encoding): Remove function.
68156         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68157         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68158         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68159         * NEWS: Document the change.
68160
68161 2007-09-01  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/streq.h: Add double-inclusion guard.
68164
68165 2007-09-01  Karl Berry  <karl@gnu.org>
68166
68167         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68168
68169 2007-08-28  Jim Meyering  <jim@meyering.net>
68170
68171         Rename mreadlink_with_size to areadlink_with_size.
68172         * NEWS: Document the change.
68173         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68174         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68175         * lib/mreadlink.h: Rename this to...
68176         * lib/areadlink.h: ...this.
68177         * modules/mreadlink-with-size: Rename this to...
68178         * modules/areadlink-with-size: ...this.
68179         * lib/canonicalize.c: Reflect the renaming.
68180         * modules/canonicalize: Likewise.
68181
68182 2007-08-26  Bruno Haible  <bruno@clisp.org>
68183
68184         * gnulib-tool (func_import): When deciding which files to remove,
68185         consider also dangling symbolic links.
68186         Reported by Eric Blake.
68187
68188 2007-08-26  Bruno Haible  <bruno@clisp.org>
68189
68190         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68191
68192 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68193
68194         * lib/readline.c: Don't include getline.h, the prototype is now
68195         found in stdio.h.
68196
68197 2007-08-23  Jim Meyering  <jim@meyering.net>
68198
68199         Getdelim touchup.
68200         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68201         around the funlockfile call, since funlockfile never sets errno.
68202         Don't set errno upon failed realloc.
68203
68204 2007-08-22  Eric Blake  <ebb9@byu.net>
68205
68206         Getline touchups.
68207         * lib/getdelim.c (getdelim): Revert regression that required *n to
68208         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68209         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68210         getdelim, rather than whether implementation is missing.
68211         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68212         * lib/stdio_.h (getline): Also declare if replacement is
68213         required.
68214         * doc/functions/getdelim.texi: New file.
68215         * doc/functions/getline.texi: Likewise.
68216         * doc/gnulib.texi (Function Substitutes): Add new files.
68217         Reported by Bruno Haible.
68218
68219 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68220
68221         * users.txt: Add Guile.
68222
68223 2007-08-22  Eric Blake  <ebb9@byu.net>
68224
68225         * tests/test-getdelim.c (main): Use remove, not unlink.
68226         * tests/test-getline.c (main): Likewise.
68227
68228         Move getline and getdelim into stdio.h, per POSIX 200x.
68229         * modules/getline (Files): Remove getline.h.
68230         (Depends-on): Add stdio.
68231         (configure.ac): Add module indicator.
68232         * modules/getdelim (Files): Remove getdelim.h.
68233         (Depends-on): Add stdio.
68234         (configure.ac): Add module indicator.
68235         * modules/stdio (Makefile.am): Work with new indicators.
68236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68237         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68238         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68239         * lib/getdelim.h: Delete.
68240         * lib/getline.h: Delete.
68241         * lib/stdio_.h (getdelim, getline): Declare.
68242         * modules/getdelim-tests: New module.
68243         * modules/getline-tests: Likewise.
68244         * tests/test-getdelim.c: New file.
68245         * tests/test-getline.c: Likewise.
68246         * NEWS: Document the change.
68247         * lib/getline.c: Update choice of header.
68248         * lib/csharpcomp.c: Likewise.
68249         * lib/getpass.c: Likewise.
68250         * lib/javacomp.c: Likewise.
68251         * lib/javaversion.c: Likewise.
68252         * lib/yesno.c: Likewise.
68253         * lib/getdelim.c: Likewise.
68254         (getdelim): Set errno on failure, and avoid memory leak.
68255
68256 2007-08-19  Bruno Haible  <bruno@clisp.org>
68257
68258         * modules/closein (Depends-on): Add freadahead.
68259         * lib/closein.c: Include freadahead.h.
68260         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68261         is zero.
68262
68263 2007-08-19  Bruno Haible  <bruno@clisp.org>
68264
68265         * modules/freadahead-tests: New file.
68266         * tests/test-freadahead.sh: New file.
68267         * tests/test-freadahead.c: New file.
68268
68269         * modules/freadahead: New file.
68270         * lib/freadahead.h: New file.
68271         * lib/freadahead.c: New file.
68272         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68273         fbufmode, fpurge, freadable, fwritable.
68274
68275 2007-08-19  Eric Blake  <ebb9@byu.net>
68276
68277         Test yesno in combination with closein.
68278         * lib/yesno.c (yesno): Document use of stdin.
68279         * modules/yesno-tests (Files): New module.
68280         * tests/test-yesno.c (main): New file.
68281         * tests/test-yesno.sh: Likewise.
68282
68283 2007-08-19  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68286         * lib/fseeko.c (rpl_fseeko): Likewise.
68287         * lib/fseterr.c (fseterr): Likewise.
68288
68289 2007-08-19  Bruno Haible  <bruno@clisp.org>
68290
68291         * tests/test-lseek.c (main): Disable a test for BeOS.
68292         * doc/functions/lseek.texi: Document the BeOS bug.
68293
68294 2007-08-19  Bruno Haible  <bruno@clisp.org>
68295             Eric Blake  <ebb9@byu.net>
68296
68297         * lib/lseek.c: Include <sys/stat.h>.
68298         (rpl_lseek): Add workaround code also for Unix platforms.
68299         Needed for BeOS.
68300         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68301         * doc/functions/lseek.texi: Document BeOS definiency.
68302
68303 2007-08-18  Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/fstrcmp-tests: New file.
68306         * tests/test-fstrcmp.c: New file.
68307
68308 2007-08-18  Bruno Haible  <bruno@clisp.org>
68309
68310         * modules/fstrcmp: New file, from GNU gettext with modifications.
68311         * lib/fstrcmp.h: New file, from GNU gettext.
68312         * lib/fstrcmp.c: New file, from GNU gettext.
68313         * MODULES.html.sh (String handling): Add fstrcmp.
68314
68315 2007-08-18  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68318         'bool'.
68319         (diag, compareseq): Remove const from the ctxt argument.
68320         (USE_HEURISTIC): Undefine at the end.
68321
68322 2007-08-18  Jim Meyering  <jim@meyering.net>
68323
68324         New file: lib/idcache.h
68325         * NEWS: Mention the addition.
68326         * modules/idcache (Files): Add lib/idcache.h
68327         * lib/idcache.c: Include "idcache.h".
68328         Don't include <sys/types.h>.
68329         Add a FIXME comment.
68330         Move file-scoped "static" declarations to the top.
68331         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68332
68333 2007-08-17  Bruno Haible  <bruno@clisp.org>
68334         and Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * MODULES.html.sh: Add diffseq.
68337         * modules/diffseq: New file.
68338         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68339         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68340
68341 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68342
68343         Import changes from coreutils for bootstrap script.
68344
68345         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68346
68347         * build-aux/bootstrap (slurp): Work even in environments where
68348         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68349         current code does not slurp files whose names start with ".", and
68350         this looks like it might be a troublesome area.
68351
68352         2007-07-11  Jim Meyering  <jim@meyering.net>
68353
68354         If there's a GPL vN copyright comment, require that N == 3.
68355
68356         2007-07-08  Jim Meyering  <jim@meyering.net>
68357
68358         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68359         * build-aux/bootstrap (mam_template): Move definition out of loop.
68360
68361         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68362
68363         * build-aux/bootstrap (symlink_to_dir): Rename function from
68364         symlink_to_gnulib.  Add a directory parameter.  Update all
68365         callers.
68366         (cp_mark_as_generated): Also check for -- and link to -- files in
68367         gl/.
68368
68369         2007-07-08  Jim Meyering  <jim@meyering.net>
68370
68371         Adapt to deeper hierarchy in gnulib.
68372         * build-aux/bootstrap (symlink_to_dir): If the destination
68373         directory doesn't exist, create it. This is required at least for
68374         "lib/uniwidth/cjk.h".
68375
68376         2007-05-15  Jim Meyering  <jim@meyering.net>
68377
68378         * build-aux/bootstrap: Now that generated Makefile.am files
68379         are no longer under version control, they must be created at
68380         bootstrap time.
68381
68382 2007-08-14  Ben Pfaff  <blp@gnu.org>
68383
68384         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68385
68386 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68389         given the changes below.
68390         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68391         even on hosts that have padding bits beyond the supported 64.
68392
68393 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68396         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68397         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68398         depends on it.
68399         (xstrtol_error): Remove.
68400         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68401         but with a different signature.
68402         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68403         * lib/xstrtol-error.c: Include exitfail.h.
68404         (xstrtol_fatal): New function, with a different signature from the
68405         old xstrtol_error, so that the caller need not worry about passing
68406         in an exit status, or about storage management of the option argument.
68407         (xstrtol_error): Now a static function.  Redo signature to
68408         implement xstrtol_fatal.  Output the correct number of hyphens in
68409         front of the option so that the caller need not worry about
68410         storage management.
68411         (N_): New macro.
68412         (_): Remove; not used now.
68413         * modules/xstrtol: Depend on getopt.
68414         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68415         of old STRTOL_FATAL_ERROR macro.
68416         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68417         of test program.
68418         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68419         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68420
68421 2007-08-08  Eric Blake  <ebb9@byu.net>
68422
68423         * lib/xstrtol-error.c: Add missing include.
68424
68425         Move xstrtol messages into gnulib domain, when --pobase is used.
68426         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68427         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68428         * modules/xstrtol (Files): Distribute new file.
68429         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68430         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68431         * tests/test-xstrtol.c: ...into new file.
68432         * tests/test-xstrtoul.c: Also test xstrtoul.
68433         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68434         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68435         * tests/test-xstrtol.sh: Drive the tests.
68436         * tests/test-xstrtoimax.sh: Likewise.
68437         * tests/test-xstrtoumax.sh: Likewise.
68438         * modules/xstrtol-tests: New module.
68439         * modules/xstrtoimax-tests: Likewise.
68440         * modules/xstrtoumax-tests: Likewise.
68441
68442 2007-08-08  Jim Meyering  <jim@meyering.net>
68443
68444         New function: mfile_name_concat.
68445         * lib/filenamecat.c (mfile_name_concat): New function, just like
68446         file_name_concat, but return NULL upon failure rather than exiting
68447         with a diagnostic.
68448         * lib/filenamecat.h: Declare it.
68449
68450 2007-08-07  Bruno Haible  <bruno@clisp.org>
68451
68452         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68453         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68454         warning from gcc.
68455         Reported by Eric Blake.
68456
68457 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68458
68459         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68460         * modules/crypto/arcfour (License): Likewise.
68461         * modules/crypto/des-tests (License): Likewise.
68462         * modules/crypto/gc-arctwo-tests (License): Likewise.
68463         * modules/crypto/gc-des-tests (License): Likewise.
68464         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68465         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68466         * modules/crypto/gc-md2-tests (License): Likewise.
68467         * modules/crypto/gc-md4-tests (License): Likewise.
68468         * modules/crypto/gc-md5-tests (License): Likewise.
68469         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68470         * modules/crypto/gc-rijndael-tests (License): Likewise.
68471         * modules/crypto/gc-sha1-tests (License): Likewise.
68472         * modules/crypto/gc-tests (License): Likewise.
68473         * modules/crypto/hmac-md5 (License): Likewise.
68474         * modules/crypto/hmac-sha1 (License): Likewise.
68475         * modules/crypto/md2-tests (License): Likewise.
68476         * modules/crypto/md4-tests (License): Likewise.
68477         * modules/crypto/md5 (License): Likewise.
68478         * modules/crypto/rijndael (License): Likewise.
68479         * modules/crypto/sha1 (License): Likewise.
68480         * modules/memxor (License): Likewise.
68481
68482 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68483         and Bruno Haible  <bruno@clisp.org>
68484
68485         * NEWS: Describe interface changes to human, xstrtol.
68486         * lib/human.h: Include <xstrtol.h>.
68487         (human_options): Return enum strtol_error, not int.  Remove
68488         bool arg; take int * instead.
68489         * lib/human.c: Don't include "gettext.h".
68490         (_): Remove; no longer used.
68491         Don't include <xstrtol.h>, since human.h does it.
68492         (human_options): Adjust to abovementioned interface changes.
68493         Do not report error to stderr; that's now the caller's
68494         responsibility.
68495         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68496         interface change.
68497         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68498         Str, Argument_type_string.  All uses changed.  Put " argument"
68499         in diagnostics to make them clearer.  Change wording of suffix
68500         message for clarity.
68501         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68502         Argument_type_string.
68503         (STRTOL_FATAL_WARN): Remove; no longer used.
68504         * modules/human (Depends-on): Remove gettext-h.
68505
68506 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68507
68508         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68509
68510 2007-07-31  Bruno Haible  <bruno@clisp.org>
68511
68512         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68513         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68514         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68515
68516 2007-07-31  Bruno Haible  <bruno@clisp.org>
68517
68518         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68519         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68520
68521 2007-07-30  Bruno Haible  <bruno@clisp.org>
68522
68523         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68524         * modules/c-ctype (License): Likewise.
68525         * modules/c-strcase (License): Likewise.
68526         * modules/check-version (License): Likewise.
68527         * modules/iconv (License): Likewise.
68528         * modules/iconv_open (License): Likewise.
68529         * modules/read-file (License): Likewise.
68530         * modules/striconv (License): Likewise.
68531         * modules/strverscmp (License): Likewise.
68532         * modules/vasprintf (License): Likewise.
68533         * modules/crypto/des (License): Likewise.
68534         * modules/crypto/gc (License): Likewise.
68535         * modules/crypto/gc-arcfour (License): Likewise.
68536         * modules/crypto/gc-arctwo (License): Likewise.
68537         * modules/crypto/gc-des (License): Likewise.
68538         * modules/crypto/gc-hmac-md5 (License): Likewise.
68539         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68540         * modules/crypto/gc-md2 (License): Likewise.
68541         * modules/crypto/gc-md4 (License): Likewise.
68542         * modules/crypto/gc-md5 (License): Likewise.
68543         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68544         * modules/crypto/gc-random (License): Likewise.
68545         * modules/crypto/gc-rijndael (License): Likewise.
68546         * modules/crypto/gc-sha1 (License): Likewise.
68547         * modules/crypto/md2 (License): Likewise.
68548         * modules/crypto/md4 (License): Likewise.
68549
68550 2007-07-30  Jim Meyering  <jim@meyering.net>
68551
68552         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68553         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68554         it has valid stat data.  This bug would cause du not to count the
68555         sizes of inaccessible directories.
68556         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68557         in <http://bugzilla.redhat.com/250077>.
68558
68559 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68560             Bruno Haible  <bruno@clisp.org>
68561
68562         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68563         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68564         #include_next, gives a diagnostic about it, but reports no error in
68565         the exit code.
68566         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68567
68568 2007-07-24  Ben Pfaff  <blp@gnu.org>
68569
68570         Improve name: "count-one-bits" is better than "popcount".
68571         * MODULES.html.sh: Update name.
68572         * lib/popcount.h: Renamed lib/count-one-bits.h.
68573         (popcount): Renamed count_one_bits.
68574         (popcountl): Renamed count_one_bits_l.
68575         (popcountll): Renamed count_one_bits_ll.
68576         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68577         * modules/popcount: Renamed module/count-one-bits.
68578         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68579         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68580
68581 2007-07-23  Ben Pfaff  <blp@gnu.org>
68582
68583         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68584         better code generation, and add U to large constants to avoid
68585         warnings, in non-GCC case.
68586         Suggested by Bruno Haible.
68587
68588 2007-07-23  Ben Pfaff  <blp@gnu.org>
68589
68590         * lib/popcount.h: Use verify_true instead of if...abort.
68591         * modules/popcount: Depend on verify module.
68592         Suggested by Jim Meyering.
68593
68594 2007-07-23  Bruno Haible  <bruno@clisp.org>
68595
68596         * gnulib-tool (func_import): Create a .cvsignore file also when the
68597         directory is not yet in CVS but the toplevel directory is. When
68598         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68599         Reported by Karl Berry.
68600
68601 2007-07-22  Ben Pfaff  <blp@gnu.org>
68602
68603         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68604         case.
68605         Suggested by Eric Blake.
68606
68607 2007-07-22  Ben Pfaff  <blp@gnu.org>
68608
68609         New module: popcount.
68610         * MODULES.html.sh: Add popcount.
68611         * modules/popcount: New file.
68612         * modules/popcount-tests: New file.
68613         * tests/test-popcount.c: New file.
68614         * lib/popcount.h: New file.
68615         * m4/popcount.m4: New file.
68616
68617 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * build-aux/announce-gen: Update to GPLv3.
68620
68621         * build-aux/config.guess: Update from config.
68622
68623 2007-07-21  Bruno Haible  <bruno@clisp.org>
68624
68625         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68626         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68627
68628 2007-07-20  Jim Meyering  <jim@meyering.net>
68629
68630         * check-module: Diagnose a self-dependency.
68631
68632 2007-07-19  Bruno Haible  <bruno@clisp.org>
68633
68634         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68635         empty.
68636         Reported by Eric Blake.
68637
68638 2007-07-18  Bruno Haible  <bruno@clisp.org>
68639
68640         * gnulib-tool: New options --po-base, --po-domain.
68641         (func_usage): Document them.
68642         (pobase, po_domain): New variables.
68643         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68644         DEFAULT_TEXT_DOMAIN.
68645         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68646         (func_import): Consider pobase and po_domain. Create a po/ directory.
68647         (func_create_testdir): Set pobase and po_domain to empty.
68648         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68649         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68650
68651 2007-07-18  Bruno Haible  <bruno@clisp.org>
68652
68653         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68654         EXTRA_DIST augmentation for files in build-aux/.
68655
68656 2007-07-16  Bruno Haible  <bruno@clisp.org>
68657
68658         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68659         * modules/getdelim (License): Likewise.
68660
68661 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68662
68663         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68664         * modules/d-type (License): Likewise.
68665         * modules/extensions (License): Likewise.
68666         * modules/fnmatch (License): Likewise.
68667         * modules/fseeko (License): Likewise.
68668         * modules/getaddrinfo (License): Likewise.
68669         * modules/getline (License): Likewise.
68670         * modules/getlogin_r (License): Likewise.
68671         * modules/getpass (License): Likewise.
68672         * modules/gettimeofday (License): Likewise.
68673         * modules/glob (License): Likewise.
68674         * modules/inet_ntop (License): Likewise.
68675         * modules/malloc (License): Likewise.
68676         * modules/malloca (License): Likewise.
68677         * modules/memmem (License): Likewise.
68678         * modules/mempcpy (License): Likewise.
68679         * modules/memset (License): Likewise.
68680         * modules/minmax (License): Likewise.
68681         * modules/mktime (License): Likewise.
68682         * modules/netinet_in (License): Likewise.
68683         * modules/pathmax (License): Likewise.
68684         * modules/poll (License): Likewise.
68685         * modules/regex (License): Likewise.
68686         * modules/snprintf (License): Likewise.
68687         * modules/stdbool (License): Likewise.
68688         * modules/stdint (License): Likewise.
68689         * modules/stdio (License): Likewise.
68690         * modules/strcase (License): Likewise.
68691         * modules/strcasestr (License): Likewise.
68692         * modules/strdup (License): Likewise.
68693         * modules/string (License): Likewise.
68694         * modules/strndup (License): Likewise.
68695         * modules/strnlen (License): Likewise.
68696         * modules/strpbrk (License): Likewise.
68697         * modules/strptime (License): Likewise.
68698         * modules/strsep (License): Likewise.
68699         * modules/sys_select (License): Likewise.
68700         * modules/sys_socket (License): Likewise.
68701         * modules/sys_stat (License): Likewise.
68702         * modules/sys_time (License): Likewise.
68703         * modules/time (License): Likewise.
68704         * modules/time_r (License): Likewise.
68705         * modules/timegm (License): Likewise.
68706         * modules/unistd (License): Likewise.
68707         * modules/vsnprintf (License): Likewise.
68708         * modules/wctype (License): Likewise.
68709
68710 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68711
68712         * modules/argz (License): LGPLv2+.
68713
68714 2007-07-15  Karl Berry  <karl@gnu.org>
68715
68716         * doc/gnulib.texi: revise node structure per new fdl.texi.
68717
68718 2007-07-14  Bruno Haible  <bruno@clisp.org>
68719
68720         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68721         the output file.
68722         * lib/uniname/uninames.h: Regenerated.
68723
68724 2007-07-14  Karl Berry  <karl@gnu.org>
68725
68726         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68727         omitting sectioning and index commands.
68728
68729 2007-07-13  Bruno Haible  <bruno@clisp.org>
68730
68731         New gnulib-tool option --more-symlinks.
68732         * gnulib-tool (func_usage): Document --more-symlinks.
68733         (do_copyrights): New variable.
68734         Recognize option --more-symlinks.
68735         (func_import): Don't add a copyright notice transform to
68736         sed_transform_lib_file if do_copyrights is empty.
68737
68738 2007-07-13  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/vasnprintf.c (decimal_point_char): Define also if
68741         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68742         && !NEED_PRINTF_DIRECTIVE_A.
68743         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68744         Gary V. Vaughan <gary@gnu.org>.
68745
68746 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * lib/inttypes_.h: Undo previous change, since it was fixed
68749         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68750
68751 2007-07-13  Bruno Haible  <bruno@clisp.org>
68752
68753         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68754         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68755
68756 2007-07-13  Jim Meyering  <jim@meyering.net>
68757
68758         df: Don't fail for Tru64's "file-on-file mount".
68759         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68760         so we fall through and use statfs instead.  Details here:
68761         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68762         Reported by Albert Chin.
68763
68764 2007-07-13  Bruno Haible  <bruno@clisp.org>
68765
68766         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68767         * modules/configmake (License): Likewise.
68768         * modules/gettext (License): Likewise.
68769         * modules/gettext-h (License): Likewise.
68770         * modules/include_next (License): Likewise.
68771         * modules/link-warning (License): Likewise.
68772         * modules/localcharset (License): Likewise.
68773         * modules/localename (License): Likewise.
68774         * modules/lock (License): Likewise.
68775         * modules/relocatable-lib-lgpl (License): Likewise.
68776         * modules/size_max (License): Likewise.
68777         * modules/vasnprintf (License): Likewise.
68778         * modules/wchar (License): Likewise.
68779         * modules/xsize (License): Likewise.
68780
68781 2007-07-13  Bruno Haible  <bruno@clisp.org>
68782
68783         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68784         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68785
68786 2007-07-12  Bruno Haible  <bruno@clisp.org>
68787
68788         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68789         in the modules files.
68790
68791 2007-07-11  Karl Berry  <karl@gnu.org>
68792
68793         * MODULES.html.sh (func_module): use
68794          sed -e '\|^'"${includefile}"'$|d'
68795          instead of /.../d, to avoid errors on $includefile's containing /.
68796
68797 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68798
68799         * gnulib-tool (func_import): Avoid duplication of --avoid
68800         statements
68801         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68802         names to `_' in variable names.
68803
68804 2007-07-10  Eric Blake  <ebb9@byu.net>
68805
68806         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68807         * NEWS: Document this change.
68808
68809 2007-07-08  Bruno Haible  <bruno@clisp.org>
68810
68811         Update to Unicode 5.0.
68812         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68813         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68814         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68815         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68816         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68817         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68818         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68819         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68820         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68821         U+10A3F, U+1D242..U+1D244.
68822         (nonspacing_table_ind): Update.
68823         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68824         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68825
68826 2007-07-08  Bruno Haible  <bruno@clisp.org>
68827
68828         Update to Unicode 5.0.
68829         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68830         code transform. Extend the name index field of unicode_name_to_code and
68831         unicode_code_to_name from 16 to 24 bits.
68832         * lib/uniname/uniname.c (unicode_character_name,
68833         unicode_name_character): Add the range 0x12xxx to the code transform.
68834         * lib/uniname/uninames.h: Regenerated.
68835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68836
68837 2007-07-07  Bruno Haible  <bruno@clisp.org>
68838
68839         * modules/wcwidth-tests: New file.
68840         * tests/test-wcwidth.c: New file.
68841
68842         Work around MacOS X wcwidth() bug.
68843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68844         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68845         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68846         original wcwidth in non-UTF-8 locales.
68847         * modules/wcwidth (Depends-on): Add localcharset, streq,
68848         uniwidth/width.
68849         * doc/functions/wcwidth.texi: Update.
68850
68851 2007-07-07  Bruno Haible  <bruno@clisp.org>
68852
68853         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68854         (wcwidth): New declaration.
68855         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68856         macros.
68857         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68858         here. Prepare for creating <wchar.h> unconditionally.
68859         * modules/wchar (Depends-on): Add link-warning.
68860         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68861         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68862         * lib/wcwidth.h: Remove file.
68863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68864         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68865         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68866         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68867         (Include): Replace wcwidth.h with <wchar.h>.
68868         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68869         * lib/mbchar.h: Don't include wcwidth.h.
68870         * lib/mbswidth.c: Likewise.
68871         * NEWS: Mention the change.
68872
68873 2007-07-07  Bruno Haible  <bruno@clisp.org>
68874
68875         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68876         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68877         definition with an external declaration.
68878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68879         defined as a function. Remove AC_C_INLINE requirement.
68880         * modules/wcwidth (Files): Add lib/wcwidth.c.
68881         (Makefile.am): Remove redundant statement.
68882
68883 2007-07-07  Bruno Haible  <bruno@clisp.org>
68884
68885         * MODULES.html.sh (Unicode string functions): Add the new modules.
68886
68887         * tests/uniwidth/test-u32-strwidth.c: New file.
68888         * modules/uniwidth/u32-strwidth-tests: New file.
68889
68890         * lib/uniwidth/u32-strwidth.c: New file.
68891         * modules/uniwidth/u32-strwidth: New file.
68892
68893         * tests/uniwidth/test-u16-strwidth.c: New file.
68894         * modules/uniwidth/u16-strwidth-tests: New file.
68895
68896         * lib/uniwidth/u16-strwidth.c: New file.
68897         * modules/uniwidth/u16-strwidth: New file.
68898
68899         * tests/uniwidth/test-u8-strwidth.c: New file.
68900         * modules/uniwidth/u8-strwidth-tests: New file.
68901
68902         * lib/uniwidth/u8-strwidth.c: New file.
68903         * modules/uniwidth/u8-strwidth: New file.
68904
68905         * tests/uniwidth/test-u32-width.c: New file.
68906         * modules/uniwidth/u32-width-tests: New file.
68907
68908         * lib/uniwidth/u32-width.c: New file.
68909         * modules/uniwidth/u32-width: New file.
68910
68911         * tests/uniwidth/test-u16-width.c: New file.
68912         * modules/uniwidth/u16-width-tests: New file.
68913
68914         * lib/uniwidth/u16-width.c: New file.
68915         * modules/uniwidth/u16-width: New file.
68916
68917         * tests/uniwidth/test-u8-width.c: New file.
68918         * modules/uniwidth/u8-width-tests: New file.
68919
68920         * lib/uniwidth/u8-width.c: New file.
68921         * modules/uniwidth/u8-width: New file.
68922
68923         * tests/uniwidth/test-uc_width.c: New file.
68924         * modules/uniwidth/width-tests: New file.
68925
68926         * lib/uniwidth/width.c: New file, from GNU libiconv.
68927         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68928         * modules/uniwidth/width: New file.
68929
68930         * lib/uniwidth.h: New file, from GNU libiconv.
68931         * modules/uniwidth/base: New file.
68932
68933 2007-07-07  Bruno Haible  <bruno@clisp.org>
68934
68935         * lib/uniname.h: New file, from GNU gettext.
68936         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68937         * lib/uniname/uninames.h: New file, from GNU gettext.
68938         * lib/uniname/uniname.c: New file, from GNU gettext.
68939         * tests/uniname/test-uninames.sh: New file.
68940         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68941         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68942         * modules/uniname/base: New file.
68943         * modules/uniname/uniname: New file.
68944         * modules/uniname/uniname-tests: New file.
68945         * MODULES.html.sh (Unicode string functions): Add the new modules.
68946
68947 2007-07-06  Bruno Haible  <bruno@clisp.org>
68948
68949         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68950
68951 2007-07-06  Bruno Haible  <bruno@clisp.org>
68952
68953         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68954         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68955         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68956         include <sys/time.h>.
68957         Reported by Eric Blake.
68958
68959 2007-07-06  Eric Blake  <ebb9@byu.net>
68960
68961         Fix testing canonicalize on cygwin.
68962         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68963         Revert patch from 2007-06-19.
68964         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68965         canonicalize module is also in use.
68966         * tests/test-canonicalize.c: New file.
68967         * tests/test-canonicalize.sh: Likewise.
68968         * modules/canonicalize-tests: Likewise.
68969
68970 2007-07-06  Jim Meyering  <jim@meyering.net>
68971
68972         * lib/getugroups.c (getugroups): Detect getgrent failure.
68973         Adjust comment to reflect reality: this function may return -1.
68974
68975 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68976
68977         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68978         the new TP address.
68979         (usage): Fix typo
68980         (gnulib_mk): New variable.
68981
68982 2007-07-05  Jim Meyering  <jim@meyering.net>
68983
68984         Don't let endgrent clobber errno, no matter how improbable.
68985         * lib/getugroups.c (getugroups): Save and restore errno around
68986         endgrent call.
68987
68988         Close the group DB even when failing with 2^31 or more members.
68989         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68990
68991 2007-07-04  Jim Meyering  <jim@meyering.net>
68992
68993         * lib/getugroups.h: New file.
68994         * lib/getugroups.c: Include "getugroups.h".
68995         Remove uses of "register" keyword.
68996         Move local variable, "cp", down into scope where used.
68997         Give "username" parameter the "const" attribute.
68998         * modules/getugroups (Files): Add lib/getugroups.h
68999
69000 2007-07-04  Karl Berry  <karl@gnu.org>
69001
69002         * MODULES.html.sh (func_all_modules): Complete rename of
69003         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69004
69005 2007-07-02  Bruno Haible  <bruno@clisp.org>
69006
69007         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69008         mode, when inttypes.h comes from gnulib.
69009         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69010
69011 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69012
69013         * NEWS: Mention lgpl module name change.
69014
69015         * modules/lgpl-2.1: Renamed from lgpl.
69016
69017         * NEWS: Mention gpl module name change.
69018
69019         * modules/gpl-3.0: New file, based on gpl-2.0.
69020
69021         * modules/gpl-2.0: Renamed from gpl.
69022
69023         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69024         doc/gpl-2.0.texi.
69025
69026 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69029         #define __STDC_LIMIT_MACROS temporarily while including
69030         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69031         Problem reported by Joel E. Denny in
69032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69033
69034 2007-07-01  Bruno Haible  <bruno@clisp.org>
69035
69036         * lib/unistdio.h: New file.
69037         * lib/unistdio/u-asnprintf.h: New file.
69038         * lib/unistdio/u-asprintf.h: New file.
69039         * lib/unistdio/u-printf-args.c: New file.
69040         * lib/unistdio/u-printf-args.h: New file.
69041         * lib/unistdio/u-printf-parse.h: New file.
69042         * lib/unistdio/u-snprintf.h: New file.
69043         * lib/unistdio/u-sprintf.h: New file.
69044         * lib/unistdio/u-vasprintf.h: New file.
69045         * lib/unistdio/u-vsnprintf.h: New file.
69046         * lib/unistdio/u-vsprintf.h: New file.
69047         * lib/unistdio/ulc-asnprintf.c: New file.
69048         * lib/unistdio/ulc-asprintf.c: New file.
69049         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69050         * lib/unistdio/ulc-printf-parse.c: New file.
69051         * lib/unistdio/ulc-snprintf.c: New file.
69052         * lib/unistdio/ulc-sprintf.c: New file.
69053         * lib/unistdio/ulc-vasnprintf.c: New file.
69054         * lib/unistdio/ulc-vasprintf.c: New file.
69055         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69056         * lib/unistdio/ulc-vsnprintf.c: New file.
69057         * lib/unistdio/ulc-vsprintf.c: New file.
69058         * lib/unistdio/u8-asnprintf.c: New file.
69059         * lib/unistdio/u8-asprintf.c: New file.
69060         * lib/unistdio/u8-printf-parse.c: New file.
69061         * lib/unistdio/u8-snprintf.c: New file.
69062         * lib/unistdio/u8-sprintf.c: New file.
69063         * lib/unistdio/u8-vasnprintf.c: New file.
69064         * lib/unistdio/u8-vasprintf.c: New file.
69065         * lib/unistdio/u8-vsnprintf.c: New file.
69066         * lib/unistdio/u8-vsprintf.c: New file.
69067         * lib/unistdio/u8-u8-asnprintf.c: New file.
69068         * lib/unistdio/u8-u8-asprintf.c: New file.
69069         * lib/unistdio/u8-u8-snprintf.c: New file.
69070         * lib/unistdio/u8-u8-sprintf.c: New file.
69071         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69072         * lib/unistdio/u8-u8-vasprintf.c: New file.
69073         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69074         * lib/unistdio/u8-u8-vsprintf.c: New file.
69075         * lib/unistdio/u16-asnprintf.c: New file.
69076         * lib/unistdio/u16-asprintf.c: New file.
69077         * lib/unistdio/u16-printf-parse.c: New file.
69078         * lib/unistdio/u16-snprintf.c: New file.
69079         * lib/unistdio/u16-sprintf.c: New file.
69080         * lib/unistdio/u16-vasnprintf.c: New file.
69081         * lib/unistdio/u16-vasprintf.c: New file.
69082         * lib/unistdio/u16-vsnprintf.c: New file.
69083         * lib/unistdio/u16-vsprintf.c: New file.
69084         * lib/unistdio/u16-u16-asnprintf.c: New file.
69085         * lib/unistdio/u16-u16-asprintf.c: New file.
69086         * lib/unistdio/u16-u16-snprintf.c: New file.
69087         * lib/unistdio/u16-u16-sprintf.c: New file.
69088         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69089         * lib/unistdio/u16-u16-vasprintf.c: New file.
69090         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69091         * lib/unistdio/u16-u16-vsprintf.c: New file.
69092         * lib/unistdio/u32-asnprintf.c: New file.
69093         * lib/unistdio/u32-asprintf.c: New file.
69094         * lib/unistdio/u32-printf-parse.c: New file.
69095         * lib/unistdio/u32-snprintf.c: New file.
69096         * lib/unistdio/u32-sprintf.c: New file.
69097         * lib/unistdio/u32-vasnprintf.c: New file.
69098         * lib/unistdio/u32-vasprintf.c: New file.
69099         * lib/unistdio/u32-vsnprintf.c: New file.
69100         * lib/unistdio/u32-vsprintf.c: New file.
69101         * lib/unistdio/u32-u32-asnprintf.c: New file.
69102         * lib/unistdio/u32-u32-asprintf.c: New file.
69103         * lib/unistdio/u32-u32-snprintf.c: New file.
69104         * lib/unistdio/u32-u32-sprintf.c: New file.
69105         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69106         * lib/unistdio/u32-u32-vasprintf.c: New file.
69107         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69108         * lib/unistdio/u32-u32-vsprintf.c: New file.
69109         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69110         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69111         * tests/unistdio/test-ulc-printf1.h: New file.
69112         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69113         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69114         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69115         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69116         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69117         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69118         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69119         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69120         * tests/unistdio/test-u8-asnprintf1.c: New file.
69121         * tests/unistdio/test-u8-asnprintf1.h: New file.
69122         * tests/unistdio/test-u8-printf1.h: New file.
69123         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69124         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69125         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69126         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69127         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69128         * tests/unistdio/test-u8-vasprintf1.c: New file.
69129         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69130         * tests/unistdio/test-u8-vsprintf1.c: New file.
69131         * tests/unistdio/test-u16-asnprintf1.c: New file.
69132         * tests/unistdio/test-u16-asnprintf1.h: New file.
69133         * tests/unistdio/test-u16-printf1.h: New file.
69134         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69135         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69136         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69137         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69138         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69139         * tests/unistdio/test-u16-vasprintf1.c: New file.
69140         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69141         * tests/unistdio/test-u16-vsprintf1.c: New file.
69142         * tests/unistdio/test-u32-asnprintf1.c: New file.
69143         * tests/unistdio/test-u32-asnprintf1.h: New file.
69144         * tests/unistdio/test-u32-printf1.h: New file.
69145         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69146         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69147         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69148         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69149         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69150         * tests/unistdio/test-u32-vasprintf1.c: New file.
69151         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69152         * tests/unistdio/test-u32-vsprintf1.c: New file.
69153         * modules/unistdio/base: New file.
69154         * modules/unistdio/u-printf-args: New file.
69155         * modules/unistdio/ulc-asnprintf: New file.
69156         * modules/unistdio/ulc-asprintf: New file.
69157         * modules/unistdio/ulc-fprintf: New file.
69158         * modules/unistdio/ulc-printf-parse: New file.
69159         * modules/unistdio/ulc-snprintf: New file.
69160         * modules/unistdio/ulc-sprintf: New file.
69161         * modules/unistdio/ulc-vasnprintf: New file.
69162         * modules/unistdio/ulc-vasprintf: New file.
69163         * modules/unistdio/ulc-vfprintf: New file.
69164         * modules/unistdio/ulc-vsnprintf: New file.
69165         * modules/unistdio/ulc-vsprintf: New file.
69166         * modules/unistdio/u8-asnprintf: New file.
69167         * modules/unistdio/u8-asprintf: New file.
69168         * modules/unistdio/u8-printf-parse: New file.
69169         * modules/unistdio/u8-snprintf: New file.
69170         * modules/unistdio/u8-sprintf: New file.
69171         * modules/unistdio/u8-vasnprintf: New file.
69172         * modules/unistdio/u8-vasprintf: New file.
69173         * modules/unistdio/u8-vsnprintf: New file.
69174         * modules/unistdio/u8-vsprintf: New file.
69175         * modules/unistdio/u8-u8-asnprintf: New file.
69176         * modules/unistdio/u8-u8-asprintf: New file.
69177         * modules/unistdio/u8-u8-snprintf: New file.
69178         * modules/unistdio/u8-u8-sprintf: New file.
69179         * modules/unistdio/u8-u8-vasnprintf: New file.
69180         * modules/unistdio/u8-u8-vasprintf: New file.
69181         * modules/unistdio/u8-u8-vsnprintf: New file.
69182         * modules/unistdio/u8-u8-vsprintf: New file.
69183         * modules/unistdio/u16-asnprintf: New file.
69184         * modules/unistdio/u16-asprintf: New file.
69185         * modules/unistdio/u16-printf-parse: New file.
69186         * modules/unistdio/u16-snprintf: New file.
69187         * modules/unistdio/u16-sprintf: New file.
69188         * modules/unistdio/u16-vasnprintf: New file.
69189         * modules/unistdio/u16-vasprintf: New file.
69190         * modules/unistdio/u16-vsnprintf: New file.
69191         * modules/unistdio/u16-vsprintf: New file.
69192         * modules/unistdio/u16-u16-asnprintf: New file.
69193         * modules/unistdio/u16-u16-asprintf: New file.
69194         * modules/unistdio/u16-u16-snprintf: New file.
69195         * modules/unistdio/u16-u16-sprintf: New file.
69196         * modules/unistdio/u16-u16-vasnprintf: New file.
69197         * modules/unistdio/u16-u16-vasprintf: New file.
69198         * modules/unistdio/u16-u16-vsnprintf: New file.
69199         * modules/unistdio/u16-u16-vsprintf: New file.
69200         * modules/unistdio/u32-asnprintf: New file.
69201         * modules/unistdio/u32-asprintf: New file.
69202         * modules/unistdio/u32-printf-parse: New file.
69203         * modules/unistdio/u32-snprintf: New file.
69204         * modules/unistdio/u32-sprintf: New file.
69205         * modules/unistdio/u32-vasnprintf: New file.
69206         * modules/unistdio/u32-vasprintf: New file.
69207         * modules/unistdio/u32-vsnprintf: New file.
69208         * modules/unistdio/u32-vsprintf: New file.
69209         * modules/unistdio/u32-u32-asnprintf: New file.
69210         * modules/unistdio/u32-u32-asprintf: New file.
69211         * modules/unistdio/u32-u32-snprintf: New file.
69212         * modules/unistdio/u32-u32-sprintf: New file.
69213         * modules/unistdio/u32-u32-vasnprintf: New file.
69214         * modules/unistdio/u32-u32-vasprintf: New file.
69215         * modules/unistdio/u32-u32-vsnprintf: New file.
69216         * modules/unistdio/u32-u32-vsprintf: New file.
69217         * modules/unistdio/ulc-asnprintf-tests: New file.
69218         * modules/unistdio/ulc-vasnprintf-tests: New file.
69219         * modules/unistdio/ulc-vasprintf-tests: New file.
69220         * modules/unistdio/ulc-vsnprintf-tests: New file.
69221         * modules/unistdio/ulc-vsprintf-tests: New file.
69222         * modules/unistdio/u8-asnprintf-tests: New file.
69223         * modules/unistdio/u8-vasnprintf-tests: New file.
69224         * modules/unistdio/u8-vasprintf-tests: New file.
69225         * modules/unistdio/u8-vsnprintf-tests: New file.
69226         * modules/unistdio/u8-vsprintf-tests: New file.
69227         * modules/unistdio/u16-asnprintf-tests: New file.
69228         * modules/unistdio/u16-vasnprintf-tests: New file.
69229         * modules/unistdio/u16-vasprintf-tests: New file.
69230         * modules/unistdio/u16-vsnprintf-tests: New file.
69231         * modules/unistdio/u16-vsprintf-tests: New file.
69232         * modules/unistdio/u32-asnprintf-tests: New file.
69233         * modules/unistdio/u32-vasnprintf-tests: New file.
69234         * modules/unistdio/u32-vasprintf-tests: New file.
69235         * modules/unistdio/u32-vsnprintf-tests: New file.
69236         * modules/unistdio/u32-vsprintf-tests: New file.
69237         * MODULES.html.sh (Unicode string functions): Add the new modules.
69238
69239 2007-07-01  Bruno Haible  <bruno@clisp.org>
69240
69241         * lib/sprintf.c (sprintf): Limit the available length estimation,
69242         to avoid address wraparound.
69243         * lib/vsprintf.c (vsprintf): Likewise.
69244         * modules/sprintf-posix (Dependencies): Add stdint.
69245         * modules/vsprintf-posix (Dependencies): Likewise.
69246
69247 2007-07-01  Bruno Haible  <bruno@clisp.org>
69248
69249         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69250         Windows PATH as well. Conservative double-quoting. Comments.
69251
69252 2007-07-01  Bruno Haible  <bruno@clisp.org>
69253             Eric Blake  <ebb9@byu.net>
69254             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69255
69256         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69257         empty components in $PATH, denoting '.'.
69258
69259 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69260
69261         * gnulib-tool: Fix indentation.
69262         (func_create_megatestdir): Likewise.
69263         Report by Bruno Haible.
69264
69265 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69266
69267         Sync from Automake.
69268         * build-aux/gnupload: Fix shell portability issues with for loops.
69269         Report by Karl Berry.
69270
69271 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69272
69273         * build-aux/maint.mk (POURL): Use translationproject.org.
69274
69275 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69276             Bruno Haible  <bruno@clisp.org>
69277
69278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69279         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69280         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69281         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69282         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69283
69284 2007-06-27  Bruno Haible  <bruno@clisp.org>
69285
69286         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69287         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69288
69289 2007-06-26  Karl Berry  <karl@gnu.org>
69290
69291         * MODULES.html.sh: remove xreadlink-with-size.
69292
69293 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69296         method that I hope also handles the double-include problem noted
69297         by Bruno Haible in
69298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69299
69300 2007-06-23  Bruno Haible  <bruno@clisp.org>
69301
69302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69303         Don't let the 'mostlyclean' target fail if the last subdirectory could
69304         not be removed.
69305         Reported by Karl Berry.
69306
69307 2007-06-23  Bruno Haible  <bruno@clisp.org>
69308
69309         * gnulib-tool (echo): Add a speedier workaround for ksh.
69310         * tests/test-echo.sh: Likewise.
69311
69312 2007-06-23  Bruno Haible  <bruno@clisp.org>
69313
69314         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69315         * tests/test-echo.sh: Likewise.
69316
69317 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69318
69319         * gnulib-tool (IFS): Initialize early, so we don't set it to
69320         empty later.
69321         (self_abspathname): Rewrite algorithm to set it, reindent.
69322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69323         (func_create_megatestdir): Merge some sed scripts.
69324
69325 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69328         exposed by Sun Studio 11 cc on Solaris 8.
69329
69330 2007-06-22  Bruno Haible  <bruno@clisp.org>
69331
69332         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69333         backslashes.
69334         * tests/test-echo.sh: New file.
69335
69336 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69337
69338         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69339         simplify `sed_replace_build_aux' scripts, they are portable but
69340         echoing them with `echo' is not.
69341         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69342
69343 2007-06-21  Karl Berry  <karl@gnu.org>
69344
69345         * config/srclist.txt: guess we can't handle the licenses via
69346         srclist at the moment.
69347
69348 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * MODULES.html.sh: Add include_next.
69351         * modules/include_next: New file.
69352
69353 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69354
69355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69356         INCLUDE_NEXT.
69357         (gl_CHECK_NEXT_HEADERS): New macro.
69358         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69359         the obsolescent gl_ABSOLUTE_HEADER.
69360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69361         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69362         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69363         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69364         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69365         * m4/math_h.m4 (gl_MATH_H): Likewise.
69366         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69367         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69368         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69370         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69371         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69372         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69377         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69378         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69379         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69380         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69381         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69382         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69383         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69384         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69385         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69386         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69387         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69388         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69389         * lib/float_.h: Likewise.
69390         * lib/inttypes_.h: Likewise.
69391         * lib/math_.h: Likewise.
69392         * lib/search_.h: Likewise.
69393         * lib/signal_.h: Likewise.
69394         * lib/stdint_.h: Likewise.
69395         * lib/stdio_.h: Likewise.
69396         * lib/stdlib_.h: Likewise.
69397         * lib/string_.h: Likewise.
69398         * lib/sys_stat_.h: Likewise.
69399         * lib/sys_time_.h: Likewise.
69400         * lib/time_.h: Likewise.
69401         * lib/unistd_.h: Likewise.
69402         * lib/wchar_.h: Likewise.
69403         * lib/wctype_.h: Likewise.
69404         * lib/dirent_.h: Likewise.
69405         * lib/iconv_.h: Likewise.
69406         * lib/locale_.h: Likewise.
69407         * lib/netinet_in_.h: Likewise.
69408         * lib/sys_select_.h: Likewise.
69409         * lib/sys_socket_.h: Likewise.
69410         * lib/sysexits_.h: Likewise.
69411         * modules/fcntl (Depends-on): Depend on include_next, not
69412         absolute_header.
69413         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69414         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69415         * modules/fchdir: Likewise.
69416         * modules/float: Likewise.
69417         * modules/iconv_open: Likewise.
69418         * modules/inttypes: Likewise.
69419         * modules/locale: Likewise.
69420         * modules/math: Likewise.
69421         * modules/netinet_in: Likewise.
69422         * modules/search: Likewise.
69423         * modules/signal: Likewise.
69424         * modules/stdint: Likewise.
69425         * modules/stdio: Likewise.
69426         * modules/stdlib: Likewise.
69427         * modules/string: Likewise.
69428         * modules/sys_select: Likewise.
69429         * modules/sys_socket: Likewise.
69430         * modules/sys_stat: Likewise.
69431         * modules/sys_time: Likewise.
69432         * modules/sysexits: Likewise.
69433         * modules/time: Likewise.
69434         * modules/unistd: Likewise.
69435         * modules/wchar: Likewise.
69436         * modules/wctype: Likewise.
69437         * modules/sys_stat: Change maintainer to "all".
69438         * modules/unistd: Likewise.
69439
69440 2007-06-20  Karl Berry  <karl@gnu.org>
69441
69442         * config/srclist.txt: track www changes in license files.
69443
69444 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69445
69446         * build-aux/bootstrap: Remove stray dot.
69447         Make sure build_aux settings are honored when linking
69448         gnulib_extra_files.
69449
69450 2007-06-19  Eric Blake  <ebb9@byu.net>
69451
69452         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69453         Allow compilation on cygwin.
69454
69455 2007-06-19  Jim Meyering  <jim@meyering.net>
69456
69457         xreadlink-with-size: Remove module.  No longer used.
69458         Ex-callers now use xreadlink or mreadlink-with-size.
69459         * modules/xreadlink-with-size: Remove module.
69460         * lib/xreadlink-with-size.c: Remove file.
69461         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69462         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69463         just before the function definition *is* accurate.
69464
69465         Eliminate one way canonicalize_filename_mode could exit.
69466         * lib/canonicalize.c (canonicalize_filename_mode):
69467         Use mreadlink_with_size, not xreadlink_with_size.
69468
69469 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         Detect porting problems to FreeBSD/arm, which has time_t wider than
69472         long int.  Original problem reported for GNU diff by Xin Li in
69473         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69474         * modules/getdate (Depends-on): Add intprops, verify.
69475         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69476         is an integer type no wider than long int.
69477
69478 2007-06-18  Jim Meyering  <jim@meyering.net>
69479
69480         New module: mreadlink-with-size.
69481         * MODULES.html.sh: Add mreadlink-with-size.
69482         * modules/mreadlink-with-size: New module
69483         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69484         not xreadlink-with-size.
69485         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69486
69487 2007-06-16  Bruno Haible  <bruno@clisp.org>
69488
69489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69490         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69491         Reported by Gary V. Vaughan <gary@gnu.org>.
69492
69493 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69494
69495         Revamp lchown so that it lives in unistd.h where it belongs.
69496         * lib/lchown.h: Remove.
69497         * lib/dirchownmod.c: Don't include lib/lchown.h.
69498         * lib/fchownat.c: Likewise.
69499         * lib/openat.c: Likewise.
69500         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69501         does not follow symlinks.
69502         (EOPNOTSUPP): Define if not defined.
69503         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69504         is defined to 0.
69505         (lchown): New decl.
69506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69507         Do not check for lchown decl.
69508         Set REPLACE_LCHOWN.
69509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69510         REPLACE_LCHOWN.
69511         * modules/chown: Make it clear it follows symlinks.
69512         * modules/lchown: Make it clear it doesn't follow symlinks.
69513         (Files): Remove lib/lchown.h
69514         (Depends-on): Add unistd.
69515         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69516         (Include): Include <unistd.h>, not "lchown.h".
69517         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69518         REPLACE_LCHOWN.
69519
69520 2007-06-15  Jim Meyering  <jim@meyering.net>
69521
69522         Change license (GPL to LGPL) of fsusage and dependents.
69523         * modules/fsusage (License): Change to LGPL.
69524         * modules/full-read (License): Likewise.
69525         * modules/full-write (License): Likewise.
69526         * modules/safe-read (License): Likewise.
69527         * modules/safe-write (License): Likewise.
69528
69529 2007-06-14  Ben Pfaff  <blp@gnu.org>
69530
69531         Missing part of allocsa -> malloca transition.
69532         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69533         gl_MALLOCA.
69534
69535 2007-06-12  Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69538         to ia64, x86_64, i386.
69539         Reported by Eric Blake.
69540
69541 2007-06-12  Bruno Haible  <bruno@clisp.org>
69542
69543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69544         cross-compiling to x86_64.
69545
69546 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69549         glitch reported by Ralf Wildenhues in
69550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69551
69552         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69553         Vin Shelton.
69554
69555 2007-06-11  Bruno Haible  <bruno@clisp.org>
69556
69557         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69558         replacement string.
69559         Reported by Eric Blake.
69560
69561 2007-06-10  Bruno Haible  <bruno@clisp.org>
69562
69563         Prepare vasnprintf code for use with Unicode strings.
69564         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69565         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69566         TYPE_U32_STRING.
69567         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69568         a_u32_string variants.
69569         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69570         * lib/printf-args.c: Don't include config.h and the specification
69571         header if PRINTF_FETCHARGS is already defined.
69572         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69573         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69574         TYPE_U16_STRING, TYPE_U32_STRING.
69575         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69576         u16_directive, u16_directives, u32_directive, u32_directives): New
69577         types.
69578         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69579         New declarations.
69580         * lib/printf-parse.c: Don't include config.h and the specification
69581         header if PRINTF_PARSE is already defined. Eliminate the set of
69582         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69583         them now. Include c-ctype.h.
69584         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69585         directive and CHAR_T_ONLY_ASCII.
69586         * lib/vasnprintf.c: Don't include config.h and the specification header
69587         if VASNPRINTF is already defined.
69588         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69589         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69590         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69591         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69592         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69593         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69594         code accordingly.
69595         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69596         pad_ourselves also in this case, with the 'c' and 's' directives, and
69597         with a different notion of "width".
69598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69599
69600 2007-06-10  Bruno Haible  <bruno@clisp.org>
69601
69602         * modules/unistr/u32-mbsnlen: New file.
69603         * lib/unistr/u32-mbsnlen.c: New file.
69604
69605         * modules/unistr/u16-mbsnlen: New file.
69606         * lib/unistr/u16-mbsnlen.c: New file.
69607
69608         * modules/unistr/u8-mbsnlen: New file.
69609         * lib/unistr/u8-mbsnlen.c: New file.
69610
69611         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69612         declarations.
69613
69614 2007-06-10  Bruno Haible  <bruno@clisp.org>
69615
69616         * lib/string_.h (mbsnlen): New declaration.
69617         * lib/mbsnlen.c: New file.
69618         * m4/mbsnlen.m4: New file.
69619         * modules/mbsnlen: New file.
69620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69621         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69622         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69623
69624 2007-06-10  Bruno Haible  <bruno@clisp.org>
69625
69626         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69627
69628 2007-06-10  Bruno Haible  <bruno@clisp.org>
69629
69630         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69631         * lib/mbuiter.h: Likewise.
69632
69633 2007-06-10  Bruno Haible  <bruno@clisp.org>
69634
69635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69636         declaration.
69637
69638 2007-06-10  Karl Berry  <karl@gnu.org>
69639
69640         * config/srclist.txt: remove gettext entries, Bruno prefers
69641         to update individually.
69642
69643 2007-06-10  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69646         'maxlen'. Ensure only length + width bytes are allocated, not
69647         length + 1 + width.
69648
69649 2007-06-09  Bruno Haible  <bruno@clisp.org>
69650
69651         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69652         (CHAR_T): Remove macro.
69653         (VASNPRINTF): Update.
69654
69655 2007-06-09  Bruno Haible  <bruno@clisp.org>
69656
69657         * MODULES.html.sh (Unicode string functions): Add the new modules.
69658
69659         * modules/uniconv/u32-conv-to-enc: New file.
69660         * lib/uniconv/u32-conv-to-enc.c: New file.
69661         * modules/uniconv/u32-conv-to-enc-tests: New file.
69662         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69663
69664         * modules/uniconv/u16-conv-to-enc: New file.
69665         * lib/uniconv/u16-conv-to-enc.c: New file.
69666         * lib/uniconv/u-conv-to-enc.h: New file.
69667         * modules/uniconv/u16-conv-to-enc-tests: New file.
69668         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69669
69670         * modules/uniconv/u8-conv-to-enc: New file.
69671         * lib/uniconv/u8-conv-to-enc.c: New file.
69672         * modules/uniconv/u8-conv-to-enc-tests: New file.
69673         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69674
69675         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69676         u32_conv_to_encoding): New declarations.
69677
69678 2007-06-09  Bruno Haible  <bruno@clisp.org>
69679
69680         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69681
69682 2007-06-09  Bruno Haible  <bruno@clisp.org>
69683
69684         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69685         * modules/malloca: Renamed from modules/allocsa, updated.
69686         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69687         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69688         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69689         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69690         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69691         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69692         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69693         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69694         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69695         * modules/c-strcasestr (Depends-on): Update.
69696         * lib/c-strcasestr.c: Update.
69697         * modules/c-strstr (Depends-on): Update.
69698         * lib/c-strstr.c: Update.
69699         * modules/canonicalize-lgpl (Depends-on): Update.
69700         * lib/canonicalize-lgpl.c: Update.
69701         * modules/clean-temp (Depends-on): Update.
69702         * lib/clean-temp.c: Update.
69703         * modules/csharpcomp (Depends-on): Update.
69704         * lib/csharpcomp.c: Update.
69705         * modules/csharpexec (Depends-on): Update.
69706         * lib/csharpexec.c: Update.
69707         * modules/javacomp (Depends-on): Update.
69708         * lib/javacomp.c: Update.
69709         * modules/javaexec (Depends-on): Update.
69710         * lib/javaexec.c: Update.
69711         * modules/mbscasestr (Depends-on): Update.
69712         * lib/mbscasestr.c: Update.
69713         * modules/mbsstr (Depends-on): Update.
69714         * lib/mbsstr.c: Update.
69715         * modules/setenv (Depends-on): Update.
69716         * lib/setenv.c: Update.
69717         * modules/strcasestr (Depends-on): Update.
69718         * lib/strcasestr.c: Update.
69719         * modules/striconveha (Depends-on): Update.
69720         * lib/striconveha.c: Update.
69721         * modules/relocatable-prog-wrapper (Files): Update.
69722         * lib/relocwrapper.c: Update.
69723         * build-aux/install-reloc: Update.
69724         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69725
69726 2007-06-08  Bruno Haible  <bruno@clisp.org>
69727
69728         Port to uClibc.
69729         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69730         * lib/fpurge.c (fpurge): Likewise.
69731         * lib/freading.c (freading): Likewise.
69732         * lib/fseeko.c (rpl_fseeko): Likewise.
69733         * lib/fseterr.c (fseterr): Likewise.
69734         * lib/fwriting.c (fwriting): Likewise.
69735         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69736
69737 2007-06-08  Bruno Haible  <bruno@clisp.org>
69738
69739         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69740         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69741         * modules/gettext (Files): Add m4/intlmacosx.m4.
69742
69743 2007-06-07  Bruno Haible  <bruno@clisp.org>
69744
69745         * modules/localename-tests: New file.
69746         * tests/test-localename.c: New file.
69747
69748         New module 'localename'.
69749         * lib/localename.h: New file.
69750         * lib/localename.c: New file, from GNU gettext.
69751         * m4/localename.m4: New file.
69752         * modules/localename: New file.
69753
69754 2007-06-07  Bruno Haible  <bruno@clisp.org>
69755
69756         Work around the lack of <wchar.h> on some builds of uClibc.
69757         * doc/headers/wchar.texi: Update.
69758         * lib/wchar_.h: Include <wchar.h> only if it exists.
69759         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69760         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69761         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69762         doesn't exist.
69763         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69764         * modules/mbfile (Depends-on): Add wchar.
69765         * modules/mbiter (Depends-on): Likewise.
69766         * modules/mbuiter (Depends-on): Likewise.
69767         Reported by Simon Josefsson.
69768
69769 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         Work around problem reported by Steven M. Schweda in
69772         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69773         Tru64 5.1B with the Compaq compiler environment installed declares
69774         an 'isblank' function but does not define it in the C library.
69775         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69776         * lib/regex_internal.h (isblank): Likewise.
69777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69778         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69779
69780 2007-06-05  Bruno Haible  <bruno@clisp.org>
69781
69782         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69783         ia64.
69784         * modules/printf-safe: New file.
69785         * modules/fprintf-posix (Depends-on): Add printf-safe.
69786         * modules/printf-posix (Depends-on): Likewise.
69787         * modules/snprintf-posix (Depends-on): Likewise.
69788         * modules/sprintf-posix (Depends-on): Likewise.
69789         * modules/vasnprintf-posix (Depends-on): Likewise.
69790         * modules/vasprintf-posix (Depends-on): Likewise.
69791         * modules/vfprintf-posix (Depends-on): Likewise.
69792         * modules/vprintf-posix (Depends-on): Likewise.
69793         * modules/vsnprintf-posix (Depends-on): Likewise.
69794         * modules/vsprintf-posix (Depends-on): Likewise.
69795         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69796         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69797         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69798         "no" on i386, x86_64, ia64.
69799         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69800         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69801         on i386, x86_64, ia64.
69802         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69803         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69804         on i386, x86_64, ia64.
69805         * tests/test-vasnprintf-posix.c: Include float.h.
69806         (LDBL80_WORDS): New macro.
69807         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69808         on i386, x86_64, ia64.
69809         * tests/test-vasprintf-posix.c: Include float.h.
69810         (LDBL80_WORDS): New macro.
69811         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69812         on i386, x86_64, ia64.
69813         * tests/test-snprintf-posix.c: Include float.h.
69814         * tests/test-sprintf-posix.c: Likewise.
69815         * tests/test-vsnprintf-posix.c: Likewise.
69816         * tests/test-vsprintf-posix.c: Likewise.
69817
69818 2007-06-05  Bruno Haible  <bruno@clisp.org>
69819
69820         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69821         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69822         non-IEEE numbers on i386, x86_64, ia64.
69823         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69824         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69825         * tests/test-isnanl.h: Include float.h.
69826         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69827
69828 2007-06-05  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69831         also the %a / %A. Handle the %a / %A code before this extra handling.
69832
69833 2007-06-05  Bruno Haible  <bruno@clisp.org>
69834
69835         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69836         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69837
69838 2007-06-05  Bruno Haible  <bruno@clisp.org>
69839
69840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69841         typo in variable name.
69842
69843 2007-06-05  Eric Blake  <ebb9@byu.net>
69844
69845         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69846         Reported by Simon Josefsson.
69847
69848 2007-06-04  Bruno Haible  <bruno@clisp.org>
69849
69850         Avoid test failures on some PowerPC platforms.
69851         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69852         Define differently for PowerPC.
69853         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69854         Reported by Gary V. Vaughan <gary@gnu.org>.
69855
69856 2007-06-02  Bruno Haible  <bruno@clisp.org>
69857
69858         Fix test-stdint failure on FreeBSD/ia64.
69859         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69860         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69861         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69862         * doc/headers/stdint.texi: Update.
69863
69864 2007-06-01  Bruno Haible  <bruno@clisp.org>
69865
69866         * tests/test-binary-io.c (main): Pass a third argument to open().
69867         Reported by Gary V. Vaughan <gary@gnu.org>.
69868
69869 2007-06-01  Bruno Haible  <bruno@clisp.org>
69870
69871         * doc/functions/frexpl.texi: Update for mingw.
69872
69873 2007-06-01  Bruno Haible  <bruno@clisp.org>
69874
69875         * tests/test-lseek.c (main): Disable test of errno for invalid third
69876         argument.
69877         * doc/functions/lseek.texi: Update.
69878         Reported by Gary V. Vaughan <gary@gnu.org>.
69879
69880 2007-05-28  Bruno Haible  <bruno@clisp.org>
69881
69882         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69883
69884 2007-05-31  Eric Blake  <ebb9@byu.net>
69885
69886         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69887         cross compiling.
69888
69889 2007-05-30  Eric Blake  <ebb9@byu.net>
69890         and Bruno Haible  <bruno@clisp.org>
69891
69892         Work around mingw test failures exposed by m4-1.4.9b.
69893         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69894         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69895         moment.
69896
69897 2007-05-30  Bruno Haible  <bruno@clisp.org>
69898
69899         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69900         assuming that they are closed. Needed on HP-UX 11.
69901
69902 2007-05-29  Bruno Haible  <bruno@clisp.org>
69903
69904         Fix a problem with #include_next.
69905         * lib/dirent_.h: Split the double-inclusion guard.
69906         * lib/fcntl_.h: Likewise.
69907         * lib/float_.h: Likewise.
69908         * lib/iconv_.h: Likewise.
69909         * lib/inttypes_.h: Likewise.
69910         * lib/locale_.h: Likewise.
69911         * lib/math_.h: Likewise.
69912         * lib/netinet_in_.h: Likewise.
69913         * lib/search_.h: Likewise.
69914         * lib/signal_.h: Likewise.
69915         * lib/stdint_.h: Likewise.
69916         * lib/stdio_.h: Likewise.
69917         * lib/stdlib_.h: Likewise.
69918         * lib/string_.h: Likewise.
69919         * lib/sys_select_.h: Likewise.
69920         * lib/sys_socket_.h: Likewise.
69921         * lib/sys_stat_.h: Likewise.
69922         * lib/sys_time_.h: Likewise.
69923         * lib/sysexits_.h: Likewise.
69924         * lib/time_.h: Likewise.
69925         * lib/unistd_.h: Likewise.
69926         * lib/wchar_.h: Likewise.
69927         * lib/wctype_.h: Likewise.
69928
69929 2007-05-29  Bruno Haible  <bruno@clisp.org>
69930
69931         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69932         for the moment.
69933
69934 2007-05-29  Bruno Haible  <bruno@clisp.org>
69935
69936         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69937         invocation.
69938         Reported by Eric Blake.
69939
69940 2007-05-29  Bruno Haible  <bruno@clisp.org>
69941
69942         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69943         compiling case.
69944
69945 2007-05-29  Eric Blake  <ebb9@byu.net>
69946             Bruno Haible  <bruno@clisp.org>
69947
69948         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69949         cross compiles.
69950
69951 2007-05-28  Eric Blake  <ebb9@byu.net>
69952
69953         * modules/closein-tests (test_closein_LDADD): Support test on
69954         cygwin with libtool.
69955
69956 2007-05-28  Bruno Haible  <bruno@clisp.org>
69957
69958         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69959         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69960         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69961         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69962         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69963         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69964         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69965         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69966         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69967
69968 2007-05-28  Eric Blake  <ebb9@byu.net>
69969
69970         Unconditionally include <config.h> in unit tests.
69971         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69972         * tests/test-allocsa.c, tests/test-arcfour.c,
69973         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69974         tests/test-array_list.c, tests/test-array_oset.c,
69975         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69976         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69977         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69978         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69979         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69980         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69981         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69982         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69983         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69984         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69985         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69986         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69987         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69988         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69989         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69990         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69991         test-md5.c, test-memmem.c, test-printf-posix.c,
69992         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69993         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69994         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69995         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69996         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69997         test-vasnprintf-posix2.c, test-vasnprintf.c,
69998         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69999         test-vfprintf-posix.c, test-vprintf-posix.c,
70000         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70001         test-xvasprintf.c: Likewise.
70002
70003 2007-05-28  Bruno Haible  <bruno@clisp.org>
70004
70005         * gnulib-tool (func_import): Remember the --with-tests command-line
70006         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70007         Reported by Eric Blake.
70008
70009 2007-05-28  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/ftell-tests: New file.
70012         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70013         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70014
70015         * lib/ftell.c: New file.
70016         * modules/ftell: New file.
70017         * m4/ftell.m4: New file.
70018         * doc/functions/ftell.texi: Update.
70019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70020         REPLACE_FTELL.
70021         * lib/stdio_.h (rpl_ftell): New declaration.
70022         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70023         REPLACE_FTELL.
70024
70025 2007-05-28  Eric Blake  <ebb9@byu.net>
70026
70027         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70028
70029 2007-05-28  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/fseek-tests: New file.
70032         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70033         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70034
70035         * lib/fseek.c: New file.
70036         * modules/fseek: New file.
70037         * m4/fseek.m4: New file.
70038         * doc/functions/fseek.texi: Update.
70039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70040         REPLACE_FSEEK.
70041         * lib/stdio_.h (rpl_fseek): New declaration.
70042         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70043         REPLACE_FSEEK.
70044
70045 2007-05-28  Bruno Haible  <bruno@clisp.org>
70046
70047         * lib/stdio_.h (fflush): More comments.
70048
70049 2007-05-28  Bruno Haible  <bruno@clisp.org>
70050
70051         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70052         runtime test.
70053
70054 2007-05-28  Eric Blake  <ebb9@byu.net>
70055
70056         Improve lseek module.
70057         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70058         * lib/unistd_.h (lseek): Scale back link warning message.
70059         * tests/test-lseek.c: Beef up test.
70060         * tests/test-lseek.sh: Exercise more facets of lseek.
70061         Reported by Bruno Haible.
70062
70063 2007-05-28  Bruno Haible  <bruno@clisp.org>
70064
70065         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70066         to define.
70067
70068 2007-05-27  Bruno Haible  <bruno@clisp.org>
70069
70070         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70071
70072 2007-05-27  Bruno Haible  <bruno@clisp.org>
70073
70074         * modules/openmp: New file.
70075         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70076         Noah Misch.
70077
70078 2007-05-26  Bruno Haible  <bruno@clisp.org>
70079
70080         * modules/chdir-long (Depends-on): Add fchdir.
70081         * modules/chdir-safer (Depends-on): Likewise.
70082         * modules/fts (Depends-on): Likewise.
70083         * modules/fts-lgpl (Depends-on): Likewise.
70084         * modules/openat (Depends-on): Likewise.
70085         * modules/savewd (Depends-on): Likewise.
70086
70087 2007-05-24  Eric Blake  <ebb9@byu.net>
70088
70089         Fix lseek on mingw.
70090         * modules/lseek: New module.
70091         * m4/lseek.m4: New file.
70092         * lib/lseek.c: New file.
70093         * modules/lseek-tests: New file.
70094         * tests/test-lseek.c: New file.
70095         * tests/test-lseek.sh: New file.
70096         * MODULES.html.sh: Document lseek module.
70097         * modules/fflush (Depends-on): Add lseek, fseeko.
70098         * modules/fseeko (Depends-on): Likewise.
70099         * modules/ftello (Depends-on): Likewise.
70100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70101         broken.
70102         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70103         broken.
70104         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70105         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70106         * lib/ftello.c (rpl_ftello): Likewise.
70107         * tests/test-fseeko.c (main): Test this.
70108         * tests/test-fseeko.sh: Likewise.
70109         * tests/test-ftello.c (main): Likewise.
70110         * tests/test-ftello.sh: Likewise.
70111         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70112         implies replacing fseek.
70113         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70114         HAVE_FTELLO.
70115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70116         * modules/unistd (Makefile.am): Likewise.
70117         * lib/unistd_.h (lseek): Declare a replacement.
70118         * doc/functions/lseek.texi (lseek): Document this fix.
70119         * doc/functions/fseek.texi (fseek): Likewise.
70120         * doc/functions/ftell.texi (ftell): Likewise.
70121
70122 2007-05-24  Bruno Haible  <bruno@clisp.org>
70123
70124         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70125         in the printed representation of a NaN.
70126         * tests/test-vasprintf-posix.c (test_function): Likewise.
70127         * tests/test-snprintf-posix.h (test_function): Likewise.
70128         * tests/test-sprintf-posix.h (test_function): Likewise.
70129         Reported by Eric Blake.
70130
70131 2007-05-23  Eric Blake  <ebb9@byu.net>
70132
70133         Fix fseeko/ftello on cygwin 1.5.24.
70134         * doc/functions/fseeko.texi (fseeko): Document the fix.
70135         * doc/functions/ftello.texi (ftello): Document the fix.
70136         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70137         * doc/functions/stdout.text (stdout): New file.
70138         * doc/functions/stderr.text (stderr): New file.
70139         * doc/gnulib.texi (Function Substitutes): Use new files.
70140         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70141         prior to 1.7.0.
70142         * tests/test-ftello.c (main): Likewise for ftello.
70143         * tests/test-fseeko.sh: New file.
70144         * tests/test-ftello.sh: New file.
70145         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70146         with seekable stdin.
70147         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70149         (gl_REPLACE_FSEEKO): New macro.
70150         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70151         * modules/fseeko (Files): Distribute fseeko.c.
70152         * modules/ftello (Files): Distribute ftello.c.
70153         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70154         mode.
70155         * lib/ftello.c (rpl_ftello): New file.
70156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70157         fseeko, ftello.
70158         (gl_STDIN_LARGE_OFFSET): New macro.
70159         * modules/stdio (Makefile.am): Perform the replacement.
70160         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70161
70162 2007-05-23  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70165         GNULIB_POSIXCHECK is defined.
70166
70167 2007-05-21  Bruno Haible  <bruno@clisp.org>
70168
70169         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70170         Check also the output for NaN arguments. When cross-compiling, guess
70171         no on IRIX.
70172         * lib/vasnprintf.c: Update comments.
70173         * tests/test-vasnprintf-posix.c (strisnan): New function.
70174         (test_function): Use it.
70175         * tests/test-vasprintf-posix.c (strisnan): New function.
70176         (test_function): Use it.
70177         * tests/test-snprintf-posix.h (strisnan): New function.
70178         (test_function): Use it.
70179         * tests/test-sprintf-posix.h (strisnan): New function.
70180         (test_function): Use it.
70181         Reported by Eric Blake.
70182
70183 2007-05-20  Bruno Haible  <bruno@clisp.org>
70184
70185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70186         numbers that fails on BeOS.
70187         * doc/functions/frexpl.texi: Update.
70188
70189 2007-05-20  Jim Meyering  <jim@meyering.net>
70190
70191         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70192         forced upon us by glibc-2.6.
70193
70194 2007-05-20  Bruno Haible  <bruno@clisp.org>
70195
70196         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70197         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70198         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70199         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70200         NEED_PRINTF_INFINITE.
70201         (is_infinitel): New function.
70202         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70204         gl_PREREQ_VASNPRINTF_INFINITE.
70205         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70206         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70207         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70208         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70209         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70210         gl_PREREQ_VASNPRINTF_INFINITE.
70211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70218         * doc/functions/fprintf.texi: Update.
70219         * doc/functions/printf.texi: Update.
70220         * doc/functions/snprintf.texi: Update.
70221         * doc/functions/sprintf.texi: Update.
70222         * doc/functions/vfprintf.texi: Update.
70223         * doc/functions/vprintf.texi: Update.
70224         * doc/functions/vsnprintf.texi: Update.
70225         * doc/functions/vsprintf.texi: Update.
70226
70227 2007-05-20  Bruno Haible  <bruno@clisp.org>
70228
70229         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70230         was not found in libc.
70231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70232
70233 2007-05-20  Bruno Haible  <bruno@clisp.org>
70234
70235         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70236         printed as "-nan" instead of "nan".
70237         * tests/test-vasprintf-posix.c (test_function): Likewise.
70238         * tests/test-snprintf-posix.h (test_function): Likewise.
70239         * tests/test-sprintf-posix.h (test_function): Likewise.
70240         Needed for HP-UX 11.
70241
70242 2007-05-20  Jim Meyering  <jim@meyering.net>
70243
70244         Fix buggy test for the fchownat-deref bug.
70245         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70246         symlink required for the run-test.  Without it, this test would
70247         always declare that fchownat doesn't work, and client code would
70248         unnecessarily use the replacement function with fixed libc.
70249         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70250         Reported by Greg Schafer.
70251
70252 2007-05-19  Bruno Haible  <bruno@clisp.org>
70253
70254         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70255         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70256         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70257         Needed for IRIX 6.5 and Solaris 2.5.1.
70258
70259 2007-05-19  Bruno Haible  <bruno@clisp.org>
70260
70261         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70262         (test_function): Skip tests involving -0.0 on platforms where
70263         -0.0 = 0.0.
70264         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70265         (test_function): Skip tests involving -0.0 on platforms where
70266         -0.0 = 0.0.
70267         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70268         (test_function): Skip tests involving -0.0 on platforms where
70269         -0.0 = 0.0.
70270         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70271         (test_function): Skip tests involving -0.0 on platforms where
70272         -0.0 = 0.0.
70273         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70274         tests.
70275         * tests/test-printf-posix.h (test_function): Likewise.
70276         * tests/test-printf-posix.output: Remove all -0.0 related results.
70277         Needed for IRIX 6.5.
70278
70279 2007-05-19  Bruno Haible  <bruno@clisp.org>
70280
70281         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70282         printed as "nan0x7fffffff" instead of "nan".
70283         * tests/test-vasprintf-posix.c (test_function): Likewise.
70284         * tests/test-snprintf-posix.h (test_function): Likewise.
70285         * tests/test-sprintf-posix.h (test_function): Likewise.
70286         * tests/test-fprintf-posix.h (NaN): Remove macro.
70287         (test_function): Remove all NaN related tests.
70288         * tests/test-printf-posix.h (NaN): Remove macro.
70289         (test_function): Remove all NaN related tests.
70290         * tests/test-printf-posix.output: Remove all NaN related results.
70291         Needed for IRIX 6.5.
70292
70293 2007-05-19  Bruno Haible  <bruno@clisp.org>
70294
70295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70297
70298 2007-05-19  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/float_.h: New file.
70301         * m4/float_h.m4: New file.
70302         * modules/float: New file.
70303         * modules/isnanl (Dependencies): Add float.
70304         * modules/isnanl-nolibm (Dependencies): Likewise.
70305         * modules/mathl (Dependencies): Likewise.
70306         * modules/printf-frexpl (Dependencies): Likewise.
70307         * modules/signbit (Dependencies): Likewise.
70308         * modules/vasnprintf (Dependencies): Likewise.
70309         * doc/headers/float.texi: Update.
70310
70311 2007-05-19  Jim Meyering  <jim@meyering.net>
70312
70313         * lib/utimens.c (gl_futimens): Rename from futimens,
70314         now that glibc-2.6 declares futimens.
70315         * lib/utimens.h: Likewise.
70316
70317 2007-05-19  Bruno Haible  <bruno@clisp.org>
70318
70319         Avoid test failures on mingw.
70320         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70321         * tests/test-printf-posix.sh: Likewise.
70322         * tests/test-vfprintf-posix.sh: Likewise.
70323         * tests/test-vprintf-posix.sh: Likewise.
70324
70325 2007-05-19  Bruno Haible  <bruno@clisp.org>
70326
70327         Fix *printf result for NaN, Inf, -0.0 on mingw.
70328         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70329         * lib/vasnprintf.c: Include math.h and isnan.h.
70330         (is_infinite_or_zero): New function.
70331         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70332         values in the %f, %F, %e, %E, %g, %G directives.
70333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70335         gl_PRINTF_INFINITE and test its result. Invoke
70336         gl_PREREQ_VASNPRINTF_INFINITE.
70337         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70338         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70344         * doc/functions/fprintf.texi: Update.
70345         * doc/functions/printf.texi: Update.
70346         * doc/functions/snprintf.texi: Update.
70347         * doc/functions/sprintf.texi: Update.
70348         * doc/functions/vfprintf.texi: Update.
70349         * doc/functions/vprintf.texi: Update.
70350         * doc/functions/vsnprintf.texi: Update.
70351         * doc/functions/vsprintf.texi: Update.
70352
70353 2007-05-19  Bruno Haible  <bruno@clisp.org>
70354
70355         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70356         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70357         Instead of multiplying with 10^k, set extra_zeroes to k.
70358         (scale10_round_long_double): Remove function.
70359
70360 2007-05-18  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70363         introduced on 2007-05-06.
70364
70365 2007-05-18  Bruno Haible  <bruno@clisp.org>
70366
70367         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70368         %g directives.
70369         * tests/test-vasprintf-posix.c (test_function): Likewise.
70370         * tests/test-snprintf-posix.h (test_function): Likewise.
70371         * tests/test-sprintf-posix.h (test_function): Likewise.
70372
70373 2007-05-18  Bruno Haible  <bruno@clisp.org>
70374
70375         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70376         (strmatch): New function.
70377         (test_function): Test the %f directive on numbers of various exponents.
70378         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70379         (strmatch): New function.
70380         (test_function): Test the %f directive on numbers of various exponents.
70381         * tests/test-snprintf-posix.h (strmatch): New function.
70382         (test_function): Test the %f directive on numbers of various exponents.
70383         * tests/test-sprintf-posix.h (strmatch): New function.
70384         (test_function): Test the %f directive on numbers of various exponents.
70385         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70386         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70387         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70388         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70389
70390 2007-05-18  Bruno Haible  <bruno@clisp.org>
70391
70392         Add support for 'long double' number output.
70393         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70394         * lib/vasnprintf.c: Include math.h and float+.h.
70395         (mp_limb_t): New type.
70396         (GMP_LIMB_BITS): New macro.
70397         (mp_twolimb_t): New type.
70398         (GMP_TWOLIMB_BITS): New macro.
70399         (mpn_t): New type.
70400         (multiply, divide, convert_to_decimal, decode_long_double,
70401         scale10_round_long_double, scale10_round_decimal_long_double,
70402         floorlog10l): New functions.
70403         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70404         for the %f, %F, %e, %E, %g, %G directives.
70405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70407         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70408         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70416         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70417         * modules/snprintf-posix (Depends-on): Likewise.
70418         * modules/sprintf-posix (Depends-on): Likewise.
70419         * modules/vasnprintf-posix (Depends-on): Likewise.
70420         * modules/vasprintf-posix (Depends-on): Likewise.
70421         * modules/vfprintf-posix (Depends-on): Likewise.
70422         * modules/vsnprintf-posix (Depends-on): Likewise.
70423         * modules/vsprintf-posix (Depends-on): Likewise.
70424         * modules/vasnprintf (Files): Add lib/float+.h.
70425         * doc/functions/fprintf.texi: Update.
70426         * doc/functions/printf.texi: Update.
70427         * doc/functions/snprintf.texi: Update.
70428         * doc/functions/sprintf.texi: Update.
70429         * doc/functions/vfprintf.texi: Update.
70430         * doc/functions/vprintf.texi: Update.
70431         * doc/functions/vsnprintf.texi: Update.
70432         * doc/functions/vsprintf.texi: Update.
70433
70434 2007-05-18  Bruno Haible  <bruno@clisp.org>
70435
70436         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70437
70438 2007-05-18  Bruno Haible  <bruno@clisp.org>
70439
70440         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70441         for printing 64-bit integers. Needed for mingw.
70442
70443 2007-05-18  Bruno Haible  <bruno@clisp.org>
70444
70445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70446         gl_FUNC_FREXPL_WORKS.
70447         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70448
70449 2007-05-18  Bruno Haible  <bruno@clisp.org>
70450
70451         * modules/frexpl-nolibm-tests: New file.
70452
70453         * modules/frexpl-nolibm: New file.
70454         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70455
70456 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70459         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70460         GCC 4.2, which otherwise issues a lot of warnings.
70461         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70462         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70463         Likewise.
70464         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70465         * modules/iconv_open (iconv.h): Likewise.
70466         * modules/locale (locale.h): Likewise.
70467         * modules/netinet_in (netinet/in.h): Likewise.
70468         * modules/sys_select (sys_select.h): Likewise.
70469         * modules/sys_socket (sys/socket.h): Likewise.
70470         * modules/sys_stat (sys/stat.h): Likewise.
70471         * modules/sysexits (sysexits.h): Likewise.
70472         * modules/unistd (unistd.h): Likewise.
70473
70474 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70475
70476         * modules/closein-tests (Makefile.am): Distribute
70477         `test-closein.sh'.
70478
70479 2007-05-17  Bruno Haible  <bruno@clisp.org>
70480
70481         * tests/test-printf-posix.output: Renamed from
70482         tests/test-fprintf-posix.out.
70483         * modules/fprintf-posix-tests: Update.
70484         * modules/printf-posix-tests: Update.
70485         * modules/vfprintf-posix-tests: Update.
70486         * modules/vprintf-posix-tests: Update.
70487         * tests/test-fprintf-posix.sh: Update.
70488         * tests/test-printf-posix.sh: Update.
70489         * tests/test-vfprintf-posix.sh: Update.
70490         * tests/test-vprintf-posix.sh: Update.
70491         Reported by Ralf Wildenhues.
70492
70493 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70496         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70497         GCC 4.2, which otherwise issues a lot of warnings.
70498         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70499         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70500         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70501         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70502         it should no longer be needed.
70503         * lib/string_.h: Likewise.
70504         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70505         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70506         * modules/inttypes (inttypes.h): Likewise.
70507         * modules/math (math.h): Likewise.
70508         * modules/search (search.h): Likewise.
70509         * modules/signal (signal.h): Likewise.
70510         * modules/stdint (stdint.h): Likewise.
70511         * modules/stdio (stdio.h): Likewise.
70512         * modules/stdlib (stdlib.h): Likewise.
70513         * modules/string (string.h): Likewise.
70514         * modules/sys_time (sys/time.h): Likewise.
70515         * modules/time (time.h): Likewise.
70516         * modules/wchar (wchar.h): Likewise.
70517         * modules/wctype (wtype.h): Likewise.
70518
70519 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70520
70521         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70522
70523 2007-05-13  Bruno Haible  <bruno@clisp.org>
70524
70525         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70526         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70527         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70528         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70529         (gl_PREREQ_STRTOK_R): Don't require it here.
70530
70531 2007-05-13  Bruno Haible  <bruno@clisp.org>
70532
70533         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70534         when used in C++ mode.
70535
70536 2007-05-12  Bruno Haible  <bruno@clisp.org>
70537
70538         * lib/linebuffer.h: Tweak doc.
70539         * lib/linebuffer.c: Likewise.
70540
70541 2007-05-12  James Youngman  <jay@gnu.org>
70542
70543         * lib/linebuffer.c (readlinebuffer_delim): New function,
70544         like readlinebuffer, but use a caller-specified delimiter.
70545         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70546         as the delimiter.
70547         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70548
70549 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70550
70551         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70552         * modules/openat (Files): Remove openat-die.c.
70553         (Depends-on): Add openat-die.
70554         * modules/openat-die: New module.
70555
70556 2007-05-06  Bruno Haible  <bruno@clisp.org>
70557
70558         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70559         Update with info about Cygwin.
70560         * doc/functions/fprintf.texi: Update.
70561         * doc/functions/printf.texi: Update.
70562         * doc/functions/snprintf.texi: Update.
70563         * doc/functions/sprintf.texi: Update.
70564         * doc/functions/vfprintf.texi: Update.
70565         * doc/functions/vprintf.texi: Update.
70566         * doc/functions/vsnprintf.texi: Update.
70567         * doc/functions/vsprintf.texi: Update.
70568         Reported by Eric Blake.
70569
70570 2007-05-06  Bruno Haible  <bruno@clisp.org>
70571
70572         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70573         padding ourselves for the floating-point directives.
70574         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70577         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70578         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70586         * tests/test-snprintf-posix.h (test_function): Also check the width
70587         and some flags in the %f directive.
70588         * tests/test-sprintf-posix.h (test_function): Likewise.
70589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70590         * tests/test-vasprintf-posix.c (test_function): Likewise.
70591         * doc/functions/fprintf.texi: Update.
70592         * doc/functions/printf.texi: Update.
70593         * doc/functions/snprintf.texi: Update.
70594         * doc/functions/sprintf.texi: Update.
70595         * doc/functions/vfprintf.texi: Update.
70596         * doc/functions/vprintf.texi: Update.
70597         * doc/functions/vsnprintf.texi: Update.
70598         * doc/functions/vsprintf.texi: Update.
70599
70600 2007-05-06  Bruno Haible  <bruno@clisp.org>
70601
70602         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70603         pass the ' flag character to sprintf or snprintf.
70604         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70607         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70608         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70616         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70617         flag.
70618         * tests/test-sprintf-posix.h (test_function): Likewise.
70619         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70620         * tests/test-vasprintf-posix.c (test_function): Likewise.
70621         * doc/functions/fprintf.texi: Update.
70622         * doc/functions/printf.texi: Update.
70623         * doc/functions/snprintf.texi: Update.
70624         * doc/functions/sprintf.texi: Update.
70625         * doc/functions/vfprintf.texi: Update.
70626         * doc/functions/vprintf.texi: Update.
70627         * doc/functions/vsnprintf.texi: Update.
70628         * doc/functions/vsprintf.texi: Update.
70629
70630 2007-05-01  Bruno Haible  <bruno@clisp.org>
70631
70632         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70633
70634 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70637         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70638
70639 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70642         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70644
70645 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70646
70647         * lib/argp-help.c (struct hol_entry): New member `ord'.
70648         (HOL_ENTRY_PTRCMP): Use ord for comparison
70649         (hol_sort): Initialize ord.
70650
70651 2007-05-01  Bruno Haible  <bruno@clisp.org>
70652
70653         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70654         Reported by Eric Blake.
70655         * doc/gnulib.texi (Function Substitutes): Update.
70656
70657 2007-05-01  Bruno Haible  <bruno@clisp.org>
70658
70659         * doc/functions.texi: Remove file, now redundant through
70660         doc/functions/*.texi.
70661
70662 2007-05-01  Bruno Haible  <bruno@clisp.org>
70663
70664         * modules/argp (Depends-on): Add sleep.
70665
70666 2007-05-01  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/sleep-tests: New file.
70669         * tests/test-sleep.c: New file.
70670
70671         * modules/sleep: New file.
70672         * lib/sleep.c: New file.
70673         * m4/sleep.m4: New file.
70674         * lib/unistd_.h (sleep): New declaration.
70675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70676         HAVE_SLEEP.
70677         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70678         * doc/functions/sleep.texi: Document the sleep module.
70679
70680 2007-05-01  Bruno Haible  <bruno@clisp.org>
70681
70682         * lib/sigprocmask.h: Remove file.
70683         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70684         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70685         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70686         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70687         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70688         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70689         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70690         HAVE_SIGSET_T as a shell variable.
70691         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70692         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70693         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70694         (Depends-on): Add signal. Remove verify.
70695         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70696         (Include): Mention <signal.h> instead of sigprocmask.h.
70697         * NEWS: Mention the change.
70698         * lib/fatal-signal.c: Don't include sigprocmask.h.
70699
70700 2007-05-01  Bruno Haible  <bruno@clisp.org>
70701
70702         * modules/signal: New file.
70703         * lib/signal_.h: New file.
70704         * m4/signal_h.m4: New file.
70705
70706 2007-05-01  Bruno Haible  <bruno@clisp.org>
70707
70708         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70709         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70710         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70711         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70712
70713 2007-05-01  Bruno Haible  <bruno@clisp.org>
70714
70715         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70716         configure time.
70717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70718         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70719         * modules/sys_stat (Makefile.am): Substitute their values into
70720         sys/stat.h.
70721
70722 2007-05-01  Bruno Haible  <bruno@clisp.org>
70723
70724         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70725         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70726         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70727
70728 2007-05-01  Bruno Haible  <bruno@clisp.org>
70729
70730         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70731         'assert' module here.
70732
70733 2007-05-01  Bruno Haible  <bruno@clisp.org>
70734
70735         * doc/functions/*.texi: New files.
70736         * doc/functions/google-ranking.txt: New file.
70737         * doc/gnulib.texi (Function Substitutes): New chapter.
70738         (ctime, inet_ntoa): Remove sections.
70739         * doc/ctime.texi: Remove file.
70740         * doc/inet_ntoa.texi: Remove file.
70741         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70742         dependencies.
70743         (%.info): New rule, specifying a --reference-limit.
70744
70745 2007-05-01  Bruno Haible  <bruno@clisp.org>
70746
70747         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70748
70749 2007-05-01  Bruno Haible  <bruno@clisp.org>
70750
70751         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70752         the portability of 'mkdir' to mingw systems.
70753
70754 2007-05-01  Bruno Haible  <bruno@clisp.org>
70755
70756         * doc/headers/google-ranking.txt: New file.
70757
70758 2007-04-30  Eric Blake  <ebb9@byu.net>
70759
70760         Prefer fseeko to fseek.
70761         * modules/getpass (Depends-on): Add fseeko.
70762         * lib/getpass.c (getpass): Use fseeko, not fseek.
70763
70764 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70765
70766         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70767         assumes the sorting is stable, while most qsort implementations
70768         are not.  Use argument addresses to ensure they never compare as
70769         equal.
70770
70771         * tests/test-argp-2.sh (usage-indent test): Fix output
70772         (func_compare): Restore diff options
70773         * tests/test-argp.c: Restore #include "progname.h"
70774
70775 2007-04-29  Bruno Haible  <bruno@clisp.org>
70776
70777         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70779         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70781         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70782         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70783         (TESTS, check_PROGRAMS): Add test-snprintf.
70784         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70785         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70786         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70787         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70788         assertions that fail on HP-UX, OSF/1, or IRIX.
70789         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70790
70791 2007-04-29  Bruno Haible  <bruno@clisp.org>
70792
70793         * MODULES.html.sh (posix_functions): Remove 'contents'.
70794
70795 2007-04-29  Karl Berry  <karl@gnu.org>
70796
70797         * config/srclist.txt (gendocs_template_min): new entry.
70798
70799 2007-04-29  Bruno Haible  <bruno@clisp.org>
70800
70801         Work around fpurge bug on BSD systems.
70802         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70803         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70804         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70805         fpurge to rpl_fpurge if the system already has this function.
70806         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70807         the case where the system already has this function. Correct invariants
70808         on BSD systems.
70809         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70810         BSD systems.
70811
70812 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70813
70814         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70815         proposed by Sven Verdoolaege.
70816
70817         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70818         options.
70819         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70820         (usage and help tests): Update
70821
70822 2007-04-29  Bruno Haible  <bruno@clisp.org>
70823
70824         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70825         Print more information in case of failure. Disable a test on BeOS.
70826
70827 2007-04-29  Bruno Haible  <bruno@clisp.org>
70828
70829         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70830         This helps debugging on systems on which no gdb is available.
70831
70832 2007-04-29  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/freading.h: Improve comments.
70835         * lib/fwriting.h: Likewise.
70836         * tests/test-freading.c (main): Don't check freading immediately after
70837         repositioning. Needed for glibc.
70838
70839 2007-04-29  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/freading.c (freading): Trivial simplification.
70842
70843 2007-04-28  Bruno Haible  <bruno@clisp.org>
70844
70845         * tests/test-fwriting.c (main): Also test the interaction between
70846         fflush and fwriting.
70847         * modules/fwriting-tests (Depends-on): Add fflush.
70848
70849         * tests/test-freading.c (main): Also test the interaction between
70850         fflush and freading.
70851         * modules/freading-tests (Depends-on): Add fflush.
70852
70853 2007-04-28  Bruno Haible  <bruno@clisp.org>
70854
70855         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70856         fseeko and ftello.
70857         Suggested by Eric Blake.
70858
70859 2007-04-28  Jim Meyering  <jim@meyering.net>
70860
70861         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70862         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70863         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70864
70865 2007-04-27  Eric Blake  <ebb9@byu.net>
70866
70867         * doc/headers/assert.texi (assert.h): Document assert module use.
70868
70869 2007-04-27  Bruno Haible  <bruno@clisp.org>
70870
70871         * doc/headers/*.texi: New files.
70872         * doc/gnulib.texi (Header File Substitutes): New chapter.
70873         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70874         dependencies.
70875         (standards.info ,standards.html, standards.dvi): Update dependencies.
70876         (mostlyclean, clean): New targets.
70877
70878 2007-04-27  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70881         * modules/sysexits (Files, Makefile.am): Update.
70882
70883         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70884         * modules/sys_socket (Files, Makefile.am): Update.
70885
70886         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70887         * modules/sys_stat (Files, Makefile.am): Update.
70888
70889 2007-04-27  Eric Blake  <ebb9@byu.net>
70890
70891         * lib/freading.h: Improve comments.
70892         * lib/fwriting.h: Likewise.
70893         * lib/fflush.c: Likewise.
70894
70895         Fix closein for mingw.
70896         * modules/closein-tests: Add tests for closein.
70897         * tests/test-closein.c: New file.
70898         * tests/test-closein.sh: Likewise.
70899         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70900         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70901
70902 2007-04-27  Bruno Haible  <bruno@clisp.org>
70903
70904         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70905         version is < 6.
70906         * lib/math_.h [__DECC]: Likewise.
70907         * lib/stdio_.h [__DECC]: Likewise.
70908         * lib/stdlib_.h [__DECC]: Likewise.
70909         * lib/string_.h [__DECC]: Likewise.
70910         * lib/time_.h [__DECC]: Likewise.
70911         * lib/wchar_.h [__DECC]: Likewise.
70912         * lib/wctype_.h [__DECC]: Likewise.
70913
70914 2007-04-27  Bruno Haible  <bruno@clisp.org>
70915
70916         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70917
70918 2007-04-27  Bruno Haible  <bruno@clisp.org>
70919
70920         * lib/fflush.c: Add comments.
70921         * modules/fpurge-tests (Depends-on): Add fflush.
70922         * modules/freadable-tests (Depends-on): Likewise.
70923         * modules/fwritable-tests (Depends-on): Likewise.
70924
70925 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70926
70927         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70928         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70929         Report by Bruno Haible <bruno@clisp.org>.
70930
70931 2007-04-26  Eric Blake  <ebb9@byu.net>
70932
70933         Fix fflush on mingw.
70934         * modules/fflush (Depends-on): Add freading.
70935         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70936         but unread data.
70937
70938 2007-04-26  Eric Blake  <ebb9@byu.net>
70939         and Bruno Haible  <bruno@clisp.org>
70940
70941         Implement freading and fwriting.
70942         * lib/freading.c: New file.
70943         * lib/freading.h: Likewise.
70944         * m4/freading.m4: Likewise.
70945         * modules/freading: Likewise.
70946         * modules/freading-tests: Likewise.
70947         * tests/test-freading.c: Likewise.
70948         * lib/fwriting.c: New file.
70949         * lib/fwriting.h: Likewise.
70950         * m4/fwriting.m4: Likewise.
70951         * modules/fwriting: Likewise.
70952         * modules/fwriting-tests: Likewise.
70953         * tests/test-fwriting.c: Likewise.
70954         * MODULES.html.sh (File stream based Input/Output): Mention them.
70955
70956 2007-04-26  Bruno Haible  <bruno@clisp.org>
70957
70958         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70959         'long' when we assume it.
70960         Suggested by Eric Blake.
70961
70962 2007-04-26  Bruno Haible  <bruno@clisp.org>
70963
70964         Ensure fseeko, ftello are declared on glibc systems.
70965         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70966         * modules/fseeko (configure.ac-early): Likewise.
70967         * modules/ftello (configure.ac-early): Likewise.
70968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70969         AC_FUNC_FSEEKO for this.
70970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70971         (gl_CHECK_FSEEKO): Remove macro.
70972
70973 2007-04-26  Bruno Haible  <bruno@clisp.org>
70974
70975         * tests/test-fflush.c (main): Also check the ftell result after
70976         fflush and fseek/fseeko.
70977         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70978         file descriptor position cache in the stream.
70979         * lib/fseeko.c (rpl_fseeko): Likewise.
70980
70981 2007-04-26  Bruno Haible  <bruno@clisp.org>
70982
70983         * modules/fflush-tests (Depends-on): Add fseeko.
70984
70985 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70986             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70987
70988         * lib/argz_.h: ensure error_t definition is obtained in same
70989         mechanism system argz.h would have.
70990         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70991         argz facilities are known bad.  Err on the side of caution if
70992         cross-compiling.
70993
70994 2007-04-25  Eric Blake  <ebb9@byu.net>
70995
70996         * lib/fpurge.c (includes): Use stdlib.h for free.
70997         * tests/test-fflush.c (main): Also test fflush-fseeko.
70998
70999 2007-04-25  Bruno Haible  <bruno@clisp.org>
71000
71001         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71002         * lib/fseeko.c: New file.
71003         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71004         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71005         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71006         gl_FUNC_FSEEKO.
71007         (gl_FUNC_FSEEKO): Invoke it.
71008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71009         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71010         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71011
71012 2007-04-25  Bruno Haible  <bruno@clisp.org>
71013
71014         * modules/fflush (Depends-on): Add ftello.
71015
71016 2007-04-25  Bruno Haible  <bruno@clisp.org>
71017
71018         * modules/ftello-tests: New file.
71019         * tests/test-ftello.c: New file.
71020
71021         * modules/ftello: New file.
71022         * m4/ftello.m4: New file.
71023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71024         HAVE_FTELLO.
71025         * lib/stdio_.h (ftello): New declaration.
71026         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71027         HAVE_FTELLO.
71028
71029 2007-04-25  Bruno Haible  <bruno@clisp.org>
71030
71031         * modules/fseeko-tests: New file.
71032         * tests/test-fseeko.c: New file.
71033
71034         * modules/fseeko: New file.
71035         * m4/fseeko.m4: New file.
71036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71037         HAVE_FSEEKO.
71038         * lib/stdio_.h (fseeko): New declaration.
71039         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71040         HAVE_FSEEKO.
71041
71042 2007-04-25  Bruno Haible  <bruno@clisp.org>
71043
71044         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71045
71046 2007-04-25  Bruno Haible  <bruno@clisp.org>
71047
71048         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71049         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71050         * tests/test-unistd.c: Likewise.
71051         * tests/test-fcntl.c: Likewise.
71052
71053 2007-04-23  Eric Blake  <ebb9@byu.net>
71054
71055         * lib/fflush.c: Fix missing include.
71056         Reported by Bruno Haible.
71057
71058 2007-04-23  Bruno Haible  <bruno@clisp.org>
71059
71060         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71061         Reported by Eric Blake.
71062
71063 2007-04-23  Bruno Haible  <bruno@clisp.org>
71064
71065         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71066
71067 2007-04-23  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71070
71071 2007-04-23  Bruno Haible  <bruno@clisp.org>
71072
71073         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71074         Needed on HP-UX 11.
71075
71076 2007-04-16  Eric Blake  <ebb9@byu.net>
71077
71078         Make fflush rely on fpurge.
71079         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71080         open coding all variants.
71081         * modules/fflush (Depends-on): Add fpurge and unistd.
71082         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71083         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71084
71085         Fix --with-tests compilation on cygwin.
71086         * modules/argmatch-tests (Makefile.am): List gnulib library first
71087         in LDADD.
71088         * modules/argp-tests (Makefile.am): Likewise.
71089         * modules/array-list-tests (Makefile.am): Likewise.
71090         * modules/array-oset-tests (Makefile.am): Likewise.
71091         * modules/avltree-list-tests (Makefile.am): Likewise.
71092         * modules/avltree-oset-tests (Makefile.am): Likewise.
71093         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71094         * modules/carray-list-tests (Makefile.am): Likewise.
71095         * modules/dirname-tests (Makefile.am): Likewise.
71096         * modules/frexp-tests (Makefile.am): Likewise.
71097         * modules/isnanl-tests (Makefile.am): Likewise.
71098         * modules/linked-list-tests (Makefile.am): Likewise.
71099         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71100         * modules/lock-tests (Makefile.am): Likewise.
71101         * modules/rbtree-list-tests (Makefile.am): Likewise.
71102         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71103         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71104         * modules/tls-tests (Makefile.am): Likewise.
71105         * modules/tsearch-tests (Makefile.am): Likewise.
71106         * modules/xvasprintf-tests (Makefile.am): Likewise.
71107
71108         Fix fpurge for cygwin.
71109         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71110         value.
71111         * modules/fpurge-tests (Depends-on): Clean up trash.
71112
71113 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71114
71115         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71116
71117         * m4/autobuild.m4: Re-indent.
71118
71119 2007-04-13  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/fpurge-tests: New file.
71122         * tests/test-fpurge.c: New file.
71123
71124         * modules/fpurge: New file.
71125         * lib/fpurge.h: New file.
71126         * lib/fpurge.c: New file.
71127         * m4/fpurge.m4: New file.
71128
71129 2007-04-13  Bruno Haible  <bruno@clisp.org>
71130
71131         * modules/fbufmode-tests: New file.
71132         * tests/test-fbufmode.c: New file.
71133
71134         * modules/fbufmode: New file.
71135         * lib/fbufmode.h: New file.
71136         * lib/fbufmode.c: New file.
71137         * m4/fbufmode.m4: New file.
71138
71139 2007-04-13  Bruno Haible  <bruno@clisp.org>
71140
71141         * modules/fwritable-tests: New file.
71142         * tests/test-fwritable.c: New file.
71143
71144         * modules/fwritable: New file.
71145         * lib/fwritable.h: New file.
71146         * lib/fwritable.c: New file.
71147         * m4/fwritable.m4: New file.
71148
71149 2007-04-13  Bruno Haible  <bruno@clisp.org>
71150
71151         * modules/freadable-tests: New file.
71152         * tests/test-freadable.c: New file.
71153
71154         * modules/freadable: New file.
71155         * lib/freadable.h: New file.
71156         * lib/freadable.c: New file.
71157         * m4/freadable.m4: New file.
71158
71159 2007-04-13  Bruno Haible  <bruno@clisp.org>
71160
71161         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71162         MOSTLYCLEANFILES.
71163
71164 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71165
71166         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71167         gzip bootstrap.conf to avoid dragging in i18n machinery.
71168         (gnulib_tool_option): Use it.
71169
71170 2007-04-13  Bruno Haible  <bruno@clisp.org>
71171
71172         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71173         %F directives.
71174         * tests/test-vasprintf-posix.c (test_function): Likewise.
71175         * tests/test-snprintf-posix.h (test_function): Likewise.
71176         * tests/test-sprintf-posix.h (test_function): Likewise.
71177         * tests/test-fprintf-posix.h (test_function): Likewise.
71178         * tests/test-printf-posix.h (test_function): Likewise.
71179         * tests/test-fprintf-posix.out: Likewise.
71180
71181 2007-04-13  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71184         * modules/tls-tests (configure.ac): Likewise.
71185         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71186
71187 2007-04-13  Bruno Haible  <bruno@clisp.org>
71188
71189         * lib/tls.c (glthread_tls_get): Fix return type.
71190         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71191
71192 2007-04-12  Eric Blake  <ebb9@byu.net>
71193
71194         * modules/gettime (Depends-on): Remove gettime.
71195         Reported by Dmitry V. Levin.
71196
71197 2007-04-12  Bruno Haible  <bruno@clisp.org>
71198
71199         * modules/fflush (Include): Mention <stdio.h>.
71200         * modules/strtoimax (Include): Mention <inttypes.h>.
71201         * modules/strtoumax (Include): Likewise.
71202
71203 2007-04-12  Eric Blake  <ebb9@byu.net>
71204
71205         * .cvsignore: New file.
71206         * .gitignore: Likewise.
71207
71208 2007-04-12  Bruno Haible  <bruno@clisp.org>
71209
71210         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71211         not before, since $(LDADD) often contains libgnu.a.
71212         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71213         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71214         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71215         Needed on Cygwin.
71216
71217 2007-04-12  Eric Blake  <ebb9@byu.net>
71218
71219         Work around glibc's failure to flush stdin on fclose.
71220         * lib/closein.c (close_stdin): Flush stdin before closing.
71221
71222         Work around glibc's failure to reset seekable stdin on exit.
71223         * modules/closein: New module.
71224         * lib/closein.c: New file.
71225         * lib/closein.h: Likewise.
71226         * m4/closein.m4: Likewise.
71227         * MODULES.html.sh (File stream based Input/Output): Document it.
71228
71229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71230
71231         * gnulib-tool: Rename generated 'autobuild' script to
71232         'do-autobuild' in --create-megatestdir output.
71233
71234         * doc/gnulib.texi (Build robot for gnulib): Fix.
71235
71236 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71237
71238         * modules/sysexits (Depends-on): Add absolute-header.
71239
71240 2007-04-12  Eric Blake  <ebb9@byu.net>
71241
71242         No need to preserve errno on success.
71243         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71244         Reported by Bruno Haible.
71245
71246 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71247
71248         * MODULES.html.sh (Support for maintaining and releasing
71249         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71250
71251 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71252
71253         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71254
71255 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71256
71257         * modules/autobuild: New module.
71258
71259         * m4/autobuild.m4: New file.
71260
71261 2007-04-11  Bruno Haible  <bruno@clisp.org>
71262
71263         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71264         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71268         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71269         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71271         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71272         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71274         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71275         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71291         Reported by Eric Blake.
71292
71293 2007-04-11  Bruno Haible  <bruno@clisp.org>
71294
71295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71296
71297 2007-04-10  Bruno Haible  <bruno@clisp.org>
71298
71299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71300         for NaN and Infinity. Needed on FreeBSD 6.1.
71301         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71302         regarding results for "%010a" of Infinity and NaN.
71303         * tests/test-vasprintf-posix.c (test_function): Likewise.
71304         * tests/test-snprintf-posix.h (test_function): Likewise.
71305         * tests/test-sprintf-posix.h (test_function): Likewise.
71306         * tests/test-fprintf-posix.h (test_function): Likewise.
71307         * tests/test-printf-posix.h (test_function): Likewise.
71308         * tests/test-fprintf-posix.out: Likewise.
71309
71310 2007-04-10  Bruno Haible  <bruno@clisp.org>
71311
71312         * modules/locale-tests: New file.
71313         * tests/test-locale.c: New file.
71314
71315         * modules/locale: New file.
71316         * lib/locale_.h: New file.
71317         * m4/locale_h.m4: New file.
71318
71319 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71320             Bruno Haible  <bruno@clisp.org>
71321
71322         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71323         be determined, test for availability of the copysignf, copysign,
71324         copysignl functions.
71325         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71326         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71327         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71328
71329 2007-04-09  Eric Blake  <ebb9@byu.net>
71330
71331         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71332         * modules/stdio (Makefile.am): Support fflush.
71333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71334         * modules/fflush: New file.
71335         * lib/fflush.c: Likewise.
71336         * m4/fflush.m4: Likewise.
71337         * modules/fflush-tests: New test.
71338         * tests/test-fflush.c: Likewise.
71339         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71340
71341 2007-04-06  Bruno Haible  <bruno@clisp.org>
71342
71343         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71344         (VASNPRINTF): Use signbit for faster determination whether to print a
71345         minus sign.
71346         * modules/vasnprintf (Files): Remove lib/float+.h.
71347         * modules/fprintf-posix (Depends-on): Add signbit.
71348         * modules/snprintf-posix (Depends-on): Likewise.
71349         * modules/sprintf-posix (Depends-on): Likewise.
71350         * modules/vasnprintf-posix (Depends-on): Likewise.
71351         * modules/vasprintf-posix (Depends-on): Likewise.
71352         * modules/vfprintf-posix (Depends-on): Likewise.
71353         * modules/vsnprintf-posix (Depends-on): Likewise.
71354         * modules/vsprintf-posix (Depends-on): Likewise.
71355
71356 2007-04-06  Bruno Haible  <bruno@clisp.org>
71357
71358         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71359         * tests/test-frexpl.c (main): Likewise.
71360         * tests/test-ldexpl.c (main): Likewise.
71361         * modules/frexp-tests (Depends-on): Add signbit.
71362         * modules/frexpl-tests (Depdends-on): Likewise.
71363         * modules/ldexpl-tests (Depdends-on): Likewise.
71364
71365 2007-04-06  Bruno Haible  <bruno@clisp.org>
71366
71367         * modules/signbit-tests: New file.
71368         * tests/test-signbit.c: New file.
71369
71370         * modules/signbit: New file.
71371         * lib/signbitf.c: New file.
71372         * lib/signbitd.c: New file.
71373         * lib/signbitl.c: New file.
71374         * m4/signbit.m4: New file.
71375         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71376         (signbit): New macro.
71377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71378         REPLACE_SIGNBIT.
71379         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71380         REPLACE_FREXPL into math.h.
71381
71382 2007-04-06  Bruno Haible  <bruno@clisp.org>
71383
71384         * modules/isnanf-nolibm-tests: New file.
71385         * tests/test-isnanf.c: New file.
71386
71387         * modules/isnanf-nolibm: New file.
71388         * lib/isnanf.h: New file.
71389         * lib/isnanf.c: New file.
71390         * lib/isnan.c: Consider the USE_FLOAT macro.
71391         * m4/isnanf.m4: New file.
71392
71393 2007-04-06  Bruno Haible  <bruno@clisp.org>
71394
71395         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71396         (Link): New section.
71397
71398         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71399
71400 2007-04-06  Bruno Haible  <bruno@clisp.org>
71401
71402         Assume the 'long double' type.
71403         * m4/longdouble.m4: Remove file.
71404         * config/srclist.txt: Don't mention longdouble.m4.
71405         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71406         * lib/float+.h: Likewise.
71407         * lib/frexp.c: Likewise.
71408         * lib/printf-args.h: Likewise.
71409         * lib/printf-args.c: Likewise.
71410         * lib/printf-frexp.c: Likewise.
71411         * lib/printf-parse.c: Likewise.
71412         * lib/vasnprintf.c: Likewise.
71413         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71414         * m4/intl.m4: Likewise.
71415         * m4/isnanl.m4: Likewise.
71416         * m4/printf.m4: Likewise.
71417         * m4/printf-frexpl.m4: Likewise.
71418         * m4/vasnprintf.m4: Likewise.
71419         * modules/allocsa (Files): Remove m4/longdouble.m4.
71420         * modules/gettext (Files): Likewise.
71421         * modules/relocatable-prog-wrapper (Files): Likewise.
71422         * modules/vasnprintf (Files): Likewise.
71423         * modules/isnanl (Files): Likewise.
71424         (Include): Simplify.
71425         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71426         (Include): Simplify.
71427         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71428         (Include): Simplify.
71429         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71430         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71431         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71432         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71433         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71434         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71435         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71436         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71437         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71438         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71439         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71440         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71441         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71442         * tests/test-isnanl.c: Likewise.
71443         * tests/test-snprintf-posix.h: Likewise.
71444         * tests/test-sprintf-posix.h: Likewise.
71445         * tests/test-vasnprintf-posix.c: Likewise.
71446         * tests/test-vasnprintf-posix2.c: Likewise.
71447         * tests/test-vasprintf-posix.c: Likewise.
71448
71449 2007-04-06  Bruno Haible  <bruno@clisp.org>
71450
71451         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71452         * lib/math_.h [__DECC]: Include the overridden include file through
71453         #include_next, outside the double-inclusion guard.
71454         * lib/stdio_.h [__DECC]: Likewise.
71455         * lib/stdlib_.h [__DECC]: Likewise.
71456         * lib/string_.h [__DECC]: Likewise.
71457         * lib/time_.h [__DECC]: Likewise.
71458         * lib/wchar_.h [__DECC]: Likewise.
71459         * lib/wctype_.h [__DECC]: Likewise.
71460         * lib/inttypes_.h [__DECC]: Likewise.
71461         Reported by Albert Chin <china@thewrittenword.com> in
71462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71463
71464 2007-04-04  Eric Blake  <ebb9@byu.net>
71465
71466         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71467         1.5.x.
71468
71469 2007-04-04  Bruno Haible  <bruno@clisp.org>
71470
71471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71472         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71473
71474 2007-04-04  Bruno Haible  <bruno@clisp.org>
71475
71476         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71477         results for "%010a" of Infinity and NaN.
71478         * tests/test-vasprintf-posix.c (test_function): Likewise.
71479         * tests/test-snprintf-posix.h (test_function): Likewise.
71480         * tests/test-sprintf-posix.h (test_function): Likewise.
71481         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71482         * tests/test-printf-posix.h (test_function): Likewise.
71483         * tests/test-fprintf-posix.out: Update.
71484         Needed for FreeBSD 6.1.
71485
71486 2007-04-04  Bruno Haible  <bruno@clisp.org>
71487
71488         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71489         directly used by the gnulib modules nor by gnulib-tool.
71490
71491 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * DEPENDENCIES: Give overall description of version dependency
71494         desirability.  Use more-typical names for apps.
71495         Add shell, coreutils, diffutils, grep, tar, gzip.
71496
71497 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71498
71499         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71500
71501 2007-04-04  Karl Berry  <karl@gnu.org>
71502
71503         * MODULES.html.sh (func_module): missing '.
71504
71505 2007-04-03  Bruno Haible  <bruno@clisp.org>
71506
71507         * modules/argmatch-tests (Makefile.am): New variable
71508         test_argmatch_LDADD.
71509         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71510         * modules/array-list-tests (Makefile.am): New variable
71511         test_array_list_LDADD.
71512         * modules/array-oset-tests (Makefile.am): New variable
71513         test_array_oset_LDADD.
71514         * modules/avltree-list-tests (Makefile.am): New variable
71515         test_avltree_list_LDADD.
71516         * modules/avltree-oset-tests (Makefile.am): New variable
71517         test_avltree_oset_LDADD.
71518         * modules/avltreehash-list-tests (Makefile.am): New variable
71519         test_avltreehash_list_LDADD.
71520         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71521         test_canonicalize_lgpl_LDADD.
71522         * modules/carray-list-tests (Makefile.am): New variable
71523         test_carray_list_LDADD.
71524         * modules/dirname-tests (Makefile.am): New variable
71525         test_dirname_LDADD.
71526         * modules/linked-list-tests (Makefile.am): New variable
71527         test_linked_list_LDADD.
71528         * modules/linkedhash-list-tests (Makefile.am): New variable
71529         test_linkedhash_list_LDADD.
71530         * modules/rbtree-list-tests (Makefile.am): New variable
71531         test_rbtree_list_LDADD.
71532         * modules/rbtree-oset-tests (Makefile.am): New variable
71533         test_rbtree_oset_LDADD.
71534         * modules/rbtreehash-list-tests (Makefile.am): New variable
71535         test_rbtreehash_list_LDADD.
71536         * modules/xvasprintf-tests (Makefile.am): New variable
71537         test_xvasprintf_LDADD.
71538         Reported by Eric Blake.
71539
71540 2007-04-03  Eric Blake  <ebb9@byu.net>
71541
71542         * DEPENDENCIES: Weaken m4 requirements.
71543
71544 2007-04-03  Bruno Haible  <bruno@clisp.org>
71545
71546         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71547         * modules/isnanl-tests (configure.ac): Likewise.
71548
71549 2007-04-03  Ben Pfaff  <blp@gnu.org>
71550
71551         * modules/iconv_open: Add $(srcdir)/ to source directory
71552         references in Makefile fragments that call gperf, to fix VPATH
71553         builds.
71554
71555 2007-04-03  Bruno Haible  <bruno@clisp.org>
71556
71557         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71558         * lib/ldexpl.c: Undo last change.
71559
71560 2007-04-03  Bruno Haible  <bruno@clisp.org>
71561
71562         * modules/printf-frexpl (Depends-on): Undo last change.
71563         (Files): Add m4/ldexpl.m4.
71564
71565 2007-04-03  Bruno Haible  <bruno@clisp.org>
71566
71567         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71568         * modules/isnanl (Link): New section.
71569
71570         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71571         * modules/frexp (Link): New section.
71572
71573         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71574         * modules/frexpl (Link): New section.
71575
71576         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71577         * modules/ldexpl (Link): New section.
71578
71579 2007-04-03  Bruno Haible  <bruno@clisp.org>
71580
71581         * modules/TEMPLATE-EXTENDED: New file.
71582         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71583
71584 2007-04-03  Bruno Haible  <bruno@clisp.org>
71585
71586         * DEPENDENCIES: New file.
71587         Suggested by Simon Josefsson.
71588
71589 2007-04-03  Bruno Haible  <bruno@clisp.org>
71590
71591         * doc/gnulib.texi: Escape @.
71592
71593 2007-04-03  James Youngman  <jay@gnu.org>
71594         and Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71597         birthtime on all systems that have birthtime, not just those which
71598         use st_birthtimensec rather than st_birthtim.  Putting zero in
71599         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71600         that the birth time is not available for files on an NFS mount.
71601
71602 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71603
71604         * modules/memxor: Move back from crypto/, suggested by Bruno.
71605         * modules/crypto/hmac-sha1: Fix memxor dependency.
71606
71607         * modules/crypto/gc: Moved from ../.
71608
71609 2007-04-02  Eric Blake  <ebb9@byu.net>
71610
71611         * lib/ldexpl.c (includes): Avoid libm.
71612
71613         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71614
71615 2007-04-02  Bruno Haible  <bruno@clisp.org>
71616
71617         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71618         on IRIX.
71619
71620 2007-04-02  Bruno Haible  <bruno@clisp.org>
71621
71622         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71623         x86 or x86_64 platforms running MacOS X.
71624         Reported by Ryan Schmidt <@ryandesign.com>.
71625
71626 2007-04-02  Bruno Haible  <bruno@clisp.org>
71627
71628         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71629         i386.
71630
71631 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71632
71633         * modules/crypto/arcfour: Moved from ../.
71634         * modules/crypto/arcfour-tests: Moved from ../.
71635         * modules/crypto/arctwo: Moved from ../.
71636         * modules/crypto/arctwo-tests: Moved from ../.
71637         * modules/crypto/des: Moved from ../.
71638         * modules/crypto/des-tests: Moved from ../.
71639         * modules/crypto/gc-arcfour: Moved from ../.
71640         * modules/crypto/gc-arcfour-tests: Moved from ../.
71641         * modules/crypto/gc-arctwo: Moved from ../.
71642         * modules/crypto/gc-arctwo-tests: Moved from ../.
71643         * modules/crypto/gc-des: Moved from ../.
71644         * modules/crypto/gc-des-tests: Moved from ../.
71645         * modules/crypto/gc-hmac-md5: Moved from ../.
71646         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71647         * modules/crypto/gc-hmac-sha1: Moved from ../.
71648         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71649         * modules/crypto/gc-md2: Moved from ../.
71650         * modules/crypto/gc-md2-tests: Moved from ../.
71651         * modules/crypto/gc-md4: Moved from ../.
71652         * modules/crypto/gc-md4-tests: Moved from ../.
71653         * modules/crypto/gc-md5: Moved from ../.
71654         * modules/crypto/gc-md5-tests: Moved from ../.
71655         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71656         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71657         * modules/crypto/gc-random: Moved from ../.
71658         * modules/crypto/gc-rijndael: Moved from ../.
71659         * modules/crypto/gc-rijndael-tests: Moved from ../.
71660         * modules/crypto/gc-sha1: Moved from ../.
71661         * modules/crypto/gc-sha1-tests: Moved from ../.
71662         * modules/crypto/gc-tests: Moved from ../.
71663         * modules/crypto/hmac-md5: Moved from ../.
71664         * modules/crypto/hmac-md5-tests: Moved from ../.
71665         * modules/crypto/hmac-sha1: Moved from ../.
71666         * modules/crypto/hmac-sha1-tests: Moved from ../.
71667         * modules/crypto/md2: Moved from ../.
71668         * modules/crypto/md2-tests: Moved from ../.
71669         * modules/crypto/md4: Moved from ../.
71670         * modules/crypto/md4-tests: Moved from ../.
71671         * modules/crypto/md5: Moved from ../.
71672         * modules/crypto/md5-tests: Moved from ../.
71673         * modules/crypto/memxor: Moved from ../.
71674         * modules/crypto/rijndael: Moved from ../.
71675         * modules/crypto/rijndael-tests: Moved from ../.
71676         * modules/crypto/sha1: Moved from ../.
71677
71678 2007-03-30  James Youngman  <jay@gnu.org>
71679
71680         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71681         rename() to change the ctime of a file (because ctime is unaffected
71682         by rename on jfs2 on AIX 5.1).
71683         (main): Start by doing cleanup, in case a previous run failed leaving
71684         test files behind.
71685
71686 2007-03-31  Bruno Haible  <bruno@clisp.org>
71687
71688         Support old proprietary implementations of iconv.
71689         * modules/iconv_open: New file.
71690         * lib/iconv_.h: New file.
71691         * m4/iconv_h.m4: New file.
71692         * lib/iconv_open.c: New file.
71693         * lib/iconv_open-aix.gperf: New file.
71694         * lib/iconv_open-hpux.gperf: New file.
71695         * lib/iconv_open-irix.gperf: New file.
71696         * lib/iconv_open-osf.gperf: New file.
71697         * m4/iconv_open.m4: New file.
71698         * modules/linebreak (Depends-on): Add iconv_open.
71699         * modules/striconv (Depends-on): Likewise.
71700         * modules/striconveh (Depends-on): Likewise.
71701         * modules/unicodeio (Depends-on): Likewise.
71702         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71703         (iconv_t)(-1).
71704         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71705         conversion if cd is (iconv_t)(-1).
71706         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71707         is not possible.
71708
71709 2007-03-31  Bruno Haible  <bruno@clisp.org>
71710
71711         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71712         work on Solaris either. Protect also second use of "autodetect_jp".
71713
71714 2007-03-31  Bruno Haible  <bruno@clisp.org>
71715
71716         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71717         the function is not present.
71718
71719 2007-03-31  Bruno Haible  <bruno@clisp.org>
71720
71721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71722         the function is not present.
71723
71724 2007-03-31  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71727         a bug in HP-UX iconv_open().
71728
71729 2007-03-31  Bruno Haible  <bruno@clisp.org>
71730
71731         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71732         (Mathematics <math.h>): New section, add fpieee.
71733         (Input/output <stdio.h>): Add fseterr.
71734         (Mathematics <math.h>): New section, add printf-frexp.
71735         (Container data structures): Add sublist.
71736         (Core language properties): Add fpucw, inline.
71737         (Functions for greatest-width integer types <inttypes.h>): Add
71738         imaxabs, imaxdiv, inttypes.
71739         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71740         isnanl-nolibm, ldexp.
71741         (Mathematics <math.h>): New section, add printf-frexpl.
71742         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71743         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71744         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71745         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71746         (Unicode string functions): Add unistr/u*-mbtoucr.
71747         (Java): Add javacomp-script, javaexec-script.
71748         (C#): Add csharpcomp-script, csharpexec-script.
71749         (Support for building libraries and executables): Add havelib,
71750         relocatable-*.
71751         (Support for maintaining and releasing projects): Renamed from
71752         'Support for maintaining and release projects'. Add announce-gen.
71753
71754 2007-03-31  Bruno Haible  <bruno@clisp.org>
71755
71756         * README: Talk primarily about git.
71757         (git and CVS): Renamed from CVS.
71758         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71759         gnulib is available through git.
71760         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71761
71762 2007-03-30  Bruno Haible  <bruno@clisp.org>
71763
71764         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71765         * lib/poll_.h: Likewise.
71766         * lib/stat_.h: Likewise.
71767         * lib/sys_time_.h: Likewise.
71768         * lib/sysexit_.h: Likewise.
71769         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71770         * lib/stdbool_.h: Likewise.
71771         * lib/byteswap_.h: Add double-inclusion guard.
71772
71773 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71774
71775         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71776
71777 2007-03-30  Karl Berry  <karl@gnu.org>
71778
71779         * config/srclist-update: double space after USA in the license
71780         substitution, since that's how it's usually (?) written.
71781
71782 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71785         reported by Bruno Haible.
71786
71787 2007-03-29  Bruno Haible  <bruno@clisp.org>
71788
71789         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71790         a bug in AIX iconv().
71791
71792 2007-03-29  Bruno Haible  <bruno@clisp.org>
71793
71794         * modules/ldexpl-tests: New file.
71795         * tests/test-ldexpl.c: New file.
71796
71797 2007-03-29  Bruno Haible  <bruno@clisp.org>
71798
71799         * lib/ldexpl.c: Include fpucw.h.
71800         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71801         multiplication.
71802         * modules/ldexpl (Depends-on): Add fpucw.
71803
71804 2007-03-29  Bruno Haible  <bruno@clisp.org>
71805
71806         * modules/ldexpl: New file.
71807         * m4/ldexpl.m4: New file.
71808         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71809         set.
71810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71811         REPLACE_LDEXPL.
71812         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71813         REPLACE_LDEXPL.
71814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71815         gl_FUNC_LDEXPL_WORKS.
71816         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71817         * modules/mathl (Files): Remove lib/ldexpl.c.
71818         (Depends-on): Add ldexpl.
71819
71820 2007-03-29  Bruno Haible  <bruno@clisp.org>
71821
71822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71823
71824 2007-03-29  Bruno Haible  <bruno@clisp.org>
71825
71826         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71827         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71828         and possibly also HP-UX.
71829         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71830         work on AIX, IRIX, HP-UX, OSF/1.
71831         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71832         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71833         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71834         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71835         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71836         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71837
71838 2007-03-29  Bruno Haible  <bruno@clisp.org>
71839
71840         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71841
71842 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71845         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71846
71847 2007-03-29  Eric Blake  <ebb9@byu.net>
71848
71849         * lib/acl-internal.h: Remove redundant include.
71850         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71851         Cygwin when a file is locked.
71852
71853 2007-03-29  Bruno Haible  <bruno@clisp.org>
71854
71855         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71856         file.
71857         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71858
71859 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71860
71861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71862         try to remove a parent directory if the child couldn't be removed
71863         (except for the first rmdir, which could fail because the child
71864         doesn't exist).  Problem reported by Jeff Blaine in
71865         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71866
71867 2007-03-28  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/striconveh.c (utf8conv_carefully): New function.
71870         (mem_cd_iconveh_internal): Invoke it.
71871
71872 2007-03-28  Bruno Haible  <bruno@clisp.org>
71873
71874         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71875         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71876         input.
71877         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71878         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71879         unistr/u8-uctomb.
71880
71881 2007-03-28  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/unistr/u8-mbtoucr: New file.
71884         * lib/unistr/u8-mbtoucr.c: New file.
71885         * modules/unistr/u16-mbtoucr: New file.
71886         * lib/unistr/u16-mbtoucr.c: New file.
71887         * modules/unistr/u16-mbtoucr: New file.
71888         * lib/unistr/u16-mbtoucr.c: New file.
71889         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71890
71891 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71892             Bruno Haible  <bruno@clisp.org>
71893
71894         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71895         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71896         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71897
71898         * m4/stdio_h.m4: Add stubs for vasprintf too.
71899
71900         * modules/stdio: Support vasprintf in sed command.
71901
71902         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71903         vasprintf.h.  Add stdio module indicator.
71904
71905         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71906         vasprintf.h.
71907
71908         * lib/vasprintf.h: File removed.
71909
71910         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71911         * lib/vasprintf.c: Ditto.
71912         * lib/xvasprintf.c: Ditto.
71913         * tests/test-vasprintf-posix.c: Ditto.
71914         * tests/test-vasprintf.c: Ditto.
71915
71916 2007-03-27  Bruno Haible  <bruno@clisp.org>
71917
71918         Make vasnprintf multithread-safe.
71919         * lib/vasnprintf.c (decimal_point_char): New function.
71920         (VASNPRINTF): Use it.
71921         Suggested by Simon Josefsson.
71922
71923 2007-03-27  Eric Blake  <ebb9@byu.net>
71924
71925         Support sub-second birthtime on cygwin.
71926         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71927         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71928         (get_stat_birthtime): Also work with st_birthtim.
71929
71930 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71931
71932         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71933         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71934         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71935         (get_stat_birthtime_ns): Simplify compile-time tests.
71936         (get_stat_birthtime): Change the API to look like
71937         get_stat_mtime etc., except return a negative tv_nsec on error.
71938         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71939         Don't check for "spare" fields.
71940         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71941         or for struct stat.st_birthtime, as these tests aren't used.
71942         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71943
71944 2007-03-27  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/stat-time.h: Include <sys/stat.h>.
71947
71948 2007-03-27  James Youngman  <jay@gnu.org>
71949
71950         * lib/stat-time.h (get_stat_birthtime): New function for
71951           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71952         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71953           and its variants.
71954         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71955         * modules/stat-time-test: New file.
71956         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71957
71958 2007-03-26  Bruno Haible  <bruno@clisp.org>
71959
71960         Better support of signalling NaNs.
71961         * lib/atanl.c: Include isnanl.h.
71962         (atanl): Perform test for NaN at the beginning of the function and
71963         through a call to isnanl.
71964         * lib/cosl.c: Include isnanl.h.
71965         (cosl): Perform test for NaN at the beginning of the function and
71966         through a call to isnanl.
71967         * lib/ldexpl.c: Include isnanl.h.
71968         (ldexpl): Perform test for NaN through a call to isnanl.
71969         * lib/logl.c: Include isnanl.h.
71970         (logl): Perform test for NaN at the beginning of the function and
71971         through a call to isnanl.
71972         * lib/sinl.c: Include isnanl.h.
71973         (sinl): Perform test for NaN at the beginning of the function and
71974         through a call to isnanl.
71975         * lib/sqrtl.c: Include isnanl.h.
71976         (sqrtl): Perform test for NaN at the beginning of the function and
71977         through a call to isnanl.
71978         * lib/tanl.c: Include isnanl.h.
71979         (tanl): Perform test for NaN at the beginning of the function and
71980         through a call to isnanl.
71981         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71982         * modules/mathl (Depends-on): Add isnanl.
71983
71984 2007-03-26  Eric Blake  <ebb9@byu.net>
71985
71986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71987         regression in logic sense of previous patch.
71988
71989 2007-03-26  Bruno Haible  <bruno@clisp.org>
71990
71991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71992         unportable shell command "if ! ...".
71993         Reported by Ralf Wildenhues.
71994
71995 2007-03-25  Bruno Haible  <bruno@clisp.org>
71996
71997         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71998         <sysexits.h> file, and only add EX_CONFIG.
71999         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72000         absolute file name and whether it is sufficient. Substitute also
72001         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72002         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72003         ABSOLUTE_SYSEXITS_H into sysexits.h.
72004
72005 2007-03-25  Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72008         hints is NULL.
72009
72010 2007-03-25  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72013         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72014
72015 2007-03-25  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/vasnprintf.c: Include langinfo.h.
72018         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72019         multithread-safe.
72020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72029         Reported by Simon Josefsson.
72030
72031 2007-03-25  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72034         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72035         * modules/vasnprintf (Depends-on): Add stdint.
72036
72037 2007-03-25  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/fpieee: New file.
72040         * m4/fpieee.m4: New file.
72041         * modules/isnan-nolibm (Depends-on): Add fpieee.
72042         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72043         * modules/isnanl (Depends-on): Add fpieee.
72044
72045 2007-03-25  Bruno Haible  <bruno@clisp.org>
72046
72047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72048
72049 2007-03-25  Bruno Haible  <bruno@clisp.org>
72050
72051         Avoid test failures on IRIX 6.5.
72052         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72053         (main): Use it.
72054         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72055         macros.
72056         (main): Use them.
72057
72058 2007-03-25  Bruno Haible  <bruno@clisp.org>
72059
72060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72061         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72062         exists but doesn't work.
72063         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72064         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72066         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72067         math.h.
72068
72069 2007-03-25  Bruno Haible  <bruno@clisp.org>
72070
72071         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72072         returns inf. Needed on IRIX 6.5.
72073
72074 2007-03-25  Bruno Haible  <bruno@clisp.org>
72075
72076         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72077         (main): Use isnanl instead of x != x idiom.
72078         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72079
72080         * tests/test-frexp.c: Include isnan.h.
72081         (main): Use isnan instead of x != x idiom.
72082         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72083
72084 2007-03-25  Bruno Haible  <bruno@clisp.org>
72085
72086         * tests/test-frexp.c (NaN): New function/macro.
72087         (main): Use it instead of 0.0 / 0.0.
72088         * tests/test-isnan.c (NaN): New function/macro.
72089         (main): Use it instead of 0.0 / 0.0.
72090         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72091         (test_function): Use it instead of 0.0 / 0.0.
72092         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72093         (test_function): Use it instead of 0.0 / 0.0.
72094         * tests/test-snprintf-posix.h (NaN): New function/macro.
72095         (test_function): Use it instead of 0.0 / 0.0.
72096         * tests/test-sprintf-posix.h (NaN): New function/macro.
72097         (test_function): Use it instead of 0.0 / 0.0.
72098         * tests/test-fprintf-posix.h (NaN): New function/macro.
72099         (test_function): Use it instead of 0.0 / 0.0.
72100         * tests/test-printf-posix.h (NaN): New function/macro.
72101         (test_function): Use it instead of 0.0 / 0.0.
72102
72103         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72104
72105 2007-03-25  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72108
72109 2007-03-25  Bruno Haible  <bruno@clisp.org>
72110
72111         * lib/regexec.c (merge_state_with_log): Make static.
72112
72113 2007-03-25  Bruno Haible  <bruno@clisp.org>
72114
72115         * lib/trigl.c (kernel_rem_pio2): Make static.
72116
72117 2007-03-25  Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/sincosl.c (sincosl_table): Make static.
72120
72121 2007-03-25  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72124         if the compiler does not support C99.
72125
72126 2007-03-25  Bruno Haible  <bruno@clisp.org>
72127
72128         * modules/time (Makefile.am): Ensure all rule action lines start with a
72129         tab.
72130
72131 2007-03-24  Bruno Haible  <bruno@clisp.org>
72132
72133         * modules/tsearch-tests: New file.
72134         * tests/test-tsearch.sh: New file.
72135         * tests/test-tsearch.c: New file, mostly copied from glibc.
72136
72137         * modules/search-tests: New file.
72138         * tests/test-search.c: New file.
72139
72140         * modules/search: New file.
72141         * lib/search_.h: New file, incorporating lib/tsearch.h.
72142         * m4/search_h.m4: New file.
72143         * lib/tsearch.h: Remove file.
72144         * lib/tsearch.c: Include search.h instead of tsearch.h.
72145         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72146         HAVE_TSEARCH.
72147         * modules/tsearch (Files): Remove lib/tsearch.h.
72148         (Depends-on): Add search.
72149         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72150         (Include): Change tsearch.h into search.h.
72151
72152 2007-03-24  Bruno Haible  <bruno@clisp.org>
72153
72154         * modules/fpucw: New file.
72155         * lib/fpucw.h: New file.
72156         * lib/frexp.c: Include fpucw.h.
72157         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72158         (FUNC): Use them.
72159         * lib/printf-frexp.c: Include fpucw.h.
72160         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72161         (FUNC): Use them.
72162         * lib/vasnprintf.c: Include fpucw.h.
72163         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72164         'long double' calculations.
72165         * tests/test-frexpl.c: Include fpucw.h.
72166         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72167         * tests/test-printf-frexpl.c: Include fpucw.h.
72168         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72169         * modules/frexpl (Depends-on): Add fpucw.
72170         * modules/printf-frexpl (Depends-on): Likewise.
72171         * modules/fprintf-posix (Depends-on): Likewise.
72172         * modules/snprintf-posix (Depends-on): Likewise.
72173         * modules/sprintf-posix (Depends-on): Likewise.
72174         * modules/vasnprintf-posix (Depends-on): Likewise.
72175         * modules/vasprintf-posix (Depends-on): Likewise.
72176         * modules/vfprintf-posix (Depends-on): Likewise.
72177         * modules/vsnprintf-posix (Depends-on): Likewise.
72178         * modules/vsprintf-posix (Depends-on): Likewise.
72179         * modules/frexpl-tests (Depends-on): Likewise.
72180         * modules/printf-frexpl-tests (Depends-on): Likewise.
72181
72182 2007-03-24  Bruno Haible  <bruno@clisp.org>
72183
72184         * lib/float+.h: New file.
72185         * lib/isnan.c: Include float+.h.
72186         (SIZE): New macro.
72187         (FUNC): Compare only SIZE bytes of the value.
72188         * lib/vasnprintf.c: Include float+.h.
72189         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72190         SIZEOF_LDBL or SIZEOF_DBL bytes.
72191         * modules/isnan-nolibm (Files): Add lib/float+.h.
72192         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72193         * modules/isnanl (Files): Add lib/float+.h.
72194         * modules/vasnprintf (Files): Add lib/float+.h.
72195
72196 2007-03-24  Bruno Haible  <bruno@clisp.org>
72197
72198         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72199         include isnanl-nolibm.h.
72200
72201 2007-03-24  Bruno Haible  <bruno@clisp.org>
72202
72203         * tests/test-read-file.c (main): Don't produce spurious output for
72204         expected situations. Make the test fail if it encountered unexpected
72205         results.
72206
72207 2007-03-24  Bruno Haible  <bruno@clisp.org>
72208
72209         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72210         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72211
72212 2007-03-24  Bruno Haible  <bruno@clisp.org>
72213
72214         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72215
72216 2007-03-24  Bruno Haible  <bruno@clisp.org>
72217
72218         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72219         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72220
72221         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72222         * modules/utf8-ucs4: Turn into a symbolic link to module
72223         unistr/u8-mbtouc.
72224
72225         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72226         utf8-ucs4-unsafe.
72227         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72228         unistr/u8-mbtouc-unsafe.
72229
72230         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72231         * modules/utf16-ucs4: Turn into a symbolic link to module
72232         unistr/u16-mbtouc.
72233
72234         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72235         utf16-ucs4-unsafe.
72236         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72237         unistr/u16-mbtouc-unsafe.
72238
72239         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72240         * modules/ucs4-utf8: Turn into a symbolic link to module
72241         unistr/u8-ubtomb.
72242
72243         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72244         * modules/ucs4-utf16: Turn into a symbolic link to module
72245         unistr/u16-ubtomb.
72246
72247 2007-03-24  Bruno Haible  <bruno@clisp.org>
72248
72249         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72250         Enable the function only if HAVE_INLINE.
72251         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72252         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72253         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72254         Enable the function only if HAVE_INLINE.
72255         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72256         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72257         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72258         Enable the function only if HAVE_INLINE.
72259         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72260         Enable the function only if HAVE_INLINE.
72261         * modules/utf8-ucs4: Update.
72262         * modules/utf8-ucs4-unsafe: Update.
72263         * modules/utf16-ucs4: Update.
72264         * modules/utf16-ucs4-unsafe: Update.
72265         * modules/ucs4-utf8: Update.
72266         * modules/ucs4-utf16: Update.
72267
72268 2007-03-24  Bruno Haible  <bruno@clisp.org>
72269
72270         * lib/utf8-ucs4.h: Remove file.
72271         * lib/utf8-ucs4-unsafe.h: Remove file.
72272         * lib/utf16-ucs4.h: Remove file.
72273         * lib/utf16-ucs4-unsafe.h: Remove file.
72274         * lib/ucs4-utf8.h: Remove file.
72275         * lib/ucs4-utf16.h: Remove file.
72276         * lib/unistr.h: Include their previous contents.
72277         * m4/utf-ucs4.m4: Remove file.
72278         * m4/ucs4-utf.m4: Remove file.
72279         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72280         (Depends-on): Add unistr/base.
72281         (configure.ac): Remove gl_UTF_UCS4.
72282         (Makefile.am): Update.
72283         (Include): Change to unistr.h.
72284         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72285         (Depends-on): Add unistr/base.
72286         (configure.ac): Remove gl_UTF_UCS4.
72287         (Makefile.am): Update.
72288         (Include): Change to unistr.h.
72289         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72290         (Depends-on): Add unistr/base.
72291         (configure.ac): Remove gl_UTF_UCS4.
72292         (Makefile.am): Update.
72293         (Include): Change to unistr.h.
72294         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72295         (Depends-on): Add unistr/base.
72296         (configure.ac): Remove gl_UTF_UCS4.
72297         (Makefile.am): Update.
72298         (Include): Change to unistr.h.
72299         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72300         (Depends-on): Add unistr/base.
72301         (configure.ac): Remove gl_UCS4_UTF.
72302         (Makefile.am): Update.
72303         (Include): Change to unistr.h.
72304         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72305         (Depends-on): Add unistr/base.
72306         (configure.ac): Remove gl_UCS4_UTF.
72307         (Makefile.am): Update.
72308         (Include): Change to unistr.h.
72309         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72310         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72311         utf8-ucs4-unsafe.h.
72312         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72313         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72314         utf16-ucs4-unsafe.h.
72315         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72316         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72317         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72318         * lib/unistr/u8-strchr.c: Likewise.
72319         * lib/unistr/u8-strrchr.c: Likewise.
72320         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72321         * lib/unistr/u16-strchr.c: Likewise.
72322         * lib/unistr/u16-strrchr.c: Likewise.
72323         * lib/striconveh.c: Update.
72324         * lib/linebreak.c: Update.
72325
72326 2007-03-24  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72329         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72330
72331 2007-03-22  Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72334
72335 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * MODULES.html.sh (File system functions): New module write-any-file.
72338         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72339         * m4/write-any-file.m4: New files.
72340
72341 2007-03-23  Eric Blake  <ebb9@byu.net>
72342
72343         * gnulib-tool: Rearrange space-tab sequences, since some editors
72344         like to eat them.
72345
72346 2007-03-23  Eric Blake  <ebb9@byu.net>
72347
72348         * lib/version-etc.c (version_etc_va): Update license wording to
72349         be more concise.  Recommended by Richard Stallman.
72350
72351 2007-03-22  Bruno Haible  <bruno@clisp.org>
72352
72353         * lib/poll.c (MSG_PEEK): New fallback definition.
72354
72355 2007-03-22  Bruno Haible  <bruno@clisp.org>
72356
72357         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72358         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72359         (main): Update.
72360         Fixes a compilation error on BeOS.
72361
72362 2007-03-22  Bruno Haible  <bruno@clisp.org>
72363
72364         * modules/frexpl-tests: New file.
72365         * tests/test-frexpl.c: New file.
72366
72367         * modules/frexpl: New file.
72368         * m4/frexpl.m4: New file.
72369         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72370         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72372         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72373         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72374         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72375
72376 2007-03-22  Bruno Haible  <bruno@clisp.org>
72377
72378         * lib/frexpl.c: Share code with lib/frexp.c.
72379         * modules/mathl (Files): Add lib/frexp.c.
72380         (Depends-on): Add isnanl-nolibm.
72381
72382 2007-03-22  Bruno Haible  <bruno@clisp.org>
72383
72384         * modules/printf-frexp (Files): Add m4/frexp.m4.
72385         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72386         only if the found frexp function actually works.
72387
72388 2007-03-22  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/frexp.c: Remove older implementation that uses divisions.
72391
72392 2007-03-21  Bruno Haible  <bruno@clisp.org>
72393
72394         * modules/frexp-tests: New file.
72395         * tests/test-frexp.c: New file.
72396
72397         * modules/frexp: New file.
72398         * lib/frexp.c: New file.
72399         * m4/frexp.m4: New file.
72400         * lib/math_.h (frexp): New declaration.
72401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72402         REPLACE_FREXP.
72403         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72404
72405 2007-03-21  Bruno Haible  <bruno@clisp.org>
72406
72407         * modules/isnanl-tests: New file.
72408         * tests/test-isnanl.c: New file.
72409
72410         * modules/isnanl: New file.
72411         * lib/isnanl.h: New file.
72412         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72413         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72414         gl_FUNC_ISNANL_WORKS.
72415         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72416         New macros.
72417
72418 2007-03-21  Bruno Haible  <bruno@clisp.org>
72419
72420         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72421         lib/isnanl.h.
72422         (Include): Update.
72423         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72424         * lib/vasnprintf.c: Update.
72425         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72426         tests/test-isnanl.h, remove tests/test-isnanl.c.
72427         (Makefile.am): Update.
72428         * tests/test-isnanl-nolibm.c: New file.
72429         * tests/test-isnanl.h: New file.
72430         * tests/test-isnanl.c: Remove file.
72431
72432 2007-03-21  Jim Meyering  <jim@meyering.net>
72433
72434         When trying to open ".", treat ESTALE like EACCES.
72435         * lib/savewd.c (savewd_save): Resort to forking not just upon
72436         failure with EACCES, but also when errno is ESTALE.
72437
72438 2007-03-20  Bruno Haible  <bruno@clisp.org>
72439
72440         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72441         Needed on AIX 5.1. Reported by Matthew Woehlke.
72442
72443 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         Suggestions by Bruno Haible:
72446         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72447         our own.
72448         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72449         * modules/acl (Depends-on): Add gettext.
72450
72451 2007-03-19  Bruno Haible  <bruno@clisp.org>
72452
72453         * modules/iconvme: Remove file.
72454         * lib/iconvme.h: Remove file.
72455         * lib/iconvme.c: Remove file.
72456         * m4/iconvme.m4: Remove file.
72457
72458 2007-03-19  Bruno Haible  <bruno@clisp.org>
72459
72460         * doc/relocatable-maint.texi: Break long shell script line.
72461         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72462
72463 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72466         handle file_has_acl.
72467         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72468         * lib/acl.c: Move header inclusions and related macro defns into
72469         lib/acl-internal.h.
72470         (S_ISLNK): Remove defn, since that's now done for us.
72471         (file_has_acl): Move to lib/file-has-acl.c.
72472         Call acl_trivial if available.  This is the crucial part of the fix.
72473         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72474         shared within the library.  Rewrite a bit, partly to make it compatible
72475         with the GNU coding style.
72476         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72477         Remove unnecessary double-quotes.
72478         Don't test for acl_to_text; the build will catch that.
72479         Replace acl_entries if it doesn't exist and it is needed.
72480         Check for -lsec and acl_trivial (as used on Solaris 10).
72481         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72482         lib/file-has-acl.c.
72483         (Depends-on): Add sys_stat, for S_ISLNK.
72484
72485 2007-03-19  Ben Pfaff  <blp@gnu.org>
72486
72487         * doc/gnulib.texi: Fix typos.
72488         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72489
72490 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72493         If size is zero here, buf must be zero.
72494
72495 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72496
72497         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72498         <bruno@clisp.org>.
72499
72500 2007-03-18  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72503         Suggested by Eric Blake.
72504
72505 2007-03-18  Ben Pfaff  <blp@gnu.org>
72506
72507         * doc/relocatable.texi: Recommend using as prefix a directory
72508         that does not exist and will never be created.  Based on
72509         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72510         and others.
72511
72512 2007-03-17  Bruno Haible  <bruno@clisp.org>
72513
72514         * lib/fchownat.c: Include lchown.h.
72515
72516 2007-03-17  Bruno Haible  <bruno@clisp.org>
72517
72518         Fix endless loop when the given allocated size was > INT_MAX.
72519         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72520         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72521         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72522         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72523         * lib/sprintf.c (sprintf): Likewise.
72524
72525 2007-03-17  Bruno Haible  <bruno@clisp.org>
72526
72527         * tests/test-argp-2.sh (func_compare): Output a context diff.
72528
72529 2007-03-17  Bruno Haible  <bruno@clisp.org>
72530
72531         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72532         locale's decimal-point character.
72533
72534 2007-03-17  Bruno Haible  <bruno@clisp.org>
72535
72536         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72537         before comparing it. Needed because on some platforms (e.g. x86) a
72538         'long double' occupies less bytes than sizeof (long double).
72539
72540 2007-03-17  Bruno Haible  <bruno@clisp.org>
72541
72542         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72543         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72544         * tests/test-getaddrinfo.c (simple): Likewise.
72545         * tests/test-read-file.c (main): Likewise.
72546
72547 2007-03-17  Bruno Haible  <bruno@clisp.org>
72548
72549         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72550
72551 2007-03-17  Bruno Haible  <bruno@clisp.org>
72552
72553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72554         unused variable.
72555
72556 2007-03-17  Bruno Haible  <bruno@clisp.org>
72557
72558         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72559         * tests/test-c-strncasecmp.c: Likewise.
72560
72561 2007-03-17  Bruno Haible  <bruno@clisp.org>
72562
72563         * modules/stdlib (Depends-on): Add unistd.
72564         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72565         Needed for MacOS X 10.3.
72566
72567 2007-03-17  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72570
72571 2007-03-17  Bruno Haible  <bruno@clisp.org>
72572
72573         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72574
72575 2007-03-17  Bruno Haible  <bruno@clisp.org>
72576
72577         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72578         to reflect files copied from gnulib (with or without modifications).
72579         Suggested by Jim Meyering.
72580
72581 2007-03-17  Eric Blake  <ebb9@byu.net>
72582
72583         * NEWS: Document stdlib change from 2007-02-18.
72584
72585 2007-03-17  Jim Meyering  <jim@meyering.net>
72586
72587         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72588         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72589         someone uses a name containing shell meta-characters.
72590         Reported by Alfred M. Szmidt.
72591
72592         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72593
72594 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72595
72596         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72597         and copy gettext configuration files only if configure.ac contains
72598         a use of AM_GNU_GETTEXT_VERSION.
72599
72600 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72601
72602         * build-aux/bootstrap (gnulib_name): New variable.
72603         (gnulib_tool_options): Use it.
72604
72605 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72606
72607         * tests/test-des.c: Use new namespace.
72608
72609 2007-03-15  Bruno Haible  <bruno@clisp.org>
72610
72611         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72612         Reported by James Youngman <jay@gnu.org>.
72613
72614 2007-03-15  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72617         declared prototype. Needed with cc on OSF/1 5.1.
72618
72619 2007-03-15  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72622         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72623         (struct gl_list_implementation): Add dispose_fn argument to the
72624         'create_empty', 'create' methods.
72625         (struct gl_list_impl_base): Add field 'dispose_fn'.
72626         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72627         argument.
72628         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72629         dispose_fn argument.
72630         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72631         dispose_fn on the dropped values.
72632         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72633         dispose_fn argument.
72634         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72635         dropped values.
72636         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72637         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72638         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72639         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72640         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72641         argument.
72642         (gl_tree_list_free): Call dispose_fn on the dropped values.
72643         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72644         the dropped values.
72645         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72646         Add dispose_fn argument.
72647         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72648         Call dispose_fn on the dropped values.
72649         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72650         Add dispose_fn argument.
72651         (gl_sublist_create): Initialize the 'dispose_fn' field.
72652         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72653         * tests/test-array_list.c (main): Update.
72654         * tests/test-carray_list.c (main): Update.
72655         * tests/test-avltree_list.c (main): Update.
72656         * tests/test-rbtree_list.c (main): Update.
72657         * tests/test-avltreehash_list.c (main): Update.
72658         * tests/test-rbtreehash_list.c (main): Update.
72659         * tests/test-linked_list.c (main): Update.
72660         * tests/test-linkedhash_list.c (main): Update.
72661         * tests/test-array_oset.c (main): Update.
72662
72663 2007-03-15  Bruno Haible  <bruno@clisp.org>
72664
72665         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72666         (gl_oset_create_empty): Add dispose_fn argument.
72667         (struct gl_oset_implementation): Add dispose_fn argument to
72668         'create_empty' method.
72669         (struct gl_oset_impl_base): Add dispose_fn field.
72670         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72671         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72672         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72673         values.
72674         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72675         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72676         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72677         dropped value.
72678         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72679         dropped value.
72680         * tests/test-array_oset.c (main): Update.
72681         * tests/test-avltree_oset.c (main): Update.
72682         * tests/test-rbtree_oset.c (main): Update.
72683         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72684
72685 2007-03-13  Bruno Haible  <bruno@clisp.org>
72686
72687         * tests/test-stdbool.c (i): Update after last patch.
72688
72689 2007-03-12  Bruno Haible  <bruno@clisp.org>
72690
72691         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72692         the iswprint macro. Needed on Solaris 2.5.1.
72693
72694 2007-03-12  Bruno Haible  <bruno@clisp.org>
72695
72696         * tests/test-printf-frexp.c (main): Declare x as volatile.
72697
72698 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72699
72700         * doc/gnulib.texi (Build robot for gnulib): New section.
72701
72702 2007-03-12  Jim Meyering  <jim@meyering.net>
72703
72704         * build-aux/bootstrap: New file.
72705         * build-aux/bootstrap.conf: New file, from coreutils.
72706
72707 2007-03-11  Bruno Haible  <bruno@clisp.org>
72708
72709         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72710
72711 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72712
72713         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72714         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72715         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72716
72717 2007-03-11  Bruno Haible  <bruno@clisp.org>
72718
72719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72720         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72721
72722 2007-03-11  Bruno Haible  <bruno@clisp.org>
72723
72724         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72725         formula. Needed for SunPRO C 5.0.
72726
72727 2007-03-11  Bruno Haible  <bruno@clisp.org>
72728
72729         * modules/long-options (Depends-on): Add getopt.
72730
72731 2007-03-11  Bruno Haible  <bruno@clisp.org>
72732
72733         * modules/modechange (Depends-on): Add stdbool.
72734
72735 2007-03-11  Bruno Haible  <bruno@clisp.org>
72736
72737         * modules/i-ring (Depends-on): Add stdbool.
72738
72739 2007-03-11  Bruno Haible  <bruno@clisp.org>
72740
72741         * modules/gc-des (Depends-on): Add stdbool.
72742
72743 2007-03-11  Bruno Haible  <bruno@clisp.org>
72744
72745         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72746
72747 2007-03-11  Bruno Haible  <bruno@clisp.org>
72748
72749         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72750
72751 2007-03-11  Bruno Haible  <bruno@clisp.org>
72752
72753         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72754
72755 2007-03-11  Bruno Haible  <bruno@clisp.org>
72756
72757         * lib/vasnprintf.c (sprintf): Undefine.
72758
72759 2007-03-11  Bruno Haible  <bruno@clisp.org>
72760
72761         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72762         initializers in SunPRO C and Compaq C compilers.
72763
72764 2007-03-11  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72767         decrementing code ANSI C compliant.
72768
72769 2007-03-11  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72772         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72773
72774 2007-03-11  Bruno Haible  <bruno@clisp.org>
72775
72776         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72777         <stdbool.h> substitute doesn't pass.
72778
72779 2007-03-11  Bruno Haible  <bruno@clisp.org>
72780
72781         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72782
72783 2007-03-11  Bruno Haible  <bruno@clisp.org>
72784
72785         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72786         script, for submission to autobuild.josefsson.org.
72787
72788 2007-03-10  Bruno Haible  <bruno@clisp.org>
72789
72790         * modules/canonicalize-lgpl-tests: New file.
72791         * tests/test-canonicalize-lgpl.sh: New file.
72792         * tests/test-canonicalize-lgpl.c: New file.
72793
72794         * modules/c-strcase-tests: New file.
72795         * tests/test-c-strcase.sh: New file.
72796         * tests/test-c-strcasecmp.c: New file.
72797         * tests/test-c-strncasecmp.c: New file.
72798
72799         * modules/atexit-tests: New file.
72800         * tests/test-atexit.sh: New file.
72801         * tests/test-atexit.c: New file.
72802
72803 2007-03-10  Bruno Haible  <bruno@clisp.org>
72804
72805         * tests/test-binary-io.sh: Use temporary filenames that are not so
72806         likely to clash with those of other tests (in a parallel make).
72807         * tests/test-binary-io.c: Likewise.
72808
72809 2007-03-10  Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72812         fallback; use #error instead.
72813         Suggested by Simon Josefsson.
72814
72815 2007-03-10  Bruno Haible  <bruno@clisp.org>
72816
72817         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72818         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72819         first and the last.
72820
72821 2007-03-10  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72824
72825 2007-03-10  Bruno Haible  <bruno@clisp.org>
72826
72827         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72828         "make distcheck".
72829         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72830         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72831         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72832
72833 2007-03-10  Bruno Haible  <bruno@clisp.org>
72834
72835         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72836         variable.
72837         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72838         variable.
72839
72840 2007-03-09  Eric Blake  <ebb9@byu.net>
72841         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72842
72843         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72844         types are not being provided by gnulib.
72845         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72846         types are supported.
72847
72848 2007-03-10  Bruno Haible  <bruno@clisp.org>
72849
72850         * lib/stdio_.h (__attribute__): New macro.
72851         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72852         vsprintf): Specify __attribute__ __format__ for GCC.
72853         Suggested by Eric Blake.
72854
72855 2007-03-09  Bruno Haible  <bruno@clisp.org>
72856
72857         * modules/printf-posix-tests: New file.
72858         * tests/test-printf-posix.sh: New file.
72859         * tests/test-printf-posix.c: New file.
72860
72861         * modules/printf-posix: New file.
72862         * lib/printf.c: New file.
72863         * m4/printf-posix-rpl.m4: New file.
72864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72865         REPLACE_PRINTF.
72866         * lib/stdio_.h (printf): New declaration.
72867         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72868         ____strfmon____): New macros.
72869         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72870         REPLACE_PRINTF.
72871
72872 2007-03-09  Bruno Haible  <bruno@clisp.org>
72873
72874         * tests/test-vasnprintf-posix2.sh: New file.
72875         * tests/test-vasnprintf-posix2.c: New file.
72876         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72877         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72878         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72879
72880         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72881         a locale dependent decimal point, rather than always '.'.
72882
72883 2007-03-09  Eric Blake  <ebb9@byu.net>
72884
72885         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72886         spite of platforms like Tandem/NSK that define it to -1.
72887
72888 2007-03-08  Bruno Haible  <bruno@clisp.org>
72889
72890         * modules/vprintf-posix-tests: New file.
72891         * tests/test-vprintf-posix.sh: New file.
72892         * tests/test-vprintf-posix.c: New file.
72893         * tests/test-printf-posix.h: New file.
72894
72895         * modules/vprintf-posix: New file.
72896         * lib/vprintf.c: New file.
72897         * m4/vprintf-posix.m4: New file.
72898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72899         REPLACE_VPRINTF.
72900         * lib/stdio_.h (vprintf): New declaration.
72901         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72902         REPLACE_VPRINTF.
72903
72904 2007-03-08  Bruno Haible  <bruno@clisp.org>
72905
72906         * modules/fprintf-posix-tests: New file.
72907         * tests/test-fprintf-posix.sh: New file.
72908         * tests/test-fprintf-posix.c: New file.
72909
72910         * modules/fprintf-posix: New file.
72911         * lib/fprintf.c: New file.
72912         * m4/fprintf-posix.m4: New file.
72913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72914         REPLACE_FPRINTF.
72915         * lib/stdio_.h (fprintf): New declaration.
72916         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72917         REPLACE_FPRINTF.
72918
72919 2007-03-08  Bruno Haible  <bruno@clisp.org>
72920
72921         * modules/vfprintf-posix-tests: New file.
72922         * tests/test-vfprintf-posix.sh: New file.
72923         * tests/test-vfprintf-posix.c: New file.
72924         * tests/test-fprintf-posix.h: New file.
72925         * tests/test-fprintf-posix.out: New file.
72926
72927         * modules/vfprintf-posix: New file.
72928         * lib/vfprintf.c: New file.
72929         * m4/vfprintf-posix.m4: New file.
72930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72931         REPLACE_VFPRINTF.
72932         * lib/stdio_.h (vfprintf): New declaration.
72933         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72934         REPLACE_VFPRINTF.
72935
72936 2007-03-08  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72939
72940 2007-03-08  Bruno Haible  <bruno@clisp.org>
72941
72942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72943         instead of 'expr' invocations.
72944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72949         Suggested by Paul Eggert.
72950
72951 2007-03-08  Bruno Haible  <bruno@clisp.org>
72952
72953         * modules/fseterr-tests: New file.
72954         * tests/test-fseterr.c: New file.
72955
72956         * modules/fseterr: New file.
72957         * lib/fseterr.h: New file.
72958         * lib/fseterr.c: New file.
72959
72960 2007-03-08  Bruno Haible  <bruno@clisp.org>
72961
72962         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72963         * lib/getopt_.h: Likewise.
72964         * lib/mbswidth.h: Likewise.
72965         * lib/setenv.h: Likewise.
72966         * lib/vasnprintf.h: Likewise.
72967         * lib/vasprintf.h: Likewise.
72968         * lib/verror.h: Likewise.
72969         * lib/xsetenv.h: Likewise.
72970         * lib/xvasprintf.h: Likewise.
72971
72972 2007-03-08  Jim Meyering  <jim@meyering.net>
72973
72974         * users.txt: Add parted.
72975
72976         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72977
72978 2007-03-07  Bruno Haible  <bruno@clisp.org>
72979
72980         * m4/printf.m4: Make the shell script snippets copy&pastable.
72981
72982 2007-03-02  Bruno Haible  <bruno@clisp.org>
72983
72984         * lib/netinet_in_.h: New file.
72985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72986         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72987         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72988         (Depends-on): Add absolute-header.
72989         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72990         into netinet/in.h.
72991
72992 2007-03-03  Bruno Haible  <bruno@clisp.org>
72993
72994         * lib/sys_select_.h: New file.
72995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72996         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72997         * modules/sys_select (Files): Add lib/sys_select_.h.
72998         (Depends-on): Add absolute-header.
72999         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73000         into sys/select.h.
73001
73002 2007-03-02  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73005         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73006         values.
73007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73008         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73009         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73010         * modules/sys_socket (Depends-on): Add absolute-header.
73011         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73012         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73013         (Include): Remove requirement of inclusion of <sys/types.h>.
73014
73015 2007-03-02  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/byteswap_.h (bswap_32): Fix formula.
73018
73019 2007-03-06  Bruno Haible  <bruno@clisp.org>
73020
73021         * modules/sprintf-posix-tests: New file.
73022         * tests/test-sprintf-posix.c: New file.
73023
73024         * modules/sprintf-posix: New file.
73025         * lib/sprintf.c: New file.
73026         * m4/sprintf-posix.m4: New file.
73027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73028         REPLACE_SPRINTF.
73029         * lib/stdio_.h (sprintf): New declaration.
73030         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73031         REPLACE_SPRINTF.
73032
73033 2007-03-06  Bruno Haible  <bruno@clisp.org>
73034
73035         * modules/vsprintf-posix-tests: New file.
73036         * tests/test-vsprintf-posix.c: New file.
73037         * tests/test-sprintf-posix.h: New file.
73038
73039         * modules/vsprintf-posix: New file.
73040         * lib/vsprintf.c: New file.
73041         * m4/vsprintf-posix.m4: New file.
73042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73043         REPLACE_VSPRINTF.
73044         * lib/stdio_.h (vsprintf): New declaration.
73045         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73046         REPLACE_VSPRINTF.
73047
73048 2007-03-06  Bruno Haible  <bruno@clisp.org>
73049
73050         * modules/vsnprintf (Depend-on): Remove minmax.
73051
73052 2007-03-06  Bruno Haible  <bruno@clisp.org>
73053
73054         * modules/snprintf-posix-tests: New file.
73055         * tests/test-snprintf-posix.c: New file.
73056
73057         * modules/snprintf-posix: New file.
73058         * m4/snprintf-posix.m4: New file.
73059         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73060         gl_FUNC_SNPRINTF.
73061         (gl_FUNC_SNPRINTF): Invoke it.
73062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73063         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73064         is set.
73065         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73066
73067 2007-03-06  Bruno Haible  <bruno@clisp.org>
73068
73069         * modules/vsnprintf-posix-tests: New file.
73070         * tests/test-vsnprintf-posix.c: New file.
73071         * tests/test-snprintf-posix.h: New file.
73072
73073         * modules/vsnprintf-posix: New file.
73074         * m4/vsnprintf-posix.m4: New file.
73075         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73076         gl_FUNC_VSNPRINTF.
73077         (gl_FUNC_VSNPRINTF): Invoke it.
73078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73079         * lib/stdio_.h (vsnprintf): Define as a replacement if
73080         REPLACE_VSNPRINTF is set.
73081         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73082
73083 2007-03-06  Bruno Haible  <bruno@clisp.org>
73084
73085         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73087
73088 2007-03-06  Bruno Haible  <bruno@clisp.org>
73089
73090         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73091         (asinl): Declare also if HAVE_DECL_ASINL is set.
73092         (atanl): Declare also if HAVE_DECL_ATANL is set.
73093         (ceill): Declare also if HAVE_DECL_CEILL is set.
73094         (cosl): Declare also if HAVE_DECL_COSL is set.
73095         (expl): Declare also if HAVE_DECL_EXPL is set.
73096         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73097         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73098         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73099         (logl): Declare also if HAVE_DECL_LOGL is set.
73100         (sinl): Declare also if HAVE_DECL_SINL is set.
73101         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73102         (tanl): Declare also if HAVE_DECL_TANL is set.
73103         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73106         declaration of frexpl, ldexpl.
73107         * modules/printf-frexpl (Depends-on): Add math.
73108         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73109
73110 2007-03-05  Bruno Haible  <bruno@clisp.org>
73111
73112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73113         frexpl and ldexpl are declared.
73114         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73115
73116 2007-03-05  Bruno Haible  <bruno@clisp.org>
73117
73118         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73119         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73120
73121 2007-03-05  Bruno Haible  <bruno@clisp.org>
73122
73123         * lib/stdio_.h: Include <stddef.h>.
73124
73125 2007-03-05  Bruno Haible  <bruno@clisp.org>
73126
73127         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73128
73129 2007-03-05  Bruno Haible  <bruno@clisp.org>
73130
73131         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73132         NetBSD 4, from Ralf Wildenhues.
73133
73134 2007-03-04  Bruno Haible  <bruno@clisp.org>
73135
73136         * lib/vasprintf.h: Update #if logic for the case when the functions
73137         exist but are overridden.
73138
73139 2007-03-04  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73142         implementations: glibc-2.4 and MacOS X 10.3.
73143         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73144         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73145         * tests/test-vasprintf-posix.c (test_function): Likewise.
73146
73147 2007-03-04  Bruno Haible  <bruno@clisp.org>
73148
73149         * modules/vasprintf-posix-tests: New file.
73150         * tests/test-vasprintf-posix.c: New file.
73151
73152         * modules/vasprintf-posix: New file.
73153         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73154         defined.
73155         * m4/vasprintf-posix.m4: New file.
73156         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73157         gl_FUNC_VASPRINTF.
73158         (gl_FUNC_VASPRINTF): Invoke it.
73159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73160         here.
73161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73162
73163 2007-03-04  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73166         REPLACE_GETTIMEOFDAY.
73167         * modules/sys_time (Makefile.am): Likewise.
73168         * m4/sys_time_h.m4: Likewise.
73169         * m4/gettimeofday.m4: Likewise.
73170
73171 2007-03-04  Bruno Haible  <bruno@clisp.org>
73172
73173         * modules/vasnprintf-posix-tests: New file.
73174         * tests/test-vasnprintf-posix.c: New file.
73175
73176         * modules/vasnprintf-posix: New file.
73177         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73178         printf-frexpl.h.
73179         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73180         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73181         REPLACE_VASNPRINTF is defined.
73182         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73183         gl_FUNC_VASNPRINTF.
73184         (gl_FUNC_VASNPRINTF): Invoke it.
73185         * m4/vasnprintf-posix.m4: New file.
73186         * m4/printf.m4: New file.
73187
73188 2007-03-04  Bruno Haible  <bruno@clisp.org>
73189
73190         Compile progreloc.c only if --enable-relocatable is specified.
73191         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73192         if --enable-relocatable was specified.
73193         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73194         lib_SOURCES.
73195
73196 2007-03-04  Jim Meyering  <jim@meyering.net>
73197
73198         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73199         Use it consistently, rather than enumerating errno constants.
73200
73201 2007-03-04  Bruno Haible  <bruno@clisp.org>
73202
73203         * modules/xvasprintf-tests: New file.
73204         * tests/test-xvasprintf.c: New file.
73205
73206         * modules/vasprintf-tests: New file.
73207         * tests/test-vasprintf.c: New file.
73208
73209         * modules/vasnprintf-tests: New file.
73210         * tests/test-vasnprintf.c: New file.
73211
73212         * modules/vsnprintf-tests: New file.
73213         * tests/test-vsnprintf.c: New file.
73214
73215         * modules/snprintf-tests: New file.
73216         * tests/test-snprintf.c: New file.
73217
73218 2007-03-04  Bruno Haible  <bruno@clisp.org>
73219
73220         Compile relocatable.c only if --enable-relocatable is specified.
73221         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73222         gl_RELOCATABLE_LIBRARY.
73223         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73224         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73225         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73226         gl_RELOCATABLE_LIBRARY.
73227         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73228         (Makefile.am): Remove lib_SOURCES.
73229         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73230         gl_RELOCATABLE_LIBRARY.
73231         (Makefile.am): Remove lib_SOURCES.
73232         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73233         always.
73234         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73235         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73236
73237 2007-03-04  Bruno Haible  <bruno@clisp.org>
73238
73239         * modules/argmatch-tests: New file.
73240         * tests/test-argmatch.c: New file.
73241
73242         * tests/test-allocsa.c (main): Halve the number of loop runs.
73243
73244         * modules/alloca-opt-tests: New file.
73245         * tests/test-alloca-opt.c: New file.
73246
73247 2007-03-04  Jim Meyering  <jim@meyering.net>
73248
73249         Work around difference between Linux ACLs and Solaris 10 ZFS.
73250         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73251         for EINVAL.
73252
73253 2007-03-03  Bruno Haible  <bruno@clisp.org>
73254
73255         * modules/relocatable-prog (Depends-on): Add back progreloc's
73256         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73257
73258 2007-03-03  Bruno Haible  <bruno@clisp.org>
73259
73260         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73261         * modules/relocatable-lib: New file.
73262
73263 2007-03-03  Bruno Haible  <bruno@clisp.org>
73264
73265         * modules/relocatable-prog: Renamed from modules/relocatable.
73266         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73267
73268 2007-03-03  Bruno Haible  <bruno@clisp.org>
73269
73270         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73271         m4/relocatable-lib.m4.
73272         (Depends-on): Remove 'relocatable'.
73273         (configure.ac): Add gl_RELOCATABLE_NOP.
73274
73275 2007-03-03  Bruno Haible  <bruno@clisp.org>
73276
73277         * modules/relocatable-prog-wrapper: New file.
73278         * modules/relocatable (Depends-on): Add it. Remove all other
73279         dependencies except progname.
73280         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73281
73282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73283         (gl_FUNC_STRERROR): Nop.
73284         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73285
73286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73287         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73288
73289         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73290         (gl_FUNC_READLINK): Update.
73291
73292         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73293
73294 2007-03-03  Bruno Haible  <bruno@clisp.org>
73295
73296         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73297         * modules/xreadlink (Depends-on): Add unistd.
73298         * modules/xreadlink-with-size (Depends-on): Likewise.
73299
73300 2007-03-03  Bruno Haible  <bruno@clisp.org>
73301
73302         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73303         extracted from gt_FUNC_SETENV.
73304         (gt_FUNC_SETENV): Remove macro.
73305         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73306         remove gt_FUNC_SETENV.
73307
73308 2007-03-03  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73311         ENABLE_RELOCATABLE here.
73312         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73313
73314 2007-03-03  Bruno Haible  <bruno@clisp.org>
73315
73316         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73317         * tests/test-rbtreehash_list.c: Include progname.h.
73318         (main): Call set_program_name.
73319
73320         * modules/rbtree-oset-tests (Depends-on): Add progname.
73321         * tests/test-rbtree_oset.c: Include progname.h.
73322         (main): Call set_program_name.
73323
73324         * modules/rbtree-list-tests (Depends-on): Add progname.
73325         * tests/test-rbtree_list.c: Include progname.h.
73326         (main): Call set_program_name.
73327
73328         * modules/linked-list-tests (Depends-on): Add progname.
73329         * tests/test-linked_list.c: Include progname.h.
73330         (main): Call set_program_name.
73331
73332 2007-03-03  Bruno Haible  <bruno@clisp.org>
73333
73334         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73335         All uses of __restrict changed to _Restrict_.
73336         * lib/glob_.h (__restrict): Remove macro.
73337
73338 2007-03-02  Bruno Haible  <bruno@clisp.org>
73339
73340         * modules/gettext (configure.ac): Require gettext infrastructure
73341         from version 0.16.1.
73342
73343 2007-03-02  Bruno Haible  <bruno@clisp.org>
73344
73345         * modules/linkedhash-list-tests (Depends-on): Add progname.
73346         * tests/test-linkedhash_list.c: Include progname.h.
73347         (main): Call set_program_name.
73348
73349         * modules/carray-list-tests (Depends-on): Add progname.
73350         * tests/test-carray_list.c: Include progname.h.
73351         (main): Call set_program_name.
73352
73353         * modules/avltreehash-list-tests (Depends-on): Add progname.
73354         * tests/test-avltreehash_list.c: Include progname.h.
73355         (main): Call set_program_name.
73356
73357         * modules/avltree-oset-tests (Depends-on): Add progname.
73358         * tests/test-avltree_oset.c: Include progname.h.
73359         (main): Call set_program_name.
73360
73361         * modules/avltree-list-tests (Depends-on): Add progname.
73362         * tests/test-avltree_list.c: Include progname.h.
73363         (main): Call set_program_name.
73364
73365         * modules/array-oset-tests (Depends-on): Add progname.
73366         * tests/test-array_oset.c: Include progname.h.
73367         (main): Call set_program_name.
73368
73369         * modules/array-list-tests (Depends-on): Add progname.
73370         * tests/test-array_list.c: Include progname.h.
73371         (main): Call set_program_name.
73372
73373         * modules/argp-tests (Depends-on): Add progname.
73374         * tests/test-argp.c: Include argp.h first. Include progname.h.
73375         (main): Call set_program_name.
73376
73377 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * doc/gnulib-tool.texi (Initial import): Reword description of
73380         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73381         limited effect even if defined after the first system include.
73382
73383 2007-03-01  Bruno Haible  <bruno@clisp.org>
73384
73385         * build-aux/config.libpath: Update to libtool-1.5.22.
73386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73387
73388 2007-03-01  Bruno Haible  <bruno@clisp.org>
73389
73390         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73391         foo_CFLAGS.
73392         Reported by Ralf Wildenhues.
73393
73394 2007-03-01  Bruno Haible  <bruno@clisp.org>
73395
73396         * build-aux/install-reloc: Remove object files left over by some
73397         compilers.
73398         Reported by Ralf Wildenhues.
73399
73400 2007-03-01  Bruno Haible  <bruno@clisp.org>
73401
73402         * build-aux/install-reloc: Break long lines.
73403
73404 2007-03-01  Bruno Haible  <bruno@clisp.org>
73405
73406         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73407         Reported by Ralf Wildenhues.
73408
73409 2007-03-01  Bruno Haible  <bruno@clisp.org>
73410
73411         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73412         include ordering constraints.
73413
73414 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73415
73416         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73417         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73418         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73419         as another example.
73420         * lib/time_.h: Fix misspelling.
73421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73422         Require gl_HEADER_TIME_H_DEFAULTS.
73423         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73424         * m4/time_r.m4 (gl_TIME_R): Likewise.
73425         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73426
73427 2007-03-01  Bruno Haible  <bruno@clisp.org>
73428
73429         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73430         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73431
73432 2007-03-01  Jim Meyering  <jim@meyering.net>
73433
73434         * modules/xreadlink (Maintainer): Add my name.
73435         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73436
73437 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73438             Bruno Haible  <bruno@clisp.org>
73439
73440         * build-aux/install-reloc: Compile also c-ctype.c.
73441         * build-aux/relocatable.sh.in: New file.
73442         * doc/relocatable.texi: New file.
73443         * doc/relocatable-maint.texi: New file.
73444         * doc/gnulib.texi: Include relocatable-maint.texi.
73445         * lib/progreloc.c: Include unistd.h unconditionally.
73446         * lib/relocwrapper.c: Include unistd.h unconditionally.
73447         Include c-ctype.h.
73448         (add_dotbin): Use c_tolower.
73449         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73450         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73451         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73452         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73453         to m4/relocatable-lib.m4.
73454         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73455         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73456         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73457         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73458         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73459         * modules/relocatable: New file.
73460         * modules/relocatable-lib: New file.
73461         * modules/relocatable-script: New file.
73462
73463 2007-02-28  Bruno Haible  <bruno@clisp.org>
73464
73465         Import --enable-relocatable infrastructure.
73466         * build-aux/config.libpath: New file, from GNU gettext.
73467         * build-aux/install-reloc: New file, from GNU gettext.
73468         * build-aux/reloc-ldflags: New file, from GNU gettext.
73469         * lib/relocatable.h: New file, from GNU gettext.
73470         * lib/relocatable.c: New file, from GNU gettext.
73471         * lib/relocwrapper.c: New file, from GNU gettext.
73472         * m4/relocatable.m4: New file, from GNU gettext.
73473
73474 2007-02-28  Bruno Haible  <bruno@clisp.org>
73475
73476         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73477
73478         * modules/xreadlink: New file, from GNU gettext with modifications.
73479         * lib/xreadlink.c: New file, from GNU gettext.
73480         * lib/xreadlink.h: Add comments.
73481         (xreadlink): New declaration.
73482
73483         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73484         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73485         lib/xreadlink-with-size.c.
73486         (configure.ac): Remove gl_XREADLINK invocation.
73487         (Makefile.am): Augment lib_SOURCES.
73488         * m4/xreadlink.m4: Remove file.
73489         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73490         (xreadlink_with_size): Renamed from xreadink.
73491         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73492         * modules/canonicalize (Depends-on): Replace xreadlink with
73493         xreadlink-with-size.
73494         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73495
73496 2007-02-25  Jim Meyering  <jim@meyering.net>
73497
73498         * build-aux/announce-gen: When complaining about excess arguments,
73499         list them.
73500
73501 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73502
73503         * README: Document signed integer overflow situation more
73504         accurately.
73505
73506 2007-02-25  Bruno Haible  <bruno@clisp.org>
73507
73508         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73509         'a' or 'A' conversion.
73510
73511 2007-02-25  Bruno Haible  <bruno@clisp.org>
73512
73513         * modules/filename: Renamed from modules/pathname.
73514         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73515         lib/concatpath.c with lib/concat-filename.c.
73516         (Makefile.am): Update.
73517         (Include): Replace pathname.h with filename.h.
73518         * lib/filename.h: Renamed from lib/pathname.h.
73519         (concatenated_filename): Renamed from concatenated_pathname.
73520         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73521         (concatenated_filename): Renamed from concatenated_pathname.
73522         * lib/findprog.c: Include filename.h instead of pathname.h.
73523         (find_in_path): Update.
73524         * lib/javacomp.c: Include filename.h instead of pathname.h.
73525         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73526         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73527         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73528         is_oldgcj_14_13_usable, is_javac_usable): Update.
73529         * lib/javaexec.c: Include filename.h instead of pathname.h.
73530         (execute_java_class): Update.
73531         * modules/findprog: Update.
73532         * modules/javacomp: Update.
73533         * modules/javaexec: Update.
73534         * MODULES.html.sh (File system functions): Add 'filename', remove
73535         'pathname'.
73536
73537 2007-02-25  Bruno Haible  <bruno@clisp.org>
73538
73539         * modules/printf-frexpl-tests: New file.
73540         * tests/test-printf-frexpl.c: New file.
73541
73542         * modules/printf-frexpl: New file.
73543         * lib/printf-frexpl.h: New file.
73544         * lib/printf-frexpl.c: New file.
73545         * m4/printf-frexpl.m4: New file.
73546
73547 2007-02-25  Bruno Haible  <bruno@clisp.org>
73548
73549         * modules/printf-frexp-tests: New file.
73550         * tests/test-printf-frexp.c: New file.
73551
73552         * modules/printf-frexp: New file.
73553         * lib/printf-frexp.h: New file.
73554         * lib/printf-frexp.c: New file.
73555         * m4/printf-frexp.m4: New file.
73556
73557 2007-02-25  Bruno Haible  <bruno@clisp.org>
73558
73559         Assume automake >= 1.10 for the tests.
73560         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73561         * modules/arctwo-tests: Likewise.
73562         * modules/argp-tests: Likewise.
73563         * modules/avltree-list-tests: Likewise.
73564         * modules/avltree-oset-tests: Likewise.
73565         * modules/avltreehash-list-tests: Likewise.
73566         * modules/carray-list-tests: Likewise.
73567         * modules/crc-tests: Likewise.
73568         * modules/des-tests: Likewise.
73569         * modules/gc-arcfour-tests: Likewise.
73570         * modules/gc-arctwo-tests: Likewise.
73571         * modules/gc-des-tests: Likewise.
73572         * modules/gc-hmac-md5-tests: Likewise.
73573         * modules/gc-hmac-sha1-tests: Likewise.
73574         * modules/gc-md2-tests: Likewise.
73575         * modules/gc-md4-tests: Likewise.
73576         * modules/gc-md5-tests: Likewise.
73577         * modules/gc-pbkdf2-sha1-tests: Likewise.
73578         * modules/gc-rijndael-tests: Likewise.
73579         * modules/gc-sha1-tests: Likewise.
73580         * modules/gc-tests: Likewise.
73581         * modules/getaddrinfo-tests: Likewise.
73582         * modules/hmac-md5-tests: Likewise.
73583         * modules/hmac-sha1-tests: Likewise.
73584         * modules/linked-list-tests: Likewise.
73585         * modules/linkedhash-list-tests: Likewise.
73586         * modules/lock-tests: Likewise.
73587         * modules/md2-tests: Likewise.
73588         * modules/md4-tests: Likewise.
73589         * modules/md5-tests: Likewise.
73590         * modules/rbtree-list-tests: Likewise.
73591         * modules/rbtree-oset-tests: Likewise.
73592         * modules/rbtreehash-list-tests: Likewise.
73593         * modules/read-file-tests: Likewise.
73594         * modules/rijndael-tests: Likewise.
73595         * modules/stdint-tests: Likewise.
73596         * modules/tls-tests: Likewise.
73597
73598 2007-02-24  Bruno Haible  <bruno@clisp.org>
73599
73600         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73601         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73602         function; instead check whether isnan with a double argument links.
73603         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73604         function; instead check whether isnan with a 'long double' argument
73605         links.
73606         Reported by Eric Blake <ebb9@byu.net>.
73607
73608 2007-02-24  Bruno Haible  <bruno@clisp.org>
73609
73610         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73611         defined.
73612         * lib/isnanl.c: Remove all code. Just include isnan.c.
73613         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73614
73615 2007-02-25  Jim Meyering  <jim@meyering.net>
73616
73617         Avoid conflicting types for 'unsetenv' on FreeBSD.
73618         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73619         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73620         in stdlib.h.
73621
73622 2007-02-24  Bruno Haible  <bruno@clisp.org>
73623
73624         * modules/isnanl-nolibm-tests: New file.
73625         * tests/test-isnanl.c: New file.
73626
73627         * modules/isnanl-nolibm: New file.
73628         * lib/isnanl.h: New file.
73629         * lib/isnanl.c: New file.
73630         * m4/isnanl.m4: New file.
73631
73632 2007-02-24  Bruno Haible  <bruno@clisp.org>
73633
73634         * modules/isnan-nolibm-tests: New file.
73635         * tests/test-isnan.c: New file.
73636
73637         * modules/isnan-nolibm: New file.
73638         * lib/isnan.h: New file.
73639         * lib/isnan.c: New file.
73640         * m4/isnan.m4: New file.
73641
73642 2007-02-24  Bruno Haible  <bruno@clisp.org>
73643
73644         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73645         assume that an exponent fits in 20 bits.
73646
73647 2007-02-24  Jim Meyering  <jim@meyering.net>
73648
73649         * m4/regex.m4: Update the description of the configure-time option,
73650         --without-included-regex, to state accurately what the defaults are,
73651         and perhaps to give people an idea why using this option is risky.
73652
73653 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73654
73655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73656         loops on small arguments.  This attempts to avoid the problem
73657         Bruno Haible reported for AIX 4.3.2 in
73658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73659
73660 2007-02-23  Bruno Haible  <bruno@clisp.org>
73661
73662         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73663         Needed for help2man.
73664
73665 2007-02-23  Karl Berry  <karl@gnu.org>
73666
73667         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73668         exists, foo.h should be cvs-ignored, not committed.
73669
73670 2007-02-23  Eric Blake  <ebb9@byu.net>
73671
73672         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73673         * lib/stat-time.h (includes): Likewise.
73674         * lib/utimecmp.c (includes): Likewise.
73675         * lib/utimens.h (includes): Likewise.
73676         * lib/getdate.y (includes): Also include "timespec.h" for use
73677         internal to the module.
73678         * modules/utimens (Depends-on): Revert yesterday's patch.
73679         * modules/nanosleep (Depends-on): Add missing dependency.
73680
73681 2007-02-22  Bruno Haible  <bruno@clisp.org>
73682
73683         * lib/glob.c: Don't include getlogin_r.h.
73684
73685 2007-02-22  Jim Meyering  <jim@meyering.net>
73686
73687         * modules/utimens (Depends-on): Add timespec, required for
73688         utimens.h's inclusion of timespec.h.
73689
73690 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73693         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73694         Schwab in
73695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73696         I'll try to think of a better way to fix the Solaris problem.
73697
73698         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73699         like glibc; on Solaris 10, it fails with errno == EINVAL.
73700         POSIX says the behavior is unspecified if the first argument is NULL,
73701         so play it safe and never pass NULL to the system getcwd.
73702
73703 2007-02-21  Jim Meyering  <jim@meyering.net>
73704
73705         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73706         of gettimeofday.  It would conflict with the one now always
73707         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73708         an IRIX 6.5 build failure.
73709
73710 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         Minor fixups to port to Solaris 10 with Sun C 5.8.
73713         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73714         * modules/getcwd (Depends-on): Add dirfd.
73715         * lib/putenv.c (putenv): #undef it.
73716         (rpl_putenv): New decl.
73717         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73718
73719 2007-02-20  Bruno Haible  <bruno@clisp.org>
73720
73721         * modules/stdio-tests: New file.
73722         * tests/test-stdio.c: New file.
73723
73724         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73725         (Depends-on): Add stdio.
73726         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73727         (Include): Use <stdio.h> instead of vsnprintf.h.
73728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73729         HAVE_DECL_VSNPRINTF.
73730         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73731
73732         * modules/snprintf (Files): Remove lib/snprintf.h.
73733         (Depends-on): Add stdio.
73734         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73735         (Include): Use <stdio.h> instead of snprintf.h.
73736         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73737         HAVE_DECL_SNPRINTF.
73738         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73739         * lib/getaddrinfo.c: Likewise.
73740
73741         * modules/stdio: New file.
73742         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73743         * lib/snprintf.h: Remove file.
73744         * lib/vsnprintf.h: Remove file.
73745         * lib/.cppi-disable: Remove snprintf.h.
73746         * m4/stdio_h.m4: New file.
73747         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73748
73749 2007-02-20  Jim Meyering  <jim@meyering.net>
73750
73751         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73752         used by e.g., mingw.  From Bruno Haible.
73753
73754 2007-02-19  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73757         warnings.
73758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73759
73760 2007-02-19  Bruno Haible  <bruno@clisp.org>
73761
73762         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73763         from mingw users.
73764
73765 2007-02-19  Bruno Haible  <bruno@clisp.org>
73766
73767         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73768         warnings.
73769         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73770
73771 2007-02-19  Jim Meyering  <jim@meyering.net>
73772
73773         Don't use FD after a successful "fdopendir (fd)".
73774         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73775         Reset it by calling dirfd on the just-obtained DIR*.
73776
73777         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73778         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73779
73780 2007-02-18  Bruno Haible  <bruno@clisp.org>
73781
73782         * lib/readlink.c: Include <unistd.h>.
73783         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73784         HAVE_READLINK.
73785         * modules/readlink (Depends-on): Add unistd.
73786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73787         (Include): Add <unistd.h>.
73788
73789         * lib/getlogin_r.h: Remove file.
73790         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73791         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73792         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73793         HAVE_DECL_GETLOGIN_R.
73794         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73796         (Include): Use <unistd.h> instead of getlogin_r.h.
73797
73798         * lib/getcwd.h: Remove file.
73799         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73800         * lib/xgetcwd.c: Likewise.
73801         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73802         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73803         * modules/getcwd (Files): Remove lib/getcwd.h.
73804         (Depends-on): Add unistd.
73805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73806         (Include): Use <unistd.h> instad of getcwd.h.
73807
73808         * lib/ftruncate.c: Include <unistd.h> first.
73809         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73810         Set HAVE_FTRUNCATE.
73811         * modules/ftruncate (Depends-on): Add unistd.
73812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73813
73814         * lib/fchdir.c: Include <unistd.h> first.
73815         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73817         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73818         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73819         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73820
73821         * lib/dup2.c: Include <unistd.h> first.
73822         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73823         HAVE_DUP2.
73824         * modules/dup2 (Depends-on): Add unistd.
73825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73826
73827         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73828         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73829         REPLACE_CHOWN. Don't define chown as a macro here.
73830         * modules/chown (Depends-on): Add unistd.
73831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73832
73833         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73834         Add definition for GL_LINK_WARNING.
73835         (chown, dup2): New declarations.
73836         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73837         link warning.
73838         (ftruncate): New declaration.
73839         (getcwd): New declaration, taken from old getcwd.h.
73840         (getlogin_r): New declaration, taken from old getlogin_r.h.
73841         (readlink): New declaration.
73842         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73843         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73844         (gl_PREREQ_UNISTD): Remove macro.
73845         (gl_UNISTD_MODULE_INDICATOR): New macro.
73846         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73847         many new variables. Don't set UNISTD_H.
73848         * modules/unistd (Description): Change.
73849         (Depends-on): Add link-warning.
73850         (configure.ac): Update.
73851         (Makefile.am): Create unistd.h always. Substitute many new variables
73852         into it.
73853
73854 2007-02-18  Bruno Haible  <bruno@clisp.org>
73855
73856         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73857         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73858         HAVE_GETSUBOPT.
73859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73860         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73861         * lib/getsubopt.h: Remove file.
73862         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73863         (Depends-on): Add stdlib.
73864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73865         (Includes): Use <stdlib.h> instead of getsubopt.h.
73866         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73867         Set HAVE_GETSUBOPT.
73868         * lib/getsubopt.c: Don't include getsubopt.h.
73869
73870 2007-02-18  Bruno Haible  <bruno@clisp.org>
73871
73872         * modules/fchdir (Depends-on): Add dup2.
73873
73874 2007-02-18  Bruno Haible  <bruno@clisp.org>
73875
73876         * lib/stdlib_.h: Handle glibc's special invocation convention
73877         specially.
73878
73879 2007-02-18  Bruno Haible  <bruno@clisp.org>
73880
73881         * modules/stdlib-tests: New file.
73882         * tests/test-stdlib.c: New file.
73883
73884         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73885         (Depends-on): Add stdlib.
73886         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73887         (Includes): Use <stdlib.h> instead of mkstemp.h.
73888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73889         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73890         * lib/mkstemp.c: Don't include mkstemp.h.
73891         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73892         * lib/stdlib--.h: Don't include mkstemp.h.
73893
73894         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73895         (Depends-on): Add stdlib.
73896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73897         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73898         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73899         HAVE_MKDTEMP.
73900         * lib/mkdtemp.c: Don't include mkdtemp.h.
73901         * lib/clean-temp.c: Don't include mkdtemp.h.
73902
73903         * modules/exit (Files): Remove lib/exit.h.
73904         (Depends-on): Add stdlib.
73905         (Makefile.am): Remove lib_SOURCES.
73906         (Include): Use <stdlib.h> instead of exit.h.
73907         * lib/argmatch.c: Don't include exit.h.
73908         * lib/execute.c: Likewise.
73909         * lib/pagealign_alloc.c: Likewise.
73910         * lib/pipe.c: Likewise.
73911         * lib/wait-process.c: Likewise.
73912         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73913         * lib/exitfail.c: Likewise.
73914         * lib/savewd.c: Likewise.
73915         * lib/xsetenv.c: Likewise.
73916
73917         * modules/stdlib: New file.
73918         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73919         and extra comments about mkstemp().
73920         * lib/exit.h: Remove file.
73921         * lib/mkdtemp.h: Remove file.
73922         * lib/mkstemp.h: Remove file.
73923         * m4/stdlib_h.m4: New file.
73924         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73925
73926 2007-02-18  Bruno Haible  <bruno@clisp.org>
73927
73928         * modules/math-tests: New file.
73929         * tests/test-math.c: New file.
73930
73931         * modules/math: New file.
73932         * modules/mathl (Files): Remove lib/mathl.h.
73933         (Depends-on): Add math.
73934         (Makefile.am): Don't mention mathl.h.
73935         (Include): Use <math.h> instead of mathl.h.
73936         * lib/math_.h: New file.
73937         * lib/mathl.h: Remove file.
73938         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73939         mathl.h.
73940         * lib/asinl.c: Likewise.
73941         * lib/atanl.c: Likewise.
73942         * lib/ceill.c: Likewise.
73943         * lib/cosl.c: Likewise.
73944         * lib/expl.c: Likewise.
73945         * lib/floorl.c: Likewise.
73946         * lib/frexpl.c: Likewise.
73947         * lib/ldexpl.c: Likewise.
73948         * lib/logl.c: Likewise.
73949         * lib/sincosl.c: Likewise.
73950         * lib/sinl.c: Likewise.
73951         * lib/sqrtl.c: Likewise.
73952         * lib/tanl.c: Likewise.
73953         * lib/trigl.c: Likewise.
73954         * m4/math_h.m4: New file.
73955         * MODULES.html.sh (Mathematics): Add math.
73956
73957 2007-02-17  Bruno Haible  <bruno@clisp.org>
73958
73959         * modules/wctype-tests: New file.
73960         * tests/test-wctype.c: New file.
73961
73962         * modules/wchar-tests: New file.
73963         * tests/test-wchar.c: New file.
73964
73965         * modules/unistd-tests: New file.
73966         * tests/test-unistd.c: New file.
73967
73968         * modules/time-tests: New file.
73969         * tests/test-time.c: New file.
73970
73971         * modules/sysexits-tests: New file.
73972         * tests/test-sysexits.c: New file.
73973
73974         * modules/sys_time-tests: New file.
73975         * tests/test-sys_time.c: New file.
73976
73977         * modules/sys_stat-tests: New file.
73978         * tests/test-sys_stat.c: New file.
73979
73980         * modules/sys_socket-tests: New file.
73981         * tests/test-sys_socket.c: New file.
73982
73983         * modules/sys_select-tests: New file.
73984         * tests/test-sys_select.c: New file.
73985
73986         * modules/string-tests: New file.
73987         * tests/test-string.c: New file.
73988
73989         * modules/stdbool-tests: New file.
73990         * tests/test-stdbool.c: New file.
73991
73992         * modules/netinet_in-tests: New file.
73993         * tests/test-netinet_in.c: New file.
73994
73995         * modules/inttypes-tests: New file.
73996         * tests/test-inttypes.c: New file.
73997
73998         * modules/fcntl-tests: New file.
73999         * tests/test-fcntl.c: New file.
74000
74001         * modules/byteswap-tests: New file.
74002         * tests/test-byteswap.c: New file.
74003
74004         * modules/arpa_inet-tests: New file.
74005         * tests/test-arpa_inet.c: New file.
74006
74007 2007-02-17  Bruno Haible  <bruno@clisp.org>
74008
74009         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74010         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74011         if the corresponding module is not enabled. Emit link warnings if
74012         the function is used nevertheless.
74013         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74014         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74015         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74016         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74017         * modules/inttypes (Depends-on): Add link-warning.
74018         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74019         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74020         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74021         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74022         * modules/imaxdiv (configure.ac): Likewise.
74023         * modules/strtoimax (configure.ac): Likewise.
74024         * modules/strtoumax (configure.ac): Likewise.
74025
74026 2007-02-17  Bruno Haible  <bruno@clisp.org>
74027
74028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74029         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74031         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74032
74033 2007-02-17  Bruno Haible  <bruno@clisp.org>
74034
74035         * modules/link-warning: New file.
74036         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74037         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74038         * modules/string (Depends-on): Add link-warning.
74039         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74040         string.h.
74041         * MODULES.html.sh (Support for building libraries and executables): Add
74042         link-warning.
74043
74044 2007-02-17  Bruno Haible  <bruno@clisp.org>
74045
74046         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74047         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74048         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74049         long lines.
74050
74051 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74052             Bruno Haible  <bruno@clisp.org>
74053
74054         * modules/tmpfile: New file.
74055         * lib/tmpfile.c: New file.
74056         * m4/tmpfile.m4: New file.
74057         * MODULES.html.sh (func_all_modules): New section "Input/output".
74058
74059 2007-02-15  Bruno Haible  <bruno@clisp.org>
74060
74061         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74062         (supports_delete_on_close): New function.
74063         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74064
74065 2007-02-14  Bruno Haible  <bruno@clisp.org>
74066
74067         * modules/mbspcasecmp-tests: New file.
74068         * tests/test-mbspcasecmp.sh: New file.
74069         * tests/test-mbspcasecmp.c: New file.
74070
74071         New module mbspcasecmp.
74072         * modules/mbspcasecmp: New file.
74073         * lib/mbspcasecmp.c: New file.
74074         * lib/string_.h (strncasecmp): Change warning message.
74075         (mbspcasecmp): New declaration.
74076         * m4/mbspcasecmp.m4: New file.
74077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74078         GNULIB_MBSPCASECMP.
74079         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74080         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74081
74082 2007-02-14  Bruno Haible  <bruno@clisp.org>
74083
74084         * modules/mbsncasecmp-tests: New file.
74085         * tests/test-mbsncasecmp.sh: New file.
74086         * tests/test-mbsncasecmp.c: New file.
74087
74088         New module mbsncasecmp.
74089         * modules/mbsncasecmp: New file.
74090         * lib/mbsncasecmp.c: New file.
74091         * lib/string_.h (mbsncasecmp): New declaration.
74092         * m4/mbsncasecmp.m4: New file.
74093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74094         GNULIB_MBSNCASECMP.
74095         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74096         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74097
74098 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74101         Verify that it doesn't overlap with our flags.
74102         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74103         do not have the desired effect in multibyte locales; instead, use
74104         mbscasecmp.
74105         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74106         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74107         we don't require GNU fnmatch ourselves (if our users require it, they
74108         should do so explicitly).
74109
74110         Fix regex code so it doesn't rely on strcasecmp.
74111         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74112         Otherwise, include gnulib's langinfo.h.
74113         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74114         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74115         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74116         * modules/regex (FILES): Remove m4/codeset.m4.
74117         (Depends-on): Add localcharset.  Remove strcase.
74118
74119 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74120
74121         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74122         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74123
74124 2007-02-13  Bruno Haible  <bruno@clisp.org>
74125
74126         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74128
74129 2007-02-12  Bruno Haible  <bruno@clisp.org>
74130
74131         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74132         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74133         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74134         time warning rather than a link error.
74135
74136 2007-02-12  Bruno Haible  <bruno@clisp.org>
74137
74138         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74141
74142 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74145         args, not 2.
74146
74147 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         New module 'time', so that apps can include <time.h> as per
74150         POSIX and GNU instead of separate include files like time_r.h
74151         and timegm.h.  This implementation tries out a simpler approach
74152         for replacing decls in standard include files (as compared to
74153         the string module), somewhat as an experiment.
74154
74155         * config/srclist.txt: Comment out mktime.c for now.
74156         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74157         since it doesn't apply any more.  Use generic wording instead.
74158         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74159         'time'.
74160         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74161         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74162         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74163         Don't include <sys/types.h>; no longer needed since we assume C89.
74164         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74165         * lib/strftime.c: Likewise.
74166         * lib/time_r.c: Likewise.
74167         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74168         * lib/nanosleep.c: Include <time.h> first, to check interface.
74169         * lib/strptime.c: Likewise.
74170         * lib/time_r.c: Likewise.
74171         * lib/timegm.c: Likewise.
74172         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74173         needed.
74174         * lib/timegm.c: Don't include timegm.h; no longer needed.
74175         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74176         time.h now handles any problems in that area.
74177         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74178         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74179         that time.h defines struct timespec.
74180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74181         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74182         handles that.
74183         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74184         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74185         needed.  Set REPLACE_LOCALTIME.
74186         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74187         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74188         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74189         nanosleep; time_h.m4 now does that.  Don't require
74190         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74191         module handles this now.
74192         * modules/getdate (Depends-on): Remove timespec.  Add time.
74193         * modules/nanosleep (Depends-on): Likewise.
74194         * modules/stat-time (Depends-on): Likewise.
74195         * modules/nanosleep (Include): Include time.h, not timespec.h.
74196         * modules/strptime (Files): Remove lib/strptime.h.
74197         (Depends-on): Add extensions, time.
74198         (Include): Include time.h, not strptime.h.
74199         * modules/time_r (Files): Remove lib/time_r.h.
74200         (Depends-on): Add time.
74201         (Include): Include time.h, not time_r.h.
74202         * modules/timegm: Likewise.
74203         * modules/timespec (Description): Now does timespec-related decls
74204         of our own, instead of struct timespec itself.
74205         (Depends-on): Add time; remove extensions.
74206         (Maintainer): Add self.
74207         * modules/utimecmp (Depends-on): Add time; remove timespec.
74208         * modules/utimens (Depends-on): Likewise.
74209         * modules/xnanosleep (Depends-on): Likewise.
74210
74211 2007-02-11  Bruno Haible  <bruno@clisp.org>
74212
74213         * lib/c-strstr.c: Include allocsa.h.
74214         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74215         * lib/c-strcasestr.c: Include allocsa.h.
74216         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74217         * lib/strcasestr.c: Include allocsa.h.
74218         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74219         * lib/mbsstr.c: Include allocsa.h.
74220         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74221         allocsa/freesa instead of malloc/free.
74222         * lib/mbscasestr.c: Include allocsa.h.
74223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74224         allocsa/freesa instead of malloc/free.
74225         * modules/c-strstr (Depends-on): Add allocsa.
74226         * modules/c-strcasestr (Depends-on): Likewise.
74227         * modules/strcasestr (Depends-on): Likewise.
74228         * modules/mbsstr (Depends-on): Likewise.
74229         * modules/mbscasestr (Depends-on): Likewise.
74230
74231 2007-02-11  Bruno Haible  <bruno@clisp.org>
74232
74233         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74234
74235         * modules/mbsspn-tests: New file.
74236         * tests/test-mbsspn.sh: New file.
74237         * tests/test-mbsspn.c: New file.
74238
74239 2007-02-11  Bruno Haible  <bruno@clisp.org>
74240
74241         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74242
74243         * modules/mbspbrk-tests: New file.
74244         * tests/test-mbspbrk.sh: New file.
74245         * tests/test-mbspbrk.c: New file.
74246
74247 2007-02-11  Bruno Haible  <bruno@clisp.org>
74248
74249         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74250         unneeded cast.
74251
74252         * modules/mbscspn-tests: New file.
74253         * tests/test-mbscspn.sh: New file.
74254         * tests/test-mbscspn.c: New file.
74255
74256 2007-02-11  Bruno Haible  <bruno@clisp.org>
74257
74258         * modules/mbscasecmp-tests: New file.
74259         * tests/test-mbscasecmp.sh: New file.
74260         * tests/test-mbscasecmp.c: New file.
74261
74262 2007-02-11  Bruno Haible  <bruno@clisp.org>
74263
74264         Ensure O(n) worst-case complexity of mbscasestr.
74265         * lib/mbscasestr.c: Include stdbool.h.
74266         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74267         functions.
74268         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74269         the bookkeeping indicates that it's worth it.
74270         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74271
74272         * modules/mbscasestr-tests: New file.
74273         * tests/test-mbscasestr1.c: New file.
74274         * tests/test-mbscasestr2.sh: New file.
74275         * tests/test-mbscasestr2.c: New file.
74276         * tests/test-mbscasestr3.sh: New file.
74277         * tests/test-mbscasestr3.c: New file.
74278         * tests/test-mbscasestr4.sh: New file.
74279         * tests/test-mbscasestr4.c: New file.
74280         * m4/locale-tr.m4: New file.
74281
74282 2007-02-11  Bruno Haible  <bruno@clisp.org>
74283
74284         Ensure O(n) worst-case complexity of mbsstr.
74285         * lib/mbsstr.c: Include stdbool.h.
74286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74287         functions.
74288         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74289         bookkeeping indicates that it's worth it.
74290         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74291
74292         * modules/mbsstr-tests: New file.
74293         * tests/test-mbsstr1.c: New file.
74294         * tests/test-mbsstr2.sh: New file.
74295         * tests/test-mbsstr2.c: New file.
74296         * tests/test-mbsstr3.sh: New file.
74297         * tests/test-mbsstr3.c: New file.
74298         * m4/locale-fr.m4: New file.
74299
74300 2007-02-11  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/mbsrchr.c (mbsrchr): Fix bug.
74303
74304         * modules/mbsrchr-tests: New file.
74305         * tests/test-mbsrchr.sh: New file.
74306         * tests/test-mbsrchr.c: New file.
74307
74308 2007-02-11  Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/mbschr.c (mbschr): Fix bug.
74311
74312         * modules/mbschr-tests: New file.
74313         * tests/test-mbschr.sh: New file.
74314         * tests/test-mbschr.c: New file.
74315         * m4/locale-zh.m4: New file.
74316
74317 2007-02-11  Bruno Haible  <bruno@clisp.org>
74318
74319         Support for copying multibyte string iterators.
74320         * lib/mbiter.h: Include <string.h>.
74321         (mbiter_multi_copy): New function.
74322         (mbi_copy): New macro.
74323         * lib/mbuiter.h: Include <string.h>.
74324         (mbuiter_multi_copy): New function.
74325         (mbui_copy): New macro.
74326
74327 2007-02-11  Bruno Haible  <bruno@clisp.org>
74328
74329         New module mbslen.
74330         * modules/mbslen: New file.
74331         * lib/mbslen.c: New file.
74332         * lib/string_.h (mbslen): New declaration.
74333         * m4/mbslen.m4: New file.
74334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74335         GNULIB_MBSLEN.
74336         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74337         * MODULES.html.sh (Internationalization functions): Add mbslen.
74338
74339 2007-02-11  Bruno Haible  <bruno@clisp.org>
74340
74341         Ensure O(n) worst-case complexity of strcasestr substitute.
74342         * lib/strcasestr.c: Include stdbool.h.
74343         (knuth_morris_pratt): New function.
74344         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74345         bookkeeping indicates that it's worth it.
74346         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74347
74348         * modules/strcasestr-tests: New file.
74349         * tests/test-strcasestr.c: New file.
74350
74351 2007-02-11  Bruno Haible  <bruno@clisp.org>
74352
74353         Ensure O(n) worst-case complexity of c_strcasestr.
74354         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74355         (knuth_morris_pratt): New function.
74356         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74357         the bookkeeping indicates that it's worth it.
74358         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74359
74360         * modules/c-strcasestr-tests: New file.
74361         * tests/test-c-strcasestr.c: New file.
74362
74363 2007-02-11  Bruno Haible  <bruno@clisp.org>
74364
74365         Ensure O(n) worst-case complexity of c_strstr.
74366         * lib/c-strstr.c: Include stdbool.h, string.h.
74367         (knuth_morris_pratt): New function.
74368         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74369         bookkeeping indicates that it's worth it.
74370         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74371
74372         * lib/c-strstr.c: Complete rewrite for maintainability.
74373
74374         * modules/c-strstr-tests: New file.
74375         * tests/test-c-strstr.c: New file.
74376
74377 2007-02-11  Bruno Haible  <bruno@clisp.org>
74378
74379         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74380         5.2.1 and earlier, whereby \055 was treated just like the range
74381         delimiter '-'.
74382         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74383
74384 2007-02-08  Bruno Haible  <bruno@clisp.org>
74385
74386         * modules/regex (Depends-on): Add stdbool.
74387         Reported by Dalibor Topic <robilad@kaffe.org>.
74388
74389 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74390
74391         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74392         Prefer returning from main to exiting from it.
74393         Remove unnecessary parens after sizeof.
74394
74395 2007-02-05  Bruno Haible  <bruno@clisp.org>
74396
74397         New module mbssep.
74398         * modules/mbssep: New file.
74399         * lib/mbssep.c: New file.
74400         * lib/string_.h (strsep): Add a conditional link warning.
74401         (mbssep): New declaration.
74402         * m4/mbssep.m4: New file.
74403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74404         GNULIB_MBSSEP.
74405         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74406         * MODULES.html.sh (Internationalization functions): Add mbssep.
74407
74408 2007-02-05  Bruno Haible  <bruno@clisp.org>
74409
74410         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74411         Optimize search in case of 1 delimiter.
74412
74413 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74414
74415         * lib/acl.h: Include sys/types.h before sys/acl.h.
74416
74417 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74418
74419         Merge upstream fix for glibc bugzilla #3957:
74420
74421         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74422
74423         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74424         bit for RE_HAT_LISTS_NOT_NEWLINE.
74425         (build_charclass_op): Remove bogus comment.
74426
74427 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74428
74429         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74430
74431 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74434         * lib/memmem.c [!defined _LIBC]: Include config.h.
74435
74436 2007-02-04  Bruno Haible  <bruno@clisp.org>
74437
74438         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74439         warning message.
74440
74441 2007-02-04  Bruno Haible  <bruno@clisp.org>
74442
74443         New module mbstok_r.
74444         * modules/mbstok_r: New file.
74445         * lib/mbstok_r.c: New file.
74446         * lib/string_.h (strtok_r): Change argument names to match the
74447         comments. Add a conditional link warning.
74448         (mbstok_r): New declaration.
74449         * m4/mbstok_r.m4: New file.
74450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74451         GNULIB_MBSTOK_R.
74452         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74453         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74454
74455 2007-02-04  Bruno Haible  <bruno@clisp.org>
74456
74457         New module mbsspn.
74458         * modules/mbsspn: New file.
74459         * lib/mbsspn.c: New file.
74460         * lib/string_.h (strspn): Add a conditional link warning.
74461         (mbsspn): New declaration.
74462         * m4/mbsspn.m4: New file.
74463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74464         GNULIB_MBSSPN.
74465         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74466         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74467
74468 2007-02-04  Bruno Haible  <bruno@clisp.org>
74469
74470         New module mbspbrk.
74471         * modules/mbspbrk: New file.
74472         * lib/mbspbrk.c: New file.
74473         * lib/string_.h (strpbrk): Add a conditional link warning.
74474         (mbspbrk): New declaration.
74475         * m4/mbspbrk.m4: New file.
74476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74477         GNULIB_MBSPBRK.
74478         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74479         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74480
74481 2007-02-04  Bruno Haible  <bruno@clisp.org>
74482
74483         New module mbscspn.
74484         * modules/mbscspn: New file.
74485         * lib/mbscspn.c: New file.
74486         * lib/string_.h (strcspn): Add a conditional link warning.
74487         (mbscspn): New declaration.
74488         * m4/mbscspn.m4: New file.
74489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74490         GNULIB_MBSCSPN.
74491         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74492         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74493
74494 2007-02-04  Bruno Haible  <bruno@clisp.org>
74495
74496         New module mbscasestr, reduced goal of strcasestr.
74497         * modules/mbscasestr: New file.
74498         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74499         (mbscasestr): Renamed from strcasestr.
74500         * lib/strcasestr.c: Don't include mbuiter.h.
74501         (strcasestr): Remove support for multibyte locales.
74502         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74503         Change the conditional link warning.
74504         (mbscasestr): New declaration.
74505         * m4/mbscasestr.m4: New file.
74506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74507         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74508         REPLACE_STRCASESTR.
74509         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74511         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74513         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74514         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74515         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74516         (Depends-on): Remove mbuiter.
74517         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74518
74519 2007-02-04  Bruno Haible  <bruno@clisp.org>
74520
74521         Simplify handling of strncasecmp.
74522         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74523         the conditional link warning.
74524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74525         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74526         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74527         * modules/strcase (configure.ac): Don't invoke
74528         gl_STRING_MODULE_INDICATOR.
74529         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74530
74531 2007-02-04  Bruno Haible  <bruno@clisp.org>
74532
74533         New module mbscasecmp, reduced goal of strcasecmp.
74534         * modules/mbscasecmp: New file.
74535         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74536         (mbscasecmp): Renamed from strcasecmp.
74537         * lib/strcasecmp.c: Don't include mbuiter.h.
74538         (strcasecmp): Remove support for multibyte locales.
74539         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74540         Change the conditional link warning.
74541         (mbscasecmp): New declaration.
74542         * m4/mbscasecmp.m4: New file.
74543         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74544         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74545         REPLACE_STRCASECMP.
74546         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74547         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74548         GNULIB_MBSCASECMP.
74549         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74550         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74551         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74552         (Depends-on): Remove mbuiter.
74553         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74554
74555 2007-02-04  Bruno Haible  <bruno@clisp.org>
74556
74557         New module mbsstr. Remove module strstr.
74558         * modules/mbsstr: New file.
74559         * modules/strstr: Remove file.
74560         * lib/mbsstr.c: Renamed from lib/strstr.c.
74561         (mbsstr): Renamed from strstr.
74562         * lib/string_.h (strstr): Remove declaration. Change the conditional
74563         link warning.
74564         (mbsstr): New declaration.
74565         * m4/mbsstr.m4: New file.
74566         * m4/strstr.m4: Remove file.
74567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74568         REPLACE_STRSTR.
74569         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74570         Don't initialize GNULIB_STRSTR.
74571         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74572         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74573         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74574         (Support for systems lacking ANSI C 89): Remove strstr.
74575
74576 2007-02-04  Bruno Haible  <bruno@clisp.org>
74577
74578         New module mbsrchr.
74579         * modules/mbsrchr: New file.
74580         * lib/mbsrchr.c: New file.
74581         * lib/string_.h (strrchr): Add a conditional link warning.
74582         (mbsrchr): New declaration.
74583         * m4/mbsrchr.m4: New file.
74584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74585         GNULIB_MBSRCHR.
74586         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74587         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74588
74589 2007-02-04  Bruno Haible  <bruno@clisp.org>
74590
74591         New module mbschr.
74592         * modules/mbschr: New file.
74593         * lib/mbschr.c: New file.
74594         * lib/string_.h (strchr): Add a conditional link warning.
74595         (mbschr): New declaration.
74596         * m4/mbschr.m4: New file.
74597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74598         GNULIB_MBSCHR.
74599         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74600         * MODULES.html.sh (Internationalization functions): Add mbschr.
74601
74602 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74605
74606         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74607
74608 2007-02-04  Bruno Haible  <bruno@clisp.org>
74609
74610         New module description section 'configure.ac-early'.
74611         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74612         (func_get_autoconf_early_snippet): New function.
74613         (func_import, func_create_testdir): Use it. Remove special cases for
74614         modules 'extensions' and 'lock'.
74615         * modules/extensions (configure.ac-early): Require
74616         gl_USE_SYSTEM_EXTENSIONS.
74617         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74618
74619 2007-02-04  Bruno Haible  <bruno@clisp.org>
74620
74621         Make use of gcj-4.3's -fsource and -ftarget option.
74622         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74623         and if so try the options -fsource and -ftarget.
74624         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74625         source_version, ftarget_option, target_version arguments.
74626         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74627         (is_envjavac_oldgcj_14_14_usable): Renamed from
74628         is_envjavac_gcj_14_14_usable.
74629         (is_envjavac_oldgcj_14_13_usable): Renamed from
74630         is_envjavac_gcj_14_13_usable.
74631         (is_gcj_present): Update.
74632         (is_gcj_43, is_gcj43_usable): New functions.
74633         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74634         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74635         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74636         try the options -fsource and -ftarget.
74637
74638 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74639
74640         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74641         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74642         larger value.
74643
74644 2007-02-03  Jim Meyering  <jim@meyering.net>
74645
74646         Give tools a better chance to allocate space for very large buffers.
74647         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74648
74649         Make pwd and readlink work also when run with an unreadable parent dir
74650         on systems with openat support.
74651         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74652         provided getcwd function, even when we have openat support.
74653         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74654
74655 2007-02-02  Bruno Haible  <bruno@clisp.org>
74656
74657         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74658         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74659         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74660         portability problems if one of these functions is only used on specific
74661         platforms.
74662         Reported by Paul Eggert.
74663
74664 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74667         is causing more trouble than it's curing.
74668         * lib/regex_internal.h (__mempcpy): Remove.
74669         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74670         (and make the code a tad smaller to boot).
74671         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74672
74673 2007-02-02  Jim Meyering  <jim@meyering.net>
74674
74675         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74676         section, not in the Makefile.am: one.
74677
74678 2007-02-02  Eric Blake  <ebb9@byu.net>
74679
74680         * lib/strchrnul.c: Always include config.h first.
74681
74682         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74683         gnulib strstr is not necessary here.
74684
74685 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74686
74687         * m4/socklen.m4: Fix typo.
74688
74689 2007-02-02  Eric Blake  <ebb9@byu.net>
74690
74691         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74692         * modules/netinet_in (Makefile.am): Likewise.
74693
74694 2007-02-01  Bruno Haible  <bruno@clisp.org>
74695
74696         * lib/string_.h (GL_LINK_WARNING): New macro.
74697         (strcasecmp, strstr, strcasestr): If provided by the system,
74698         conditionally define as a macro that leads to a warning instead of to
74699         an error.
74700         (strncasecmp): Conditionally define as a macro that leads to a warning.
74701
74702 2007-02-01  Karl Berry  <karl@gnu.org>
74703
74704         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74705
74706 2007-02-01  Bruno Haible  <bruno@clisp.org>
74707
74708         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74709         renamings.
74710
74711 2007-02-01  Eric Blake  <ebb9@byu.net>
74712
74713         * modules/regex (Depends-on): Revert dependence on mempcpy.
74714         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74715         module's definition of mempcpy.
74716         Reported by Paul Eggert.
74717
74718 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74721         the symbol XYZ before redefining it.  This fixes a problem with
74722         programs that don't use XYZ, when compiled on systems that define
74723         XYZ to something else.
74724
74725 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74728         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74729         writeable to group or other and (2) is intended to have a special
74730         mode bit that is set or cleared.  In such a case, the directory
74731         should be neither group- nor other-writeable until the special
74732         mode bits are right.
74733
74734 2007-01-31  Eric Blake  <ebb9@byu.net>
74735
74736         * modules/mountlist (Depends-on): Add strstr.
74737
74738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74739         bug.
74740         * modules/string (Makefile.am): Remove redundant replacement.
74741         * modules/regex (Depends-on): Add mempcpy.
74742
74743 2007-01-31  Bruno Haible  <bruno@clisp.org>
74744
74745         New module description field 'Link'.
74746         * gnulib-tool (func_usage): Document --extract-link-directive.
74747         (sed_extract_prog): Recognize 'Link' directive.
74748         (func_get_link_directive): New function.
74749         (func_import): Show summary of link directives.
74750         Handle --extract-link-directive option.
74751         * modules/acl (Link): New section.
74752         * modules/clock-time (Link): New section.
74753         * modules/euidaccess (Link): New section.
74754         * modules/gettext (Link): New section.
74755         * modules/iconv (Link): New section.
74756         * modules/lock (Link): New section.
74757         * modules/nanosleep (Link): New section.
74758         * modules/readline (Link): New section.
74759
74760 2007-01-27  Bruno Haible  <bruno@clisp.org>
74761
74762         Enforce the use of gnulib modules for unportable <string.h> functions.
74763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74764         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74765         (gl_HEADER_STRING_H_BODY): Require it.
74766         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74767         the symbol XYZ to one that gives a link error.
74768         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74769         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74770         * modules/mempcpy (configure.ac): Likewise.
74771         * modules/memrchr (configure.ac): Likewise.
74772         * modules/stpcpy (configure.ac): Likewise.
74773         * modules/stpncpy (configure.ac): Likewise.
74774         * modules/strcase (configure.ac): Likewise.
74775         * modules/strcasestr (configure.ac): Likewise.
74776         * modules/strchrnul (configure.ac): Likewise.
74777         * modules/strdup (configure.ac): Likewise.
74778         * modules/strndup (configure.ac): Likewise.
74779         * modules/strnlen (configure.ac): Likewise.
74780         * modules/strpbrk (configure.ac): Likewise.
74781         * modules/strsep (configure.ac): Likewise.
74782         * modules/strstr (configure.ac): Likewise.
74783         * modules/strtok_r (configure.ac): Likewise.
74784
74785 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74786
74787         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74788
74789 2007-01-30  Jim Meyering  <jim@meyering.net>
74790
74791         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74792
74793 2007-01-29  Bruno Haible  <bruno@clisp.org>
74794
74795         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74796         * lib/execute.c: Likewise.
74797         * lib/pipe.c: Likewise.
74798         * lib/printf-args.h: Likewise.
74799         * lib/printf-args.c: Likewise.
74800         * lib/printf-parse.c: Likewise.
74801         * lib/vasnprintf.c: Likewise.
74802
74803 2007-01-29  Eric Blake  <ebb9@byu.net>
74804
74805         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74806         declaration.
74807
74808 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * lib/strptime.h (strptime): Use 'restrict' for args where
74811         POSIX requires this.
74812         * lib/strptime.c (strptime): Likewise.
74813         Change license notice from LGPL to GPL, since gnulib-tool will
74814         change this as needed.
74815         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74816         defined.
74817         Include "strptime.h" first, to check interface.
74818         Do not #undef _LIBC and _NL_CURRENT.
74819         Do not include <stdlib.h>; no longer needed.
74820         Include "time_r.h" and declare ptime_locale_status
74821         only if _LIBC is not defined.
74822         (__P): Remove unused macro.
74823         (match_string): Bring back glibc version, but use it only if _LIBC
74824         is defined.
74825         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74826         Remove unnecessary assertion and abort() call.
74827         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74828         * m4/strptime.m4: Fix serial number comment.
74829         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74830         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74831         (Depends-on): Add time_r.
74832
74833 2007-01-29  Bruno Haible  <bruno@clisp.org>
74834
74835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74836         strptime.
74837         * modules/strptime (Depends-on): Add stdbool.
74838         * lib/strptime.h: Include <time.h> always. Add comments.
74839
74840 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74841
74842         * modules/strptime: New file.
74843         * lib/strptime.h: New file.
74844         * lib/strptime.c: New file.
74845         * m4/strptime.m4: New file.
74846
74847 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * MODULES.html.sh: New module mpsort.
74850         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74851
74852         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74853         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74855         All uses changed.
74856         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74857         All uses changed.
74858         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74859         to _Restrict_.
74860         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74861         the parameter matches the prototype.
74862
74863 2007-01-28  Jim Meyering  <jim@meyering.net>
74864
74865         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74866         sys/time.h here, reverting that part of the previous patch:
74867         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74868
74869 2007-01-28  Bruno Haible  <bruno@clisp.org>
74870
74871         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74872         value of $(SYS_TIME_H).
74873         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74874         remove it conditionally, too. [added by Jim Meyering]
74875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74877         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74878         GETTIMEOFDAY_REPLACEMENT to 1.
74879
74880 2007-01-28  Bruno Haible  <bruno@clisp.org>
74881
74882         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74883         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74885         Set UNISTD_H instead of UNISTD_H2.
74886         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74887
74888 2007-01-28  Bruno Haible  <bruno@clisp.org>
74889
74890         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74891         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74892
74893 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74894
74895         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74896         (func_create_testdir): Ensure C locale for `grep' and `tr'
74897         character ranges.
74898         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74899         ACLOCAL_AMFLAGS parsing state machine.
74900
74901 2007-01-27  Bruno Haible  <bruno@clisp.org>
74902
74903         * modules/unistr/base: Update.
74904
74905 2007-01-27  Bruno Haible  <bruno@clisp.org>
74906
74907         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74908         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74909         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74910         modules/unistr/u32-mbtouc.
74911         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74912         * lib/unistr.h: Update.
74913         * lib/linebreak.c: Update.
74914         * modules/unistr/u32-mbtouc: Renamed from
74915         modules/unistr/u32-mbtouc-safe.
74916         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74917         * lib/unistr.h: Update.
74918         * lib/unistr/u32-to-u8.c: Update.
74919         * lib/unistr/u32-to-u16.c: Update.
74920
74921 2007-01-27  Bruno Haible  <bruno@clisp.org>
74922
74923         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74924         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74925         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74926         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74927         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74928         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74929         modules/unistr/u16-mbtouc.
74930         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74931         * lib/unistr.h: Update.
74932         * lib/linebreak.c: Update.
74933         * modules/linebreak: Update.
74934         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74935         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74936         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74937         * modules/unistr/u16-mbtouc: Renamed from
74938         modules/unistr/u16-mbtouc-safe.
74939         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74940         * lib/unistr.h: Update.
74941         * lib/unistr/u16-to-u8.c: Update.
74942         * modules/unistr/u16-to-u8: Update.
74943         * lib/unistr/u16-to-u32.c: Update.
74944         * modules/unistr/u16-to-u32: Update.
74945
74946 2007-01-27  Bruno Haible  <bruno@clisp.org>
74947
74948         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74949         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74950         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74951         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74952         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74953         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74954         modules/unistr/u8-mbtouc.
74955         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74956         * lib/unistr.h: Update.
74957         * lib/striconveh.c: Update.
74958         * modules/striconveh: Update.
74959         * lib/linebreak.c: Update.
74960         * modules/linebreak: Update.
74961         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74962         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74963         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74964         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74965         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74966         * lib/unistr.h: Update.
74967         * lib/striconveh.c: Update.
74968         * modules/striconveh: Update.
74969         * lib/unistr/u8-to-u16.c: Update.
74970         * modules/unistr/u8-to-u16: Update.
74971         * lib/unistr/u8-to-u32.c: Update.
74972         * modules/unistr/u8-to-u32: Update.
74973
74974 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74975
74976         Sync from Libtool.
74977         * lib/argz.c: Do not include strings.h nor memory.h, include
74978         string.h unconditionally.  Patch by Simon Josefsson.
74979
74980 2007-01-27  Bruno Haible  <bruno@clisp.org>
74981
74982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74983         from gl_HEADER_STRING_H_BODY.
74984         (gl_HEADER_STRING_H_BODY): Require it.
74985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74986         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74987         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74988         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74990         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74993         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74994         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74995         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74996         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74997         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74998         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75000
75001 2007-01-27  Bruno Haible  <bruno@clisp.org>
75002
75003         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75004         check_PROGRAMS into noinst_PROGRAMS.
75005         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75006         check_PROGRAMS in this case.
75007         (func_import): Set for_test to false.
75008         (func_create_testdir): Set for_test to true.
75009
75010 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75011             Bruno Haible  <bruno@clisp.org>
75012
75013         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75014         (Depends-on): Add string.
75015         (Includes): Use <string.h> instead of strcasestr.h.
75016         * modules/string (Makefile.am): Also substitute the value of
75017         REPLACE_STRCASESTR.
75018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75019         assume strcasestr is declared in <string.h> not <strings.h>. Also
75020         set REPLACE_STRCASESTR.
75021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75022         REPLACE_STRCASESTR.
75023         * lib/strcasestr.h: Remove file.
75024         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75025         * lib/string_.h (strcasestr): New declaration.
75026
75027 2007-01-27  Bruno Haible  <bruno@clisp.org>
75028
75029         * lib/string_.h: Use 'extern'.
75030
75031 2007-01-27  Jim Meyering  <jim@meyering.net>
75032
75033         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75034         of set-but-not-used local, "q".
75035
75036         * lib/mempcpy.c: Include <config.h> before <string.h>.
75037         This fixes a compilation error on HP-UX, due to the system's
75038         "restrict"-using mempcpy prototype.
75039
75040 2007-01-26  Bruno Haible  <bruno@clisp.org>
75041
75042         Small optimization.
75043         * lib/javacomp.c: Include c-strstr.h.
75044          (is_envjavac_gcj): Use c_strstr instead of strstr.
75045         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75046
75047 2007-01-26  Bruno Haible  <bruno@clisp.org>
75048
75049         * MODULES.html.sh (Unicode string functions): Add the new modules.
75050
75051         * modules/uniconv/u32-strconv-to-locale: New file.
75052         * lib/uniconv/u32-strconv-to-locale.c: New file.
75053
75054         * modules/uniconv/u16-strconv-to-locale: New file.
75055         * lib/uniconv/u16-strconv-to-locale.c: New file.
75056
75057         * modules/uniconv/u8-strconv-to-locale: New file.
75058         * lib/uniconv/u8-strconv-to-locale.c: New file.
75059
75060         * modules/uniconv/u32-strconv-from-locale: New file.
75061         * lib/uniconv/u32-strconv-from-locale.c: New file.
75062
75063         * modules/uniconv/u16-strconv-from-locale: New file.
75064         * lib/uniconv/u16-strconv-from-locale.c: New file.
75065
75066         * modules/uniconv/u8-strconv-from-locale: New file.
75067         * lib/uniconv/u8-strconv-from-locale.c: New file.
75068
75069         * modules/uniconv/u32-strconv-to-enc: New file.
75070         * lib/uniconv/u32-strconv-to-enc.c: New file.
75071         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75072         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75073
75074         * modules/uniconv/u16-strconv-to-enc: New file.
75075         * lib/uniconv/u16-strconv-to-enc.c: New file.
75076         * lib/uniconv/u-strconv-to-enc.h: New file.
75077         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75078         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75079
75080         * modules/uniconv/u8-strconv-to-enc: New file.
75081         * lib/uniconv/u8-strconv-to-enc.c: New file.
75082         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75083         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75084
75085         * modules/uniconv/u32-strconv-from-enc: New file.
75086         * lib/uniconv/u32-strconv-from-enc.c: New file.
75087         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75088         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75089
75090         * modules/uniconv/u16-strconv-from-enc: New file.
75091         * lib/uniconv/u16-strconv-from-enc.c: New file.
75092         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75093         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75094
75095         * modules/uniconv/u8-strconv-from-enc: New file.
75096         * lib/uniconv/u8-strconv-from-enc.c: New file.
75097         * lib/uniconv/u-strconv-from-enc.h: New file.
75098         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75099         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75100
75101         * modules/uniconv/u32-conv-from-enc: New file.
75102         * lib/uniconv/u32-conv-from-enc.c: New file.
75103         * modules/uniconv/u32-conv-from-enc-tests: New file.
75104         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75105
75106         * modules/uniconv/u16-conv-from-enc: New file.
75107         * lib/uniconv/u16-conv-from-enc.c: New file.
75108         * lib/uniconv/u-conv-from-enc.h: New file.
75109         * modules/uniconv/u16-conv-from-enc-tests: New file.
75110         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75111
75112         * modules/uniconv/u8-conv-from-enc: New file.
75113         * lib/uniconv/u8-conv-from-enc.c: New file.
75114         * modules/uniconv/u8-conv-from-enc-tests: New file.
75115         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75116
75117         * modules/uniconv/base: New file.
75118         * lib/uniconv.h: New file.
75119
75120 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         * doc/gnulib-tool.texi (Initial import): Update to match current
75123         behavior with strdup module.
75124         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75125         * lib/memmem.h: Remove; all uses removed.  This is now done
75126         by <string.h>.
75127         * lib/mempcpy.h: Likewise.
75128         * lib/memrchr.h: Likewise.
75129         * lib/stpcpy.h: Likewise.
75130         * lib/stpncpy.h: Likewise.
75131         * lib/strcase.h: Likewise.
75132         * lib/strchrnul.h: Likewise.
75133         * lib/strdup.h: Likewise.
75134         * lib/strndup.h: Likewise.
75135         * lib/strnlen.h: Likewise.
75136         * lib/strpbrk.h: Likewise.
75137         * lib/strsep.h: Likewise.
75138         * lib/strstr.h: Likewise.
75139         * lib/strtok_r.h: Likewise.
75140         * lib/string_.h: New file.
75141         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75142         Rely on <string.h> instead.
75143         * lib/canon-host.c: Likewise.
75144         * lib/chdir-long.c: Likewise.
75145         * lib/concatpath.c: Likewise.
75146         * lib/exclude.c: Likewise.
75147         * lib/fchdir.c: Likewise.
75148         * lib/getaddrinfo.c: Likewise.
75149         * lib/getcwd.c: Likewise.
75150         * lib/getsubopt.c: Likewise.
75151         * lib/glob.c: Likewise.
75152         * lib/hard-locale.c: Likewise.
75153         * lib/iconvme.c: Likewise.
75154         * lib/javacomp.c: Likewise.
75155         * lib/mempcpy.c: Likewise.
75156         * lib/memrchr.c: Likewise.
75157         * lib/regex_internal.h: Likewise.
75158         * lib/stpncpy.c: Likewise.
75159         * lib/strcasecmp.c: Likewise.
75160         * lib/strchrnul.c: Likewise.
75161         * lib/strdup.c: Likewise.
75162         * lib/striconv.c: Likewise.
75163         * lib/striconveh.c: Likewise.
75164         * lib/striconveha.c: Likewise.
75165         * lib/strncasecmp.c: Likewise.
75166         * lib/strndup.c: Likewise.
75167         * lib/strnlen.c: Likewise.
75168         * lib/strsep.c: Likewise.
75169         * lib/strstr.c: Likewise.
75170         * lib/strtok_r.c: Likewise.
75171         * lib/userspec.c: Likewise.
75172         * lib/w32spawn.h: Likewise.
75173         * lib/xstrndup.c: Likewise.
75174         * lib/mountlist.c (strstr): Remove decl.
75175         * m4/string_h.m4: New file.
75176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75180         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75181         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75182         Set REPLACE_STRCASECMP if necessary.
75183         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75185         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75187         HAVE_DECL_STRDUP if necessary.
75188         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75189         since gl_FUNC_STRNDUP does that now.
75190         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75191         Check for decl here...
75192         (gl_PREREQ_STRNLEN): ... not here.
75193         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75194         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75195         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75196         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75197         necessary.
75198         * modules/string: New file.
75199         * modules/memmem (Files): Remove special-purpose include file.
75200         (Depends-on): Add string.
75201         (Include): Include <string.h>, not the removed file.
75202         * modules/mempcpy: Likewise.
75203         * modules/memrchr: Likewise.
75204         * modules/stpcpy: Likewise.
75205         * modules/stpncpy: Likewise.
75206         * modules/strcase: Likewise.
75207         * modules/strchrnul: Likewise.
75208         * modules/strdup: Likewise.
75209         * modules/strndup: Likewise.
75210         * modules/strnlen: Likewise.
75211         * modules/strpbrk: Likewise.
75212         * modules/strsep: Likewise.
75213         * modules/strstr: Likewise.
75214         * modules/strtok_r: Likewise.
75215         * tests/test-dirname.c: Don't include "strdup.h", since
75216         <string.h> now suffices.
75217         * tests/test-memmem.c: Don't include "memmem.h", since
75218         <string.h> now suffices.
75219
75220 2007-01-25  Bruno Haible  <bruno@clisp.org>
75221
75222         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75223         *resultp is 0.
75224
75225         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75226         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75227         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75228         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75229
75230         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75231         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75232         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75233         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75234         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75235         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75236
75237 2007-01-24  Bruno Haible  <bruno@clisp.org>
75238
75239         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75240         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75241         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75242         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75243         gl_FUNC_FTS_CORE.
75244         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75245         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75247         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75248         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75249         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75250         gl_FUNC_FCHOWNAT.
75251         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75252         gl_FUNC_STRFTIME.
75253         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75254         Reported by Ralf Wildenhues.
75255
75256 2007-01-24  Bruno Haible  <bruno@clisp.org>
75257
75258         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75259         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75260         gl_GETADDRINFO.
75261         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75262         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75263         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75264
75265 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75268         Don't use 'exit'; just return from 'main'.
75269         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75270
75271         * lib/fnmatch_.h: Readjust white space and comments to match
75272         glibc, to avoid spurious diffs.
75273
75274 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75277         2004-12-01 change by Jakub Jelinek, since this code won't compile
75278         if !LIBC.  Problem reported by Bob Proulx.
75279
75280 2007-01-23  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/striconveh.c: Include c-strcaseeq.h.
75283         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75284         * modules/striconveh (Depends-on): Add c-strcaseeq.
75285
75286 2007-01-23  Bruno Haible  <bruno@clisp.org>
75287
75288         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75289
75290         * modules/c-strcaseeq: New file.
75291         * lib/c-strcaseeq.h: New file.
75292
75293         * modules/streq: New file.
75294         * lib/streq.h: New file.
75295
75296 2007-01-23  Bruno Haible  <bruno@clisp.org>
75297
75298         * modules/striconveha-tests: New file.
75299         * tests/test-striconveha.c: New file.
75300
75301         * lib/striconveha.h: Include <stdbool.h>.
75302         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75303         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75304         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75305         (mem_iconveha): New function.
75306         (str_iconveha_notranslit): Renamed from str_iconveha.
75307         (str_iconveha): New function.
75308         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75309         c-strcase.
75310
75311 2007-01-23  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75314         encodings without forgiving before trying any encoding with handler.
75315         (str_iconveha): Try all encodings without forgiving before trying any
75316         encoding with handler.
75317
75318 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         Import the following changes from libc.
75321
75322         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75323
75324         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75325
75326         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75327
75328         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75329         normal_bracket label.
75330
75331         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75332
75333         [BZ #361]
75334         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75335         to normal_bracket after fetching the next character.
75336
75337 2007-01-22  Bruno Haible  <bruno@clisp.org>
75338
75339         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75340         argument.
75341         * lib/striconveh.c (iconv_carefully_1): New function.
75342         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75343         argument.
75344         (str_cd_iconveh): Update.
75345         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75346         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75347         * tests/test-striconveh.c (MAGIC): New macro.
75348         (new_offsets): New function.
75349         (main): Test call with and without offsets.
75350
75351 2007-01-22  Bruno Haible  <bruno@clisp.org>
75352
75353         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75354         * modules/sys_select (Makefile.am): Likewise.
75355         * modules/sys_socket (Makefile.am): Likewise.
75356         * modules/sys_time (Makefile.am): Likewise.
75357
75358 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * modules/gettimeofday (License): Change from GPL to LGPL, since
75361         gettimeofday is a library function.
75362
75363 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75364
75365         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75366
75367 2007-01-21  Bruno Haible  <bruno@clisp.org>
75368
75369         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75370
75371 2007-01-21  Bruno Haible  <bruno@clisp.org>
75372
75373         * modules/striconveha: New file.
75374         * lib/striconveha.h: New file.
75375         * lib/striconveha.c: New file.
75376         * MODULES.html.sh (Internationalization functions): Add striconveha.
75377         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75378         string.
75379         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75380
75381 2007-01-21  Bruno Haible  <bruno@clisp.org>
75382
75383         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75384         * lib/striconveh.c (str_iconveh): Likewise.
75385
75386 2007-01-21  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/striconveh.h (mem_iconveh): New declaration.
75389         * lib/striconveh.c (mem_iconveh): New function.
75390         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75391
75392 2007-01-21  Bruno Haible  <bruno@clisp.org>
75393
75394         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75395
75396         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75397         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75398         original result buffer.
75399         (str_cd_iconveh): Update.
75400         * tests/test-striconveh.c (main): Update.
75401
75402         * lib/striconv.h (mem_cd_iconv): Change specification.
75403         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75404         result buffer.
75405         (str_cd_iconv): Update.
75406         * tests/test-striconv.c (main): Update.
75407
75408 2007-01-21  Bruno Haible  <bruno@clisp.org>
75409
75410         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75411
75412 2007-01-20  Jim Meyering  <jim@meyering.net>
75413
75414         * lib/userspec.c (parse_with_separator): If a user or group string
75415         starts with "+", skip the corresponding name-to-ID look-up, since
75416         such a look-up must fail: user and group names may not include "+".
75417
75418 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75421         since we now assume the sys_time module.
75422         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75423         check for sys/time.h; no longer needed.
75424         * modules/poll (Depends-on): Depend on sys_time.
75425
75426 2007-01-18  Bruno Haible  <bruno@clisp.org>
75427
75428         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75430
75431         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75432         gettimeofday.
75433
75434         * tests/test-gettimeofday.c: Include <time.h>.
75435         (dummy): Remove variable.
75436
75437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75438         gl_HEADER_SYS_TIME_H.
75439         (gl_HEADER_SYS_TIME_H): New macro.
75440
75441         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75442         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75444         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75445         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75447         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75448         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75449         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75450         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75451         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75452
75453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75454         last change; it caused a compilation error when cross-compiling to
75455         Cygwin.
75456
75457 2007-01-18  Jim Meyering  <jim@meyering.net>
75458
75459         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75460         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75461         than the race-prone "test -d sys || mkdir sys".
75462         (configure.ac): Use AC_PROG_MKDIR_P.
75463         * modules/sys_select: Likewise.
75464         * modules/sys_socket: Likewise.
75465         * modules/sys_time: Likewise.
75466
75467 2007-01-18  Eric Blake  <ebb9@byu.net>
75468
75469         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75470         replace gettimeofday.
75471         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75472         name, to avoid infinite recursion.
75473
75474 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75477         module sys_time.
75478         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75479         assume timespec.h defines struct timeval.
75480         * lib/settime.c: Likewise.
75481         * lib/utimens.c: Likewise.
75482         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75483         since we now assume the gettimeofday module.
75484         * lib/tempname.c (__gen_tempname): Likewise.
75485         * lib/gettimeofday.h: Remove.
75486         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75487         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75488         Include <time.h>, for 'time()'.
75489         (localtime_buffer_addr): Also use this workaround if
75490         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75491         to simplify the uses.  All uses changed.
75492         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75493         that #undef is inside {}, and 'const' follows type name consistently.
75494         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75495         (gettimeofday): Do not use the maximum possible value for
75496         tv->tv_usec, since that might break usages other than ls.c.
75497         Instead, we'll leave ls.c alone.  This undoes today's patch
75498         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75499         we've never observed the problem but might as well keep the
75500         canary.
75501         * lib/nanosleep.c: Include timespec.h first, for interface check.
75502         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75503         now assume the sys_time module.
75504         * lib/tempname.c: Likewise.
75505         * lib/timespec.h: Likewise.
75506         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75507         needed.
75508         * lib/strftime.c: Likewise.
75509         * lib/timespec.h: Likewise.
75510         * lib/posixtm.c: Include posixtm.h first, for interface check.
75511         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75512         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75513         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75514         * lib/sys_time_.h: New file.
75515         * lib/timespec.h (struct timespec): Use long int, not long.
75516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75517         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75518         Remove obsolescent call to AC_HEADER_TIME.
75519         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75521         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75522         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75523         Likewise.
75524         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75525         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75527         into the sys_time module.  Check for gettimeofday just once.
75528         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75529         for gettimeofday signature to just check the signature.  Merely
75530         compile it, since linking doesn't test signature.  Improve test for
75531         whether gettimeofday.o is actually needed.
75532         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75533         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75534         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75535         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75536         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75537         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75538         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75539         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75540         than worrying about sys/time.h.
75541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75542         Don't bother worrying about TIME_WITH_SYS_TIME.
75543         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75544         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75545         * m4/sys_time_h.m4: New file.
75546         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75547         Don't include sys/time.h.  Return from main rather than exiting.
75548         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75549         all uses changed.
75550         * modules/gethrxtime (Depends-on): Add sys_time.
75551         * modules/gettime (Depends-on): Likewise.
75552         * modules/gettimeofday (Depends-on): Likewise.
75553         * modules/nanosleep (Depends-on): Likewise.
75554         * modules/settime (Depends-on): Likewise.
75555         * modules/tempname (Depends-on): Likewise.
75556         * modules/utimens (Depends-on): Likewise.
75557         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75558         (Include): Change back to <sys/time.h>.
75559         (Maintainer): Add self.
75560         * modules/sys_time: New file.
75561         * modules/tempname (Depends-on): Add gettimeofday.
75562         * tests/test-gettimeofday.c: Include <sys/time.h>
75563         rather than gettimeofday.h.
75564
75565 2007-01-17  Bruno Haible  <bruno@clisp.org>
75566
75567         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75568         the license default to GPL.
75569         (func_create_testdir): Don't complain if a module is LGPL and its
75570         tests module depends on GPLed modules.
75571
75572 2007-01-17  Bruno Haible  <bruno@clisp.org>
75573
75574         * lib/gettimeofday.c (gettimeofday): Add code for the case
75575         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75576         maximum possible value for tv->tv_usec, rather than the minimum one.
75577
75578 2005-10-08  Martin Lambers  <marlam@marlam.de>
75579 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75580 2007-01-16  Bruno Haible  <bruno@clisp.org>
75581
75582         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75583         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75584         gl_FUNC_GETTIMEOFDAY.
75585         (Include): Add gettimeofday.h.
75586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75587         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75588         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75589         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75590         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75591         * lib/gettimeofday.h: New file.
75592         * lib/gettimeofday.c: Include <sys/timeb.h>.
75593         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75594         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75595         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75596         fall back on time().
75597
75598         * tests/test-gettimeofday.c: New file.
75599         * modules/gettimeofday-tests: New file.
75600
75601 2007-01-16  Eric Blake  <ebb9@byu.net>
75602
75603         * modules/fnmatch (Depends-on): Depend on wchar.
75604         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75605         * m4/fnmatch.m4: Likewise.
75606         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75607         * m4/mbchar.m4: Likewise.
75608         * modules/mbswidth (Depends-on): Depend on wchar.
75609         * lib/mbswidth.c: Assume <wchar.h>.
75610         * m4/mbswidth.m4: Likewise.
75611         * modules/quotearg (Depends-on): Depend on wchar.
75612         * lib/quotearg.c: Assume <wchar.h>.
75613         * m4/quotearg.m4: Likewise.
75614         * modules/regex (Depends-on): Depend on wchar.
75615         * lib/regex_internal.h: Assume <wchar.h>.
75616         * m4/regex.m4: Likewise.
75617         * modules/stdint (Depends-on): Depend on wchar.
75618         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75619         * m4/stdint.m4: Likewise.
75620         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75621         * modules/strftime (Depends-on): Depend on wchar.
75622         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75623         * modules/strtol (Depends-on): Depend on wchar.
75624         * lib/strtol.c: Assume <wchar.h>.
75625         * modules/wcwidth (Depends-on): Depend on wchar.
75626         * lib/wcwidth.h: Assume <wchar.h>.
75627         * m4/wcwidth.m4: Likewise.
75628
75629 2007-01-16  Bruno Haible  <bruno@clisp.org>
75630
75631         * modules/csharpexec-script: New, created from...
75632         * modules/csharpexec: ... this.
75633
75634 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75635
75636         * modules/javaexec-script: New, created from...
75637         * modules/javaexec: ... this.
75638
75639 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75640
75641         * modules/poll (Dependencies): Add sys_select.
75642
75643 2007-01-15  Jim Meyering  <jim@meyering.net>
75644
75645         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75646         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75647         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75648         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75649
75650 2007-01-15  Bruno Haible  <bruno@clisp.org>
75651
75652         * modules/striconveh: New file.
75653         * lib/striconveh.h: New file.
75654         * lib/striconveh.c: New file.
75655         * MODULES.html.sh (Internationalization functions): Add striconveh.
75656
75657         * modules/striconveh-tests: New file.
75658         * tests/test-striconveh.c: New file.
75659
75660 2007-01-15  Bruno Haible  <bruno@clisp.org>
75661
75662         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75663         not from GNU libiconv or GNU libc.
75664
75665 2007-01-15  Bruno Haible  <bruno@clisp.org>
75666
75667         * doc/gnulib-intro.texi (Copyright): Explain the different license
75668         terms for module descriptions, autoconf macros, tests, documentation.
75669
75670 2007-01-14  Bruno Haible  <bruno@clisp.org>
75671
75672         * modules/striconv-tests: New file.
75673         * tests/test-striconv.c: New file.
75674
75675 2007-01-14  Bruno Haible  <bruno@clisp.org>
75676
75677         * modules/iconv-tests: New file.
75678         * tests/test-iconv.c: New file.
75679
75680 2007-01-14  Bruno Haible  <bruno@clisp.org>
75681
75682         * gnulib-tool (func_get_license): For test modules, use the license of
75683         the main module.
75684
75685 2007-01-14  Bruno Haible  <bruno@clisp.org>
75686
75687         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75688         if iconv is found to exist.
75689
75690 2007-01-14  Bruno Haible  <bruno@clisp.org>
75691
75692         * modules/c-ctype-tests: New file.
75693         * tests/test-c-ctype.c: New file.
75694
75695 2007-01-14  Bruno Haible  <bruno@clisp.org>
75696
75697         * modules/binary-io-tests: New file.
75698         * tests/test-binary-io.sh: New file.
75699         * tests/test-binary-io.c: New file.
75700
75701 2007-01-14  Bruno Haible  <bruno@clisp.org>
75702
75703         * modules/array-oset-tests: New file.
75704         * tests/test-array_oset.c: New file.
75705
75706 2007-01-14  Bruno Haible  <bruno@clisp.org>
75707
75708         * modules/array-list-tests: New file.
75709         * tests/test-array_list.c: New file.
75710
75711 2007-01-14  Bruno Haible  <bruno@clisp.org>
75712
75713         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75714         and make.
75715         Reported by Simon Josefsson in
75716         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75717
75718 2007-01-14  Bruno Haible  <bruno@clisp.org>
75719
75720         * modules/allocsa-tests: New file.
75721         * tests/test-allocsa.c: New file.
75722
75723 2007-01-14  Bruno Haible  <bruno@clisp.org>
75724
75725         * modules/fchdir (Depends-on): Add absolute-header.
75726         * modules/unistd (Depends-on): Likewise.
75727
75728 2006-12-30  Bruno Haible  <bruno@clisp.org>
75729
75730         * modules/fchdir: New file.
75731         * modules/unistd (Files): Add lib/unistd_.h.
75732         (Makefile.am): Generate unistd.h from unistd_.h.
75733         * lib/fchdir.c: New file.
75734         * lib/dirent_.h: New file.
75735         * lib/unistd_.h: New file.
75736         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75737         * m4/fchdir.m4: New file.
75738         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75739         (gl_HEADER_UNISTD): Invoke it.
75740         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75741         function.
75742         * lib/backupfile.c (opendir, closedir): Undefine.
75743         * lib/chown.c (open, close): Undefine.
75744         * lib/clean-temp.c (open, close): Undefine.
75745         * lib/copy-file.c (open, close): Undefine.
75746         * lib/execute.c (open, close): Undefine.
75747         * lib/fsusage.c (open, close): Undefine.
75748         * lib/gc-gnulib.c (open, close): Undefine.
75749         * lib/getcwd.c (opendir, closedir): Undefine.
75750         * lib/glob.c (opendir, closedir): Undefine.
75751         * lib/javacomp.c (open, close): Undefine.
75752         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75753         * lib/openat-proc.c (open, close): Undefine.
75754         * lib/pagealign_alloc.c (open, close): Undefine.
75755         * lib/pipe.c (open, close): Undefine.
75756         * lib/progreloc.c (open, close): Undefine.
75757         * lib/savedir.c (opendir, closedir): Undefine.
75758         * lib/utime.c (open, close): Undefine.
75759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75760
75761 2007-01-10  Bruno Haible  <bruno@clisp.org>
75762
75763         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75764
75765 2007-01-12  Eric Blake  <ebb9@byu.net>
75766
75767         Provide a robust <wchar.h>.  Further simplifications are now
75768         possible in other modules, but not included here.
75769         * modules/wchar: New module.
75770         * m4/wchar.m4: New file.
75771         * lib/wchar_.h: Likewise.
75772         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75773         of the new module.
75774         * MODULES.html.sh (Extended multibyte and wide character utilities):
75775         New section.
75776
75777 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75780         to a reasonable default for memory allocation.
75781         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75782         file system that reports garbage st_size values for symlinks.
75783         Problem reported by Liyang Hu.
75784
75785 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75786
75787         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75788         Emacs .#* auto-save files).
75789
75790 2007-01-11  Bruno Haible  <bruno@clisp.org>
75791
75792         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75793         directory.
75794
75795 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         Use @...@ consistently in lib/wctype_.h.
75798         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75799         on it being set to 1 or 0.
75800         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75801         go back to AC_SUBSTing it.
75802         * modules/wctype (Makefile.am): Undo previous change.
75803
75804 2007-01-10  Eric Blake  <ebb9@byu.net>
75805
75806         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75807         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75808         * modules/wctype (Makefile.am): Likewise.
75809         Reported by Chris McGuire.
75810
75811 2007-01-10  Jim Meyering  <jim@meyering.net>
75812
75813         fts.c: a small readability/maintainability improvement
75814         * lib/fts.c (fts_read): Make this code slightly more readable and
75815         maintainable by hoisting the "sp->fts_cur = p" assignments to
75816         immediately follow the statements that set P.  Derived from
75817         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75818
75819 2007-01-10  Eric Blake  <ebb9@byu.net>
75820
75821         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75822         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75824         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75825         Reported by Chris McGuire.
75826
75827 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75828
75829         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75830         in sed script.
75831
75832 2007-01-09  Bruno Haible  <bruno@clisp.org>
75833
75834         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75835         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75836         variables.
75837         (func_module): Use them.
75838
75839 2007-01-09  Bruno Haible  <bruno@clisp.org>
75840
75841         * modules/unistr/base: New file.
75842         * lib/unistr.h: New file.
75843
75844         * modules/unistr/u8-to-u16: New file.
75845         * lib/unistr/u8-to-u16.c: New file.
75846
75847         * modules/unistr/u8-to-u32: New file.
75848         * lib/unistr/u8-to-u32.c: New file.
75849
75850         * modules/unistr/u16-to-u8: New file.
75851         * lib/unistr/u16-to-u8.c: New file.
75852
75853         * modules/unistr/u16-to-u32: New file.
75854         * lib/unistr/u16-to-u32.c: New file.
75855
75856         * modules/unistr/u32-to-u8: New file.
75857         * lib/unistr/u32-to-u8.c: New file.
75858
75859         * modules/unistr/u32-to-u16: New file.
75860         * lib/unistr/u32-to-u16.c: New file.
75861
75862         * modules/unistr/u8-check: New file.
75863         * modules/unistr/u16-check: New file.
75864         * modules/unistr/u32-check: New file.
75865         * lib/unistr/u8-check.c: New file.
75866         * lib/unistr/u16-check.c: New file.
75867         * lib/unistr/u32-check.c: New file.
75868
75869         * modules/unistr/u8-chr: New file.
75870         * modules/unistr/u16-chr: New file.
75871         * modules/unistr/u32-chr: New file.
75872         * lib/unistr/u8-chr.c: New file.
75873         * lib/unistr/u16-chr.c: New file.
75874         * lib/unistr/u32-chr.c: New file.
75875
75876         * modules/unistr/u8-cmp: New file.
75877         * modules/unistr/u16-cmp: New file.
75878         * modules/unistr/u32-cmp: New file.
75879         * lib/unistr/u8-cmp.c: New file.
75880         * lib/unistr/u16-cmp.c: New file.
75881         * lib/unistr/u32-cmp.c: New file.
75882
75883         * modules/unistr/u8-cpy: New file.
75884         * modules/unistr/u16-cpy: New file.
75885         * modules/unistr/u32-cpy: New file.
75886         * lib/unistr/u8-cpy.c: New file.
75887         * lib/unistr/u16-cpy.c: New file.
75888         * lib/unistr/u32-cpy.c: New file.
75889         * lib/unistr/u-cpy.h: New file.
75890
75891         * modules/unistr/u8-cpy-alloc: New file.
75892         * modules/unistr/u16-cpy-alloc: New file.
75893         * modules/unistr/u32-cpy-alloc: New file.
75894         * lib/unistr/u8-cpy-alloc.c: New file.
75895         * lib/unistr/u16-cpy-alloc.c: New file.
75896         * lib/unistr/u32-cpy-alloc.c: New file.
75897         * lib/unistr/u-cpy-alloc.h: New file.
75898
75899         * modules/unistr/u8-endswith: New file.
75900         * modules/unistr/u16-endswith: New file.
75901         * modules/unistr/u32-endswith: New file.
75902         * lib/unistr/u8-endswith.c: New file.
75903         * lib/unistr/u16-endswith.c: New file.
75904         * lib/unistr/u32-endswith.c: New file.
75905         * lib/unistr/u-endswith.h: New file.
75906
75907         * modules/unistr/u8-mblen: New file.
75908         * modules/unistr/u16-mblen: New file.
75909         * modules/unistr/u32-mblen: New file.
75910         * lib/unistr/u8-mblen.c: New file.
75911         * lib/unistr/u16-mblen.c: New file.
75912         * lib/unistr/u32-mblen.c: New file.
75913
75914         * modules/unistr/u8-mbtouc: New file.
75915         * modules/unistr/u16-mbtouc: New file.
75916         * modules/unistr/u32-mbtouc: New file.
75917         * lib/unistr/u8-mbtouc.c: New file.
75918         * lib/unistr/u16-mbtouc.c: New file.
75919         * lib/unistr/u32-mbtouc.c: New file.
75920
75921         * modules/unistr/u8-mbtouc-safe: New file.
75922         * modules/unistr/u16-mbtouc-safe: New file.
75923         * modules/unistr/u32-mbtouc-safe: New file.
75924         * lib/unistr/u8-mbtouc-safe.c: New file.
75925         * lib/unistr/u16-mbtouc-safe.c: New file.
75926         * lib/unistr/u32-mbtouc-safe.c: New file.
75927
75928         * modules/unistr/u8-move: New file.
75929         * modules/unistr/u16-move: New file.
75930         * modules/unistr/u32-move: New file.
75931         * lib/unistr/u8-move.c: New file.
75932         * lib/unistr/u16-move.c: New file.
75933         * lib/unistr/u32-move.c: New file.
75934         * lib/unistr/u-move.h: New file.
75935
75936         * modules/unistr/u8-next: New file.
75937         * modules/unistr/u16-next: New file.
75938         * modules/unistr/u32-next: New file.
75939         * lib/unistr/u8-next.c: New file.
75940         * lib/unistr/u16-next.c: New file.
75941         * lib/unistr/u32-next.c: New file.
75942
75943         * modules/unistr/u8-prev: New file.
75944         * modules/unistr/u16-prev: New file.
75945         * modules/unistr/u32-prev: New file.
75946         * lib/unistr/u8-prev.c: New file.
75947         * lib/unistr/u16-prev.c: New file.
75948         * lib/unistr/u32-prev.c: New file.
75949
75950         * modules/unistr/u8-set: New file.
75951         * modules/unistr/u16-set: New file.
75952         * modules/unistr/u32-set: New file.
75953         * lib/unistr/u8-set.c: New file.
75954         * lib/unistr/u16-set.c: New file.
75955         * lib/unistr/u32-set.c: New file.
75956         * lib/unistr/u-set.h: New file.
75957
75958         * modules/unistr/u8-startswith: New file.
75959         * modules/unistr/u16-startswith: New file.
75960         * modules/unistr/u32-startswith: New file.
75961         * lib/unistr/u8-startswith.c: New file.
75962         * lib/unistr/u16-startswith.c: New file.
75963         * lib/unistr/u32-startswith.c: New file.
75964         * lib/unistr/u-startswith.h: New file.
75965
75966         * modules/unistr/u8-stpcpy: New file.
75967         * modules/unistr/u16-stpcpy: New file.
75968         * modules/unistr/u32-stpcpy: New file.
75969         * lib/unistr/u8-stpcpy.c: New file.
75970         * lib/unistr/u16-stpcpy.c: New file.
75971         * lib/unistr/u32-stpcpy.c: New file.
75972         * lib/unistr/u-stpcpy.h: New file.
75973
75974         * modules/unistr/u8-stpncpy: New file.
75975         * modules/unistr/u16-stpncpy: New file.
75976         * modules/unistr/u32-stpncpy: New file.
75977         * lib/unistr/u8-stpncpy.c: New file.
75978         * lib/unistr/u16-stpncpy.c: New file.
75979         * lib/unistr/u32-stpncpy.c: New file.
75980         * lib/unistr/u-stpncpy.h: New file.
75981
75982         * modules/unistr/u8-strcat: New file.
75983         * modules/unistr/u16-strcat: New file.
75984         * modules/unistr/u32-strcat: New file.
75985         * lib/unistr/u8-strcat.c: New file.
75986         * lib/unistr/u16-strcat.c: New file.
75987         * lib/unistr/u32-strcat.c: New file.
75988         * lib/unistr/u-strcat.h: New file.
75989
75990         * modules/unistr/u8-strchr: New file.
75991         * modules/unistr/u16-strchr: New file.
75992         * modules/unistr/u32-strchr: New file.
75993         * lib/unistr/u8-strchr.c: New file.
75994         * lib/unistr/u16-strchr.c: New file.
75995         * lib/unistr/u32-strchr.c: New file.
75996
75997         * modules/unistr/u8-strcmp: New file.
75998         * modules/unistr/u16-strcmp: New file.
75999         * modules/unistr/u32-strcmp: New file.
76000         * lib/unistr/u8-strcmp.c: New file.
76001         * lib/unistr/u16-strcmp.c: New file.
76002         * lib/unistr/u32-strcmp.c: New file.
76003
76004         * modules/unistr/u8-strcpy: New file.
76005         * modules/unistr/u16-strcpy: New file.
76006         * modules/unistr/u32-strcpy: New file.
76007         * lib/unistr/u8-strcpy.c: New file.
76008         * lib/unistr/u16-strcpy.c: New file.
76009         * lib/unistr/u32-strcpy.c: New file.
76010         * lib/unistr/u-strcpy.h: New file.
76011
76012         * modules/unistr/u8-strcspn: New file.
76013         * modules/unistr/u16-strcspn: New file.
76014         * modules/unistr/u32-strcspn: New file.
76015         * lib/unistr/u8-strcspn.c: New file.
76016         * lib/unistr/u16-strcspn.c: New file.
76017         * lib/unistr/u32-strcspn.c: New file.
76018         * lib/unistr/u-strcspn.h: New file.
76019
76020         * modules/unistr/u8-strdup: New file.
76021         * modules/unistr/u16-strdup: New file.
76022         * modules/unistr/u32-strdup: New file.
76023         * lib/unistr/u8-strdup.c: New file.
76024         * lib/unistr/u16-strdup.c: New file.
76025         * lib/unistr/u32-strdup.c: New file.
76026         * lib/unistr/u-strdup.h: New file.
76027
76028         * modules/unistr/u8-strlen: New file.
76029         * modules/unistr/u16-strlen: New file.
76030         * modules/unistr/u32-strlen: New file.
76031         * lib/unistr/u8-strlen.c: New file.
76032         * lib/unistr/u16-strlen.c: New file.
76033         * lib/unistr/u32-strlen.c: New file.
76034         * lib/unistr/u-strlen.h: New file.
76035
76036         * modules/unistr/u8-strmblen: New file.
76037         * modules/unistr/u16-strmblen: New file.
76038         * modules/unistr/u32-strmblen: New file.
76039         * lib/unistr/u8-strmblen.c: New file.
76040         * lib/unistr/u16-strmblen.c: New file.
76041         * lib/unistr/u32-strmblen.c: New file.
76042
76043         * modules/unistr/u8-strmbtouc: New file.
76044         * modules/unistr/u16-strmbtouc: New file.
76045         * modules/unistr/u32-strmbtouc: New file.
76046         * lib/unistr/u8-strmbtouc.c: New file.
76047         * lib/unistr/u16-strmbtouc.c: New file.
76048         * lib/unistr/u32-strmbtouc.c: New file.
76049
76050         * modules/unistr/u8-strncat: New file.
76051         * modules/unistr/u16-strncat: New file.
76052         * modules/unistr/u32-strncat: New file.
76053         * lib/unistr/u8-strncat.c: New file.
76054         * lib/unistr/u16-strncat.c: New file.
76055         * lib/unistr/u32-strncat.c: New file.
76056         * lib/unistr/u-strncat.h: New file.
76057
76058         * modules/unistr/u8-strncmp: New file.
76059         * modules/unistr/u16-strncmp: New file.
76060         * modules/unistr/u32-strncmp: New file.
76061         * lib/unistr/u8-strncmp.c: New file.
76062         * lib/unistr/u16-strncmp.c: New file.
76063         * lib/unistr/u32-strncmp.c: New file.
76064
76065         * modules/unistr/u8-strncpy: New file.
76066         * modules/unistr/u16-strncpy: New file.
76067         * modules/unistr/u32-strncpy: New file.
76068         * lib/unistr/u8-strncpy.c: New file.
76069         * lib/unistr/u16-strncpy.c: New file.
76070         * lib/unistr/u32-strncpy.c: New file.
76071         * lib/unistr/u-strncpy.h: New file.
76072
76073         * modules/unistr/u8-strnlen: New file.
76074         * modules/unistr/u16-strnlen: New file.
76075         * modules/unistr/u32-strnlen: New file.
76076         * lib/unistr/u8-strnlen.c: New file.
76077         * lib/unistr/u16-strnlen.c: New file.
76078         * lib/unistr/u32-strnlen.c: New file.
76079         * lib/unistr/u-strnlen.h: New file.
76080
76081         * modules/unistr/u8-strpbrk: New file.
76082         * modules/unistr/u16-strpbrk: New file.
76083         * modules/unistr/u32-strpbrk: New file.
76084         * lib/unistr/u8-strpbrk.c: New file.
76085         * lib/unistr/u16-strpbrk.c: New file.
76086         * lib/unistr/u32-strpbrk.c: New file.
76087         * lib/unistr/u-strpbrk.h: New file.
76088
76089         * modules/unistr/u8-strrchr: New file.
76090         * modules/unistr/u16-strrchr: New file.
76091         * modules/unistr/u32-strrchr: New file.
76092         * lib/unistr/u8-strrchr.c: New file.
76093         * lib/unistr/u16-strrchr.c: New file.
76094         * lib/unistr/u32-strrchr.c: New file.
76095
76096         * modules/unistr/u8-strspn: New file.
76097         * modules/unistr/u16-strspn: New file.
76098         * modules/unistr/u32-strspn: New file.
76099         * lib/unistr/u8-strspn.c: New file.
76100         * lib/unistr/u16-strspn.c: New file.
76101         * lib/unistr/u32-strspn.c: New file.
76102         * lib/unistr/u-strspn.h: New file.
76103
76104         * modules/unistr/u8-strstr: New file.
76105         * modules/unistr/u16-strstr: New file.
76106         * modules/unistr/u32-strstr: New file.
76107         * lib/unistr/u8-strstr.c: New file.
76108         * lib/unistr/u16-strstr.c: New file.
76109         * lib/unistr/u32-strstr.c: New file.
76110         * lib/unistr/u-strstr.h: New file.
76111
76112         * modules/unistr/u8-strtok: New file.
76113         * modules/unistr/u16-strtok: New file.
76114         * modules/unistr/u32-strtok: New file.
76115         * lib/unistr/u8-strtok.c: New file.
76116         * lib/unistr/u16-strtok.c: New file.
76117         * lib/unistr/u32-strtok.c: New file.
76118         * lib/unistr/u-strtok.h: New file.
76119
76120         * modules/unistr/u8-uctomb: New file.
76121         * modules/unistr/u16-uctomb: New file.
76122         * modules/unistr/u32-uctomb: New file.
76123         * lib/unistr/u8-uctomb.c: New file.
76124         * lib/unistr/u16-uctomb.c: New file.
76125         * lib/unistr/u32-uctomb.c: New file.
76126
76127         * MODULES.html.sh (Unicode string functions): Add the new modules.
76128
76129 2007-01-08  Bruno Haible  <bruno@clisp.org>
76130
76131         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76132         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76133         subdirectories.
76134
76135 2007-01-08  Karl Berry  <karl@gnu.org>
76136
76137         * doc/error.texi: mention that main() fns must set program_name
76138         when progname is used.
76139
76140 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76143         WCTYPE_H is empty, for the benefit of builds from non-distclean
76144         directories.  Problem reported by Eric Blake in
76145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76146
76147 2007-01-08  Bruno Haible  <bruno@clisp.org>
76148
76149         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76150         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76151         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76152         PROVIDE_CANONICALIZE_FILENAME_MODE.
76153         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76154
76155 2007-01-08  Bruno Haible  <bruno@clisp.org>
76156
76157         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76158         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76159         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76160         * lib/fts.c: Likewise.
76161         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76162
76163 2006-12-25  Bruno Haible  <bruno@clisp.org>
76164
76165         * modules/utf8-ucs4-safe: New file.
76166         * lib/utf8-ucs4-safe.h: New file.
76167         * lib/unistr/utf8-ucs4-safe.c: New file.
76168
76169         * modules/utf16-ucs4-safe: New file.
76170         * lib/utf16-ucs4-safe.h: New file.
76171         * lib/unistr/utf16-ucs4-safe.c: New file.
76172
76173         * MODULES.html.sh (Unicode string functions): Add the new modules.
76174
76175 2007-01-08  Bruno Haible  <bruno@clisp.org>
76176
76177         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76178         (Depends-on): Add unitypes.
76179         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76180         (u8_mbtouc_aux): Move out to separate file.
76181         (u8_mbtouc): Use ucs4_t, uint8_t types.
76182         * lib/unistr/utf8-ucs4.c: New file.
76183
76184         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76185         (Depends-on): Add unitypes.
76186         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76187         (u16_mbtouc_aux): Move out to separate file.
76188         (u16_mbtouc): Use ucs4_t, uint16_t types.
76189         * lib/unistr/utf16-ucs4.c: New file.
76190
76191         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76192         (Depends-on): Add unitypes.
76193         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76194         (u8_uctomb_aux): Move out to separate file.
76195         (u8_uctomb): Use ucs4_t, uint8_t types.
76196         * lib/unistr/ucs4-utf8.c: New file.
76197
76198         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76199         (Depends-on): Add unitypes.
76200         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76201         (u16_uctomb_aux): Move out to separate file.
76202         (u16_uctomb): Use ucs4_t, uint16_t types.
76203         * lib/unistr/ucs4-utf16.c: New file.
76204
76205 2006-12-25  Bruno Haible  <bruno@clisp.org>
76206
76207         * modules/unitypes: New file.
76208         * lib/unitypes.h: New file.
76209         * MODULES.html.sh (func_all_modules): New section "Unicode string
76210         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76211         this section. Add unitypes.
76212
76213 2007-01-08  Bruno Haible  <bruno@clisp.org>
76214
76215         Avoid variable names that conflict with those from libtool.
76216         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76217         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76218         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76219         library_names_spec to acl_library_names_spec, hardcode_* to
76220         acl_hardcode_*.
76221         Reported by Ralf Wildenhues.
76222
76223 2007-01-08  Bruno Haible  <bruno@clisp.org>
76224
76225         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76226         definition.
76227         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76228         definition.
76229         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76230         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76231         definition.
76232         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76233         definition.
76234         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76235         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76236         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76237         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76238         definition.
76239         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76240         definition.
76241         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76242         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76243         GC_USE_<algorithm>.
76244         * lib/gc-libgcrypt.c: Likewise.
76245         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76246         * modules/gc-arctwo (configure.ac): Likewise.
76247         * modules/gc-des (configure.ac): Likewise.
76248         * modules/gc-hmac-md5 (configure.ac): Likewise.
76249         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76250         * modules/gc-md2 (configure.ac): Likewise.
76251         * modules/gc-md4 (configure.ac): Likewise.
76252         * modules/gc-md5 (configure.ac): Likewise.
76253         * modules/gc-random (configure.ac): Likewise.
76254         * modules/gc-rijndael (configure.ac): Likewise.
76255         * modules/gc-sha1 (configure.ac): Likewise.
76256
76257 2007-01-08  Bruno Haible  <bruno@clisp.org>
76258
76259         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76260         macro definition.
76261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76262         definition.
76263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76264         definition.
76265         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76266         * modules/fcntl-safer (configure.ac): Likewise.
76267         * modules/fopen-safer (configure.ac): Likewise.
76268         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76269         GNULIB_FWRITEERROR macro definition.
76270
76271 2007-01-08  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/gnulib-common.m4: New file.
76274         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76275         (func_get_filelist): Add m4/gnulib-common.m4.
76276
76277 2007-01-08  Bruno Haible  <bruno@clisp.org>
76278
76279         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76280         command.
76281
76282 2007-01-08  Jim Meyering  <jim@meyering.net>
76283
76284         Use a more robust test for a "can't happen" condition.
76285         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76286         narrowed the st_size value.  Presuming the "can't happen" condition
76287         is true, that narrowing could conceivably convert an invalid st_size
76288         value into a valid one.  Instead, use a change based on Matthew
76289         Woehlke's original patch.
76290
76291         Slight readability improvement: use an assert-like macro
76292         in place of literal "abort ()" uses.
76293         * lib/fts.c (fts_assert): Define.
76294         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76295         Use this macro instead of a bare 'abort'.
76296
76297 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76300         simply work around them.
76301         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76302         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76303         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76304         declaring.
76305         Don't bother to define as macros, since the standard doesn't require it.
76306         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76307         longer worry about IRIX 5.3.
76308         (HAVE_WCTYPE_CTMP_BUG): Remove.
76309
76310 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76313         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76314         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76315         Problems reported by Georg Schwarz for IRIX 5.3.
76316
76317         * gnulib-tool (autoconf_minversion): Take the maximum version number
76318         found, not the minimum.  Problem reported by James Youngman.
76319
76320 2007-01-03  Karl Berry  <karl@gnu.org>
76321
76322         * doc/error.texi: new file, explaining interaction with progname.
76323         * doc/gnulib.texi: include it.  Update copyright.
76324
76325 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76326
76327         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76328         AC_CANONICAL_HOST, to improve autobuild outputs.
76329
76330 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76331             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76332
76333         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76334         sockets, server sockets, and other file descriptors.  Count errors
76335         to compute the return value.  Reorder the code a bit to be easier
76336         to follow.  Don't set event bits that were not requested (except
76337         POLLERR and POLLHUP).
76338
76339 2007-01-01  Bruno Haible  <bruno@clisp.org>
76340
76341         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76342
76343 2007-01-03  Jim Meyering  <jim@meyering.net>
76344
76345         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76346
76347 2007-01-02  Bruno Haible  <bruno@clisp.org>
76348
76349         * modules/settime (Include): Require timespec.h.
76350         * modules/nanosleep (Include): Likewise.
76351
76352 2007-01-01  Bruno Haible  <bruno@clisp.org>
76353
76354         * gnulib-tool (func_emit_copyright_notice): Bump year.
76355         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76356
76357 2007-01-01  Bruno Haible  <bruno@clisp.org>
76358
76359         Improve support for OpenBSD.
76360         * build-aux/config.rpath (libname_spec): Export.
76361         (library_names_spec): New variable. Export.
76362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76363         library_names_spec from the config.rpath output. Locate shared library
76364         through the name pattern in library_names_spec.
76365
76366 2007-01-01  Eric Blake  <ebb9@byu.net>
76367
76368         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76369
76370 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76371
76372         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76373         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76374         assume the C locale, and avoid an "eval" that could cause trouble.
76375         Problem with SORT reported by Bob Proulx.
76376
76377         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76378         Define.  Trivial patch from Henning Nielsen Lund, originally
76379         sent to bug-grep@gnu.org today.
76380
76381 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76384         struct stat.  Problem reported by Henning Nielsen Lund.
76385         * lib/acl.c: Include acl.h first, to check interface.  Don't
76386         bother to include sys/types.h and sys/stat.h again.
76387
76388 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         Import the following change from libc; problem reported by
76391         Sven Verdoolaege.
76392
76393         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76394
76395         [BZ #1373]
76396         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76397
76398 2006-12-28  Jim Meyering  <jim@meyering.net>
76399
76400         * build-aux/announce-gen: Do not assume that the package
76401         builds any of tar.gz, tar.bz2, and .xdelta files.
76402         Suggestion from Simon Josefsson.
76403
76404 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76405
76406         * modules/announce-gen: New file.
76407
76408 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76411         handles its gotchas now.
76412         * lib/mbswidth.c: Likewise.
76413         * lib/wcwidth.h: Likewise.
76414         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76415         and iswcntrl; the wctype module does this stuff now.
76416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76418         * modules/mbchar (Depends-on): Add wctype.
76419         * modules/mbswidth (Depends-on): Likewise.
76420         * modules/wcwidth (Depends-on): Likewise.
76421
76422 2006-12-27  Eric Blake  <ebb9@byu.net>
76423
76424         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76425         module uses more than what <wctype.h> is required to provide.
76426
76427 2006-12-26  Eric Blake  <ebb9@byu.net>
76428
76429         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76430
76431 2006-12-26  Eric Blake  <ebb9@byu.net>
76432
76433         * modules/absolute-header: New module.
76434         * modules/fcntl (Depends-on): Depend on it.
76435         * modules/inttypes (Depends-on): Likewise.
76436         * modules/stdint (Depends-on): Likewise.
76437         * modules/sys_stat (Depends-on): Likewise.
76438         * modules/wctype (Depends-on): Likewise.
76439         * MODULES.html.sh (Support for building libraries and
76440         executables): Document it.
76441
76442 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * gnulib-tool (SED): Remove, undoing previous change.
76445         The problem was that it broke coreutils on Solaris, because
76446         "sed --posix" leaked into a makefile.
76447         (sed): New alias, if 'alias' and GNU sed.
76448
76449 2006-12-24  Jim Meyering  <jim@meyering.net>
76450
76451         Work around an fchownat bug in glibc-2.4:
76452         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76453         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76454         in spite of the -P option.
76455         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76456         New macros.
76457         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76458         * modules/openat (Files): Add lib/fchownat.c.
76459         * lib/openat.c (fchownat): Don't define here.  Move to...
76460         * lib/fchownat.c: ...this new file.
76461
76462 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         Fix bug reported by Bruno Haible in
76465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76466         where quotearg.c didn't compile on Mac OS X 10.2 because it
76467         lacks <wchar.h> and wint_t.
76468         * lib/wctype_.h (__wctype_wint_t): New type.
76469         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76470         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76471         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76472         Arg is now of type __wctype_wint_t, not wint_t.
76473         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76474         substitute HAVE_WINT_T.
76475         * modules/wctype (Files): Add m4/wint_t.m4.
76476         (wctype.h): Substitute HAVE_WINT_T.
76477
76478 2006-12-23  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76481
76482 2006-12-23  Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76485         S_ISLNK.
76486         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76487         mingw.
76488
76489 2006-12-22  Bruno Haible  <bruno@clisp.org>
76490
76491         * lib/copy-file.c: Include acl.h.
76492         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76493         Close the file descriptors only after being done with copy_acl.
76494         * modules/copy-file (Depends-on): Add acl.
76495
76496 2006-12-22  Bruno Haible  <bruno@clisp.org>
76497
76498         * gnulib-tool (SED): New variable.
76499         Use $SED instead of sed everywhere.
76500
76501 2006-12-22  Bruno Haible  <bruno@clisp.org>
76502
76503         * modules/no-c++: New file.
76504         * m4/no-c++.m4: New file.
76505         * MODULES.html.sh (Support for building libraries and executables):
76506         Add no-c++.
76507
76508 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76511         Include <limits.h>, and use its INT_MAX to rewrite the
76512         j loop so that it does not overflow 'int'.  Problem reported by
76513         Ralf Wildenhues in
76514         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76515         Play it safe by shifting left by 1 rather than multiplying by 2,
76516         as GCC is less likely to optimize this away when the value
76517         is signed (when it assumes overflow leads to undefined behavior).
76518         Also, don't assume time_t uses two's complement.
76519
76520 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * MODULES.html.sh: New module wctype.
76523         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76524         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76525         <wctype.h>, since the new wctype module should fix this.
76526         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76527         the wctype module should arrange for it.
76528         * lib/regex_internal.h: Likewise.
76529         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76530         since the wctype module should handle this now.
76531         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76532         * modules/fnmatch (Depends-on): Add wctype.
76533         * modules/quotearg (Depends-on): Likewise.
76534         * modules/regex (Depends-on): Likewise.
76535
76536 2006-12-19  Bruno Haible  <bruno@clisp.org>
76537
76538         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76539         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76540
76541 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76542
76543         * modules/savewd (Depends-on): Fix dependency on fcntl.
76544
76545 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76548         conforms to C99, rather than relying on the user's environment
76549         setting of STDINT_H.
76550
76551 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76552         and Eric Blake  <ebb9@byu.net>
76553
76554         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76555         This is more consistent with the other defines here.
76556         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76557         Port to z/OS.  Problem reported by Paul Gilmartin.
76558         Change local vars to use gl_ prefix rather than ac_.
76559         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76560         with other defines.
76561         * modules/double-slash-root: New module.
76562         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76563         (Depends-on): Add double-slash-root.
76564         * MODULES.html.sh (File system functions): Mention new module.
76565
76566 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76567
76568         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76569         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76570         This is for the benefit of gzip, which doesn't do i18n.
76571
76572 2006-12-12  Jim Meyering  <jim@meyering.net>
76573
76574         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76575         Reported by Andreas Schwab <schwab@suse.de>.
76576
76577 2006-12-12  Bruno Haible  <bruno@clisp.org>
76578
76579         Merge these changes.
76580         2006-09-05  Bruno Haible  <bruno@clisp.org>
76581         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76582         iconv_alloc succeeded.
76583         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76584         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76585         test for " && dest " at the end - dest is always != NULL there. Call
76586         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76587         with 2xNULL arguments, also to flush the state storage. Handle the
76588         IRIX iconv behaviour. Realloc the final result, to throw away unused
76589         memory.
76590
76591 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76594         and fchmodat unconditionally, since glibc 2.4 has them.
76595         Problem reported by Arkadiusz Miskiewicz.
76596
76597 2006-12-10  Bruno Haible  <bruno@clisp.org>
76598
76599         * gnulib-tool (func_import): Show the include files only for those
76600         modules that are copied and specified.
76601         Reported by Karl Berry.
76602
76603 2006-12-08  Jim Meyering  <jim@meyering.net>
76604
76605         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76606         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76607
76608         * build-aux/announce-gen: Add two new options, both optional:
76609         --bootstrap-tools=TOOL_LIST
76610               a comma-separated list of tools, e.g.,
76611               autoconf,automake,bison,gnulib
76612         --gnulib-snapshot-date=DATE
76613               if gnulib is in the bootstrap tool list,
76614               then report this as the snapshot date.
76615               If not specified, use the current date/time.
76616               If you specify a date here, be sure it's UTC.
76617
76618 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76619
76620         * tests/test-argp-2.sh: Fix test to match actual output.
76621         (func_compare): Fix sed script to be portable.
76622
76623 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76626         workaround for this case.  It is not autoconfigured now; offhand
76627         it's hard to see how to autoconfigure it.
76628
76629 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76632         a directory that is about to be chowned.  Such a directory's
76633         initial file permissions should permit the owner only and this
76634         should not be changed until after the chown, since the group and
76635         other bits would be incorrect if they granted permission before
76636         the chown.
76637
76638         Fix porting problem for iswctype reported by Georg Schwarz in:
76639         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76640         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76641         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76642         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76643         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76644
76645 2006-12-03  Jim Meyering  <jim@meyering.net>
76646
76647         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76648         p->fts_statp may not yet be defined.
76649         (fts_read): Instead, set it in the caller, once p->fts_statp is
76650         sure to be defined, and corresponds to a top-level directory.
76651         This bug made du -x fail.  Here's the coreutils test case:
76652         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76653         Reported by Mike Frysinger.
76654
76655 2006-12-01  Jim Meyering  <jim@meyering.net>
76656
76657         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76658         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76659         Reported by Simon Josefsson.
76660
76661 2006-11-30  Jim Meyering  <jim@meyering.net>
76662
76663         * m4/warning.m4: Use the all-permissive copyright notice
76664         recommended by RMS (rather than LGPL).
76665         * m4/vararrays.m4: Likewise.
76666         * m4/flexmember.m4: Likewise.
76667
76668 2006-11-29  Bruno Haible  <bruno@clisp.org>
76669
76670         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76671         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76672         using +=.
76673         Reported by Simon Josefsson <simon@josefsson.org>.
76674
76675 2006-11-28  James Youngman <jay@gnu.org>
76676
76677         * README: Advise users that they might find the bug-gnulib@gnu.org
76678         and autotools-announce@gnu.org mailing lists useful.
76679
76680 2006-11-28  Bruno Haible  <bruno@clisp.org>
76681
76682         * m4/ptrdiff_max.m4: Remove file.
76683
76684 2006-11-21  Bruno Haible  <bruno@clisp.org>
76685
76686         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76687         _AC_COMPUTE_INT.
76688         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76689         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76690         _AC_COMPUTE_INT.
76691         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76692         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76693         _AC_COMPUTE_INT.
76694         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76695
76696 2006-11-28  Jim Meyering  <jim@meyering.net>
76697
76698         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76699         warning from "gcc -Wshadow" about shadowing the builtin.
76700
76701 2006-11-27  Bruno Haible  <bruno@clisp.org>
76702
76703         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76704         _AC_COMPUTE_INT.
76705         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76706
76707 2006-11-27  Bruno Haible  <bruno@clisp.org>
76708             Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76711
76712 2006-11-26  Bruno Haible  <bruno@clisp.org>
76713
76714         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76715         noinst_LTLIBRARIES.
76716
76717 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76718             Bruno Haible  <bruno@clisp.org>
76719
76720         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76721         if compiling with "gcc -ansi".
76722
76723 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         Fix some incompatibilities with gcc -ansi -pedantic.
76726         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76727         if compiling pedantically with GCC, unless it's C99 or later.
76728         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76729         it mishandles gcc -ansi -pedantic as well.
76730         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76731         if gcc -pedantic.
76732         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76733         initializers for struct if -pedantic, unless it's C99 or later.
76734
76735 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76736
76737         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76738         Don't close an fd more than once. Identical atimes indicate
76739         success, not failure.
76740
76741 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76742
76743         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76744
76745 2006-11-23  Jim Meyering  <jim@meyering.net>
76746
76747         * build-aux/announce-gen: New file.  From coreutils.
76748
76749 2006-11-22  Jim Meyering  <jim@meyering.net>
76750
76751         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76752         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76753         (fts_read): Use a temporary to narrow the overused st_size member
76754         before using it in a switch statement.  Reported by Matthew Woehlke.
76755
76756         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76757         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76758
76759 2006-11-20  Bruno Haible  <bruno@clisp.org>
76760
76761         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76762         changequote instead of pairs of brackets.
76763         Reported by Andreas Schwab <schwab@suse.de>.
76764
76765 2006-11-21  Jim Meyering  <jim@meyering.net>
76766
76767         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76768         so as to remain compatible with older compilers.
76769         Patch from Michael Deutschmann.
76770
76771 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * MODULES.html.sh (File system functions): Add openat.
76774
76775         * lib/openat.h (rpl_fstatat): New macro, if
76776         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76777         (fstatat): Define to rpl_fstatat under the same conditions,
76778         unless COMPILING_FSTATAT.
76779         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76780         seems to have the bug.
76781         * lib/fstatat.c: New file.
76782         * modules/openat (Files): Add it.
76783
76784 2006-11-20  Bruno Haible  <bruno@clisp.org>
76785
76786         * Makefile: New file.
76787
76788 2006-11-20  Jim Meyering  <jim@meyering.net>
76789
76790         The beginnings of syntax-related checks for gnulib.
76791         * lib/Makefile: New file.
76792         * lib/t-idcache: New script.  Ensure that the two halves of
76793         idcache.c stay in sync.
76794
76795         * lib/idcache.c: Adjust comments in user- and group- portions to
76796         be more accurate, and to be consistent with one another.
76797
76798 2006-11-20  Jim Meyering  <jim@meyering.net>
76799
76800         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76801         continue using the flexible array member (thus, this module performs
76802         half as many malloc calls), with the addition that...
76803         (getgroup, getuser): Consistently record a non-match via an empty
76804         "name" string, and map an empty string match to a NULL return value.
76805         * modules/idcache (Depends-on): Re-add flexmember.
76806
76807         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76808         (getuidbyname, getgroup, getgidbyname): Likewise.
76809
76810         Use cleaner syntax: NULL rather than 0.
76811         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76812
76813 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76816         It mishandled the case where the group was missing.
76817         Problem reported by Greg Schafer.
76818         * modules/idcache: Likewise.
76819
76820 2006-11-18  Jim Meyering  <jim@meyering.net>
76821
76822         * check-module (%exempt_header): Add exception for some
76823         conditionally-included headers.
76824
76825         * modules/i-ring (Depends-on): Add verify.
76826         (License): Change to LGPL.
76827
76828 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76829
76830         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76831         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76832         and inttostr.h.  Use snprintf rather than uinttostr, so that
76833         LGPLed code doesn't depend on GPLed.
76834
76835 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * modules/inline (License): Change from GPL to LGPL.
76838
76839 2006-11-17  Jim Meyering  <jim@meyering.net>
76840
76841         * modules/d-type (License): Switch to LGPL.
76842
76843 2006-11-15  Bruno Haible  <bruno@clisp.org>
76844
76845         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76846
76847 2006-11-15  Eric Blake  <ebb9@byu.net>
76848
76849         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76850         the module dependency.
76851
76852 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76853             Bruno Haible  <bruno@clisp.org>
76854
76855         * gnulib-tool (func_create_testdir): Add license consistency check.
76856
76857 2006-11-15  Eric Blake  <ebb9@byu.net>
76858
76859         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76860         random "(cached)" in configure output.
76861
76862 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76863
76864         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76865         test for conforming inttypes.h is both announced and cached.
76866
76867         * MODULES.html.sh (seen_modules, seen_files): New variables.
76868         (func_module): Rewrite to use a few less gnulib-tool and sed
76869         invocations.  Avoid a couple of quadratic algorithms for ...
76870         (missed_modules, missed_files): ... these, with ...
76871         (func_append, func_tmpdir): ... these new functions, from
76872         gnulib-tool.  Analogously, install traps for cleanup.
76873
76874         * tests/test-gc.c (main): Remove unused variables.
76875         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76876
76877 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         * modules/inttostr (License): Change to LGPL.
76880
76881 2006-11-14  Eric Blake  <ebb9@byu.net>
76882
76883         * modules/tempname (License): Change to LGPL.
76884
76885 2006-11-14  Eric Blake  <ebb9@byu.net>
76886
76887         * doc/functions.texi (Function Portability): *printf functions on
76888         Cygwin now understand all POSIX size specifiers.
76889
76890 2006-11-14  Bruno Haible  <bruno@clisp.org>
76891
76892         * modules/c-ctype (License): Change to LGPL.
76893
76894 2006-11-12  Bruno Haible  <bruno@clisp.org>
76895
76896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76897         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76898         for GNOME libraries, for which the include files are installed in
76899         subdirectories of $prefix/include.
76900
76901 2006-11-12  Bruno Haible  <bruno@clisp.org>
76902
76903         * m4/lib-link.m4: Require at least autoconf-2.54.
76904         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76905         name to underscores for the --with option.
76906
76907 2006-11-13  Bruno Haible  <bruno@clisp.org>
76908
76909         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76910         the tests directory.
76911         Reported by Ralf Wildenhues.
76912
76913 2006-11-13  Bruno Haible  <bruno@clisp.org>
76914
76915         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76916         (func_emit_initmacro_end): Undo the override here.
76917         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76918         Works around the famous automake error in coreutils.
76919
76920 2006-11-13  Eric Blake  <ebb9@byu.net>
76921
76922         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76923         element, not its node.
76924
76925 2006-11-12  Bruno Haible  <bruno@clisp.org>
76926
76927         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76928         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76929
76930 2006-11-12  Bruno Haible  <bruno@clisp.org>
76931
76932         * gnulib-tool: New option --local-symlink.
76933         (func_usage): Document it.
76934         (lsymbolic): New variable.
76935         (func_import, func_create_testdir): If --symlink was not specified,
76936         test whether --local-symlink was specified and the file comes from
76937         the local_gnulib_dir.
76938
76939 2006-11-12  Bruno Haible  <bruno@clisp.org>
76940
76941         * gnulib-tool (func_ln): New function.
76942         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76943
76944 2006-11-12  Bruno Haible  <bruno@clisp.org>
76945
76946         Finish support for source files in subdirectories.
76947         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76948         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76949         AUTOMAKE_OPTIONS.
76950         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76951
76952 2006-11-12  Bruno Haible  <bruno@clisp.org>
76953
76954         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76955         EXTRA_lib_SOURCES augmentation.
76956         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76957
76958 2006-11-12  Jim Meyering  <jim@meyering.net>
76959
76960         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76961         file descriptors.  This also averts a failure on systems with
76962         native openat support when a traversed directory lacks "x" access.
76963         * lib/fts_.h: Include "i-ring.h"
76964         (struct FTS) [fts_fd_ring]: New member.
76965         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76966         (FCHDIR): Add parentheses.
76967         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76968         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76969         When descending, rather than simply closing the previous
76970         fts_cwd_fd value, push that file descriptor onto the ring.
76971         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76972         (fts_open): Initialize the new fd_ring member.
76973         (fts_close): Clear the ring.
76974         (fts_safe_changedir): When possible, use our new fd_ring to skip
76975         the diropen and fstat and dev/ino comparison that would normally
76976         accompany a virtual `chdir ("..")'.
76977
76978         * modules/fts (Depends-on): Add i-ring.
76979         * modules/i-ring: New module.
76980         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76981         * m4/i-ring.m4: New file.
76982
76983 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76984
76985         * gnulib-tool (func_create_testdir): Fix replacement of
76986         `build-aux' in configure.ac.  Run autotools in gltests
76987         subdirectory.
76988         (func_create_testdir, func_create_megatestdir, test): There is
76989         no need for '--force' in most autotool invocations in a new
76990         tree.  Actually fail the whole test if any of the tools, or the
76991         configure or make stages fail.
76992
76993         Sync from Automake.
76994         * build-aux/gnupload: Revert last change.  Add pointer to upload
76995         instructions of the GNU Maintenance Instructions.
76996         Suggestion by Karl Berry.
76997
76998 2006-11-10  Jim Meyering  <jim@meyering.net>
76999
77000         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77001
77002 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77005         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77006         (bind_textdomain_codeset) [! ENABLE_NLS]:
77007         Evaluate all the arguments.  That way, callers get compatible behavior
77008         if the arguments have side effects.  Also, it avoids some GCC
77009         diagnostics in some cases; Joel E. Denny reported problems when Bison
77010         was configured with --enable-gcc-warnigs.
77011
77012 2006-11-10  Jim Meyering  <jim@meyering.net>
77013
77014         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77015         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77016         account.
77017
77018 2006-11-10  Jim Meyering  <jim@meyering.net>
77019
77020         * modules/inline: New file/module.
77021         * modules/xalloc (Files): Remove m4/inline.m4.
77022         (Depends-on): Add inline, instead.
77023         * modules/oset: Likewise.
77024         * modules/list: Likewise.
77025
77026 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77029         Problem reported by Matthew Woehlke.
77030
77031 2006-11-09  Bruno Haible  <bruno@clisp.org>
77032
77033         * lib/tempname.c (gen_tempname): Remove variant that invokes
77034         __gen_tempname.
77035         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77036         __gen_tempname.
77037
77038 2006-11-08  Bruno Haible  <bruno@clisp.org>
77039
77040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77041         to 'yes' instead of 'cross-compiling'.
77042
77043 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * lib/quotearg.h (quotearg_free): New decl.
77046         * lib/quotearg.c (quotearg_free): New function.
77047         (slot0, nslots, slotvec0, slotvec):
77048         Now file-scope so that quotearg_free can get at them.
77049
77050 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77051
77052         Sync from Automake.
77053         * build-aux/gnupload: Add missing 'gnu' to example URL.
77054         Report by Karl Berry.
77055
77056 2006-11-08  Bruno Haible  <bruno@clisp.org>
77057
77058         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77059         Suggested by Paul Eggert.
77060
77061 2006-11-08  Jim Meyering  <jim@meyering.net>
77062
77063         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77064         It's already included if !_LIBC.
77065         (fts_safe_changedir): Add a comment.
77066
77067 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77070         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77071         Matthew Woehlke.
77072
77073         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77074         definitions up, to avoid colliding with change below.
77075         (static_inline) [HAVE_INLINE]: New macro.
77076         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77077         Provide extern decls when !HAVE_INLINE.  Do not define unless
77078         static_inline is defined, either by us or by xmalloc.c.  Use
77079         static_inline rather than static inline.
77080         (XCALLOC): Optimize sizeof(T) = 1 case.
77081         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77082
77083 2006-11-07  Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77087         AC_C_INLINE.
77088         * modules/xalloc (Files): Add m4/inline.m4.
77089
77090 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77091
77092         * README: Fix typo.
77093         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77094         (Miscellanous Notes): ...from this.
77095
77096 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77099         Mention that offsetof should be used instead of sizeof.
77100         From Bruno Haible.
77101
77102 2006-11-07  Bruno Haible  <bruno@clisp.org>
77103
77104         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77105
77106 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77109         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77110         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77111         (gl_tree_add_before, gl_tree_add_after):
77112         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77113         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77114         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77115         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77116         (gl_linked_add_after, gl_linked_add_at): Likewise.
77117         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77118         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77119         (gl_tree_add_before, gl_tree_add_after): Likewise.
77120         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77121         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77122         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77123
77124 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77125
77126         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77127
77128 2006-11-06  Bruno Haible  <bruno@clisp.org>
77129
77130         * m4/inline.m4: New file.
77131         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77132         * modules/list (Files): Add m4/inline.m4.
77133         * modules/oset (Files): Likewise.
77134
77135 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * lib/idcache.c: Include <stddef.h>, for offsetof.
77138         (struct userid.name): Change from char * to a flexible array member.
77139         All uses changed.
77140         * modules/idcache (Depends-on): Add flexmember.
77141
77142         * MODULES.html.sh (Core language properties): New module flexmember.
77143         * modules/flexmember, m4/flexmember.m4: New files.
77144
77145         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77146         inline functions that are identical with the old xnmalloc_inline,
77147         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77148         that we can avoid some unnecessary integer multiplications and
77149         divisions in the common case where the element size is known at
77150         compile time.
77151         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77152         needed.
77153         (xnboundedmalloc): Remove.
77154         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77155         arguments, for consistency with rest of this header.
77156         (xcharalloc): Rewrite using XNMALLOC.
77157         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77158         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77159         versions have been moved to lib/xalloc.h and renamed to be the
77160         non-*_inline versions.
77161         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77162         and xnrealloc functions, since those functions are now inline and
77163         now call us.
77164         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77165         renaming described above.
77166         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77167         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77168         captures the dependency in AC_C_INLINE.
77169
77170         New module canonicalize-lgpl, proposed by Charles Wilson in
77171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77172         with a few small changes afterwards.
77173         * MODULES.html.sh (File system functions): New module
77174         canonicalize-lgpl.
77175         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77176         and canonicalize_file_name.
77177         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77178         * modules/canonicalize-lgpl: New files.
77179
77180 2006-11-05  Bruno Haible  <bruno@clisp.org>
77181
77182         * gnulib-tool (func_import, func_create_testdir): Create directories
77183         also for files in subdirectories of lib/.
77184
77185 2006-11-05  Bruno Haible  <bruno@clisp.org>
77186
77187         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77188         ANSI C compliant.
77189
77190 2006-11-03  Bruno Haible  <bruno@clisp.org>
77191
77192         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77193         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77194         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77195         (xnboundedmalloc): New inline function.
77196         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77197         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77198         xmalloc.
77199         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77200         xmalloc.
77201         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77202         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77203         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77204         xmalloc.
77205         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77206         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77207         xmalloc.
77208         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77209         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77210         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77211         xmalloc.
77212         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77213         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77214         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77215         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77216         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77217         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77218         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77219
77220 2006-11-03  Bruno Haible  <bruno@clisp.org>
77221
77222         * lib/c-ctype.h [C++]: Define functions without name mangling.
77223         * lib/fwriteerror.h [C++]: Likewise.
77224         * lib/gcd.h [C++]: Likewise.
77225         * lib/linebreak.h [C++]: Likewise.
77226
77227 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77230         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77231         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77232         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77233         Check for functions and headers just once.
77234         Check for declaration of canonicalize_file_name.
77235         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77236
77237 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77238
77239         * gnulib-tool (func_import): Fix typo in actioncmd.
77240
77241 2006-11-02  Bruno Haible  <bruno@clisp.org>
77242
77243         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77244         newline sequence in the Makefile.am snippet as a space, like "make"
77245         does.
77246         Reported by Roger Persson <perrog@gmail.com>.
77247
77248 2006-11-01  Bruno Haible  <bruno@clisp.org>
77249
77250         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77251         already declared in <string.h>.
77252         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77253
77254 2006-11-01  Bruno Haible  <bruno@clisp.org>
77255
77256         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77257         * lib/strcase.h: Include <string.h>.
77258         (strcasecmp): Define to rpl_strcasecmp here.
77259
77260 2006-11-01  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77263
77264 2006-11-01  Eric Blake  <ebb9@byu.net>
77265
77266         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77267
77268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77269
77270 2006-10-29  Bruno Haible  <bruno@clisp.org>
77271
77272         Make it compile in C++ mode.
77273         * lib/full-write.c (full_rw): Add a cast.
77274
77275 2006-11-01  Bruno Haible  <bruno@clisp.org>
77276
77277         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77278         be POSIX compliant.
77279         Reported by Roger Persson <perrog@gmail.com>.
77280
77281 2006-11-01  Eric Blake  <ebb9@byu.net>
77282
77283         * lib/getopt_.h: Fix comments.
77284
77285 2006-10-31  Eric Blake  <ebb9@byu.net>
77286
77287         * modules/tmpdir (Depends-on): Add sys_stat.
77288         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77289         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77290         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77291         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77292         tempname.
77293
77294 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         Avoid some C++ diagnostics reported by Bruno Haible.
77297         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77298         xmalloc.
77299         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77300         (struct slotvec): Move to top level.
77301         (quotearg_n_options): Rewrite to avoid xmalloc.
77302         * lib/xalloc.h (xcharalloc): New function.
77303         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77304         [defined __cplusplus]: Add function template that provides result
77305         type propagation.  This part of the change is from Bruno Haible.
77306
77307 2006-10-29  Bruno Haible  <bruno@clisp.org>
77308
77309         Make it compile in C++ mode.
77310         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77311         * lib/strnlen1.c (strnlen1): Cast memchr result.
77312         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77313         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77314         (create_temp_dir): Rename local variable 'template'.
77315         (compile_csharp_using_sscli): Add cast.
77316         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77317         * lib/findprog.c (find_in_path): Likewise.
77318         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77319         * lib/wait-process.c (register_slave_subprocess): Likewise.
77320
77321 2006-10-22  Bruno Haible  <bruno@clisp.org>
77322
77323         * modules/tsearch: New file.
77324         * lib/tsearch.h: New file.
77325         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77326         * m4/tsearch.m4: New file.
77327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77328
77329 2006-10-29  Eric Blake  <ebb9@byu.net>
77330
77331         * lib/arcfour.c: Assume config.h.
77332         * lib/arctwo.c: Likewise.
77333         * lib/base64.c: Likewise.
77334         * lib/check-version.c: Likewise.
77335         * lib/crc.c: Likewise.
77336         * lib/des.c: Likewise.
77337         * lib/gc-gnulib.c: Likewise.
77338         * lib/gc-libgcrypt.c: Likewise.
77339         * lib/gc-pbkdf2-sha1.c: Likewise.
77340         * lib/getaddrinfo.c: Likewise.
77341         * lib/getdelim.c: Likewise.
77342         * lib/getline.c: Likewise.
77343         * lib/hmac-md5.c: Likewise.
77344         * lib/hmac-sha1.c: Likewise.
77345         * lib/iconvme.c: Likewise.
77346         * lib/md2.c: Likewise.
77347         * lib/md4.c: Likewise.
77348         * lib/memxor.c: Likewise.
77349         * lib/read-file.c: Likewise.
77350         * lib/readline.c: Likewise.
77351         * lib/rijndael-alg-fst.c: Likewise.
77352         * lib/rijndael-api-fst.c: Likewise.
77353         * lib/xgetdomainname.c: Likewise.
77354
77355 2006-10-28  Eric Blake  <ebb9@byu.net>
77356
77357         * lib/xstrndup.c: Assume config.h.
77358
77359 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77362         stat-macros.h is now for our own macros, whereas stat_h is for
77363         macros in the <sys/stat.h> name space.
77364         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77365         (STAT_MACROS_H): Remove.
77366         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77367         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77368         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77369         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77370         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77371         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77372         Move these macros to ...
77373         * lib/stat_.h: here.  Don't include stat-macros.h.
77374         * lib/canonicalize.c: Don't include stat-macros.h.
77375         * lib/chown.c: Likewise.
77376         * lib/euidaccess.c: Likewise.
77377         * lib/file-type.c: Likewise.
77378         * lib/filemode.c: Likewise.
77379         * lib/glob.c: Likewise.
77380         * lib/isapipe.c: Likewise.
77381         * lib/lchown.c: Likewise.
77382         * lib/lstat.c: Likewise.
77383         * lib/mkdir-p.c: Likewise.
77384         * lib/rmdir.c: Likewise.
77385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77387         unless mkdir isn't declared, to speed up 'configure'.
77388         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77389         would define all the S_* symbols.
77390         * modules/canonicalize (Depends-on):
77391         Depend on sys_stat, not stat-macros.
77392         * modules/chown: Likewise.
77393         * modules/euidaccess: Likewise.
77394         * modules/filemode: Likewise.
77395         * modules/file-type: Likewise.
77396         * modules/glob: Likewise.
77397         * modules/isapipe: Likewise.
77398         * modules/lchown: Likewise.
77399         * modules/lstat: Likewise.
77400         * modules/mkancesdirs: Likewise.
77401         * modules/rmdir: Likewise.
77402         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77403         * modules/modechange: Likewise.
77404         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77405         (configure.ac): Remove gl_STAT_MACROS.
77406         * modules/sys_stat (Depends-on): Remove stat-macros.
77407
77408 2006-10-27  Bruno Haible  <bruno@clisp.org>
77409
77410         * m4/signed.m4: Remove file.
77411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77412         invocation.
77413         * modules/vasnprintf (Files): Remove m4/signed.m4.
77414
77415 2006-10-27  Bruno Haible  <bruno@clisp.org>
77416
77417         Update to GNU gettext 0.16.
77418         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77419         m4/inttypes-h.m4, m4/signed.m4.
77420         * m4/gettext.m4: Update to GNU gettext 0.16.
77421         * m4/intl.m4: New file, from GNU gettext.
77422         * m4/intldir.m4: New file, from GNU gettext.
77423         * config/srclist.txt: Update
77424
77425 2006-10-27  Eric Blake  <ebb9@byu.net>
77426
77427         * MODULES.html.sh: Document tempname.
77428         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77429         dependencies.
77430         (Files): Move lib/tempname.c...
77431         * modules/tempname: ...to this new module.
77432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77433         (gl_PREREQ_TEMPNAME): Move...
77434         * m4/tempname.m4: ...to this new file.
77435         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77436         * modules/sys_stat (Depends-on): Add stat-macros.
77437         * lib/stat_.h (includes): Pick up stat macros.
77438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77439         if stat macros are broken.
77440         * lib/tempname.c (includes): No need to include "stat-macros.h".
77441         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77442         (direxists, __path_search) [!_LIBC]: Don't compile these in
77443         gnulib; the tmpdir module covers that.
77444         * lib/tempname.h: New file.
77445
77446 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77447
77448         * COPYING: Explain how gnulib-tool converts licence headers.
77449         Almost all wording by Eric Blake.
77450
77451 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77452
77453         * lib/mbchar.h (is_basic_table): Make read-only.
77454         * lib/mbchar.c (is_basic_table): Likewise.
77455         Reported by John Darrington.
77456
77457 2006-10-25  Bruno Haible  <bruno@clisp.org>
77458
77459         * lib/progname.h (set_program_name): Undefine before defining.
77460
77461 2006-10-25  Bruno Haible  <bruno@clisp.org>
77462
77463         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77464         false for non-gcc C++ compilers.
77465         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77466
77467 2006-10-24  Bruno Haible  <bruno@clisp.org>
77468
77469         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77470         iconv implementations like Irix iconv.
77471
77472 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * modules/vararrays: New file.
77475         * m4/vararrays.m4: New file, taken from diffutils.
77476         * MODULES.html.sh: New module vararrays.
77477
77478 2006-10-24  Karl Berry  <karl@gnu.org>
77479
77480         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77481         Don't call GNU Unix.
77482
77483 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77484
77485         * users.txt: Add Libtool.
77486
77487         Sync from Libtool:
77488
77489         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77492         to gnulib's policy of including config.h unconditionally.
77493
77494 2006-10-24  Bruno Haible  <bruno@clisp.org>
77495
77496         * modules/wcwidth (Files): Add m4/wint_t.m4.
77497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77498         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77499
77500 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77503         to pacify GCC with some -W flags enabled.  Problem reported by
77504         Bruno Haible.
77505
77506 2006-10-24  Jim Meyering  <jim@meyering.net>
77507
77508         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77509         Reported by Karl Berry.
77510
77511 2006-10-23  Bruno Haible  <bruno@clisp.org>
77512
77513         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77514
77515 2006-10-24  Bruno Haible  <bruno@clisp.org>
77516
77517         * lib/gl_list.h: Use C comment style, not C++ comment style.
77518
77519 2006-10-23  Eric Blake  <ebb9@byu.net>
77520
77521         * lib/getaddrinfo.c (includes): Add missing include.
77522
77523 2006-10-23  Bruno Haible  <bruno@clisp.org>
77524             Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         Ability to rename obstack_free.
77527         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77528         obstack_free.
77529         (obstack_free): Invoke the __obstack_free macro.
77530         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77531
77532 2006-10-23  Bruno Haible  <bruno@clisp.org>
77533             Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77536         __argc, __argv from the declaration. (They are defined as macros on
77537         mingw.)
77538
77539 2006-10-22  Bruno Haible  <bruno@clisp.org>
77540
77541         * doc/gnulib-intro.texi: New file.
77542         * doc/gnulib.texi: Include it.
77543
77544 2006-10-21  Bruno Haible  <bruno@clisp.org>
77545
77546         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77547         "Introduction", "Miscellanous Notes", "Particular Modules".
77548
77549 2006-10-21  Bruno Haible  <bruno@clisp.org>
77550
77551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77552         Change mostlyclean-local rule to avoid sh syntax error from bash
77553         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77554
77555 2006-10-23  Jim Meyering  <jim@meyering.net>
77556
77557         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77558         in place of snprintf.
77559
77560         * modules/inttostr (Files): Add lib/uinttostr.c.
77561         * lib/uinttostr.c (inttostr): New file/function.
77562         * lib/inttostr.h (uinttostr): Declare.
77563         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77564         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77565         Add uinttostr.
77566         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77567
77568 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * lib/canonicalize.c (ELOOP): Define if not already defined.
77571         Problem reported by Bruno Haible in
77572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77573
77574 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77575
77576         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77577         Problem reported by Perry Smith and Ville Laurikari.
77578
77579         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77580         uses.
77581
77582 2006-10-19  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77585         for mingw.
77586
77587 2006-10-19  Bruno Haible  <bruno@clisp.org>
77588
77589         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77590         Needed for mingw.
77591
77592 2006-10-19  Bruno Haible  <bruno@clisp.org>
77593
77594         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77595
77596 2006-10-19  Bruno Haible  <bruno@clisp.org>
77597
77598         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77599         it.
77600
77601 2006-10-19  Bruno Haible  <bruno@clisp.org>
77602
77603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77604         invocation.
77605
77606 2006-10-19  Bruno Haible  <bruno@clisp.org>
77607
77608         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77609         mountlist by default.
77610
77611 2006-10-16  Bruno Haible  <bruno@clisp.org>
77612
77613         * lib/c-strstr.c: Include c-strstr.h.
77614
77615 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77616
77617         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77618         in a slash.
77619
77620 2006-10-18  Bruno Haible  <bruno@clisp.org>
77621
77622         * lib/lock.h [C++]: Wrap definitions in extern "C".
77623
77624 2006-10-18  Bruno Haible  <bruno@clisp.org>
77625
77626         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77627         gl_LIBOBJS list.
77628
77629 2006-10-18  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77632
77633 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * lib/xstrtol.h: Include gettext.h.
77636         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77637         Problem reported by Eric Blake.
77638         * modules/xstrtol (Depends-on): Add gettext-h.
77639
77640 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77641
77642         * lib/strftime.c (advance): New macro.
77643         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77644         incomplete type, so you can't add 0 to it.  Problem and patch
77645         reported by Eelco Dolstra for dietlibc.
77646
77647 2006-10-18  Jim Meyering  <jim@meyering.net>
77648
77649         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77650         type for a local, and rename it: s/up/user_proc/.
77651
77652 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77653
77654         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77655         READ_UTMP_USER_PROCESS.
77656         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77657
77658 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77661         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77662
77663 2006-10-17  Eric Blake  <ebb9@byu.net>
77664
77665         * lib/sigprocmask.c (sigprocmask): Fix typo.
77666
77667         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77668
77669         * modules/clean-temp (Makefile.am): Don't add to make output...
77670         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77671         config.h.
77672
77673 2006-10-17  Bruno Haible  <bruno@clisp.org>
77674
77675         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77676         differently if DEFAULT_TEXT_DOMAIN is set.
77677
77678 2006-10-16  Bruno Haible  <bruno@clisp.org>
77679
77680         * lib/clean-temp.c: Include fwriteerror.h.
77681
77682 2006-10-16  Bruno Haible  <bruno@clisp.org>
77683
77684         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77685
77686 2006-10-16  Bruno Haible  <bruno@clisp.org>
77687
77688         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77689         * lib/sigprocmask.h: Include <sys/types.h>.
77690         (sigset_t): Use the system's definition if present.
77691
77692 2006-10-17  Eric Blake  <ebb9@byu.net>
77693
77694         * lib/xvasprintf.c (includes): Assume config.h.
77695         * lib/xasprintf.c (includes): Likewise.
77696
77697 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77700         at least as wide as intmax_t.
77701
77702 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77703
77704         (Imported from Automake.)
77705         * build-aux/gnupload: Update to version 1.1 of directive file.
77706
77707 2006-10-16  Eric Blake  <ebb9@byu.net>
77708
77709         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77710         match Automake 1.10a.
77711
77712 2006-10-14  Bruno Haible  <bruno@clisp.org>
77713
77714         * modules/sigprocmask: New file.
77715         * lib/sigprocmask.h: New file.
77716         * lib/sigprocmask.c: New file.
77717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77718         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77719         request sigprocmask.o.
77720         (gl_PREREQ_SIGPROCMASK): New macro.
77721         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77722         (Depends-on): Add sigprocmask.
77723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77724         gt_SIGNALBLOCKING. Test for 'raise' only once.
77725         * lib/fatal-signal.c: Include sigprocmask.h.
77726         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77727         unblock_fatal_signals): Define always.
77728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77729         sigprocmask.
77730
77731 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         Sync from Automake.
77734         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77735         which incorrectly sets the mode of an existing destination
77736         directory.  In some cases the unpatched install-sh could do the
77737         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77738         system.  We hope this is rare in practice, but it's clearly worth
77739         fixing.  Problem reported by Alex Unleashed in
77740         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77741         Also, don't bother to check for -m bugs unless we're using -m;
77742         suggested by Stepan Kasal.
77743
77744 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77745
77746         Sync from Automake.
77747         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77748         `-c' flag, so they appear at the same position as in %FASTDEP%
77749         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77750         which ignores unknown options only after the first non-option.
77751         Bug report against M4 by Nelson H. F. Beebe.
77752
77753 2006-10-13  Jim Meyering  <jim@meyering.net>
77754
77755         Fix a bug in yesterday's change.
77756         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77757         p->fts_statp->st_dev would be used uninitialized.
77758         Ensures that we always call fts_stat on the very first entry.
77759         Miklos Szeredi reported that find -xdev stopped working.
77760
77761 2006-10-12  Bruno Haible  <bruno@clisp.org>
77762
77763         * gnulib-tool (func_get_automake_snippet): Append an automatically
77764         computed EXTRA_DIST augmentation.
77765         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77766         * modules/alloca-opt (Makefile.am): Likewise.
77767         * modules/allocsa (Makefile.am): Likewise.
77768         * modules/arcfour (Makefile.am): Likewise.
77769         * modules/arctwo (Makefile.am): Likewise.
77770         * modules/argmatch (Makefile.am): Likewise.
77771         * modules/argz (Makefile.am): Likewise.
77772         * modules/atexit (Makefile.am): Likewise.
77773         * modules/backupfile (Makefile.am): Likewise.
77774         * modules/byteswap (Makefile.am): Likewise.
77775         * modules/c-strtod (Makefile.am): Likewise.
77776         * modules/c-strtold (Makefile.am): Likewise.
77777         * modules/calloc (Makefile.am): Likewise.
77778         * modules/canon-host (Makefile.am): Likewise.
77779         * modules/canonicalize (Makefile.am): Likewise.
77780         * modules/chdir-long (Makefile.am): Likewise.
77781         * modules/chdir-safer (Makefile.am): Likewise.
77782         * modules/check-version (Makefile.am): Likewise.
77783         * modules/chown (Makefile.am): Likewise.
77784         * modules/cloexec (Makefile.am): Likewise.
77785         * modules/close-stream (Makefile.am): Likewise.
77786         * modules/closeout (Makefile.am): Likewise.
77787         * modules/crc (Makefile.am): Likewise.
77788         * modules/csharpexec (Makefile.am): Likewise.
77789         * modules/cycle-check (Makefile.am): Likewise.
77790         * modules/des (Makefile.am): Likewise.
77791         * modules/dev-ino (Makefile.am): Likewise.
77792         * modules/dirfd (Makefile.am): Likewise.
77793         * modules/dirname (Makefile.am): Likewise.
77794         * modules/dup2 (Makefile.am): Likewise.
77795         * modules/eealloc (Makefile.am): Likewise.
77796         * modules/error (Makefile.am): Likewise.
77797         * modules/euidaccess (Makefile.am): Likewise.
77798         * modules/exclude (Makefile.am): Likewise.
77799         * modules/exitfail (Makefile.am): Likewise.
77800         * modules/fcntl-safer (Makefile.am): Likewise.
77801         * modules/fcntl (Makefile.am): Likewise.
77802         * modules/file-type (Makefile.am): Likewise.
77803         * modules/fileblocks (Makefile.am): Likewise.
77804         * modules/filemode (Makefile.am): Likewise.
77805         * modules/filenamecat (Makefile.am): Likewise.
77806         * modules/fnmatch (Makefile.am): Likewise.
77807         * modules/fopen-safer (Makefile.am): Likewise.
77808         * modules/fpending (Makefile.am): Likewise.
77809         * modules/fprintftime (Makefile.am): Likewise.
77810         * modules/free (Makefile.am): Likewise.
77811         * modules/fsusage (Makefile.am): Likewise.
77812         * modules/ftruncate (Makefile.am): Likewise.
77813         * modules/fts (Makefile.am): Likewise.
77814         * modules/gc-arcfour (Makefile.am): Likewise.
77815         * modules/gc-des (Makefile.am): Likewise.
77816         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77817         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77818         * modules/gc-md4 (Makefile.am): Likewise.
77819         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77820         * modules/gc-sha1 (Makefile.am): Likewise.
77821         * modules/gc (Makefile.am): Likewise.
77822         * modules/getaddrinfo (Makefile.am): Likewise.
77823         * modules/getcwd (Makefile.am): Likewise.
77824         * modules/getdelim (Makefile.am): Likewise.
77825         * modules/getdomainname (Makefile.am): Likewise.
77826         * modules/getgroups (Makefile.am): Likewise.
77827         * modules/gethostname (Makefile.am): Likewise.
77828         * modules/gethrxtime (Makefile.am): Likewise.
77829         * modules/getline (Makefile.am): Likewise.
77830         * modules/getloadavg (Makefile.am): Likewise.
77831         * modules/getlogin_r (Makefile.am): Likewise.
77832         * modules/getndelim2 (Makefile.am): Likewise.
77833         * modules/getopt (Makefile.am): Likewise.
77834         * modules/getpagesize (Makefile.am): Likewise.
77835         * modules/getpass-gnu (Makefile.am): Likewise.
77836         * modules/getpass (Makefile.am): Likewise.
77837         * modules/getsubopt (Makefile.am): Likewise.
77838         * modules/gettime (Makefile.am): Likewise.
77839         * modules/gettimeofday (Makefile.am): Likewise.
77840         * modules/getugroups (Makefile.am): Likewise.
77841         * modules/getusershell (Makefile.am): Likewise.
77842         * modules/glob (Makefile.am): Likewise.
77843         * modules/group-member (Makefile.am): Likewise.
77844         * modules/hard-locale (Makefile.am): Likewise.
77845         * modules/hash (Makefile.am): Likewise.
77846         * modules/hmac-md5 (Makefile.am): Likewise.
77847         * modules/hmac-sha1 (Makefile.am): Likewise.
77848         * modules/human (Makefile.am): Likewise.
77849         * modules/idcache (Makefile.am): Likewise.
77850         * modules/imaxabs (Makefile.am): Likewise.
77851         * modules/imaxdiv (Makefile.am): Likewise.
77852         * modules/inet_ntop (Makefile.am): Likewise.
77853         * modules/inet_pton (Makefile.am): Likewise.
77854         * modules/intprops (Makefile.am): Likewise.
77855         * modules/inttostr (Makefile.am): Likewise.
77856         * modules/inttypes (Makefile.am): Likewise.
77857         * modules/isapipe (Makefile.am): Likewise.
77858         * modules/javaversion (Makefile.am): Likewise.
77859         * modules/lchmod (Makefile.am): Likewise.
77860         * modules/lchown (Makefile.am): Likewise.
77861         * modules/localcharset (Makefile.am): Likewise.
77862         * modules/long-options (Makefile.am): Likewise.
77863         * modules/lstat (Makefile.am): Likewise.
77864         * modules/malloc (Makefile.am): Likewise.
77865         * modules/mathl (Makefile.am): Likewise.
77866         * modules/mbchar (Makefile.am): Likewise.
77867         * modules/md2 (Makefile.am): Likewise.
77868         * modules/md4 (Makefile.am): Likewise.
77869         * modules/md5 (Makefile.am): Likewise.
77870         * modules/memcasecmp (Makefile.am): Likewise.
77871         * modules/memchr (Makefile.am): Likewise.
77872         * modules/memcmp (Makefile.am): Likewise.
77873         * modules/memcoll (Makefile.am): Likewise.
77874         * modules/memcpy (Makefile.am): Likewise.
77875         * modules/memmem (Makefile.am): Likewise.
77876         * modules/memmove (Makefile.am): Likewise.
77877         * modules/mempcpy (Makefile.am): Likewise.
77878         * modules/memrchr (Makefile.am): Likewise.
77879         * modules/memset (Makefile.am): Likewise.
77880         * modules/memxor (Makefile.am): Likewise.
77881         * modules/mkancesdirs (Makefile.am): Likewise.
77882         * modules/mkdir-p (Makefile.am): Likewise.
77883         * modules/mkdir (Makefile.am): Likewise.
77884         * modules/mkdtemp (Makefile.am): Likewise.
77885         * modules/mkstemp (Makefile.am): Likewise.
77886         * modules/mktime (Makefile.am): Likewise.
77887         * modules/modechange (Makefile.am): Likewise.
77888         * modules/mountlist (Makefile.am): Likewise.
77889         * modules/nanosleep (Makefile.am): Likewise.
77890         * modules/obstack (Makefile.am): Likewise.
77891         * modules/openat (Makefile.am): Likewise.
77892         * modules/pagealign_alloc (Makefile.am): Likewise.
77893         * modules/pathmax (Makefile.am): Likewise.
77894         * modules/physmem (Makefile.am): Likewise.
77895         * modules/poll (Makefile.am): Likewise.
77896         * modules/posixtm (Makefile.am): Likewise.
77897         * modules/posixver (Makefile.am): Likewise.
77898         * modules/putenv (Makefile.am): Likewise.
77899         * modules/quote (Makefile.am): Likewise.
77900         * modules/quotearg (Makefile.am): Likewise.
77901         * modules/raise (Makefile.am): Likewise.
77902         * modules/read-file (Makefile.am): Likewise.
77903         * modules/readline (Makefile.am): Likewise.
77904         * modules/readlink (Makefile.am): Likewise.
77905         * modules/readtokens (Makefile.am): Likewise.
77906         * modules/readutmp (Makefile.am): Likewise.
77907         * modules/realloc (Makefile.am): Likewise.
77908         * modules/regex (Makefile.am): Likewise.
77909         * modules/rename-dest-slash (Makefile.am): Likewise.
77910         * modules/rename (Makefile.am): Likewise.
77911         * modules/rijndael (Makefile.am): Likewise.
77912         * modules/rmdir (Makefile.am): Likewise.
77913         * modules/rpmatch (Makefile.am): Likewise.
77914         * modules/safe-read (Makefile.am): Likewise.
77915         * modules/safe-write (Makefile.am): Likewise.
77916         * modules/same-inode (Makefile.am): Likewise.
77917         * modules/same (Makefile.am): Likewise.
77918         * modules/save-cwd (Makefile.am): Likewise.
77919         * modules/savedir (Makefile.am): Likewise.
77920         * modules/setenv (Makefile.am): Likewise.
77921         * modules/settime (Makefile.am): Likewise.
77922         * modules/sha1 (Makefile.am): Likewise.
77923         * modules/sig2str (Makefile.am): Likewise.
77924         * modules/snprintf (Makefile.am): Likewise.
77925         * modules/stat-macros (Makefile.am): Likewise.
77926         * modules/stat-time (Makefile.am): Likewise.
77927         * modules/stdbool (Makefile.am): Likewise.
77928         * modules/stdint (Makefile.am): Likewise.
77929         * modules/stdlib-safer (Makefile.am): Likewise.
77930         * modules/stpcpy (Makefile.am): Likewise.
77931         * modules/stpncpy (Makefile.am): Likewise.
77932         * modules/strcase (Makefile.am): Likewise.
77933         * modules/strcasestr (Makefile.am): Likewise.
77934         * modules/strchrnul (Makefile.am): Likewise.
77935         * modules/strcspn (Makefile.am): Likewise.
77936         * modules/strdup (Makefile.am): Likewise.
77937         * modules/strerror (Makefile.am): Likewise.
77938         * modules/strftime (Makefile.am): Likewise.
77939         * modules/strndup (Makefile.am): Likewise.
77940         * modules/strnlen (Makefile.am): Likewise.
77941         * modules/strpbrk (Makefile.am): Likewise.
77942         * modules/strsep (Makefile.am): Likewise.
77943         * modules/strstr (Makefile.am): Likewise.
77944         * modules/strtod (Makefile.am): Likewise.
77945         * modules/strtoimax (Makefile.am): Likewise.
77946         * modules/strtok_r (Makefile.am): Likewise.
77947         * modules/strtol (Makefile.am): Likewise.
77948         * modules/strtoll (Makefile.am): Likewise.
77949         * modules/strtoul (Makefile.am): Likewise.
77950         * modules/strtoull (Makefile.am): Likewise.
77951         * modules/strtoumax (Makefile.am): Likewise.
77952         * modules/strverscmp (Makefile.am): Likewise.
77953         * modules/sys_socket (Makefile.am): Likewise.
77954         * modules/sys_stat (Makefile.am): Likewise.
77955         * modules/sysexits (Makefile.am): Likewise.
77956         * modules/time_r (Makefile.am): Likewise.
77957         * modules/timegm (Makefile.am): Likewise.
77958         * modules/timespec (Makefile.am): Likewise.
77959         * modules/tmpfile-safer (Makefile.am): Likewise.
77960         * modules/trim (Makefile.am): Likewise.
77961         * modules/unistd-safer (Makefile.am): Likewise.
77962         * modules/unlinkdir (Makefile.am): Likewise.
77963         * modules/unlocked-io (Makefile.am): Likewise.
77964         * modules/userspec (Makefile.am): Likewise.
77965         * modules/utime (Makefile.am): Likewise.
77966         * modules/utimecmp (Makefile.am): Likewise.
77967         * modules/utimens (Makefile.am): Likewise.
77968         * modules/vasnprintf (Makefile.am): Likewise.
77969         * modules/vasprintf (Makefile.am): Likewise.
77970         * modules/vsnprintf (Makefile.am): Likewise.
77971         * modules/xalloc (Makefile.am): Likewise.
77972         * modules/xgetcwd (Makefile.am): Likewise.
77973         * modules/xnanosleep (Makefile.am): Likewise.
77974         * modules/xreadlink (Makefile.am): Likewise.
77975         * modules/xstrtod (Makefile.am): Likewise.
77976         * modules/xstrtol (Makefile.am): Likewise.
77977         * modules/xstrtold (Makefile.am): Likewise.
77978         * modules/yesno (Makefile.am): Likewise.
77979         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77980
77981 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * modules/error (Makefile.am): Distribute files through
77984         EXTRA_DIST, not lib_SOURCES.
77985
77986 2006-10-12  Eric Blake  <ebb9@byu.net>
77987
77988         * modules/error (Makefile.am): Distribute files in /lib.
77989         * modules/obstack (Makefile.am): Likewise.
77990
77991 2006-10-12  Bruno Haible  <bruno@clisp.org>
77992
77993         * modules/acl (Makefile.am): Distribute all files in lib/ through
77994         EXTRA_DIST.
77995         * modules/arcfour (Makefile.am): Likewise.
77996         * modules/arctwo (Makefile.am): Likewise.
77997         * modules/argmatch (Makefile.am): Likewise.
77998         * modules/argz (Makefile.am): Likewise.
77999         * modules/atexit (Makefile.am): Likewise.
78000         * modules/backupfile (Makefile.am): Likewise.
78001         * modules/c-strtod (Makefile.am): Likewise.
78002         * modules/c-strtold (Makefile.am): Likewise.
78003         * modules/calloc (Makefile.am): Likewise.
78004         * modules/canon-host (Makefile.am): Likewise.
78005         * modules/canonicalize (Makefile.am): Likewise.
78006         * modules/chdir-long (Makefile.am): Likewise.
78007         * modules/chdir-safer (Makefile.am): Likewise.
78008         * modules/check-version (Makefile.am): Likewise.
78009         * modules/chown (Makefile.am): Likewise.
78010         * modules/cloexec (Makefile.am): Likewise.
78011         * modules/close-stream (Makefile.am): Likewise.
78012         * modules/closeout (Makefile.am): Likewise.
78013         * modules/crc (Makefile.am): Likewise.
78014         * modules/cycle-check (Makefile.am): Likewise.
78015         * modules/des (Makefile.am): Likewise.
78016         * modules/dirfd (Makefile.am): Likewise.
78017         * modules/dirname (Makefile.am): Likewise.
78018         * modules/dup2 (Makefile.am): Likewise.
78019         * modules/euidaccess (Makefile.am): Likewise.
78020         * modules/exclude (Makefile.am): Likewise.
78021         * modules/exitfail (Makefile.am): Likewise.
78022         * modules/fcntl-safer (Makefile.am): Likewise.
78023         * modules/file-type (Makefile.am): Likewise.
78024         * modules/fileblocks (Makefile.am): Likewise.
78025         * modules/filemode (Makefile.am): Likewise.
78026         * modules/filenamecat (Makefile.am): Likewise.
78027         * modules/fnmatch (Makefile.am): Likewise.
78028         * modules/fopen-safer (Makefile.am): Likewise.
78029         * modules/fpending (Makefile.am): Likewise.
78030         * modules/fprintftime (Makefile.am): Likewise.
78031         * modules/free (Makefile.am): Likewise.
78032         * modules/fsusage (Makefile.am): Likewise.
78033         * modules/ftruncate (Makefile.am): Likewise.
78034         * modules/fts (Makefile.am): Likewise.
78035         * modules/gc (Makefile.am): Likewise.
78036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78037         * modules/getaddrinfo (Makefile.am): Likewise.
78038         * modules/getcwd (Makefile.am): Likewise.
78039         * modules/getdelim (Makefile.am): Likewise.
78040         * modules/getdomainname (Makefile.am): Likewise.
78041         * modules/getgroups (Makefile.am): Likewise.
78042         * modules/gethostname (Makefile.am): Likewise.
78043         * modules/gethrxtime (Makefile.am): Likewise.
78044         * modules/getline (Makefile.am): Likewise.
78045         * modules/getloadavg (Makefile.am): Likewise.
78046         * modules/getlogin_r (Makefile.am): Likewise.
78047         * modules/getopt (Makefile.am): Likewise.
78048         * modules/getpass (Makefile.am): Likewise.
78049         * modules/getpass-gnu (Makefile.am): Likewise.
78050         * modules/getsubopt (Makefile.am): Likewise.
78051         * modules/gettime (Makefile.am): Likewise.
78052         * modules/gettimeofday (Makefile.am): Likewise.
78053         * modules/getugroups (Makefile.am): Likewise.
78054         * modules/getusershell (Makefile.am): Likewise.
78055         * modules/glob (Makefile.am): Likewise.
78056         * modules/group-member (Makefile.am): Likewise.
78057         * modules/hard-locale (Makefile.am): Likewise.
78058         * modules/hash (Makefile.am): Likewise.
78059         * modules/hmac-md5 (Makefile.am): Likewise.
78060         * modules/hmac-sha1 (Makefile.am): Likewise.
78061         * modules/human (Makefile.am): Likewise.
78062         * modules/idcache (Makefile.am): Likewise.
78063         * modules/imaxabs (Makefile.am): Likewise.
78064         * modules/imaxdiv (Makefile.am): Likewise.
78065         * modules/inet_ntop (Makefile.am): Likewise.
78066         * modules/inet_pton (Makefile.am): Likewise.
78067         * modules/inttostr (Makefile.am): Likewise.
78068         * modules/isapipe (Makefile.am): Likewise.
78069         * modules/lchown (Makefile.am): Likewise.
78070         * modules/long-options (Makefile.am): Likewise.
78071         * modules/lstat (Makefile.am): Likewise.
78072         * modules/malloc (Makefile.am): Likewise.
78073         * modules/mathl (Makefile.am): Likewise.
78074         * modules/mbchar (Makefile.am): Likewise.
78075         * modules/md2 (Makefile.am): Likewise.
78076         * modules/md4 (Makefile.am): Likewise.
78077         * modules/md5 (Makefile.am): Likewise.
78078         * modules/memcasecmp (Makefile.am): Likewise.
78079         * modules/memchr (Makefile.am): Likewise.
78080         * modules/memcmp (Makefile.am): Likewise.
78081         * modules/memcoll (Makefile.am): Likewise.
78082         * modules/memcpy (Makefile.am): Likewise.
78083         * modules/memmem (Makefile.am): Likewise.
78084         * modules/memmove (Makefile.am): Likewise.
78085         * modules/mempcpy (Makefile.am): Likewise.
78086         * modules/memrchr (Makefile.am): Likewise.
78087         * modules/memset (Makefile.am): Likewise.
78088         * modules/memxor (Makefile.am): Likewise.
78089         * modules/mkancesdirs (Makefile.am): Likewise.
78090         * modules/mkdir (Makefile.am): Likewise.
78091         * modules/mkdir-p (Makefile.am): Likewise.
78092         * modules/mkdtemp (Makefile.am): Likewise.
78093         * modules/mkstemp (Makefile.am): Likewise.
78094         * modules/mktime (Makefile.am): Likewise.
78095         * modules/modechange (Makefile.am): Likewise.
78096         * modules/mountlist (Makefile.am): Likewise.
78097         * modules/nanosleep (Makefile.am): Likewise.
78098         * modules/openat (Makefile.am): Likewise.
78099         * modules/pagealign_alloc (Makefile.am): Likewise.
78100         * modules/physmem (Makefile.am): Likewise.
78101         * modules/poll (Makefile.am): Likewise.
78102         * modules/posixtm (Makefile.am): Likewise.
78103         * modules/posixver (Makefile.am): Likewise.
78104         * modules/putenv (Makefile.am): Likewise.
78105         * modules/quote (Makefile.am): Likewise.
78106         * modules/quotearg (Makefile.am): Likewise.
78107         * modules/raise (Makefile.am): Likewise.
78108         * modules/read-file (Makefile.am): Likewise.
78109         * modules/readline (Makefile.am): Likewise.
78110         * modules/readlink (Makefile.am): Likewise.
78111         * modules/readtokens (Makefile.am): Likewise.
78112         * modules/readutmp (Makefile.am): Likewise.
78113         * modules/realloc (Makefile.am): Likewise.
78114         * modules/regex (Makefile.am): Likewise.
78115         * modules/rename (Makefile.am): Likewise.
78116         * modules/rename-dest-slash (Makefile.am): Likewise.
78117         * modules/rijndael (Makefile.am): Likewise.
78118         * modules/rmdir (Makefile.am): Likewise.
78119         * modules/rpmatch (Makefile.am): Likewise.
78120         * modules/safe-read (Makefile.am): Likewise.
78121         * modules/safe-write (Makefile.am): Likewise.
78122         * modules/same (Makefile.am): Likewise.
78123         * modules/save-cwd (Makefile.am): Likewise.
78124         * modules/savedir (Makefile.am): Likewise.
78125         * modules/setenv (Makefile.am): Likewise.
78126         * modules/settime (Makefile.am): Likewise.
78127         * modules/sha1 (Makefile.am): Likewise.
78128         * modules/sig2str (Makefile.am): Likewise.
78129         * modules/snprintf (Makefile.am): Likewise.
78130         * modules/stdlib-safer (Makefile.am): Likewise.
78131         * modules/stpcpy (Makefile.am): Likewise.
78132         * modules/stpncpy (Makefile.am): Likewise.
78133         * modules/strcase (Makefile.am): Likewise.
78134         * modules/strcasestr (Makefile.am): Likewise.
78135         * modules/strchrnul (Makefile.am): Likewise.
78136         * modules/strcspn (Makefile.am): Likewise.
78137         * modules/strdup (Makefile.am): Likewise.
78138         * modules/strerror (Makefile.am): Likewise.
78139         * modules/strftime (Makefile.am): Likewise.
78140         * modules/strndup (Makefile.am): Likewise.
78141         * modules/strnlen (Makefile.am): Likewise.
78142         * modules/strpbrk (Makefile.am): Likewise.
78143         * modules/strsep (Makefile.am): Likewise.
78144         * modules/strstr (Makefile.am): Likewise.
78145         * modules/strtod (Makefile.am): Likewise.
78146         * modules/strtoimax (Makefile.am): Likewise.
78147         * modules/strtok_r (Makefile.am): Likewise.
78148         * modules/strtol (Makefile.am): Likewise.
78149         * modules/strtoll (Makefile.am): Likewise.
78150         * modules/strtoul (Makefile.am): Likewise.
78151         * modules/strtoull (Makefile.am): Likewise.
78152         * modules/strtoumax (Makefile.am): Likewise.
78153         * modules/strverscmp (Makefile.am): Likewise.
78154         * modules/time_r (Makefile.am): Likewise.
78155         * modules/timegm (Makefile.am): Likewise.
78156         * modules/tmpfile-safer (Makefile.am): Likewise.
78157         * modules/unistd-safer (Makefile.am): Likewise.
78158         * modules/unlinkdir (Makefile.am): Likewise.
78159         * modules/userspec (Makefile.am): Likewise.
78160         * modules/utime (Makefile.am): Likewise.
78161         * modules/utimecmp (Makefile.am): Likewise.
78162         * modules/utimens (Makefile.am): Likewise.
78163         * modules/vasnprintf (Makefile.am): Likewise.
78164         * modules/vasprintf (Makefile.am): Likewise.
78165         * modules/vsnprintf (Makefile.am): Likewise.
78166         * modules/xalloc (Makefile.am): Likewise.
78167         * modules/xgetcwd (Makefile.am): Likewise.
78168         * modules/xnanosleep (Makefile.am): Likewise.
78169         * modules/xreadlink (Makefile.am): Likewise.
78170         * modules/xstrtod (Makefile.am): Likewise.
78171         * modules/xstrtol (Makefile.am): Likewise.
78172         * modules/xstrtold (Makefile.am): Likewise.
78173         * modules/yesno (Makefile.am): Likewise.
78174
78175 2006-10-12  Jim Meyering  <jim@meyering.net>
78176
78177         * m4/getloadavg.m4: Revert the change below.
78178
78179         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78180         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78181         fail with a symlink, which is what coreutils' ./bootstrap now
78182         creates by default.
78183
78184 2006-10-12  Bruno Haible  <bruno@clisp.org>
78185
78186         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78187         mingw.
78188         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78189         MSVC and mingw explicitly.
78190
78191 2006-10-11  Simon Josefsson  <jas@extundo.com>
78192             Bruno Haible  <bruno@clisp.org>
78193
78194         Add support for multiple gnulib-tool invocations in the scope of a
78195         single configure.ac file.
78196         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78197         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78198         with the same contents as the _LIBADD variable.
78199         (func_emit_initmacro_start, func_emit_initmacro_end,
78200         func_emit_initmacro_done): New functions.
78201         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78202         gl_LIBOBJS and gl_LTLIBOBJS.
78203
78204 2006-10-11  Bruno Haible  <bruno@clisp.org>
78205
78206         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78207         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78208         autoreconf. Instead, invoke autopoint explicitly but move back the
78209         *.m4 files from gnulib.
78210
78211 2006-10-11  Bruno Haible  <bruno@clisp.org>
78212
78213         * gnulib-tool (func_usage): Make module names after --create-testdir
78214         optional.
78215         (func_create_testdir): If no module was specified, use nearly all
78216         modules.
78217
78218 2006-10-12  Jim Meyering  <jim@meyering.net>
78219
78220         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78221         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78222         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78223         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78224         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78225         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78226         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78227         (fts_set_stat_required): New function.
78228         (fts_open): Defer the calls to fts_stat, if possible or requested.
78229         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78230         into fts_stat itself.
78231         (fts_read): Perform any required (deferred) fts_stat call.
78232         (fts_build): Likewise, for the directory we're about to open and read.
78233         In the readdir loop, carefully decide whether each entry will require
78234         an eventual call to fts_stat, using dirent.d_type info if available.
78235         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78236         a command line argument into this function.  Update all callers.
78237         Map a return value of FTS_DOT to FTS_D for a command line argument.
78238         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78239         Thanks to Miklos Szeredi for his tenacity and for the initial
78240         bug report about "find" failing on a FUSE-based file system.
78241
78242         * lib/fts.c (fts_open): Use consistent indentation.
78243
78244 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78245
78246         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78247         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78248         reported by Jim Meyering.  All uses of cache variables renamed
78249         to match Autoconf's.
78250         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78251         the other one.
78252
78253         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78254         Fix misspelling in diagnostic.
78255
78256 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78259         defined.  Problem reported by Matthew Woehlke.
78260
78261         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78262         Add support for Tandem NonStop R series.
78263         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78264         Use new macro.
78265
78266         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78267         (has_trailing_slash): Omit size arg; all callers changed.
78268         Omit 'inline', since it doesn't help performance and we'd
78269         need to configure it.
78270         Don't count //, ///, etc. as having a trailing slash.
78271         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78272         (rpl_rename_dest_slash): On failure, use rename's errno rather
78273         than (in some cases) an incorrect or junk errno.
78274         Simplify code by removing need to compute length; this does
78275         cause it to make two passes instead of one over the file name,
78276         but it's worth it.
78277
78278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78279         change, since Autoconf's version may no longer be appropriate now
78280         that we are using CVS Autoconf's version.  Add support for Tandem.
78281
78282 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78283             Bruno Haible  <bruno@clisp.org>
78284
78285         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78286         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78287         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78288         gl_AC_TYPE_LONG_LONG.
78289
78290         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78291         instead of HAVE_LONG_LONG.
78292         * lib/printf-args.c (printf_fetchargs): Likewise.
78293         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78294         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78296         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78297         gl_AC_TYPE_LONG_LONG.
78298
78299 2006-10-11  Bruno Haible  <bruno@clisp.org>
78300
78301         * m4/longlong.m4: Add comments.
78302         * m4/ulonglong.m4: Likewise.
78303
78304 2006-10-10  Bruno Haible  <bruno@clisp.org>
78305
78306         Make it possible to #define stpcpy, strdup to aliases.
78307         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78308         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78309
78310 2006-10-10  Bruno Haible  <bruno@clisp.org>
78311
78312         Make it possible to #define gcd to an alias.
78313         * lib/gcd.c: Include config.h.
78314
78315 2006-10-10  Bruno Haible  <bruno@clisp.org>
78316
78317         Make it possible to #define c_isascii to an alias.
78318         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78319         defined. Undefine the macros before defining them, to avoid gcc
78320         warnings.
78321         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78322         define NO_C_CTYPE_MACROS early.
78323
78324 2006-10-10  Bruno Haible  <bruno@clisp.org>
78325
78326         Make it possible to #define set_program_name to an alias.
78327         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78328         ENABLE_RELOCATABLE early.
78329
78330 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78333         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78334         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78335         More generally, don't assume that 64-bit signed int is available
78336         if unsigned int is, and vice versa.
78337         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78338         unsigned symbols, not on their signed counterparts.
78339         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78340         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78341         (UINT64_C, UINTMAX_C):
78342         Likewise.
78343         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78344         unsigned counterparts.
78345         (Have_long_long, Unsigned): New macros.
78346         (Int): Renamed from INT.
78347         (strtoimax): Use the new macros.
78348         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78349         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78350         * modules/inttypes (inttypes.h): Substitute
78351         HAVE_UNSIGNED_LONG_LONG_INT.
78352         * modules/stdint (stdint.h): Likewise.
78353         (Files): Add m4/ulonglong.m4.
78354
78355 2006-10-10  Bruno Haible  <bruno@clisp.org>
78356
78357         Fix a gcc -Wshadow warning.
78358         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78359         to 'bucket'.
78360         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78361         gl_linked_indexof_from_to): Likewise.
78362         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78363         Likewise.
78364         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78365         Likewise.
78366         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78367         Reported by Eric Blake.
78368
78369 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78370
78371         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78372         for NetBSD.  Problem reported by Bruno Haible.
78373
78374 2006-10-09  Jim Meyering  <jim@meyering.net>
78375
78376         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78377         Patch from Bruno Haible.
78378
78379 2006-10-09  Jim Meyering  <jim@meyering.net>
78380
78381         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78382         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78383         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78384
78385 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         Don't include <config.h> twice; this doesn't work in some cases,
78388         e.g., when config.h has "#define intmax_t long long int" and
78389         we include <config.h>, <inttypes.h>, <config.h> in that order.
78390         Problem reported by Matthew Woehlke in:
78391         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78392         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78393         * lib/fts-cycle.c: Don't include config.h.
78394         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78395         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78396         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78397         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78398         inttypes.h.
78399         * lib/xstrtoumax.c: Likewise.
78400         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78401         __strtol and the like, so that this module is more like its siblings.
78402         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78403         Remove; no longer needed now that we assume gnulib inttypes.h.
78404
78405 2006-10-08  Bruno Haible  <bruno@clisp.org>
78406
78407         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78408         option.
78409
78410 2006-10-07  Jim Meyering  <jim@meyering.net>
78411
78412         * modules/inttypes (inttypes.h): Revert what seems to have been
78413         an inadvertent part of today's change: use "|", not "/" in the
78414         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78415
78416 2006-10-07  Bruno Haible  <bruno@clisp.org>
78417
78418         * modules/sublist: New file.
78419
78420 2006-10-07  Bruno Haible  <bruno@clisp.org>
78421
78422         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78423         * modules/argz (argz.h): Likewise.
78424         * modules/arpa_inet (arpa/inet.h): Likewise.
78425         * modules/byteswap (byteswap.h): Likewise.
78426         * modules/configmake (configmake.h): Likewise.
78427         * modules/fcntl (fcntl.h): Likewise.
78428         * modules/fnmatch (fnmatch.h): Likewise.
78429         * modules/getopt (getopt.h): Likewise.
78430         * modules/glob (glob.h): Likewise.
78431         * modules/inttypes (inttypes.h): Likewise.
78432         * modules/netinet_in (netinet/in.h): Likewise.
78433         * modules/poll (poll.h): Likewise.
78434         * modules/stdbool (stdbool.h): Likewise.
78435         * modules/stdint (stdint.h): Likewise.
78436         * modules/sys_select (sys/select.h): Likewise.
78437         * modules/sys_socket (sys/socket.h): Likewise.
78438         * modules/sys_stat (sys/stat.h): Likewise.
78439         * modules/sysexits (sysexits.h): Likewise.
78440         * modules/unistd (unistd.h): Likewise.
78441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78442         Add a "DO NOT EDIT" comment to the generated file.
78443         (func_import): Likewise for gnulib-comp.m4.
78444
78445 2006-10-07  Bruno Haible  <bruno@clisp.org>
78446
78447         * lib/gl_sublist.h: New file.
78448         * lib/gl_sublist.c: New file.
78449
78450 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78453         name (relative to the original working directory) and the file
78454         name component (relative to the temporary working directory).  All
78455         callers changed.
78456         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78457         * lib/mkdir-p.c (make_dir_parents): Likewise.
78458         * lib/mkdir-p.h (make_dir_parents): Likewise.
78459
78460 2006-10-06  Eric Blake  <ebb9@byu.net>
78461
78462         Define several macros for use by the clean-temp module.
78463         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78464         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78465         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78466
78467         * lib/clean-temp.h (close_stream_temp): New declaration.
78468         * lib/clean-temp.c (includes): Pull in headers according to what
78469         other modules are in use.
78470         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78471
78472 2006-10-06  Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78475         instead of fopen, fwriteerror.
78476
78477 2006-10-06  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78480         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78481         int.
78482         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78483         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78484         Return an error indicator.
78485         Suggested by Eric Blake.
78486
78487 2006-10-06  Bruno Haible  <bruno@clisp.org>
78488
78489         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78490         Reported by Eric Blake.
78491
78492 2006-10-06  Bruno Haible  <bruno@clisp.org>
78493
78494         * modules/closeout (Description): Mention stderr too.
78495
78496 2006-10-06  Bruno Haible  <bruno@clisp.org>
78497         and Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         * lib/closeout.c (close_stdout): Also close stderr.
78500         * lib/closeout.h: Update comment.
78501
78502 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78505         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78506         * lib/dirchownmod.c: Include lchown.h.
78507         * lib/lchown.c: Don't include files that lchown.h now includes.
78508         Don't declare chown, since lchown.h now does that.
78509         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78510         (lchown): Define to rpl_chown if lchown is declared but
78511         does not exist.  Declare using a prototype if lchown is not
78512         declared.  Add a copyright notice.
78513         * lib/mkstemp.h: Include <unistd.h>.
78514         * lib/openat.c: Include lchown.h.
78515
78516         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78517         we now test for that separately.
78518         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78519         rather than O_NOFOLLOW, when testing whether it's possible to
78520         avoid a race condition reliably.
78521         * lib/savewd.c (savewd_chdir): Likewise.
78522
78523         Remove macros that are no longer needed now that stdint.h is
78524         reliable.
78525         * lib/fsusage.c (UINTMAX_MAX): Remove.
78526         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78527         * lib/utimecmp.c (SIZE_MAX): Remove.
78528
78529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78530
78531         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78532         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78533         O_NOATIME works.
78534
78535 2006-10-05  Bruno Haible  <bruno@clisp.org>
78536
78537         * lib/gl_list.h (gl_sortedlist_search_from_to,
78538         gl_sortedlist_indexof_from_to): New declarations.
78539         (gl_list_implementation): New fields sortedlist_search_from_to,
78540         sortedlist_indexof_from_to.
78541         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78542         inline functions.
78543         * lib/gl_list.c (gl_sortedlist_search_from_to,
78544         gl_sortedlist_indexof_from_to): New functions.
78545         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78546         function.
78547         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78548         (gl_array_sortedlist_search_from_to): New function.
78549         (gl_array_list_implementation): Update.
78550         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78551         function.
78552         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78553         (gl_carray_sortedlist_search_from_to): New function.
78554         (gl_carray_list_implementation): Update.
78555         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78556         gl_linked_sortedlist_indexof_from_to): New functions.
78557         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78558         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78559         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78560         gl_tree_sortedlist_indexof_from_to): New functions.
78561         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78562         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78563         Update.
78564         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78565         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78566         Update.
78567
78568 2006-10-05  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78571         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78572         (struct gl_list_implementation): Add fields search_from_to,
78573         indexof_from_to. Remove fields search, indexof.
78574         (gl_list_search): Use the search_from_to method.
78575         (gl_list_search_from, gl_list_search_from_to): New functions.
78576         (gl_list_indexof): Use the indexof_from_to method.
78577         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78578         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78579         (gl_list_search_from, gl_list_search_from_to): New functions.
78580         (gl_list_indexof): Use the indexof_from_to method.
78581         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78582         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78583         gl_array_indexof. Add start_index, end_index arguments.
78584         (gl_array_search_from_to): Renamed from gl_array_search. Add
78585         start_index, end_index arguments.
78586         (gl_array_remove, gl_array_list_implementation): Update.
78587         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78588         gl_carray_indexof. Add start_index, end_index arguments.
78589         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78590         start_index, end_index arguments.
78591         (gl_carray_remove, gl_carray_list_implementation): Update.
78592         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78593         gl_linked_search. Add start_index, end_index arguments.
78594         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78595         start_index, end_index arguments.
78596         (gl_linked_remove): Update.
78597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78599         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78600         field to 'size_t'.
78601         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78602         gl_tree_search. Add start_index, end_index arguments.
78603         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78604         start_index, end_index arguments.
78605         (gl_tree_remove): Update.
78606         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78607         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78608         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78609         function.
78610         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78611         gl_tree_search. Add start_index, end_index arguments.
78612         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78613         start_index, end_index arguments.
78614         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78615         Update.
78616         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78617
78618 2006-10-05  Bruno Haible  <bruno@clisp.org>
78619
78620         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78621
78622         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78623         fwriteerror_temp): New declarations.
78624         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78625         (descriptors): New variable.
78626         (cleanup): First, close the descriptors.
78627         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78628         fclose_temp, fwriteerror_temp): New functions.
78629
78630 2006-10-04  Jim Meyering  <jim@meyering.net>
78631
78632         * lib/fts.c (fts_open): Tiny comment change.
78633
78634 2006-10-04  Bruno Haible  <bruno@clisp.org>
78635
78636         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78637         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78638         gl_LOCK_BODY.
78639         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78640         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78641         gl_LOCK_EARLY_BODY.
78642         (gl_LOCK): Require gl_LOCK_BODY.
78643
78644 2006-10-04  Bruno Haible  <bruno@clisp.org>
78645
78646         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78647         (gl_oset_search_atleast): New declaration.
78648         (struct gl_oset_implementation): Add field 'search_atleast'.
78649         (gl_oset_search_atleast): New inline function.
78650         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78651         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78652         (gl_array_oset_implementation): Update.
78653         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78654         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78655         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78656
78657 2006-10-04  Bruno Haible  <bruno@clisp.org>
78658
78659         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78660
78661 2006-10-03  Bruno Haible  <bruno@clisp.org>
78662
78663         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78664         from gl_avltreehash_list_implementation.
78665
78666 2006-10-03  Bruno Haible  <bruno@clisp.org>
78667
78668         * lib/gl_oset.c (gl_oset_add): Fix return type.
78669
78670 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78671
78672         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78673
78674 2006-10-02  Eric Blake  <ebb9@byu.net>
78675
78676         * modules/strnlen (Depends-on): Add extensions.
78677
78678 2006-10-02  Eric Blake  <ebb9@byu.net>
78679
78680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78681         definition in 2.60+.
78682
78683 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78684
78685         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78686         checks.
78687
78688 2006-10-02  Bruno Haible  <bruno@clisp.org>
78689
78690         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78691         to the AUTOMAKE_OPTIONS.
78692         Reported by Jim Meyering.
78693
78694 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         Work around bug in Solaris 10 /proc file system:
78697         /proc/self/fd/NNN/.. isn't the parent directory of
78698         the directory whose file descriptor is NNN.  This needs to
78699         be worked around at run time, not compile time, since a
78700         program might be built on Solaris 8, where things work, and
78701         run on Solaris 10.
78702         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78703         to use the following interface instead:
78704         (OPENAT_BUFFER_SIZE): New macro.
78705         (openat_proc_name): New function.
78706         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78707         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78708         Likewise.
78709         * lib/openat-proc.c: New file.
78710         * modules/openat (Files): Add lib/openat-proc.c.
78711         (Depends-on): Add same-inode, stdbool.
78712         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78713
78714 2006-09-29  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78717         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78718         argument. Set stdout_closed before testing for ferror, not after.
78719         (fwriteerror, fwriteerror_no_ebadf): New functions.
78720
78721 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78722
78723         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78724
78725 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78726
78727         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78728         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78729
78730 2006-09-28  Jim Meyering  <jim@meyering.net>
78731
78732         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78733         Include <unistd.h>.
78734
78735 2006-09-28  Bruno Haible  <bruno@clisp.org>
78736
78737         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78738         * modules/linkedhash-list (Depends-on): Likewise.
78739         * modules/rbtreehash-list (Depends-on): Likewise.
78740
78741 2006-09-28  Bruno Haible  <bruno@clisp.org>
78742
78743         * lib/strndup.h: Simplify the redefinition of strndup.
78744         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78746
78747 2006-09-28  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78750         * lib/gl_linkedhash_list.c: Likewise.
78751         * lib/gl_rbtreehash_list.c: Likewise.
78752
78753 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78756         getaddrinfo.
78757
78758         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78759         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78760         it causes <stdio_ext.h> to cause a compile-time error.
78761         Problem reported by Nelson H. F. Beebe.
78762         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78763         of HAVE_DECL___PENDING.
78764
78765         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78767         declaration.
78768
78769 2006-09-27  Jim Meyering  <jim@meyering.net>
78770
78771         This file could end up with a definition for a function
78772         named __strndup, rather than rpl_strndup on a system with
78773         incomplete weak_alias support.
78774         * lib/strndup.c (strndup): Rename from __strndup.
78775         Remove #defines that used to map __strndup to strndup.
78776         Don't use K&R prototypes.
78777         Remove LIBC-related code, since this file is not sync'd with glibc.
78778         * lib/strndup.h: Revamp, accordingly.
78779         * m4/strndup.m4: Modernize.
78780
78781 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78782
78783         * modules/savewd (Depends-on): Add 'raise'.
78784         * lib/savewd.c: Include <signal.h>, for 'raise'.
78785
78786 2006-09-26  Jim Meyering  <jim@meyering.net>
78787
78788         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78789         when we detect Darwin 8.7.0's acl_get_file bug.
78790         Rearrange to perform the new (below) run-test while $LIBS
78791         contains any acl-related library.  Set USE_ACL at the end.
78792         (gl_ACL_GET_FILE): New function.
78793
78794 2006-09-26  Eric Blake  <ebb9@byu.net>
78795
78796         * lib/verror.c: Include <config.h> unconditionally.
78797
78798 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78799
78800         * modules/clock-time (Maintainer): Add self.
78801         * modules/getlogin_r (Depends-on): Add extensions.
78802
78803 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78804
78805         * modules/clock-time: New module.
78806         * modules/nanosleep (Depends-on): Add clock-time.
78807         * modules/gethrxtime (Depends-on): Likewise.
78808         * modules/gettime (Depends-on): Likewise.
78809         * modules/settime (Depends-on): Likewise.
78810
78811         * modules/fts-lgpl: Depend on openat.
78812         * modules/mkancesdirs: Depend on savewd.
78813         * modules/mkdir-p: Likewise.
78814
78815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78816
78817         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78818
78819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78820         `gl_have_arbitrary_file_name_length_limit' to
78821         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78822         actually works between configure runs.
78823
78824 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78825             Bruno Haible  <bruno@clisp.org>
78826
78827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78828
78829 2006-09-25  Jim Meyering  <jim@meyering.net>
78830
78831         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78832         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78833
78834 2006-09-25  Eric Blake  <ebb9@byu.net>
78835
78836         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78837         exec's in 2006-09-18 patch when shuffling fds.
78838
78839 2006-09-25  Bruno Haible  <bruno@clisp.org>
78840
78841         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78842         Reported by Jim Meyering.
78843
78844 2006-09-24  Jim Meyering  <jim@meyering.net>
78845
78846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78847         compare a pointer against a literal "0".  That caused failures with
78848         at least HP-UX's hpcc.
78849
78850 2006-09-22  Simon Josefsson  <jas@extundo.com>
78851
78852         * modules/gc-sha1:
78853         * modules/gc-md4:
78854         * modules/gc-hmac-sha1:
78855         * modules/gc-hmac-md5:
78856         * modules/gc-des:
78857         * modules/gc-arcfour: Distribute more files.
78858
78859 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78860
78861         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78862         (gl_linked_iterator_from_to): Initialize struct completely.
78863         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78864         (gl_tree_iterator_from_to): Likewise
78865         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78866         * lib/gl_array_list.c [lint] (gl_array_iterator)
78867         (gl_array_iterator_from_to): Likewise.
78868         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78869         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78870         (gl_carray_iterator_from_to): Likewise.
78871
78872         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78873         * lib/md4.c (md4_process_block): Remove unused variable.
78874         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78875         parentheses for clarity.
78876
78877 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78878
78879         * modules/bison-i18n (Depends-on): Add gettext.
78880
78881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78882
78883         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78884         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78885         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78886         also add missing comma that caused broken test.
78887         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78888         stdlib.h, for `abort'.
78889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78890         variables.
78891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78892         include unistd.h if present, for `rmdir'.
78893         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78894         variables.
78895         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78896         in the process include standard headers for prototypes.
78897         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78898         gets declared on GNU/Linux.
78899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78900         unistd.h, for `rmdir'.
78901         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78902
78903         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78904         always true.
78905         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78906
78907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78908
78909 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78910
78911         * gnulib-tool (func_version): Create output all at once.  This
78912         may help avoid triggering unnecessary SIGPIPEs, and at any
78913         rate it doesn't hurt.
78914
78915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78916             Bruno Haible  <bruno@clisp.org>
78917
78918         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78919         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78920         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78921
78922         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78923         (gl_FUNC_VASPRINTF): Invoke it.
78924
78925 2006-09-22  Bruno Haible  <bruno@clisp.org>
78926
78927         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78928         getloadavg.c as first argument.
78929
78930 2006-09-22  Bruno Haible  <bruno@clisp.org>
78931
78932         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78933         at the beginning of the gl_INIT macro.
78934         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78935         gl_GETLOADAVG.
78936
78937 2006-09-22  Bruno Haible  <bruno@clisp.org>
78938
78939         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78940         module.
78941         Suggested by Ralf Wildenhues.
78942
78943 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         Import this patch from libc:
78946
78947         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78948
78949         * lib/regex_internal.c (re_string_reconstruct): Handle
78950         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78951         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78952         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78953         re_string_context_at.
78954
78955         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78956         now requires it.
78957         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78958         gl_REGEX now does it for us.
78959         (gl_REGEX): Add test taken from
78960         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78961
78962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78963         Check that large offsets work.  Modernize Autoconf usages.
78964         Prefer "yes" to mean a good thing rather than a bad.
78965         Don't put "#define mkstemp" in config.h, as this might interfere
78966         with standard system headers that "#define mkstemp mkstemp64".
78967
78968         * modules/mkstemp (Depends-on): Add extensions, so that
78969         mkstemp is visible on some platforms.
78970         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78971         (Include): Change to "mkstemp.h" from <stdlib.h>.
78972         (Files): Add mkstemp.h.
78973
78974         * lib/mkstemp.h: New file, since some standard headers
78975         #define mkstemp.
78976         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78977         Include "mkstemp.h".
78978         Make the _LIBC code resemble glibc original more,
78979         e.g., use K&R style.
78980         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78981         (mkstemp): Remove, since mkstemp.h does this for us.
78982         * lib/stdlib--.h: Include mkstemp.h.
78983
78984         Import this patch from libc:
78985
78986         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78987
78988         * lib/tempname.c (__gen_tempname): Change attempts_min
78989         into a macro.  Use preprocessor to decide how to initialize
78990         attempts [Coverity CID 67].
78991
78992 2006-09-20  Bruno Haible  <bruno@clisp.org>
78993
78994         * lib/mkdtemp.c: Import from libc.
78995         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78996                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78997                 attempts_min into a macro.  Use preprocessor to decide how to
78998                 initialize attempts [Coverity CID 67].
78999         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79000                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79001                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79002
79003 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79004
79005         * gnulib-tool (func_exit): New function, to allow to pass the
79006         exit status portably through the trap.  Use everywhere.
79007         (--help, --version): Signal a write error.
79008         (trap): catch SIGPIPE, for write errors.
79009         Exit at the end of the trap, with the correct exit status.
79010
79011 2006-09-19  Karl Berry  <karl@gnu.org>
79012
79013         * doc/gnulib.texi: note about the license texinfo files.
79014
79015 2006-09-19  Eric Blake  <ebb9@byu.net>
79016
79017         * gnulib-tool: Avoid space-tab.
79018
79019 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79022         that prevented coreutils 6.1 from building.  Problem reported
79023         by Petter Reinholdtsen.
79024
79025 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * gnulib-tool (avoidlist): Fix typo that broke options like
79028         --avoid=lock that are used by coreutils bootstrap.
79029
79030 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79031
79032         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79033         more systematically.
79034
79035 2006-09-18  Jim Meyering  <jim@meyering.net>
79036
79037         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79038
79039 2006-09-18  Bruno Haible  <bruno@clisp.org>
79040
79041         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79042
79043 2006-09-18  Bruno Haible  <bruno@clisp.org>
79044
79045         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79046         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79047         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79048         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79049         * m4/gettext.m4: Require autoconf >= 2.52.
79050         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79051         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79052         of gl_cv_header_inttypes_h.
79053
79054 2006-09-18  Bruno Haible  <bruno@clisp.org>
79055
79056         * lib/javaversion.c: Include configmake.h.
79057
79058 2006-09-18  Bruno Haible  <bruno@clisp.org>
79059
79060         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79061         avoid that the while loops be executed in a subshell.
79062
79063 2006-09-18  Bruno Haible  <bruno@clisp.org>
79064
79065         * MODULES.html.sh (func_module): Break long lines.
79066         Suggested by Bruce Korb <bkorb@gnu.org>.
79067
79068 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79069
79070         Speed up by a factor of 1.12.
79071         * gnulib-tool (nl): New variable.
79072         (func_import): Rewrite include directive extraction to only read each
79073         directive once.
79074
79075 2006-09-17  Bruno Haible  <bruno@clisp.org>
79076
79077         * modules/javaversion (Makefile.am): Remove DEFS setting.
79078         (Depends-on): Add configmake, for PKGDATADIR definition.
79079
79080 2006-09-17  Bruno Haible  <bruno@clisp.org>
79081
79082         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79083
79084 2006-09-17  Bruno Haible  <bruno@clisp.org>
79085
79086         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79087         (func_modules_transitive_closure, func_modules_add_dummy,
79088         func_modules_to_filelist, func_import, func_create_testdir,
79089         func_create_megatestdir, ...): Use it wherever possible.
79090         Suggested by Ralf Wildenhues.
79091
79092 2006-09-16  Karl Berry  <karl@gnu.org>
79093
79094         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79095         to avoid sectioning errors.
79096         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79097         [ifinfo]: blank line after @center-ed titles.
79098         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79099         Spell FSF address consistently with others.
79100         (These changes approved by rms.)
79101
79102 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79103
79104         Speed up by a factor of 1.61.
79105         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79106         already checked module names again.
79107
79108 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79109
79110         Speed up by a factor of 1.13.
79111         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79112         for new_files, and the input to func_add_or_update.
79113
79114 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79115
79116         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79117         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79118
79119 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * modules/mkancesdirs (Depends-on): Add fcntl.
79122         * modules/savewd: New file.
79123         * MODULES.html.sh (File system functions): Add savewd.
79124
79125         * modules/configmake (Makefile.am): Add support for the
79126         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79127
79128 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * m4/savewd.m4: New file.
79131
79132 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79135         (dirchownmod): New arg FD.  All callers changed.
79136         Use FD rather than opening the directory ourself, as opening is
79137         now the caller's responsibility.
79138         * lib/dirchownmod.h: Likewise.
79139         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79140         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79141         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79142         (test_dir): Remove.
79143         (mkancesdirs): Return length of prefix of FILE that has already
79144         been made, or -2 if there is a child doing the work.  Redo
79145         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79146         ".", and treat ".." specially since it might stray back into
79147         already-created areas.  Use a subprocess if necessary.  New arg
79148         WD; all users changed.  MAKE_DIR function should now return 1
79149         if it creates a directory that is not readable.  Return -2 if
79150         a child process is spun off.
79151         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79152         Adjust signature to match code.
79153         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79154         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79155         all users changed.
79156         * lib/savewd.c, lib/savewd.h: New files.
79157
79158 2006-09-15  Jim Meyering  <jim@meyering.net>
79159
79160         * modules/rename-dest-slash: New module.
79161         * MODULES.html.sh (posix_compat): Add it here.
79162
79163         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79164
79165 2006-09-15  Jim Meyering  <jim@meyering.net>
79166
79167         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79168         file.
79169
79170         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79171
79172 2006-09-15  Jim Meyering  <jim@meyering.net>
79173
79174         * lib/rename-dest-slash.c (has_trailing_slash): Use
79175         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79176         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79177         test before testing whether SRC is a directory.
79178         Suggestions from Bruno Haible.
79179
79180         Avoid a warning about an unused variable.
79181         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79182         into the #ifdef block where it's used.
79183
79184         * lib/rename-dest-slash.c: New file.
79185
79186 2006-09-14  Bruno Haible  <bruno@clisp.org>
79187
79188         * lib/allocsa.c: Include <config.h> unconditionally.
79189         * lib/asnprintf.c: Likewise.
79190         * lib/asprintf.c: Likewise.
79191         * lib/c-strcasecmp.c: Likewise.
79192         * lib/c-strcasestr.c: Likewise.
79193         * lib/c-strncasecmp.c: Likewise.
79194         * lib/c-strstr.c: Likewise.
79195         * lib/classpath.c: Likewise.
79196         * lib/clean-temp.c: Likewise.
79197         * lib/concatpath.c: Likewise.
79198         * lib/copy-file.c: Likewise.
79199         * lib/csharpcomp.c: Likewise.
79200         * lib/csharpexec.c: Likewise.
79201         * lib/execute.c: Likewise.
79202         * lib/fatal-signal.c: Likewise.
79203         * lib/findprog.c: Likewise.
79204         * lib/fwriteerror.c: Likewise.
79205         * lib/gl_array_list.c: Likewise.
79206         * lib/gl_array_oset.c: Likewise.
79207         * lib/gl_avltree_list.c: Likewise.
79208         * lib/gl_avltree_oset.c: Likewise.
79209         * lib/gl_avltreehash_list.c: Likewise.
79210         * lib/gl_carray_list.c: Likewise.
79211         * lib/gl_linked_list.c: Likewise.
79212         * lib/gl_linkedhash_list.c: Likewise.
79213         * lib/gl_list.c: Likewise.
79214         * lib/gl_oset.c: Likewise.
79215         * lib/gl_rbtree_list.c: Likewise.
79216         * lib/gl_rbtree_oset.c: Likewise.
79217         * lib/gl_rbtreehash_list.c: Likewise.
79218         * lib/imaxabs.c: Likewise.
79219         * lib/imaxdiv.c: Likewise.
79220         * lib/javacomp.c: Likewise.
79221         * lib/javaexec.c: Likewise.
79222         * lib/javaversion.c: Likewise.
79223         * lib/linebreak.c: Likewise.
79224         * lib/localcharset.c: Likewise.
79225         * lib/lock.c: Likewise.
79226         * lib/mbchar.c: Likewise.
79227         * lib/mbswidth.c: Likewise.
79228         * lib/mkdtemp.c: Likewise.
79229         * lib/pipe.c: Likewise.
79230         * lib/printf-args.c: Likewise.
79231         * lib/printf-parse.c: Likewise.
79232         * lib/progname.c: Likewise.
79233         * lib/progreloc.c: Likewise.
79234         * lib/readlink.c: Likewise.
79235         * lib/sh-quote.c: Likewise.
79236         * lib/stpcpy.c: Likewise.
79237         * lib/stpncpy.c: Likewise.
79238         * lib/strcasecmp.c: Likewise.
79239         * lib/strcasestr.c: Likewise.
79240         * lib/strcspn.c: Likewise.
79241         * lib/striconv.c: Likewise.
79242         * lib/strncasecmp.c: Likewise.
79243         * lib/strnlen1.c: Likewise.
79244         * lib/strstr.c: Likewise.
79245         * lib/strtok_r.c: Likewise.
79246         * lib/tls.c: Likewise.
79247         * lib/tmpdir.c: Likewise.
79248         * lib/unicodeio.c: Likewise.
79249         * lib/unsetenv.c: Likewise.
79250         * lib/vasnprintf.c: Likewise.
79251         * lib/vasprintf.c: Likewise.
79252         * lib/wait-process.c: Likewise.
79253         * lib/xallocsa.c: Likewise.
79254         * lib/xsetenv.c: Likewise.
79255         * lib/xstriconv.c: Likewise.
79256
79257 2006-09-13  Simon Josefsson  <jas@extundo.com>
79258
79259         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79260         that internally, suggested by Ralf Wildenhues
79261         <Ralf.Wildenhues@gmx.de>.
79262
79263 2006-09-13  Simon Josefsson  <jas@extundo.com>
79264
79265         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79266         @LIBOBJS@.
79267         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79268
79269 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79272         longer worry about uses that don't define HAVE_CONFIG_H.
79273         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79274         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79275         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79276         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79277         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79278         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79279         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79280         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79281         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79282         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79283         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79284         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79285         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79286         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79287         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79288         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79289         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79290         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79291         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79292         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79293         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79294         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79295         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79296         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79297         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79298         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79299         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79300         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79301         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79302         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79303         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79304         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79305         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79306         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79307         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79308         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79309         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79310         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79311         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79312         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79313         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79314         Likewise.
79315
79316 2006-09-13  Eric Blake  <ebb9@byu.net>
79317
79318         * lib/getopt.c: Fix typo in last commit.
79319
79320 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79321
79322         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79323         dgettext.
79324
79325 2006-09-12  Jim Meyering  <jim@meyering.net>
79326
79327         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79328         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79329         Reported by Nelson H. F. Beebe.
79330
79331 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79332
79333         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79334         program_invocation_name and program_invocation_short_name are
79335         initialized.
79336         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79337         and program_invocation_short_name to argp.h, so they are visible
79338         to user programs.
79339         * lib/argp.h: Likewise
79340
79341 2006-09-10  Bruno Haible  <bruno@clisp.org>
79342
79343         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79344         m4/inttypes_h.m4, m4/uintmax_t.m4.
79345
79346 2006-09-10  Bruno Haible  <bruno@clisp.org>
79347
79348         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79349         gl_AC_TYPE_UINTMAX_T.
79350
79351 2006-09-10  Bruno Haible  <bruno@clisp.org>
79352
79353         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79354
79355 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79356
79357         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79358         convention.  Text proposed by Bruno Haible.
79359         (struct argp_option): Document the use of N_() wrappers.
79360
79361         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79362         '\v', and translate the two parts separately, instead of feeding
79363         the whole string to gettext.  This allows to exclude
79364         '\v' from the strings visible to the translator by writing doc
79365         strings as N_("..") "\v" N_("..").
79366
79367 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79368
79369         * config/srclist.txt: Undo latest change; the bug was fixed.
79370
79371 2006-09-09  Bruno Haible  <bruno@clisp.org>
79372
79373         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79374         assignments if building a library without libtool.
79375         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79376         in func_emit_lib_Makefile_am.
79377         (func_import): When building a static library libfoo.a, arrange to
79378         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79379         (func_create_testdir): Likewise.
79380         * modules/gc (configure.ac, Makefile.am): If building statically,
79381         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79382         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79383         * modules/striconv (configure.ac, Makefile.am): Likewise.
79384         Based on a suggestion by Ralf Wildenhues.
79385
79386 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79389         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79390         Also:
79391
79392         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79393         Add year_2050_test to catch glibc bug 2821
79394         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79395
79396         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79397         Prefer #ifdef to #if.
79398
79399         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79400         Return from 'main' instead of calling 'exit'.
79401
79402 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79405         returned the maximum time_t value rather than (time_t) -1.
79406         Problem originally reported by William Bardwell
79407         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79408
79409         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79410         Moved to here ...
79411         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79412         ... from here.
79413
79414 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79417         2821 is fixed.
79418
79419 2006-09-08  Jim Meyering  <jim@meyering.net>
79420
79421         Don't make generated files read-only.  That would bother too many
79422         people.  However, do retain the ability to work when targets are
79423         read-only: remove the destination and temporary files before writing
79424         them (when generated via sed or echo), or by using the -f option for
79425         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79426         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79427         * modules/byteswap, modules/configmake, modules/fcntl:
79428         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79429         * modules/localcharset, modules/netinet_in, modules/poll:
79430         * modules/stdbool, modules/stdint, modules/sys_select:
79431         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79432
79433 2006-09-08  Jim Meyering  <jim@meyering.net>
79434
79435         Avoid new build failure on FreeBSD 6.0.
79436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79437         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79438         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79439
79440 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79441
79442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79443
79444 2006-09-07  Jim Meyering  <jim@meyering.net>
79445
79446         Fix global typo in last change: use chmod u-w, not chmod u-x.
79447         Spotted by Paul Eggert and Bruce Korb.
79448         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79449         * modules/byteswap, modules/configmake, modules/fcntl:
79450         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79451         * modules/localcharset, modules/netinet_in, modules/poll:
79452         * modules/stdbool, modules/stdint, modules/sys_select:
79453         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79454
79455 2006-09-06  Jim Meyering  <jim@meyering.net>
79456
79457         Make generated files be read-only.
79458         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79459         Ensure that each generated file is now read-only.
79460         * modules/argz: Likewise.
79461         * modules/arpa_inet: Likewise.
79462         * modules/byteswap: Likewise.
79463         * modules/configmake: Likewise.
79464         * modules/fcntl: Likewise.
79465         * modules/fnmatch: Likewise.
79466         * modules/getopt: Likewise.
79467         * modules/glob: Likewise.
79468         * modules/inttypes: Likewise.
79469         * modules/netinet_in: Likewise.
79470         * modules/poll: Likewise.
79471         * modules/stdbool: Likewise.
79472         * modules/stdint: Likewise.
79473         * modules/sys_select: Likewise.
79474         * modules/sys_socket: Likewise.
79475         * modules/sys_stat: Likewise.
79476         * modules/sysexits: Likewise.
79477         * modules/localcharset: Same as above, but continue using temporary
79478         file named "t-$@" (why different?) rather than the "$@-t" used
79479         everywhere else.
79480
79481         * modules/sysexits (Makefile.am): Replace literal occurrences
79482         of "sysexit.h" more readable, and more consistent, "$@".
79483
79484 2006-09-06  Bruno Haible  <bruno@clisp.org>
79485
79486         * modules/striconv: New file.
79487         * modules/xstriconv: New file.
79488         * MODULES.html.sh (Internationalization functions): Add striconv,
79489         xstriconv.
79490
79491 2006-09-06  Bruno Haible  <bruno@clisp.org>
79492
79493         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79494         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79495         not using libtool correctly.
79496
79497 2006-09-06  Bruno Haible  <bruno@clisp.org>
79498
79499         * lib/striconv.h: New file.
79500         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79501         iconvstring.c.
79502         * lib/xstriconv.h: New file.
79503         * lib/xstriconv.c: New file.
79504
79505 2006-09-06  Bruno Haible  <bruno@clisp.org>
79506
79507         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79508         lib_..._LDFLAGS.
79509
79510 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79511
79512         * lib/argz_.h: Sync from Libtool.
79513
79514         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79515                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79516
79517         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79518
79519 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79520
79521         * modules/trim: New file.
79522
79523 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79524
79525         * lib/trim.h: New file.
79526         * lib/trim.c: New file.
79527
79528 2006-09-05  Bruno Haible  <bruno@clisp.org>
79529
79530         * MODULES.html.sh (String handling): Add trim.
79531
79532 2006-09-04  Karl Berry  <karl@gnu.org>
79533
79534         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79535         until next release.
79536
79537 2006-09-03  Bruno Haible  <bruno@clisp.org>
79538
79539         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79540         correctly.
79541
79542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79545         not gl_GETLOADAVG.  Omit unneeded semicolons.
79546         Problems reported by Ralf Wildenhues in
79547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79548         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79549         at the end, which is the usual gnulib style.
79550
79551         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79552         of doing all the work ourselves.
79553         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79554         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79555
79556 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79559         Problem reported by Ralf Wildenhues in
79560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79561
79562         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79563         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79564
79565 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79568         yesterday's patch by changing test -n to test -z.
79569
79570 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79573         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79574         the former is now obsolescent.
79575
79576         * modules/chdir-long (Depends-on): Add fcntl.
79577
79578 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79581         obsolescent, and programs should use gnulib instead.
79582         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79583         but with prefixes changed.
79584
79585 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79588         or stdbool.h, because they might not exist while configuring.
79589
79590         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79591         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79592         does that for us.
79593         (O_DIRECTORY): Remove.
79594
79595 2006-08-31  Eric Blake  <ebb9@byu.net>
79596
79597         * gnulib-tool: Don't let emacs change spaces to TAB.
79598
79599 2006-08-31  Bruno Haible  <bruno@clisp.org>
79600
79601         * gnulib-tool: When calling func_import more than once, do it in a
79602         subshell.
79603         Reported by Eric Blake <ebb9@byu.net>.
79604
79605 2006-08-31  Bruno Haible  <bruno@clisp.org>
79606
79607         * gnulib-tool (nl): Remove variable.
79608         (sed_transform_lib_file): Use more robust test for config-h module.
79609         (func_import): Fix typo in 2006-08-25 patch.
79610
79611 2006-08-31  Bruno Haible  <bruno@clisp.org>
79612
79613         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79614         specified, augment Makefile.am variables instead of assigning them.
79615
79616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         Work around a bug in both the Linux and SunOS 64-bit kernels:
79619         nanosleep mishandles sleeps for longer than 2**31 seconds.
79620         Problem reported by Frank v Waveren in
79621         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79623         Check for nanosleep bug.
79624         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79625
79626 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         Work around a bug in both the Linux and SunOS 64-bit kernels:
79629         nanosleep mishandles sleeps for longer than 2**31 seconds.
79630         Problem reported by Frank v Waveren in
79631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79632         * lib/nanosleep.c (BILLION): New constant.
79633         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79634         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79635         implementation.
79636
79637 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79638
79639         * modules/nanosleep (Depends-on): Add gettime.
79640
79641 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79642         and Simon Josefsson  <jas@extundo.com>
79643         and Oskar Liljeblad  <oskar@osk.mine.nu>
79644
79645         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79646         * gnulib-tool (func_import): New license type 'unmodifiable license
79647         text'.
79648         * modules/fdl: Use it.  Longer description.
79649         * module/gpl, module/lgpl: New files.
79650
79651 2006-08-30  Jim Meyering  <jim@meyering.net>
79652
79653         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79654         shadowing the parameter.
79655
79656 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79657
79658         Sync from Libtool:
79659
79660         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79661
79662         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79663         sharing with gnulib.  Report by Eric Blake.
79664
79665 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * modules/isapipe: New file.
79668         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79669
79670 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * modules/configmake (Makefile.am): Add a comment, and omit
79673         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79674         by Bruno Haible.
79675
79676 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79677
79678         * m4/isapipe.m4: New file.
79679
79680 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * lib/isapipe.c, lib/isapipe.h: New files.
79683
79684 2006-08-29  Jim Meyering  <jim@meyering.net>
79685
79686         * modules/configmake (Makefile.am): Make configmake.h depend on
79687         Makefile.  Otherwise, a stale configmake.h could hang around.
79688
79689 2006-08-29  Eric Blake  <ebb9@byu.net>
79690
79691         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79692         resolution of upstream bug 3044.
79693
79694 2006-08-29  Bruno Haible  <bruno@clisp.org>
79695
79696         * modules/localcharset (Depends-on): Add configmake.
79697         (Makefile.am): Remove setting of LIBDIR through DEFS.
79698
79699 2006-08-29  Bruno Haible  <bruno@clisp.org>
79700
79701         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79702         defined.
79703
79704 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         * modules/fcntl: New file.
79707         * modules/chdir-safer (Depends-on): Add fcntl.
79708         * modules/fts: Likewise.
79709         * modules/mkdir-p: Likewise.
79710
79711         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79712         This undoes the most recent change, since we're now addressing the
79713         problem in a different way.
79714
79715         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79716         into output, since the output might be called Makefile.am even
79717         if $makefile_name is something different.
79718         (func_import): Use $makefile_am rather than
79719         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79720         empty.
79721
79722         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79723
79724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79727         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79728         recent change to stdint.m4, since we're now addressing the problem in a
79729         different way.
79730
79731 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * m4/fcntl_h.m4: New file.
79734
79735 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79736
79737         * lib/fcntl_.h: New file.
79738         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79739         the fcntl module.
79740         * lib/dirchownmod.c: Likewise.
79741         * lib/fts.c: Likewise.
79742
79743         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79744         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79745         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79746         just before including <inttypes.h>, to avoid circular inclusion.
79747
79748 2006-08-28  Jim Meyering  <jim@meyering.net>
79749
79750         * doc/visibility.texi: Actually read and correct the grammar of the
79751         sentence affected by yesterday's change.
79752
79753 2006-08-28  Eric Blake  <ebb9@byu.net>
79754
79755         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79756         needs wrapper.
79757
79758 2006-08-28  Eric Blake  <ebb9@byu.net>
79759
79760         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79761
79762 2006-08-28  Eric Blake  <ebb9@byu.net>
79763
79764         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79765
79766 2006-08-28  Bruno Haible  <bruno@clisp.org>
79767
79768         * modules/c-strstr: New file, from GNU gettext.
79769         * MODULES.html.sh (String handling): Add c-strstr.
79770
79771 2006-08-28  Bruno Haible  <bruno@clisp.org>
79772
79773         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79774         macros.
79775         Reported by Eric Blake.
79776
79777 2006-08-28  Bruno Haible  <bruno@clisp.org>
79778
79779         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79780         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79781         * lib/vasprintf.c: Include errno.h, limits.h.
79782         (EOVERFLOW): New fallback definition.
79783         (vasprintf): Test here whether the string length is > INT_MAX.
79784         * lib/vsnprintf.c: Include errno.h, limits.h.
79785         (EOVERFLOW): New fallback definition.
79786         (vsnprintf): Fix bug when generated string was too long for the buffer.
79787         Test here whether the string length is > INT_MAX.
79788
79789 2006-08-28  Bruno Haible  <bruno@clisp.org>
79790
79791         * lib/inttypes_.h (SCNX*): Remove definitions.
79792         Reported by Eric Blake.
79793
79794 2006-08-28  Bruno Haible  <bruno@clisp.org>
79795
79796         * lib/c-strstr.h: New file, from GNU gettext.
79797         * lib/c-strstr.c: New file, from GNU gettext.
79798
79799 2006-08-28  Bruno Haible  <bruno@clisp.org>
79800
79801         * gnulib-tool: Reorder some statements.
79802
79803 2006-08-28  Bruno Haible  <bruno@clisp.org>
79804
79805         * gnulib-tool: New option --makefile-name.
79806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79807         $makefile_name.
79808         (func_import): Write $makefile_name to the cache file, and read it from
79809         there unless explicitly specified. Use $makefile_name as file name
79810         instead of Makefile.am. Adjust the recommendations accordingly.
79811
79812 2006-08-28  Bruno Haible  <bruno@clisp.org>
79813
79814         * gnulib-tool (func_verify_module): Check against misapplying patch.
79815
79816 2006-08-28  Bruno Haible  <bruno@clisp.org>
79817
79818         * gnulib-tool (func_relativize, func_relconcat): New functions.
79819         Give an error if --local-dir is given with --update.
79820         Remove trailing slashes from $local_gnulib_dir.
79821         (func_import): Store the relativized $local_gnulib_dir in
79822         gnulib-cache.m4, and read it from there if not specified explicitly.
79823
79824 2006-08-28  Bruno Haible  <bruno@clisp.org>
79825
79826         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79827         is the current directory. Respect also $local_gnulib_dir.
79828
79829 2006-08-28  Bruno Haible  <bruno@clisp.org>
79830             Simon Josefsson  <jas@extundo.com>
79831
79832         BeOS portability.
79833         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79834
79835 2006-08-27  Jim Meyering  <jim@meyering.net>
79836
79837         * doc/visibility.texi: Remove duplicate word: "pointer".
79838
79839 2006-08-26  Bruno Haible  <bruno@clisp.org>
79840
79841         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79842         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79843         (Makefile.am): Create inttypes.h from inttypes_.h.
79844         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79845
79846         * modules/imaxabs: New file.
79847
79848         * modules/imaxdiv: New file.
79849
79850 2006-08-26  Bruno Haible  <bruno@clisp.org>
79851
79852         * m4/inttypes.m4: New file.
79853         * m4/_inttypes_h.m4: Remove file.
79854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79855         PRI_MACROS_BROKEN.
79856         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79857
79858         * m4/imaxabs.m4: New file.
79859
79860         * m4/imaxdiv.m4: New file.
79861
79862 2006-08-26  Bruno Haible  <bruno@clisp.org>
79863
79864         * lib/inttypes_.h: New file.
79865         * lib/inttypes.h: Remove file.
79866         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79867
79868         * lib/imaxabs.c: New file.
79869
79870         * lib/imaxdiv.c: New file.
79871
79872 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         New config-h module, so that "make" output needn't be cluttered
79875         by -DHAVE_CONFIG_H.
79876         * MODULES.html.sh (Support for building libraries and executables):
79877         Add config-h.
79878         * modules/config-h: New file.
79879         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79880         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79881         the config-h module is used.
79882
79883         New configmake module, so that "make" output needn't be cluttered
79884         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79885         * MODULES.html.sh (Support for building libraries and executables):
79886         Add configmake.
79887         * modules/configmake: New file.
79888
79889 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * m4/config-h.m4: New file.
79892
79893 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * config/srclist.txt: Add elisp-comp.
79896
79897 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * MODULES.html.sh (Support for building libraries and executables):
79900         Add elisp-comp.
79901         * build-aux/elisp-comp: New file.
79902         * modules/elisp-comp: New file.
79903
79904 2006-08-24  Bruno Haible  <bruno@clisp.org>
79905
79906         * gnulib-tool (func_create_testdir): Use non-default values of
79907         sourcebase and m4base.
79908
79909 2006-08-24  Bruno Haible  <bruno@clisp.org>
79910
79911         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79912         HTML structure.
79913
79914 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         * modules/openat (Depends-on): Add lchown.
79917
79918 2006-08-23  Bruno Haible  <bruno@clisp.org>
79919
79920         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79921         of gl_LOCK_EARLY instead of gl_LOCK.
79922
79923 2006-08-23  Bruno Haible  <bruno@clisp.org>
79924
79925         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79926         on OSF/1 to no.
79927         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79928
79929 2006-08-23  Bruno Haible  <bruno@clisp.org>
79930
79931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79932         as unusable.
79933
79934         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79935         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79936         (gl_LOCK): New macro.
79937
79938 2006-08-22  Simon Josefsson  <jas@extundo.com>
79939
79940         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79941         to md5 module.
79942
79943 2006-08-22  Simon Josefsson  <jas@extundo.com>
79944
79945         * MODULES.html.sh: Add "Support for maintaining and release
79946         projects".
79947
79948         * build-aux/gnupload: New file, from coreutils.
79949
79950 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79951
79952         Avoid the need for AC_LIBSOURCES in m4 macros.
79953         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79954         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79955         * modules/check-version (EXTRA_DIST): Add check-version.h.
79956         * modules/crc (EXTRA_DIST): Add crc.h.
79957         * modules/des (EXTRA_DIST): Add des.h.
79958         * modules/gc (EXTRA_DIST): Add gc.h.
79959         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79960         * modules/getline (EXTRA_DIST): Add getline.h.
79961         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79962         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79963         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79964         * modules/md2 (EXTRA_DIST): Add md2.h.
79965         * modules/md4 (EXTRA_DIST): Add md4.h.
79966         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79967         * modules/read-file (EXTRA_DIST): Add read-file.h.
79968         * modules/readline (EXTRA_DIST): Add readline.h.
79969         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79970         rijndael-api-fst.h.
79971
79972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * m4/rijndael.m4 (gl_ARCFOUR):
79975         * m4/arctwo.m4 (gl_ARCTWO):
79976         * m4/check-version.m4 (gl_CHECK_VERSION):
79977         * m4/crc.m4 (gl_CRC):
79978         * m4/des.m4 (gl_DES):
79979         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79980         * m4/gc.m4 (gl_GC):
79981         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79982         * m4/getline.m4 (gl_FUNC_GETLINE):
79983         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79984         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79985         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79986         * m4/md2.m4 (gl_MD2):
79987         * m4/md4.m4 (gl_MD4):
79988         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79989         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79990         * m4/readline.m4 (gl_FUNC_READLINE):
79991         * m4/rijndael.m4 (gl_RIJNDAEL):
79992         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79993         to get the necessary .h files and whatnot.
79994
79995 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79998         gnulib rather than the other way around.
79999         * config/srclistvars.sh (COREUTILS): Remove.
80000
80001 2006-08-22  Jim Meyering  <jim@meyering.net>
80002
80003         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80004
80005         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80006
80007 2006-08-22  Eric Blake  <ebb9@byu.net>
80008
80009         * modules/regexprops-generic: New file.
80010         * MODULES.html.sh (Support for building documentation): List it.
80011
80012 2006-08-22  Eric Blake  <ebb9@byu.net>
80013
80014         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80015         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80017         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80018
80019 2006-08-22  Bruno Haible  <bruno@clisp.org>
80020
80021         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80022         and lib_LTLIBRARIES like the other lib_* variables.
80023
80024 2006-08-22  Bruno Haible  <bruno@clisp.org>
80025
80026         * build-aux/x-to-1.in: New file, from GNU gettext.
80027
80028 2006-08-22  Bruno Haible  <bruno@clisp.org>
80029
80030         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80031         <utmpx.h> exists.
80032
80033 2006-08-22  Bruno Haible  <bruno@clisp.org>
80034
80035         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80036         <utmpx.h> exists.
80037
80038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         BeOS portability.
80041         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80042         exist.
80043         Problem reported by Bruno Haible.
80044
80045 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         Avoid the need for AC_LIBSOURCES in m4 macros.
80048         * modules/acl (EXTRA_DIST): Add acl.h.
80049         * modules/argmatch (Files): Add m4/argmatch.m4.
80050         (configure.ac): Add gl_ARGMATCH.
80051         (EXTRA_DIST): Renamed from lib_SOURCES, for
80052         consistency with the other modules.  Remove argmatch.c.
80053         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80054         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80055         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80056         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80057         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80058         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80059         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80060         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80061         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80062         * modules/closeout (EXTRA_DIST): Add closeout.h.
80063         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80064         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80065         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80066         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80067         dirname.h; remove basename.c and stripslash.c.
80068         * modules/exclude (EXTRA_DIST): Add exclude.h.
80069         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80070         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80071         * modules/file-type (EXTRA_DIST): Add file-type.h.
80072         * modules/filemode (EXTRA_DIST): Add filemode.h.
80073         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80074         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80075         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80076         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80077         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80078         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80079         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80080         * modules/getdate (EXTRA_DIST): Add getdate.c.
80081         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80082         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80083         * modules/getpass (EXTRA_DIST): Add getpass.h.
80084         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80085         * modules/group-member (EXTRA_DIST): Add group-member.h.
80086         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80087         * modules/hash (EXTRA_DIST): Add hash.h.
80088         * modules/human (EXTRA_DIST): Add human.h.
80089         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80090         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80091         * modules/lchown (EXTRA_DIST): Add lchown.h.
80092         * modules/long-options (EXTRA_DIST): Add long-options.h.
80093         * modules/lstat (EXTRA_DIST): Add lstat.h.
80094         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80095         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80096         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80097         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80098         * modules/memxor (EXTRA_DIST): Add memxor.h.
80099         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80100         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80101         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80102         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80103         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80104         * modules/physmem (EXTRA_DIST): Add physmem.h.
80105         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80106         * modules/posixver (EXTRA_DIST): Add posixver.h.
80107         * modules/quote (EXTRA_DIST): Add quote.h.
80108         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80109         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80110         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80111         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80112         regex_internal.h regexec.c.
80113         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80114         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80115         * modules/same (EXTRA_DIST): Add same.h.
80116         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80117         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80118         * modules/savedir (EXTRA_DIST): Add savedir.h.
80119         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80120         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80121         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80122         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80123         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80124         * modules/strdup (EXTRA_DIST): Add strdup.h.
80125         * modules/strftime (EXTRA_DIST): Add strftime.h.
80126         * modules/strndup (EXTRA_DIST): Add strndup.h.
80127         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80128         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80129         * modules/time_r (EXTRA_DIST): Add time_r.h.
80130         * modules/timespec (EXTRA_DIST): Add timespec.h.
80131         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80132         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80133         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80134         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80135         * modules/userspec (EXTRA_DIST): Add userspec.h.
80136         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80137         * modules/utimens (EXTRA_DIST): Add utimens.h.
80138         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80139         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80140         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80141         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80142         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80143         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80144         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80145         * modules/yesno (EXTRA_DIST): Add yesno.h.
80146
80147 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80150
80151         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80152         * m4/dev-ino.m4, same-inode.m4: Remove.
80153
80154         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80155         * m4/acl.m4 (AC_FUNC_ACL):
80156         * m4/backupfile.m4 (gl_BACKUPFILE):
80157         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80158         * m4/canon-host.m4 (gl_CANON_HOST):
80159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80160         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80161         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80162         * m4/cloexec.m4 (gl_CLOEXEC):
80163         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80164         * m4/closeout.m4 (gl_CLOSEOUT):
80165         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80166         * m4/dirname.m4 (gl_DIRNAME):
80167         * m4/exclude.m4 (gl_EXCLUDE):
80168         * m4/exitfail.m4 (gl_EXITFAIL):
80169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80170         * m4/file-type.m4 (gl_FILE_TYPE):
80171         * m4/filemode.m4 (gl_FILEMODE):
80172         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80173         * m4/fpending.m4 (gl_FUNC_FPENDING):
80174         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80175         * m4/fts.m4 (gl_FUNC_FTS):
80176         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80177         * m4/getdate.m4 (gl_GETDATE):
80178         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80179         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80180         * m4/getpass.m4 (gl_FUNC_GETPASS):
80181         * m4/gettime.m4 (gl_GETTIME):
80182         * m4/getugroups.m4 (gl_GETUGROUPS):
80183         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80184         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80185         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80186         * m4/hash.m4 (gl_HASH):
80187         * m4/idcache.m4 (gl_IDCACHE):
80188         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80189         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80190         * m4/long-options.m4 (gl_LONG_OPTIONS):
80191         * m4/lstat.m4 (gl_FUNC_LSTAT):
80192         * m4/md5.m4 (gl_MD5):
80193         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80194         * m4/memcoll.m4 (gl_MEMCOLL):
80195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80196         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80197         * m4/memxor.m4 (gl_MEMXOR):
80198         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80200         * m4/modechange.m4 (gl_MODECHANGE):
80201         * m4/mountlist.m4 (gl_MOUNTLIST):
80202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80203         * m4/openat.m4 (gl_FUNC_OPENAT):
80204         * m4/pathmax.m4 (gl_PATHMAX):
80205         * m4/physmem.m4 (gl_PHYSMEM):
80206         * m4/posixtm.m4 (gl_POSIXTM):
80207         * m4/posixver.m4 (gl_POSIXVER):
80208         * m4/quote.m4 (gl_QUOTE):
80209         * m4/quotearg.m4 (gl_QUOTEARG):
80210         * m4/readtokens.m4 (gl_READTOKENS):
80211         * m4/readutmp.m4 (gl_READUTMP):
80212         * m4/regex.m4 (gl_REGEX):
80213         * m4/safe-read.m4 (gl_SAFE_READ):
80214         * m4/safe-write.m4 (gl_SAFE_WRITE):
80215         * m4/same.m4 (gl_SAME):
80216         * m4/save-cwd.m4 (gl_SAVE_CWD):
80217         * m4/savedir.m4 (gl_SAVEDIR):
80218         * m4/settime.m4 (gl_SETTIME):
80219         * m4/sha1.m4 (gl_SHA1):
80220         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80221         * m4/stat-macros.m4 (gl_STAT_MACROS):
80222         * m4/stat-time.m4 (gl_STAT_TIME):
80223         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80224         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80225         * m4/strdup.m4 (gl_FUNC_STRDUP):
80226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80227         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80228         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80229         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80230         * m4/time_r.m4 (gl_TIME_R):
80231         * m4/timespec.m4 (gl_TIMESPEC):
80232         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80233         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80234         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80235         * m4/userspec.m4 (gl_USERSPEC):
80236         * m4/utimecmp.m4 (gl_UTIMECMP):
80237         * m4/utimens.m4 (gl_UTIMENS):
80238         * m4/xalloc.m4 (gl_XALLOC):
80239         * m4/xgetcwd.m4 (gl_XGETCWD):
80240         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80241         * m4/xreadlink.m4 (gl_XREADLINK):
80242         * m4/xstrtod.m4 (gl_XSTRTOD):
80243         * m4/yesno.m4 (gl_YESNO):
80244         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80245         to get the necessary .h files and whatnot.
80246
80247 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80248             Bruno Haible  <bruno@clisp.org>
80249
80250         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80251         /bin/sh understanding of '!' conditional negation.
80252
80253 2006-08-21  Jim Meyering  <jim@meyering.net>
80254
80255         * modules/openat (Depends-on): Really alphabetize.
80256
80257         * modules/acl (Depends-on): Add error and quote.
80258
80259         * check-module (find_included_lib_files): Add at-func.c to the
80260         ok-to-include-more-than-once white list.
80261
80262         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80263
80264 2006-08-21  Bruno Haible  <bruno@clisp.org>
80265
80266         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80267         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80268         Reported by Martin Lambers <marlam@marlam.de>.
80269
80270 2006-08-21  Bruno Haible  <bruno@clisp.org>
80271
80272         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80273         specify an installation location, don't emit a noinst_LIBRARIES or
80274         noinst_LTLIBRARIES assignment.
80275
80276 2006-08-21  Bruno Haible  <bruno@clisp.org>
80277
80278         BeOS portability.
80279         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80280         BeOS has mbrtowc() but no <wctype.h>.
80281
80282 2006-08-21  Bruno Haible  <bruno@clisp.org>
80283
80284         BeOS portability.
80285         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80286         exist.
80287
80288 2006-08-21  Bruno Haible  <bruno@clisp.org>
80289
80290         BeOS portability.
80291         * lib/mbchar.h: Include <wctype.h> only if it exists.
80292
80293 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         Remove files that are no longer needed by their respective modules.
80296         * m4/obstack.m4: Remove.
80297         * m4/strerror_r.m4: Remove.
80298         * m4/uint32_t.m4: Remove.
80299         * m4/uintptr_t.m4: Remove.
80300         * m4/ullong_max.m4: Remove.
80301         * m4/xstrtoimax.m4: Remove.
80302         * m4/xstrtoumax.m4: Remove.
80303
80304         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80305         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80306         dependencies now capture this.
80307
80308         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80309         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80310         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80311         * m4/human.m4 (gl_HUMAN): Likewise.
80312         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80313         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80314
80315         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80316
80317         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80318         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80319         stdint.
80320         * m4/human.m4 (gl_HUMAN): Likewise.
80321         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80323         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80324         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80325         * m4/xstrtol (gl_XSTRTOL): Likewise.
80326
80327         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80328         AC_TYPE_LONG_LONG_INT.
80329         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80330         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80331         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80332         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80333
80334         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80335         on stdbool.
80336
80337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80338         (gl_PREREQ_XSTRTOUL): Remove.
80339
80340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80341
80342         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80343         mode.
80344
80345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         Add and change modules to make it easier for coreutils to use
80348         gnulib-tool.
80349         * modules/backupfile (Files): Remove m4/d-ino.m4.
80350         (Depends-on): Add d-ino.
80351         * modules/cycle-check (Depends-on): Add stdint.
80352         (lib_SOURCES): Add cycle-check.h.
80353         * modules/d-ino: New module.
80354         * modules/d-type: New module.
80355         * modules/error (Files): Remove m4/strerror_r.m4.
80356         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80357         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80358         m4/inttypes_h.m4, m4/uintmax_t.m4.
80359         (Depends-on): Add stdint.
80360         (lib_SOURCES): Add fsusage.h.
80361         * modules/getcwd (Files): Remove d-ino.m4.
80362         (Depends-on): Add d-ino.
80363         * modules/getndelim2 (Depends-on): Add stdint.
80364         * modules/glob (Files): Remove m4/d-type.m4.
80365         (Depends-on): Add d-type.
80366         * modules/host-os: New module.
80367         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80368         m4/inttypes_h.m4, m4/uintmax_t.m4.
80369         * Depends-on: Add stdint.
80370         (lib_SOURCES): Add human.h.
80371         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80372         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80373         m4/uintmax_t.m4, m4/ulonglong.m4.
80374         (Depends-on): Add stdint.
80375         (EXTRA_DIST): Add inttostr.h.
80376         * modules/lchmod: New module.
80377         * modules/link-follow: New module.
80378         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80379         (Depends-on): Add lchmod.
80380         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80382         (Depends-on): Add stdint.
80383         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80384         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80385         (Depends-on): Add stdint.
80386         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80387         * modules/perl: New module.
80388         * modules/regex (Depends-on): Add stdint.
80389         * modules/rmdir-errno: New module.
80390         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80391         m4/intmax_t.m4.
80392         (Depends-on): Add stdint.
80393         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80394         m4/uintmax_t.m4.
80395         (Depends-on): Add stdint.
80396         * modules/unlink-busy: New module.
80397         * modules/utimecmp (Depends-on): Add stdint.
80398         * modules/uptime: New module.
80399         * modules/winsz-ioctl: New module.
80400         * modules/winsz-termios: New module.
80401         * modules/xnanosleep (Depends-on): Add nanosleep.
80402         * modules/ullong_max: Remove.
80403         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80404         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80405         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80406         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80407         (Depends-on): Add inttypes.
80408         (lib_SOURCES): Add xstrtol.h.
80409         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80410         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80411         * MODULES.html.sh: Move 'assert' into the assert section.
80412         Move 'dummy' into the linking section.
80413         Remove ullong_max.
80414         Add section for compatibility checks for POSIX:2001 functions,
80415         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80416         winsz-ioctl, and winsz-termios into it.
80417         Add lchmod.
80418         Add top-level Misc section and put host-os, perl, and uptime
80419         into it.
80420
80421 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80424         now assume the stdint module.  Do not include inttypes.h.
80425         * lib/fsusage.h: Likewise.
80426         * lib/getndelim2.c: Likewise.
80427         * lib/human.h: Likewise.
80428         * lib/inttostr.h: Likewise.
80429         * lib/obstack.c: Likewise.
80430         * lib/regex_internal.h: Likewise.
80431         * lib/tempname.c: Likewise.
80432         * lib/utimecmp.c: Likewise.
80433         * lib/xstrtol.h: Likewise.
80434
80435         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80436
80437         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80438         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80439         * lib/xtime.h: Likewise.
80440
80441 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * modules/openat (Files): Add lib/fchmodat.c.
80444         Fixes problem reported by Jay Youngman.
80445
80446 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80449         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80450
80451 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80452             Bruno Haible  <bruno@clisp.org>
80453
80454         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80455         and is a script that invokes bison. Tighten the code. Add comments.
80456
80457 2006-08-18  Jim Meyering  <jim@meyering.net>
80458
80459         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80460         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80461         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80462         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80463
80464 2006-08-18  Bruno Haible  <bruno@clisp.org>
80465
80466         * modules/bison-i18n: New file.
80467         * MODULES.html.sh (Internationalization functions): Add it.
80468
80469 2006-08-18  Bruno Haible  <bruno@clisp.org>
80470
80471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80472         sys/statvfs.h. When getmntinfo was found, check its declaration and
80473         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80474
80475 2006-08-18  Bruno Haible  <bruno@clisp.org>
80476
80477         * m4/bison-i18n.m4: New file, from bison.
80478
80479 2006-08-18  Bruno Haible  <bruno@clisp.org>
80480
80481         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80482         (ME_DUMMY): Treat "kernfs" as a dummy.
80483         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80484
80485 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80486
80487         Update from coreutils.
80488
80489         2006-08-15  Jim Meyering  <jim@meyering.net>
80490
80491         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80492
80493         2006-01-17  Jim Meyering  <jim@meyering.net>
80494
80495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80496
80497         2006-01-11  Jim Meyering  <jim@meyering.net>
80498
80499         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80500         Check for the lchmod function.
80501
80502 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80503
80504         Update from coreutils.
80505
80506         * lib/__fpending.h: Add copyright notice.
80507         * lib/fprintftime.h: Likewise.
80508         * lib/savedir.c: Use (C) in copyright notice.
80509         * lib/savedir.h: Likewise.
80510
80511         2006-08-15  Jim Meyering  <jim@meyering.net>
80512
80513         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80514         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80515         in support of the EXPECTED_ERRNO macro.
80516         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80517         definitions.  Instead, define the appropriate symbols and include
80518         "at-func.c".
80519         * lib/mkdirat.c (mkdirat): Likewise.
80520         * lib/fchmodat.c (fchmodat): Likewise.
80521         (ENOSYS): Remove definition.
80522         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80523         it.  Don't include "unistd--.h" -- it wasn't ever used.
80524
80525         2006-01-17  Jim Meyering  <jim@meyering.net>
80526
80527         Rewrite fts.c not to change the current working directory,
80528         by using openat, fstatat, fdopendir, etc..
80529
80530         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80531         (HAVE_OPENAT_SUPPORT): Define.
80532         [_LIBC] (fchdir): Don't undef or define; no longer used.
80533         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80534         Now, this `function' always succeeds, and consumes its file descriptor
80535         parameter -- so callers must not close such FDs.  Update callers.
80536         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80537         (diropen): Add parameter, SP.  Adjust all callers.
80538         Implement using diropen_fd, rather than open.
80539         (fts_open): Initialize new member, fts_cwd_fd.
80540         Remove fts_rft-setting code.
80541         (fts_close): Close fts_cwd_fd, if necessary.
80542         (__opendir2): Define in terms of opendir or opendirat,
80543         depending on whether the FST_NOCHDIR flag is set.
80544         (fts_build): Since fts_safe_changedir consumes its FD, and since
80545         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80546         and close the dup'd file descriptor upon failure.
80547         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80548         (fts_safe_changedir): Tweak semantics to reflect that this function
80549         now calls cwd_advance_fd and hence consumes its FD argument.
80550         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80551         [struct FTS] (fts_rft): Remove now-unused member.
80552         [struct FTS] (fts_cycle.state): Improve comment.
80553
80554         * lib/openat.c (openat_needs_fchdir): New function.
80555         * lib/openat.h (openat_needs_fchdir): Declare it.
80556
80557 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80560         Problem and fix reported by Pádraig Brady in
80561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80562
80563 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80564
80565         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80566
80567 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80568
80569         * lib/memcoll.c (memcoll): Optimize for the common case where the
80570         arguments are bytewise equal.
80571
80572 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * doc/regexprops-generic.texi: Add a copyright notice.
80575
80576 2006-08-15  Bruno Haible  <bruno@clisp.org>
80577
80578         * modules/tmpdir (License): Change to LGPL.
80579
80580 2006-08-15  Bruno Haible  <bruno@clisp.org>
80581
80582         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80583         module.
80584
80585 2006-08-14  Simon Josefsson  <jas@extundo.com>
80586
80587         * config/srclist.txt: Add gnupload.
80588
80589 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         Change copyright notice from LGPL 2 to GPL 2, since that's the
80592         standard form used in the gnulib repository.
80593         * tests/test-lock.c: Likewise.
80594         * tests/test-stdint.c: Likewise.
80595         * tests/test-tls.c: Likewise.
80596
80597         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80598         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80599         Add copyright notice.
80600
80601         * check-module: Add copyright notice.  Output a copyright
80602         notice if "--version" is specified.
80603         * modules/COPYING: New file.
80604         * tests/test-getaddrinfo.c: Add copyright notice.
80605         * tests/test-verify.c: Likewise.
80606
80607 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         Change copyright notice from LGPL 2 to GPL 2, since that's the
80610         standard form used in the gnulib repository.
80611         * lib/lock.c: LGPL -> GPL.
80612         * lib/lock.h: Likewise.
80613         * lib/strnlen1.c: Likewise.
80614         * lib/strnlen1.h: Likewise.
80615         * lib/tls.c: Likewise.
80616         * lib/tls.h: Likewise.
80617         * lib/tmpdir.c: Likewise.
80618
80619         * lib/TODO: Remove; this belongs only in coreutils.
80620
80621 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         Add copyright notices to long-enough files that lack them, since
80624         otherwise the files aren't clearly free.  Use the same notice that
80625         getdate.texi already uses.
80626         * doc/alloca-opt.texi: Add copyright notice.
80627         * doc/alloca.texi: Likewise.
80628         * doc/ctime.texi: Likewise.
80629         * doc/functions.texi: Likewise.
80630         * doc/gcd.texi: Likewise.
80631         * doc/gnulib-tool.texi: Likewise.
80632         * doc/inet_ntoa.texi: Likewise.
80633         * doc/visibility.texi: Likewise.
80634
80635         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80636         * doc/quote.texi: Add copyright notice.
80637
80638         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80639         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80640         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80641         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80642         is now obsolete, and give a pointer to the Sun list.
80643         Add copyright notice.
80644
80645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * config/srclistvars.sh: Add copyright notice.
80648
80649 2006-08-14  Eric Blake  <ebb9@byu.net>
80650
80651         Import the following change from libc:
80652
80653         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80654
80655         Upstream bug 2997.
80656         * lib/misc/error.c: Add space between program name and message if file
80657         name is missing.
80658
80659 2006-08-12  Karl Berry  <karl@gnu.org>
80660
80661         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80662         remove, these originate in gnulib now.
80663
80664 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80665
80666         * doc/Makefile (standards.info standards.html standards.dvi):
80667         Also depend on make-stds.texi.
80668
80669 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80670
80671         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80672         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80673
80674         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80675         in wchar_t.  Problem reported by Eric Blake.
80676
80677         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80678         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80679         Also, help the compiler to keep LEN in a register.
80680
80681 2006-08-11  Eric Blake  <ebb9@byu.net>
80682
80683         * users.txt: Sort.  Add tar.
80684
80685 2006-08-11  Bruno Haible  <bruno@clisp.org>
80686
80687         * users.txt: New file.
80688
80689 2006-08-11  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80692         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80693
80694 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * modules/snprintf (Depends-on): Remove minmax.
80697         (Maintainer): Add self and Bruno.
80698
80699 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80702         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80703         (EOVERFLOW): Define if the system does not.
80704         Do not include "minmax.h"; it wasn't used.
80705         (snprintf): Don't assume size_t promotes to an unsigned type.
80706         Fix bug when generated string was too long for the buffer: the
80707         buffer's contents are supposed to be the initial prefix of the
80708         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80709         exceeds INT_MAX; do the check ourselves.
80710
80711         Import the following changes from libc:
80712
80713         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80714
80715         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80716         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80717         set wc to the byte which couldn't be converted.
80718         (re_string_reconstruct): Don't clear valid_raw_len before calling
80719         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80720         tip_context using re_string_context_at.
80721
80722         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80723
80724         * lib/posix/regex.h: g++ still cannot handled [restrict].
80725
80726         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80727
80728         * lib/posix/regex.h: Remove special handling for VMS.
80729
80730 2006-08-10  Jim Meyering  <jim@meyering.net>
80731
80732         * modules/same-inode: New module.
80733         * modules/dev-ino: New module.
80734         * modules/cycle-check: Depend on these modules, rather than simply
80735         including their .h files.
80736         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80737         required via m4/cycle-check.m4.
80738         * modules/same: Depend on new same-inode module, rather than
80739         including same-inode.h.
80740         * modules/chdir-safer: New file.
80741
80742         * modules/chown (Depends-on): Add stat-macros.
80743
80744 2006-08-10  Jim Meyering  <jim@meyering.net>
80745
80746         * m4/cycle-check.m4: New file.
80747         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80748         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80749
80750 2006-08-10  Eric Blake  <ebb9@byu.net>
80751
80752         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80753         in from original proposal.
80754
80755 2006-08-10  Eric Blake  <ebb9@byu.net>
80756         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80757
80758         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80759         namespace.
80760
80761 2006-08-10  Bruno Haible  <bruno@clisp.org>
80762
80763         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80764         as well.
80765
80766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         Sync from coreutils.
80769
80770         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80771
80772         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80773         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80774
80775 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80776
80777         * modules/restrict: Remove; no longer needed now that we assume
80778         Autoconf 2.59 or later.
80779         * MODULES.html.sh: Remove 'restrict'.
80780         * modules/argp (Depends-on): Remove 'restrict'.
80781         * modules/base64 (Depends-on): Likewise.
80782         * modules/gc (Depends-on): Likewise.
80783         * modules/getaddrinfo (Depends-on): Likewise.
80784         * modules/glob (Depends-on): Likewise.
80785         * modules/inet_ntop (Depends-on): Likewise.
80786         * modules/inet_pton (Depends-on): Likewise.
80787         * modules/memxor (Depends-on): Likewise.
80788         * modules/regex (Depends-on): Likewise.
80789         * modules/strtok_r (Depends-on): Likewise.
80790         * modules/time_r (Depends-on): Likewise.
80791
80792 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80793
80794         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80795         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80797         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80798         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80799         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80800         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80801         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80802
80803         Merge from coreutils.
80804         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80805         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80807         * m4/time_r.m4 (gl_TIME_R): Likewise.
80808
80809 2006-08-09  Karl Berry  <karl@gnu.org>
80810
80811         * config/srclist.txt: no more gettext-tools, per Bruno.
80812
80813 2006-08-08  Eric Blake  <ebb9@byu.net>
80814
80815         * modules/verror: New module.
80816         * MODULES.html.sh: Document it.
80817
80818 2006-08-08  Eric Blake  <ebb9@byu.net>
80819
80820         * lib/verror.h, lib/verror.c: New files.
80821
80822 2006-08-08  Eric Blake  <ebb9@byu.net>
80823
80824         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80825         verror_at_line output complies with GNU Coding Standards even when
80826         file is NULL.
80827
80828 2006-08-07  Bruno Haible  <bruno@clisp.org>
80829
80830         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80831         versions of AIX.
80832         Reported by Ralf Wildenhues.
80833
80834 2006-08-07  Bruno Haible  <bruno@clisp.org>
80835
80836         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80837         in an AC_DEFUN. Needed so that the autoconf snippets can use
80838         AC_REQUIRE.
80839
80840 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80841
80842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80843         Initialize pkgdata_DATA.
80844         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80845         overriding it.
80846
80847 2006-08-06  Eric Blake  <ebb9@byu.net>
80848
80849         * lib/error.h: Fold in some upstream changes from glibc.
80850         * lib/error.c: Likewise.
80851
80852 2006-08-04  Bruno Haible  <bruno@clisp.org>
80853
80854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80855         Make the mostlyclean-local rule depend on mostlyclean-generic.
80856         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80857
80858 2006-07-31  Bruno Haible  <bruno@clisp.org>
80859
80860         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80861         <stdlib.h>, <string.h>.
80862
80863 2006-07-30  Bruno Haible  <bruno@clisp.org>
80864
80865         * modules/readlink (License): Change to LGPL.
80866
80867 2006-07-30  Bruno Haible  <bruno@clisp.org>
80868
80869         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80870         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80871         set PKGDATADIR to point to it.
80872
80873 2006-07-30  Bruno Haible  <bruno@clisp.org>
80874
80875         * modules/csharpexec (configure.ac): Comment out macro invocation.
80876         * modules/javaexec (configure.ac): Likewise.
80877         * modules/javacomp-script (configure.ac): Likewise.
80878
80879         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80880
80881 2006-07-30  Bruno Haible  <bruno@clisp.org>
80882
80883         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80884         linked-list.
80885
80886 2006-07-30  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80889
80890 2006-07-30  Bruno Haible  <bruno@clisp.org>
80891
80892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80893         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80894         get removed.
80895
80896 2006-07-29  Bruno Haible  <bruno@clisp.org>
80897
80898         Make it possible for gnulib-tool to work with locally modified or
80899         augmented gnulib repositories.
80900         * gnulib-tool (func_usage): Document --local-dir option.
80901         (local_gnulib_dir): New variable.
80902         Handle --local-dir option.
80903         (func_lookup_file): New function.
80904         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80905         (func_get_description, func_get_filelist, func_get_description,
80906         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80907         func_get_automake_snippet, func_get_include_directive,
80908         func_get_license, func_get_maintainer): Use func_lookup_file.
80909         (func_import, func_create_testdir): Use func_lookup_file.
80910
80911 2006-07-29  Bruno Haible  <bruno@clisp.org>
80912
80913         * modules/setenv (Depends-on): Add unistd.
80914
80915 2006-07-29  Bruno Haible  <bruno@clisp.org>
80916
80917         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80918
80919 2006-07-29  Bruno Haible  <bruno@clisp.org>
80920
80921         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80922
80923 2006-07-29  Bruno Haible  <bruno@clisp.org>
80924
80925         * gnulib-tool (import, update): If there is no Makefile.am, look at
80926         aclocal.m4, instead of bailing out.
80927
80928 2006-07-29  Bruno Haible  <bruno@clisp.org>
80929
80930         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80931         Categorize the options by when they are useful.
80932
80933 2006-07-29  Bruno Haible  <bruno@clisp.org>
80934
80935         * gnulib-tool (func_usage): Document option --no-libtool.
80936         Handle option --no-libtool.
80937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80938         for changed semantics of $libtool variable.
80939         (func_import): Likewise. If libtool is not used, show this through
80940         an option --no-libtool.
80941         (func_create_testdir): Update.
80942
80943 2006-07-29  Bruno Haible  <bruno@clisp.org>
80944
80945         * gnulib-tool (func_import): Extend error message about missing
80946         --doc-base.
80947
80948 2006-07-29  Bruno Haible  <bruno@clisp.org>
80949
80950         * gnulib-tool (func_import): Don't create the $docbase directory if
80951         there is no file to store there.
80952
80953 2006-07-29  Bruno Haible  <bruno@clisp.org>
80954
80955         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80956         relevant, look for configure.ac there, not in the current directory.
80957         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80958
80959 2006-07-29  Bruno Haible  <bruno@clisp.org>
80960
80961         * gnulib-tool (SORT): New variable.
80962         (func_usage): Undocument --assume-autoconf option.
80963         Remove --assume-autoconf option handling.
80964         (autoconf_minversion): Determine from the contents of configure.ac.
80965         (func_import): Remove autoconf_minversion handling.
80966         Suggested by Eric Blake.
80967
80968 2006-07-29  Bruno Haible  <bruno@clisp.org>
80969
80970         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80971
80972 2006-07-29  Bruno Haible  <bruno@clisp.org>
80973
80974         * config/srclist.txt (*setenv.[ch]): Remove rules.
80975
80976 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80977
80978         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80979
80980 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80981
80982         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80983         arpa/inet.h.
80984
80985 2006-07-28  Simon Josefsson  <jas@extundo.com>
80986
80987         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80988         * modules/inet_pton (Depends-on): Likewise.
80989
80990 2006-07-28  Simon Josefsson  <jas@extundo.com>
80991
80992         * m4/netinet_in_h.m4: New file.
80993
80994 2006-07-28  Simon Josefsson  <jas@extundo.com>
80995
80996         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80997         #include's.
80998
80999 2006-07-28  Simon Josefsson  <jas@extundo.com>
81000
81001         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81002         #include's.
81003
81004 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81005
81006         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81007         setgid on directories only if they set these bits.
81008         * lib/modechange.h: Remove obsolete comment about masks.
81009
81010 2006-07-28  Eric Blake  <ebb9@byu.net>
81011
81012         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81013         macro expansion.
81014
81015 2006-07-28  Bruno Haible  <bruno@clisp.org>
81016
81017         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81018
81019 2006-07-28  Bruno Haible  <bruno@clisp.org>
81020
81021         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81022
81023 2006-07-28  Bruno Haible  <bruno@clisp.org>
81024
81025         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81026         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81027         Define fallbacks.
81028         Avoids link error on FreeBSD 4.x.
81029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81030
81031         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81032         encoding.
81033         * lib/mbswidth.c (iswcntrl): Likewise.
81034
81035 2006-07-27  Bruno Haible  <bruno@clisp.org>
81036
81037         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81038         test.
81039
81040 2006-07-27  Bruno Haible  <bruno@clisp.org>
81041
81042         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81043         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81044         defined.
81045
81046 2006-07-26  Eric Blake  <ebb9@byu.net>
81047
81048         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81049
81050 2006-07-26  Eric Blake  <ebb9@byu.net>
81051
81052         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81053         like mingw that lack mkstemp.
81054         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81055         avoid compilation warning on mingw.
81056
81057 2006-07-26  Bruno Haible  <bruno@clisp.org>
81058
81059         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81060         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81061         INT_FAST*_MIN, INTPTR_MIN.
81062
81063 2006-07-25  Bruno Haible  <bruno@clisp.org>
81064
81065         * modules/version-etc (Depends-on): Add stdarg.
81066
81067 2006-07-25  Bruno Haible  <bruno@clisp.org>
81068
81069         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81070         complex commands.
81071
81072 2006-07-25  Bruno Haible  <bruno@clisp.org>
81073
81074         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81075         defined in <stdarg.h> or config.h.
81076
81077 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81080         (gl_STDIO_SAFER): Remove.
81081
81082 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         * MODULES.html.sh (File stream based Input/Output):
81085         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81086         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81087         * modules/fopen-safer, modules/tmpfile-safer: New files.
81088         * modules/stdio-safer: Remove.
81089
81090 2006-07-24  Bruno Haible  <bruno@clisp.org>
81091
81092         * modules/tmpdir: New file.
81093         * MODULES.html.sh (File system functions): Add it.
81094
81095 2006-07-24  Bruno Haible  <bruno@clisp.org>
81096
81097         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81098         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81099
81100 2006-07-24  Bruno Haible  <bruno@clisp.org>
81101
81102         * modules/clean-temp: New file.
81103
81104 2006-07-24  Bruno Haible  <bruno@clisp.org>
81105
81106         * m4/tmpdir.m4: New file, from GNU gettext.
81107
81108 2006-07-24  Bruno Haible  <bruno@clisp.org>
81109
81110         * lib/tmpdir.h: New file, from GNU gettext.
81111         * lib/tmpdir.c: New file, from GNU gettext.
81112
81113 2006-07-24  Bruno Haible  <bruno@clisp.org>
81114
81115         * lib/clean-temp.h: New file, from GNU gettext.
81116         * lib/clean-temp.c: New file, from GNU gettext.
81117
81118 2006-07-23  Eric Blake  <ebb9@byu.net>
81119
81120         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81121         (Depends-on): Add binary-io.
81122
81123 2006-07-23  Eric Blake  <ebb9@byu.net>
81124
81125         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81126
81127 2006-07-23  Eric Blake  <ebb9@byu.net>
81128
81129         * lib/tmpfile-safer.c: New file.
81130         * lib/stdio-safer.h (fopen_safer): Add prototype.
81131         * lib/stdio--.h (tmpfile): Make safer.
81132
81133 2006-07-23  Bruno Haible  <bruno@clisp.org>
81134
81135         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81136         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81137         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81138         gl_linked_remove_at): Use it.
81139
81140 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81141         and Simon Josefsson <jas@extundo.com>
81142
81143         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81144
81145         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81146
81147 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * modules/close-stream: New file.
81150         * modules/closeout (Description): Make it clear that it exits
81151         with a diagnostic on error.
81152         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81153         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81154
81155 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         * m4/close-stream.m4: New file.
81158
81159 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81160
81161         * lib/close-stream.c, lib/close-stream.h: New files.
81162
81163 2006-07-22  Bruno Haible  <bruno@clisp.org>
81164
81165         Merge from GNU gettext 0.15.
81166
81167         2006-05-01  Bruno Haible  <bruno@clisp.org>
81168
81169                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81170
81171         2006-07-22  Bruno Haible  <bruno@clisp.org>
81172
81173                 * modules/javaversion: New file.
81174                 * MODULES.html.sh (Java): Add javaversion.
81175
81176         2006-03-12  Bruno Haible  <bruno@clisp.org>
81177
81178                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81179
81180         2005-12-04  Bruno Haible  <bruno@clisp.org>
81181
81182                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81183                 (untested).
81184
81185         2006-06-21  Bruno Haible  <bruno@clisp.org>
81186
81187                 Avoid warnings from recent versions of mcs.
81188                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81189                 -o, -L, -r any more. Use options documented since mcs-1.0
81190                 instead. Similarly for -g.
81191
81192         2005-12-04  Bruno Haible  <bruno@clisp.org>
81193
81194                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81195                 .resources, not .resource.
81196
81197         2005-07-09  Bruno Haible  <bruno@clisp.org>
81198
81199                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81200                 add a .dll suffix.
81201                 Reported by Mark Junker <mjscod@gmx.de>.
81202
81203         2006-07-22  Bruno Haible  <bruno@clisp.org>
81204
81205                 * modules/gettext: Upgrade to gettext-0.15.
81206                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81207                 m4/visibility.m4.
81208                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81209
81210 2006-07-22  Bruno Haible  <bruno@clisp.org>
81211
81212         Merge from GNU gettext 0.15.
81213
81214         2006-03-25  Bruno Haible  <bruno@clisp.org>
81215
81216                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81217
81218         2006-07-21  Bruno Haible  <bruno@clisp.org>
81219
81220                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81221                 "1.1".
81222
81223         2006-05-09  Bruno Haible  <bruno@clisp.org>
81224
81225                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81226                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81227                 for the conftestver execution.
81228
81229         2006-05-01  Bruno Haible  <bruno@clisp.org>
81230
81231                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81232                 optional target-version argument. Verify that the compiler
81233                 groks source of the specified source-version, or add -source
81234                 option as necessary. Verify that the compiler produces
81235                 bytecode in the specified target-version, or add -target and
81236                 -source options as necessary. Make the result of the test
81237                 available as variable CONF_JAVAC. Also log error output in
81238                 config.log.
81239
81240         2006-03-11  Bruno Haible  <bruno@clisp.org>
81241
81242                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81243
81244         2006-05-09  Bruno Haible  <bruno@clisp.org>
81245
81246                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81247                 CLASSPATH_SEPARATOR to a semicolon.
81248
81249         2006-03-12  Bruno Haible  <bruno@clisp.org>
81250
81251                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81252                 available as variable CONF_JAVA, for subsequent autoconf
81253                 tests. Also log error output in config.log.
81254
81255         2006-07-19  Bruno Haible  <bruno@clisp.org>
81256
81257                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81258                 that getline works on glibc2 systems. Needed to avoid trouble
81259                 in relocatable.c.
81260                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81261
81262         2005-12-04  Bruno Haible  <bruno@clisp.org>
81263
81264                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81265                 launcher (untested).
81266
81267         2005-12-04  Bruno Haible  <bruno@clisp.org>
81268
81269                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81270
81271         2006-07-22  Bruno Haible  <bruno@clisp.org>
81272
81273                 * gettext.m4: Update from GNU gettext-0.15.
81274                 * nls.m4: Likewise.
81275                 * po.m4: Likewise.
81276                 * inttypes-pri.m4: Likewise.
81277                 * inttypes-h.m4: Renamed from inttypes.m4.
81278                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81279
81280 2006-07-22  Bruno Haible  <bruno@clisp.org>
81281
81282         Merge from GNU gettext 0.15.
81283
81284         2005-07-05  Bruno Haible  <bruno@clisp.org>
81285
81286                 * printf-args.c (printf_fetchargs): Work around broken
81287                 definition of wint_t on mingw.
81288
81289         2005-02-12  Bruno Haible  <bruno@clisp.org>
81290
81291                 * xallocsa.h: Add extern "C" for C++.
81292
81293         2006-05-17  Bruno Haible  <bruno@clisp.org>
81294
81295                 Cygwin portability.
81296                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81297
81298         2006-04-30  Bruno Haible  <bruno@clisp.org>
81299
81300                 * progreloc.c: Include <mach-o/dyld.h> if available.
81301                 (find_executable): Use _NSGetExecutablePath when possible.
81302
81303         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81304
81305                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81306                 function.
81307
81308         2005-12-29  Bruno Haible  <bruno@clisp.org>
81309
81310                 * progreloc.c (set_program_name_and_installdir): Fix
81311                 compilation error.
81312
81313         2005-12-04  Bruno Haible  <bruno@clisp.org>
81314
81315                 Cygwin portability.
81316                 * progreloc.c: Include <windows.h> also on Cygwin.
81317                 (find_executable): Add support for Cygwin.
81318                 (set_program_name_and_installdir): Handle also platforms with
81319                 nonempty EXEEXT.
81320
81321         2006-07-11  Bruno Haible  <bruno@clisp.org>
81322
81323                 * javacomp.c: Fix a comment.
81324                 Reported by Jim Meyering.
81325
81326         2006-04-30  Bruno Haible  <bruno@clisp.org>
81327
81328                 * javacomp.h (compile_java_class): Add source_version,
81329                 target_version arguments.
81330                 * javacomp.c: Rewritten to choose only a compiler that
81331                 respects the specified source_version and target_version.
81332
81333         2006-06-27  Bruno Haible  <bruno@clisp.org>
81334
81335                 Assume correct S_ISDIR macro.
81336                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81337
81338         2006-07-22  Bruno Haible  <bruno@clisp.org>
81339
81340                 * javaversion.h: New file, from GNU gettext.
81341                 * javaversion.c: New file, from GNU gettext.
81342                 * javaversion.java: New file, from GNU gettext.
81343                 * javaversion.class: New file, from GNU gettext.
81344
81345         2006-05-17  Bruno Haible  <bruno@clisp.org>
81346
81347                 Cygwin portability.
81348                 * javaexec.c (execute_java_class): Test for jview program
81349                 also on Cygwin.
81350
81351         2006-04-09  Bruno Haible  <bruno@clisp.org>
81352
81353                 * fatal-signal.c: Don't include string.h.
81354                 (at_fatal_signal): Use a copying loop instead of memcpy.
81355
81356         2005-12-04  Bruno Haible  <bruno@clisp.org>
81357
81358                 * csharpexec.c: Add support for 'clix' launcher (untested).
81359                 (execute_csharp_using_sscli): New function.
81360                 (execute_csharp_program): Call it.
81361
81362         2006-06-21  Bruno Haible  <bruno@clisp.org>
81363
81364                 Avoid warnings from recent versions of mcs.
81365                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81366                 -o, -L, -r any more. Use options documented since mcs-1.0
81367                 instead. Similarly for -g.
81368
81369         2005-07-09  Bruno Haible  <bruno@clisp.org>
81370
81371                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81372                 add a .dll suffix.
81373                 Reported by Mark Junker <mjscod@gmx.de>.
81374
81375         2006-06-17  Bruno Haible  <bruno@clisp.org>
81376
81377                 * config.charset: Update for NetBSD 3.0.
81378
81379         2006-05-17  Bruno Haible  <bruno@clisp.org>
81380
81381                 Cygwin portability.
81382                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81383
81384         2006-05-16  Bruno Haible  <bruno@clisp.org>
81385
81386                 * localcharset.c [CYGWIN]: Include <windows.h>.
81387                 (get_charset_aliases): For Cygwin, return the same CPxxx
81388                 aliases list as under WIN32.
81389                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81390                 the environment variables. Fall back to GetACP().
81391
81392         2006-04-05  Bruno Haible  <bruno@clisp.org>
81393
81394                 * config.charset: Update Juan Manuel Guerrero's address.
81395
81396         2005-02-12  Bruno Haible  <bruno@clisp.org>
81397
81398                 * allocsa.h: Add extern "C" for C++.
81399
81400         2005-02-10  Bruno Haible  <bruno@clisp.org>
81401
81402                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81403                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81404
81405         2006-07-22  Bruno Haible  <bruno@clisp.org>
81406
81407                 * gettext.h: Update to GNU gettext-0.15.
81408
81409 2006-07-22  Bruno Haible  <bruno@clisp.org>
81410
81411         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81412         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81413         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81414
81415 2006-07-21  Eric Blake  <ebb9@byu.net>
81416
81417         * modules/stdlib-safer: New file.
81418         * MODULES.html.sh (File stream based Input/Output): Add
81419         stdlib-safer.
81420
81421 2006-07-21  Eric Blake  <ebb9@byu.net>
81422
81423         * lib/stdlib-safer.h: New file from coreutils, required by
81424         stdlib--.h.
81425
81426 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81429
81430 2006-07-20  Bruno Haible  <bruno@clisp.org>
81431
81432         * gnulib-tool: Recognize new option --assume-autoconf.
81433         (autoconf_minversion): New variable.
81434         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81435
81436 2006-07-20  Bruno Haible  <bruno@clisp.org>
81437
81438         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81439
81440 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81441
81442         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81443         Reindent and repaginate.
81444
81445 2006-07-19  Derek Price  <derek@ximbiot.com>
81446
81447         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81448         Correct grammar.
81449
81450 2006-07-17  Bruno Haible  <bruno@clisp.org>
81451
81452         * modules/list: New file.
81453         * modules/array-list: New file.
81454         * modules/carray-list, modules/carray-list-tests: New files.
81455         * modules/linked-list, modules/linked-list-tests: New files.
81456         * modules/avltree-list, modules/avltree-list-tests: New files.
81457         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81458         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81459         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81460         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81461         * modules/oset: New file.
81462         * modules/array-oset: New file.
81463         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81464         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81465         * tests/test-carray_list.c: New file.
81466         * tests/test-linked_list.c: New file.
81467         * tests/test-avltree_list.c: New file.
81468         * tests/test-rbtree_list.c: New file.
81469         * tests/test-linkedhash_list.c: New file.
81470         * tests/test-avltreehash_list.c: New file.
81471         * tests/test-rbtreehash_list.c: New file.
81472         * tests/test-avltree_oset.c: New file.
81473         * tests/test-rbtree_oset.c: New file.
81474         * MODULES.html.sh (Container data structures): New section.
81475
81476 2006-07-17  Bruno Haible  <bruno@clisp.org>
81477
81478         * m4/gl_list.m4: New file.
81479
81480 2006-07-17  Bruno Haible  <bruno@clisp.org>
81481
81482         * lib/gl_list.h: New file.
81483         * lib/gl_list.c: New file.
81484         * lib/gl_array_list.h: New file.
81485         * lib/gl_array_list.c: New file.
81486         * lib/gl_carray_list.h: New file.
81487         * lib/gl_carray_list.c: New file.
81488         * lib/gl_linked_list.h: New file.
81489         * lib/gl_linked_list.c: New file.
81490         * lib/gl_anylinked_list1.h: New file.
81491         * lib/gl_anylinked_list2.h: New file.
81492         * lib/gl_avltree_list.h: New file.
81493         * lib/gl_avltree_list.c: New file.
81494         * lib/gl_anyavltree_list1.h: New file.
81495         * lib/gl_anyavltree_list2.h: New file.
81496         * lib/gl_rbtree_list.h: New file.
81497         * lib/gl_rbtree_list.c: New file.
81498         * lib/gl_anyrbtree_list1.h: New file.
81499         * lib/gl_anyrbtree_list2.h: New file.
81500         * lib/gl_anytree_list1.h: New file.
81501         * lib/gl_anytree_list2.h: New file.
81502         * lib/gl_linkedhash_list.h: New file.
81503         * lib/gl_linkedhash_list.c: New file.
81504         * lib/gl_anyhash_list1.h: New file.
81505         * lib/gl_anyhash_list2.h: New file.
81506         * lib/gl_avltreehash_list.h: New file.
81507         * lib/gl_avltreehash_list.c: New file.
81508         * lib/gl_rbtreehash_list.h: New file.
81509         * lib/gl_rbtreehash_list.c: New file.
81510         * lib/gl_anytreehash_list1.h: New file.
81511         * lib/gl_anytreehash_list2.h: New file.
81512
81513         * lib/gl_oset.h: New file.
81514         * lib/gl_oset.c: New file.
81515         * lib/gl_array_oset.h: New file.
81516         * lib/gl_array_oset.c: New file.
81517         * lib/gl_avltree_oset.h: New file.
81518         * lib/gl_avltree_oset.c: New file.
81519         * lib/gl_rbtree_oset.h: New file.
81520         * lib/gl_rbtree_oset.c: New file.
81521         * lib/gl_anytree_oset.h: New file.
81522
81523 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         * m4/mkancesdirs.m4: New file.
81526         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81527         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81528         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81529         it.
81530
81531 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81534         * lib/mkancesdirs.h: New files.
81535         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81536         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81537         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81538         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81539         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81540         callers changed.  Revamp internals significantly, by not
81541         attempting to create directories that are temporarily more
81542         permissive than the final results.  Do not attempt to use
81543         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81544         This removes some race conditions, fixes some bugs, and simplifies
81545         things.  Use new dirchownmod function to do owner and mode changes.
81546         * lib/mkdir-p.h: Likewise.
81547         * lib/modechange.c (octal_to_mode): New function.
81548         (struct mode_change): New member mentioned.
81549         (make_node_op_equals): New arg mentioned.  All callers changed.
81550         (mode_compile): Keep track of which mode bits the user has explicitly
81551         mentioned.
81552         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81553         New arg PMODE_BITS, to keep track of which mode bits the user
81554         mentioned; it treats S_ISUID and S_ISGID speciall.
81555         All callers changed.
81556         * lib/modechange.h: Likewise.
81557
81558 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81559
81560         * MODULES.html.sh: Add mkancestors.
81561         * modules/mkancesdirs: New module.
81562         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81563         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81564         The chdir-safer and afs files are now orphans; I'll remove them
81565         unless someone speaks up.
81566         Add lib/dirchownmod.c, lib/dirchownmod.h.
81567         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81568         Add lchown, mkancesdirs.
81569         (Maintainer): Add self.
81570
81571 2006-07-15  Karl Berry  <karl@gnu.org>
81572
81573         * gnulib-tool: help message wording/arrangement.
81574
81575 2006-07-14  Simon Josefsson  <jas@extundo.com>
81576
81577         * doc/gnulib.texi (Libtool and Windows): New section.
81578
81579 2006-07-12  Simon Josefsson  <jas@extundo.com>
81580
81581         * modules/gendocs (License): Fix license, approved by Karl.
81582
81583 2006-07-12  Eric Blake  <ebb9@byu.net>
81584
81585         * MODULES.html.sh: Add gendocs.
81586
81587 2006-07-11  Eric Blake  <ebb9@byu.net>
81588
81589         * modules/fdl: New module, to install doc/fdl.texi.
81590         * MODULES.html.sh: Add new section for documentation modules.
81591         * gnulib-tool: Avoid space-tab.
81592         (--doc-base): New option, to manage files from doc.
81593
81594 2006-07-11  Eric Blake  <ebb9@byu.net>
81595
81596         * m4/absolute-header.m4: Fix comments to match recent change.
81597
81598 2006-07-11  Eric Blake  <ebb9@byu.net>
81599
81600         * gnulib-tool: List --doc-base before --tests-base.
81601
81602 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81603
81604         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81605
81606 2006-07-11  Bruno Haible  <bruno@clisp.org>
81607
81608         * README: Mention where to put documentation.
81609
81610 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81611
81612         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81613
81614 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81617         to stdint.m4.
81618
81619 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81620
81621         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81622         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81623         "no/such/file/stdint.h" when there is no such file, so that
81624         the resulting C code can be parsed by dodgy compilers.
81625         Problems reported by Bob Proulx.
81626
81627 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81628
81629         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81630         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81631         macros into the GNU _D_EXACT_NAMLEN.
81632         * lib/savedir.c:  Likewise.
81633         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81634
81635 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81636         and Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81639         * m4/savedir.m4:
81640         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81641         macros into the GNU _D_EXACT_NAMLEN.
81642
81643 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81646         around the absolute name, to work around a problem with the HP-UX
81647         11.23 native C compiler, reported by Bob Proulx.
81648
81649 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81650
81651         * doc/maintain.texi, make-stds.texi: Sync from
81652         <http://savannah.gnu.org/projects/gnustandards>.
81653
81654 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81657
81658 2006-07-09  Jim Meyering  <jim@meyering.net>
81659
81660         * m4/glob.m4: Remove a doubled word in a comment.
81661
81662 2006-07-09  Jim Meyering  <jim@meyering.net>
81663
81664         * lib/argp-pv.c: Remove a doubled word in a comment.
81665         * lib/check-version.c (check_version): Likewise.
81666         * lib/javacomp.c (compile_java_class): Likewise.
81667
81668 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81669
81670         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81671         for the benefit of people using Autoconf 2.60.  If you want to
81672         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81673         (or m4/onceonly.m4, if pre-2.57) manually.
81674
81675 2006-07-08  Jim Meyering  <jim@meyering.net>
81676
81677         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81678         comment.
81679         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81680         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81681         comment.
81682
81683 2006-07-08  Jim Meyering  <jim@meyering.net>
81684
81685         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81686
81687 2006-07-07  Simon Josefsson  <jas@extundo.com>
81688
81689         * tests/test-crc.c: Change expected crc value, the test vector
81690         were probably computed using the old broken crc.c?
81691
81692 2006-07-06  Simon Josefsson  <jas@extundo.com>
81693
81694         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81695         now the canonical place for the M4 file).
81696
81697         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81698         from the sys_socket dependency now.
81699
81700         * modules/inet_pton (Files): Ditto.
81701
81702         * modules/inet_ntop (Files): Ditto.
81703
81704 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81705
81706         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81707         not gl_PREREQ_GETUSERSHELL.
81708
81709 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81710
81711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81712         with only one argument, for Autoconf 2.60.
81713         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81714         expand to nothing, so add a shell command to avoid syntax error.
81715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81716
81717 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81718
81719         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81720
81721 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81724         no longer needed.  Check for isblank decl.
81725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81726         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81727         of existence.
81728
81729 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81730
81731         * lib/getloadavg.c: Use __VMS, not VMS.
81732         * lib/getopt.c: Likewise.
81733         * lib/getpagesize.h: Likewise.
81734         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81735         and probably does not work.
81736
81737 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81738
81739         * lib/.cppi-disable: Add wcwidth.
81740         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81741         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81742         (ISGRAPH): Remove.  All uses changed to isgraph.
81743         (FOLD) [!defined _LIBC]: Remove special case.
81744         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81745         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81746         HAVE_ISBLANK.
81747         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81748         case.
81749
81750 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81751
81752         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81753         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81754         brackets.  Other minor changes to suppress some compiler
81755         warnings.
81756
81757 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81758         and Paul Eggert  <eggert@cs.ucla.edu>
81759
81760         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81761         of invoking obsolescent AC_HEADER_DIRENT macro.
81762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81763         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81766         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81767         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81768         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81769         * m4/readdir.m4: Remove; no longer needed.
81770
81771 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81772         and Paul Eggert  <eggert@cs.ucla.edu>
81773
81774         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81775         Don't worry about this obsolete case any more.
81776         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81777         directories.
81778         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81779         worry about this obsolete case any more.
81780         * lib/fts.c: Likewise.
81781         * lib/getcwd.c: Likewise.
81782         * lib/glob.h: Likewise.
81783         * lib/savedir.c: Likewise.
81784
81785 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81788         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81789         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81790         needed.
81791         All uses removed.
81792         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81793         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81794         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81795         needed.
81796         * m4/getdate.m4 (gl_GETDATE): Likewise.
81797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81798         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81799         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81800         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81801         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81803         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81804         needed.
81805
81806 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * lib/memcasecmp.c: Include <limits.h>.
81809         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81810         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81811         Don't assume isdigit succeeds only on '0' through '9'.
81812
81813 2006-07-05  Eric Blake  <ebb9@byu.net>
81814
81815         * modules/getaddrinfo (Depends-on): Add snprintf.
81816
81817 2006-07-05  Eric Blake  <ebb9@byu.net>
81818
81819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81820         to avoid 'header present but could not be compiled' on cygwin.
81821
81822 2006-07-05  Eric Blake  <ebb9@byu.net>
81823
81824         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81825         missing from netdb.h.
81826         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81827
81828 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81829
81830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81831         no longer needed.
81832         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81833         * m4/getdate.m4 (gl_GETDATE): Likewise.
81834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81835         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81836         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81837         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81839
81840 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81841
81842         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81843         All uses of is_space replaced by isspace.
81844         * lib/exit.h: Don't talk about STDC_HEADERS.
81845         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81846         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81847         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81848         replaced by isprint etc.
81849         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81850         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81851         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81852         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81853         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81854         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81855
81856 2006-07-05  Bruno Haible  <bruno@clisp.org>
81857
81858         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81859         the function exists, before testing against AIX.
81860         Reported by Martin Lambers <marlam@marlam.de>.
81861
81862 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81863
81864         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81865         From Mark D. Baushke.
81866
81867 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81868
81869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81870         to the absolute name, not just one, to bypass Sun C 5.8's
81871         "warning: #include of /usr/include/... may be non-portable".
81872
81873 2006-07-04  Eric Blake  <ebb9@byu.net>
81874
81875         * modules/dirname-tests: New test module.
81876         * tests/test-dirname.c: New file, replacing dirname.c
81877         TEST_DIRNAME section that was recently deleted.
81878
81879 2006-07-04  Bruno Haible  <bruno@clisp.org>
81880
81881         Assume ANSI C header files and <ctype.h> functions.
81882         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81883         (mbsnwidth): Use isprint, iscntrl instead.
81884
81885 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81886
81887         Merge from coreutils.
81888         * MODULES.html.sh: Add xstrtold.
81889         * modules/xstrtold: New file.
81890         * modules/cycle-check (Files): Add lib/same-inode.h.
81891         * modules/dirname (Files): Add m4/double-slash-root.m4.
81892         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81893         * modules/mkdir-p (Files): Add lib/same-inode.h.
81894         * modules/same (Files): Add lib/same-inode.h.
81895
81896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81897
81898         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81899         This is to keep the terminology clean; POSIX talks about
81900         "absolute pathnames", not "full pathnames", but the GNU
81901         Coding Standards say to use "path" for something else;
81902         so use "absolute" to keep both sides happy.
81903         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81904         Set gl_absolute_header, not gl_full_header_path.
81905         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81906         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81907         All uses changed.
81908
81909         Merge from coreutils.
81910
81911         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81912
81913         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81914         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81915         want to require the building of c-strtod.o.
81916         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81917         needs -lm directly.
81918         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81919
81920         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81921
81922         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81923         --as-needed option if available.  Problem reported by Albert Chin in
81924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81925         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81926         cc merely issues a bunch of annoying warnings for --as-needed
81927         (this problem was reported by Bob Proulx).  Also, try linking with
81928         -lm to detect a bug in binutils 2.16 (this problem was reported
81929         by Ralf Wildenhues).
81930
81931         2006-06-18  Jim Meyering  <jim@meyering.net>
81932
81933         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81934         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81935         macro.
81936         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81937         also check for glibc-2.4's abort-inducing bug.
81938
81939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81940         Low-probability clean-up should be to use rmdir to get rid of
81941         the just-created directory, not unlink.
81942
81943         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81944         configure fail, and request a bug report to inform us about it.
81945         Add a comment that, barring reports to the contrary, in 2007 we'll
81946         assume ftruncate is universally available.
81947
81948         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81949
81950         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81951
81952         2006-03-12  Jim Meyering  <jim@meyering.net>
81953
81954         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81955         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81956         * m4/same.m4 (gl_SAME): Likewise.
81957         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81958
81959         2006-03-11  Eric Blake  <ebb9@byu.net>
81960
81961         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81962         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81963         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81964         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81965
81966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81967
81968         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81969         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81970         reported by Mark D. Baushke, one in
81971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81972
81973         Merge from coreutils.
81974
81975         * lib/.cppi-disable: Add stdint_.h.
81976         * lib/.cvsignore: Add stdint.h.
81977
81978         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81979
81980         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81981         both double and long double versions.
81982         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81983         * lib/xstrtold.c: New file.
81984         * lib/xstrtod.h (xstrtold): New decl.
81985
81986         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81987
81988         * lib/filemode.c (setst): Remove.
81989         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81990         (arguably) clearer, and the generated code is a bit smaller on my
81991         Debian GNU/Linux stable x86 host.
81992
81993         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81996         Assume that filemode.h includes sys/types.h and sys/stat.h.
81997         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81998         (ftypelet): Reorder to put common cases first, for efficiency.
81999         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82000         to do 'M'.
82001         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82002         of 10, for compatibility with FreeBSD.  All callers changed.
82003         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82004         types that can't be deduced solely from st_mode.  First arg is now a
82005         const pointer.
82006         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82007         (strmode): Renamed from mode_string.
82008         (filemodestring): New decl.
82009         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82010         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82011         needed.
82012         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82013
82014         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82017         fsusage.h now does that.  Include fsusage.h first, to test interface.
82018         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82019         at most one method (the old code could have generated decls that
82020         didn't conform to C89, not that this was ever exercised).
82021         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82022
82023         2006-03-19  Jim Meyering  <jim@meyering.net>
82024
82025         Work even in a chroot where d_ino values for entries in "/"
82026         don't match the stat.st_ino values for the same names.
82027         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82028         number, iterate through all entries again, using lstat instead.
82029         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82030         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82031
82032         * lib/getcwd.c (__getcwd): Clarify a comment.
82033         Use memcpy in place of a call to strcpy.
82034
82035         2006-03-12  Jim Meyering  <jim@meyering.net>
82036
82037         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82038         matches that of the current directory (which we're about to chdir ".."
82039         out of), then save the dev-ino of the parent, instead.
82040
82041         * lib/same-inode.h (SAME_INODE): New file/macro.
82042         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82043         Include "same-inode.h", instead.
82044         * lib/same.c: Likewise.
82045         * lib/cycle-check.h: Include "same-inode.h".
82046         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82047         * lib/cycle-check.c (SAME_INODE): Remove definition.
82048         * lib/root-dev-ino.h: Include "same-inode.h".
82049
82050         2006-03-11  Eric Blake  <ebb9@byu.net>
82051
82052         * lib/same.c (same_name): s/base_name/last_component/
82053         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82054         * lib/filenamecat.c (file_name_concat): Likewise.
82055
82056         2006-03-11  Eric Blake  <ebb9@byu.net>,
82057                     Paul Eggert  <eggert@cs.ucla.edu>
82058
82059         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82060         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82061         drive prefix.
82062         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82063         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82064         (last_component): New method.
82065         * lib/dirname.c (dir_len): Determine when drive letters need a
82066         subsequent slash.  Preserve // when it is special.
82067         (dir_name): Don't append dot when drive letter is absolute.
82068         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82069         * lib/basename.c (base_name): New semantics - malloc the result.
82070         Preserve // when it is special.  Preserve relative files that look
82071         like drive letters.
82072         (base_len): Preserve // when it is special.
82073         (last_component): New method, similar to old base_name semantics.
82074         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82075         base_name.  Strip redundant slashes from ///.
82076
82077 2006-07-03  Jim Meyering  <jim@meyering.net>
82078
82079         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82080         macro is used before the first cycle_check call.
82081
82082 2006-07-03  Eric Blake  <ebb9@byu.net>
82083
82084         * modules/dirname (Depends-on): Add xstrndup.
82085
82086 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82087
82088         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82089         test cases, so that config.log is a bit easier to follow.
82090
82091 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82092
82093         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82094         both are 64 bits, since this seems to be the tradition, and this
82095         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82096         we ever run into a host that prefers long long to long in this
82097         case, we'll need another configure-time test.  Problem reported by
82098         Jim Meyering.
82099
82100 2006-07-02  Eric Blake  <ebb9@byu.net>
82101
82102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82103
82104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82105
82106         * modules/inttypes (Depends-on): No longer depends on stdint.
82107         * modules/stdint (Description): Say more about assumptions.
82108         Say that the fast types might differ.  Say macros are used.
82109         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82110         (Makefile.am): Revise list of substituted symbols to match
82111         new stdint.m4.
82112         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82113         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82114         * tests/test-stdint.c (verify_same_types)
82115         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82116         the code conforms to C99/C89.
82117         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82118         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82119
82120 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82121
82122         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82123         but fix a bug, by requiring at least 64 bits.
82124         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82125         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82126         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82127         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82128
82129         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82130         changes.  Make 2.59 a prerequisite.  Check and substitute for
82131         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82132         inttypes.h.  Do not use special include files; just use the
82133         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82134         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82135         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82136         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82137         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82138         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82139         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82140         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82141         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82142         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82143         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82144         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82145         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82146         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82147         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82148         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82149         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82150         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82151         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82152         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82153         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82154         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82155         not check for things that C99 does not require, e.g., int8_t.  If
82156         a test isn't needed unless <stdint.h> isn't working, and is
82157         unlikely to be needed for any other reason, then don't do it
82158         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82159         size_t, since we assume C89 freestanding at least.  Do not check
82160         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82161         the right thing even if the types are not defined.  Instead use:
82162         (gl_STDINT_TYPE_PROPERTIES): New macro.
82163         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82164         testing whether <sys/types.h> clashes, as Autoconf does this for
82165         us now.  All uses removed.
82166         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82167         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82168         (gl_CHECK_TYPE_SAME):
82169         Remove; no longer needed.
82170         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82171         exists, since we'll return 0 anyway in that case.
82172         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82173
82174 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82175
82176         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82177         possible collision with system files.
82178         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82179         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82180         WCHAR_MIN and WCHAR_MAX in this case.
82181         (<stddef.h>): Do not include; no longer needed.
82182         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82183         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82184         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82185         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82186         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82187         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82188         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82189         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82190         !defined(__c99))]: Include in this case too, since it's harmless
82191         now.
82192         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82193         dangerous to do so.
82194         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82195         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82196         (_STDINT_MIN, _STDINT_MAX): New macros.
82197         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82198         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82199         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82200         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82201         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82202         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82203         macros, not typedefs; this simplifies things quite a bit.
82204         Use long int for all types narrower than int64_t.
82205         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82206         Define in terms of long long int or int64_t or long int,
82207         not int64_t or int32_t.  This saves some compile-time testing.
82208         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82209         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82210         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82211         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82212         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82213         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82214         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82215         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82216         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82217         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82218         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82219         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82220         undef any previous version and define our own version, for
82221         simplicity and consistency with the new macros for types.
82222         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82223         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82224         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82225         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82226         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82227         @WINT_T_SUFFIX@ to keep things simple here.
82228         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82229         Simplify by assuming typical 8/16/32/64 host, since we're
82230         already doing that elsewhere anyway.
82231         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82232         and assume long long int is 64 bits if available.  This
82233         speeds up 'configure'.
82234
82235 2006-07-01  Eric Blake  <ebb9@byu.net>
82236
82237         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82238         Reported by Andreas Buening.
82239
82240 2006-07-01  Eric Blake  <ebb9@byu.net>
82241
82242         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82243
82244 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82245
82246         * lib/getaddrinfo.c: fixed typo
82247
82248 2006-06-29  Jim Meyering  <jim@meyering.net>
82249
82250         * modules/strftime (Maintainer): Add my name, since with the
82251         FPRINTFTIME changes strftime.c has forked from glibc.
82252
82253 2006-06-29  Eric Blake  <ebb9@byu.net>
82254
82255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82256
82257 2006-06-29  Eric Blake  <ebb9@byu.net>
82258
82259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82260
82261 2006-06-29  Eric Blake  <ebb9@byu.net>
82262
82263         * lib/stat_.h: New file.
82264
82265 2006-06-29  Eric Blake  <ebb9@byu.net>
82266
82267         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82268         unused static function.
82269
82270 2006-06-29  Eric Blake  <ebb9@byu.net>
82271
82272         * doc/functions.texi (Function Portability): Document missing lstat
82273         on mingw.
82274
82275 2006-06-29  Eric Blake  <ebb9@byu.net>
82276
82277         * MODULES.html.sh: Add sys_stat.
82278         * modules/sys_stat: New module.
82279         * modules/mkstemp (Depends-on): Add sys_stat.
82280
82281 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82282
82283         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82284
82285 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82286
82287         * m4/c-bs-a.m4: Removed.
82288
82289 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82290
82291         * lib/strftime.c: Assume strftime() exists.
82292
82293 2006-06-29  Derek Price  <derek@ximbiot.com>
82294
82295         * modules/c-bs-a: Removed - \a is C89.
82296         * MODULES.html.sh: Remove c-bs-a.
82297
82298 2006-06-29  Bruno Haible  <bruno@clisp.org>
82299
82300         * modules/wcwidth (License): Change to LGPL.
82301
82302 2006-06-28  Simon Josefsson  <jas@extundo.com>
82303
82304         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82305         on _WIN32.
82306
82307         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82308         getnameinfo.
82309
82310 2006-06-28  Simon Josefsson  <jas@extundo.com>
82311
82312         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82313
82314 2006-06-28  Simon Josefsson  <jas@extundo.com>
82315
82316         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82317         functions there.  It will succeed on Windows XP, but on Windows
82318         2000 and (presumably) earlier, it will fail, and use the internal
82319         re-implementation.
82320         (use_win32_p): New function.
82321         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82322         Support AI_NUMERICSERV to disable getservbyname.
82323         (getnameinfo): New function, only supports
82324         NI_NUMERICHOST|NI_NUMERICSERV for now.
82325
82326         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82327         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82328         getnameinfo.
82329
82330 2006-06-28  Eric Blake  <ebb9@byu.net>
82331
82332         * modules/wcwidth: New file.
82333         * modules/mbchar (Depends-on): Add wcwidth.
82334         * modules/mbswidth (Depends-on): Add wcwidth.
82335         * MODULES.html.sh: Add wcwidth.
82336
82337 2006-06-28  Eric Blake  <ebb9@byu.net>
82338
82339         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82341
82342 2006-06-28  Eric Blake  <ebb9@byu.net>
82343
82344         * lib/xvasprintf.h: Fix comments.
82345
82346 2006-06-28  Eric Blake  <ebb9@byu.net>
82347
82348         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82349         * lib/mbswidth.c (wcwidth): Move from here...
82350         * lib/wcwidth.h: ...to this new file.
82351
82352 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82353
82354         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82355
82356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82357         it's obsolete.
82358         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82359
82360 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82361
82362         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82363         Autoconf 2.60 says this stuff was obsolete.
82364
82365 2006-06-28  Bruno Haible  <bruno@clisp.org>
82366
82367         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82368
82369 2006-06-28  Bruno Haible  <bruno@clisp.org>
82370
82371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82372         gt_TYPE_WCHAR_T.
82373
82374 2006-06-28  Bruno Haible  <bruno@clisp.org>
82375
82376         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82377         declaration for wcwidth.
82378         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82379
82380 2006-06-28  Bruno Haible  <bruno@clisp.org>
82381
82382         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82383         (mkdir): Define using _mkdir.
82384
82385 2006-06-28  Bruno Haible  <bruno@clisp.org>
82386
82387         * lib/getaddrinfo.h: Fix POSIX URL.
82388         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82389         _WIN32.
82390         (use_win32_p): Make static.
82391         (getaddrinfo): Reject service name if it is empty or does not consist
82392         solely of decimal digits, or if its value is > 65535.
82393         (getnameinfo): Remove useless casts.
82394
82395 2006-06-27  Simon Josefsson  <jas@extundo.com>
82396
82397         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82398         Eggert and Martin Lambers.
82399
82400 2006-06-27  Simon Josefsson  <jas@extundo.com>
82401
82402         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82403         Eggert and Martin Lambers.
82404
82405 2006-06-27  Bruno Haible  <bruno@clisp.org>
82406
82407         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82408         result to 0, not to empty.
82409         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82410
82411 2006-06-27  Bruno Haible  <bruno@clisp.org>
82412
82413         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82414
82415 2006-06-26  Simon Josefsson  <jas@extundo.com>
82416
82417         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82418         present.
82419
82420 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82421
82422         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82423         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82425
82426 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82427
82428         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82429
82430 2006-06-26  Bruno Haible  <bruno@clisp.org>
82431
82432         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82433
82434 2006-06-26  Bruno Haible  <bruno@clisp.org>
82435
82436         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82437
82438 2006-06-26  Bruno Haible  <bruno@clisp.org>
82439
82440         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82441         SGI C compiler in pre-C99 mode.
82442         Suggested by Mark D. Baushke and Larry Jones.
82443
82444 2006-06-26  Bruno Haible  <bruno@clisp.org>
82445
82446         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82447         WCHAR_MAX.
82448         Reported by Mark D. Baushke and Larry Jones.
82449
82450 2006-06-26  Bruno Haible  <bruno@clisp.org>
82451
82452         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82453         in pre-C99 mode.
82454         Suggested by Mark D. Baushke and Larry Jones.
82455
82456 2006-06-23  Simon Josefsson  <jas@extundo.com>
82457             Bruno Haible  <bruno@clisp.org>
82458
82459         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82460         Emit mostlyclean-local rule.
82461         (func_emit_tests_Makefile_am): Likewise.
82462         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82463
82464 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82465
82466         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82467
82468 2006-06-23  Bruno Haible  <bruno@clisp.org>
82469
82470         * tests/test-stdint.c: Update to match ISO C 99 Technical
82471         Corrigendum 1.
82472
82473 2006-06-23  Bruno Haible  <bruno@clisp.org>
82474
82475         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82476
82477 2006-06-23  Bruno Haible  <bruno@clisp.org>
82478
82479         * lib/stdint_.h: Treat IRIX like OpenBSD.
82480
82481 2006-06-23  Bruno Haible  <bruno@clisp.org>
82482
82483         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82484         ISO C 99 Technical Corrigendum 1.
82485
82486 2006-06-22  Simon Josefsson  <jas@extundo.com>
82487
82488         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82489         MinGW.
82490
82491 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82494         needed.  Some compiler complained about some of them.  Problem reported
82495         by Larry Jones in
82496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82497
82498 2006-06-21  Simon Josefsson  <jas@extundo.com>
82499
82500         * tests/test-getaddrinfo.c: New file.
82501
82502         * modules/getaddrinfo-tests: New file.
82503
82504         * MODULES.html.sh: Add inet_pton.
82505
82506         * modules/inet_pton: New file.
82507
82508 2006-06-21  Simon Josefsson  <jas@extundo.com>
82509
82510         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82511         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82512         of using the (limited) gnulib implementation on Windows XP.
82513
82514         * m4/inet_pton.m4: New file.
82515
82516 2006-06-21  Simon Josefsson  <jas@extundo.com>
82517
82518         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82519         variable.
82520
82521         * lib/socket_.h: Don't define WINVER.
82522
82523         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82524         slightly modified to work in gnulib.
82525
82526 2006-06-21  Simon Josefsson  <jas@extundo.com>
82527
82528         * doc/gnulib.texi (Windows sockets): Add.
82529
82530 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82531
82532         * lib/read-file.c (fread_file): Start with buffer allocation of
82533         0 bytes rather than 1 byte; this simplifies the code.
82534         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82535         code to free buffer and save/restore errno.
82536         (internal_read_file): Remove unused local.
82537
82538 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82541         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82542         Problem reported by Denis Excoffier in
82543         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82544
82545 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82546
82547         * modules/sys_socket, modules/socklen: Include sys/types since
82548         FreeBSD 4.x's sys/socket.h needs it.
82549
82550 2006-06-19  Simon Josefsson  <jas@extundo.com>
82551
82552         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82553
82554 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82555
82556         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82557
82558 2006-06-19  Bruno Haible  <bruno@clisp.org>
82559
82560         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82561         and FULL_PATH_INTTYPES_H in angle brackets.
82562         Reported by Mark D. Baushke <mdb@gnu.org>.
82563
82564 2006-06-17  Eric Blake  <ebb9@byu.net>
82565
82566         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82567         errno.
82568
82569 2006-06-17  Bruno Haible  <bruno@clisp.org>
82570
82571         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82572         <sys/inttypes.h>.
82573
82574 2006-06-17  Bruno Haible  <bruno@clisp.org>
82575
82576         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82577         whether errno is declared. Assume <errno.h> declares errno.
82578
82579 2006-06-17  Bruno Haible  <bruno@clisp.org>
82580
82581         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82582
82583 2006-06-17  Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82586         problem on Solaris 2.5.1.
82587
82588 2006-06-16  Eric Blake  <ebb9@byu.net>
82589
82590         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82591         * lib/unicodeio.c [!defined errno]: Likewise.
82592         * lib/strtol.c [!defined errno]: Likewise.
82593         * lib/strtod.c [!defined errno]: Likewise.
82594
82595 2006-06-15  Eric Blake  <ebb9@byu.net>
82596
82597         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82598
82599 2006-06-15  Eric Blake  <ebb9@byu.net>
82600
82601         * config/srclist.txt (ssize_t.m4): Lose sync.
82602
82603 2006-06-15  Bruno Haible  <bruno@clisp.org>
82604
82605         * modules/stdint (Files): Include m4/full-header-path.m4,
82606         m4/size_max.m4, m4/wchar_t.m4.
82607         (Makefile.am): Many more substitutions.
82608         * modules/stdint-tests: New file.
82609         * tests/test-stdint.c: New file.
82610
82611 2006-06-15  Bruno Haible  <bruno@clisp.org>
82612
82613         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82614         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82615         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82616         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82617         gl_CHECK_TYPE_SAME): New macros.
82618
82619 2006-06-15  Bruno Haible  <bruno@clisp.org>
82620
82621         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82622
82623 2006-06-15  Bruno Haible  <bruno@clisp.org>
82624
82625         * lib/stdint_.h: Rewritten to be fully auto-configured.
82626         Fixes bug on HP-UX/IA64.
82627
82628 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82629
82630         * lib/getdate.y (__attribute__): Don't define if already defined.
82631         Problem reported by Larry Jones.
82632         * lib/utimens.c (__attribute__): Likewise.
82633
82634 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82637         reported by Andreas Schwab.
82638
82639 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82640             Bruno Haible  <bruno@clisp.org>
82641
82642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82643         check for the declaration of strnlen and a run test that exposes the
82644         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82645         rpl_strndup.
82646
82647 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82648             Bruno Haible  <bruno@clisp.org>
82649
82650         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82651
82652 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82653
82654         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82655         compile test, for Tru64 4.0D.
82656
82657 2006-05-28  Karl Berry  <karl@gnu.org>
82658
82659         * config/srclist.txt (printf-args.c): lose sync.
82660
82661 2006-05-26  Martin Lambers  <marlam@marlam.de>
82662
82663         * lib/getpass.c: Updates the test for the native W32 API, and adds
82664         missing includes, thus fixing compilation warnings.
82665
82666 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82667
82668         * lib/exclude.c (exclude_fnmatch): New function.
82669         (excluded_file_name): Call exclude_fnmatch.
82670         * lib/exclude.h (excluded_file_name): New prototype
82671
82672 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         * lib/tempname.c (small_open, large_open): New macros.
82675         (__open, __open64) [!_LIBC]: Remove.
82676         (__gen_tempname): Use small_open and large_open instead of __open
82677         and __open64.  This fixes a portability bug on HP-UX 11.11i
82678         reported by Simon Wing-Tang in
82679         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82680
82681 2006-05-24  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82684         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82685         Reported by Thorsten Maerz <torte@netztorte.de> via
82686         Aaron Stone <aaron@serendipity.cx>.
82687
82688 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82691         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82692         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82693         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82694         not really conditional on the cache.
82695         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82696
82697 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82700         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82701         (my_usleep): Don't mishandle maximum value.
82702
82703 2006-05-19  Jim Meyering  <jim@meyering.net>
82704
82705         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82706
82707 2006-05-17  Bruno Haible  <bruno@clisp.org>
82708
82709         Cygwin portability.
82710         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82711
82712 2006-05-17  Bruno Haible  <bruno@clisp.org>
82713
82714         * lib/stdint_.h: Fix recognition of Cygwin.
82715
82716 2006-05-15  Bruno Haible  <bruno@clisp.org>
82717
82718         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82719         on libtool patch by Ralf Wildenhues.
82720
82721 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82724         test for C99 conformance; (bool) 0.5 is an integer constant
82725         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82726         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82727
82728 2006-05-11  Simon Josefsson  <jas@extundo.com>
82729
82730         * m4/xvasprintf.m4: Fix obvious typo.
82731
82732 2006-05-11  Jim Meyering  <jim@meyering.net>
82733
82734         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82735         James Lemley.
82736
82737 2006-05-10  Simon Josefsson  <jas@extundo.com>
82738
82739         * lib/md4.c: Typo fix, update copyright years.
82740         (K1, K2): Don't use L because it turn computations into 64-bit on
82741         64-bit platforms.
82742
82743 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82746         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82747         unwanted sign propagation, e.g., on hosts with 64-bit int.
82748         There still are some problems with reeelly weird theoretical hosts
82749         (e.g., 33-bit int) but it's not worth worrying about now.
82750         * lib/sha1.c (rol): Likewise.
82751         (K1, K2, K3, K4): Remove unnecessary L suffix.
82752
82753 2006-05-10  Bruno Haible  <bruno@clisp.org>
82754
82755         * lib/des.c: Cast to avoid warnings.
82756
82757 2006-05-09  Bruno Haible  <bruno@clisp.org>
82758
82759         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82760         (Depends-on): Depend also on xsize, stdarg.
82761         (configure.ac): Add gl_XVASPRINTF.
82762
82763 2006-05-09  Bruno Haible  <bruno@clisp.org>
82764
82765         * m4/xvasprintf.m4: New file.
82766
82767 2006-05-09  Bruno Haible  <bruno@clisp.org>
82768
82769         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82770         (EOVERFLOW): Define fallback value.
82771         (xstrcat): New function.
82772         (xvasprintf): Recognize the special case of a string concatenation.
82773
82774 2006-05-08  Eric Blake  <ebb9@byu.net>
82775
82776         * gnulib-tool (func_version): Base copyright year on CVS date.
82777         (func_emit_copyright_notice): New function.
82778         (func_emit_lib_Makefile_am): Use it.
82779         (func_emit_tests_Makefile_am): Likewise.
82780         (func_import): Likewise.
82781
82782 2006-05-08  Bruno Haible  <bruno@clisp.org>
82783
82784         * modules/stdarg: New file.
82785         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82786
82787 2006-05-08  Bruno Haible  <bruno@clisp.org>
82788
82789         * m4/stdarg.m4: New file, from GNU gettext.
82790
82791 2006-05-08  Bruno Haible  <bruno@clisp.org>
82792
82793         * config/srclist.txt (build-aux/config.rpath): different from latest
82794         release.
82795
82796 2006-05-08  Bruno Haible  <bruno@clisp.org>
82797
82798         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82799
82800 2006-05-05  Jim Meyering  <jim@meyering.net>
82801
82802         * m4/warning.m4: New file, derived from bison's file by the same name.
82803
82804 2006-05-03  Bruno Haible  <bruno@clisp.org>
82805
82806         * lib/stdint_.h: Shorter URL.
82807         * lib/inttypes.h: Likewise.
82808
82809 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82812
82813 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82814
82815         * lib/verify.h: Document the internals better.  Most of this change
82816         was written by Bruno Haible.
82817
82818 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82819
82820         * doc/verify.texi: New file, partly based on a proposal by
82821         Bruno Haible.
82822
82823 2006-05-02  Bruno Haible  <bruno@clisp.org>
82824
82825         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82826         test from here...
82827         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82828
82829 2006-04-29  Bruno Haible  <bruno@clisp.org>
82830
82831         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82832         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82833
82834 2006-04-29  Bruno Haible  <bruno@clisp.org>
82835
82836         * gnulib-tool: Make --update option actually work.
82837
82838 2006-04-29  Bruno Haible  <bruno@clisp.org>
82839
82840         * doc/gcd.texi: New file.
82841         * doc/gnulib.texi: Include it.
82842
82843 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82844
82845         * lib/getdate.y (get_date): When adding relative date, start with the
82846         initial time, not with the result of the first mktime call.
82847
82848 2006-04-25  Bruno Haible  <bruno@clisp.org>
82849
82850         * gnulib-tool (func_import): Output the include directives in three
82851         blocks, sorted separately.
82852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82853
82854 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82857         to define main with arguments, for C++.  Reported by Eric Blake.
82858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82859         Prefer 'int main ()' to 'int main (void)', for C++.
82860         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82862         for 'main', for C99 and C++.
82863
82864 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82865
82866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82867         Don't assume that exit status -1 is valid.
82868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82869         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82871         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82872         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82873         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82874         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82875         functions can be used without declaring them, or that you can
82876         exit with status -1.
82877         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82878
82879 2006-04-24  Karl Berry  <karl@gnu.org>
82880
82881         * config/srclist.txt (longdouble.m4): sync lost.
82882
82883 2006-04-24  Eric Blake  <ebb9@byu.net>
82884
82885         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82886
82887 2006-04-24  Bruno Haible  <bruno@clisp.org>
82888
82889         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82890         poll() implementation in AIX.
82891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82892
82893 2006-04-24  Bruno Haible  <bruno@clisp.org>
82894
82895         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82896         assigned exactly once.
82897
82898 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82899             Bruno Haible  <bruno@clisp.org>
82900
82901         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82902         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82903         for AM_CPPFLAGS.
82904
82905 2006-04-23  Bruno Haible  <bruno@clisp.org>
82906
82907         * modules/copy-file: Depend on unistd.
82908         * modules/execute: Likewise.
82909         * modules/fatal-signal: Likewise.
82910         * modules/findprog: Likewise.
82911         * modules/mkdtemp : Likewise.
82912         * modules/pipe: Likewise.
82913         * modules/wait-process: Likewise.
82914
82915 2006-04-23  Bruno Haible  <bruno@clisp.org>
82916
82917         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82918         condition was already detected.
82919         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82920
82921 2006-04-23  Bruno Haible  <bruno@clisp.org>
82922
82923         * lib/copy-file.c: Include <unistd.h> unconditionally.
82924         * lib/execute.c: Likewise.
82925         * lib/fatal-signal.c: Likewise.
82926         * lib/findprog.c: Likewise.
82927         * lib/mkdtemp.c: Likewise.
82928         * lib/pipe.h: Likewise.
82929         * lib/pipe.c: Likewise.
82930         * lib/wait-process.h: Likewise.
82931
82932 2006-04-23  Bruno Haible  <bruno@clisp.org>
82933
82934         * gnulib-tool (func_usage): Fix --import description. Document
82935         --update.
82936         (func_import): Create temporary file in a temporary directory, if
82937         --dry-run is specified. Silence errors from 'grep' when there are no
82938         m4 files in $m4dir.
82939         (func_create_testdir): Silence errors from 'grep' when there are no
82940         m4 files in $m4dir.
82941         Reported by Karl Berry <karl@freefriends.org>.
82942
82943 2006-04-20  Bruno Haible  <bruno@clisp.org>
82944
82945         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82946         one argument, so that the code will be portable to Autoconf 2.60.
82947         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82949         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82950
82951 2006-04-19  Derek Price  <derek@ximbiot.com>
82952             Eric Blake  <ebb9@byu.net>
82953
82954         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82955         rather than "/full/path.h".  Update comment to match.  Shorten &
82956         generalize m4_translit call via AS_TR_CPP.
82957
82958 2006-04-19  Derek Price  <derek@ximbiot.com>
82959             Eric Blake  <ebb9@byu.net>
82960
82961         * lib/inttypes.h: Correct grammar in comment.
82962
82963 2006-04-18  Derek Price  <derek@ximbiot.com>
82964             Paul Eggert  <eggert@cs.ucla.edu>
82965
82966         * modules/inttypes: New file.
82967         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82968
82969 2006-04-18  Derek Price  <derek@ximbiot.com>
82970             Paul Eggert  <eggert@cs.ucla.edu>
82971
82972         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82973         New files.
82974
82975 2006-04-18  Derek Price  <derek@ximbiot.com>
82976             Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * lib/inttypes.h: New file.
82979         * lib/strtoimax.c: Assume <inttypes.h>.
82980
82981 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82982
82983         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82984         isn't mounted.  Problem reported by Kir Kolyshkin.
82985
82986 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82989         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82990         Derek R. Price.
82991         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82992         implementation.
82993
82994 2006-04-12  Eric Blake  <ebb9@byu.net>
82995
82996         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82997         is now done automatically by the corresponding Autoconf macro.
82998
82999 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83000
83001         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83002         time_r.h.
83003
83004 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         Merge regex changes from libc, removing some of our
83007         POSIX-conformance changes that were rejected and redoing them in a
83008         less-intrusive way.
83009
83010         * lib/regcomp.c (re_compile_internal, init_dfa):
83011         Length arg is now size_t, not Idx.  All uses changed.
83012         (peek_token): Forward decl now says internal_function.
83013         (__re_error_msgid, __re_error_msgid_idx):
83014         Now static rather than extern with attribute_hidden.
83015         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83016         For some reason libc prefers K&R style defns for external functions.
83017         (regerror) [!defined _LIBC]: Likewise.
83018         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83019         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83020         (build_range_exp, build_collating_symbol):
83021         Use K&R-style defn.
83022         (re_compile_fastmap): Use '\0' to memset, not 0.
83023         (utf8_sb_map): Make the calculations more obvious.
83024         (init_dfa, parse_bracket_exp, build_charclass_op):
83025         Call calloc and cast result, as glibc does.
83026         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83027         (build_range_exp, build_collating_symbol):
83028         Now internal functions.
83029
83030         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83031
83032         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83033         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83034         Don't depend on VMS; depend on __VMS instead, for POSIX
83035         namespace cleanness.
83036         (regoff_t): Define to ssize_t, not long int.
83037
83038         Remove the REG_ macros named below.  Instead, make the old names
83039         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83040         __USE_GNU_REGEX.
83041         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83042         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83043         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83044         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83045         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83046         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83047         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83048         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83049         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83050         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83051         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83052         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83053         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83054         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83055         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83056         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83057         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83058         (REG_NREGS):
83059         Remove.  All uses replaced by the old RE_* names.
83060         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83061         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83062         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83063         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83064         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83065         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83066         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83067         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83068         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83069         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83070         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83071         Don't bother having these macros be independent of each others'
83072         values, since they no longer exist in the POSIX name space.
83073
83074         Rename the following member names back to their old names,
83075         unless !__USE_GNU_REGEX.  All uses changed back.
83076         (buffer): Renamed from re_buffer.
83077         (allocated): Renamed from re_allocated.
83078         (used): Renamed from re_used.
83079         (syntax): Renamed from re_syntax.
83080         (fastmap): Renamed from re_fastmap.
83081         (translate): Renamed from re_translate.
83082         (can_be_null): Renamed from re_can_be_null.
83083         (regs_allocated): Renamed from re_regs_allocated.
83084         (fastmap_accurate): Renamed from re_fastmap_accurate.
83085         (no_sub): Renamed from re_no_sub.
83086         (not_bol): Renamed from re_not_bol.
83087         (not_eol): Renamed from re_not_eol.
83088         (newline_anchor): Renamed from re_newline_anchor.
83089         (num_regs): Renamed from rm_num_regs.
83090         (start): Renamed from rm_start.
83091         (end): Renamed from rm_end.
83092
83093         (free_state): Move up a bit.
83094
83095         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83096         #define to be empty.
83097         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83098         when that is what is intended.
83099         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83100         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83101         (MAX): New macro.
83102         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83103         All uses changed back to re_malloc, etc.  It's now the caller's
83104         responsibility to check for overflow; all callers changed.
83105         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83106         (re_x2nrealloc): Remove.
83107         (free_state): Remove decl.
83108
83109         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83110         (re_set_registers, re_exec):
83111         Use K&R-style defn.
83112
83113         2006-01-31  Roland McGrath  <roland@redhat.com>
83114
83115         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83116         Reported by Mike Frysinger <vapier@gentoo.org>.
83117
83118         2006-01-15  Andreas Jaeger  <aj@suse.de>
83119
83120         [BZ #1950]
83121         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83122         build_wcs_upper_buffer change.
83123         (build_wcs_upper_buffer): Change return type.
83124
83125         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83126
83127         * lib/regex_internal.h: Include <stdint.h> if available.
83128
83129         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83130
83131         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83132
83133         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83134
83135         * lib/regcomp.c: Adjust for changed secondary hash function.
83136
83137         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83138
83139         * lib/regex.h: Pretty printing.
83140         Clean up namespace a bit.
83141
83142         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83143
83144         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83145         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83146
83147         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83148                     Ulrich Drepper  <drepper@redhat.com>
83149
83150         [BZ #1302]
83151         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83152         changed.
83153         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83154
83155         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83156
83157         [BZ #281]
83158         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83159         * lib/regcomp.c: Remove unnecessary uses of
83160         unsigned RE_TRANSLATE_TYPE.
83161         * lib/regex_internal.h: Likewise.
83162         * lib/regex_internal.c: Likewise.
83163         * lib/regexec.c: Likewise.
83164         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83165
83166         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83167
83168         * lib/regexec.c (find_recover_state): Remove unnecessary
83169         initialization.
83170         (transit_state_bkref): Make DFA a const pointer.
83171         (get_subexp): Likewise.
83172         (check_arrival): Likewise.
83173         (update_cur_sifted_state): Likewise.
83174         (re_search_internal): Likewise.
83175         (prune_impossible_nodes): Likewise.
83176         (acquire_init_state_context): Likewise.
83177         (proceed_next_node): Likewise.
83178         (set_regs): Likewise.
83179         (free_fail_stack_return): Likewise.
83180         (check_arrival_expand_ecl): Mark DFA parameter as const.
83181         (check_arrival_expand_ecl_sub): Likewise.
83182         (check_subexp_limits): Likewise.
83183         (sub_epsilon_src_nodes):  Likewise.
83184         (add_epsilon_src_nodes):  Likewise.
83185         (merge_state_array): Likewise.
83186         (update_regs): Likewise.
83187         (build_trtable): Likewise.
83188         (sift_states_backward): Mark MCTX parameter as const.
83189         (build_sifted_states): Likewise.
83190         (update_cur_sifted_state): Likewise.
83191         (sift_states_mkref): Likewise.
83192         (check_arrival_expand_ecl): Mark eclosure as const.
83193         (check_dst_limits_calc_pos_1): Likewise.
83194         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83195         pointer.
83196
83197         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83198
83199         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83200         (transit_state_sb): Likewise.
83201         (transit_state_mb): Likewise.
83202         (sift_states_iter_mb): Likewise.
83203         (check_arrival_add_next_nodes): Likewise.
83204         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83205         [_LIBC] (re_search_2_stub): Use mempcpy.
83206
83207         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83208         mbrtowc for very simple UTF-8 case.
83209
83210         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83211         a pointer-to-const.
83212         (re_acquire_state_context): Likewise.
83213         * lib/regex_internal.h: Adjust prototypes.
83214
83215         * lib/regex.c: Prevent using C++ compilers.
83216
83217         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83218         (re_acquire_state_context): Likewise.
83219
83220 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * modules/regex (Depends-on): Add ssize_t.
83223
83224 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83225
83226         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83227         translation table.
83228
83229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83230
83231         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83232
83233 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83234             Bruno Haible  <bruno@clisp.org>
83235
83236         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83237         <sys/types.h> and <inttypes.h>.
83238
83239 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83240
83241         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83242         `__error_t_defined', so argp.h will not typedef the former.
83243
83244 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83245
83246         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83247         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83248         glibc names.  Even if glibc is changed to conform to POSIX, the
83249         traditional names will be available anyway, since regex depends on
83250         the extensions module.  Also, fix a longstanding typo in the
83251         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83252         reported by Emanuele Giaquinta.  Also, change sense of cached
83253         variable, so that the message makes sense.
83254
83255 2006-03-24  Simon Josefsson  <jas@extundo.com>
83256
83257         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83258         including some doc fixes.
83259         (base64_encode_alloc): Fix +1 bug on allocation failures.
83260
83261 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83262
83263         * lib/base64.c (base64_encode): Do not read past end of array with
83264         unsanitized input on systems with CHAR_BIT > 8.
83265
83266 2006-03-24  Eric Blake  <ebb9@byu.net>
83267
83268         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83269
83270 2006-03-22  Karl Berry  <karl@gnu.org>
83271
83272         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83273         * config/srclistvars.sh (COREUTILS): new var.
83274
83275 2006-03-17  Jim Meyering  <jim@meyering.net>
83276
83277         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83278         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83279
83280 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83281
83282         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83283         no longer needs it.  Instead, check that regoff_t is as least
83284         as wide as ptrdiff_t.
83285
83286         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83287         so that our regex.h stays compatible with the installed regex.
83288         This is helpful for installers who configure --without-included-regex.
83289         Problem reported by Emanuele Giaquinta.
83290
83291 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83292
83293         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83294         Typedef to long int, not to off_, as POSIX will likely change
83295         in that direction.
83296
83297 2006-03-15  Eric Blake  <ebb9@byu.net>
83298
83299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83300
83301 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83302
83303         * lib/argp-help.c (validate_uparams): Fix typo
83304         * lib/argp-parse.c (argp_default_options): Consistently begin help
83305         messages with a lowercase letter.
83306
83307 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83308
83309         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83310         overrun buffers and shouldn't be used (much as gets shouldn't be
83311         used).
83312         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83313
83314 2006-03-08  Simon Josefsson  <jas@extundo.com>
83315
83316         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83317         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83318
83319 2006-03-08  Simon Josefsson  <jas@extundo.com>
83320
83321         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83322         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83323
83324 2006-03-08  Simon Josefsson  <jas@extundo.com>
83325
83326         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83327         signal that configure disabled the device.
83328
83329 2006-03-08  Simon Josefsson  <jas@extundo.com>
83330
83331         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83332         languages.
83333
83334 2006-03-07  Simon Josefsson  <jas@extundo.com>
83335
83336         * modules/getopt (Depends-on): Add unistd.
83337
83338         * modules/unistd: New file.
83339
83340 2006-03-07  Simon Josefsson  <jas@extundo.com>
83341
83342         * modules/gc-random: New file.
83343
83344 2006-03-07  Simon Josefsson  <jas@extundo.com>
83345
83346         * m4/unistd_h.m4: New file.
83347
83348 2006-03-07  Simon Josefsson  <jas@extundo.com>
83349
83350         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83351         test to be side-effect free by storing the result in the cache
83352         variable gl_cv_lib_readline, and moving the assignment of
83353         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83354         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83355
83356 2006-03-07  Simon Josefsson  <jas@extundo.com>
83357
83358         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83359         error on missing devices (the functions will return an error).
83360
83361         * m4/gc.m4: Move random stuff to gc-random.m4
83362
83363 2006-03-07  Simon Josefsson  <jas@extundo.com>
83364
83365         * lib/unistd_.h: New file.
83366
83367 2006-03-07  Simon Josefsson  <jas@extundo.com>
83368
83369         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83370
83371 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83374         Problem reported by Juan Manuel Guerrero.
83375
83376 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83379         the unistd module.
83380         * lib/getlogin_r.c: Likewise.
83381         * lib/getlogin_r.h: Likewise.
83382         * lib/glob.c: Likewise.
83383         * lib/pagealign_alloc.c: Likewise.
83384         * lib/unistd_.h: Remove; no longer needed.
83385
83386 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83387
83388         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83389         Add unistd.
83390         * modules/c-stack (Depends-on): Add unistd.
83391         * modules/getlogin_r: Likewise.
83392         * modules/glob: Likewise.
83393         * modules/pagealign_alloc: Likewise.
83394         * modules/unistd (Files): Remove lib/unistd_.h.
83395         (EXTRA_DIST): Remove.
83396         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83397         need unistd_.h.
83398         (MOSTLYCLEANFILES): Remove unistd.h-t.
83399
83400 2006-03-03  Simon Josefsson  <jas@extundo.com>
83401
83402         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83403
83404 2006-03-03  Simon Josefsson  <jas@extundo.com>
83405
83406         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83407         libidn and bison.
83408
83409 2006-03-03  Simon Josefsson  <jas@extundo.com>
83410
83411         * build-aux/maint.mk: Add indent target.
83412
83413 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83414
83415         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83416         our replacement poll.h in any case, to avoid a differing
83417         declaration from a system header.  Seen on AIX.
83418
83419 2006-03-01  Simon Josefsson  <jas@extundo.com>
83420
83421         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83422         <kasal@ucw.cz>.
83423
83424 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83425
83426         * modules/gettime (Depends-on): Add extensions module.
83427         * modules/nanosleep (Depends-on): Likewise.
83428         * modules/settime (Depends-on): Likewise.
83429
83430 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83431
83432         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83433         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83434         pedantically.
83435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83436         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83437
83438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83439         not "==".  Reported by Ralf Wildenhues.
83440
83441 2006-03-01  Karl Berry  <karl@gnu.org>
83442
83443         * doc/Copyright/request-*: new files, synced from gnuorg.
83444
83445 2006-03-01  Karl Berry  <karl@gnu.org>
83446
83447         * config/srclist.txt (Copyright/*): new entries.
83448
83449 2006-02-28  Simon Josefsson  <jas@extundo.com>
83450
83451         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83452
83453 2006-02-27  Simon Josefsson  <jas@extundo.com>
83454
83455         * lib/base64.h: Indent #define's.  From Jim Meyering
83456         <jim@meyering.net>.
83457
83458 2006-02-27  Jim Meyering  <jim@meyering.net>
83459
83460         Revert the change of 2006-02-24, so these files can continue
83461         to be sync'd from gettext.
83462         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83463         of `config.h'.
83464
83465 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83466
83467         * modules/intprops: New file.
83468         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83469         Add intprops.
83470         * modules/getloadavg (Files): Remove lib/intprops.h.
83471         (Depends-on): Add intprops.
83472         * modules/human: Likewise.
83473         * modules/inttostr: Likewise.
83474         * modules/openat: Likewise.
83475         * modules/sig2str: Likewise.
83476         * modules/userspec: Likewise.
83477         * modules/utimecmp: Likewise.
83478         * modules/xnanosleep: Likewise.
83479         * modules/xstrtol: Likewise.
83480
83481 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83482
83483         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83484         * modules/lock-tests (TESTS): Use $(EXEEXT).
83485         * modules/tls-tests: Likewise.
83486         * modules/argp-tests: Likewise.
83487         (check_PROGRAMS): New var, replacing...
83488         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83489
83490 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83491
83492         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83493         `config.h'.
83494
83495 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83498
83499 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83500
83501         Sync from coreutils.
83502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83503         gl_CHDIR_SAFER.
83504
83505 2006-02-22  Jim Meyering  <jim@meyering.net>
83506
83507         Sync from coreutils.
83508         * m4/chdir-safer.m4: New file.
83509
83510 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83511
83512         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83513         AT_FDCWD exceeds INT_MAX.
83514         * lib/openat.h (AT_FDCWD): Likewise.
83515
83516 2006-02-17  Eric Blake  <address@hidden>
83517
83518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83519
83520 2006-02-16  Simon Josefsson  <jas@extundo.com>
83521
83522         * modules/getaddrinfo (Depends-on): Add sys_socket.
83523
83524 2006-02-15  Simon Josefsson  <jas@extundo.com>
83525
83526         * build-aux/maint.mk: Add dsyntax-check rule.
83527
83528 2006-02-15  Eric Blake  <ebb9@byu.net>
83529
83530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83531         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83532         'present but cannot compile' warnings on cygwin.
83533         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83534         use ws2tcpip.h if sys/socket.h works.
83535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83536         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83537
83538 2006-02-14  Simon Josefsson  <jas@extundo.com>
83539
83540         * modules/maintainer-makefile (Files): Rename.
83541
83542         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83543         and (the local) Makefile.cfg to maint-cfg.mk.
83544
83545         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83546         to the latter.
83547
83548         * modules/maintainer-makefile: New module.
83549
83550         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83551         severaly stripped to make it possible to build it up from scratch
83552         with reliable tests.
83553
83554         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83555         fixes to permit overriding the default actions when configure and
83556         makefile are not available.
83557
83558 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83559
83560         Sync from coreutils.
83561         * modules/lstat (Depends-on): Don't depend on xalloc.
83562         (License): Change from GPL to LGPL, since this is now simply a
83563         replacement for a libc function.
83564
83565 2006-02-14  Jim Meyering  <jim@meyering.net>
83566
83567         Sync from coreutils.
83568
83569         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83570         failure on deficient systems, and simplify gnulib lgpl dependencies.
83571         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83572         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83573
83574         * lib/xalloc-die.c: Remove unused definition of N_.
83575
83576 2006-02-14  Jim Meyering  <jim@meyering.net>
83577
83578         Sync from coreutils.
83579         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83580         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83581         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83582         double-quote uses of that variable, to accommodate the rare case in
83583         which getmntent is available in none of the libraries checked.  This
83584         happens at least on FreeBSD 5.0.
83585
83586 2006-02-13  Simon Josefsson  <jas@extundo.com>
83587
83588         * gnulib-tool (Usage): Fix --import, from
83589         karl@freefriends.org (Karl Berry).
83590
83591 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83592
83593         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83594
83595 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83596
83597         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83598         "autoupdate" on 2005-12-12.
83599
83600 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83601
83602         * modules/closeout (Depends-on): Remove atexit.
83603
83604 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83607         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83608
83609 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83612         __EXTENSIONS__ if this causes compilation to fail.  Problem
83613         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83614         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83615
83616 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83617
83618         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83619         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83621         All uses changed.
83622
83623 2006-01-26  Simon Josefsson  <jas@extundo.com>
83624
83625         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83626         prototype is visible on mingw32.
83627
83628         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83629         for mingw32.
83630
83631         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83632         mingw32).
83633
83634 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83637         attempt to open for write; this always fails, at least on POSIX
83638         hosts.  This reinstates the 2006-01-09 change, which was
83639         inadvertently removed.
83640
83641 2006-01-26  Bruno Haible  <bruno@clisp.org>
83642
83643         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83644         Reported by Paul Eggert.
83645
83646 2006-01-26  Bruno Haible  <bruno@clisp.org>
83647             Paul Eggert  <eggert@cs.ucla.edu>
83648
83649         * lib/stdbool_.h (_Bool)
83650         [(! (defined __cplusplus || defined __BEOS__)
83651           && !defined __GNUC__
83652           && !(defined __HP_cc || defined __xlc__
83653                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83654                || defined __sgi))]:
83655         #define to signed char in these cases too; this simplifies
83656         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83657         etc., separately) and makes it more conservative.
83658
83659 2006-01-25  Simon Josefsson  <jas@extundo.com>
83660
83661         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83662         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83663         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83664
83665 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83666
83667         * lib/argp-namefrob.h: Bugfix. Remove stray #
83668
83669 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83670
83671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83672         so that we test the test.
83673         Check for yet another HP-UX cc bug involving *bool |= bool.
83674
83675 2006-01-25  Karl Berry  <karl@gnu.org>
83676
83677         * config/srclist.txt (vasnprintf.c): sync lost.
83678
83679 2006-01-25  Jim Meyering  <jim@meyering.net>
83680
83681         Sync from the stable (b5) branch of coreutils:
83682
83683         * lib/fts.c (fts_children): Don't let close() clobber errno from
83684         failed fchdir().
83685
83686         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83687         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83688         a dangling symlink.  That can also happen at least for ELOOP.
83689         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83690         FYI, this bug predates the inclusion of fts.c in coreutils.
83691
83692         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83693         in their own block, so pre-c99 compilers don't object.
83694
83695         Avoid the double-free (first in fts_read, second in fts_close) that
83696         would occur when an `active' directory is made inaccessible (e.g.,
83697         via chmod a-x) during a traversal.
83698         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83699         before returning.  Reproduce this failure by
83700         mkdir -p a/b; cd a; chmod a-x . b
83701         Reported by Stavros Passas.
83702
83703 2006-01-25  Jim Meyering  <jim@meyering.net>
83704
83705         * lib/fileblocks.c: Remove more useless parentheses.
83706         * lib/readutmp.h: Likewise.
83707
83708 2006-01-25  Bruno Haible  <bruno@clisp.org>
83709
83710         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83711         warnings.
83712         Reported by Paul Eggert.
83713
83714 2006-01-25  Bruno Haible  <bruno@clisp.org>
83715
83716         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83717         rid of a trap command. For Solaris sh.
83718         Reported by Mark D. Baushke <mdb@gnu.org>.
83719
83720 2006-01-24  Simon Josefsson  <jas@extundo.com>
83721
83722         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83723         Bruno.
83724
83725 2006-01-24  Karl Berry  <karl@gnu.org>
83726
83727         * config/srclist.txt (argp-namefrob.h): sync lost.
83728
83729 2006-01-24  Jim Meyering  <jim@meyering.net>
83730
83731         * modules/openat (Files): Add lib/intprops.h.
83732         From Mark D. Baushke.
83733
83734 2006-01-24  Jim Meyering  <jim@meyering.net>
83735
83736         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83737         Reported by Mark D. Baushke.
83738
83739 2006-01-24  Jim Meyering  <jim@meyering.net>
83740
83741         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83742
83743 2006-01-24  Bruno Haible  <bruno@clisp.org>
83744
83745         * modules/strnlen (Maintainer): Change from glibc to all.
83746
83747 2006-01-24  Bruno Haible  <bruno@clisp.org>
83748
83749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83750         Patch by Paul Eggert.
83751
83752 2006-01-24  Bruno Haible  <bruno@clisp.org>
83753
83754         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83755         already has it.
83756         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83757         2005-11-26.
83758
83759         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83760         'signed char' to avoid problems with the built-in _Bool type.
83761         Reported by Paul Eggert on 2005-11-26.
83762
83763 2006-01-24  Bruno Haible  <bruno@clisp.org>
83764
83765         * gnulib-tool (func_import): Avoid constructing complicated sed
83766         expressions inside backquote.
83767         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83768
83769 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83770
83771         These changes imported from libc.
83772         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83773         test and two separate function calls.
83774         * lib/strndup.c (__strndup): Add libc_hidden_def.
83775
83776 2006-01-23  Simon Josefsson  <jas@extundo.com>
83777
83778         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83779         Remove the test_*_SOURCES variable: automake infers it by default.
83780         * modules/tls-tests: Likewise.
83781
83782 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83783
83784         Work around porting bugs reported by Dieter in
83785         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83786         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83787         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83788         Include "getopt.h" first, to check interface.
83789         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83790         !HAVE_DECL_GETENV.
83791         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83792         (__strndup): Revert to K&R-style function dfns, the glibc style.
83793         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83794         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83795         Include strnlen.h first, to get prototype properly.
83796         (strnlen): Renamed from __strnlen.
83797         Remove weak alias.
83798
83799 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83800
83801         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83802
83803 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83804
83805         * config/srclist.txt: Adjust to reflect glibc reorganization.
83806         This affects only comments.
83807
83808 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83809
83810          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83811          Reported by Bruce Korb <bkorb@gnu.org>.
83812
83813 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83816         to pacify gcc -Wswitch-default.
83817
83818 2006-01-22  Bruno Haible  <bruno@clisp.org>
83819
83820         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83821         temporary buffer for sprintf, take into account the precision also
83822         for 'd', 'i', 'u', 'o', 'x', 'X'.
83823
83824 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83825
83826         * modules/argp-tests: New module
83827         * tests/test-argp.c: New file
83828         * tests/test-argp-2.sh: New file
83829
83830 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83831
83832         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83833         (__argp_base_name): Removed
83834         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83835         typo.
83836         (__argp_base_name): Provide macro definition or extern declaration
83837         depending on the configuration
83838
83839 2006-01-20  Simon Josefsson  <jas@extundo.com>
83840
83841         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83842
83843 2006-01-20  Simon Josefsson  <jas@extundo.com>
83844
83845         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83846
83847 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83848
83849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83850         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83851         Suggested by Bruno Haible.
83852
83853 2006-01-20  Karl Berry  <karl@gnu.org>
83854
83855         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83856         until changes propagate, I guess.
83857
83858 2006-01-19  Simon Josefsson  <jas@extundo.com>
83859
83860         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83861
83862 2006-01-19  Simon Josefsson  <jas@extundo.com>
83863
83864         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83865
83866 2006-01-19  Simon Josefsson  <jas@extundo.com>
83867
83868         * gnulib-tool: Set check_PROGRAMS.
83869
83870         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83871         modules/des-tests, modules/gc-arcfour-tests,
83872         modules/gc-arctwo-tests, modules/gc-des-tests,
83873         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83874         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83875         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83876         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83877         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83878         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83879         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83880         test_*_SOURCES.
83881
83882 2006-01-18  Simon Josefsson  <jas@extundo.com>
83883
83884         * modules/socklen (Depends-on): Depend on sys_socket.
83885
83886 2006-01-18  Simon Josefsson  <jas@extundo.com>
83887
83888         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83889         modules/des-tests, modules/gc-arcfour-tests,
83890         modules/gc-arctwo-tests, modules/gc-des-tests,
83891         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83892         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83893         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83894         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83895         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83896         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83897         $(EXEEXT) to automake TESTS variable, for mingw32.
83898
83899 2006-01-17  Simon Josefsson  <jas@extundo.com>
83900
83901         * modules/socklen (Include): Need sys/socket.h.
83902
83903 2006-01-17  Bruno Haible  <bruno@clisp.org>
83904
83905         * modules/ssize_t (Include): Add <sys/types.h>.
83906
83907 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83910         it's not portable and it doesn't work with cross-compiles.
83911         Problem reported by Bruno Haible.  Fix missing-$ typo in
83912         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83913         -zignore from being used with Sun's C compiler.
83914
83915 2006-01-12  Simon Josefsson  <jas@extundo.com>
83916
83917         * lib/base64.c: Fix warning, reported by Bruno Haible
83918         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83919
83920 2006-01-12  Bruno Haible  <bruno@clisp.org>
83921
83922         * modules/ldd: New file.
83923         * build-aux/ldd.sh.in: New file.
83924         * MODULES.html.sh (Support for building libraries and executables): Add
83925         ldd.
83926
83927 2006-01-12  Bruno Haible  <bruno@clisp.org>
83928
83929         * m4/ldd.m4: New file.
83930
83931 2006-01-12  Bruno Haible  <bruno@clisp.org>
83932
83933         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83934         endless loop while replacing $auxdir with build-aux.
83935
83936 2006-01-11  Simon Josefsson  <jas@extundo.com>
83937
83938         * lib/stdint_.h (SIZE_MAX): Add missing (.
83939
83940 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83941
83942         Sync from coreutils.
83943         * lib/md5.c: Fix commentary typos.
83944         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83945         * lib/md5.h (__attribute__): Remove; unused.
83946         * lib/sha1.c: Fix commentary to match md5 better.
83947         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83948         so that we don't need to worry about alignment.  All uses changed.
83949         This merges the 2005-10-28 md5 change into sha1.
83950
83951 2006-01-11  Jim Meyering  <jim@meyering.net>
83952
83953         Sync from coreutils.
83954         * lib/md5.c (OP): Fix spacing.
83955
83956 2006-01-11  Bruno Haible  <bruno@clisp.org>
83957
83958         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83959         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83960         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83961
83962 2006-01-11  Bruno Haible  <bruno@clisp.org>
83963
83964         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83965         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83966         the "early" section as well.
83967
83968 2006-01-11  Bruno Haible  <bruno@clisp.org>
83969
83970         Avoid "ar: no archive members specified" error on MacOS X.
83971         * gnulib-tool (func_modules_add_dummy): New function.
83972         (func_import, func_create_testdir): Invoke it.
83973
83974 2006-01-11  Bruno Haible  <bruno@clisp.org>
83975
83976         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83977         with $auxdir in AC_CONFIG_FILES statements.
83978
83979 2006-01-11  Bruno Haible  <bruno@clisp.org>
83980
83981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83982         Initialize also noinst_HEADERS to empty.
83983
83984 2006-01-11  Bruno Haible  <bruno@clisp.org>
83985
83986         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83987         variables.
83988         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83989         autoreconf.
83990
83991 2006-01-11  Bruno Haible  <bruno@clisp.org>
83992
83993         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83994         overridable by the user.
83995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83996
83997 2006-01-10  Simon Josefsson  <jas@extundo.com>
83998
83999         * modules/sys_socket: New file.
84000
84001 2006-01-10  Simon Josefsson  <jas@extundo.com>
84002
84003         * m4/sys_socket_h.m4: New file.
84004
84005 2006-01-10  Simon Josefsson  <jas@extundo.com>
84006
84007         * lib/socket_.h: New file.
84008
84009 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         * modules/readutmp (Maintainer): Add myself.
84012
84013 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84014
84015         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84016         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84017         People who are still concerned with buggy memcmp implementations
84018         can invoke gl_FUNC_MEMCMP themselves.
84019
84020 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * lib/regex_internal.h (BITSET_WORD_BITS):
84023         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84024         preprocessor mishandles large unsigned values as if they were signed.
84025         Problem reported by Claudio Fontana in
84026         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84027
84028 2006-01-10  Jim Meyering  <jim@meyering.net>
84029
84030         Avoid the double-free (first in fts_read, second in fts_close) that
84031         would occur when an `active' directory is made inaccessible (e.g.,
84032         via chmod a-x) during a traversal.
84033         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84034         before returning.  Reproduce this failure by
84035         mkdir -p a/b; cd a; chmod a-x . b
84036         Reported by Stavros Passas.
84037
84038         Sync from coreutils.
84039         * lib/sha1.c: Tweak grammar in a comment.
84040
84041 2006-01-10  Jim Meyering  <jim@meyering.net>
84042
84043         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84044         Patch by Joerg Sonnenberger.
84045
84046 2006-01-10  Bruno Haible  <bruno@clisp.org>
84047
84048         * modules/readutmp: Depend on module free.
84049         * modules/strtok_r: Depend on module restrict.
84050
84051 2006-01-10  Bruno Haible  <bruno@clisp.org>
84052
84053         * modules/gettext (configure.ac): Add an invocation of
84054         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84055
84056 2006-01-10  Bruno Haible  <bruno@clisp.org>
84057
84058         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84059         Reported by Werner Lemberg <wl@gnu.org>.
84060
84061 2006-01-10  Bruno Haible  <bruno@clisp.org>
84062
84063         * lib/localcharset.c: Update from GNU gettext.
84064
84065 2006-01-10  Bruno Haible  <bruno@clisp.org>
84066
84067         * lib/argp.h (__const): Remove macro. Use const instead.
84068         * lib/argp-fmtstream.h (__const): Likewise.
84069         * lib/glob_.h (__const): Remove macro.
84070         * lib/glob-libc.h: Use const instead of __const.
84071
84072 2006-01-10  Bruno Haible  <bruno@clisp.org>
84073
84074         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84075         variable.
84076         Needed to avoid an automake error regarding the 'gettext' module.
84077
84078 2006-01-09  Simon Josefsson  <jas@extundo.com>
84079
84080         * modules/inet_ntop (Depends-on): Add restrict.
84081
84082 2006-01-09  Simon Josefsson  <jas@extundo.com>
84083
84084         * modules/gc-rijndael-tests (License): Put under LGPL.
84085
84086         * modules/gc-des-tests (License): Likewise.
84087
84088         * modules/gc-arcfour-tests (License): Likewise.
84089
84090         * modules/gc-arctwo-tests (License): Likewise.
84091
84092         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84093
84094         * modules/gc-hmac-sha1-tests (Files): Likewise.
84095
84096         * modules/gc-hmac-md5-tests (License): Likewise.
84097
84098         * modules/gc-sha1-tests (License): Likewise.
84099
84100         * modules/gc-md5-tests (License): Likewise.
84101
84102         * modules/gc-md4-tests (License): Likewise.
84103
84104         * modules/gc-md2-tests (License): Likewise.
84105
84106         * modules/gc-tests (License): Likewise.
84107
84108         * modules/des-tests (License): Likewise.
84109
84110         * modules/md4-tests (License): Likewise.
84111
84112         * modules/md2-tests (License): Likewise.
84113
84114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84115
84116         Sync from coreutils:
84117
84118         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84119         * modules/lib-ignore: New file.
84120         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84121         chdir-safer.m4, lchmod.m4.
84122         * modules/openat: Add mkdirat.c, openat-priv.h.
84123
84124 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84125
84126         Sync from coreutils.
84127         * m4/lib-ignore.m4: New file.
84128         * m4/lchmod.m4: New file.
84129
84130 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         Sync from coreutils.
84133         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84134         for write access: POSIX says that must fail.
84135         * lib/fts.c (diropen): Likewise.
84136         * lib/save-cwd.c (save_cwd): Likewise.
84137         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84138         well, for minor improvements on hosts that lack O_DIRECTORY.
84139         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84140         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84141         Fall back on chown if open failed with EACCES.
84142
84143         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84144         Report an error at compile-time if only a 1-second nominal clock
84145         resolution is found.
84146
84147         * lib/lchmod.h: New file.
84148         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84149         (make_dir_parents): Use lchown rather than chown, and
84150         lchmod rather than chmod.
84151
84152         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84153         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84154         "proc" reported by n0dalus.
84155
84156         * lib/mountlist.c: Include <limits.h>.
84157         (dev_from_mount_options)
84158         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84159         New function.  It no longer assumes "dev=" has the System V meaning
84160         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84161         (read_file_system_list)
84162         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84163         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84164         dev= in that case.
84165
84166         * lib/posixtm.h (PDS_PRE_2000): New macro.
84167         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84168         allow_century.  All usages changed.  Reject dates outside the range
84169         1969-1999 if PDS_PRE_2000 is used.
84170
84171 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         Sync from coreutils.
84174         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84175         (Time of day items): Mention the possibility of leap seconds.
84176         Problem reported by Dr. David Alan Gilbert.
84177
84178 2006-01-09  Jim Meyering  <jim@meyering.net>
84179
84180         Sync from coreutils.
84181
84182         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84183
84184         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84185
84186         * lib/modechange.c (mode_compile): Reject an invalid mode string
84187         that starts with an octal digit.  From Andreas Gruenbacher.
84188
84189         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84190         and dup to open_safer and dup_safer, respectively.
84191         (openat_permissive): Fix typo in comment.
84192
84193         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84194         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84195         (_): Remove; no longer needed.
84196         (openat): Renamed from rpl_openat; no need for rpl_openat
84197         since openat.h renames openat for us.
84198         Replace most of the body with a call to openat_permissive,
84199         to avoid duplicate code.
84200         Port to (probably hypothetical) environments were mode_t is
84201         wider than int.
84202         (openat_permissive): Require mode arg, so that we can check
84203         types better.  Put it just after flags.  Change cwd failure
84204         indicator from pointer-to-bool to pointer-to-errno-value.
84205         All callers changed.
84206         Invoke openat_save_fail and/or openat_restore_fail if
84207         cwd_errno is null, so that openat can call us.
84208         (openat_permissive, fdopendir, fstatat, unlinkat):
84209         Simplify errno handling to avoid some duplicate code,
84210         as it's OK to set errno on success.
84211         * lib/openat.h: Revamp code so that function macros depend on
84212         __OPENAT_PREFIX only, not also on AT_FDCWD.
84213         (openat_ro): Remove.  Caller changed to use openat_permissive.
84214         (openat_permissive): Now a macro, if not a function.
84215         (openat_restore_fail, openat_save_fail): Now always functions,
84216         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84217
84218         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84219         and openat.c.
84220         * lib/mkdirat.c: Include openat-priv.h.
84221         Remove definitions of macros defined therein.
84222         * lib/openat.c: Likewise.
84223
84224         * lib/mkdirat.c (mkdirat): New file and function.
84225         * lib/openat.h (mkdirat): Declare.
84226
84227         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84228
84229         * lib/openat.h (openat_permissive): Declare.
84230         (openat_ro): Define.
84231
84232         * lib/openat.c (EXPECTED_ERRNO): New macro.
84233         (openat_permissive): New function -- used in remove.c rewrite.
84234         (all functions): Set errno just before returning, only if there
84235         was an actual failure.
84236         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84237
84238         Emulate openat-family functions using Linux's procfs, if possible.
84239         Idea and some code based on Ulrich Drepper's glibc changes.
84240
84241         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84242         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84243         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84244         before falling back on save_cwd and restore_cwd.
84245         (fdopendir, fstatat, unlinkat): Likewise.
84246
84247         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84248         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84249
84250         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84251         as second argument to va_arg.  Otherwise, some versions of gcc
84252         warn that `if this code is reached, the program will abort'.
84253
84254 2006-01-09  Jim Meyering  <jim@meyering.net>
84255
84256         Sync from coreutils.
84257         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84258         Require openat-priv.h.
84259
84260 2006-01-09  Bruno Haible  <bruno@clisp.org>
84261
84262         * modules/strnlen (Include): Use strnlen.h.
84263
84264 2006-01-09  Bruno Haible  <bruno@clisp.org>
84265
84266         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84267
84268 2006-01-09  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/sysexit_.h (EX_OK): New macro.
84271         Suggested by Martin Lambers <marlam@marlam.de>.
84272
84273 2006-01-09  Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84276         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84277
84278 2006-01-09  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84281         numbers.
84282
84283 2006-01-09  Bruno Haible  <bruno@clisp.org>
84284
84285         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84286         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84287         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84288         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84289
84290 2006-01-09  Bruno Haible  <bruno@clisp.org>
84291
84292         * build-aux/javacomp.sh.in: New file, moved from lib/.
84293         * modules/javacomp-script (Files): Update.
84294         (configure.ac): Add AC_CONFIG_FILES invocation.
84295         (EXTRA_DIST): Remove variable.
84296
84297         * build-aux/javaexec.sh.in: New file, moved from lib/.
84298         * modules/javaexec (Files): Update.
84299         (configure.ac): Add AC_CONFIG_FILES invocation.
84300         (EXTRA_DIST): Remove javaexec.sh.in.
84301
84302         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84303         * modules/csharpcomp-script (Files): Update.
84304         (configure.ac): Add AC_CONFIG_FILES invocation.
84305         (EXTRA_DIST): Remove variable.
84306
84307         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84308         * modules/csharpexec (Files): Update.
84309         (configure.ac): Add AC_CONFIG_FILES invocation.
84310         (EXTRA_DIST): Remove csharpexec.sh.in.
84311
84312 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84313
84314         Sync from coreutils.
84315
84316         Add POSIX ACL support
84317         * lib/acl.h (copy_acl, set_acl): Add declarations.
84318         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84319         systems other than Linux.
84320         (chmod_or_fchmod): New function: use fchmod when possible,
84321         and chmod otherwise.
84322         (file_has_acl): Add a POSIX ACL implementation, with a
84323         Linux-specific subcase.
84324         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84325         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84326         acls are unsupported.
84327         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84328         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84329         are unsupported.
84330
84331 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84332
84333         Sync from coreutils.
84334         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84335
84336 2006-01-07  Bruno Haible  <bruno@clisp.org>
84337
84338         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84339         gl_EARLY.
84340
84341 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84342
84343         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84344         Problem reported for Mingw by Mark Junker.
84345
84346 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84347
84348         * README: Gnulib normally doesn't generate a tarball.
84349
84350 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84351
84352         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84353         long int, not int, for nanosecond counts, so that people who are
84354         used to POSIX struct timespec won't be surprised.  Reported by Jim
84355         Meyering.
84356
84357 2005-12-28  Bruno Haible  <bruno@clisp.org>
84358
84359         * build-aux/config.rpath: Update from GNU gettext.
84360
84361 2005-12-16  Jim Meyering  <jim@meyering.net>
84362
84363         * modules/fprintftime: New module.
84364         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84365
84366 2005-12-16  Jim Meyering  <jim@meyering.net>
84367
84368         * m4/fprintftime.m4: New file.
84369
84370 2005-12-16  Jim Meyering  <jim@meyering.net>
84371
84372         * lib/fprintftime.c, lib/fprintftime.h: New files.
84373
84374 2005-12-15  Simon Josefsson  <jas@extundo.com>
84375
84376         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84377         new m4/socklen.m4.
84378
84379 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84380
84381         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84382         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84383
84384 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84385
84386         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84387         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84388         struct uparams is valid. Fall back to the default values if it is
84389         not.
84390
84391 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84392
84393         * modules/argp (Files): Add argp-pin.c
84394         (Depends-on): dirname
84395         (lib_SOURCES): Add argp-pin.c
84396
84397 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84398
84399         * m4/argp.m4:  Check if program_invocation_name and
84400         program_invocation_short_name are declared and define appropriate
84401         macros if they are not.
84402
84403 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84404
84405         * lib/argp-help.c (__argp_base_name): New function
84406         (__argp_short_program_name): Rewrite using __argp_base_name
84407         * lib/argp-namefrob.h: Define program_invocation_name and
84408         program_invocation_short_name if requested
84409         (__argp_base_name): Add prototype
84410         * lib/argp-parse.c (argp_def): Use gettext wrappers
84411         (argp_default_parser): Use __argp_base_name
84412         * lib/argp-pin.c: New file. Defines program_invocation_name and
84413         program_invocation_short_name on systems that lack them.
84414
84415 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84416
84417         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84418         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84419         porting problem reported by Georg Schwarz in
84420         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84421
84422 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84423
84424         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84425         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84426         porting problem reported by Georg Schwarz in
84427         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84428
84429 2005-12-05  Bruno Haible  <bruno@clisp.org>
84430
84431         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84432         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84433         Reported by Mark Junker <mjscod@gmx.de>.
84434
84435 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84438         Use implementation from Albert Chin, with some
84439         comments/corrections by Stepan Kasal and myself.
84440
84441 2005-12-02  Bruno Haible  <bruno@clisp.org>
84442
84443         * gnulib-tool (func_import): Accept GPLed build tool modules when
84444         --lgpl is given.
84445         * modules/csharpcomp-script: New file.
84446         * modules/csharpcomp: Depend on it.
84447         * modules/javacomp-script: New file.
84448         * modules/javacomp: Depend on it.
84449         Suggested by Simon Josefsson.
84450
84451 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84452
84453         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84454         statement, to work around an HP-UX 10.20 compiler bug reported by
84455         Peter O'Gorman.
84456
84457 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84458
84459         * modules/savedir (Depends-on): Add openat.
84460
84461 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84462
84463         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84464         (uintmax_t) [defined uintmax_t]: Do not declare.
84465         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84466         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84467         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84468         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84469         sake of portability to weird hosts that C allows (though we don't
84470         know of any practical examples).
84471
84472         * lib/savedir.h (fdsavedir): New decl.
84473         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84474         contains most of the former guts of savedir.
84475         (savedir): Use savedirstream.
84476         Include "openat.h".
84477
84478 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         * modules/obstack (Files): Add m4/ulonglong.m4.
84481         Problem reported by Davide Angelocola.
84482
84483 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84486         coreutils no longer futzes with rounding modes.
84487
84488 2005-11-14  Jim Meyering  <jim@meyering.net>
84489
84490         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84491         replacement of mkstemp.
84492
84493 2005-11-10  Simon Josefsson  <jas@extundo.com>
84494
84495         * lib/readline.c: Remove EOL.
84496
84497 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84498
84499         * modules/gethrxtime (Depends-on): Add gettime.
84500
84501 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84504         or gettimeofday; no longer needed.
84505
84506 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84507
84508         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84509         time business.
84510         (gethrxtime) [! (HAVE_NANOUPTIME
84511         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84512         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84513         our own approximation.
84514
84515 2005-11-08  Eric Blake  <ebb9@byu.net>
84516
84517         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84518
84519 2005-11-08  Eric Blake  <ebb9@byu.net>
84520
84521         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84522
84523 2005-11-04  Bruno Haible  <bruno@clisp.org>
84524
84525         * gnulib-tool: Implement --update mode.
84526
84527 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         Fix porting problem reported by Theodoros V. Kalamatianos.
84530         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84531         Don't assume that futimes failing means we must fail.
84532
84533 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84534
84535         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84536         variables to suggest the intended function of the PATH_MAX check.
84537
84538 2005-10-30  Kean Johnston  <jkj@sco.com>
84539
84540         Trivial changes to support SCO systems.
84541         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84542         as PATH_MAX.
84543         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84544         where __ptr is null when no I/O is pending.
84545
84546 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84547
84548         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84549         leave errno alone.  Problem reported by Dmitry V. Levin.
84550
84551 2005-10-28  Simon Josefsson  <jas@extundo.com>
84552
84553         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84554         Test more.
84555
84556         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84557
84558         * modules/md2, modules/md2-tests: New files.
84559
84560 2005-10-28  Simon Josefsson  <jas@extundo.com>
84561
84562         * m4/inet_ntop.m4: More tests.
84563
84564         * m4/gc-md2.m4, md2.m4: New file.
84565
84566 2005-10-28  Simon Josefsson  <jas@extundo.com>
84567
84568         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84569         "restrict" keywords, as per POSIX.  Protect the function
84570         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84571         Don't use K&R prototypes.  Check the sprintf return values.
84572         Re-define EAFNOSUPPORT if not present.  Indent.
84573
84574         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84575         suggested by Bruno Haible <bruno@clisp.org>.
84576
84577         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84578
84579         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84580
84581         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84582         libgcrypt).
84583
84584         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84585
84586         * lib/md2.h, lib/md2.c: New files.
84587
84588 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84591         errno alone.  Problem reported by Frederic Jolliton.
84592
84593 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84594
84595         * modules/verify (License): Change from GPL to LGPL.  This is a
84596         tiny module and there are apparently near-equivalents that are
84597         under the BSD license.
84598
84599 2005-10-24  Simon Josefsson  <jas@extundo.com>
84600
84601         * modules/sha1: Relicense to LGPL.
84602
84603 2005-10-24  Simon Josefsson  <jas@extundo.com>
84604
84605         * lib/md4.h: Shrink buffer size, now that we changed the type.
84606
84607 2005-10-23  Simon Josefsson  <jas@extundo.com>
84608
84609         * gnulib-tool (func_import): Fix --tests-base.
84610
84611 2005-10-22  Simon Josefsson  <jas@extundo.com>
84612
84613         * modules/arcfour (Depends-on): Need stdint.
84614
84615 2005-10-22  Simon Josefsson  <jas@extundo.com>
84616
84617         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84618         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84619
84620 2005-10-22  Simon Josefsson  <jas@extundo.com>
84621
84622         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84623         suggested by Bruno Haible <bruno@clisp.org>.
84624
84625 2005-10-22  Simon Josefsson  <jas@extundo.com>
84626
84627         * lib/crc.h: Include stddef.h, for size_t.
84628
84629 2005-10-22  Simon Josefsson  <jas@extundo.com>
84630
84631         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84632         arcfour_context struct (simplify test vector testing in GNU
84633         Shishi).
84634
84635 2005-10-21  Simon Josefsson  <jas@extundo.com>
84636
84637         * modules/des, modules/des-tests: New files.
84638
84639         * modules/gc-des, modules/gc-des-tests: New files.
84640
84641         * tests/test-des.c, tests/test-gc-des.c: New file.
84642
84643 2005-10-21  Simon Josefsson  <jas@extundo.com>
84644
84645         * modules/arctwo, modules/arctwo-tests: New files.
84646
84647         * tests/test-arctwo.c: New file.
84648
84649         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84650
84651         * tests/test-gc-arctwo.c: New file.
84652
84653 2005-10-21  Simon Josefsson  <jas@extundo.com>
84654
84655         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84656         Bruno Haible <bruno@clisp.org>.
84657
84658         * m4/gc-des.m4: New file.
84659
84660 2005-10-21  Simon Josefsson  <jas@extundo.com>
84661
84662         * m4/arctwo.m4: New file.
84663
84664         * m4/gc-arctwo.m4: New file.
84665
84666 2005-10-21  Simon Josefsson  <jas@extundo.com>
84667
84668         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84669         block.
84670
84671 2005-10-21  Simon Josefsson  <jas@extundo.com>
84672
84673         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84674         <bruno@clisp.org>.
84675
84676         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84677
84678         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84679         Bruno Haible <bruno@clisp.org>.
84680
84681         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84682         <bruno@clisp.org>.
84683
84684 2005-10-21  Simon Josefsson  <jas@extundo.com>
84685
84686         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84687
84688 2005-10-21  Simon Josefsson  <jas@extundo.com>
84689
84690         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84691
84692 2005-10-21  Simon Josefsson  <jas@extundo.com>
84693
84694         * lib/des.h, lib/des.c: New files.
84695
84696         * lib/gc-gnulib.c: Support DES.c
84697
84698 2005-10-21  Simon Josefsson  <jas@extundo.com>
84699
84700         * lib/arctwo.h, lib/arctwo.c: New files.
84701
84702         * lib/gc-gnulib.c: Support ARCTWO.
84703
84704 2005-10-21  Simon Josefsson  <jas@extundo.com>
84705
84706         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84707         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84708
84709 2005-10-21  Simon Josefsson  <jas@extundo.com>
84710
84711         * gnulib-tool (func_import, func_create_testdir): Define automake
84712         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84713         Makefile.am snippet),
84714         suggested by Bruno Haible <bruno@clisp.org>.
84715
84716         * modules/gc (Makefile.am): Use it.
84717
84718 2005-10-21  Bruno Haible  <bruno@clisp.org>
84719
84720         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84721         patch.
84722
84723 2005-10-19  Simon Josefsson  <jas@extundo.com>
84724
84725         * tests/test-gc-rijndael.c: New file.
84726
84727         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84728
84729 2005-10-19  Simon Josefsson  <jas@extundo.com>
84730
84731         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84732         interface too.
84733
84734 2005-10-19  Simon Josefsson  <jas@extundo.com>
84735
84736         * tests/test-gc-arcfour.c: New file.
84737
84738         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84739
84740 2005-10-19  Simon Josefsson  <jas@extundo.com>
84741
84742         * modules/gc-md4, modules/gc-md4-tests: New file.
84743
84744         * tests/test-gc-md4.c: New file.
84745
84746 2005-10-19  Simon Josefsson  <jas@extundo.com>
84747
84748         * m4/gc-md4.m4: New file.
84749
84750 2005-10-19  Simon Josefsson  <jas@extundo.com>
84751
84752         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84753         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84754         <kasal@ucw.cz>.
84755
84756 2005-10-19  Simon Josefsson  <jas@extundo.com>
84757
84758         * m4/gc-arcfour.m4: New file.
84759
84760         * m4/gc-rijndael.m4: New file.
84761
84762 2005-10-19  Simon Josefsson  <jas@extundo.com>
84763
84764         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84765
84766 2005-10-19  Simon Josefsson  <jas@extundo.com>
84767
84768         * lib/gc-gnulib.c: Support ARCFOUR.
84769
84770 2005-10-19  Simon Josefsson  <jas@extundo.com>
84771
84772         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84773         support.
84774
84775         * lib/gc.h: Add ECB enum type.
84776
84777         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84778
84779 2005-10-18  Simon Josefsson  <jas@extundo.com>
84780
84781         * tests/test-md5.c: New file.
84782
84783         * modules/md5-tests: New file.
84784
84785 2005-10-18  Simon Josefsson  <jas@extundo.com>
84786
84787         * tests/test-md4.c: New file.
84788
84789         * modules/md4, modules/md4-tests: New files.
84790
84791 2005-10-18  Simon Josefsson  <jas@extundo.com>
84792
84793         * m4/md4.m4: New file.
84794
84795 2005-10-18  Simon Josefsson  <jas@extundo.com>
84796
84797         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84798
84799 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84800
84801         * gnulib-tool (func_create_testdir): Omit the second check whether
84802         BUILT_SOURCES in nonempty.
84803
84804 2005-10-17  Simon Josefsson  <jas@extundo.com>
84805
84806         * tests/test-rijndael.c: New file.
84807
84808 2005-10-17  Simon Josefsson  <jas@extundo.com>
84809
84810         * modules/sha1: Depend on stdint instead of md5.
84811
84812         * modules/md5: Depend on stdint, remove uint32_t.
84813
84814 2005-10-17  Simon Josefsson  <jas@extundo.com>
84815
84816         * modules/gc-sha1-tests: New file.
84817
84818         * tests/test-gc-sha1.c: New file.
84819
84820 2005-10-17  Simon Josefsson  <jas@extundo.com>
84821
84822         * m4/md5.m4: Remove call to uint32_t.m4.
84823
84824 2005-10-17  Simon Josefsson  <jas@extundo.com>
84825
84826         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84827
84828         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84829         md5.h.
84830
84831         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84832
84833         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84834
84835 2005-10-17  Simon Josefsson  <jas@extundo.com>
84836
84837         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84838
84839 2005-10-17  Simon Josefsson  <jas@extundo.com>
84840
84841         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84842
84843 2005-10-17  Simon Josefsson  <jas@extundo.com>
84844
84845         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84846
84847         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84848
84849 2005-10-17  Bruno Haible  <bruno@clisp.org>
84850
84851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84852         that it can also be used in a test.
84853
84854 2005-10-16  Bruno Haible  <bruno@clisp.org>
84855
84856         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84857         TESTS_ENVIRONMENT, so that individual tests can augment it.
84858
84859         * gnulib-tool (func_create_testdir): Use an intermediate target for
84860         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84861         macros, like $(ALLOCA_H), which cannot be passed through the command
84862         line.
84863
84864 2005-10-15  Simon Josefsson  <jas@extundo.com>
84865
84866         * modules/rijndael-tests: New file.
84867
84868         * modules/rijndael: New file.
84869
84870 2005-10-15  Simon Josefsson  <jas@extundo.com>
84871
84872         * m4/rijndael.m4: New file.
84873
84874 2005-10-15  Simon Josefsson  <jas@extundo.com>
84875
84876         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84877
84878         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84879
84880 2005-10-14  Simon Josefsson  <jas@extundo.com>
84881
84882         * tests/test-arcfour.c: New file.
84883
84884         * modules/arcfour, modules/arcfour-tests: New files.
84885
84886 2005-10-14  Simon Josefsson  <jas@extundo.com>
84887
84888         * m4/arcfour.m4: New file.
84889
84890 2005-10-14  Simon Josefsson  <jas@extundo.com>
84891
84892         * lib/arcfour.h, lib/arcfour.c: New files.
84893
84894 2005-10-14  Roland McGrath  <roland@redhat.com>
84895
84896         Import from libc.  [BZ #1331]
84897         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84898         macro argument.
84899         Reported by Matej Vela <vela@debian.org>.
84900
84901 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84902
84903         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84904         include <wchar.h>; no longer needed.
84905
84906 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84907
84908         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84909
84910 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84911         and  Ulrich Drepper  <drepper@redhat.com>
84912
84913         Import from libc.
84914         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84915         instead of inline stream orientation test and two separate
84916         function calls.  Pay no attention to USE_IN_LIBIO.
84917
84918 2005-10-13  Simon Josefsson  <jas@extundo.com>
84919
84920         * modules/gc-hmac-md5-tests: New file.
84921
84922         * tests/test-gc-hmac-sha1.c: New file.
84923
84924         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84925
84926         * modules/gc-hmac-md5-tests: New file.
84927
84928         * tests/test-gc-md5.c: New file.
84929
84930         * modules/gc-md5-tests: New file.
84931
84932 2005-10-13  Simon Josefsson  <jas@extundo.com>
84933
84934         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84935         Move memory allocation outside of loop.
84936
84937 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84940         intermediate directory is in a read-only file system.  Problem
84941         reported by Eric Blake.
84942
84943 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84944
84945         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84946
84947 2005-10-12  Simon Josefsson  <jas@extundo.com>
84948
84949         * tests/test-hmac-sha1.c: New file.
84950
84951         * modules/hmac-sha1-tests: New file.
84952
84953         * modules/hmac-sha1: New file.
84954
84955 2005-10-12  Simon Josefsson  <jas@extundo.com>
84956
84957         * modules/gc-sha1: New file.
84958
84959 2005-10-12  Simon Josefsson  <jas@extundo.com>
84960
84961         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84962
84963         * tests/test-gc-pbkdf2-sha1.c: New file.
84964
84965 2005-10-12  Simon Josefsson  <jas@extundo.com>
84966
84967         * modules/gc-md5, modules/gc-hmac-md5: New files.
84968
84969         * modules/gc (Files): Remove md5, memxor and hmac files.
84970
84971 2005-10-12  Simon Josefsson  <jas@extundo.com>
84972
84973         * m4/gc-pbkdf2-sha1.m4: New file.
84974
84975         * m4/gc-hmac-sha1.m4: New file.
84976
84977         * m4/gc-sha1: New file.
84978
84979         * m4/hmac-sha1.m4: New file.
84980
84981 2005-10-12  Simon Josefsson  <jas@extundo.com>
84982
84983         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84984
84985         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84986
84987 2005-10-12  Simon Josefsson  <jas@extundo.com>
84988
84989         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84990         suggested by Bruno Haible <bruno@clisp.org>.
84991
84992 2005-10-12  Simon Josefsson  <jas@extundo.com>
84993
84994         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84995
84996 2005-10-12  Simon Josefsson  <jas@extundo.com>
84997
84998         * lib/gc-pbkdf2-sha1.c: New file.
84999
85000         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85001
85002 2005-10-12  Simon Josefsson  <jas@extundo.com>
85003
85004         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85005
85006         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85007
85008 2005-10-12  Simon Josefsson  <jas@extundo.com>
85009
85010         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85011         GC_USE_HMAC_MD5, respectively.
85012
85013         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85014         (gc_md5): Fix typo.
85015
85016         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85017
85018         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85019
85020         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85021
85022 2005-10-12  Bruno Haible  <bruno@clisp.org>
85023
85024         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85025         Reported by Stepan Kasal <kasal@ucw.cz>.
85026
85027 2005-10-11  Simon Josefsson  <jas@extundo.com>
85028
85029         * tests/test-crc.c: New file.
85030
85031         * modules/crc, modules/crc-tests: New files.
85032
85033 2005-10-11  Simon Josefsson  <jas@extundo.com>
85034
85035         * m4/crc.m4: New file.
85036
85037 2005-10-11  Simon Josefsson  <jas@extundo.com>
85038
85039         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85040
85041         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85042
85043         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85044
85045 2005-10-11  Simon Josefsson  <jas@extundo.com>
85046
85047         * lib/crc.h, lib/crc.c: New files.
85048
85049         * lib/gc.h (gc_hash_buffer): Add doc.
85050
85051 2005-10-11  Bruno Haible  <bruno@clisp.org>
85052
85053         * modules/c-strcasestr: New file.
85054         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85055
85056 2005-10-11  Bruno Haible  <bruno@clisp.org>
85057
85058         * modules/c-strcase: New file.
85059         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85060
85061 2005-10-11  Bruno Haible  <bruno@clisp.org>
85062
85063         * lib/strcasecmp.c: Include limits.h.
85064         (strcasecmp): Avoid integer overflow on exotic platforms.
85065         * lib/strncasecmp.c: Include limits.h.
85066         (strncasecmp): Avoid integer overflow on exotic platforms.
85067         Reported by Paul Eggert.
85068
85069 2005-10-11  Bruno Haible  <bruno@clisp.org>
85070
85071         * lib/c-strcasestr.h: New file, from GNU gettext.
85072         * lib/c-strcasestr.c: New file, from GNU gettext.
85073
85074 2005-10-11  Bruno Haible  <bruno@clisp.org>
85075
85076         * lib/c-strcase.h: New file, from GNU gettext.
85077         * lib/c-strcasecmp.c: New file, from GNU gettext.
85078         * lib/c-strncasecmp.c: New file, from GNU gettext.
85079
85080 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85081
85082         * modules/mempcpy (License): GPL -> LGPL.
85083         * modules/strchrnul (License): Likewise.
85084         * modules/sysexits (License): Likewise.
85085
85086 2005-10-08  Simon Josefsson  <jas@extundo.com>
85087
85088         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85089
85090 2005-10-07  Simon Josefsson  <jas@extundo.com>
85091
85092         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85093
85094 2005-10-06  Simon Josefsson  <jas@extundo.com>
85095
85096         * tests/test-hmac-md5.c: New file.
85097
85098         * modules/hmac-md5-tests: New file.
85099
85100         * modules/hmac-md5: New file.
85101
85102 2005-10-06  Simon Josefsson  <jas@extundo.com>
85103
85104         * m4/hmac-md5.m4: New file.
85105
85106         * m4/memxor.m4: Require gl_C_RESTRICT.
85107
85108 2005-10-06  Simon Josefsson  <jas@extundo.com>
85109
85110         * lib/memxor.c (memxor): Avoid casts and warnings.
85111
85112 2005-10-06  Simon Josefsson  <jas@extundo.com>
85113
85114         * lib/hmac-md5.c: New file.
85115
85116         * lib/hmac.h: New file.
85117
85118 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85119
85120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85121         promotes to int, not unsigned int, to catch the AIX 5.3
85122         compiler bug.
85123
85124 2005-10-05  Simon Josefsson  <jas@extundo.com>
85125
85126         * modules/memxor: New file.
85127
85128         * modules/iconv (Files): Move config.rpath to havelib, it is used
85129         there.
85130
85131         * modules/havelib (Files): Add config.rpath.
85132
85133 2005-10-05  Simon Josefsson  <jas@extundo.com>
85134
85135         * m4/memxor.m4: New file.
85136
85137 2005-10-05  Simon Josefsson  <jas@extundo.com>
85138
85139         * lib/memxor.c (memxor): Fix compiler error.
85140
85141         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85142         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85143
85144         * lib/memxor.h, lib/memxor.c: New files.
85145
85146         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85147         we assume all systems have it, suggested by Jim Meyering
85148         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85149         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85150         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85151         same reasons.
85152
85153 2005-10-05  Simon Josefsson  <jas@extundo.com>
85154
85155         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85156
85157 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85158
85159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85160         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85161         needed, since the source code now assumes these .h files.
85162
85163 2005-10-05  Derek Price  <derek@ximbiot.com>
85164
85165         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85166
85167 2005-10-05  Bruno Haible  <bruno@clisp.org>
85168
85169         * modules/stdint (License): Change to LGPL.
85170
85171 2005-10-04  Simon Josefsson  <jas@extundo.com>
85172
85173         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85174         D. Baushke" <mdb@gnu.org>.
85175
85176 2005-10-04  Bruno Haible  <bruno@clisp.org>
85177
85178         * lib/verify.h (verify_true): Provide alternative definition for C++.
85179
85180 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85181
85182         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85183         (SSIZE_MAX): New macro, if not already defined.
85184         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85185         than 2 GiB.
85186
85187 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         Sync from coreutils.
85190         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85191         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85192         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85193         ULLONG_MAX doesn't work with 2.7.2.1.
85194
85195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85196
85197         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85198         From Ben Pfaff.
85199
85200         * modules/exclude (Depends-on): Depend on verify.
85201         * modules/strtoimax (Depends-on): Likewise.
85202         * modules/utimecmp (Depends-on): Likewise.
85203
85204 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85205
85206         * lib/exclude.c: Include verify.h.
85207         (verify): Remove.  All callers changed to use verify.h's version.
85208         * lib/strtoimax.c: Likewise.
85209         * lib/utimecmp.c: Likewis.e
85210
85211         Sync from coreutils.
85212         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85213         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85214         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85215         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85216         bother returning ENOSYS if settimeofday or stime fails; just let
85217         them return whatever errno they want to return.
85218         * lib/utimens.c: Include unistd.h, for dup2.
85219         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85220         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85221
85222 2005-10-02  Jim Meyering  <jim@meyering.net>
85223
85224         Sync from coreutils.
85225         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85226         from glibc-2.2.5 that fails for read-only files.
85227
85228 2005-10-02  Jim Meyering  <jim@meyering.net>
85229
85230         Sync from coreutils.
85231         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85232         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85233         `#if HAVE_CONFIG_H'.
85234         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85235         Remove AT_FDCWD test.
85236         Do not consume the fd unless successful.
85237         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85238         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85239         block, so that we don't even try to compile it if settimeofday is
85240         available.  This works around a compilation failure on OSF1 V5.1,
85241         due to stime requiring a `long int*' while tv_sec is `int'.
85242
85243 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85244
85245         Sync from coreutils.
85246         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85247         against `yes', rather than just testing for nonempty.
85248
85249 2005-10-01  Simon Josefsson  <jas@extundo.com>
85250
85251         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85252         and Darwin.
85253
85254         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85255         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85256         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85257         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85258         Check if struct addrinfo is declared.
85259
85260 2005-10-01  Simon Josefsson  <jas@extundo.com>
85261
85262         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85263         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85264         AI_* and EAI_* definitions.  Protect function declarations.
85265
85266 2005-10-01  Jim Meyering  <jim@meyering.net>
85267
85268         Sync from coreutils.
85269
85270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85271         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85272         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85274         in the inet and nsl libraries.  Required on Solaris 5.7.
85275
85276 2005-10-01  Jim Meyering  <jim@meyering.net>
85277
85278         Sync from coreutils.
85279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85280         in the inet and nsl libraries.  Required on Solaris 5.7.
85281
85282 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85283
85284         * lib/getdelim.c (getdelim): Remove unused variables.
85285
85286 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85289         so that the code works even with ancient cpp.  Portability problem
85290         with GCC 2.7.2.1 reported by Thomas M.Ott.
85291
85292 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85293
85294         * modules/regex (Depends-on): Add strcase.
85295
85296         * modules/gethostname (Licence): Change from GPL to LGPL, since
85297         gethostname.c is a trivial implementation of a standard library
85298         function.
85299         * modules/poll (License): Change from GPL to LGPL, since it's
85300         derived from LGPL code.
85301
85302 2005-09-27  Jim Meyering  <jim@meyering.net>
85303
85304         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85305         HAVE_CONFIG_H.
85306
85307         * lib/intprops.h (signed_type_or_expr__): Define.
85308         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85309         for unsigned types.
85310
85311 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         * lib/verify.h (verify_expr): Remove, replacing with:
85314         (verify_true): New macro that returns true instead of void.
85315         (verify_type__): Remove.
85316         (verify): Use verify_true rather than verify_type__.
85317
85318 2005-09-26  Bruno Haible  <bruno@clisp.org>
85319
85320         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85321         is necessary.
85322         (lib_SOURCES): Remove mbchar.c.
85323         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85324         (Files): Add m4/mbrtowc.m4.
85325         * modules/mbiter: Likewise.
85326         * modules/mbuiter: Likewise.
85327
85328 2005-09-26  Bruno Haible  <bruno@clisp.org>
85329
85330         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85331         compile mbchar.c if they are not both present.
85332         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85333         * m4/mbiter.m4 (gl_MBITER): Likewise.
85334         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85335         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85336         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85337
85338 2005-09-25  Jim Meyering  <jim@meyering.net>
85339
85340         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85341         also uses socklen_t.
85342
85343 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * lib/utimens.c (ENOSYS): Define if not already defined.
85346         (futimens): Support having a null PATH if the file descriptor
85347         is nonnegative.
85348
85349         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85350         Remove.
85351         (__attribute): Define to empty unless GCC 3.1 or later.
85352         This works around a core dump on OpenBSD 3.4, which has GCC
85353         2.95.3, which dumps core when given __attribute__(()).  It also
85354         simplifies other tests, since we really don't want to bother with
85355         worrying about which ancient version of GCC supported what.
85356         Original problem reported by Yoann Vandoorselaere, with part of
85357         the fix suggested by Derek Price.
85358
85359 2005-09-24  Jim Meyering  <jim@meyering.net>
85360
85361         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85362         so we can once again use a positive bitfield width of 1 -- now we
85363         don't have to explain why we were using a bitfield width of 2.
85364
85365 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85368         and similarly for the other external symbols.  Problem reported
85369         by James Gallager.
85370
85371         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85372         bug reported by Jim Meyering.
85373
85374         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85376         not needed, since socklen is a prerequisite module.
85377
85378 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85379
85380         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85381         Problem reported by Eric Blake.
85382         (getaddrinfo): Initialize se so that it's not garbage.
85383         Redo internal storage allocation so that it doesn't make unportable
85384         assumptions about alignment.
85385         Fix a memory leak.
85386
85387         * lib/utimens.c (futimens): Use futimesat if available.
85388         Prefer it to futimes since it doesn't have the futimes bug.
85389
85390         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85391         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85392         Instead, declare a function that returns a pointer to an array,
85393         and use verify_type__ to declare the size of the array.
85394         Problem and germ of a solution reported by Bruno Haible.
85395         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85396         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85397
85398 2005-09-23  Jim Meyering  <jim@meyering.net>
85399
85400         Sync from coreutils.
85401         Correct build failure (socklen_t not defined) on at least
85402         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85404
85405 2005-09-23  Jim Meyering  <jim@meyering.net>
85406
85407         * modules/getaddrinfo (Depends-on): Add socklen.
85408
85409 2005-09-23  Bruno Haible  <bruno@clisp.org>
85410
85411         * tests/test-verify.c: New file.
85412
85413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85414
85415         Sync from coreutils.
85416
85417         * modules/argmatch (Depends-on): Add verify.
85418         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85419         unistd-safer.
85420         * modules/save-cwd (Depends-on): Likewise.
85421
85422         * modules/openat (Files): Add lib/openat-die.c.
85423         (Depends-on): Remove error, exitfail.
85424         Add dirname.
85425
85426         * modules/verify: New file.
85427         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85428         with "verify" module.
85429
85430 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85431
85432         Sync from coreutils.
85433
85434         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85435         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85436         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85437         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85438         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85439         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85440         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85441         Don't bother checking for string.h, stdlib.h, unistd.h.
85442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85444         module's job.
85445         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85446         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85447
85448         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85449         (gl_GETDATE): Use it.
85450
85451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85452
85453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         Sync from coreutils.
85456
85457         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85458         stat-time.h.
85459         * lib/argmatch.h: Include verify.h
85460         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85461         (ARGMATCH_ASSERT): Remove; unused.
85462         * lib/canonicalize.c: Assume STDC_HEADERS.
85463         * lib/exclude.c: Include "strcase.h".
85464         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85465         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85466         and stdio-safer.h.
85467         (getusershell): Call fopen, not fopen_safer.
85468         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85469         Do not include unistd-safer.h.
85470         (save_cwd): Don't call fd_safer; no longer needed
85471         now that we include fcntl--.h.
85472
85473         * lib/getdate.y (relative_time): New type.
85474         (RELATIVE_TIME_0): New constant.
85475         (parser_control): Use relative_time instead of doing it ourselves.
85476         (%union): Add new relative_time rel member.
85477         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85478         Now typeless.
85479         (relunit, relunit_snumber): Now of type rel.
85480         (zone, rel, relunit, get_date): Adjust to above changes.
85481
85482         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85483         Do not include unistd-safer.h.
85484         (getloadavg): Don't call fd_safer; no longer needed
85485         now that we include fcntl--.h.
85486
85487         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85488         (make_dir_parents): Treat ENOSYS like EEXIST.
85489
85490         Improve quality of diagnostics on restore_cwd failure.
85491         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85492         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85493         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85494         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85495         each time through the loop.  Do not diagnose restore_cwd failure;
85496         that is the caller's job (and perhaps the caller does not care).
85497
85498         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85499         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85500         If the file already exists but is not a directory, don't bother
85501         to try to make its parents.
85502         Close potential file descriptor leak if we can't chdir("/") (!).
85503         Don't always return true if chdir($PWD) fails; return true only
85504         if the requested action was done successfully (except for the
85505         chdir($PWD)).
85506         Don't log final directory unless we actually made it.
85507         Refactor to avoid duplicate code to fix up permissions.
85508         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85509
85510         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85511         to make it a bit faster and (I hope) clearer.
85512         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85513         Fix bug in formats like %2N.
85514
85515         * lib/verify.h: New file.
85516
85517 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         Sync from coreutils.
85520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85521
85522 2005-09-22  Jim Meyering  <jim@meyering.net>
85523
85524         Sync from coreutils.
85525
85526         * m4/lstat.m4 (gl_FUNC_LSTAT):
85527         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85528         Remove obsolete comment.
85529         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85530         * m4/xstrtod.m4: Likewise.
85531
85532         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85533
85534 2005-09-22  Jim Meyering  <jim@meyering.net>
85535
85536         Sync from coreutils.
85537
85538         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85539
85540         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85541         the .tm_year member, since otherwise gcc-4.0 would now warn about
85542         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85543
85544         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85545         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85546
85547         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85548         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85549         when run in a time zone for which daylight savings time is in effect
85550         for the starting date.
85551
85552         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85553         stop us from restricting permissions of just-created absolute-named
85554         directories.
85555         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85556         to restore initial working directory.
85557         * lib/mkdir-p.c (make_dir_parents): New parameter:
85558         different_working_dir, to tell caller if/when we change the working
85559         directory and are unable to return to the initial one.
85560         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85561         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85562         `return false'.  This fixes a bug introduced on 2004-07-30.
85563
85564         * lib/openat.c (fdopendir): Be sure to close the supplied
85565         file descriptor before returning.  This makes our replacement
85566         implementation a little closer to Solaris's, where fdopendir
85567         ties the file descriptor to the returned DIR* pointer.
85568         * lib/openat.c (unlinkat): New function.
85569         * lib/openat.h (unlinkat): Add prototype.
85570         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85571         (openat_restore_fail): Rename from openat_restore_die.
85572         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85573
85574         Provide an alternative to exiting immediately upon save_cwd or
85575         restore_cwd failure.  Now, an application can arrange e.g.,
85576         to perform a longjump in that case.
85577         * lib/openat.c: Include dirname.h.
85578         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85579         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85580         and openat_restore_die rather than calling error directly.
85581         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85582
85583         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85584         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85585         define.
85586
85587         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85588         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85589                             int utc, int nanoseconds);
85590         Background:
85591         date should not have to allocate a megabyte of virtual memory to
85592         handle a format argument like +%1048575T.  When implemented with
85593         strftime, it must allocate such a buffer, use strftime to fill it
85594         in, print it, then free it.
85595         With fprintftime, it simply prints everything and exits.
85596         With no need for memory allocation, that's one fewer way to fail.
85597         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85598         optional field width, not before, so we accept %9:z, not %:9z.
85599         (my_strftime): Be sure to use L_('x') for literals.
85600
85601         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85602         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85603         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85604         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85605         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85606         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85607         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85608         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85609         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85610         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85611         * lib/xgethostname.c, lib/xreadlink.c:
85612         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85613
85614         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85615         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85616         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85617         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85618         and don't include <sys/file.h>).
85619
85620 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85621
85622         Sync from coreutils.
85623
85624         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85625         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85626         [!LDAV_DONE]: Avoid unused variable warning.
85627
85628 2005-09-21  Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/unicodeio.h (unicode_to_mb): New declaration.
85631
85632 2005-09-20  Derek Price  <derek@ximbiot.com>
85633
85634         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85635         getaddrinfo.h.
85636
85637 2005-09-20  Bruno Haible  <bruno@clisp.org>
85638
85639         * gnulib-tool: Remove trailing slashes from the values specified for
85640         --source-base, --m4-base, --tests-base, --aux-dir.
85641         Suggested by Simon Josefsson <jas@extundo.com>.
85642
85643 2005-09-20  Bruno Haible  <bruno@clisp.org>
85644
85645         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85646         func_modules_to_filelist, func_import, func_create_testdir): Make all
85647         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85648         change when gnulib-tool is invoked in a different locale.
85649
85650 2005-09-19  Simon Josefsson  <jas@extundo.com>
85651
85652         * m4/socklen.m4: Fix typo.
85653
85654 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85655
85656         Use a consistent style for including <config.h>.
85657         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85658         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85659         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85660         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85661         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85662         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85663         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85664         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85665         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85666         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85667         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85668         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85669         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85670         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85671         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85672         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85673         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85674         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85675         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85676         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85677         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85678         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85679         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85680         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85681         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85682         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85683         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85684         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85685         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85686         lib/xstrtoumax.c, lib/yesno.c:
85687         Standardize inclusion of config.h.
85688         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85689         lib/inttostr.h:  Removed inclusion of config.h from header files.
85690         * lib/inttostr.c:  Adjusted in-tree users.
85691         * lib/timespec.h: Remove superfluous warning to include config.h.
85692         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85693         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85694         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85695         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85696         config.h with HAVE_CONFIG_H.
85697
85698 2005-09-19  Jim Meyering  <jim@meyering.net>
85699
85700         * modules/pathmax (License): Change to LGPL.
85701
85702 2005-09-19  Derek Price  <derek@ximbiot.com>
85703
85704         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85705
85706 2005-09-19  Bruno Haible  <bruno@clisp.org>
85707
85708         * gnulib-tool (import): Provide default for --tests-base.
85709
85710 2005-09-19  Bruno Haible  <bruno@clisp.org>
85711
85712         * doc/quote.texi: New file, extracted from gnulib.texi.
85713         * doc/ctime.texi: New file, extracted from gnulib.texi.
85714         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85715         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85716         * doc/gnulib.texi: Include them.
85717
85718 2005-09-18  Bruno Haible  <bruno@clisp.org>
85719
85720         Portability fix.
85721         * gnulib-tool (func_readlink): New function.
85722         (func_ln_if_changed): Use it.
85723
85724 2005-09-18  Bruno Haible  <bruno@clisp.org>
85725
85726         * gnulib-tool: Support --with-tests also with --import.
85727         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85728         (func_import): Use variables $testsbase and $inctests. Emit a
85729         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85730         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85731         SUBDIRS += $testsdir.
85732         (func_create_testdir): Update.
85733
85734 2005-09-18  Bruno Haible  <bruno@clisp.org>
85735
85736         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85737         instead of $dry_run.
85738         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85739         (func_ln_if_changed): Don't handle dry-run here.
85740         (func_import): In dry-run mode, detect more precisely which actions
85741         would be performed, and don't use "...ing" verbs.
85742
85743 2005-09-18  Bruno Haible  <bruno@clisp.org>
85744
85745         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85746         (func_import): Use join on two temporary files instead of three nested
85747         loops, in order to determine which files are new or old.
85748
85749 2005-09-18  Bruno Haible  <bruno@clisp.org>
85750
85751         * gnulib-tool (func_import): Comment out code that spits out the
85752         new files with --dry-run.
85753
85754 2005-09-18  Bruno Haible  <bruno@clisp.org>
85755
85756         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85757
85758 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         * lib/stat-time.h: New file.
85761         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85762         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85763         in a different way.
85764         (timespec_cmp): New function.
85765         * lib/utimecmp.c: Include stat-time.h.
85766         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85767         members exist, not on the obsolescent ST_MTIM_NSEC.
85768         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85769
85770 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85771
85772         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85773
85774 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85775
85776         * MODULES.html.sh (File system functions): Add stat-time.
85777         * modules/stat-time: New file.
85778         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85779         is now done in a different way, by the stat-time module.
85780         * modules/utimecmp (Depends-on): Add stat-time.
85781
85782 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85783
85784         * m4/st_mtim.m4: Remove.  Superseded by...
85785         * m4/stat-time.m4: New file.
85786         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85787         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85788
85789 2005-09-15  Derek Price  <derek@ximbiot.com>
85790
85791         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85792
85793 2005-09-15  Derek Price  <derek@ximbiot.com>
85794
85795         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85796         * lib/regex_internal.c: Ditto, using this...
85797         (__GNUC_PREREQ): ...new macro.
85798         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85799         using...
85800         (__GNUC_PREREQ): ...this new macro.
85801
85802         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85803
85804 2005-09-15  Derek Price  <derek@ximbiot.com>
85805             Paul Eggert  <eggert@cs.ucla.edu>
85806
85807         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85808         changes, consolidating in...
85809         * lib/regex_internal.h: ...this file.
85810
85811 2005-09-13  Jim Meyering  <jim@meyering.net>
85812
85813         * lib/canon-host.c: Filter through gnu indent and reword comments
85814         slightly.
85815         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85816
85817 2005-09-13  Derek Price  <derek@ximbiot.com>
85818
85819         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85820         failure.
85821         Reported by Jim Meyering  <jim@meyering.net>.
85822
85823 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85824
85825         * lib/base64.c: Typo.
85826         (base64_encode): Put b64str in initialized data section.
85827
85828 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         Merge glibc and coreutils changes into gnulib, plus a few
85831         extra fixes.
85832         * lib/md5.c: Use #error rather than a string.
85833         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85834         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85835         (__attribute__): Define to empty for non recent-GCC.
85836         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85837         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85838         Renamed from their non-__ counterparts, with new macros replacing
85839         them if not _LIBC.  Add __THROW attribute.
85840         (rol): Remove.
85841         (struct md5_ctx): Align buffer if using GCC.
85842         * lib/sha1.h (struct sha1_ctx): Likewise.
85843         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85844         The old name was backwards.
85845         (NOTSWAP): Remove; not used.
85846         (rol): New macro, moved here from md5.h.
85847         (sha1_process_block): Remove a FIXME that doesn't make sense.
85848
85849 2005-09-12  Derek Price  <derek@ximbiot.com>
85850
85851         Return usable errors from canon-host.
85852         * lib/canon-host.h: New file.
85853         * lib/canon-host.c (canon_host): Wrap...
85854         (canon_host_r): ...this new function, which now relies exclusively on
85855         getaddrinfo.
85856         (ch_strerror): New function.
85857         (last_cherror): New global.
85858         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85859         interface.
85860         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85861         void *.
85862         (freeaddrinfo): Free ai->ai_canonname when set.
85863
85864 2005-09-12  Derek Price  <derek@ximbiot.com>
85865
85866         Make canon-host require getaddrinfo.
85867         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85868         AC_LIBSOURCE canon-host.h.  Call...
85869         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85870         gl_GETADDRINFO.
85871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85872
85873 2005-09-12  Derek Price  <derek@ximbiot.com>
85874
85875         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85876         LGPL.
85877         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85878
85879 2005-09-12  Derek Price  <derek@ximbiot.com>
85880
85881         * lib/gai_strerror.c: Include config.h when available.  Include
85882         getaddrinfo.h before other headers to test interface.
85883         Reported by Larry Jones <lawrence.jones@ugs.com>.
85884
85885 2005-09-12  Derek Price  <derek@ximbiot.com>
85886             Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * modules/glob (Files): Add glob-libc.h.
85889
85890 2005-09-12  Derek Price  <derek@ximbiot.com>
85891             Paul Eggert  <eggert@cs.ucla.edu>
85892
85893         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85894         glob_.h, glob-libc.h.
85895         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85896
85897 2005-09-12  Derek Price  <derek@ximbiot.com>
85898             Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85901         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85902         protecting things that should be done only in gnulib contexts.
85903         * lib/glob_.h: New file, containing only the glob things needed for
85904         gnulib.
85905         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85906         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85907         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85908         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85909         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85910         and to respect the namespace rules better.
85911
85912 2005-09-08  Simon Josefsson  <jas@extundo.com>
85913
85914         * modules/socklen: New file.
85915
85916 2005-09-08  Simon Josefsson  <jas@extundo.com>
85917
85918         * m4/socklen.m4: New file.
85919
85920 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85921
85922         * modules/utimens (Files): Add m4/utimbuf.m4, since
85923         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85924         Reported by Sergey Poznyakoff.
85925
85926 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85927
85928         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85929         definitions, since that's the preferred style in glibc.
85930         Fix a minor spacing issue, and update copyright notice to match
85931         glibc's.
85932
85933 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85934
85935         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85936
85937 2005-09-06  Simon Josefsson  <jas@extundo.com>
85938
85939         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85940         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85941
85942 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85943
85944         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85945         warning.
85946
85947 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * config/srclist.txt: Add glibc bug 1302.
85950
85951 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         Change bitset word type from unsigned int to unsigned long int,
85954         as this has better performance on typical 64-bit hosts.
85955         Port bitset code to hosts with unusual word sizes.
85956         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85957         (build_collating_symbol):
85958         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85959         argument is a bitset.  This is merely a style issue, but it makes
85960         it clearer that an entire array is expected.
85961         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85962         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85963         Port to the case where bitset_word is not the same as unsigned int.
85964         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85965         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85966         Likewise.
85967         * lib/regexec.c (check_dst_limits_calc_pos_1,
85968         check_subexp_matching_top):
85969         (build_trtable, group_nodes_into_DFAstates):
85970         Likewise.
85971         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85972         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85973         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85974         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85975         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85976         * lib/regcomp.c (optimize_subexps, lower_subexp):
85977         Work even if bitset_word has holes in its bitwise representation.
85978         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85979         * lib/regexec.c (check_dst_limits_calc_pos_1,
85980         check_subexp_matching_top):
85981         Likewise.
85982         * lib/regex_internal.c (re_string_reconstruct):
85983         Don't assume UCHAR_MAX == 255.
85984         * lib/regex_internal.h (bitset_set_all): Likewise.
85985         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85986         All uses changed.
85987         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85988         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85989         All uses changed.
85990         (BITSET_WORD_MAX): New macro.
85991         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85992         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85993         (bitset_empty, bitset_copy):
85994         Prefer sizeof (bitset) to multiplying it out ourselves.
85995         (bitset_not_merge): Remove; unused.
85996         (bitset_contain): Return bool, not unsigned int with one bit on.
85997         All callers changed.
85998         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85999         alignment than re_node_set; do this by defining a new internal
86000         type struct dests_alloc and using it to allocate memory.
86001
86002 2005-09-05  Bruno Haible  <bruno@clisp.org>
86003
86004         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86005         links.
86006
86007 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86008
86009         * modules/size_max (Makefile.am): Add size_max.h
86010
86011 2005-09-04  Derek Price  <derek@ximbiot.com>
86012
86013         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86014
86015 2005-09-03  Simon Josefsson  <jas@extundo.com>
86016
86017         * gnulib-tool: Fix typo.
86018
86019 2005-09-03  Simon Josefsson  <jas@extundo.com>
86020
86021         * config/srclist.txt: Add glibc bug 1293.
86022
86023 2005-09-03  Derek Price  <derek@ximbiot.com>
86024
86025         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86026         From Larry Jones <lawrence.jones@ugs.com>.
86027
86028 2005-09-02  Simon Josefsson  <jas@extundo.com>
86029
86030         * modules/socklen: New file.
86031
86032 2005-09-02  Simon Josefsson  <jas@extundo.com>
86033
86034         * modules/havelib: New module.
86035
86036         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86037         Use havelib.
86038
86039 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86040
86041         Check for arithmetic overflow when calculating sizes, to prevent
86042         some buffer-overflow issues.  These patches are conservative, in the
86043         sense that when I couldn't determine whether an overflow was possible,
86044         I inserted a run-time check.
86045         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86046         macros.
86047         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86048         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86049         (re_xnrealloc, re_x2nrealloc): New inline functions.
86050         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86051         parse_bracket_exp):
86052         (build_equiv_class, build_charclass): Check for arithmetic overflow
86053         in size expression calculations.
86054         * lib/regex_internal.c (re_string_realloc_buffers):
86055         (build_wcs_upper_buffer, re_node_set_add_intersect):
86056         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86057         (re_dfa_add_node, register_state): Likewise.
86058         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86059         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86060         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86061         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86062
86063 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86066         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86067
86068 2005-09-02  Bruno Haible  <bruno@clisp.org>
86069
86070         Support for lib vs. lib64 distinction on biarch platforms.
86071         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86072         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86074
86075 2005-09-02  Bruno Haible  <bruno@clisp.org>
86076
86077         * gnulib-tool (import): In the other first-use case, provide defaults
86078         as well.
86079
86080 2005-09-02  Bruno Haible  <bruno@clisp.org>
86081
86082         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86083         patches not yet found in the latest gettext release.
86084
86085 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86086
86087         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86088         to avoid a collision with bits/local_lim.h in glibc.
86089         All uses changed.  Problem reported by Dmitry V. Levin in
86090         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86091
86092         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86093         bugs in int versus size_t comparisons.
86094         (re_string_context_at): Fix bug where the code assumed that
86095         Idx is signed.
86096
86097         Use bool where appropriate.
86098         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86099         All callers changed.
86100         (calc_eclosure_iter): Likewise, for ROOT arg.
86101         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86102         (build_charclass_op): Likewise, for NON_MATCH arg.
86103         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86104         (re_string_construct_common): Likewise, for ICASE arg.
86105         * lib/regexec.c (re_search_2_stub, re_search_stub):
86106         Likewise, for RET_LEN arg.
86107         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86108         (set_regs): Likewise, for FL_BACKTRACK arg.
86109         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86110         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86111         (calc_eclosure_iter, parse_bracket_exp):
86112         Use bool for internal variables that are booleans.
86113         * lib/regexec.c (re_search_internal, check_matching,
86114         proceed_next_node):
86115         (set_regs, build_sifted_states, sift_states_bkref):
86116         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86117         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86118         (find_collation_sequence_value):
86119         Likewise.
86120         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86121         (re_node_set_compare):
86122         Return bool, not int. All callers changed.
86123         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86124         (build_trtable, check_node_accept): Likewise.
86125         * lib/regex_internal.h: Include stdbool.h.
86126
86127         Fix bugs uncovered when converting to bool.
86128         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86129         failure instead of charging ahead blindly.
86130         * lib/regex_internal.c (register_state): Likewise.
86131         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86132         for freeing internal storage.
86133         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86134         bitset pieces used as boolean, to avoid undefined behavior
86135         on hosts that do int overflow checking.
86136
86137 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * config/srclist.txt: Add glibc bugs 1285-1287.
86140
86141 2005-09-01  Jim Meyering  <jim@meyering.net>
86142
86143         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86144         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86145         Require gl_STAT_MACROS, too.
86146
86147 2005-09-01  Bruno Haible  <bruno@clisp.org>
86148
86149         * gnulib-tool (import): In the first-use case, provide defaults.
86150
86151 2005-09-01  Bruno Haible  <bruno@clisp.org>
86152
86153         * gnulib-tool (func_import): Remove the .tmp files.
86154
86155 2005-09-01  Bruno Haible  <bruno@clisp.org>
86156
86157         * gnulib-tool (func_import): Fix handling of symbolic links.
86158
86159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86160
86161         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86162         old glibc regex code mishandles strings longer than 2**31 bytes.
86163         This patch fixes this when the regex code is used in gnulib
86164         (i.e., outside glibc).
86165
86166         This patch should not affect the use of the regex code inside
86167         glibc.  No doubt this problem also needs to be handled for glibc
86168         as well, but the result will be an incompatible change to the
86169         glibc ABI, and the old ABI will have to be supported too.  That
86170         can be the the subject for another patch.
86171
86172         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86173         governing whether the rest of this patch is active.  By default,
86174         the macro is disabled and the patch has no effect.
86175         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86176         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86177         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86178         (re_match_2, re_set_registers): Use the new types.
86179         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86180         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86181         New macros.
86182         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86183         (re_string_context_at, bin_tree_t, re_dfastate_t):
86184         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86185         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86186         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86187         (re_string_char_size_at, re_string_wchar_at):
86188         (re_string_elem_size_at):
86189         Use the new types and macros to port to 64-bit hosts.
86190         Use unsigned types for internal values, so that the code
86191         mostly works even for arrays larger than SSIZE_MAX.
86192         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86193         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86194         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86195         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86196         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86197         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86198         (calc_inveclosure, parse_dup_op, build_range_exp):
86199         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86200         (fetch_number, create_token_tree, mark_opt_subexp):
86201         Likewise.
86202         * lib/regex_internal.c (re_string_construct_common,
86203         create_ci_newstate):
86204         (create_cd_newstate, re_string_allocate, re_string_construct):
86205         (re_string_realloc_buffers, build_wcs_upper_buffer):
86206         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86207         (re_string_reconstruct, re_string_peek_byte_case):
86208         (re_string_fetch_byte_case, re_string_context_at):
86209         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86210         (re_node_set_init_copy, re_node_set_add_intersect):
86211         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86212         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86213         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86214         (re_acquire_state, re_acquire_state_context, register_state):
86215         Likewise.
86216         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86217         search_cur_bkref_entry):
86218         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86219         (re_search_internal, re_search_2_stub, re_search_stub)
86220         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86221         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86222         (update_cur_sifted_state, check_dst_limits):
86223         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86224         (check_subexp_limits, sift_states_bkref, merge_state_array):
86225         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86226         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86227         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86228         (expand_bkref_cache, check_node_accept_bytes):
86229         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86230         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86231         (acquire_init_state_context, check_halt_node_context):
86232         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86233         (sift_states_backward, clean_state_log_if_needed):
86234         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86235         (find_recover_state, transit_state_sb, transit_state_mb):
86236         (transit_state_bkref, build_trtable, match_ctx_clean):
86237         Likewise.
86238         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86239         to work around an assumption that REG_MISSING is negative.
86240
86241         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86242         (seek_collating_symbol_entry) [defined _LIBC]:
86243         (lookup_collation_sequence_value) [defined _LIBC]:
86244         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86245         Use prototypes rather than old-style function definitions.
86246         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86247         (transit_state_sb) [0]:
86248         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86249
86250         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86251         rm_eo.
86252
86253         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86254         (optimize_subexps, lower_subexp):
86255         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86256         since the signed shift might overflow.  Use 1u<<31 instead.
86257         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86258         Likewise.
86259         * lib/regexec.c (check_dst_limits_calc_pos_1,
86260         check_subexp_matching_top): Likewise.
86261
86262         * lib/regcomp.c (optimize_subexps, lower_subexp):
86263         Use CHAR_BIT rather than 8, for clarity.
86264         * lib/regexec.c (check_dst_limits_calc_pos_1):
86265         (check_subexp_matching_top): Likewise.
86266         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86267         have to worry about portability issues when shifting it left.
86268         Remove no-longer-needed test for table_size > 0.
86269         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86270         in a word, as the resulting behavior is undefined.
86271         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86272         in one case, a <= should have been an <, and in another case the
86273         whole test was missing.
86274         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86275         the standard name CHAR_BIT.
86276         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86277         this is not true on one's complement and signed-magnitude hosts.
86278
86279         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86280         next_last_offset.
86281         (struct re_dfa_t): Remove unused member states_alloc.
86282         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86283
86284 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86285
86286         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86287         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86288         and large-file glibc and in 32-bit large-file Solaris.
86289
86290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86291
86292         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86293         lengths fit in regoff_t; this isn't true if regoff_t is the same
86294         width as size_t.
86295         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86296         (= START + RANGE) instead of RANGE.  This avoids overflow
86297         problems when regoff_t is the same width as size_t.
86298         All callers changed.
86299         (re_search_2_stub): Check for overflow when adding the
86300         sizes of the two strings.
86301         (re_search_stub): Check for overflow when adding START
86302         to RANGE; if it occurs, substitute the extreme value.
86303
86304 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86305
86306         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86307
86308 2005-08-31  Jim Meyering  <jim@meyering.net>
86309
86310         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86311         a pointer-to-const.
86312         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86313         (register_state): Likewise.
86314         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86315         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86316         (group_nodes_into_DFAstates): Likewise.
86317
86318 2005-08-31  Jim Meyering  <jim@meyering.net>
86319
86320         * check-module: Add a FIXME comment.
86321
86322 2005-08-31  Eric Blake  <ebb9@byu.net>
86323
86324         * modules/unistd-safer (Files): Add unistd--.h.
86325         * modules/stdio-safer (Files): Add stdio--.h.
86326
86327 2005-08-31  Derek Price  <derek@ximbiot.com>
86328
86329         * lib/getdelim.c (getdelim): Return EOF on EOF.
86330         Reported by Larry Jones <lawrence.jones@ugs.com>.
86331
86332 2005-08-31  Bruno Haible  <bruno@clisp.org>
86333
86334         Avoid unnecessary diffs in the generated lib/Makefile.am.
86335         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86336         the generated files.
86337         (func_import): Don't set cmd.
86338
86339 2005-08-31  Bruno Haible  <bruno@clisp.org>
86340
86341         * lib/strstr.c: Include <stddef.h>, for NULL.
86342         * lib/strcasestr.c: Likewise.
86343         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86344
86345 2005-08-31  Bruno Haible  <bruno@clisp.org>
86346
86347         * gnulib-tool: New option --macro-prefix.
86348         (func_import): Use macro_prefix.
86349         (import): Handle option --macro-prefix.
86350
86351 2005-08-31  Bruno Haible  <bruno@clisp.org>
86352
86353         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86354         Also use new variables cached_lgpl, cached_libtool.
86355
86356 2005-08-31  Bruno Haible  <bruno@clisp.org>
86357
86358         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86359         always instantiating them.
86360
86361 2005-08-31  Bruno Haible  <bruno@clisp.org>
86362
86363         * gnulib-tool (func_import): Read the previous cached settings
86364         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86365         earlier added by gnulib but are now dropped. Warn when a gnulib file
86366         overwrites a non-gnulib file.
86367
86368 2005-08-31  Bruno Haible  <bruno@clisp.org>
86369
86370         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86371         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86372         projects that don't keep autogenerated files in CVS. Put into
86373         actioncmd only the specified modules, not the transitive closure.
86374
86375 2005-08-31  Bruno Haible  <bruno@clisp.org>
86376
86377         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86378         Create directories that shall be filled.
86379         (import): Don't look for gl_* macros in configure.ac. Recurse across
86380         all directories containing a gnulib-cache.m4 files, if meaningful.
86381
86382 2005-08-31  Bruno Haible  <bruno@clisp.org>
86383
86384         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86385         (import): Set seen_libtool when we see gl_LIBTOOL.
86386
86387 2005-08-31  Bruno Haible  <bruno@clisp.org>
86388
86389         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86390         declaration macro definitions from generated gnulib.m4.
86391
86392 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86393
86394         * lib/iconvme.h: Add prototype for iconv_alloc.
86395
86396 2005-08-29  Simon Josefsson  <jas@extundo.com>
86397
86398         * lib/iconvme.c: Fix errno.
86399
86400 2005-08-29  Bruno Haible  <bruno@clisp.org>
86401
86402         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86403         that it works when the directory contains spaces.
86404
86405 2005-08-29  Bruno Haible  <bruno@clisp.org>
86406
86407         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86408
86409 2005-08-29  Bruno Haible  <bruno@clisp.org>
86410
86411         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86412         Emit more advice.
86413
86414 2005-08-29  Bruno Haible  <bruno@clisp.org>
86415         and Stepan Kasal  <kasal@ucw.cz>
86416
86417         * check-module: If more parameters are given, check each of them
86418         separately; add more exceptions, as noted by Jim Meyering.
86419         (check_module): New procedure.
86420         (%exempt_header): Now contains all exceptions.
86421
86422 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86423
86424         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86425
86426 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86427
86428         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86429
86430 2005-08-28  Bruno Haible  <bruno@clisp.org>
86431
86432         * m4/gnulib-tool.m4: New file.
86433
86434 2005-08-27  Jim Meyering  <jim@meyering.net>
86435
86436         * modules/unistd-safer (Files): Add pipe-safer.c.
86437         * modules/fcntl-safer (Files): Add creat-safer.c.
86438
86439 2005-08-27  Jim Meyering  <jim@meyering.net>
86440
86441         * m4/stdlib-safer.m4: New file.  From coreutils.
86442         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86444         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86445         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86446         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86447
86448 2005-08-27  Jim Meyering  <jim@meyering.net>
86449
86450         * lib/fopen-safer.c: Merge minor changes from coreutils.
86451         * lib/dup-safer.c: Likewise.
86452         * lib/fd-safer.c: Likewise.
86453
86454         Merge from coreutils.
86455         * lib/stdio--.h: New file.
86456         * lib/stdlib--.h: New file.
86457         * lib/mkstemp-safer.c: New file.
86458
86459         GNU tar needs these.
86460         * lib/pipe-safer.c: New file.
86461         * lib/creat-safer.c: New file.
86462         * lib/fcntl--.h (creat): Define to creat_safer.
86463         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86464         * lib/unistd--.h (pipe): Define to pipe_safer.
86465         * lib/unistd-safer.h: Declare pipe_safer.
86466
86467 2005-08-26  Simon Josefsson  <jas@extundo.com>
86468
86469         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86470         Haible <bruno@clisp.org>.
86471
86472 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * lib/regex_internal.h: Remove all references to
86475         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86476         or better.
86477         (bitset_not, bitset_merge, bitset_not_merge):
86478         (bitset_mask, re_string_allocate, re_string_construct):
86479         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86480         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86481         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86482         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86483         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86484         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86485         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86486         (re_acquire_state_context):
86487         Remove unnecessary forward decls.
86488         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86489         Put __attribute at function definition,
86490         now that the function decl has been removed.
86491         * lib/regex_internal.c (re_string_peek_byte_case):
86492         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86493         Likewise.
86494
86495 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86496
86497         * m4/regex.m4: Add AC_PREREQ(2.50).
86498         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86499
86500 2005-08-25  Simon Josefsson  <jas@extundo.com>
86501
86502         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86503         __fsetlocking.
86504
86505 2005-08-25  Simon Josefsson  <jas@extundo.com>
86506
86507         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86508         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86509         GLIBC specific code.
86510
86511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86512
86513         Make regex safe for g++.  This fixes one real bug (an "err"
86514         that should have been "*err").  g++ problem reported by
86515         Sam Steingold.
86516         * lib/regex_internal.h (re_calloc): New macro, consistent with
86517         re_malloc etc.  All callers of calloc changed to use re_calloc.
86518         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86519         not int.  All callers changed.
86520         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86521         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86522         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86523         (find_recover_state): Change "err" to "*err"; this fixes what
86524         appears to be a real bug.
86525         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86526         versus int.
86527
86528 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86529
86530         * modules/regex (Depends-on): Add malloc, since the code
86531         assumes that !malloc(0) means failure.
86532
86533 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86534
86535         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86536
86537         alloca modernization/simplification for regex.
86538         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86539         needs to be at the start of the file, and can be moved into
86540         regex_internal.h and simplified.
86541         * lib/regex_internal.h: Include <alloca.h>.
86542         (__libc_use_alloca) [!defined _LIBC]: New macro.
86543         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86544         now works outside glibc.
86545
86546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86547
86548         * config/srclist.txt: Add glibc bugs 1241, 1245.
86549
86550 2005-08-25  Jim Meyering  <jim@meyering.net>
86551
86552         * lib/open-safer.c: Include <config.h>.
86553         Otherwise, we'd lose LARGEFILE support in any file using
86554         e.g. "fcntl--.h"
86555
86556 2005-08-25  Bruno Haible  <bruno@clisp.org>
86557
86558         * m4/minmax.m4: Require autoconf 2.52.
86559         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86560         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86561         alternatives of translit over the alphabet.
86562         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86563
86564 2005-08-24  Simon Josefsson  <jas@extundo.com>
86565
86566         * tests/test-getpass.c: New file.
86567
86568 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86569
86570         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86571         for GNU regex features.
86572
86573 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86574
86575         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86576         * lib/regex.h (regerror): Likewise.
86577
86578         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86579         requires this.  (The code never needed it.)
86580
86581         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86582         All uses of recently-renamed identifiers changed to use the new,
86583         POSIX-compliant names.  The code will build and run just fine
86584         without these changes, but it's better to eat our own dog food
86585         and use the standard-conforming names.
86586
86587         * lib/regex.h: Fix a multitude of POSIX name space violations.
86588         These changes have an effect only for programs that define
86589         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86590         do not change anything for programs compiled in the normal way.
86591         Also, there is no effect on the ABI.
86592
86593         (_REGEX_SOURCE): New macro.
86594         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86595         defined and _GNU_SOURCE is not; this fixes a name space violation.
86596
86597         Rename the following macros to obey POSIX requirements.
86598         The old names are still visible as macros if _REGEX_SOURCE is defined.
86599         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86600         RE_BACKSLASH_ESCAPE_IN_LISTS.
86601         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86602         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86603         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86604         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86605         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86606         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86607         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86608         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86609         (REG_INTERVALS): renamed from RE_INTERVALS.
86610         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86611         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86612         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86613         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86614         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86615         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86616         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86617         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86618         RE_UNMATCHED_RIGHT_PAREN_ORD.
86619         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86620         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86621         (REG_DEBUG): renamed from RE_DEBUG.
86622         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86623         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86624         unusual, since we can't clash with the POSIX REG_ICASE.
86625         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86626         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86627         (REG_NO_SUB): renamed from RE_NO_SUB.
86628         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86629         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86630         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86631         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86632         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86633         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86634         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86635         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86636         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86637         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86638         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86639         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86640         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86641         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86642         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86643         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86644         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86645         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86646         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86647         (REG_FIXED): Renamed from REGS_FIXED.
86648         (REG_NREGS): Renamed from RE_NREGS.
86649
86650         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86651         of other REG_* macros, since POSIX says the user is allowed to
86652         #undef these macros selectively.
86653
86654         (reg_errcode_t): Update comment stating what other tables need
86655         to be consistent.
86656
86657         Rename the following enum values to obey POSIX requirements.
86658         The old names are still visible as macros.
86659         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86660         is not defined, since GNU is supposed to be a superset of POSIX as
86661         much as possible, and since we want reg_errcode_t to be a signed
86662         type for implementation consistency.
86663         (_REG_NOERROR): Renamed from REG_NOERROR.
86664         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86665         (_REG_BADPAT): Renamed from REG_BADPAT.
86666         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86667         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86668         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86669         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86670         (_REG_EBRACK): Renamed from REG_EBRACK.
86671         (_REG_EPAREN): Renamed from REG_EPAREN.
86672         (_REG_EBRACE): Renamed from REG_EBRACE.
86673         (_REG_BADBR): Renamed from REG_BADBR.
86674         (_REG_ERANGE): Renamed from REG_ERANGE.
86675         (_REG_ESPACE): Renamed from REG_ESPACE.
86676         (_REG_BADRPT): Renamed from REG_BADRPT.
86677         (_REG_EEND): Renamed from REG_EEND.
86678         (_REG_ESIZE): Renamed from REG_ESIZE.
86679         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86680         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86681         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86682         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86683         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86684
86685         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86686         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86687         changed.  But support the old name if the new one is not defined
86688         and if _REGEX_SOURCE.
86689
86690         Change the following member names in struct re_pattern_buffer.
86691         The old names are still supported if !_REGEX_SOURCE.
86692         The new names are always supported, regardless of _REGEX_SOURCE.
86693         (re_buffer): Renamed from buffer.
86694         (re_allocated): Renamed from allocated.
86695         (re_used): Renamed from used.
86696         (re_syntax): Renamed from syntax.
86697         (re_fastmap): Renamed from fastmap.
86698         (re_translate): Renamed from translate.
86699         (re_can_be_null): Renamed from can_be_null.
86700         (re_regs_allocated): Renamed from regs_allocated.
86701         (re_fastmap_accurate): Renamed from fastmap_accurate.
86702         (re_no_sub): Renamed from no_sub.
86703         (re_not_bol): Renamed from not_bol.
86704         (re_not_eol): Renamed from not_eol.
86705         (re_newline_anchor): Renamed from newline_anchor.
86706
86707         Change the following member names in struct re_registers.
86708         The old names are still supported if !_REGEX_SOURCE.
86709         The new names are always supported, regardless of _REGEX_SOURCE.
86710         (rm_num_regs): Renamed from num_regs.
86711         (rm_start): Renamed from start.
86712         (rm_end): Renamed from end.
86713
86714         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86715         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86716         Prepend __ to parameter names.
86717
86718         Undo yesterday's changes.
86719
86720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86721
86722         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86723         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86724         lib/regex.c.
86725
86726 2005-08-24  Jim Meyering  <jim@meyering.net>
86727
86728         Sync from coreutils.
86729         * m4/fcntl-safer.m4: New file.
86730
86731         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86732         and object files for this module.
86733
86734 2005-08-24  Jim Meyering  <jim@meyering.net>
86735
86736         Sync from coreutils.
86737         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86738
86739 2005-08-24  Jim Meyering  <jim@meyering.net>
86740
86741         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86742         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86743
86744 2005-08-24  Jim Meyering  <jim@meyering.net>
86745
86746         * modules/fcntl-safer: New module.
86747         * modules/fts (Depends-on): Add fcntl-safer.
86748         * MODULES.html.sh (File descriptor based Input/Output):
86749         Add fcntl-safer.
86750
86751 2005-08-24  Bruno Haible  <bruno@clisp.org>
86752
86753         Support for unit test modules.
86754         * modules/README: Mention tests modules.
86755         * modules/TEMPLATE-TESTS: New file.
86756         * gnulib-tool: New options --extract-tests-module, --with-tests and
86757         --tests-base (unused for the moment).
86758         (testsbase, inctests): New variables.
86759         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86760         (func_verify_module): Exclude TEMPLATE-TESTS.
86761         (func_verify_nontests_module, func_verify_tests_module): New functions.
86762         (func_get_dependencies): Add implicit dependency for tests modules.
86763         (func_get_tests_module): New function.
86764         (func_modules_transitive_closure): When --with-tests was specified,
86765         include the unit tests as well, unless explicitly avoided.
86766         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86767         (func_emit_tests_Makefile_am): New function.
86768         (func_create_testdir): When --with-tests was specified, emit a
86769         tests/ directory.
86770         * MODULES.html.sh (Future developments): Update.
86771
86772 2005-08-24  Bruno Haible  <bruno@clisp.org>
86773
86774         * modules/tls-tests: New file.
86775         * tests/test-tls.c: New file, from GNU gettext.
86776
86777 2005-08-24  Bruno Haible  <bruno@clisp.org>
86778
86779         * modules/lock-tests: New file.
86780         * tests/test-lock.c: New file, from GNU gettext.
86781
86782 2005-08-24  Bruno Haible  <bruno@clisp.org>
86783
86784         * lib/lock.h: Add multiple inclusion guard.
86785         * lib/tls.h: Add multiple inclusion guard.
86786
86787 2005-08-24  Bruno Haible  <bruno@clisp.org>
86788
86789         * gnulib-tool: Add support for the --aux-dir option to
86790         --create-testdir, --create-megatestdir, --test, --megatest.
86791         (func_create_testdir, func_create_megatestdir): Optionally emit a
86792         AC_CONFIG_AUX_DIR directive.
86793         (create-testdir, create-megatestdir, test, megatest): Provide a
86794         default value for $auxdir.
86795
86796 2005-08-24  Bruno Haible  <bruno@clisp.org>
86797
86798         * gnulib-tool (import): Use compound statement instead of subshell
86799         where possible.
86800
86801 2005-08-24  Bruno Haible  <bruno@clisp.org>
86802
86803         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86804
86805 2005-08-24  Bruno Haible  <bruno@clisp.org>
86806
86807         * gnulib-tool (func_version): Update.
86808
86809 2005-08-24  Bruno Haible  <bruno@clisp.org>
86810
86811         * gnulib-tool (func_import, func_create_testdir,
86812         func_create_megatestdir): Quote all autoconf macro arguments.
86813
86814 2005-08-24  Bruno Haible  <bruno@clisp.org>
86815
86816         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86817         option --force, because --force causes the aclocal.m4 of each
86818         subdirectory to be newer than the corresponding config.h.in.
86819
86820 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86821
86822         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86823         All contents moved to gl_REGEX.
86824         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86825         assume that it does.
86826
86827 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86828
86829         * lib/regex.h (REG_NOSYS)
86830         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86831         Define, since POSIX requires it as of 2001.
86832         (_REG_ENOSYS)
86833         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86834         New private symbol, used to keep the enum signed in all cases.
86835         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86836         Youngman in
86837         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86838
86839         * lib/regex_internal.c (re_string_skip_chars, register_state):
86840         (calc_state_hash):
86841         Remove forward decls; no longer needed now that we use prototypes.
86842         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86843         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86844         (clean_state_log_if_needed): Likewise.
86845
86846 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86847
86848         * config/srclist.txt: Add glibc bugs 1231-1233.
86849
86850 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86851
86852         Fix problems reported by Sam Steingold in
86853         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86854         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86855         assumed that reg_errcode_t is a signed type, which is not
86856         necessarily true if _XOPEN_SOURCE is not defined.
86857         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86858         since some compilers warn about it otherwise.
86859
86860 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86861
86862         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86863         (init_word_char, create_initial_state, duplicate_node_closure):
86864         (fetch_token, peek_token_bracket, build_range_exp):
86865         (build_collating_symbol): Remove forward decls; no longer needed
86866         now that we use prototypes.
86867
86868         * lib/regcomp.c:
86869         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86870         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86871         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86872         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86873         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86874         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86875         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86876         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86877         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86878         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86879         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86880         (build_charclass, build_charclass_op, fetch_number, create_tree):
86881         (create_token_tree, mark_opt_subexp, duplicate_tree):
86882         Use prototypes rather than old-style definitions.
86883
86884         * lib/regex_internal.c:
86885         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86886         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86887         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86888         (re_string_reconstruct, re_string_peek_byte_case):
86889         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86890         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86891         (re_node_set_init_copy, re_node_set_add_intersect):
86892         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86893         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86894         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86895         (re_acquire_state, re_acquire_state_context, register_state):
86896         (create_ci_newstate, create_cd_newstate, free_state):
86897         Likewise.
86898         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86899         re_search_2):
86900         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86901         (re_search_internal, prune_impossible_nodes):
86902         (acquire_init_state_context, check_matching, static):
86903         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86904         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86905         (update_regs, sift_states_backward, build_sifted_states):
86906         (clean_state_log_if_needed, merge_state_array):
86907         (update_cur_sifted_state, add_epsilon_src_nodes):
86908         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86909         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86910         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86911         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86912         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86913         (check_arrival, check_arrival_add_next_nodes):
86914         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86915         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86916         (check_node_accept_bytes, check_node_accept, extend_buffers):
86917         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86918         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86919         (sift_ctx_init):
86920         Likewise.
86921
86922         * lib/regex_internal.h:
86923         (re_string_allocate, re_string_construct, re_string_reconstruct):
86924         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86925         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86926         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86927         (re_string_context_at, re_string_peek_byte_case):
86928         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86929         is defined, since we now use prototypes always.
86930
86931         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86932         C89 or better.  All uses removed.
86933
86934 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86935
86936         * config/srclist.txt: Add glibc bugs 1220-1227.
86937
86938 2005-08-20  Jim Meyering  <jim@meyering.net>
86939
86940         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86941         of unused local, dfa.
86942
86943 2005-08-20  Bruno Haible  <bruno@clisp.org>
86944
86945         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86946
86947 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86950         (re_node_set_insert_last, re_dfa_add_node):
86951         Rename local variables to avoid GCC shadowing warnings.
86952
86953 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86954
86955         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86956         [defined lint]: Suppress bogus uninitialized-variable warnings.
86957
86958         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86959         and let the caller return REG_ESPACE if out of space.  This
86960         removes an uninitialied-variable warning with GCC 4.0.1, and also
86961         avoids taking the address of a local variable.  All callers
86962         changed.
86963
86964 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86965
86966         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86967         $LIBCSRC/posix/regexec.c.
86968         Add glibc bug 1217 for regcomp.c.
86969
86970 2005-08-19  Jim Meyering  <jim@meyering.net>
86971
86972         * lib/regexec.c (proceed_next_node): Redo local variables to
86973         avoid GCC shadowing warnings.
86974
86975 2005-08-18  Bruno Haible  <bruno@clisp.org>
86976
86977         * lib/strstr.c (strstr): Fix return value in multibyte case.
86978         * lib/strcasestr.c (strcasestr): Likewise.
86979
86980 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86981
86982         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86983
86984 2005-08-17  Jim Meyering  <jim@meyering.net>
86985
86986         Make the %s format (seconds since the epoch) work for a negative
86987         number and when used with a zero-padded field width, e.g. %015s.
86988
86989         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86990         label so that it precedes the code to set `digits'.  Otherwise,
86991         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86992         print `00-22'.  Now, it prints `-0022', as it should.
86993
86994 2005-08-17  Bruno Haible  <bruno@clisp.org>
86995
86996         * modules/strstr (Files): Add m4/mbrtowc.m4.
86997         (Depends-on): Add mbuiter.
86998
86999 2005-08-17  Bruno Haible  <bruno@clisp.org>
87000
87001         * modules/strcasestr: New file.
87002         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87003         strcasestr.
87004
87005 2005-08-17  Bruno Haible  <bruno@clisp.org>
87006
87007         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87008
87009 2005-08-17  Bruno Haible  <bruno@clisp.org>
87010
87011         * modules/mbuiter: New file.
87012         * MODULES.html.sh (Extended multibyte and wide character utilities):
87013         Add mbuiter.
87014
87015 2005-08-17  Bruno Haible  <bruno@clisp.org>
87016
87017         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87018         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87019
87020 2005-08-17  Bruno Haible  <bruno@clisp.org>
87021
87022         * m4/strcasestr.m4: New file.
87023
87024 2005-08-17  Bruno Haible  <bruno@clisp.org>
87025
87026         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87027         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87028
87029 2005-08-17  Bruno Haible  <bruno@clisp.org>
87030
87031         * lib/strcasestr.h: New file.
87032         * lib/strcasestr.c: New file.
87033
87034 2005-08-17  Bruno Haible  <bruno@clisp.org>
87035
87036         * lib/strcasecmp.c: Use mbuiter.h.
87037
87038 2005-08-17  Bruno Haible  <bruno@clisp.org>
87039
87040         * lib/mbuiter.h: New file.
87041
87042 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87043
87044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87045         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87046         and gl_GETOPT are both invoked via different paths (as happens
87047         with GNU tar CVS because it uses both argp and getopt), the former
87048         wins.
87049
87050 2005-08-16  Bruno Haible  <bruno@clisp.org>
87051
87052         * modules/tls: New file.
87053         * MODULES.html.sh (Multithreading): Add tls.
87054
87055 2005-08-16  Bruno Haible  <bruno@clisp.org>
87056
87057         * modules/strnlen1: New file.
87058         * MODULES.html.sh (String handling): Add strnlen1.
87059
87060 2005-08-16  Bruno Haible  <bruno@clisp.org>
87061
87062         * modules/strcase (Files): Add m4/mbrtowc.m4.
87063         (Depends-on): Add strnlen1, mbchar.
87064
87065 2005-08-16  Bruno Haible  <bruno@clisp.org>
87066
87067         * modules/mbiter: New file.
87068         * MODULES.html.sh (Extended multibyte and wide character utilities):
87069         Add mbiter.
87070
87071 2005-08-16  Bruno Haible  <bruno@clisp.org>
87072
87073         * modules/mbfile: New file.
87074         * MODULES.html.sh (Extended multibyte and wide character utilities):
87075         Add mbfile.
87076
87077 2005-08-16  Bruno Haible  <bruno@clisp.org>
87078
87079         * modules/mbchar: New file.
87080         * MODULES.html.sh (Extended multibyte and wide character utilities):
87081         New section.
87082
87083 2005-08-16  Bruno Haible  <bruno@clisp.org>
87084
87085         * m4/tls.m4: New file, from GNU gettext.
87086
87087 2005-08-16  Bruno Haible  <bruno@clisp.org>
87088
87089         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87090         always.
87091         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87092
87093 2005-08-16  Bruno Haible  <bruno@clisp.org>
87094
87095         * m4/mbiter.m4: New file.
87096
87097 2005-08-16  Bruno Haible  <bruno@clisp.org>
87098
87099         * m4/mbfile.m4: New file.
87100
87101 2005-08-16  Bruno Haible  <bruno@clisp.org>
87102
87103         * m4/mbchar.m4: New file.
87104
87105 2005-08-16  Bruno Haible  <bruno@clisp.org>
87106
87107         * lib/tls.h: New file, from GNU gettext.
87108         * lib/tls.c: New file, from GNU gettext.
87109
87110 2005-08-16  Bruno Haible  <bruno@clisp.org>
87111
87112         * lib/strnlen1.h: New file.
87113         * lib/strnlen1.c: New file.
87114
87115 2005-08-16  Bruno Haible  <bruno@clisp.org>
87116
87117         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87118         (mbi_init): Update.
87119         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87120         NUL byte, not after it.
87121
87122 2005-08-16  Bruno Haible  <bruno@clisp.org>
87123
87124         * lib/strcase.h (strcasecmp): Add note in comments.
87125         * lib/strncasecmp.c: Use code from strcasecmp.c.
87126         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87127         (strcasecmp): Work correctly in multibyte locales.
87128
87129 2005-08-16  Bruno Haible  <bruno@clisp.org>
87130
87131         * lib/mbiter.h: New file.
87132
87133 2005-08-16  Bruno Haible  <bruno@clisp.org>
87134
87135         * lib/mbfile.h: New file.
87136
87137 2005-08-16  Bruno Haible  <bruno@clisp.org>
87138
87139         * lib/mbchar.h: New file.
87140         * lib/mbchar.c: New file.
87141
87142 2005-08-16  Bruno Haible  <bruno@clisp.org>
87143
87144         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87145         the valid ones. Makes the comparison operations transitive:
87146         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87147         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87148
87149 2005-08-15  Simon Josefsson  <jas@extundo.com>
87150
87151         * modules/ssize_t (License): Change to 'unlimited'.
87152
87153         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87154
87155 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87156
87157         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87158         Add comments for each pending glibc patch.
87159
87160 2005-08-15  Bruno Haible  <bruno@clisp.org>
87161
87162         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87163         __cplusplus is defined.
87164
87165 2005-08-14  Jim Meyering  <jim@meyering.net>
87166
87167         Sync from coreutils.
87168
87169         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87170         Use the hash-table-based cycle-detection code not just when
87171         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87172         Reported by James Youngman in
87173         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87174         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87175         FTS_TIGHT_CYCLE_CHECK.
87176         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87177         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87178         once again.
87179         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87180         * lib/fts.c (fd_safer): Remove decl.
87181         Include fcntl--.h rather than unistd-safer.h
87182         (fts_safe_changedir): Don't call fd_safer; no longer needed
87183         now that we include fcntl--.h.
87184
87185 2005-08-12  Simon Josefsson  <jas@extundo.com>
87186
87187         * modules/getndelim2: Use ssize_t module.
87188         * modules/getnline: Likewise.
87189         * modules/safe-read: Likewise.
87190         * modules/xreadlink: Likewise.
87191
87192         * modules/ssize_t: New file.
87193
87194 2005-08-12  Simon Josefsson  <jas@extundo.com>
87195
87196         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87197
87198 2005-08-12  Simon Josefsson  <jas@extundo.com>
87199
87200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87201         ssize_t.
87202
87203 2005-08-12  Simon Josefsson  <jas@extundo.com>
87204
87205         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87206         readline, getdelim and check_version.
87207         (Support for systems lacking ISO C 99: Sizes of integer types):
87208         Add size_max.
87209
87210 2005-08-12  Bruno Haible  <bruno@clisp.org>
87211
87212         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87213
87214 2005-08-11  Simon Josefsson  <jas@extundo.com>
87215
87216         * modules/readline: New file.
87217
87218         * modules/strnlen (Files): Add strnlen.h.
87219
87220 2005-08-11  Simon Josefsson  <jas@extundo.com>
87221
87222         * m4/readline.m4: New file.
87223
87224 2005-08-11  Simon Josefsson  <jas@extundo.com>
87225
87226         * lib/readline.h, readline.c: New file.
87227
87228 2005-08-11  Simon Josefsson  <jas@extundo.com>
87229
87230         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87231         gl_AVOID.
87232
87233 2005-08-11  Bruno Haible  <bruno@clisp.org>
87234
87235         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87236
87237 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87238
87239         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87240
87241 2005-08-10  Simon Josefsson  <jas@extundo.com>
87242
87243         * tests/test-iconvme.c: New file.
87244
87245 2005-08-10  Simon Josefsson  <jas@extundo.com>
87246
87247         * m4/strnlen.m4: New file.
87248
87249         * m4/strndup.m4: Don't check for strnlen declaration, done in
87250         strnlen.m4.
87251
87252 2005-08-10  Simon Josefsson  <jas@extundo.com>
87253
87254         * lib/strndup.c: Use strnlen.h.
87255
87256         * lib/strnlen.h: New file.
87257
87258 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87259
87260         * README: Typos.
87261
87262 2005-08-02  Simon Josefsson  <jas@extundo.com>
87263
87264         * modules/readline: New file.
87265
87266 2005-08-02  Simon Josefsson  <jas@extundo.com>
87267
87268         * modules/getdelim: New file.
87269
87270         * modules/getline: Rewrite, don't use getndelim2.
87271
87272 2005-08-02  Simon Josefsson  <jas@extundo.com>
87273
87274         * m4/getline.m4: Separate out getdelim stuff into separate module.
87275
87276         * m4/getdelim.m4: New file.
87277
87278 2005-08-02  Simon Josefsson  <jas@extundo.com>
87279
87280         * lib/getline.h, getline.c: Rewrite.
87281
87282         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87283
87284 2005-07-31  Bruno Haible  <bruno@clisp.org>
87285
87286         * lib/lock.h (gl_lock_initializer): New macro.
87287         (gl_lock_define_initialized): Use it.
87288         (gl_rwlock_initializer): New macro.
87289         (gl_rwlock_define_initialized): Use it.
87290         (gl_recursive_lock_initializer): New macro.
87291         (gl_recursive_lock_define_initialized): Use it.
87292
87293 2005-07-30  Karl Berry  <karl@gnu.org>
87294
87295         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87296         Report from Ben Pfaff, regarding getopt.
87297
87298 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87299
87300         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87301         normal way.
87302         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87303         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87304         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87305         (gl_GETOPT): Use the new macros.  Most of the implementation
87306         is moved to the new macros.  This is for programs like Emacs
87307         that don't want all the functionality of gl_GETOPT.
87308
87309 2005-07-26  Bruno Haible  <bruno@clisp.org>
87310
87311         * m4/lock.m4: Update from GNU gettext.
87312
87313 2005-07-26  Bruno Haible  <bruno@clisp.org>
87314
87315         * lib/lock.h: Update from GNU gettext.
87316         * lib/lock.c: Update from GNU gettext.
87317
87318 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87319
87320         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87321         obsolescent AC_TRY_RUN.  Include the default includes files, for
87322         'exit'.
87323
87324 2005-07-24  Bruno Haible  <bruno@clisp.org>
87325
87326         * modules/visibility: New file.
87327         * MODULES.html.sh (Misc): Add visibility.
87328
87329 2005-07-24  Bruno Haible  <bruno@clisp.org>
87330
87331         * m4/visibility.m4: New file.
87332
87333 2005-07-24  Bruno Haible  <bruno@clisp.org>
87334
87335         * doc/visibility.texi: New file.
87336
87337 2005-07-22  Bruno Haible  <bruno@clisp.org>
87338
87339         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87340         $(ALLOCA_H), redundant through BUILT_SOURCES.
87341         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87342         redundant through BUILT_SOURCES.
87343         * modules/byteswap (Makefile.am): Remove explicit dependency on
87344         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87345         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87346         $(FNMATCH_H), redundant through BUILT_SOURCES.
87347         * modules/getopt (Makefile.am): Remove explicit dependency on
87348         $(GETOPT_H), redundant through BUILT_SOURCES.
87349         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87350         redundant through BUILT_SOURCES.
87351         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87352         redundant through BUILT_SOURCES.
87353         * modules/stdbool (Makefile.am): Remove explicit dependency on
87354         $(STDBOOL_H), redundant through BUILT_SOURCES.
87355         * modules/stdint (Makefile.am): Remove explicit dependency on
87356         $(STDINT_H), redundant through BUILT_SOURCES.
87357         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87358         Remove explicit dependency on $(SYSEXITS_H).
87359         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87360
87361 2005-07-18  Simon Josefsson  <jas@extundo.com>
87362
87363         * lib/check-version.c (check_version): Accept identical versions too.
87364
87365 2005-07-18  Bruno Haible  <bruno@clisp.org>
87366
87367         * modules/lock: New file.
87368         * MODULES.html.sh (Multithreading): New section.
87369
87370 2005-07-18  Bruno Haible  <bruno@clisp.org>
87371
87372         * m4/lock.m4: New file, from GNU gettext.
87373
87374 2005-07-18  Bruno Haible  <bruno@clisp.org>
87375
87376         * lib/lock.h: New file, from GNU gettext.
87377         * lib/lock.c: New file, from GNU gettext.
87378
87379 2005-07-18  Bruno Haible  <bruno@clisp.org>
87380
87381         * lib/lock.h (gl_once_t): New type.
87382         (gl_once_define, gl_once): New macros.
87383         * lib/lock.c (fresh_once): New variable.
87384         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87385         functions.
87386
87387 2005-07-16  Simon Josefsson  <jas@extundo.com>
87388
87389         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87390         workaround, suggested by Bruno.
87391
87392 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87393
87394         * modules/xalloc (Depends-on): Add xalloc-die.
87395         * modules/xvasprintf (Depends-on): Add xalloc-die.
87396
87397 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87398
87399         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87400         with a minor change.
87401
87402 2005-07-15  Bruno Haible  <bruno@clisp.org>
87403
87404         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87405         When using lib/poll.c, define poll as rpl_poll.
87406
87407 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87408
87409         * modules/argp (Depends-on): Remove unlocked-io.
87410
87411 2005-07-14  Derek Price  <derek@ximbiot.com>
87412
87413         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87414         for glob symlink bug.
87415
87416 2005-07-14  Bruno Haible  <bruno@clisp.org>
87417
87418         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87419         Instead, test for *_unlocked function declarations directly.
87420
87421 2005-07-11  Simon Josefsson  <jas@extundo.com>
87422
87423         * modules/size_max: New file.
87424
87425         * modules/xsize: Depend on size_max module for size_max.m4.
87426
87427 2005-07-11  Simon Josefsson  <jas@extundo.com>
87428
87429         * lib/size_max.h: New file.
87430
87431 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87432
87433         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87434         copyright symbol and the year.
87435         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87436         (version_etc_va): Use parameterized copyright notice.
87437         Reword to conform to the current GNU coding standards.
87438
87439 2005-07-11  Karl Berry  <karl@gnu.org>
87440
87441         * doc/gnulib.texi (Quoting): new node.
87442         (Initial import): more info, from Patrice.
87443
87444 2005-07-11  Bruno Haible  <bruno@clisp.org>
87445
87446         * gnulib-tool (func_usage): Document option --avoid.
87447         (Command line options): Handle --avoid.
87448         (func_acceptable): New function.
87449         (func_modules_transitive_closure): Use it.
87450
87451 2005-07-11  Bruno Haible  <bruno@clisp.org>
87452
87453         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87454         Reported by Jim Meyering.
87455
87456 2005-07-10  Bruno Haible  <bruno@clisp.org>
87457
87458         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87459         Needed when size_t is smaller than 'unsigned int'.
87460         Reported by Paul Eggert.
87461
87462 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87463
87464         * modules/argp (Depends-on): Add unlocked-io
87465
87466 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87467
87468         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87469         block of defines.
87470
87471 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87472
87473         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87474         fix now.
87475
87476 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87477         and Paul Eggert  <eggert@cs.ucla.edu>
87478
87479         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87480         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87481
87482 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         * modules/regex (Files): Add lib/regex_internal.c,
87485         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87486         (Depends-on): Add extensions.
87487         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87488
87489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87490
87491         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87492         pathconf.
87493         * m4/same.m4 (gl_SAME): Likewise.
87494         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87495
87496         * m4/regex.m4: Adjust to new libc regex implementation.
87497         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87498         all the .c and .h parts of (the new) regex.
87499         Quote the m4 stuff better.
87500         Check for RE_ICASE bug of old gnulib.
87501         Check for REG_STARTEND of recent libc.
87502         Rename local variables from jm_* to gl_*.
87503         Quote operand of "test -f".
87504         Say "recent enough" version of libc, not "version 2".
87505         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87506         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87507         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87508         Remove check for btowc, isascii.
87509         Require AM_LANGINFO_CODESET.
87510
87511 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87512
87513         * lib/regex.c, regex.h: Sync from libc.
87514         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87515         * lib/regexec.c:
87516         New files, synced from libc, except that regex_internal.h
87517         currently has a small porting fix.
87518
87519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87520
87521         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87522         regex_internal.c, regexec.c.
87523         Add regex_internal.h too, but as a comment, since the libc version
87524         is currently broken in gnulib mode.
87525
87526 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87527
87528         Support programs like Emacs that use gnulib but not gettext.
87529         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87530         * modules/gettext-h: New file.
87531         * modules/gettext (Files): Remove lib/gettext.h.
87532         (Depends-on): Add gettext-h.
87533         (Makefile.am): Remove lib_SOURCES.
87534         * modules/argmatch, modules/c-stack, modules/closeout:
87535         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87536         * modules/execute, modules/file-type, modules/getaddrinfo:
87537         * modules/getopt, modules/human, modules/javacomp:
87538         * modules/javaexec, modules/mkdir-p, modules/obstack:
87539         * modules/openat, modules/pagealign_alloc, modules/pipe:
87540         * modules/quotearg, modules/regex, modules/rpmatch:
87541         * modules/unicodeio, modules/userspec, modules/version-etc:
87542         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87543         * modules/xsetenv:
87544         Depend on gettext-h, not gettext.
87545
87546 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87547
87548         * gnulib-tool (func_import): Add support for 'public domain' license.
87549         * modules/alloca, modules/atexit, modules/memmove:
87550         Now public domain, not GPL.
87551         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87552         * modules/realloc, modules/strerror, modules/strtod:
87553         Now LGPL, not GPL.
87554
87555 2005-07-05  Bruno Haible  <bruno@clisp.org>
87556
87557         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87558         autoconf CVS. Needed for mingw.
87559
87560 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87561
87562         Remove the dependency of the strftime module on the tzset module.
87563         * modules/strftime (Depends-on): Remove dependency on tzset.
87564
87565 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87566
87567         Remove the dependency of the strftime module on the tzset module.
87568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87569         gl_FUNC_TZSET_CLOBBER.
87570
87571 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         Remove the dependency of the strftime module on the tzset module.
87574         * lib/strftime.c (my_strftime)
87575         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87576         Copy the input structure, to work around some of the bug with
87577         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87578         Solaris releases, you should also use the tzset module, but we won't
87579         require it as a dependency any more since we don't want LGPLed code
87580         to depend on GPLed code.
87581
87582 2005-07-02  Jim Meyering  <jim@meyering.net>
87583
87584         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87585         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87586         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87587         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87588
87589 2005-07-02  Jim Meyering  <jim@meyering.net>
87590
87591         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87592
87593 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87594
87595         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87596         declares only 'struct timespec;' (!).
87597
87598 2005-07-01  Jim Meyering  <jim@meyering.net>
87599
87600         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87601         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87602         * lib/save-cwd.c, tempname.c:
87603         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87604         and don't include <sys/file.h>).
87605
87606 2005-06-29  Jim Meyering  <jim@meyering.net>
87607
87608         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87609         type name.  Use the variable name instead.
87610         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87611         Likewise.
87612
87613 2005-06-28  Simon Josefsson  <jas@extundo.com>
87614
87615         * modules/check-version (Files): Add check-version.m4.
87616
87617 2005-06-28  Simon Josefsson  <jas@extundo.com>
87618
87619         * m4/check-version.m4: New file, suggested by Jim Meyering
87620         <jim@meyering.net>.
87621
87622 2005-06-28  Simon Josefsson  <jas@extundo.com>
87623
87624         * lib/check-version.h, lib/check-version.c: New files.
87625
87626 2005-06-28  Simon Josefsson  <jas@extundo.com>
87627
87628         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87629         collision with global variable.  Better indentation.  Don't
87630         increment buffer pointer beyond buffer end.  Based on comments
87631         from Paul Eggert <eggert@cs.ucla.edu>.
87632
87633         * lib/base64.h: Indent.
87634
87635 2005-06-28  Simon Josefsson  <jas@extundo.com>
87636
87637         * doc/gnulib.texi (Library version handling): New section.
87638
87639 2005-06-28  Jim Meyering  <jim@meyering.net>
87640
87641         * check-module (find_included_lib_files): Hard-code another
87642         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87643         but modules/fts-lgpl (correctly) does not list those files.
87644
87645         * modules/canonicalize (Files): Add lib/pathmax.h.
87646
87647 2005-06-25  Simon Josefsson  <jas@extundo.com>
87648
87649         * modules/check-version: New file.
87650
87651 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87652
87653         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87654         initializer of struct addrinfo, as an indication that we don't
87655         care how many members the structure has.
87656
87657 2005-06-24  Derek Price  <derek@ximbiot.com>
87658         and Bruno Haible  <bruno@clisp.org>
87659
87660         Remove stat module & update lstat.
87661         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87663         * m4/stat.m4: Remove this file.
87664
87665 2005-06-24  Derek Price  <derek@ximbiot.com>
87666         and Bruno Haible  <bruno@clisp.org>
87667
87668         Remove stat module & update lstat.
87669         * lib/stat.c: Remove this file...
87670         (slash_aware_lstat): ...moving this content and its support...
87671         * lib/lstat.c (rpl_lstat): ...into here.
87672         * lib/lstat.h: New file.
87673
87674 2005-06-24  Derek Price  <derek@ximbiot.com>
87675         and Bruno Haible  <bruno@clisp.org>
87676
87677         Remove stat module & update lstat.
87678         * config/srclist.txt (libc sources): Remove stat.
87679
87680 2005-06-24  Derek Price  <derek@ximbiot.com>
87681         and Bruno Haible  <bruno@clisp.org>
87682
87683         Remove stat module & update lstat.
87684         * MODULES.html.sh (stat): Remove.
87685         * MODULES.html: Regenerated.
87686         * modules/lstat (Description): Correct function name.
87687         (Files): Add "lstat.h".
87688         (Depends-on): Remove stat, add xalloc, stat-macros.
87689         * modules/stat: Remove this file.
87690         (Include): Add "lstat.h", remove <sys/stat.h>.
87691
87692 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87693
87694         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87695         (ranged_convert): Don't save conversion in a temporary struct.
87696         This causes a warning with GCC 4.0.0, and anyway in the typical
87697         case it's not worth the extra 100 bytes or so of code.
87698         (ranged_convert, __mktime_internal): When calling a function via a
87699         pointer P, use P () rather than (*P) (), as we now assume C89 or
87700         better.
87701
87702 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87703
87704         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87705         "who -r" failed to give output.  Problem reported by Tim Waugh.
87706
87707         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87708         (xcalloc): Use it to avoid needless tests.
87709         Problem reported by Jim Meyering.
87710
87711 2005-06-20  Derek Price  <derek@ximbiot.com>
87712
87713         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87714         unnecessary for Autoconfs > 2.59c.
87715
87716 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87717
87718         * lib/argp.h (__option_is_short): Check upper limit of
87719         __key. Isprint() requires its argument to have the value
87720         of an unsigned char or EOF.
87721
87722 2005-06-16  Jim Meyering  <jim@meyering.net>
87723
87724         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87725         when either N or S is zero.
87726
87727 2005-06-16  Derek Price  <derek@ximbiot.com>
87728
87729         * m4/bison.m4: Declare YACC & YFLAGS precious.
87730
87731 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87732
87733         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87734         multibyte string or pattern, fall back on unibyte matching.
87735         Problem reported by James Youngman.
87736
87737 2005-06-08  Bruno Haible  <bruno@clisp.org>
87738
87739         * modules/csharpcomp: New file.
87740         * MODULES.html.sh (C#): Add csharpcomp.
87741
87742 2005-06-08  Bruno Haible  <bruno@clisp.org>
87743
87744         * m4/csharpcomp.m4: New file, from GNU gettext.
87745
87746 2005-06-08  Bruno Haible  <bruno@clisp.org>
87747
87748         * lib/csharpcomp.h: New file, from GNU gettext.
87749         * lib/csharpcomp.c: New file, from GNU gettext.
87750         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87751
87752 2005-06-08  Bruno Haible  <bruno@clisp.org>
87753
87754         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87755         warning on mingw.
87756
87757 2005-06-07  Derek Price  <derek@ximbiot.com>
87758
87759         Sync from CVS.
87760         * lib/glob_.h: Indent nested #ifdef.
87761
87762 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87763
87764         Sync from coreutils.
87765         Use "file name" when talking about file names, instead of "filename"
87766         or "path", as per the GNU coding standards.
87767         * lib/mkdir-p.c: Renamed from makepath.c.
87768         (make_dir_parents): Renamed from make_path.  All callers changed.
87769         * lib/mkdir-p.h: Likewise.  All includers changed.
87770         * lib/filenamecat.c: Renamed from path-concat.c.
87771         (file_name_concat): Renamed from path_concat.  All callers changed.
87772         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87773         * lib/filenamecat.h: Likewise.  All includers changed.
87774         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87775         in comments or local variable names.
87776         * lib/basename.c: Likewise.
87777         * lib/canonicalize.c, canonicalize.h: Likewise.
87778         * lib/dirname.c, dirname.h: Likewise.
87779         * lib/euidaccess.c: Likewise.
87780         * lib/exclude.c: Likewise
87781         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87782         * lib/fsusage.c, fsuage.h: Likewise.
87783         * lib/fts.c, fts_.h: Likewise.
87784         * lib/getcwd.c: Likewise.
87785         * lib/getloadavg.c: Likewise.
87786         * lib/mkstemp.c: Likewise.
87787         * lib/mountlist.c, mountlist.h: Likewise.
87788         * lib/openat.c, openat.h: Likewise.
87789         * lib/readlink-stub.c: Likewise.
87790         * lib/readutmp.c, readutmp.h: Likewise.
87791         * lib/rename.c: Likewise.
87792         * lib/rmdir.c: Likewise.
87793         * lib/same.c: Likewise.
87794         * lib/savedir.c: Likewise.
87795         * lib/stripslash.c: Likewise.
87796         * lib/tempname.c: Likewise.
87797         * lib/xreadlink.c: Likewise.
87798         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87799         All uses changed.
87800         * lib/exclude.h: Likewise.
87801
87802         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87803         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87804         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87805         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87806         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87807         files have been getting away with it for years (MORE/BSD 4.3
87808         is extinct now).
87809         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87810         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87811
87812         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87813         Define to 256, not 255, as per modern POSIX.
87814
87815 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87816
87817         Sync from coreutils.
87818         Use "file name" when talking about file names, instead of "filename"
87819         or "path", as per the GNU coding standards.
87820         * MODULES.html.sh: mkdir-p renamed from makepath.
87821         filenamecat renamed from path-concat.
87822         * modules/filenamecat: Renamed from modules/path-concat.
87823         (Files): filenamecat.h and filenamecat.c renamed from
87824         path-concat.h and path-concat.c.
87825         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87826         (Include): filenamecat.h, not path-concat.h.
87827         * modules/mkdir-p: Renamed from modules/makepath.
87828         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87829         makepath.c.
87830         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87831         (Include): mkdir-p.h, not makepath.h.
87832
87833 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         Sync from coreutils.
87836         * m4/mkdir-p.m4: Renamed from makepath.m4.
87837         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87838         Rename files from makepath.c to mkdir-p.c, and from
87839         makepath.h to mkdir-p.h.
87840         * m4/filenamecat.m4: Renamed from path-concat.m4.
87841         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87842         Rename files from path-concat.c to filenamecat.c,
87843         and from path-concat.h to filenamecat.h.
87844         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87845         "file name" in local variables or comments.
87846         * m4/rename.m4: Likewise.
87847
87848 2005-06-01  Bruno Haible  <bruno@clisp.org>
87849
87850         * modules/csharpexec: New file.
87851         * MODULES.html.sh (C#): New section.
87852
87853 2005-06-01  Bruno Haible  <bruno@clisp.org>
87854
87855         * m4/csharp.m4: New file, from GNU gettext.
87856         * m4/csharpexec.m4: New file, from GNU gettext.
87857
87858 2005-06-01  Bruno Haible  <bruno@clisp.org>
87859
87860         * lib/csharpexec.h: New file, from GNU gettext.
87861         * lib/csharpexec.c: New file, from GNU gettext.
87862         * lib/csharpexec.sh.in: New file, from GNU gettext.
87863
87864 2005-05-31  Derek Price  <derek@ximbiot.com>
87865             Paul Eggert  <eggert@cs.ucla.edu>
87866
87867         Sync from cvs.
87868         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87869
87870 2005-05-31  Derek Price  <derek@ximbiot.com>
87871             Paul Eggert  <eggert@cs.ucla.edu>
87872
87873         Sync from cvs.
87874         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87875
87876 2005-05-29  Derek Price  <derek@ximbiot.com>
87877
87878         * config/srclist.txt (glob_.h, glob.c): Add these files.
87879
87880 2005-05-29  Derek Price  <derek@ximbiot.com>
87881
87882         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87883         * modules/glob: New file.
87884         * modules/getlogin_r: Add link to POSIX spec in description.
87885
87886 2005-05-29  Derek Price  <derek@ximbiot.com>
87887             Paul Eggert  <eggert@cs.ucla.edu>
87888
87889         * m4/glob.m4: New file.
87890
87891 2005-05-29  Derek Price  <derek@ximbiot.com>
87892             Paul Eggert  <eggert@cs.ucla.edu>
87893
87894         * lib/glob_.h, lib/glob.c: New files.
87895
87896 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87897
87898         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87899         * modules/fts-lgpl (Depends-on): Remove gettext.
87900
87901 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87902
87903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87904         and don't require gt_INTTYPES_PRI.
87905
87906 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87909
87910         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87911         the configuration hassle isn't worth it.
87912         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87913         (LONGEST_MODIFIER, PRIuMAX): Remove.
87914
87915 2005-05-27  Bruno Haible  <bruno@clisp.org>
87916
87917         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87918
87919 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87920
87921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87922         _POSIX_PTHREAD_SEMANTICS for Solaris.
87923
87924 2005-05-25  Derek Price  <derek@ximbiot.com>
87925
87926         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87927
87928 2005-05-25  Derek Price  <derek@ximbiot.com>
87929             Paul Eggert  <eggert@cs.ucla.edu>
87930
87931         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87932         * lib/getlogin_r.c, getlogin_r.h: New files.
87933
87934 2005-05-25  Bruno Haible  <bruno@clisp.org>
87935             Derek Price  <derek@ximbiot.com>
87936
87937         * lib/getlogin_r.h: Simplify API documentation.
87938
87939 2005-05-23  Derek Price  <derek@ximbiot.com>
87940
87941         * modules/minmax (Files): Add m4/minmax.m4.
87942         (configure.ac): Add gl_MINMAX.
87943
87944 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87945
87946         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87947         so that unistd-safer.h (GPL'ed code) need not be included.
87948
87949 2005-05-22  Bruno Haible  <bruno@clisp.org>
87950
87951         * m4/minmax.m4: New file.
87952         Based on a patch by Derek Price <derek@ximbiot.com>.
87953
87954 2005-05-22  Bruno Haible  <bruno@clisp.org>
87955
87956         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87957         (INT64_MIN): Fix definition.
87958         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87959
87960         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87961         NEED_SIGNED_INT_TYPES.
87962
87963         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87964         HAVE_SYSTEM_INTTYPES.
87965
87966 2005-05-22  Bruno Haible  <bruno@clisp.org>
87967
87968         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87969         Also include <sys/param.h> if it defines MIN, MAX.
87970         Based on a patch by Derek Price <derek@ximbiot.com>.
87971
87972 2005-05-21  Jim Meyering  <jim@meyering.net>
87973
87974         * modules/fts (Files): Add m4/inttypes-pri.m4.
87975         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87976
87977 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87978
87979         New fts module.
87980         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87981         (setup_dir, free_dir): New functions.
87982         (enter_dir, leave_dir): Define trivial
87983         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87984         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87985         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87986         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87987         Move to fts-cycle.c.
87988         (fts_open): Use setup_dir.
87989         (fts_close): Use free_dir.
87990         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87991         This adds a label and some gotos, but the alternatives were messier.
87992         Check for memory allocation failure when entering a dir.
87993         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87994         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87995         (FTS): New member fts_cycle, that is a union that contains the
87996         old active_dir_ht and cycle_state.  All uses changed to mention
87997         fts_cycle.ht and fts_cycle.state.
87998         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87999         fts.c, with the following changes:
88000         (setup_dir, free_dir): New functions.
88001         (enter_dir): Now returns bool.  Return true if successful, false
88002         if memory exhausted.  All callers changed.
88003         Do not bother partly cleaning up on
88004         memory allocation failure; that is free_dir's job.
88005         However, free ad if hash_insert fails, to avoid memory leak.
88006         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88007         fts->fts_options to see which union member to use.
88008
88009 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88010
88011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88012         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88013
88014 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88015
88016         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88017
88018 2005-05-20  Jim Meyering  <jim@meyering.net>
88019
88020         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88021         Now a macro, to pacify GCC.
88022
88023 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88024
88025         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88026         of -1.
88027
88028 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88029
88030         * lib/chown.c (rpl_chown): Return -1 on failure.
88031
88032 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88033
88034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88035         Don't check for stddef.h.
88036         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88037         don't use its results.
88038         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88039         since we include them unconditionally.  Don't require
88040         AM_STDBOOL_H, since stdbool is a prerequisite.
88041         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88042         since we assume C89 or better.
88043         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88044         as we don't use their results.
88045         Don't check for fchdir, memmove, memset, strrchr, as we use
88046         them unconditionally.
88047         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88048         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88049
88050 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88051
88052         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88053         Include <stddef.h> unconditionally, since we assume C89 now.
88054         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88055         * lib/fts.c: Include fts_.h first, to check interface.
88056         Do not include intprops.h; no longer needed.
88057         Include cycle-check.h and hash.h, since fts_.h no longer does.
88058         Remove unnecessary casts of closedir to void.
88059         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88060         decide whether to decrement nlinks.
88061         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88062         (FTS): Use struct hash_table * instead of Hash_table, so that
88063         we no longer need to include hash.h here.
88064
88065 2005-05-18  Jim Meyering  <jim@meyering.net>
88066
88067         * modules/dirfd (License): Change to LGPL.  Most of the code
88068         is already in the public domain.
88069
88070 2005-05-18  Jim Meyering  <jim@meyering.net>
88071
88072         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88073         Reported by Yoann Vandoorselaere.
88074
88075 2005-05-17  Jim Meyering  <jim@meyering.net>
88076
88077         * m4/fts.m4: New file, from coreutils.
88078
88079 2005-05-17  Jim Meyering  <jim@meyering.net>
88080
88081         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88082
88083 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88084
88085         Sync from coreutils.
88086         * m4/unlinkdir.m4: New file.
88087
88088 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         Sync from coreutils.
88091         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88092         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88093         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88094         White space changes only.
88095         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88096         special.
88097         * lib/yesno.c: Include getline.h, not ctype.h.
88098         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88099         Use getline to remove arbitrary restriction on response length.
88100
88101 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88102
88103         * config/srclist-update: Spell out "Street" in FSF postal
88104         mail address; this is the style the FSF seems to prefer.
88105
88106         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88107         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88108         this updates FSF postal mail address.
88109
88110         Sync from coreutils.
88111         * modules/unlinkdir: New file.
88112         * modules/yesno (Depends-on): Add getline.
88113         * MODULES.html.sh (File system functions): Add unlinkdir.
88114
88115 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88116
88117         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88118         lib/strsep.h:
88119         Change the initial comment to refer to GPL, not LGPL.
88120         gnulib-tool will change it to LGPL as needed.
88121
88122         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88123         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88124         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88125         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88126         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88127         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88128         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88129         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88130         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88131         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88132         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88133         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88134         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88135         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88136         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88137         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88138         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88139         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88140         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88141         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88142         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88143         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88144         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88145         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88146         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88147         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88148         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88149         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88150         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88151         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88152         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88153         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88154         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88155         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88156         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88157         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88158         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88159         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88160         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88161         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88162         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88163         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88164         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88165         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88166         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88167         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88168         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88169         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88170         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88171         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88172         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88173         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88174         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88175         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88176         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88177         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88178         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88179         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88180         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88181         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88182         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88183         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88184         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88185         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88186         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88187         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88188         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88189         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88190         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88191         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88192         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88193         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88194         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88195         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88196         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88197         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88198         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88199         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88200         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88201         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88202         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88203         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88204         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88205         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88206         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88207         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88208         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88209         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88210         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88211         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88212         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88213         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88214         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88215         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88216         lib/yesno.c, lib/yesno.h:
88217         Update FSF postal mail address.
88218
88219 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88220
88221         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88222         tests/test-memmem.c, tests/test-stpncpy.c:
88223         Update FSF postal mail address.
88224
88225 2005-05-13  Bruno Haible  <bruno@clisp.org>
88226
88227         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88228         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88229         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88230         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88231         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88232         Add support for 64-bit integers in the MSVC compiler.
88233
88234 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88235
88236         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88237
88238 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88239
88240         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88241
88242 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88243
88244         * doc/getdate.texi (General date syntax): Don't say that date
88245         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88246         Problem reported by Nic Ferrier.
88247
88248 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88249
88250         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88251         specified in ai_socktype. Fix invalid ai_protocol
88252         check. ai_protocol is usually set to 0 or depending on
88253         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88254         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88255         ai_socktype / ai_protocol in the returned addrinfo structure.
88256
88257 2005-05-10  Simon Josefsson  <jas@extundo.com>
88258
88259         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88260         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88261
88262 2005-05-10  Karl Berry  <karl@gnu.org>
88263
88264         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88265         (from http://www.gnu.org/licenses).
88266         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88267         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88268         fdl.texi suffices.
88269
88270 2005-05-10  Karl Berry  <karl@gnu.org>
88271
88272         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88273         (COPYING.DOC): remove.
88274
88275         * config/srclist-update: new FSF address.
88276
88277 2005-05-10  Derek Price  <derek@ximbiot.com>
88278
88279         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88280         possible.
88281
88282 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88283             Bruno Haible  <bruno@clisp.org>
88284
88285         * modules/inet_ntop: New file.
88286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88287         inet_ntop.
88288
88289 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88290             Bruno Haible  <bruno@clisp.org>
88291
88292         * m4/inet_ntop.m4: New file.
88293
88294 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88295             Bruno Haible  <bruno@clisp.org>
88296
88297         * lib/inet_ntop.h: New file.
88298         * lib/inet_ntop.c: New file, from glibc with modifications.
88299
88300 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88301
88302         * modules/time_r (License): Change to LGPL.
88303         * modules/extensions (License): Change to LGPL.  Actually,
88304         the license is more permissive than that, but currently gnulib-tool
88305         doesn't know how to handle more-permissive licenses.
88306
88307         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88308         Problem reported by Dave Love.
88309
88310 2005-05-08  Jim Meyering  <jim@meyering.net>
88311
88312         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88313         blank.
88314
88315 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88316
88317         * modules/argmatch (Depends-on): Add stdbool.
88318         * modules/backupfile (Depends-on): Likewise.
88319         * modules/chdir-long (Depends-on): Likewise.
88320         * modules/closeout (Depends-on): Likewise.
88321         * modules/cycle-check (Depends-on): Likewise.
88322         * modules/dirname (Depends-on): Likewise.
88323         * modules/fnmatch (Depends-on): Likewise.
88324         * modules/fsusage (Depends-on): Likewise.
88325         * modules/fwriteerror (Depends-on): Likewise.
88326         * modules/getcwd (Depends-on): Likewise.
88327         * modules/getloadavg (Depends-on): Likewise.
88328         * modules/hard-locale (Depends-on): Likewise.
88329         * modules/makepath (Depends-on): Likewise.
88330         * modules/mountlist (Depends-on): Likewise.
88331         * modules/nanosleep (Depends-on): Likewise.
88332         * modules/posixtm (Depends-on): Likewise.
88333         * modules/quotearg (Depends-on): Likewise.
88334         * modules/readtokens (Depends-on): Likewise.
88335         * modules/readtokens0 (Depends-on): Likewise.
88336         * modules/readutmp (Depends-on): Likewise.
88337         * modules/save-cwd (Depends-on): Likewise.
88338         * modules/strftime (Depends-on): Likewise.
88339         * modules/userspec (Depends-on): Likewise.
88340         * modules/utimecmp (Depends-on): Likewise.
88341         * modules/xgetcwd (Depends-on): Likewise.
88342         * modules/xnanosleep (Depends-on): Likewise.
88343         * modules/xstrtod (Depends-on): Likewise.
88344         * modules/yesno (Depends-on): Likewise.
88345
88346 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88349         needless checks.
88350
88351 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88352
88353         Merge from coreutils.  Among other things,
88354         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88355         * lib/fd-safer.c: New file.
88356         * lib/fcntl-safer.h, open-safer.c: Remove.
88357         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88358         * lib/dup-safer.c: Include unistd-safer.h first.
88359         Don't include errno.h.
88360         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88361         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88362         * lib/file-type.c: Rely on file-type.h change.
88363         * lib/getloadavg.c: Include unistd-safer.h.
88364         (getloadavg): Use safer open.
88365         * lib/getusershell.c: Include "stdio-safer.h".
88366         (getusershell): Use safer fopen.
88367         * lib/long-options.c (long_options): Use NULL rather than 0.
88368         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88369         'free'.
88370         * lib/modechange.c: Likewise.
88371         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88372         (MODE_DONE): New constant.
88373         (struct mode_change): Remove 'next' member.
88374         (make_node_op_equals): New function; like the old one of the
88375         same name, except it allocates an array.
88376         (mode_compile, mode_create_from_ref): Use it.
88377         (mode_compile): Allocate result as an array, not a linked list.
88378         Parse octal string ourself, so that we catch mistakes like "+0".
88379         (mode_adjust): Arg is an array, not a linked list.
88380         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88381         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88382         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88383         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88384         Remove.  This is now stat-macros.h's job.
88385         (talloc): Remove.  All callers replaced by xalloc, so that
88386         our invokers don't have to worry about reporting memory failures.
88387         (make_node_op_equals): Remove.
88388         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88389         New constants.
88390         (struct mode_change): Moved here from modechange.h.
88391         (mode_append_entry): Remove.
88392         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88393         apps to have incorrect behavior.  Use simpler algorithm for head
88394         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88395         Detect more invalid usages rather than having somewhat-random behavior.
88396         Don't insert an "a=" action, as that leads to incorrect behavior.
88397         (mode_compile, mode_create_from_ref): Return NULL on error instead
88398         of an enum, since now there's only one way to have an error.  All
88399         callers changed.
88400         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88401         at the correct time.  Simplify calculation of "+u" and its ilk.
88402         Don't mishandle "+X".
88403         (mode_free): Remove "register" and localize decls.
88404         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88405         (struct mode_change): Move to modechange.c; callers don't
88406         need to see this stuff.
88407         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88408         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88409         (mode_change, mode_adjust): Reflect the new signatures noted above.
88410         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88411         that might redefine system include files.
88412         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88413         (my_usleep): Use NULL rather than (void *) 0.
88414         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88415         Use siginterrupt to specify that system calls should be interrupted.
88416         (rpl_nanosleep): Move initialization of suspended closer to call of
88417         my_usleep.
88418         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88419         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88420         (desirable_utmp_entry): New function.
88421         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88422         using x2nrealloc, to simplify logic.
88423         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88424         size calculation.  Do not assume utmp file is a regular file.
88425         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88426         (READ_UTMP_CHECK_PIDS): New constant.
88427         * lib/save-cwd.c: Include unistd-safer.h.
88428         (save_cwd): Use fd_safer.
88429         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88430         [!_LIBC] Include "stat-macros.h" instead.
88431         * lib/unistd-safer.h (fd_safer): New decl.
88432
88433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * modules/getloadavg (Depends-on): Add unistd-safer.
88436         * modules/getusershell (Depends-on): Add stdio-safer.
88437         * modules/lstat (Depends-on): Remove xalloc.
88438         * modules/mkstemp (Depends-on): Add stat-macros.
88439         * modules/modechange (Depends-on): Remove xstrtol.
88440         Add stat-macros, xalloc.
88441         * modules/save-cwd (Depends-on): Add unistd-safer.
88442         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88443         * modules/unistd-safer (Files): Add lib/fd-safer.c
88444         (Makefile.am): Remove lib_SOURCES.
88445
88446         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88447         Remove fcntl-safer; unistd-safer supersedes it.
88448
88449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88450
88451         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88452         AC_HEADER_STAT.
88453         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88454         (gl_PREREQ_CHOWN): Remove.
88455         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88456         it.  Don't require AC_HEADER_STAT.
88457         (gl_PREREQ_LSTAT): Remove.
88458         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88459         Don't require AC_HEADER_STAT.
88460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88461         (gl_PREREQ_RMDIR): Remove.
88462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88463         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88464         the stat-macros module a prerequisite.
88465         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88466         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88467         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88468         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88469         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88470         variable names.
88471         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88472         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88473         variable prefixes.
88474         * m4/fcntl-safer.m4: Remove.
88475         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88477         Invoke gl_PREREQ_FD_SAFER.
88478         (gl_PREREQ_FD_SAFER): New macro.
88479         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88480         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88481         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88482         Remove duplicate call to AC_LIBOBJ(readutmp).
88483         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88484
88485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88486         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88487
88488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88489
88490         * MODULES.html.sh (Misc): Add byteswap.
88491
88492 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88493
88494         * modules/getcwd (Depends-on): Add extensions.
88495         * modules/openat (Depends-on): Likewise.
88496
88497 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88498
88499         * modules/byteswap: New file.
88500
88501 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88502
88503         * m4/byteswap.m4: New file.
88504
88505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88506
88507         * lib/byteswap_.h: New file.
88508
88509 2005-04-25  Karl Berry  <karl@gnu.org>
88510
88511         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88512
88513 2005-04-25  Albert Chin  <china@thewrittenword.com>
88514
88515         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88516         Toolkit C bug.
88517
88518 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88519
88520         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88521         (func_ln_if_changed): Remove forcibly for no error message
88522         in case file does not exist.
88523
88524 2005-04-19  Simon Josefsson  <jas@extundo.com>
88525
88526         * gnulib-tool (Options): Make --symlink mean --symbolic.
88527
88528 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88529
88530         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88531
88532 2005-04-16  Simon Josefsson  <jas@extundo.com>
88533
88534         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88535
88536 2005-04-15  Simon Josefsson  <jas@extundo.com>
88537
88538         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88539
88540 2005-04-15  Simon Josefsson  <jas@extundo.com>
88541
88542         * gnulib-tool: Rename --symlink to --symbolic.
88543
88544 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88545
88546         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88547         symbolic links to files instead of copying/moving.  Add --aux-dir,
88548         specifying directory relative --dir where auxiliary build tools
88549         are placed.
88550
88551 2005-04-14  Bruno Haible  <bruno@clisp.org>
88552
88553         * modules/allocsa (License): Change to LGPL.
88554         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88555
88556 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88559         that "UTC +1 second" continues to work.  Problem reported
88560         by Dmitry V. Levin.
88561         (relunit_snumber): New rule.
88562         (relunit): Use it.
88563
88564 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88565
88566         * lib/getdate.y (universal_time_zone_table): New constant.
88567         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88568         universal_time_zone_table.
88569         (lookup_zone): Prefer universal_time_zone_table to
88570         local_time_zone_table, so that "GMT" time stamps are allowed in
88571         London during the summer.  Problem reported by Ian Abbott.
88572
88573 2005-04-12  Jim Meyering  <jim@meyering.net>
88574
88575         * lib/human.c (humblock): Set *options even when returning due to
88576         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88577         warning from gcc-4.
88578
88579 2005-04-09  Jim Meyering  <jim@meyering.net>
88580
88581         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88582         -Wuninitialized: initialize tm0.tm_year.
88583
88584 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88585
88586         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88587         count, since there's no maximum.  All uses changed.
88588         Add member dsts_seen.
88589         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88590         not being INT_MAX.
88591         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88592         Use pc_rels_seen to decide whether a date is absolute.
88593
88594         * lib/getdate.y (number): Don't overwrite year.
88595         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88596         check.
88597
88598 2005-04-02  Simon Josefsson  <jas@extundo.com>
88599
88600         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88601         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88602
88603 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88604
88605         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88606         where no absolute path name can be longer than PATH_MAX.
88607
88608 2005-03-27  Jim Meyering  <jim@meyering.net>
88609
88610         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88611
88612 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88613
88614         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88615         "one's complement" -> "ones' complement" in comment, as per Knuth.
88616         "value of type" -> "type or expression" in comment.
88617         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88618
88619 2005-03-26  Jim Meyering  <jim@meyering.net>
88620
88621         Comment nits.
88622         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88623         Correct typos: s/or/of/.
88624
88625 2005-03-26  Jim Meyering  <jim@meyering.net>
88626
88627         * modules/check-include-files: Move to ../ and rename to...
88628         * check-module: ...this.
88629
88630 2005-03-25  Jim Meyering  <jim@meyering.net>
88631
88632         * modules/xvasprintf (Files): Add xalloc.h.
88633
88634 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88635
88636         * modules/gettext (Files): config/config.rpath ->
88637         build-aux/config.rpath
88638         * modules/iconv (Files): Likewise.
88639         Problem reported by Oskar Liljeblad.
88640
88641 2005-03-23  Jim Meyering  <jim@meyering.net>
88642
88643         * modules/check-include-files: New script to check for
88644         missing dependencies, multiple includes, etc.
88645
88646         * modules/c-strtold (Depends-on): Add xalloc.
88647         * modules/c-strtod (Depends-on): Add xalloc.
88648         * modules/hash (Depends-on): Add xalloc.
88649         (Files): Remove lib/xalloc.h.
88650
88651         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88652         * modules/userspec (Files): Add lib/inttostr.h.
88653
88654 2005-03-23  Jim Meyering  <jim@meyering.net>
88655
88656         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88657
88658 2005-03-22  Jim Meyering  <jim@meyering.net>
88659
88660         * modules/stat-macros: New module.
88661         * modules/canonicalize, modules/euidaccess, modules/file-type,
88662         * modules/filemode, modules/lchown, modules/makepath,
88663         * modules/rmdir, modules/stat: Depend on new stat-macros module
88664         rather than listing lib/stat-macros.h manually.
88665         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88666
88667 2005-03-22  Jim Meyering  <jim@meyering.net>
88668
88669         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88670
88671 2005-03-22  Bruno Haible  <bruno@clisp.org>
88672
88673         * config/srclist.txt: Replace target directory 'config' with
88674         'build-aux'.
88675         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88676         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88677         ../build-aux/.
88678
88679 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88680
88681         * modules/chdir-long (Depends-on): Add mempcpy.
88682
88683         * modules/acl, modules/backupfile, modules/c-strtod,
88684         modules/c-strtold, modules/canon-host, modules/canonicalize,
88685         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88686         modules/exclude, modules/exitfail, modules/file-type,
88687         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88688         modules/getdate, modules/getline, modules/getpagesize,
88689         modules/getpass, modules/getugroups, modules/group-member,
88690         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88691         modules/inttostr, modules/long-options, modules/makepath,
88692         modules/md5, modules/memcasecmp, modules/memcoll,
88693         modules/modechange, modules/mountlist, modules/path-concat,
88694         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88695         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88696         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88697         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88698         modules/strftime, modules/strndup, modules/strverscmp,
88699         modules/timespec, modules/unlocked-io, modules/userspec,
88700         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88701         modules/yesno:
88702         Remove lib_SOURCES line from Makefile.am section, as this is now
88703         done automatically by the corresponding Autoconf macro.
88704
88705 2005-03-21  Jim Meyering  <jim@meyering.net>
88706
88707         Changes imported from coreutils.
88708
88709         * lib/cycle-check.c: Don't include xalloc.h.
88710
88711         * lib/path-concat.c: Don't include assert.h.
88712         (path_concat): Remove assertion that would have triggered
88713         for ABASE starting with more than one slash.
88714         Reported by Andreas Schwab.
88715
88716         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88717         properly when ABASE is an absolute file name.
88718         Correct the description of this function.
88719         Include <assert.h>.
88720         Add an assertion and a test driver.
88721         This fixes a bug introduced on 2004-07-02.
88722         Andreas Schwab reported the resulting failure of cp --parents:
88723         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88724
88725 2005-03-21  Jim Meyering  <jim@meyering.net>
88726
88727         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88729
88730 2005-03-21  Jim Meyering  <jim@meyering.net>
88731         and  Paul Eggert  <eggert@cs.ucla.edu>
88732
88733         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88734         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88735         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88736         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88737         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88738         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88739         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88740         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88741         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88742         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88743         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88744         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88745         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88746         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88747         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88748         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88749         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88750         for these modules.
88751
88752 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88753
88754         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88755         (which shouldn't happen), generate nothing instead of returning 0
88756         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88757
88758 2005-03-16  Bruno Haible  <bruno@clisp.org>
88759
88760         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88761         HAVE_LONGLONG_64BIT.
88762
88763 2005-03-16  Bruno Haible  <bruno@clisp.org>
88764
88765         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88766         HAVE_LONGLONG_64BIT.
88767
88768 2005-03-16  Bruno Haible  <bruno@clisp.org>
88769
88770         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88771         HAVE_LONGLONG_64BIT.
88772
88773 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88776         reliably distinguish strftime failure from empty output on POSIX
88777         hosts.
88778
88779 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88780
88781         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88782         (iconv_string): Don't guess a size-zero buffer, as that might cause
88783         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88784         result would be 'too large', where 'too large' is (heuristically)
88785         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88786         overflow concerns.  This will prevent some unwanted malloc failures
88787         when the inputs are very large.
88788
88789 2005-03-15  Karl Berry  <karl@gnu.org>
88790
88791         * config/srclist.txt (config.rpath): from gettext.
88792         * config/config.rpath: update.
88793
88794 2005-03-15  Bruno Haible  <bruno@clisp.org>
88795
88796         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88797         to 'negate'.
88798
88799         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88800         variable.
88801
88802         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88803         results.
88804
88805 2005-03-14  Simon Josefsson  <jas@extundo.com>
88806
88807         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88808         <fx@gnu.org>.
88809
88810 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88811
88812         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88813         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88814         intprops.h.
88815         * lib/strtol.c: Likewise.
88816
88817 2005-03-14  Jim Meyering  <jim@meyering.net>
88818
88819         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88820         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88821         to be nonzero so that we (and caller) can detect the difference
88822         between a valid zero-length expansion and an error return, even
88823         when the underlying strftime fails before writing anything into
88824         that location.
88825
88826 2005-03-14  Bruno Haible  <bruno@clisp.org>
88827
88828         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88829         Update from GNU gettext 0.14.3.
88830
88831 2005-03-10  Jim Meyering  <jim@meyering.net>
88832
88833         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88834
88835 2005-03-10  Jim Meyering  <jim@meyering.net>
88836
88837         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88838         so that this module works on systems without fchdir.
88839
88840 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88841
88842         Factor int-properties macros into a single file, except for
88843         glibc-related files.
88844         * lib/intprops.h: New file.
88845         * lib/getloadavg.c: Include it instead of limits.h.
88846         (INT_STRLEN_BOUND): Remove.
88847         * lib/human.c: Include intprops.h.
88848         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88849         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88850         302/1000.
88851         * lib/inttostr.h: Include intprops.h instead of limits.h.
88852         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88853         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88854         for consistency with intprops.h.
88855         (time_t_is_integer, twos_complement_arithmetic): Use them.
88856         * lib/sig2str.h: Include <signal.h>, intprops.h.
88857         (INT_STRLEN_BOUND): Remove.
88858         * lib/strftime.c (TYPE_SIGNED): Remove.
88859         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88860         * lib/strtol.c: Adjust comments to match intprops.h.
88861         * lib/userspec.c: Include intprops.h.
88862         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88863         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88864         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88865         instead of rolling our own expressions.
88866         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88867
88868         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88869         instead of int.
88870         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88871         the right thing even if adding 1900 would overflow.  Similarly
88872         for tm_mon + 1 and tm_yday + 1.
88873         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88874         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88875         (DO_SIGNED_NUMBER): New macro.
88876         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88877
88878 2005-03-07  Bruno Haible  <bruno@clisp.org>
88879
88880         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88881
88882 2005-03-07  Bruno Haible  <bruno@clisp.org>
88883
88884         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88885
88886 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88887
88888         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88889         (func_import): Only replace files via --import when they have actually
88890         changed.
88891
88892 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88893
88894         * m4/mmap-anon.m4: New file.
88895         * m4/pagealign_alloc.m4: New file.
88896
88897 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88898             Bruno Haible  <bruno@clisp.org>
88899
88900         * modules/pagealign_alloc: New file.
88901         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88902
88903 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88904             Bruno Haible  <bruno@clisp.org>
88905
88906         * lib/pagealign_alloc.h: New file.
88907         * lib/pagealign_alloc.c: New file.
88908
88909 2005-03-03  Bruno Haible  <bruno@clisp.org>
88910
88911         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88912         Use an all-permissive copyright notice, recommended by RMS.
88913
88914 2005-03-02  Bruno Haible  <bruno@clisp.org>
88915
88916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88917         of AIX, the replacement has to be done only after <string.h> is
88918         included, therefore not in config.h. stpncpy.h does the replacement,
88919         and stpncpy.c uses it.
88920
88921 2005-03-02  Bruno Haible  <bruno@clisp.org>
88922
88923         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88924         stpncpy.c uses it.
88925
88926 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88927
88928         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88929         The workaround isn't strictly needed for POSIX conformance, and
88930         it's too much of a pain to configure and maintain.  We'll ask
88931         people to fix their kernels instead.
88932         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88933         (NANOSLEEP_BUG_WORKAROUND): Remove.
88934         (xnanosleep): Remove the workaround.
88935
88936 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88937
88938         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88939         Reported by Derek Price.
88940         (Include): Add "timespec.h".
88941
88942         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88943
88944 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88945
88946         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88947         to detect nanosleep bug.
88948
88949 2005-03-01  Bruno Haible  <bruno@clisp.org>
88950
88951         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88952
88953 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88954
88955         * modules/gethrxtime: New file.
88956         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88957         (Depends-on): Add gethrxtime.
88958         (configure.ac): Add gl_XNANOSLEEP.
88959         (Makefile.am): Remove lib_SOURCES line.
88960
88961 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88962
88963         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88964         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88965
88966 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88967
88968         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88969         * lib/timespec.h (gettime): Return void, since it always
88970         succeeds now.  All uses changed.
88971         * lib/gettime.c (gettime): Likewise.
88972         [HAVE_NANOTIME]: Prefer nanotime.
88973         Assume gettimeofday succeeds, as POSIX requires.
88974         Assime time () succeeds, since other code already does.
88975         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88976         (timespec_subtract): Remove.
88977         (NANOSLEEP_BUG_WORKAROUND): New constant.
88978         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88979         things considerably.  Use it only on GNU/Linux hosts, since the
88980         workaround shouldn't be needed elsewhere.
88981
88982 2005-02-24  Bruno Haible  <bruno@clisp.org>
88983
88984         * modules/gettext (Files): Add m4/glibc2.m4.
88985
88986 2005-02-24  Bruno Haible  <bruno@clisp.org>
88987
88988         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88989         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88990         * m4/progtest.m4:
88991         Update from GNU gettext 0.14.2.
88992         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88993
88994 2005-02-24  Bruno Haible  <bruno@clisp.org>
88995
88996         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88997         * lib/config.charset: Update from GNU gettext 0.14.2.
88998
88999 2005-02-24  Bruno Haible  <bruno@clisp.org>
89000
89001         * lib/gettext.h: Update from GNU gettext 0.14.2.
89002
89003 2005-02-23  Simon Josefsson  <jas@extundo.com>
89004
89005         * m4/iconvme.m4: New file.
89006
89007 2005-02-23  Jim Meyering  <jim@meyering.net>
89008
89009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89010         change.
89011         Thanks to Bruno Haible for catching it.
89012
89013 2005-02-22  Simon Josefsson  <jas@extundo.com>
89014
89015         * modules/iconvme: New file.
89016
89017         * MODULES.html.sh: Add iconvme.
89018
89019 2005-02-22  Simon Josefsson  <jas@extundo.com>
89020
89021         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89022
89023 2005-02-22  Simon Josefsson  <jas@extundo.com>
89024
89025         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89026
89027 2005-02-22  Jim Meyering  <jim@meyering.net>
89028
89029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89030         s/ifndef/ifdef/.
89031
89032 2005-02-20  Neil Conway  <neilc@samurai.com>
89033
89034         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89035         returned by OSX/Darwin if the specified buffer is not large
89036         enough for the hostname.
89037
89038 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89039
89040         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89041         pass it to _help, otherwise the latter coredumps trying to
89042         dereference state.root_argp.
89043
89044 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89045
89046         * modules/chdir-long (Depends-on): Add memrchr.
89047         * modules/memrchr (Files): Add lib/memrchr.h.
89048         (Include): "memrchr.h".
89049
89050 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89051
89052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89053
89054 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89055
89056         * lib/memrchr.h: New file.
89057         * lib/chdir-long.c: Include it.
89058         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89059         Don't bother including stddef.h.
89060
89061 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89062
89063         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89064         inclusion.
89065         Include <sys/types.h>, for dev_t.
89066         (ME_DUMMY, ME_REMOTE): Move from here....
89067         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89068         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89069         Dmitry V. Levin.
89070         Include mountlist.h first, to test the interface.
89071
89072 2005-01-29  Bruno Haible  <bruno@clisp.org>
89073
89074         * lib/progname.c (program_name): Initialize.
89075         Needed when linking statically on MacOS X.
89076
89077 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89078
89079         Sync from coreutils.
89080         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89081         (Depends-on): Add c-strtod.
89082         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89083
89084 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89085
89086         Sync from coreutils.
89087         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89088
89089         Remove files that are specific to coreutils.
89090         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89091
89092 2005-01-28  Bruno Haible  <bruno@clisp.org>
89093
89094         * modules/javacomp: New file.
89095         * MODULES.html.sh (Java): Add javacomp.
89096
89097 2005-01-28  Bruno Haible  <bruno@clisp.org>
89098
89099         * m4/javacomp.m4: New file, from GNU gettext.
89100
89101 2005-01-28  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/javacomp.sh.in: New file, from GNU gettext.
89104         * lib/javacomp.h: New file, from GNU gettext.
89105         * lib/javacomp.c: New file, from GNU gettext.
89106
89107 2005-01-26  Simon Josefsson  <jas@extundo.com>
89108
89109         * lib/gai_strerror.c: Use GPL in header.
89110
89111 2005-01-26  Bruno Haible  <bruno@clisp.org>
89112
89113         * modules/javaexec: New file.
89114         * MODULES.html.sh (Java): Add javaexec.
89115
89116 2005-01-26  Bruno Haible  <bruno@clisp.org>
89117
89118         * m4/javaexec.m4: New file, from GNU gettext.
89119
89120 2005-01-26  Bruno Haible  <bruno@clisp.org>
89121
89122         * lib/javaexec.sh.in: New file, from GNU gettext.
89123         * lib/javaexec.h: New file, from GNU gettext.
89124         * lib/javaexec.c: New file, from GNU gettext.
89125
89126 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89127
89128         * modules/lchown (Depends-on): Remove lchown.h
89129
89130 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89131
89132         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89133         must be defined if the header file was not found, in order
89134         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89135
89136 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89137
89138         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89139         initializers for struct pentry_state.
89140         (__argp_error): Check return value of __asprintf
89141         (__argp_failure): Translate error message
89142
89143         * lib/argp-parse.c: Removed braces around the expansion of N_()
89144
89145 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89146
89147         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89148         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89149         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89150         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89151         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89152         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89153         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89154         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89155         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89156         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89157         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89158         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89159         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89160         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89161         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89162         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89163         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89164         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89165         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89166         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89167         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89168         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89169         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89170         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89171         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89172         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89173         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89174         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89175         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89176         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89177         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89178         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89179         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89180         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89181         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89182         Use an all-permissive copyright notice, recommended by RMS.
89183
89184 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         * modules/chdir-long (Depends-on): Remove mempcpy.
89187
89188 2005-01-21  Jim Meyering  <jim@meyering.net>
89189
89190         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89191         same value as for Solaris 9.
89192
89193         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89194         component length.  This included changing the parameter to be
89195         of type `char *' rather than `char const *'.
89196         * lib/chdir-long.h (chdir_long): Update prototype.
89197
89198         * lib/openat.c (fdopendir, fstatat): New functions.
89199         * lib/openat.h: Include headers required for use of DIR and struct
89200         stat.
89201         [AT_SYMLINK_NOFOLLOW]: Define.
89202         (fdopendir, fstatat): Add prototypes.
89203
89204 2005-01-21  Bruno Haible  <bruno@clisp.org>
89205
89206         * modules/classpath: New file.
89207         * MODULES.html.sh (Java): Add classpath.
89208
89209 2005-01-21  Bruno Haible  <bruno@clisp.org>
89210
89211         * lib/classpath.h: New file, from GNU gettext.
89212         * lib/classpath.c: New file, from GNU gettext.
89213
89214 2005-01-20  Simon Josefsson  <jas@extundo.com>
89215
89216         * modules/version-etc-fsf: New file.
89217
89218 2005-01-20  Simon Josefsson  <jas@extundo.com>
89219
89220         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89221         * lib/version-etc.c: Remove version_etc_copyright.
89222         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89223         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89224
89225 2005-01-20  Simon Josefsson  <jas@extundo.com>
89226
89227         * lib/base64.h (isbase64): Add.
89228
89229         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89230         using a unsigned prototype, don't inline.
89231         (base64_decode): Use it.
89232
89233 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89234
89235         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89236         it.
89237
89238 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89239
89240         * lib/save-cwd.c (save_cwd): Remove code to support the case
89241         where fchdir is missing or flaky.
89242
89243 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89246
89247 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89248
89249         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89250         AC_LIBSOURCES now does this.
89251         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89252         with new ullong_max module.
89253
89254 2005-01-19  Bruno Haible  <bruno@clisp.org>
89255
89256         * modules/sh-quote: New file.
89257         * MODULES.html.sh (Executing programs): Add sh-quote.
89258
89259 2005-01-19  Bruno Haible  <bruno@clisp.org>
89260
89261         * lib/sh-quote.h: New file, from GNU gettext.
89262         * lib/sh-quote.c: New file, from GNU gettext.
89263
89264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89265
89266         Merge from coreutils.
89267         * m4/ullong_max.m4: New file.
89268         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89269         (gl_MACROS): Assume localeconv exists.
89270
89271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89272
89273         Merge changes from coreutils, as described below in several
89274         changelogs dated today.
89275
89276         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89277         (O_DIRECTORY): Remove; not needed here, since "." must be
89278         a directory.  All uses removed.
89279         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89280         universal on Suns, and we also need to test for IRIX.
89281         Revamp code to use 'if' rather than '#if'.
89282         Avoid unnecessary comparison of cwd->desc to 0.
89283
89284         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89285         for known valid error numbers rather than observed invalid ones.
89286
89287 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89288
89289         * modules/ullong_max: New file.
89290
89291         * modules/chdir-long, modules/openat: New files.
89292         * modules/save-cwd (Depends-on): Depend on chdir-long.
89293         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89294
89295 2005-01-18  Jim Meyering  <jim@meyering.net>
89296
89297         Merge from coreutils.
89298         * m4/chdir-long.m4, m4/openat.m4: New files.
89299         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89300         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89301         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89302         is sane and DOES follow symlinks.  Besides, testing 20 different
89303         systems found no broken chown implementations.
89304         Prompted by a change in rsync's copy of this macro.
89305         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89306
89307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89308
89309         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89310         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89311         NULL-means-set-to-current-time semantics.
89312         Remove temporary file immediately, rather than waiting
89313         for configure's at-exit trap code to do it.
89314
89315 2005-01-18  Jim Meyering  <jim@meyering.net>
89316
89317         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89318
89319         * lib/utimens.c (futimens): Account for the fact that futimes
89320         can also fail with errno == ENOSYS or errno == ENOENT.
89321         Patch from Dmitry V. Levin.
89322
89323         Change the name of the robust chdir function from chdir to chdir_long.
89324         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89325         (restore_cwd): Use chdir_long, not chdir.
89326         * lib/chdir-long.c: Renamed from chdir.c.
89327         * lib/chdir-long.h: Renamed from chdir.h.
89328         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89329         Hurd.
89330
89331 2005-01-18  Bruno Haible  <bruno@clisp.org>
89332
89333         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89334         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89335         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89336         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89337         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89338         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89339         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89340         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89341         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89342         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89343         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89344         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89345         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89346         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89347         Use an all-permissive copyright notice, recommended by RMS.
89348
89349 2005-01-18  Bob Proulx  <bob@proulx.com>
89350
89351         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89352         simplify offsetof() macro construct to avoid compile failure with
89353         native HP-UX 11.0 ANSI C compiler.
89354
89355 2005-01-17  Bruno Haible  <bruno@clisp.org>
89356
89357         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89358         redundant because stpncpy.m4 takes care of it.
89359
89360 2005-01-17  Bruno Haible  <bruno@clisp.org>
89361
89362         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89363
89364 2005-01-17  Bruno Haible  <bruno@clisp.org>
89365
89366         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89367         used.
89368
89369 2005-01-17  Bruno Haible  <bruno@clisp.org>
89370
89371         * lib/fwriteerror.h (fwriteerror): Change specification to include
89372         fclose.
89373         * lib/fwriteerror.c: Include <stdbool.h>.
89374         (fwriteerror): At the end, close the file stream. Record whether
89375         stdout was already closed.
89376
89377 2005-01-17  Bruno Haible  <bruno@clisp.org>
89378
89379         * lib/execute.c (environ): Declare if needed.
89380         * lib/pipe.c (environ): Likewise.
89381         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89382
89383 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89384
89385         * modules/argp: Depend on vsnprintf
89386
89387 2005-01-10  Jim Meyering  <jim@meyering.net>
89388
89389         * modules/closeout (Depends-on): Add atexit.
89390
89391 2005-01-06  Bruno Haible  <bruno@clisp.org>
89392
89393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89394
89395 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89396
89397         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89398         definitions to be after all include files, to avoid collisions.
89399         Problem reported by Bob Proulx.
89400
89401 2005-01-04  Jim Meyering  <jim@meyering.net>
89402
89403         Changes imported from coreutils.
89404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89405         as the mkstemp template, use a temporary directory and an
89406         8.3-friendly template to avoid trouble on systems like DJGPP.
89407         Reported by Juan M. Guerrero via Stepan Kasal.
89408         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89409         close. Remove the temporary directory right away, rather than waiting
89410         for configure's at-exit trap code to do it.
89411         Suggestion from Stepan Kasal.
89412
89413 2005-01-01  Simon Josefsson  <jas@extundo.com>
89414
89415         * gnulib-tool: Print #include directives when --import'ing.
89416
89417 2004-12-28  Simon Josefsson  <jas@extundo.com>
89418
89419         * tests/test-base64.c: Include required header files.  Remove
89420         unused variables.
89421
89422 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89423
89424         * modules/error (Depends-on): Remove gettext.
89425
89426 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89427
89428         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89429         not needed.  This removes a dependency on the gettext module.
89430         [defined _LIBC]: Do not include <libintl.h>; not needed.
89431
89432 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89433
89434         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89435         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89436
89437 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89438
89439         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89440         HAVE_DECL_STRTOLD.
89441
89442 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89443
89444         * modules/getdate (Depends-on): Remove alloca-opt.
89445
89446 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89447
89448         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89449
89450 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89451
89452         * lib/argp-parse.c: Include <stddef.h>.
89453         (alignof, alignto): New macros.
89454         (parser_init): Don't assume that void * is aligned sufficiently
89455         for struct option.
89456
89457         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89458         need to extend the stack.
89459         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89460         large.
89461
89462 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89463
89464         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89465
89466 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89467
89468         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89469         (2004-10-24) change.  Apparently this was a false alarm.
89470
89471         * modules/getdate: Depend on alloca-opt, not alloca.
89472
89473 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89474
89475         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89476         Remove now-obsolete comment about AIX.
89477         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89478         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89479         (YYMAXDEPTH): New macro.
89480
89481 2004-12-18  Simon Josefsson  <jas@extundo.com>
89482
89483         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89484
89485 2004-12-18  Bruno Haible  <bruno@clisp.org>
89486
89487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89488
89489 2004-12-18  Bruno Haible  <bruno@clisp.org>
89490
89491         * lib/fatal-signal.c (fatal_signals): Make non-const.
89492         (init_fatal_signals): New function.
89493         (uninstall_handlers, install_handlers): Ignore signals that were set to
89494         SIG_IGN.
89495         (at_fatal_signal): Call init_fatal_signals.
89496         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89497         SIG_IGN.
89498         Reported by Paul Eggert.
89499
89500 2004-12-18  Bruno Haible  <bruno@clisp.org>
89501
89502         * doc/alloca.texi: New file.
89503         * doc/alloca-opt.texi: New file.
89504
89505 2004-12-17  Jim Meyering  <jim@meyering.net>
89506
89507         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89508         Otherwise, install-sh could exit with improper exit status when
89509         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89510
89511 2004-12-16  Simon Josefsson  <jas@extundo.com>
89512
89513         * tests/test-base64.c: Add license.
89514
89515 2004-12-15  Stepan Kasal  <address@hidden>
89516
89517         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89518
89519 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89520
89521         * modules/getcwd (Files): Add m4/d-ino.m4.
89522         Suggested by Mark D. Baushke.
89523
89524 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89525
89526         * lib/getdate.y (textint): New member "negative".
89527         (time_zone_hhmm): New function.
89528         Expect 14 shift-reduce conflicts, not 13.
89529         (o_colon_minutes): New rule.
89530         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89531         (yylex): Set the "negative" member of signed numbers.
89532
89533 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89534
89535         * doc/getdate.texi (Time of day items, Time zone items):
89536         Describe new formats +00:00, UTC+00:00.
89537
89538 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89539
89540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89541         spurious "-l"s.  Problem reported by Stepan Kasal.
89542
89543 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89544
89545         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89546         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89547
89548 2004-12-04  Simon Josefsson  <jas@extundo.com>
89549
89550         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89551         Vandoorselaere <yoann@prelude-ids.org>.
89552
89553 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89554
89555         Changes imported from coreutils.
89556         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89557         exist.
89558         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89559
89560 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89561
89562         Changes imported from coreutils.
89563         * lib/hard-locale.c: Assume <locale.h> exists.
89564         Include "strdup.h".
89565         (GLIBC_VERSION): New macro.
89566         (hard_locale): Assume setlocale exists.
89567         Rewrite to avoid #ifdef.
89568         Use strdup rather than malloc + strcpy.
89569         * lib/human.c: Assume <locale.h> exists.
89570         (human_readable): Assume localeconv exists.
89571
89572 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89573
89574         * modules/hard-locale (Depends-on): Add strdup.
89575
89576 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89577
89578         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89579         convert T2, not T.  (Imported from libc.)
89580
89581 2004-11-30  Simon Josefsson  <jas@extundo.com>
89582
89583         * modules/restrict (License): Change to LGPL.
89584
89585 2004-11-30  Simon Josefsson  <jas@extundo.com>
89586
89587         * m4/restrict.m4: Add copyright and copying conditions.
89588
89589 2004-11-30  Simon Josefsson  <jas@extundo.com>
89590
89591         * m4/base64.m4: New file.
89592
89593 2004-11-30  Simon Josefsson  <jas@extundo.com>
89594
89595         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89596         base64.
89597
89598         * tests/test-base64.c: New file.
89599
89600         * modules/base64: New file.
89601
89602 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89603
89604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89605         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89606
89607         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89608
89609 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89610
89611         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89612         (__getcwd.c): Don't restore errno; glibc doesn't.
89613         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89614         first, falling back to our code only if its results look suspicious.
89615         Ensure that the resulting buffer is only as large as necessary.
89616
89617         * lib/readutmp.c: Include readutmp.h first.
89618         Include <errno.h>, since readutmp.h no longer does that.
89619         * lib/readutmp.h: Don't include <errno.h>,
89620         <sys/param.h>, <time.h>; not needed to establish interface.
89621         (errno): Remove decl.
89622         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89623         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89624         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89625
89626 2004-11-28  Simon Josefsson  <jas@extundo.com>
89627
89628         * lib/base64.h, base64.c: New file.
89629
89630 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89631
89632         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89633
89634 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89635
89636         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89637         (Depends-on): Remove pathmax, same.  Add mempcpy.
89638         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89639         (Makefile.am): Append getcwd.h to lib_SOURCES.
89640         (Include): Add getcwd.h.
89641         (Maintainer): Change from Jim Meyering to "all, glibc",
89642         since getdate now uses intended-for-glibc code.
89643         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89644         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89645
89646 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89647
89648         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89649         HP's ANSI C compiler.
89650         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89651         Declaring int functions causes warnings on some modern systems and
89652         shouldn't be needed to compile on ancient ones.
89653         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89654         defined.
89655
89656         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89657         with the following changes.
89658         (__set_errno): Parenthesize properly.
89659         Include <stdbool.h>.
89660         (MIN, MAX, MATCHING_INO): New macros.
89661         (__getcwd): Define with prototype, not K&R form.
89662         Use heuristics to allocate default buffer on stack if possible.
89663         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89664         behavior, and to avoid the PATH_MAX limit when computing
89665         ../../../../...
89666         Use MATCHING_INO to compare inode number to file.
89667         Check for arithmetic overflow in size calculations.
89668         Fix bug in reallocation of dot array that caused getcwd to fail
89669         on directories nested deeper than 75.
89670         Be more careful about saving errno on error.
89671         Do not use realloc; use only free+malloc, as this is a bit
89672         more flexible and avoids a needless copy operation.
89673         Do not inspect st_dev and st_ino for symbolic links; POSIX
89674         doesn't specify the latter.
89675         Check for closedir errors.
89676         Avoid needless casts.
89677         Use "#ifdef weak_alias" around weak_alias, to be like other
89678         glibc code.
89679         The following changes to getcwd.c have effect only when used in
89680         gnulib; they have no effect inside glibc proper.
89681         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89682         as alloca isn't used.
89683         (alloca, __alloca): Likewise.
89684         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89685         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89686         unconditionally, as gnulib assumes C89 or better.
89687         Do not include <sys/param.h>.
89688         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89689         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89690         better.
89691         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89692         Include <dirent.h> in a way that is compatible with modern Autoconf.
89693         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89694         New macros, if not already defined.
89695         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89696         Use "_LIBC", not "defined _LIBC", for consistency.
89697         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89698         a mempcpy module.
89699         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89700         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89701         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89702         credit only to Jim Meyering and adjust the copyright dates.
89703         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89704         <stdlib.h>, <unistd.h>, "pathmax.h".
89705         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89706         (INITIAL_BUFFER_SIZE): Remove.
89707         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89708
89709 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89710
89711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89712         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89713         Use the _ONCE methods, for efficiency.
89714         Check for fcntl.h.  In test program, include <errno.h>
89715         and <fcntl.h> if available.  Remove old K&R cruft from
89716         test program.  Check for common errors in GNU/Linux,
89717         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89718         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89719         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89720         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89721         name accordingly.
89722         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89723         accommodate new getcwd.c.
89724         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89726         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89727         that's all we need now.
89728
89729 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89730
89731         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89732         argp-parse.c depends on getopt internals, that means we should
89733         always use our getopt, to be on the safe side.
89734         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89735         order not to spoil the result of an eventual previous invocation
89736         of gl_GETOPT_SUBSTITUTE.
89737
89738 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89739
89740         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89741         redefinition warnings. To avoid them, include the defines
89742         in `#if !defined __need_getopt ... #endif'. The only place
89743         where __getopt_argv_const is used is in definitions
89744         of getopt_long and getopt_long_only below, which are as well
89745         protected by `#ifndef __need_getopt'.
89746         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89747         __need_getopt after including <stdio.h> and <unistd.h> These
89748         headers might have defined it.
89749
89750 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89751
89752         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89753
89754 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89755
89756         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89757         (futimens): New function, which uses futimes if available.
89758         (futimens, utimens): Support timespec==NULL, with same semantics
89759         as utime and utimens.
89760         * lib/utimens.h (futimens): New decl.
89761
89762 2004-11-23  Jim Meyering  <jim@meyering.net>
89763
89764         * lib/getopt_.h: Remove trailing blanks.
89765
89766 2004-11-23  Jim Meyering  <jim@meyering.net>
89767
89768         * lib/__fpending.c: Add comment.
89769
89770 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89771
89772         * modules/canonicalize (Depends-on): Add xreadlink.
89773         Problem reported by James Youngman.
89774
89775 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89776
89777         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89778         New macros.
89779         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89780         optopt): Use them instead of invoking ## directly; otherwise, the
89781         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89782
89783 2004-11-19  Bruno Haible  <bruno@clisp.org>
89784
89785         * lib/strtok_r.c: Move comments from here...
89786         * lib/strtok_r.h: ... to here.
89787
89788 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89789
89790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89791         implementations that mishandle size_t overflow.
89792
89793 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89794
89795         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89796         might fail.  Problem reported by Yoann Vandoorselaere.
89797         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89798         implementations that mishandle size_t overflow.
89799
89800 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89801
89802         * modules/canon-host (Depends-on): Add strdup.
89803
89804 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89805
89806         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89807
89808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89809
89810         * lib/canon-host.c: Include "strdup.h".
89811         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89812         Use strdup instead of malloc/strcpy to duplicate strings.
89813
89814         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89815         (human_space_before_unit): New constant.
89816         * lib/human.c (human_readable): Support it.
89817
89818         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89819         (xgetcwd): Set errno correctly when failing.
89820         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89821         the failure is actually due to a PATH_MAX problem.
89822
89823         Further getopt changes to make it more likely that glibc will
89824         buy the changes back.
89825         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89826         (getopt): Use it, so to preserve glibc semantic
89827         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89828         when compiling for libc.
89829         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89830         (getopt_long, getopt_long_only): Use it.
89831
89832         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89833         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89834         (getopt): Argv is now char * const *, as per standard.
89835         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89836         not char *__getopt_argv_const *.
89837         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89838         _getopt_long_only_r): Likewise.
89839         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89840         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89841         _getopt_long_r, _getopt_long_only_r): Likewise.
89842         * lib/getopt_.h (__getopt_argv_const): Remove.
89843         (getopt): Argv is now char * const *, as per standard.
89844
89845         * lib/getdate.y (tORDINAL): New token.
89846         (day, relunit): Allow it for relative times.
89847         (relative_time_table): Use tORDINAL for ordinals.
89848
89849 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89850
89851         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89852         Document that "second" isn't allowed as an ordinal number.
89853
89854 2004-11-16  Jim Meyering  <jim@meyering.net>
89855
89856         * modules/closeout (Depends-on): Add fpending.
89857
89858 2004-11-15  Jim Meyering  <jim@meyering.net>
89859
89860         * lib/closeout.c: Include "__fpending.h" once again.
89861         Include <stdbool.h>.
89862         (close_stdout): Don't fail just because stdout was closed initially,
89863         since some programs don't write to stdout in the normal course of
89864         operation (other than --version and --help), and we don't want this
89865         function to make e.g. `touch file >&-' fail.
89866         But do fail if it was closed and someone has tried to write to it.
89867         E.g., `printf foo >&-' must fail.
89868
89869 2004-11-13  Jim Meyering  <jim@meyering.net>
89870
89871         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89872
89873 2004-11-12  Simon Josefsson  <jas@extundo.com>
89874
89875         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89876         small doc fix is still pending.
89877
89878 2004-11-11  Simon Josefsson  <jas@extundo.com>
89879
89880         * modules/strtok_r: New file.
89881
89882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89883         strtok_r.
89884
89885 2004-11-11  Simon Josefsson  <jas@extundo.com>
89886
89887         * m4/strtok_r.m4: New file.
89888
89889         * m4/getopt.m4: Replace opterr.
89890
89891 2004-11-11  Simon Josefsson  <jas@extundo.com>
89892
89893         * lib/strtok_r.h, strtok_r.c: New file.
89894
89895 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89896
89897         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89898         of replacing opterr, getopt, etc.  This should handle the
89899         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89900
89901 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89902
89903         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89904         we can stop lying to compilers about the constness of argv when we
89905         are compiled outside glibc.
89906         (getopt, getopt_long, getopt_long_only): Use it.
89907         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89908         _getopt_internal, getopt): Likewise.
89909         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89910         _getopt_long_only_r): Likewise.
89911         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89912         _getopt_long_r, _getopt_long_only_r): Likewise.
89913
89914         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89915         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89916         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89917         the other external symbols.
89918         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89919         declaration, since the above renaming now works around collisions.
89920
89921 2004-11-11  Jim Meyering  <jim@meyering.net>
89922
89923         * lib/linebreak.c: Remove trailing blanks.
89924         * lib/alloca_.h: Likewise.
89925         * lib/acosl.c: Likewise.
89926         * lib/euidaccess.c: Likewise.
89927         * lib/allocsa.h: Likewise.
89928
89929 2004-11-10  Simon Josefsson  <jas@extundo.com>
89930
89931         * m4/getaddrinfo.m4: New file.
89932
89933 2004-11-10  Simon Josefsson  <jas@extundo.com>
89934
89935         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89936
89937 2004-11-10  Simon Josefsson  <jas@extundo.com>
89938
89939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89940         getaddrinfo.
89941
89942         * modules/getaddrinfo: New file.
89943
89944 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89945
89946         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89947
89948 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89949
89950         * lib/mktime.c (SHR): New macro, which is a portable
89951         substitute for >> that should work even on Crays.
89952         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89953         Problem reported by Mark D. Baushke in
89954         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89955         * lib/getdate.y (SHR): Likewise.
89956         (tm_diff): Use it.
89957         * lib/strftime.c (SHR): Likewise.
89958         (tm_diff): Use it.
89959         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89960         quote_these_too, so that right shifts are well defined.  All uses
89961         changed.
89962
89963 2004-11-10  Jim Meyering  <jim@meyering.net>
89964
89965         Ensure that no close failure goes unreported.
89966         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89967         return early when it seems there's nothing to flush.
89968         Don't include __fpending.h.
89969
89970 2004-11-10  Jim Meyering  <jim@meyering.net>
89971
89972         * modules/closeout (Depends-on): Remove fpending.
89973
89974 2004-11-10  Jim Meyering  <jim@meyering.net>
89975
89976         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89977
89978 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89979
89980         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89981         gl_FUNC_STRFTIME.
89982         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89983         and AC_REQUIRE when possible, to avoid duplicate checks.
89984         Check for <wchar.h>.
89985
89986 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89987
89988         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89989
89990 2004-11-09  Bruno Haible  <bruno@clisp.org>
89991
89992         * m4/sockpfaf.m4: New file.
89993
89994 2004-11-05  Bruno Haible  <bruno@clisp.org>
89995
89996         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89997         Reported by Mark D. Baushke <mdb@cvshome.org>.
89998
89999 2004-11-04  Bruno Haible  <bruno@clisp.org>
90000
90001         2004-09-11  Bruno Haible  <bruno@clisp.org>
90002                 * allocsa.valgrind: New file.
90003         2004-02-06  Bruno Haible  <bruno@clisp.org>
90004                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90005                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90006                 Reported by Christopher Seip <chris.seip@hp.com>.
90007
90008 2004-11-04  Bruno Haible  <bruno@clisp.org>
90009
90010         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90011         (Makefile.am): Distribute it.
90012
90013 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90014
90015         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90016         with errno == ERANGE if the buffer is too small.
90017         Problem reported by Mark D. Baushke.
90018
90019 2004-11-03  Albert Chin  <china@thewrittenword.com>
90020             Paul Eggert  <eggert@cs.ucla.edu>
90021
90022         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90023         equivalent, substitute $ac_type for equivalent type rather than
90024         blindly using uint32_t *always* which won't work if uint32_t is not
90025         available.  Define _UINT32_T to work around typedef of uint32_t if
90026         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90027         2.5.1.
90028
90029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90030
90031         * m4/jm-macros.m4: Sync from coreutils.
90032         (gl_MACROS): Check for mbrlen, for pathchk.
90033         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90034
90035 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90036
90037         * lib/xreadlink.c (MAXSIZE): New macro.
90038         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90039         size does not exceed MAXSIZE.  Avoid cast.
90040         As suggested by Mark D. Baushke in
90041         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90042         if readlink fails with buffer size just under MAXSIZE, try again
90043         with MAXSIZE.
90044
90045 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90046
90047         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90048
90049 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90050         and  Paul Eggert  <eggert@cs.ucla.edu>
90051
90052         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90053         (get_date): Overparenthesize to avoid GCC warning.
90054
90055 2004-11-02  Bruno Haible  <bruno@clisp.org>
90056
90057         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90058         returns void.
90059
90060 2004-11-02  Bruno Haible  <bruno@clisp.org>
90061
90062         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90063         function returns void.
90064
90065 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90066
90067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90068         fflush_unlocked, flockfile, funlockfile, funlockfile,
90069         fputs_unlocked, putc_unlocked.
90070
90071 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90072
90073         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90074         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90075         already declared.
90076
90077 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90078
90079         * modules/getdate (Files): Add doc/getdate.texi.
90080         (Depends-on): Add setenv, xalloc.
90081
90082 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90083
90084         * lib/getdate.y: Add support for TZ="foo" within a date string.
90085         Fix some bugs near time_t boundaries.  Reject dates with
90086         out-of-range components, e.g., "Sept 31".
90087         Include <stdlib.h>, "setenv.h", "xalloc.h".
90088         (ISDIGIT_LOCALE): Remove; unused.
90089         Note that the TZ and time functions used here are not reentrant.
90090         (mktime_ok, get_tz): New functions.
90091         (TZBUFSIZE): New constant.
90092         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90093         This requires that we sometimes generate our own TZ="XXX..." setting.
90094
90095 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90096
90097         * doc/getdate.texi: New file, from coreutils with modifications for
90098         the new TZ parsing.
90099
90100 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90101
90102         * lib/mktime.c (not_equal_tm): Remove redundant check.
90103
90104 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90105
90106         * modules/regex (lib_SOURCES): Add regex.c.
90107         Reported by James Youngman in
90108         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90109
90110 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90111
90112         * lib/getdate.y: Use Bison 1.875 features, and some minor
90113         code cleanups.  This change does not affect semantics.
90114         Don't include <stdlib.h>; no longer needed.
90115         Don't include unlocked-io.h; only the "#if TEST" code uses
90116         stdio, and performance isn't crucial there.
90117         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90118         Bison 1.875 features as described below.
90119         All uses of "PC." replaced by "pc->".
90120         (YYSTYPE): Add a forward declaration.
90121         (yylex, yyerror): Use full prototypes in forward decls.
90122         Use "%pure-parser" rather than obsolescent "%pure_parser".
90123         Use %parse-param and %lex-param instead of obsolescent
90124         YYPARSE_PARAM and YYLEX_PARAM.
90125         (meridian_table, month_and_day_table, time_units_table,
90126         relative_time_table, time_zone_table, military_table,
90127         lookup_zone, lookup_word, get_date):
90128         Use NULL instead of 0 where appropriate.
90129         (to_hour): Avoid abort (), to avoid a dependency on
90130         stdlib.h.
90131         (yyerror, yylex): Now accepts parser_control * arg.
90132         (main) [TEST]: Use '\0' rather than 0 for char.
90133
90134 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90135
90136         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90137
90138 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90139
90140         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90141         It's now the caller's responsibility to handle the case where
90142         !HAVE_GETPAGESIZE && !defined getpagesize.
90143
90144         * lib/mktime.c (leapyear): Arg is long int, not int.
90145
90146 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90147
90148         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90149
90150 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90151
90152         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90153         missing.  Problem reported by James Youngman.
90154
90155 2004-10-16  Simon Josefsson  <jas@extundo.com>
90156
90157         * gnulib-tool: Fix comments.  Fix parse problem.
90158         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90159
90160 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90161
90162         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90163         implementation of getopt_long.  Problem reported by Alexander Taler in:
90164         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90165
90166 2004-10-15  Bruno Haible  <bruno@clisp.org>
90167
90168         * gnulib-tool: Untabify. Initialize supplied_libname.
90169         (func_usage): More homogenous output.
90170         (func_modules_transitive_closure, func_modules_to_filelist,
90171         func_emit_lib_Makefile_am): New functions.
90172         (func_import): New function, extracted from big case statement. Use
90173         func_get_license, func_modules_transitive_closure,
90174         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90175         opt_lgpl. Don't use test -a, as it's not portable.
90176         (func_create_testdir): Use func_modules_transitive_closure,
90177         func_modules_to_filelist, func_emit_lib_Makefile_am.
90178
90179 2004-10-15  Bruno Haible  <bruno@clisp.org>
90180
90181         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90182
90183 2004-10-15  Bruno Haible  <bruno@clisp.org>
90184
90185         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90186         the portions belonging to each module.
90187         Suggested by Derek Robert Price <derek@ximbiot.com>.
90188
90189 2004-10-12  Simon Josefsson  <jas@extundo.com>
90190
90191         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90192         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90193         to real functions.
90194
90195 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90196
90197         * modules/vsnprintf: New file.
90198
90199 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90200
90201         * m4/vsnprintf.m4: New file.
90202
90203 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90204
90205         * lib/vsnprintf.h: New file.
90206         * lib/vsnprintf.c: New file.
90207
90208 2004-10-11  Bruno Haible  <bruno@clisp.org>
90209
90210         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90211         vsnprintf.
90212
90213 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90214
90215         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90216
90217 2004-10-07  Bruno Haible  <bruno@clisp.org>
90218
90219         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90220         fits into the provided buffer.
90221
90222 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90223
90224         * lib/diacrit.c, diacrit.h: Add GPL notice.
90225
90226         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90227         notice.
90228         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90229         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90230         This avoids a potential constant-folding bug.
90231
90232 2004-10-05  Bruno Haible  <bruno@clisp.org>
90233
90234         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90235         for the declaration of strsep.
90236
90237 2004-10-05  Bruno Haible  <bruno@clisp.org>
90238
90239         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90240
90241 2004-10-04  Simon Josefsson  <jas@extundo.com>
90242
90243         * modules/memmem: New file.
90244         * tests/test-memmem.c: New file.
90245         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90246
90247 2004-10-04  Simon Josefsson  <jas@extundo.com>
90248
90249         * m4/memmem.m4: New file.
90250
90251 2004-10-04  Simon Josefsson  <jas@extundo.com>
90252
90253         * lib/memmem.h: New file.
90254         * lib/memmem.c: New file, taken from glibc.
90255
90256 2004-10-04  Simon Josefsson  <jas@extundo.com>
90257
90258         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90259         '#ifdef USE_UNLOCKED_IO'.
90260
90261 2004-10-04  Simon Josefsson  <jas@extundo.com>
90262
90263         * config/srclist.txt: Add memmem from glibc.
90264
90265 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90266
90267         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90268
90269         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90270         modules/exclude, modules/getdate, modules/getline,
90271         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90272         modules/getusershell, modules/linebuffer, modules/md5,
90273         modules/mountlist, modules/posixtm, modules/readtokens,
90274         modules/readutmp, modules/regex, modules/sha1,
90275         modules/version-etc, modules/yesno:
90276         Remove dependency on unlocked-io.
90277
90278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90279
90280         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90281
90282         * m4/unlocked-io.m4: Add copyright notice.
90283         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90284
90285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90286
90287         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90288         * lib/xmalloc.c (xmemdup): Likewise.
90289         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90290         XFREE): Remove these long-obsolescent macros.
90291         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90292         * lib/xstrdup.c: Remove.
90293
90294         * lib/regex.c (re_comp): Cast gettext return value to char *,
90295         Problem reported by Martin Neitzel via Mark D. Baushke.
90296
90297 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90298
90299         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90300         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90301         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90302         regex.c, sha1.c, version-etc.c, yesno.c:
90303         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90304         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90305         the includer's responsibility.
90306
90307         Sync from coreutils.
90308
90309         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90310         points to the start of a string, as the C Standard says the
90311         resulting behavior is undefined.
90312
90313         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90314         simple -> simple_backups, numbered_existing ->
90315         numbered_existing_backups, numbered -> numbered_backups
90316         to avoid shadowing problems.  All uses changed.
90317         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90318         * lib/backupfile.c (check_extension, numbered_backup):
90319         Rename locals to avoid shadowing 'basename'.
90320         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90321         once.
90322
90323         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90324         * lib/.cvsignore: Add getopt.h.
90325
90326 2004-10-04  Bruno Haible  <bruno@clisp.org>
90327
90328         * modules/README: New file.
90329         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90330         not a module.
90331
90332 2004-10-02  Jim Meyering  <jim@meyering.net>
90333
90334         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90335
90336 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90337
90338         * modules/strsep: New file.
90339
90340 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90341
90342         * m4/strsep.m4: New file.
90343
90344 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90345
90346         * lib/strsep.h: New file.
90347         * lib/strsep.c: New file.
90348
90349 2004-10-01  Simon Josefsson  <jas@extundo.com>
90350
90351         * lib/snprintf.c (snprintf): Handle size==0.
90352
90353 2004-10-01  Simon Josefsson  <jas@extundo.com>
90354             Bruno Haible  <bruno@clisp.org>
90355
90356         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90357         (snprintf): Declare 'args'.
90358
90359 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90360
90361         * lib/snprintf.c: Remove comments as to why each header is needed.
90362
90363 2004-10-01  Bruno Haible  <bruno@clisp.org>
90364
90365         * MODULES.html.sh: Add strsep.
90366
90367 2004-09-30  Simon Josefsson  <jas@extundo.com>
90368
90369         * modules/snprintf: New file.
90370
90371 2004-09-30  Simon Josefsson  <jas@extundo.com>
90372
90373         * m4/snprintf.m4: New file.
90374
90375 2004-09-30  Simon Josefsson  <jas@extundo.com>
90376
90377         * lib/snprintf.h, lib/snprintf.c: New files.
90378
90379 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90380
90381         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90382         (hol_entry_help): Never translate an empty string.
90383         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90384         * lib/argp.h (OPTION_NO_TRANS): New option.
90385
90386 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90387
90388         * modules/argp (Maintainer): Replace Simon Josefsson
90389         by Sergey Poznyakoff.
90390
90391 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90392
90393         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90394         changes merged back into glibc.
90395
90396 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90397
90398         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90399
90400 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90401
90402         * lib/xvasprintf.c: Include xalloc.h.
90403         (xvasprintf): Use xalloc_die, not xmalloc_die.
90404
90405 2004-09-29  Bruno Haible  <bruno@clisp.org>
90406
90407         * modules/alloca-opt: New file, derived from modules/alloca.
90408         * modules/allocsa: Depend on alloca-opt instead of alloca.
90409         * modules/setenv: Likewise.
90410         * modules/vasnprintf: Likewise.
90411         * MODULES.html.sh: Add alloca-opt.
90412
90413 2004-09-28  Simon Josefsson  <jas@extundo.com>
90414
90415         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90416         LGPL, and to replace license template from GPL to LGPL.
90417
90418 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90419
90420         * modules/dummy: Change license to LGPL.
90421
90422 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90423
90424         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90425
90426 2004-09-24  Simon Josefsson  <jas@extundo.com>
90427
90428         * modules/minmax (License): Change from GPL to LGPL.
90429
90430 2004-09-23  Simon Josefsson  <jas@extundo.com>
90431
90432         * gnulib-tool (--import): Typo.
90433
90434 2004-09-23  Simon Josefsson  <jas@extundo.com>
90435
90436         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90437
90438 2004-09-22  Bruno Haible  <bruno@clisp.org>
90439
90440         * modules/*: Add 'License' field.
90441         * gnulib-tool: Accept --extract-license option.
90442         (func_get_license): New function.
90443
90444 2004-09-21  Bruno Haible  <bruno@clisp.org>
90445
90446         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90447         Reported by Simon Josefsson.
90448
90449 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90450
90451         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90452         gl_AC_TYPE_LONG_LONG.
90453
90454 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90455
90456         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90457
90458 2004-09-18  Simon Josefsson  <jas@extundo.com>
90459         and  Paul Eggert  <eggert@cs.ucla.edu>
90460
90461         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90462         calls with autoreconf.  Define GL_LIB.
90463
90464 2004-09-14  Karl Berry  <karl@gnu.org>
90465
90466         * config/srclist.txt: unsync setenv.c, sigh.
90467
90468 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90469
90470         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90471         Problem reported by Bruno Haible in:
90472         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90473
90474 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90475
90476         * config/srclist.txt: Comment out argp-pvh.c.
90477
90478 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90479
90480         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90481         in case some system header has #define'd it.  Problem reported by
90482         Soeren D. Schulze in
90483         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90484
90485 2004-09-09  Karl Berry  <karl@gnu.org>
90486
90487         * regex.[ch]: delete from the root.  These were supposed to be
90488                 synced with emacs cvs, but this has not happened for about
90489                 a year, and anyway nothing else uses emacs regex.[ch].
90490                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90491                 lib/regex[.ch] is untouched.
90492
90493 2004-09-09  Bruno Haible  <bruno@clisp.org>
90494
90495         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90496
90497 2004-09-09  Bruno Haible  <bruno@clisp.org>
90498
90499         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90500         modifications.
90501         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90502
90503 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90504
90505         * modules/xvasprintf: New file.
90506         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90507
90508 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90509
90510         * lib/xvasprintf.h: New file.
90511         * lib/xvasprintf.c: New file.
90512         * lib/xasprintf.c: New file.
90513
90514 2004-09-08  Bruno Haible  <bruno@clisp.org>
90515
90516         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90517
90518 2004-09-08  Bruno Haible  <bruno@clisp.org>
90519
90520         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90521         length is > INT_MAX.
90522         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90523         more.
90524
90525 2004-09-08  Bruno Haible  <bruno@clisp.org>
90526
90527         * lib/stdint_.h: New file, taken from GNU clisp.
90528
90529 2004-09-08  Bruno Haible  <bruno@clisp.org>
90530             Oskar Liljeblad  <oskar@osk.mine.nu>
90531
90532         * modules/stdint: New file.
90533         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90534
90535 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90536
90537         Import from coreutils.
90538         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90539         strings on unbounded length.  alloca's performance benefits aren't
90540         that important here.
90541         (V_STRDUP): Remove.
90542         (parse_with_separator): New function, with most of the internals
90543         of the old parse_user_spec.  Allow user to omit both user and group,
90544         for compatibility with FreeBSD.
90545         Clone only the user name, not the entire spec.
90546         Do not set *uid, *gid unless entirely successful.
90547         Avoid memory leak in some failing cases.
90548         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90549         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90550         (parse_user_spec): Rewrite to use parse_with_separator.
90551
90552 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90553
90554         * modules/userspec: Don't depend on alloca.
90555
90556 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90557
90558         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90559
90560 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90561
90562         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90563         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90564         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90565
90566 2004-08-16  Simon Josefsson  <jas@extundo.com>
90567
90568         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90569         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90570         Add --dry-run for --import.
90571         Let user provided command line parameters override configure.ac
90572         settings.
90573
90574 2004-08-12  Simon Josefsson  <jas@extundo.com>
90575
90576         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90577         as discussed with Paul Eggert in threads rooted at
90578         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90579         and
90580         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90581         Before, the test was empty, and relied on ELIDE_CODE in source
90582         code.)
90583         (gl_PREREQ_GETOPT): New macro.
90584         (gl_GETOPT): Use them.
90585
90586 2004-08-12  Simon Josefsson  <jas@extundo.com>
90587
90588         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90589         * lib/getopt_.h: Renamed from getopt.h.
90590
90591 2004-08-12  Simon Josefsson  <jas@extundo.com>
90592
90593         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90594         Change default library name from libfoo to libgnu.
90595         Now, if you have a configure.ac that says:
90596                 gl_SOURCE_BASE(gl)
90597                 gl_M4_BASE(gl/m4)
90598                 gl_MODULES(error getopt etcetera)
90599                 gl_INIT
90600         you can import all you need by running:
90601                 ../gnulib/gnulib-tool --import
90602
90603         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90604         (Makefile.am): Rewrite, use logic from argz.
90605         (Include): Use <getopt.h> instead of "getopt.h".
90606
90607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90608
90609         * modules/argp (Files): Add m4/unlocked-io.m4.
90610         (Depends-on): Add extensions.
90611
90612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90613
90614         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90615         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90616         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90617         Check for program_invocation_name, program_invocation_short_name,
90618         flockfile, funlockfile, features.h, _getopt_long_only_r.
90619
90620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90621
90622         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90623         its complicated substitute.
90624         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90625         and program_invocation_name.
90626         (__argp_basename) [!_LIBC]: Remove; the only use was
90627         replaced by its body.
90628         (__argp_short_program_name): Change condition from
90629         !defined __argp_short_program_name to
90630         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90631         to match argp-namefrob.h.
90632         (__argp_failure): Don't assume strerror_r returns char *.
90633         * lib/argp-parse.c (N_): Define unconditionally.
90634         (argp_default_options): Fill out initializers with 0 to avoid
90635         gcc warnings.
90636
90637 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90638
90639         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90640         getopt1.c.
90641
90642 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90643
90644         Merge from coreutils.
90645
90646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90647
90648         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90649         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90650
90651 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90652
90653         Merge from coreutils.
90654
90655         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90656         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90657         for Reliant Unix 5.43.
90658
90659         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90660         (union fooround): Use uintmax_t, not long int.
90661         The rest is a merge from libc:
90662         [defined _LIBC]: Include <shlib-compat.h>.
90663         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90664
90665         * lib/settime.c (settime): Recode to avoid warning with
90666         Sun Forte C 6U2.
90667
90668         * lib/strverscmp.c: Convert to UTF-8.
90669
90670 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90671
90672         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90673         m4/uintmax_t.m4.
90674
90675 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90676
90677         * modules/xalloc-die: New file.
90678         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90679
90680         * modules/md5 (Files): Add m4/uint32_t.m4.
90681         * modules/sha1: Renamed from modules/sha.
90682         (Files):
90683         Rename lib/sha.h to lib/sha1.h.
90684         Rename lib/sha.c to lib/sha1.c.
90685         Rename m4/sha.m4 to m4/sha1.m4.
90686         (lib_SOURCES): Likewise.
90687         (configure.ac): Rename gl_SHA to gl_SHA1.
90688         (Include): sha.h -> sha1.h.
90689
90690 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90691
90692         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90693         * m4/sha1.m4: Renamed from sha.m4.
90694         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90695
90696 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90697
90698         * lib/obstack.h (obstack_empty_p):
90699         Don't assume that chunk->contents is suitably aligned.
90700         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90701         Likewise. Problem reported by Benno in
90702         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90703
90704         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90705         readable.  This could be improved further but it'd take some work.
90706
90707 2004-08-08  Simon Josefsson  <jas@extundo.com>
90708
90709         * modules/xgethostname (Depends-on): Remove exit and error (not
90710         used).
90711
90712         * modules/getpass-gnu: Add getpass.h.
90713         (Depends-on): Add stdbool.
90714         * modules/getpass: Add getpass.h.
90715
90716 2004-08-08  Simon Josefsson  <jas@extundo.com>
90717
90718         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90719         Check getpass declaration.
90720
90721 2004-08-08  Simon Josefsson  <jas@extundo.com>
90722
90723         * lib/xgethostname.c: Don't include error.h (not used).
90724
90725         * lib/getpass.h: Add.
90726         * lib/getpass.c: Include getpass.h first.
90727
90728 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90729
90730         * lib/xalloc-die.c: New file.
90731         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90732         All uses removed.
90733         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90734         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90735         xalloc-die.c.
90736         (_, N_, xalloc_die): Move to xalloc-die.c.
90737         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90738         so that we needn't mess with xalloc_msg_memory_exhausted.
90739
90740         * lib/sha1.h: Renamed from sha.h.
90741         (SHA1_H): Renamed from _SHA_H.
90742         (sha1_ctx): Renamed from sha_ctx.
90743         (sha1_init_ctx): Renamed from sha_init_ctx.
90744         (sha1_process_block): Renamed from sha_process_block.
90745         (sha1_process_bytes): Renamed from sha_process_bytes.
90746         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90747         (sha1_read_ctx): Renamed from sha_read_ctx.
90748         (sha1_stream): Renamed from sha_stream.
90749         (sha1_buffer): Renamed from sha_buffer.
90750         * lib/sha1.c: Likewise; renamed from sha.c.
90751         Do not include <sys/types.h>.
90752         Include <stddef.h> rather than <stdlib.h>.
90753
90754 2004-08-08  Bruno Haible  <bruno@clisp.org>
90755
90756         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90757         FILESYSTEM_PREFIX_LEN.
90758         * lib/progreloc.c: Likewise.
90759         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90760
90761 2004-08-06  Simon Josefsson  <jas@extundo.com>
90762
90763         * modules/progname (Depends-on): Don't depend on stdbool.
90764
90765 2004-08-06  Simon Josefsson  <jas@extundo.com>
90766
90767         * modules/getsubopt: New file.
90768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90769         getsubopt.
90770
90771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90772
90773         More merge from coreutils.
90774
90775         * m4/utimens.m4, m4/utimecmp.m4: New files.
90776         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90777         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90778         prereq.m4, sha.m4: Import changes from coreutils.
90779
90780 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90781
90782         More merge from coreutils.
90783         * modules/raise, modules/readtokens0, modules/utimens:
90784         * modules/utimecmp, module/xnanosleep: New files.
90785         * modules/strftime: Add lib/strftime.h.
90786         Change include from <time.h> to "strftime.h".
90787         * modules/yesno: Add lib/yesno.h.
90788         * modules/backupfile: Remove lib/addext.c.
90789         * modules/euidaccess: Add stat-macros.h.
90790         * modules/canonicalize, modules/euidaccess,
90791         modules/filemode, modules/lchown, modules/makepath,
90792         modules/rmdir, modules/stat: Likewise.
90793
90794 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90795
90796         Merge from tar.
90797         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90798         SIZE_MAX is a valid preprocessor constant.
90799         (__argp_basename): Change from "#ifndef _LIBC"
90800         to "#ifndef __argp_short_program_name", so that
90801         we don't compile these functions for tar.
90802
90803         More merges from coreutils.
90804         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90805         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90806         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90807         * lib/addext.c: Remove; no longer needed.
90808         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90809         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90810         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90811         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90812         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90813         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90814         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90815         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90816         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90817         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90818         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90819         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90820         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90821         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90822         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90823         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90824         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90825         Import changes from coreutils.
90826
90827 2004-08-05  Simon Josefsson  <jas@extundo.com>
90828
90829         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90830
90831 2004-08-05  Simon Josefsson  <jas@extundo.com>
90832
90833         * m4/getsubopt.m4: New file.
90834
90835 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90836
90837         Merge from coreutils.
90838
90839         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90840         * m4/getcwd-path-max.m4: New files.
90841
90842         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90843         FILESYSTEM_PREFIX_LEN ->
90844         FILE_SYSTEM_PREFIX_LEN.
90845         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90846         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90847         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90848         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90849
90850         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90851         prerequisite modules now handle the DOS stuff.
90852         Don't check for unistd.h.
90853
90854 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90855
90856         Merge from coreutils.
90857
90858         * lib/.gdb-history: Remove; this doesn't belong here.
90859
90860         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90861         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90862         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90863         * lib/getcwd.c: New files.
90864
90865         * lib/dirname.h: Include <stdbool.h>.
90866         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90867         for consistency with POSIX terminology.  All uses changed.
90868         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90869         (strip_trailing_slashes): Use bool for booleans.
90870         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90871
90872         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90873         sometimes returns a positive errno value even when it succeeds.
90874         (print_errno_message) [!LIBC]: Fall back on strerror if
90875         __strerror_r fails.
90876
90877         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90878         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90879         (longest_relative_suffix): New function.
90880         (path_concat): Use it.  Assume first argument is not NULL.
90881         Port to DOS.  Omit redundant separators.
90882         Report an error instead of returning NULL.
90883         Use mempcpy instead of memcpy.
90884         (xpath_concat): Remove: not declared or used.
90885
90886         * lib/same.h: Include <stdbool.h>
90887         (same_name): Return bool, not int.
90888         * lib/same.c (same_name): Likewise.
90889         (errno): Don't declare; we assume C89 or better now.
90890
90891         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90892         if not already defined.
90893
90894         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90895         * lib/dup-safer.c (errno): Likewise.
90896
90897 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90898
90899         Merge from coreutils.
90900         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90901         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90902         * modules/path-concat: Don't depend on strdup.
90903
90904 2004-08-03  Simon Josefsson  <jas@extundo.com>
90905
90906         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90907         * lib/progname.h: Don't include stdbool.h.
90908
90909 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90910
90911         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90912         * MODULES.html.sh (func_all_modules): Remove fatal.
90913
90914 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90915
90916         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90917
90918 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90919
90920         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90921         working.
90922
90923 2004-08-02  Simon Josefsson  <jas@extundo.com>
90924
90925         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90926         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90927         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90928
90929 2004-08-01  Simon Josefsson  <jas@extundo.com>
90930
90931         * lib/xgetdomainname.c: Include stdlib.h, for free().
90932
90933 2004-07-19  Bruno Haible  <bruno@clisp.org>
90934
90935         * MODULES.html.sh (func_all_modules): Add dummy.
90936
90937 2004-07-16  Simon Josefsson  <jas@extundo.com>
90938
90939         * modules/dummy: New file.
90940
90941 2004-07-16  Simon Josefsson  <jas@extundo.com>
90942
90943         * lib/dummy.c: New file.
90944
90945 2004-07-16  Bruno Haible  <bruno@clisp.org>
90946
90947         * lib/backupfile.h: Add extern "C" for C++.
90948         * lib/closeout.h: Likewise.
90949         * lib/copy-file.h: Likewise.
90950         * lib/findprog.h: Likewise.
90951         * lib/full-write.h: Likewise.
90952         * lib/pathname.h: Likewise.
90953         * lib/progname.h: Likewise.
90954         * lib/stpcpy.h: Likewise.
90955         * lib/stpncpy.h: Likewise.
90956         * lib/strcase.h: Likewise.
90957         * lib/strstr.h: Likewise.
90958         * lib/xalloc.h: Likewise.
90959
90960         * lib/mbswidth.h: Add extern "C" for C++.
90961         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90962
90963 2004-07-13  Robert Millan  <robertmh@gnu.org>
90964
90965         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90966
90967 2004-07-09  Simon Josefsson  <jas@extundo.com>
90968
90969         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90970         failed without this.)
90971
90972 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90973
90974         * modules/chown (Files): Add lib/fchown-stub.c, since
90975         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90976
90977 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90978
90979         * lib/fchown-stub.c: New file.
90980
90981 2004-06-24  Jim Meyering  <jim@meyering.net>
90982
90983         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90984
90985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90986
90987         * modules/argz: Omit "#include".
90988
90989         * MODULES.html.sh (func_all_modules): Add calloc, to match
90990         2004-06-01 addition of calloc module.
90991
90992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90993
90994         * m4/argz.m4: New file, which is autoupdated from libtool.
90995
90996 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90997
90998         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90999         libtool.
91000
91001 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91002
91003         * config/srclist-update: Don't insist on "USA." before the
91004         close-comment, as libtool omits the period and puts the */ on a
91005         separate line.
91006         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91007         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91008
91009 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91010
91011         * modules/argz: New file.
91012         * MODULES.html.sh (func_all_modules): Add argz.
91013
91014 2004-06-12  Jim Meyering  <jim@meyering.net>
91015         and  Paul Eggert  <eggert@cs.ucla.edu>
91016
91017         * modules/hash (Files): Add lib/xalloc.h.
91018         * modules/pipe (Depends-on): Add wait-process.
91019         * modules/stat (Depends-on): Add xalloc.
91020         * modules/userspec (Files): Add lib/userspec.h.
91021         * modules/xstrto
91022
91023         Upgrade from gettext-0.13.
91024         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91025         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91026         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91027
91028 2004-06-10  Jim Meyering  <jim@meyering.net>
91029
91030         * lib/calloc.c: New file.
91031
91032 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91033
91034         * lib/getdate.y (yylex): Allow space between sign and number.
91035         Problem reported by Dan Jacobson.
91036
91037 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91038
91039         Merge from coreutils CVS.
91040
91041         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91042         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91043         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91044         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91045         xstrtol.m4: Fix copyright date and/or serial number.
91046
91047         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91048         See if we need an fchown replacement.
91049         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91050         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91051         and use the replacement function if we detect either defect.
91052
91053         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91054         gl_UTIMECMP.
91055
91056 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91057         and  Jim Meyering  <jim@meyering.net>
91058
91059         Merge from coreutils CVS.
91060
91061         * lib/stat-macros.h: New file, with contents from file-type.h
91062         and coreutils' system.h.
91063         * lib/file-type.c: Include "stat-macros.h".
91064         * lib/file-type.h (file_type): Move all macro definitions to new file,
91065         stat-macros.h.
91066
91067         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91068         Wrap old code with this conditional.
91069         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91070         function that does not dereference symlinks.
91071         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91072
91073         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91074         dependency problems.
91075         (xreadlink): Accept new arg SIZE, for efficiency.
91076         All decls and uses changed.
91077         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91078
91079         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91080         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91081
91082         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91083         sysexits.h.
91084
91085 2004-06-01  Jim Meyering  <jim@meyering.net>
91086
91087         * m4/calloc.m4: New file.
91088
91089 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91090
91091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91092         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91093         Also, fix a typo in a diagnostic.
91094
91095 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91096
91097         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91098         or AC_FUNC_REALLOC.
91099
91100 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91101
91102         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91103         macros to be defined.
91104         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91105         the allocator returns NULL because the requested size is zero.
91106
91107 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91108
91109         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91110         var.  Add comment explaining why libc still defines it.  This
91111         merges the following patch from glibc:
91112         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91113
91114 2004-05-20  Andreas Schwab  <schwab@suse.de>
91115
91116         * m4/free.m4: Replace free if it not known to work, not the other
91117         way round.
91118
91119 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91120
91121         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91122         present in glibc since revision 1.1 of this file.
91123         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91124         obstack_alignment_mask, obstack_alloc, obstack_base,
91125         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91126         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91127         obstack_grow0, obstack_init, obstack_int_grow,
91128         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91129         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91130         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91131         nonexistent functions.
91132
91133 2004-05-18  Karl Berry  <karl@gnu.org>
91134
91135         * config/srclist.txt: break link for vasnprintf.c.
91136
91137 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91138
91139         Port obstack to the AS/400, where pointers are 16 bytes wide and
91140         you cannot cast an integer to a valid pointer.  This patch is
91141         currently waiting to be integrated into glibc; see
91142         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91143
91144         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91145         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91146         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91147         (struct obstack): temp member is now a union of a pointer and
91148         an integer, instead of an integer.  All integer uses changed.
91149         This does not affect the physical layout of struct obstack,
91150         except on hosts (like the AS/400) where the size or alignment of
91151         void * is greater than that of ptrdiff_t.
91152         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91153         __STDC__)]: Store temporary in pointer member of union, not
91154         integer member.
91155         * lib/obstack.c: Include <stddef.h>, for offsetof.
91156         (struct fooalign): Remove; it doesn't need a name.
91157         (union fooround): Change double to long double, and add void *.
91158         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91159         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91160         not a macro.  Hence the values are always int; so remove all
91161         casts-to-int in uses.
91162
91163 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91164
91165         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91166         we can get this patch merged into glibc.
91167
91168 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91169             Paul Eggert  <eggert@cs.ucla.edu>
91170
91171         * m4/argp: Depend on alloca.
91172
91173 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91174             Paul Eggert  <eggert@cs.ucla.edu>
91175
91176         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91177         freecoding.
91178
91179 2004-05-17  Bruno Haible  <bruno@clisp.org>
91180
91181         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91182         precision that consists of a '.' followed by an empty digit string.
91183         Patch by Tor Lillqvist <tml@iki.fi>.
91184
91185 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91186
91187         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91188         for backward compatibility with older code.  We need our own
91189         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91190         it under some other name, and our alloca.h will define it.
91191
91192 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91193             Derek Price  <derek@ximbiot.com>
91194
91195         * lib/alloca.c: Include <alloca.h>, to get our interface.
91196         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91197         include <alloca.h> first.  Use C89 prototype for alloca; this
91198         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91199         Use #elif for simplicity, since we can assume C89 now.
91200         Don't try to source the system alloca.h since it will not be found
91201         and to prevent recursively including its replacement.
91202         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91203         * lib/regex.c: Likewise.
91204
91205 2004-05-16  Derek Price  <derek@ximbiot.com>
91206             Paul Eggert  <eggert@cs.ucla.edu>
91207
91208         getline cleanup.  This changes the getndelim2 API: both order of
91209         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91210         no delimiter).
91211
91212         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91213         interface does that.
91214         (getline): Always use getdelim, so that we don't have two
91215         copies of this code.
91216         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91217         if available.
91218         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91219         (GETNDELIM2_MAXIMUM): New macro.
91220         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91221         instead of the old practice of delim2==0.  All callers changed.
91222         Return -1 on overflow, instead of returning junk.
91223         Do not set *linesize unless allocation succeeds.
91224         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91225         that we include sys/types.h.
91226         * lib/getnline.h: Likewise.
91227         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91228         (getndelim2): Reorder arguments.
91229         * lib/getnline.c (getnline, getndelim):
91230         Don't discard the NMAX argument.
91231         (getnline): Invoke getndelim, to avoid code duplication.
91232         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91233         of (size_t) -1 by callers of the getnline family.
91234
91235 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91236
91237         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91238         Check for gettimeofday.
91239         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91240         Check for settimeofday, stime.
91241
91242 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91243
91244         * lib/nanosleep.c (suspended): Change its type from int to
91245         sig_atomic_t volatile.
91246         (first_call): Make it private to rpl_nanosleep, and have it
91247         be zero initially as that's a bit faster.
91248         (my_usleep): Round up fractional times instead of truncating them,
91249         as this is the usual meaning for 'sleep'.
91250
91251         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91252         doesn't work.
91253         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91254         (ENOSYS): Define if not defined.
91255         (settime): Fall back on stime if it exists and settimeofday fails.
91256         But don't bother with fallbacks if a method fails with errno == EPERM.
91257
91258 2004-05-11  Jim Meyering  <jim@meyering.net>
91259
91260         Prior to this change, the save_cwd caller required read access to the
91261         current directory on most systems (ones with the fchdir function).
91262
91263         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91264         fails, try write-only, and finally, resort to using xgetcwd.
91265
91266 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91267
91268         * lib/obstack.c, obstack.h: Import changes from libc.
91269
91270 2004-04-28  Bruno Haible  <bruno@clisp.org>
91271
91272         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91273         also implicitly appends .exe to executables.
91274         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91275         accepts Windows pathnames.
91276         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91277         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91278         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91279         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91280         Reported by Derek Robert Price <derek@ximbiot.com>.
91281
91282 2004-04-21  Karl Berry  <karl@gnu.org>
91283
91284         * config/srclist.txt (localcharset.c): break sync.
91285
91286 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91287
91288         * m4/host-os.m4: Add a copyright notice.
91289
91290 2004-04-20  Jim Meyering  <jim@meyering.net>
91291
91292         Change UTILS_ to gl_ in AC_DEFINE'd names.
91293         Change utils_- and jm_-prefixed variables, too.
91294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91295         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91297
91298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91299         Don't emit trailing blanks.
91300         Also rename jm_-prefixed variables to have gl_ prefix.
91301
91302         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91303         Also rename jm_-prefixed variables to have gl_ prefix.
91304
91305         * m4/jm-macros.m4: Reflect the renamings.
91306         * m4/prereq.m4: Likewise.
91307
91308 2004-04-20  Jim Meyering  <jim@meyering.net>
91309
91310         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91311         memory.
91312
91313 2004-04-20  Jim Meyering  <jim@meyering.net>
91314             Bruno Haible  <bruno@clisp.org>
91315
91316         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91317         memory when realloc fails.
91318
91319 2004-04-19  Jim Meyering  <jim@meyering.net>
91320
91321         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91322         now that readutmp.c may call `free (0)'.
91323
91324 2004-04-19  Bruno Haible  <bruno@clisp.org>
91325
91326         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91327         * m4/inttypes_h.m4: Likewise.
91328         * m4/stdint_h.m4: Likewise.
91329         * m4/intmax_t.m4: Likewise.
91330         * m4/uintmax_t.m4: Likewise.
91331
91332 2004-04-18  Jim Meyering  <jim@meyering.net>
91333
91334         * m4/prereq.m4: Don't forbid jm_ prefix.
91335
91336         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91337         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91338         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91339         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91340         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91341         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91342         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91343         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91344         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91345         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91346         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91347         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91348         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91349         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91350         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91351         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91352         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91353         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91354         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91355
91356 2004-04-18  Jim Meyering  <jim@meyering.net>
91357
91358         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91359         failure, don't leak memory and do call END_UTMP_ENT.
91360
91361 2004-04-16  Jim Meyering  <jim@meyering.net>
91362
91363         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91364         coreutils' stat program.
91365         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91366
91367 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91368
91369         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91370         C89.
91371         (CHAR_BIT): Remove, since we assume C89.
91372         Include <stdint.h> if available, as per current Autoconf CVS advice.
91373
91374 2004-03-31  Jim Meyering  <jim@meyering.net>
91375
91376         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91377         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91378         * m4/xalloc.m4: Likewise.
91379
91380 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91381
91382         Merge from coreutils.
91383
91384         * m4/inttostr.m4: New file.
91385         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91386         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91387         Require gl_CLOCK_TIME.
91388         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91389
91390 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91391
91392         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91393         not bool, to be more consistent with Unix conventions.
91394         Suggested by Bruno Haible.
91395
91396         Merge from coreutils.
91397
91398         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91399         * lib/umaxtostr.c: New files.
91400
91401         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91402         the usual <time.h> dance.
91403         (get_date): Change signature to support fractional time stamps.
91404         All callers changed.
91405         * lib/getdate.y: Include "getdate.h" first, as we can now
91406         assume C89 and don't need to worry about 'const'.
91407         Similarly, include "unlocked-io.h" near start, not in middle.
91408         Include <limits.h>.
91409         (textint.value): Use long int rather than int.
91410         (textint.digits): Use size_t rather than int.
91411         (BILLION, LOG10_BILLION): New constants.
91412         (parser_control): New member rel_ns.  Members day_ordinal,
91413         time_zone, month, day, hour, minutes, rel_year, rel_month,
91414         rel_day, rel_hour, rel_minutes, rel_seconds
91415         are now long int, not int.  Member seconds is now struct timespec,
91416         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91417         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91418         not int.
91419         (%union.intval): Now long int, not int.
91420         New member timespec.
91421         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91422         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91423         (spec): Now is a timespec or an item list.
91424         (timespec, items): New nonterminals.
91425         (time, rel, relunit, number, get_date):
91426         Add support for fractional seconds.
91427         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91428         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91429         (to_hour): First arg is now long int, not int.
91430         (to_year): Returns long int, not int.
91431         Don't treat year -70 like 70.
91432         (tm_diff): Returns long int, not int.
91433         (lookup_word): Use bool instead of int when appropriate.
91434         (yylex): Use size_t for count, not int.
91435         Detect overflow when parsing large integer constants.
91436         Add support for fractions.
91437         (get_date): Make pointers 'const' if possible.
91438         Use more-portable code to detect integer overflow.
91439         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91440         Don't use ctime; it's not reliable if the year has >4 digits.
91441
91442         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91443         This is for compatibility with BSD.
91444
91445         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91446         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91447         From coreutils' system.h.
91448
91449         * lib/userspec.c: Don't include "posixver.h".
91450         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91451         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91452         compatible extension.  Simplify code by removing a boolean int
91453         that was always nonzero if a string was nonnull.
91454
91455 2004-03-30  Jim Meyering  <jim@meyering.net>
91456
91457         Merge from coreutils.
91458
91459         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91460         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91461         on some systems one must include <grp.h> before it.
91462         Reported by Christian Krackowizer.
91463
91464 2004-03-30  Jim Meyering  <jim@meyering.net>
91465
91466         Merge from coreutils.
91467
91468         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91469
91470         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91471         an empty input stream.
91472
91473         * lib/readtokens.c: Include <stdbool.h>.
91474         (readtoken): Use `size_t' rather than int/long.
91475         All callers adjusted.
91476         Use `bool' rather than `int' where appropriate.
91477         Use memset rather than an explicit loop.
91478         Use x2nrealloc rather than xrealloc.
91479         Allow the use of `\0' as a delimiter.
91480         (readtokens): Likewise.
91481         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91482
91483 2004-03-30  Jim Meyering  <jim@meyering.net>
91484
91485         * m4/realloc.m4: Remove file, since now it does no more than
91486         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91487         the `configure.ac' section of module/realloc.
91488         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91489
91490 2004-03-30  Bruno Haible  <bruno@clisp.org>
91491
91492         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91493         nonnull.
91494
91495 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91496
91497         Merge changes to getloadavg.c from coreutils and Emacs.
91498
91499         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91500         Define to an expression, not to the empty string.
91501         Include cloexec.h and xalloc.h.
91502         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91503         Use set_cloexec_flag rather than rolling our own.
91504         * lib/cloexec.c, lib/cloexec.h: New files.
91505
91506 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91507
91508         * m4/cloexec.m4: New file.
91509
91510 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91511
91512         * lib/getopt.h: Sync with libc CVS.
91513
91514 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91515             Bruno Haible  <bruno@clisp.org>
91516
91517         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91518         mbswidth.
91519
91520 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91521             Bruno Haible  <bruno@clisp.org>
91522
91523         * lib/mbswidth.h: Include <wchar.h> only if
91524         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91525         <wchar.h>.
91526         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91527
91528 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91529
91530         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91531         Sync with libc CVS.
91532         * lib/getopt_int.h: New file, also synced from libc.
91533
91534 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91535
91536         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91537         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91538         Bring back getopt.c, getopt.h, getopt1.c.
91539
91540 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91541
91542         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91543         All uses changed.  Check for sa_sigaction member; this fixes
91544         a bug first reported by Jason Andrade in
91545         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91546
91547 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91548
91549         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91550         '#if' expressions.  Unlike the code it replaces, it does not
91551         depend on (defined _SC_PAGESIZE).  However, it does depend on
91552         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91553         first reported by Jason Andrade in
91554         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91555
91556 2004-02-25  Simon Josefsson  <jas@extundo.com>
91557
91558         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91559
91560 2004-02-25  Simon Josefsson  <jas@extundo.com>
91561
91562         * lib/strdup.h: New file.
91563         * lib/strdup.c: Include it.
91564         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91565         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91566
91567 2004-02-23  Karl Berry  <karl@gnu.org>
91568
91569         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91570         (from fencepost.gnu.org:/gd/gnuorg).
91571
91572 2004-02-23  Karl Berry  <karl@gnu.org>
91573
91574         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91575         * config/srclist.txt: add maintain/standards documents.
91576
91577 2004-02-18  Bruno Haible  <bruno@clisp.org>
91578
91579         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91580         Reported by Derek Robert Price <derek@ximbiot.com>.
91581
91582 2004-02-16  Karl Berry  <karl@gnu.org>
91583
91584         * config/mkinstalldirs, install-sh: update from automake.
91585
91586 2004-02-06  Karl Berry  <karl@gnu.org>
91587
91588         * m4/po.m4: update from gettext 0.14.1.
91589
91590 2004-02-06  Karl Berry  <karl@gnu.org>
91591
91592         * lib/config.charset: update from gettext 0.14.1.
91593
91594 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91595
91596         Add comments and code, prompted by suggestions from Bruno Haible
91597         for sh-quote.
91598         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91599         describing the enum quoting_style values.
91600         * lib/quotearg.c (quotearg_alloc): New function.
91601         (quotearg_buffer_restyled): Treat lone { and } as special.
91602         Treat = as special.  Work around bug with older shells
91603         that "see" a '\' that is really the 2nd byte of a multibyte char.
91604         Quote empty string with shell_quoting_style.
91605
91606 2004-02-03  Bruno Haible  <bruno@clisp.org>
91607
91608         * m4/pipe.m4: New file, from GNU gettext.
91609
91610 2004-02-03  Bruno Haible  <bruno@clisp.org>
91611
91612         * lib/pipe.h: New file, from GNU gettext.
91613         * lib/pipe.c: New file, from GNU gettext.
91614
91615 2004-01-27  Bruno Haible  <bruno@clisp.org>
91616
91617         * m4/execute.m4: New file, from GNU gettext.
91618
91619 2004-01-27  Bruno Haible  <bruno@clisp.org>
91620
91621         * lib/execute.h: New file, from GNU gettext.
91622         * lib/execute.c: New file, from GNU gettext.
91623         * lib/w32spawn.h: New file, from GNU gettext.
91624
91625 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91626
91627         Merge from diffutils.
91628
91629         * lib/file-type.c (file_type): Add typed memory objects.
91630         * lib/file-type.h (S_TYPEISTMO): New macro.
91631
91632         * lib/c-stack.h (c_stack_action): Remove argv argument.
91633         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91634         (die): Don't calculate message unless segv_action returns.
91635         (get_stack_location, min_address_from_argv, max_address_from_argv,
91636         volatile stack_base, volatile_stack_size): Remove.
91637         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91638         that every segmentation violation is a stack overflow.  (Ouch!)
91639         See Debian bug 136249 (still outstanding) for more info about why
91640         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91641
91642 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91643
91644         Exit-status fix from coreutils.
91645
91646         Use exit_failure consistently in place of EXIT_FAILURE,
91647         so that program exit statuses are consistent on failure.
91648
91649         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91650         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91651         * lib/argmatch.h: Comment fix to match the above.
91652         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91653         Now a macro referring to exit_failure, instead of a separate
91654         variable.  Include "exitfail.h" to get it.
91655         * lib/xstrtol.h: Include "exitfail.h".
91656         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91657
91658         * lib/long-options.c (parse_long_options): Use prototype
91659         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91660         for clarity.
91661
91662 2004-01-21  Jim Meyering  <jim@meyering.net>
91663
91664         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91665         so as not to conflict with a different-sized __mktime_internal
91666         function in GNU libc.
91667         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91668         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91669
91670 2004-01-20  Karl Berry  <karl@gnu.org>
91671
91672         * config/config.guess: update from config.
91673
91674         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91675
91676 2004-01-20  Bruno Haible  <bruno@clisp.org>
91677
91678         Safer stack allocation.
91679         * lib/setenv.c: Include allocsa.h.
91680         (alloca): Remove fallback definition.
91681         (freea): Remove macro.
91682         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91683         instead of freea.
91684
91685 2004-01-20  Bruno Haible  <bruno@clisp.org>
91686
91687         * m4/eealloc.m4: New file, from GNU gettext.
91688
91689 2004-01-20  Bruno Haible  <bruno@clisp.org>
91690
91691         * m4/allocsa.m4: New file, from GNU gettext.
91692
91693 2004-01-20  Bruno Haible  <bruno@clisp.org>
91694
91695         * lib/xallocsa.h: New file, from GNU gettext.
91696         * lib/xallocsa.c: New file, from GNU gettext.
91697
91698 2004-01-20  Bruno Haible  <bruno@clisp.org>
91699
91700         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91701
91702 2004-01-20  Bruno Haible  <bruno@clisp.org>
91703
91704         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91705         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91706         specially.
91707
91708 2004-01-20  Bruno Haible  <bruno@clisp.org>
91709
91710         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91711         patch.
91712
91713 2004-01-20  Bruno Haible  <bruno@clisp.org>
91714
91715         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91716
91717 2004-01-20  Bruno Haible  <bruno@clisp.org>
91718
91719         * lib/eealloc.h: New file.
91720
91721 2004-01-20  Bruno Haible  <bruno@clisp.org>
91722
91723         * lib/binary-io.h: Avoid warnings on Cygwin.
91724
91725 2004-01-20  Bruno Haible  <bruno@clisp.org>
91726
91727         * lib/allocsa.h: New file, from GNU gettext.
91728         * lib/allocsa.c: New file, from GNU gettext.
91729
91730 2004-01-18  Karl Berry  <karl@gnu.org>
91731
91732         * doc/gpl.texi, doc/lgpl.texi: new files.
91733
91734 2004-01-18  Karl Berry  <karl@gnu.org>
91735
91736         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91737         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91738
91739 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91740
91741         Merge from coreutils.
91742
91743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91744         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91745         (gl_DEFAULT_POSIX2_VERSION): Move
91746         the documentation from 'configure' into 'config.hin',
91747         so that 'configure --help' isn't burdened by it and
91748         we don't have to worry about its formatting there.
91749         Reword the documentation so that it's more succinct
91750         and can be run together into a single paragraph.
91751         * m4/same.m4 (gl_SAME): Check for pathconf.
91752
91753 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91754
91755         Merge from coreutils.
91756
91757         * lib/posixver.c: Include posixver.h.
91758
91759         * lib/same.c: Include <stdbool.h>, <limits.h>.
91760         (_POSIX_NAME_MAX): Define if not defined.
91761         (MIN): New macro.
91762         (same_name): If file names are silently truncated, report
91763         that the file names are the same if they are the same after
91764         the silent truncation.
91765
91766         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91767         conversion function.
91768         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91769         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91770         longer needed.
91771
91772 2004-01-15  Jim Meyering  <jim@meyering.net>
91773
91774         Merge from coreutils.
91775
91776         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91777         if no library is required.
91778         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91779         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91780         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91781         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91782         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91783         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91784         value, $ac_cv_search_crypt, if it's "none required".
91785         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91786         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91787         not gl_FUNC_GETLOADAVG.
91788         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91789         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91790
91791 2004-01-15  Jim Meyering  <jim@meyering.net>
91792
91793         Merge from coreutils.
91794
91795         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91796         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91797         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91798
91799         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91800         optional configure-time default.
91801
91802         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91803
91804         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91805
91806 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91807
91808         Merge from coreutils.
91809
91810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91811         value, $ac_cv_search_nanosleep, if it's "none required".
91812
91813 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91814
91815         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91816         with like-named macro in fnmatch.c.
91817         (EXT): Use an internal constant instead.
91818
91819         Merge fnmatch patches from glibc.
91820         * lib/fnmatch.c (mbsinit): Remove define.
91821         Add libc_hidden_ver (__fnmatch, fnmatch).
91822         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91823         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91824
91825 2004-01-14  Karl Berry  <karl@gnu.org>
91826
91827         * config/install-sh: update from automake.
91828
91829 2004-01-13  Karl Berry  <karl@gnu.org>
91830
91831         * config/install-sh: update from automake.
91832
91833 2004-01-09  Karl Berry  <karl@gnu.org>
91834
91835         * config/install-sh: update from automake.
91836
91837 2004-01-05  Karl Berry  <karl@gnu.org>
91838
91839         * config/config.{sub,guess}: update from config.
91840
91841 2003-12-31  Karl Berry  <karl@gnu.org>
91842
91843         * config/depcomp: update from automake.
91844
91845 2003-12-14  Karl Berry  <karl@gnu.org>
91846
91847         * lib/config.charset: update from gettext-runtime.
91848
91849 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91850
91851         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91852         Bug reported by Alfred M. Szmidt.
91853
91854 2003-12-03  Bruno Haible  <bruno@clisp.org>
91855
91856         * m4/gettext.m4: Upgrade from gettext-0.13.
91857         * m4/po.m4: Upgrade from gettext-0.13.
91858         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91859         * m4/intmax.m4: New file, from gettext-0.13.
91860         * m4/printf-posix.m4: New file, from gettext-0.13.
91861
91862 2003-11-29  Karl Berry  <karl@gnu.org>
91863
91864         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91865
91866 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91867             Bruno Haible  <bruno@clisp.org>
91868
91869         * lib/printf-parse.h: Don't include sys/types.h.
91870         (ARG_NONE): New macro.
91871         (char_directive): Change type of *arg_index fields to size_t.
91872         * lib/printf-parse.c: Don't include sys/types.h.
91873         (SSIZE_MAX): Remove macro.
91874         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91875         Remove unnecessary overflow check.
91876         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91877         fields.
91878
91879 2003-11-25  Bruno Haible  <bruno@clisp.org>
91880
91881         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91882
91883 2003-11-25  Bruno Haible  <bruno@clisp.org>
91884
91885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91886         gt_TYPE_SSIZE_T.
91887
91888 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91889
91890         * modules/alloca: Remove dependency on xalloc.
91891
91892 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91893
91894         * lib/alloca.c: Remove dependency on xalloc module.
91895         (xalloc_die): Remove.
91896         (memory_full) [!defined emacs]: New macro.
91897         [!defined emacs]: Don't include xalloc.h.
91898         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91899         address arithmetic overflows.  Change datatypes a bit to avoid
91900         unnecessary casts.
91901
91902 2003-11-22  Jim Meyering  <jim@meyering.net>
91903
91904         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91905         s/size/size_t/.
91906
91907 2003-11-21  Karl Berry  <karl@gnu.org>
91908
91909         * config/config.{sub,guess}: update from config.
91910
91911 2003-11-18  Karl Berry  <karl@gnu.org>
91912
91913         * config/config.{sub,guess}: update from config.
91914
91915         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91916
91917 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91918
91919         * README: Mention that S+T cannot overflow if S is the size of
91920         an existing object and T is sufficiently small.
91921
91922 2003-11-17  Jim Meyering  <jim@meyering.net>
91923
91924         On systems without utime and without a utimes function capable of
91925         dealing with a NULL struct utimbuf* argument, this utime replacement
91926         could -- in unusual circumstances -- leak a file descriptor.
91927         * lib/utime.c: Include <unistd.h> and <errno.h>.
91928         (utime_null): Be sure to close `fd' and to preserve errno.
91929         Reported by Geoff Collyer via Arnold Robbins.
91930
91931 2003-11-17  Bruno Haible  <bruno@clisp.org>
91932
91933         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91934         (Depends-on): Add xsize.
91935
91936 2003-11-17  Bruno Haible  <bruno@clisp.org>
91937
91938         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91939
91940 2003-11-17  Bruno Haible  <bruno@clisp.org>
91941
91942         * lib/vasnprintf.c (alloca): Remove fallback definition.
91943         (freea): Remove definition.
91944         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91945         Reported by Paul Eggert.
91946
91947 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91948             Bruno Haible  <bruno@clisp.org>
91949
91950         Protect against address arithmetic overflow.
91951         * lib/printf-args.h: Include stddef.h.
91952         (arguments): Change type of field 'count' to size_t.
91953         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91954         'unsigned int' where appropriate.
91955         * lib/printf-parse.h: Include sys/types.h.
91956         (char_directive): Change type of *arg_index fields to ssize_t.
91957         (char_directives): Change type of fields 'count', max_*_length to
91958         size_t.
91959         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91960         (SSIZE_MAX): Define fallback value.
91961         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91962         instead of 'int' where appropriate. Check a_allocated, d_allocated
91963         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91964         * lib/vasnprintf.c: Include xsize.h.
91965         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91966         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91967         overflow. Avoid wraparound when converting a width or precision from
91968         decimal to binary.
91969
91970 2003-11-16  Bruno Haible  <bruno@clisp.org>
91971
91972         Update from GNU gettext.
91973         * lib/printf-parse.c: Generalize to it can be compiled for wide
91974         strings.
91975         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91976         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91977         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91978         SNPRINTF): New macros.
91979         Don't include <alloca.h> if the file is used inside libintl.
91980         (local_wcslen): New function, for Solaris 2.5.1.
91981         (VASNPRINTF): Use it instead of wcslen.
91982
91983 2003-11-16  Bruno Haible  <bruno@clisp.org>
91984
91985         * lib/xsize.h (xmax): New function.
91986         (xsum, xsum3, xsum4): Declare as "pure" functions.
91987
91988 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91989
91990         * modules/xalloc (Files): Undo latest change, since xalloc.h
91991         no longer needs SIZE_MAX or PTRDIFF_MAX.
91992
91993 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91994
91995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91996         gl_PTRDIFF_MAX.
91997
91998 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91999
92000         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92001         "return", to pacify some unknown compiler.  Problem reported
92002         by Joerg Schilling.
92003
92004 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92005
92006         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92007         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92008         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92009         heuristic is just as accurate as far as we know, and it removes a
92010         dependency on size_max.m4 and ptrdiff_max.m4.
92011
92012 2003-11-11  Bruno Haible  <bruno@clisp.org>
92013
92014         * modules/xsize (Files): Add m4/size_max.m4.
92015         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92016
92017 2003-11-11  Bruno Haible  <bruno@clisp.org>
92018
92019         * m4/size_max.m4: New file.
92020         * m4/ptrdiff_max.m4: New file.
92021         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92022         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92023         (gl_XALLOC): Invoke it.
92024
92025 2003-11-11  Bruno Haible  <bruno@clisp.org>
92026
92027         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92028         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92029         defined.
92030
92031 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92032
92033         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92034         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92035         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92036         From Bruno Haible.
92037         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92038         not (size_t) -1, since it's defined here.
92039
92040 2003-11-09  Karl Berry  <karl@gnu.org>
92041
92042         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92043
92044 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92045
92046         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92047         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92048         Reject sizes of exactly SIZE_MAX bytes.
92049         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92050         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92051
92052 2003-11-05  Bruno Haible  <bruno@clisp.org>
92053
92054         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92055         SIZE_MAX defined in <limits.h> on Solaris.
92056
92057 2003-11-04  Jim Meyering  <jim@meyering.net>
92058
92059         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92060         variable names, rather than @VAR@.
92061         * modules/poll: Likewise.
92062
92063 2003-11-04  Bruno Haible  <bruno@clisp.org>
92064
92065         * modules/xsize: New file.
92066         * modules/linebreak: Depend on xsize.
92067         * MODULES.html.sh (func_all_modules): Add xsize.
92068
92069 2003-11-04  Bruno Haible  <bruno@clisp.org>
92070
92071         * m4/xsize.m4: New file.
92072
92073 2003-11-04  Bruno Haible  <bruno@clisp.org>
92074
92075         * lib/xsize.h: New file.
92076         * lib/linebreak.c: Include xsize.h.
92077         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92078         argument for overflow.
92079         Suggested by Paul Eggert.
92080
92081 2003-11-03  Karl Berry  <karl@gnu.org>
92082
92083         * config/config.{guess,sub}: update from config.
92084
92085 2003-11-03  Jim Meyering  <jim@meyering.net>
92086
92087         * modules/userspec (lib_SOURCES): Add userspec.h.
92088         (Include): Add "userspec.h".
92089         Improve description.
92090
92091 2003-11-03  Jim Meyering  <jim@meyering.net>
92092
92093         * lib/userspec.c: Include "userspec.h".
92094         * lib/userspec.h: New file.
92095
92096 2003-11-03  Bruno Haible  <bruno@clisp.org>
92097
92098         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92099
92100 2003-11-03  Bruno Haible  <bruno@clisp.org>
92101
92102         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92103         available, to avoid (extremely rare) race condition.
92104         Suggested by Paul Eggert.
92105
92106 2003-11-02  Karl Berry  <karl@gnu.org>
92107
92108         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92109
92110 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92111
92112         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92113         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92114         (read_filesystem_list): Set and use me_type_malloced.
92115         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92116         whatever the type happens to be), for brevity and consistency.
92117         Check for size calculation overflow on Alphas running OSF/1.
92118
92119 2003-10-31  Jim Meyering  <jim@meyering.net>
92120
92121         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92122
92123         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92124
92125 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92126             Bruno Haible  <bruno@clisp.org>
92127
92128         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92129         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92130
92131 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92132
92133         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92134         netbsd*-gnu*.  Suggested by Robert Millan.
92135
92136 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92137
92138         * modules/group-member: Depend on stdbool.
92139
92140 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92141
92142         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92143
92144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92145
92146         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92147         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92148         after the 'gnu' in these cases.  This fixes some bugs in the
92149         previous change, and is based on suggestions by Robert Millan.
92150
92151 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92152
92153         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92154         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92155         no longer needed.
92156         * lib/quotearg.c (quotearg_n_options): Use it.
92157         * lib/group-member.c: Include <stdbool.h>.
92158         (free_group_info): Arg is now const *; don't free arg.
92159         (get_group_info): Now returns bool and accepts struct group_info *,
92160         rather than returning a malloc'ed struct group_info *.
92161         All uses changed.  Check for overflow in internal size calculation.
92162
92163         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92164         rather than xmalloc/xrealloc.
92165         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92166         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92167         conformance bug: the old code used a pointer after freeing the
92168         storage that it addressed.
92169         * lib/hash.c (hash_initialize): Simplify the code by using
92170         xalloc_oversized rather than doing it by hand.
92171         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92172         the buffer preserved.  Use free and xmalloc instead.
92173         * lib/quotearg.c (quotearg_n_options): Likewise.
92174         Use a simpler test for size overflow.  Don't use xalloc_oversized
92175         because unsigned int might be wider than size_t (!); this suggests
92176         that we should switch from unsigned int to size_t for slot numbers.
92177
92178 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92179
92180         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92181         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92182         NetBSD kernels.  Requested by Richard Stallman.
92183
92184 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92185
92186         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92187         to allocate the returned structure.  Do not allocate a subarray,
92188         as x2nrealloc will do that.
92189         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92190         instead of xnrealloc.
92191         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92192
92193 2003-10-27  Bruno Haible  <bruno@clisp.org>
92194
92195         * lib/stdbool_.h: Better support for BeOS.
92196
92197 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92198
92199         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92200         now uses inline.
92201
92202 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92203
92204         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92205         callers that want to do their own size-overflow checking.  Include
92206         <stdbool.h>, since xalloc_oversized returns bool.
92207         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92208         to use xalloc_oversized.
92209
92210         Add two functions x2realloc, x2nrealloc, for programs that grow
92211         arrays dynamically by doubling their sizes.
92212         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92213         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92214         New functions.
92215
92216         Port to C99 semantics for 'inline' of external functions.
92217         Bug reported by Bruno Haible.
92218         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92219         with the old contents of xnmalloc.
92220         (xnmalloc, xmalloc): Use it.
92221         (xnrealloc_inline): New static inline function,
92222         with the old contents of xnrealloc.
92223         (xnrealloc, xrealloc): Use it.
92224
92225         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92226         that.
92227
92228 2003-10-26  Karl Berry  <karl@gnu.org>
92229
92230         * config/srclist.txt (COPYING.DOC): no longer available from
92231         /gd/gnuorg; don't know where the ultimate source is.
92232
92233 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92234
92235         Fix several address-calculation bugs in the hash modules,
92236         plus some minor code cleanup.
92237
92238         * lib/hash.h: Include <stdbool.h>, for bool.
92239         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92240         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92241         hash_get_n_entries, hash_get_max_bucket_length,
92242         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92243         hash_rehash): Use size_t rather than unsigned.
92244         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92245         hash_get_n_buckets_used, hash_get_n_entries,
92246         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92247         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92248         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92249         Likewise.
92250         (SIZE_MAX): Define if not defined.
92251         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92252         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92253         hash_print):
92254         Use const * when possible.
92255         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92256         (check_tuning): Fix bug: if tuning parameters were very close to
92257         0 or 1, rounding errors could have caused subscript violations.
92258         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92259         (hash_initialize): Add 'fail:' label
92260         to free table and return NULL, and use it to simplify code.
92261         Use calloc rather than clearing the storage ourself.
92262         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92263         buffer size calculations.
92264         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92265         Include <stddef.h>, for size_t.
92266         * lib/hash-pjw.c (hash_pjw): Likewise.
92267         Switch to method described by Bruno Haible.
92268         Include <limits.h>, for CHAR_BIT.
92269         (SIZE_BITS): New macro.
92270
92271 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92272
92273         * m4/getline.m4 (AM_FUNC_GETLINE):
92274         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92275         hosts.  Problem reported by Derek Robert Price in
92276         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92277         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92278         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92279
92280 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92281
92282         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92283         ceiling the allocation at NMAX bytes rather than silently
92284         discarding input bytes before NMAX is reached.  This makes
92285         a difference only if NMAX exceeds SIZE_MAX / 2.
92286
92287         * lib/obstack.c: Merge from glibc.
92288         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92289         Add libc_hidden_def (_obstack_newchunk).
92290         (_obstack_free) [! defined _LIBC]: Remove.
92291         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92292         a clone of the function body.
92293         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92294         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92295
92296         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92297         glibc.
92298         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92299         arg to memcpy.
92300
92301         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92302         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92303         Don't use lvalue casts, as GCC plans to remove support for them
92304         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92305         was also present in the non-GCC version, indicating that this
92306         code had always been buggy and had never been widely used.
92307         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92308         Use the fast variant of each macro, rather than copying the
92309         definiens of the fast variant; that way, we'll be more likely to
92310         catch future bugs in the fast variants.
92311
92312 2003-10-20  Bruno Haible  <bruno@clisp.org>
92313
92314         * modules/wait-process: New file.
92315         * MODULES.html.sh (func_all_modules): Add wait-process.
92316
92317 2003-10-20  Bruno Haible  <bruno@clisp.org>
92318
92319         * m4/wait-process.m4: New file.
92320
92321 2003-10-20  Bruno Haible  <bruno@clisp.org>
92322
92323         * lib/wait-process.h: New file, from GNU gettext.
92324         * lib/wait-process.c: New file, from GNU gettext.
92325
92326 2003-10-19  Jim Meyering  <jim@meyering.net>
92327
92328         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92329         HPUX 10.20.
92330
92331 2003-10-18  Karl Berry  <karl@gnu.org>
92332
92333         * config/config.guess: update from config.
92334
92335 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92336
92337         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92338         (getgroups): First arg is int, not size_t.
92339         Don't let 'free' mangle errno.
92340
92341 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92342
92343         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92344
92345 2003-10-16  Karl Berry  <karl@gnu.org>
92346
92347         * config/config.{guess,sub}: update from config.
92348
92349 2003-10-16  Jim Meyering  <jim@meyering.net>
92350
92351         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92352         memcpy.
92353
92354 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92355
92356         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92357         (SIZE_MAX): Remove.
92358         (new_exclude, add_exclude_file): Initial size no longer needs to
92359         be a power of 2.
92360         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92361         our own address arithmetic overflow checking.
92362
92363         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92364         (fnmatch): Do not alloca more than 2000 wide characters;
92365         instead, use malloc for large buffers.
92366         Check for address arithmetic overflow, and return -1
92367         with errno set to ENOMEM in that case.
92368         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92369         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92370         instead, return -1.  Check for address arithmetic overflow.
92371
92372 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92373
92374         Handle invalid suffixes and overflow independently, so that
92375         callers can treat them independently as needed.  Fix some bugs in
92376         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92377         suffix for a human-readable blocksize.  The major caller-visible
92378         change is the addition of a new
92379         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92380         that both overflow and suffix chars were found.
92381
92382         * lib/human.c (humblock): Don't check separately for invalid suffix
92383         char; that is xstrtoumax's job (now that its bug is fixed).
92384         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92385         INTMAX_MAX]: New macros.
92386         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92387         TYPE_MAXIMUM): New macros.
92388         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92389         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92390         if overflow occurs, as it's what __strtol does and it's more useful
92391         in practice.
92392         (__xstrtol): If __strtol reports some error other than ERANGE,
92393         reflect it to the caller as LONGINT_INVALID.  If it reports
92394         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92395         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92396         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92397         value.
92398         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92399         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92400         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92401         [defined UINTMAX_MAX]: New macros.
92402
92403 2003-10-14  Bruno Haible  <bruno@clisp.org>
92404
92405         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92406
92407 2003-10-14  Bruno Haible  <bruno@clisp.org>
92408
92409         * m4/sig_atomic_t: New file, from GNU gettext.
92410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92411
92412 2003-10-14  Bruno Haible  <bruno@clisp.org>
92413
92414         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92415         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92416         Also use volatile where needed.
92417
92418 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92419
92420         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92421         Change maintainer from Bruno Haible to 'all'.
92422
92423 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92424
92425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92426
92427 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92428
92429         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92430         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92431         and define in terms of the other primitives.
92432         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92433         (SIZE_MAX): Define if not already defined.
92434         (array_size_overflow): New function.
92435         (xalloc_die): Abort instead of exiting if 'error' returns.
92436         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92437         (xmalloc, xrealloc): Use them.
92438         (xcalloc): Check for address arithmetic overflow.
92439         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92440         a bit faster than strcpy.
92441
92442 2003-10-10  Simon Josefsson  <jas@extundo.com>
92443
92444         * modules/argp (Depends-on): Add restrict and strcase.
92445
92446 2003-10-10  Simon Josefsson  <jas@extundo.com>
92447
92448         * m4/argp.m4: Add AC_C_INLINE.
92449
92450 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92451
92452         Merge getpass from libc, plus a few fixes.
92453
92454         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92455         Include <stdbool.h>.
92456         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92457         __fsetlocking to empty.
92458         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92459         do include <bits/libc-lock.h>.
92460         Do not include <fcntl.h>; not needed.
92461         [_LIBC]: Include <wchar.h>.
92462         (NOTCANCEL_MODE): New macro.
92463         (flockfile, funlockfile) [_LIBC]: New macros.
92464         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92465         [!_LIBC]: New macros.
92466         (call_fclose): New function.
92467         (getpass): Use it.  Save tty stream separately; this simplifies the
92468         code and makes it more reliable if stdin happens to equal stdout.
92469         Invoke __fsetlocking on tty.
92470         Handle thread cancellation if needed.
92471         Namespace cleanup (use __tcgetattr, __getline).
92472         Use bool for Booleans.
92473         [USE_IN_LIBIO]: Handle wide streams.
92474         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92475         stream might go where.
92476
92477         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92478         doesn't have to include <stdio.h> before us.
92479         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92480         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92481         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92482         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92483         if not declared, so that we can use getpass.c code from libc without
92484         rewriting it.
92485         (flockfile, ftrylockfile, funlockfile): New macros.
92486
92487 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92488
92489         * modules/getpass: Depend on stdbool.
92490
92491 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92492
92493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92494
92495 2003-10-07  Karl Berry  <karl@gnu.org>
92496
92497         * config/config.{guess,sub}: update from config.
92498
92499 2003-10-06  Jim Meyering  <jim@meyering.net>
92500             Bruno Haible  <bruno@clisp.org>
92501
92502         This lets translators provide better translations for the
92503         "Written by ..." part of --version output.
92504         * lib/version-etc.h: Include stdarg.h.
92505         (version_etc_copyright): Declare as readonly.
92506         (version_etc): Make this function variadic with a NULL-terminated list
92507         of author name strings.
92508         (version_etc_va): New declaration.
92509         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92510         (version_etc_copyright): Declare as readonly.
92511         (version_etc_va): New function. Provide a different translatable string
92512         for each possible number of authors < 10. Abbreviate when there are 10
92513         authors or more.
92514         (version_etc): Make this function variadic. Call version_etc_va.
92515         Suggestion from Gary V. Vaughan.
92516
92517         * lib/long-options.h (parse_long_options): Change prototype: the
92518         authors string is moved to the end and becomes variadic.
92519         * lib/long-options.c: Include stdarg.h.
92520         (parse_long_options): Make this function variadic, too.
92521         Call version_etc_va, not version_etc.
92522
92523 2003-10-06  Bruno Haible  <bruno@clisp.org>
92524
92525         * modules/version-etc-2: Remove file.
92526         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92527
92528 2003-10-06  Bruno Haible  <bruno@clisp.org>
92529
92530         * modules/fatal-signal: New file.
92531         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92532
92533 2003-10-06  Bruno Haible  <bruno@clisp.org>
92534
92535         * m4/fatal-signal.m4: New file.
92536         * m4/signalblocking.m4: New file, from GNU gettext.
92537
92538 2003-10-06  Bruno Haible  <bruno@clisp.org>
92539
92540         * lib/version-etc-2.h: Remove file.
92541         * lib/version-etc-2.c: Remove file.
92542
92543 2003-10-06  Bruno Haible  <bruno@clisp.org>
92544
92545         * lib/fatal-signal.h: New file, from GNU gettext.
92546         * lib/fatal-signal.c: New file, from GNU gettext.
92547
92548 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92549
92550         * README: Rework advice for preventing empty .o files.
92551         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92552         not <sys/types.h>.
92553
92554 2003-10-04  Karl Berry  <karl@gnu.org>
92555
92556         * lib/argp*: update from libc.
92557
92558 2003-10-04  Karl Berry  <karl@gnu.org>
92559
92560         * config/config.{guess,sub}: update from config.
92561
92562 2003-10-02  Bruno Haible  <bruno@clisp.org>
92563
92564         * modules/lchown (Include): Add lchown.h.
92565         * modules/time_r (Include): Use "..." syntax.
92566         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92567
92568 2003-10-01  Simon Josefsson  <jas@extundo.com>
92569
92570         * MODULES.html.sh (func_all_modules): Move gethostname from section
92571         'based on' to section 'lacking' POSIX:2001.
92572
92573 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92574
92575         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92576         to output mode on the same stream.
92577
92578 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92579
92580         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92581         Fix arg typo in previous patch.
92582
92583 2003-09-28  Jim Meyering  <jim@meyering.net>
92584
92585         * lib/error.c: Correct cpp indentation.
92586
92587 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92588
92589         * modules/free: New file.
92590
92591 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92592
92593         * m4/free.m4: New file.
92594
92595 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92596
92597         * lib/minmax.h (MIN, MAX)
92598         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92599         Omit the special code that used __typeof__, since we worry that
92600         it could be more trouble than it's worth.  See:
92601         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92602         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92603
92604         * lib/free.c: New file.
92605
92606 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92607
92608         Trivial fixes to Makefile.am parts of module listings.
92609         * modules/strstr: Append strstr.h to lib_SOURCES.
92610         * modules/strcase: Likewise, for strcase.h.
92611
92612 2003-09-27  Karl Berry  <karl@gnu.org>
92613
92614         * config/mkinstalldirs: update from automake.
92615
92616 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92617
92618         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92619         (error_tail): Do not loop, reallocating temporary buffer, since
92620         the output cannot contain more wide characters than the input
92621         contains bytes, the size must be big enough already.  This avoids
92622         one potential size overflow calculation.  Check for size overflow
92623         when calculating temporary buffer size.  Free temporary buffer
92624         when done, if it was allocated with malloc; this plugs a memory
92625         leak.  Remove casts from void * to pointers, that are no longer
92626         needed now that we're assuming C89 or better.
92627
92628         Merge error changes from glibc.
92629
92630         * lib/error.c, error.h: Update copyright notice header to match glibc.
92631         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92632         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92633         Disable cancellation while printing error.
92634         * lib/error.h: Prepend __ to parameter names.
92635
92636 2003-09-26  Jim Meyering  <jim@meyering.net>
92637
92638         * lib/error.c (error_tail): Move some declarations
92639         into inner scope where the local variables are used.
92640
92641 2003-09-26  Bruno Haible  <bruno@clisp.org>
92642
92643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92644         stpncpy().
92645         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92646
92647 2003-09-26  Bruno Haible  <bruno@clisp.org>
92648
92649         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92650         (stpncpy): Define as alias for gnu_stpncpy.
92651         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92652
92653 2003-09-25  Simon Josefsson  <jas@extundo.com>
92654
92655         * lib/xgetdomainname.h: New file.
92656         * lib/xgetdomainname.c: New file.
92657
92658 2003-09-25  Simon Josefsson  <jas@extundo.com>
92659             Bruno Haible  <bruno@clisp.org>
92660
92661         * modules/getdomainname: New file.
92662         * modules/xgetdomainname: New file.
92663         * MODULES.html.sh (func_all_modules): Add getdomainname,
92664         xgetdomainname.
92665
92666 2003-09-25  Simon Josefsson  <jas@extundo.com>
92667             Bruno Haible  <bruno@clisp.org>
92668
92669         * m4/getdomainname.m4: New file.
92670
92671 2003-09-25  Simon Josefsson  <jas@extundo.com>
92672             Bruno Haible  <bruno@clisp.org>
92673
92674         * lib/getdomainname.h: New file.
92675         * lib/getdomainname.c: New file.
92676
92677 2003-09-25  Karl Berry  <karl@gnu.org>
92678
92679         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92680
92681 2003-09-25  Karl Berry  <karl@gnu.org>
92682
92683         * config/install-sh: update from automake.
92684
92685 2003-09-25  Bruno Haible  <bruno@clisp.org>
92686
92687         * modules/version-etc-2: New file, from modules/version-etc with
92688         modifications.
92689         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92690
92691 2003-09-25  Bruno Haible  <bruno@clisp.org>
92692
92693         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92694         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92695
92696 2003-09-24  Simon Josefsson  <jas@extundo.com>
92697
92698         * modules/xgethostname: Add xgethostname.h.
92699
92700 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92701
92702         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92703         the buffer associated with the argument.  Bug reported by
92704         Simon Josefsson.
92705
92706 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92707
92708         * README: Document assumptions that 'int' is at least 32 bits
92709         wide, that integer arithmetic is 2's complement without overflow,
92710         that there are no holes in integer values, that adding sizes of
92711         two nonoverlapping objects can't overflow, and that all-bits-zero
92712         yields scalar zero.  Fix spelling and capitalization typos.
92713
92714 2003-09-19  Karl Berry  <karl@gnu.org>
92715
92716         * lib/argp.h: update from libc.
92717
92718 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92719
92720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92721         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92722         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92723
92724 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92725
92726         * gnulib-tool: Use "test -h", not "test -L", for portability
92727         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92728         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92729         (sed_extract_prog): Issue s commands one-by-one, rather than
92730         using \| in one s command.
92731
92732 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92733
92734         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92735         input error, instead of returning NULL the next time we are called
92736         (and therefore losing track of errno).
92737
92738 2003-09-16  Bruno Haible  <bruno@clisp.org>
92739
92740         * gnulib-tool (func_create_testdir): Warn about duplicated
92741         dependencies.
92742
92743 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92744
92745         * modules/argmatch, modules/fatal, modules/obstack,
92746         modules/xalloc, modules/xgethostname: Sort dependencies by
92747         importance, not alphabetically.
92748
92749 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92752         fails, so that the caller gets the proper errno.
92753
92754         * lib/readutmp.c (read_utmp): Likewise.
92755         Check for fstat error.  Close stream and free storage
92756         when failing.
92757
92758 2003-09-14  Karl Berry  <karl@gnu.org>
92759
92760         * config/srclist.txt (strdup.c): disable for c89 changes.
92761
92762 2003-09-14  Jim Meyering  <jim@meyering.net>
92763
92764         * lib/getloadavg.c: Correct cpp indentation.
92765         * lib/strdup.c: Likewise.
92766         * lib/vasnprintf.c: Likewise.
92767
92768 2003-09-14  Bruno Haible  <bruno@clisp.org>
92769
92770         * modules/fwriteerror: New file.
92771         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92772
92773 2003-09-14  Bruno Haible  <bruno@clisp.org>
92774
92775         * lib/fwriteerror.h: New file.
92776         * lib/fwriteerror.c: New file.
92777
92778 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92779
92780         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92781         modules/xgethostname, modules/xalloc: Depend on exit.
92782
92783 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92784
92785         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92786
92787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92788         and AC_MINIX, too, so that their extensions are available.
92789
92790         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92791         This macro has been superseded by gl_BACKUPFILE.
92792
92793         More patches to assume C89 or better.
92794
92795         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92796
92797         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92798         unconditionally.
92799         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92800         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92801         Include <string.h>, <stdlib.h> unconditionally.
92802         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92803         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92804         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92805         headers or for string.h.
92806         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92807         or strtoul.
92808
92809         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92810         headers.
92811         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92812         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92813         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92814         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92817         memcpy, memset.
92818         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92819         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92821         strtol.
92822         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92823         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92825         strtoul.
92826
92827 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92828
92829         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92830         * lib/obstack.c [!defined _LIBC]: Likewise.
92831         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92832         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92833         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92834
92835         More changes to assume C89 or better.
92836
92837         * lib/error.c (error_tail): Assume vprintf.
92838
92839         * lib/argmatch.c (getenv): Remove decl.
92840         * lib/progreloc.c (get_full_program_name): Define via prototype.
92841         * lib/setenv.c (clearenv): Likewise.
92842         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92843         needed.
92844         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92845         (malloc, memcpy): Remove decls.
92846         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92847         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92848         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92849         (memcpy): Remove macro.
92850         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92851         (__P): Remove.  All uses removed.
92852         (PTR): Remove.  All uses changed to void *.
92853         (CHAR_BIT, NULL): Remove.
92854         (spaces, zeros, memset_space, memset_zero)
92855         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92856         Remove.
92857         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92858         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92859         Define with prototype.
92860         Remove now-unnecessary prototype decl.
92861         (extra_args_spec): Assume ANSI C.  All uses changed.
92862         (extra_args_spec_iso): Remove.
92863         (my_strftime, emacs_strftimeu): Define via prototype.
92864         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92865         unconditionally.
92866         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92867         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92868         (strtoul, strtol): Remove decls.
92869         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92870         LONG_MAX): Remove.
92871         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92872         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92873         (LOCALE_PARAM_PROTO): New macro.
92874         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92875         (INTERNAL (strtol), strtol): Define with a prototype.
92876         (PARAMS): Remove.  All uses removed.
92877         * lib/tempname.c: Include <string.h> unconditionally.
92878         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92879         * lib/xgethostname.c (main): Define with a prototype.
92880         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92881         Include <stdlib.h> unconditionally.
92882         (calloc, malloc, realloc, free): Remove decls.
92883         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92884         Include <stdlib.h> unconditionally.  Sort include file names.
92885         (strtod): Remove.
92886         (xstrtod): Define with a prototype.
92887         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92888         (strtol, strtoul): Remove decls.
92889
92890 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92891
92892         More patches to assume C89 or better.
92893         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92894         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92895         string.h, memchr, STDC_HEADERS.
92896
92897 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92898
92899         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92900         Include <stdlib.h>, <string.h> unconditionally.
92901         Remove now-unnecessary cast to char *.
92902         * lib/strnlen.c: Include <string.h> unconditionally.
92903         * lib/yesno.c (yesno): Define with a prototype.
92904
92905 2003-09-11  Bruno Haible  <bruno@clisp.org>
92906
92907         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92908
92909 2003-09-10  Jim Meyering  <jim@meyering.net>
92910
92911         * lib/error.c: Correct indentation of cpp directives.
92912
92913 2003-09-10  Bruno Haible  <bruno@clisp.org>
92914
92915         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92916         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92917         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92918         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92919         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92920         <stdlib.h> and <string.h> checks.
92921         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92922         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92923
92924 2003-09-10  Bruno Haible  <bruno@clisp.org>
92925
92926         * lib/strcspn.c: Include <string.h> unconditionally.
92927         * lib/strpbrk.c: Include <string.h> unconditionally.
92928         * lib/strstr.c: Include <string.h> unconditionally.
92929         * lib/unicodeio.c: Include <string.h> unconditionally.
92930         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92931         * lib/unsetenv.c: Likewise.
92932         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92933         * lib/yesno.c: Include <stdlib.h> unconditionally.
92934         (rpmatch): Add prototype.
92935
92936 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92937
92938         More patches to assume C89 or better.
92939         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92940         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92941         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92942         or for string.h.
92943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92944         stdlib.h.
92945         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92946         C headers.
92947         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92948         string.h.
92949         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92950         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92951         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92952         or for string.h.
92953         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92954         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92955         C headers.
92956         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92957         memcpy.
92958         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92959         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92960         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92961         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92962         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92963         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92964         string.h, free.
92965         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92966         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92967         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92968         C headers, or for string.h.
92969         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92970         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92971         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92972         headers, memory.h, stdlib.h, string.h, strings.h.
92973         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92974         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92975         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92976         strchr.
92977         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92978         headers, memory.h, string.h.
92979         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92980         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92981         free.
92982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92983         headers.
92984         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92985         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92986         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92987         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92988         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92989
92990 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92991
92992         More K&R removal.
92993
92994         * lib/acosl.c (main): Use a prototype.
92995         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92996         tanl.c: Likewise.
92997
92998         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92999
93000         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93001         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93002         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93003         with a prototype.
93004         * lib/getopt.c (const): Remove macro.
93005         Include <string.h> unconditionally.
93006         (my_index): Remove; all uses changed to strchr.
93007         (strlen): Remove decl.
93008         (exchange): Remove forward decl; no longer needed.
93009         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93010         Define with prototype.
93011         * lib/getopt1.c (const): Remove macro.
93012         (getopt_long, getopt_long_only, main): Define with prototype.
93013
93014         * lib/getugroups.c: Include <string.h> unconditionally.
93015
93016         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93017         (getusershell, setusershell, endusershell, readname, main):
93018         Define with prototypes.
93019
93020         * lib/group-member.c: Include group-member.h first.
93021         Include <stdlib.h> unconditionally.
93022
93023         * lib/hard-locale.c: Include hard-locale.h first.
93024         Include <stdlib.h>, <string.h> unconditionally.
93025
93026         * lib/hash.c (free, malloc): Remove decls.
93027         Include <stdlib.h> unconditionally.
93028
93029         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93030         (getenv): Do not declare.
93031
93032         * lib/idcache.c: Include <string.h> unconditionally.
93033
93034         * lib/long-options.c: Include long-options.h first, to test interface.
93035         Include <stdlib.h> unconditionally.
93036
93037         * lib/makepath.c: Include makepath.h first, to test interface.
93038         Include <stdlib.h> and <string.h> unconditionally.
93039
93040         * lib/linebuffer.c: Include <stdlib.h>.
93041         (free): Remove decl.
93042
93043         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93044         stddef.h. rpl_malloc returns void *, not char *.
93045         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93046         prototype.
93047
93048         * lib/md5.h: Include <limits.h> unconditionally.
93049         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93050         (__P): Remove; all uses removed.
93051         * lib/md5.c: Include "md5.h" first.
93052         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93053         md5_buffer, md5_process_bytes, md5_process_block):
93054         Define with prototypes.
93055         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93056         * lib/sha.c: Include "sha.h" first.
93057         Include <stdlib.h>, <string.h> unconditionally.
93058
93059         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93060         * lib/memcmp.c (__ptr_t): Likewise.
93061         * lib/memrchr.c (__ptr_t): Likewise.
93062         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93063         Include <string.h> unconditionally.
93064         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93065         * lib/memchr.c: Include <stdlib.h> unconditionally.
93066         * lib/memchr.c (LONG_MAX): Remove.
93067         * lib/memrchr.c (LONG_MAX): Likewise.
93068         * lib/memchr.c (__memchr): Define via a prototype.
93069         * lib/memrchr.c (__memrchr): Likewise.
93070         * lib/memcmp.c (__P): Remove, and remove all uses.
93071         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93072         Remove forward decls; no longer needed.
93073         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93074         Use types required by C89 in prototype.
93075
93076         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93077         * lib/savedir.c: Likewise.
93078         * lib/mkdir.c (free): Remove decl.
93079         * lib/rmdir.c (rmdir): Define with a prototype.
93080         * lib/savedir.c: Include savedir.h first, to test interface.
93081
93082         * lib/mktime.c (STDC_HEADERS): Remove.
93083         Include <stdlib.h>, <string.h> unconditionally.
93084
93085         * lib/modechange.c: Include <stdlib.h> unconditionally.
93086         (malloc): Remove decl.
93087
93088         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93089         (free): Remove decl.
93090
93091         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93092         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93093         (This type really should be intptr_t, but that's a C99ism.)
93094         (_obstack_memcpy): Remove: all uses changed to memcpy.
93095         Include <string.h> unconditionally.
93096         (struct obstack): Assume __STDC__ for types of members
93097         chunkfun, freefun, extra_arg.
93098         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93099         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93100         obstack_begin, obstack_specify_allocation,
93101         obstack_specify_allocation_with_arg, obstack_chunkfun,
93102         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93103         Remove unprototyped decls and the macros that use them.
93104         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93105         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93106         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93107         (defined __STDC__ && __STDC__)]:
93108         Remove nonprototyped code.
93109         Include <stdlib.h> unconditionally.
93110         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93111         _obstack_allocated_p, _obstack_free, obstack_free,
93112         _obstack_memory_used, print_and_abort):
93113         Define using prototypes.
93114         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93115         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93116         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93117         obstack_next_free, obstack_object_size, obstack_room) [0]:
93118         Remove unused, unprototyped code.
93119
93120         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93121
93122         * lib/physmem.c (physmem_total, physmem_available, main): Define
93123         with prototypes.
93124
93125         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93126         (main): Define with a prototype.
93127
93128         * lib/posixver.c (getenv): Remove decl.
93129
93130         * lib/putenv.c (malloc): Returns void *, not char *.
93131         Include <string.h> unconditionally.
93132         (strchr, memcpy, NULL): Do not define.
93133
93134         * lib/readtokens.c: Include readtokens.h first, to test interface.
93135         Include <stdlib.h>, <string.h> unconditionally.
93136         (init_tokenbuffer): Define with a prototype.
93137
93138         * lib/regex.c (PARAMS): Remove.  All uses removed.
93139         All uses of _RE_ARGS removed, too.
93140         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93141         unconditionally.
93142         (bzero): Assume memset exists.
93143         (memcmp, memcpy, NULL): Remove.
93144         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93145         char, or assignments to local vars of type signed char.
93146         (init_syntax_once, PREFIX(extract_number_and_incr),
93147         PREFIX(print_partial_compiled_pattern),
93148         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93149         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93150         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93151         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93152         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93153         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93154         wcs_compile_range, byte_compile_range, truncate_wchar,
93155         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93156         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93157         count_mbs_length, wcs_re_match_2_internal,
93158         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93159         PREFIX(alt_match_null_string_p),
93160         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93161         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93162         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93163         now-unnecessary declaration, if any.
93164         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93165         regcomp, regexec):
93166         Remove now-unnecessary casts among pointer types.
93167         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93168
93169         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93170         (free): Remove decl.
93171
93172         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93173
93174         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93175         (free): Remove decl.
93176
93177         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93178         * lib/xgetcwd.c: Likewise.
93179
93180         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93181         (free): Remove decl.
93182
93183         * lib/strchrnul.c (strchrnul): Define with a prototype.
93184         Fix bug: c_in was not converted to char before searching.
93185
93186         The following changes are not K&R related:
93187
93188         * lib/group-member.h: Include <sys/types.h>, so that this file is
93189         self-contained.
93190         * lib/makepath.h: Likewise.
93191
93192         * lib/getusershell.c (readname, default_index, line_size, readname):
93193         Use size_t, not int, for sizes.
93194         (readname): If the size overflows, report an error instead of
93195         looping forever.
93196
93197 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93198
93199         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93200         libc.
93201
93202 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93203
93204         * README: New section: portability guidelines.
93205
93206 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93207
93208         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93209         C89 spec.
93210
93211 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93212
93213         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93214
93215 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93216
93217         Assume C89 or better; remove K&R cruft.
93218         A few of these changes were first proposed by Derek Robert Price
93219         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93220
93221         * lib/addext.c: Include <string.h> unconditionally.
93222         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93223         Don't declare getenv or malloc.
93224
93225         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93226         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93227         (NULL): Remove.
93228         (find_stack_direction, alloca): Use prototypes.
93229
93230         * lib/atexit.c (atexit): Define using a prototype.
93231
93232         * lib/basename.c, dirname.c, stripslash.c:
93233         Include <string.h> unconditionally.
93234
93235         * lib/bcopy.c: Include <stddef.h>.
93236         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93237
93238         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93239
93240         * lib/error.h (error, error_at_line, error_print_progname)
93241         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93242         * lib/error.c: Include error.h first, to check interface.
93243         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93244         (VA_START): Remove; all uses changeed to va_start.
93245         (exit, strerror): Remove decls.
93246         (error_print_progname): Prototype uncondionally.
93247         Don't include <errno.h>; no longer needed.
93248         (private_strerror): Remove.
93249         (error_tail): Always define.
93250         (error, error_at_line): Assume C89 or better; always use prototypes.
93251         * lib/fatal.c: Include "fatal.h" first, to test interface.
93252         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93253         (VA_START): Remove; all uses changed to va_start.
93254         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93255         this case.
93256         (exit): Remove decl.
93257         (fatal): Prototype unconditionally.  Assume va_start works.
93258         Abort at end, to pacify gcc.
93259
93260         * lib/euidaccess.c (main): Define with a prototype.
93261
93262         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93263
93264         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93265
93266         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93267         prototypes.
93268         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93269         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93270         (getenv): Remove decl.
93271         (fnmatch): Define using a prototype.
93272         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93273         (FCT): Define using a prototype.
93274
93275         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93276
93277         * lib/gethostname.c: Include <stddef.h>.
93278         (gethostname): Define with prototype.  Length is size_t, not int.
93279
93280 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93281
93282         Assume C89 or better; remove K&R cruft.
93283         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93284         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93285         string.h, getenv, malloc.
93286         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93287         headers.
93288         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93289         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93290         do not check for strerror.
93291         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93292         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93293         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93294         do not check for doprnt or vprintf.
93295         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93296         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93297
93298 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93299
93300         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93301         getversion.c should have been removed then, but was accidentally
93302         preserved.
93303
93304         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93305         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93306
93307 2003-09-08  Karl Berry  <karl@gnu.org>
93308
93309         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93310                 config, forget about prep.
93311
93312         * config/depcomp, missing: update from automake.
93313
93314 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93315
93316         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93317         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93318
93319 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93320
93321         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93322         copy_tm_result.  Bug reported by Simon Josefsson in
93323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93324
93325 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93326
93327         * m4/time_r.m4: New file.
93328         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93329         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93330         is. Check for timegm declaration.
93331         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93332         Do not check for gmtime_r.
93333         Replace mktime if __mktime_internal does not exist and if mktime
93334         hasn't been replaced already.
93335
93336 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93337
93338         * lib/time_r.c, lib/time_r.h: New files.
93339
93340         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93341         __localtime_r.
93342         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93343         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93344
93345         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93346         __gmtime_r.
93347         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93348         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93349         Include <time_r.h>.
93350
93351         * lib/timegm.c: Switch to glibc implementation, with the following
93352         changes:
93353         [defined HAVE_CONFIG_H]: Include <config.h>.
93354         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93355         (__mktime_internal) [!defined _LIBC]: New decl.
93356         (__gmtime_r) [!defined _LIBC]: New macro and function.
93357         (timegm): Use a prototype, since gnulib assumes C89.
93358         Do not bother declaring tmp to be const, as it's not really usefu.
93359         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93360         (timegm): Declare only if HAVE_DECL_TIMEGM.
93361
93362 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93363
93364         * MODULES.html.sh (func_all_modules): Add time_r.
93365         * modules/time_r: New file.
93366         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93367         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93368
93369 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93370
93371         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93372         Bug reported by Lute Kamstra in
93373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93374
93375         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93376         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93377         course with correspondingly smaller numbers for tomorrow and
93378         yesterday.  From Tadayoshi Funaba.  Originally installed into
93379         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93380         coreutils merge?).
93381
93382 2003-08-31  Simon Josefsson  <jas@extundo.com>
93383
93384         * modules/timegm: New file.
93385         * MODULES.html.sh (func_all_modules): Add timegm.
93386
93387 2003-08-31  Simon Josefsson  <jas@extundo.com>
93388
93389         * m4/timegm.m4: New file.
93390
93391 2003-08-31  Simon Josefsson  <jas@extundo.com>
93392
93393         * lib/timegm.h: New file.
93394         * lib/timegm.c: New file.  Based on
93395         wget-1.8.2/src/http.c:mktime_from_utc.
93396
93397 2003-08-31  Karl Berry  <karl@gnu.org>
93398
93399         * lib/argp.h: update from libc.
93400
93401 2003-08-28  Bruno Haible  <bruno@clisp.org>
93402
93403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93404         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93405         followed by '#define fnmatch fnmatch_posix' gives an error.
93406
93407 2003-08-28  Bruno Haible  <bruno@clisp.org>
93408
93409         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93410         warning on QNX, which defines O_BINARY to 000000.
93411
93412 2003-08-27  Jim Meyering  <jim@meyering.net>
93413
93414         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93415         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93416         would fail after 32.  Reported by Danny Levinson.  Details here:
93417         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93418
93419 2003-08-24  Bruno Haible  <bruno@clisp.org>
93420
93421         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93422         MSVC7 <stdio.h> is included later.
93423
93424 2003-08-22  Simon Josefsson  <jas@extundo.com>
93425
93426         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93427
93428 2003-08-20  Karl Berry  <karl@gnu.org>
93429
93430         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93431
93432 2003-08-20  Bruno Haible  <bruno@clisp.org>
93433
93434         * modules/progname: New file.
93435         * MODULES.html.sh (func_all_modules): Add progname.
93436
93437 2003-08-20  Bruno Haible  <bruno@clisp.org>
93438
93439         * lib/progname.h: New file, from GNU gettext.
93440         * lib/progname.c: New file, from GNU gettext.
93441         * lib/progreloc.c: New file, from GNU gettext.
93442
93443 2003-08-19  Jim Meyering  <jim@meyering.net>
93444
93445         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93446         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93447
93448 2003-08-19  Bruno Haible  <bruno@clisp.org>
93449
93450         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93451         more.
93452
93453 2003-08-19  Bruno Haible  <bruno@clisp.org>
93454
93455         * lib/xstrdup.c: Assume <string.h> exists.
93456
93457 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93458
93459         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93460         in makefile rules.
93461
93462 2003-08-18  Jim Meyering  <jim@meyering.net>
93463
93464         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93465         * m4/lib-ld.m4: Likewise.
93466
93467 2003-08-18  Jim Meyering  <jim@meyering.net>
93468
93469         * lib/setenv.h: Indent nested cpp directive.
93470         * lib/vasnprintf.c: Remove trailing blanks.
93471
93472 2003-08-17  Simon Josefsson  <jas@extundo.com>
93473
93474         * modules/xstrndup: New file.
93475         * MODULES.html.sh (func_all_modules): Add xstrndup.
93476
93477 2003-08-17  Simon Josefsson  <jas@extundo.com>
93478
93479         * modules/argp: Fix autoconf macro name. Add more dependencies.
93480
93481 2003-08-17  Simon Josefsson  <jas@extundo.com>
93482
93483         * m4/xstrndup.m4: New file.
93484
93485 2003-08-17  Simon Josefsson  <jas@extundo.com>
93486
93487         * m4/argp.m4: New file.
93488
93489 2003-08-17  Simon Josefsson  <jas@extundo.com>
93490             Bruno Haible  <bruno@clisp.org>
93491
93492         * lib/xstrndup.h: New file.
93493         * lib/xstrndup.c: New file.
93494
93495 2003-08-17  Bruno Haible  <bruno@clisp.org>
93496
93497         * modules/strndup (Files, Include): Add lib/strndup.h.
93498
93499 2003-08-17  Bruno Haible  <bruno@clisp.org>
93500
93501         * modules/euidaccess (Files): Add lib/euidaccess.h.
93502
93503 2003-08-17  Bruno Haible  <bruno@clisp.org>
93504
93505         * lib/strndup.h: New file.
93506
93507 2003-08-17  Bruno Haible  <bruno@clisp.org>
93508
93509         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93510         like AC_GNU_SOURCE.
93511         * modules/extensions (configure.ac): Comment out the invocation of
93512         gl_USE_SYSTEM_EXTENSIONS.
93513
93514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93515
93516         Merges from coreutils, etc.
93517         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93518         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93519         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93520         fixing a typo.
93521         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93522         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93523
93524 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93525
93526         Document merge from coreutils.
93527         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93528         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93529         * modules/utime: Add m4/utimes-null.m4.
93530
93531 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93532
93533         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93534         space, undoing this 2003-08-12 change:
93535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93536
93537 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93538
93539         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93540         strtoul.c from libc, undoing this 2003-08-12 change:
93541         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93542
93543 2003-08-16  Jim Meyering  <jim@meyering.net>
93544
93545         Merges from coreutils.
93546         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93547         prefix.  Adjust cache variables similarly.  Create 500 rather than
93548         just 300 files, to exercise bug on Darwin6.5, too.
93549         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93550         $missing_dir.
93551         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93552         AM_SYS_POSIX_TERMIOS.
93553         Reported by mkc@mathdogs.com.
93554         Also change use of $am_cv_sys_posix_termios
93555         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93556         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93557         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93558         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93559         in /proc/mounts until it finds one with matching device number.  This
93560         is unnecessary when the FILE argument *is* a mount point.  No stat call
93561         is necessary in that case.  So, disable the statvfs-testing code on
93562         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93563         as RedHat bug# 84846.
93564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93565         to 1MB, so as not to render systems with no stack size limit (e.g.,
93566         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93567         Include <unistd.h>.  On some systems,
93568         it is required for the definition of _SC_PAGESIZE.
93569
93570 2003-08-16  Jim Meyering  <jim@meyering.net>
93571
93572         Merge from coreutils.
93573         * lib/xstrtoimax.c: #else #if -> #elif.
93574         * lib/xstrtoumax.c: Likewise.
93575
93576 2003-08-16  Jim Meyering  <jim@meyering.net>
93577
93578         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93579         * m4/utimes.m4: Removed.
93580         * m4/utimes-null.m4: Renamed from utimes.m4.
93581
93582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93583         to 1MB, so as not to render systems with no stack size limit (e.g.,
93584         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93585         Include <unistd.h>.  On some systems,
93586         it is required for the definition of _SC_PAGESIZE.
93587
93588 2003-08-16  Jim Meyering  <jim@meyering.net>
93589         and Paul Eggert  <eggert@cs.ucla.edu>
93590
93591         Merges from coreutils, etc.
93592
93593         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93594         using the latest version from cvs.  This avoids problems with #line
93595         directives using a vendor (Sun) compiler.
93596         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93597         Don't set GETGROUPS_LIB here; now it's
93598         done via getgroups.m4's wrapper function.
93599         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93600         rather than just in sh-util/configure.in, so that the
93601         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93602         same.
93603         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93604         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93605         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93606         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93607         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93608         Remove code that is now done by the newly-required macros.
93609         Append $(EXEEXT) to DF_PROG.
93610         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93611         Do not invoke or require the following here,
93612         since prereq.m4 or some gnulib .m4 now does this for us:
93613         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93614         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93615         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93616         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93617         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93618         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93619         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93620         AC_FUNC_OBSTACK.
93621         Do not replace the following functions, as this is now the job
93622         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93623         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93624         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93625         atexit getpass, strdup, getpagesize.
93626         Replace 'raise'.
93627         Do not check for the following functions, as this is now the job
93628         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93629         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93630         setregid.
93631         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93632         Check for sys/sysctl.h.
93633         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93634         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93635         of checking for ssize_t ourselves.
93636
93637         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93638         Require every macro that gnulib/modules/* suggests for us.
93639         (jm_PREREQ_ADDEXT): New macro.
93640         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93641         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93642
93643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93644         (gl_PHYSMEM): Use it.
93645         Also check for `table' function.
93646         Check for new headers and functions.
93647         Add check for sys/sysmp.h.
93648         With suggestions from Kaveh Ghazi.
93649         Ignore headers that are present but cannot be compiled.  This
93650         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93651         C 5.4.
93652
93653 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93654
93655         Document merge from coreutils.
93656         * modules/userspec: Depend on posixver.
93657         * modules/strftime: Depend on tzset.
93658
93659 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93660
93661         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93662         rather than tab, after '#' in shell-script copyright notices.
93663         Suggested by Bruno Haible.
93664
93665 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93666
93667         * config/srclist-update: Use three spaces, rather than tab, after '#'
93668         in shell-script copyright notices.  Suggested by Bruno Haible.
93669         Remove unnecessary parenthesization in regular expression.
93670
93671 2003-08-15  Jim Meyering  <jim@meyering.net>
93672
93673         Merge from coreutils.
93674         * lib/xgethostname.c: Include <stdlib.h>.
93675         (xghostname): Don't exit for anything other than memory-related
93676         failure; just return NULL.
93677         * lib/userspec.c: Include "posixver.h".
93678         (parse_user_spec): Accept `.' as a separator only
93679         in pre-POSIX-200112 mode.
93680         * lib/strtoimax.c: Use #elif rather than #else #if.
93681         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93682         Remove function, now that we can rely on a working tzset function.
93683         [!_LIBC]: Ensure that the required autoconf test has been run.
93684         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93685         Use underlying_strftime for %r.
93686         * lib/sha.c: Merge in some clean-up and optimization changes from
93687         glibc.
93688         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93689         Ensure that it is a multiple of 64.
93690         Rearrange loop exit tests so as to avoid performing an
93691         additional fread after encountering an error or EOF.
93692         * lib/realloc.c: Update copyright date.
93693
93694 2003-08-15  Jim Meyering  <jim@meyering.net>
93695         and Paul Eggert  <eggert@twinsun.com>
93696
93697         Merge from coreutils.
93698         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93699         member but strut utmpx does not.  Needed for AIX 4.3.3.
93700         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93701
93702 2003-08-15  Jim Meyering  <jim@meyering.net>
93703         and Paul Eggert  <eggert@cs.ucla.edu>
93704
93705         Merges from coreutils, etc.
93706         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93707         Require gl_FUNC_TZSET_CLOBBER.
93708         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93709         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93710         members.
93711
93712 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93713
93714         Help the merge from coreutils.
93715         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93716         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93717         * m4/tzset.m4: Use it too.
93718
93719 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93720
93721         * modules/tzset: New file.
93722
93723 2003-08-14  Jim Meyering  <jim@meyering.net>
93724
93725         Merges from coreutils.
93726         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93727         variable names, rather than @FNMATCH_H@.
93728         * modules/alloca: Likewise for $(ALLOCA_H).
93729
93730         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93731         the three copies of the literal target, `fnmatch.h'.
93732         * modules/alloca (alloca.h): Likewise.
93733
93734 2003-08-14  Jim Meyering  <jim@meyering.net>
93735
93736         Merge from coreutils.
93737         * m4/tzset.m4: New file.
93738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93739         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93740         otherwise, AIX 5.1 systems would end up using the latter.
93741         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93742         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93743         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93744         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93745
93746 2003-08-14  Jim Meyering  <jim@meyering.net>
93747
93748         Merge from coreutils.
93749         * lib/obstack.h: Whitespace changes.
93750         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93751         and xcalloc return values.
93752         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93753         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93754         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93755         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93756         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93757         error from mntctl.
93758         Use mntctl's return value to drive the entry-processing loop, since
93759         we can't rely on the value of the vmt_length member in the last
93760         entry.  On some systems doing so could result in exhausting
93761         virtual memory.  Based in part on a patch from Mike Jetzer.
93762
93763 2003-08-14  Jim Meyering  <jim@meyering.net>
93764         and Paul Eggert  <eggert@twinsun.com>
93765
93766         Merges from coreutils, plus other fixes.
93767         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93768         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93769         for credits and details.  Thanks to Kaveh Ghazi for helping
93770         to keep these files in sync.
93771         (ARRAY_SIZE): Define it.
93772         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93773         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93774         (memcasecmp): Don't assume size_t fits in unsigned int.
93775         Remove casts and duplicate code.
93776         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93777         (memcpy): Remove definition.
93778         Merge in some clean-up and optimization changes from glibc.
93779         [BLOCKSIZE]: Move definition to top of file.
93780         Ensure that it is a multiple of 64.
93781         Rearrange loop exit tests so as to avoid performing an
93782         additional fread after encountering an error or EOF.
93783         * lib/md5.h (md5_uintptr): Define.
93784         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93785         return to the initial working directory.  Preserve errno
93786         for caller.
93787         * lib/idcache.c: Include "xalloc.h".
93788         (xmalloc, xrealloc): Remove decls.
93789         (getuser): Remove casts no longer required in C89.
93790         * lib/human.c: Include stdio.h, for sprintf.
93791         * lib/group-member.c: Include "xalloc.h".
93792         (xmalloc, xrealloc): Remove decls.
93793         (get_group_info): Remove casts no longer required in C89.
93794         * lib/getusershell.c (readname): Remove casts no longer required in
93795         C89.
93796         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93797         * lib/getline.c: Whitespace fix, from coreutils.
93798
93799 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93800
93801         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93802         Check for isascii.
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         Undo previous (whitespace-only) change.
93807
93808 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93809
93810         * lib/exclude.c: Include <ctype.h>
93811         (IN_CTYPE_DOMAIN): New macro.
93812         (is_space): New fn.
93813         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93814         and empty lines.
93815
93816         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93817         Undo previous (whitespace-only) change.
93818
93819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93820
93821         * config/srclist-update: Change update back to the old behavior,
93822         leaving whitespace alone.  Use one 'sed' command rather than a
93823         pipeline.
93824         (fixlicense): Now a variable, not a function.
93825         (remove_trailing_blanks): Remove.
93826         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93827         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93828         Undo previous (whitespace-only) change.
93829
93830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93831
93832         Merge from coreutils.
93833         * modules/euidaccess: Add lib_SOURCES, include for new
93834         file euidaccess.h
93835
93836 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93837
93838         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93839         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93840         Normalize leading white space and remove trailing white space.
93841
93842         Merge from coreutils
93843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93844
93845         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93846         0.12.1.  These files are now being upgraded automatically by
93847         ../config/srclist-update.
93848
93849 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93850
93851         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93852         Normalize leading white space and remove trailing white space.
93853         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93854         notice, as per ../config/srclist-update.
93855
93856         Merge from coreutils.
93857         * lib/euidaccess.h: New file.
93858         * lib/euidaccess.c: Include it.
93859         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93860         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93861         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93862
93863 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93864
93865         * config/srclist-update: Add copyright notice.
93866         (remove_id_lines, remove_trailing_blanks): New constants.
93867         (fixfile): Use them to normalize spacing a bit in copied files.
93868         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93869         Normalize leading white space and remove trailing white space.
93870
93871         * config/texinfo.tex: Sync with texinfo.
93872
93873         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93874         strtoul.c from libc, to merge coreutils whitespace changes.
93875
93876         * config/srclist.txt: Get the following m4 files from gettext:
93877         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93878         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93879         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93880         wint_t.m4.
93881
93882 2003-08-12  Karl Berry  <karl@gnu.org>
93883
93884         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93885         been made.
93886
93887 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93888
93889         * modules/gnu-source, m4/gnu-source.m4:
93890         Remove; we're assuming Autoconf 2.54 or later now.
93891         Suggested by Bruno Haible.
93892         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93893
93894 2003-08-11  Bruno Haible  <bruno@clisp.org>
93895
93896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93897
93898 2003-08-11  Bruno Haible  <bruno@clisp.org>
93899
93900         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93901         (vasnprintf): Use it instead of wcslen.
93902
93903 2003-08-11  Bruno Haible  <bruno@clisp.org>
93904
93905         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93906         value to ensure that _Bool promotes to int. Use #define for _Bool when
93907         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93908
93909 2003-08-10  Karl Berry  <karl@gnu.org>
93910
93911         * lib/regex.h: update from libc (whitespace fix).
93912
93913 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93914
93915         Merge some files from coreutils.  These changes were
93916         originally made by Jim Meyering.
93917         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93918         many older Unixes require this.
93919         * lib/alloca.c (alloca): Remove cast to argument of free;
93920         no longer needed in C89.
93921         * lib/alloca_.h, regex.h: Fix white space to match
93922         what GNU indent does.
93923
93924 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93925
93926         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93927         apparently Emacs's Unicode mode got confused before my 2003-08-05
93928         checkin.
93929
93930 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93931
93932         * m4/extensions.m4: New file.
93933         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93934         Require gl_USE_SYSTEM_EXTENSIONS.
93935         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93936         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93937
93938 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93939
93940         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93941         * modules/extensions, modules/gnu-source: New files.
93942         * modules/timespec, modules/unlocked-io: Depend on extensions.
93943
93944 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93945
93946         * modules/restrict: New file.
93947         * MODULES.html.sh (func_all_modules): Add restrict.
93948         * modules/regex: Depend on restrict.
93949
93950 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93951
93952         * m4/restrict.m4: New file.
93953         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93954
93955 2003-08-07  Bruno Haible  <bruno@clisp.org>
93956
93957         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93958         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93959
93960 2003-08-07  Bruno Haible  <bruno@clisp.org>
93961
93962         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93963         makes the module 'getndelim2' compatible with the module 'getline'.
93964
93965 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93966
93967         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93968         byte with "\201" to avoid glitches when editing that source file
93969         with multi-gnome-terminal.
93970
93971 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93972
93973         * lib/bumpalloc.h: Remove.
93974
93975 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93976
93977         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93978         * modules/bumpalloc: Remove.
93979
93980 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93981
93982         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93983         GNU coding style.
93984
93985         Merge from coreutils.
93986         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93987         1. From glibc.
93988         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93989         from Karl Berry, implemented by Jim Meyering.
93990         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93991         from Dmitry V. Levin.
93992         Remove anachronistic cast of xrealloc.
93993         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93994         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93995         type. Otherwise, it wouldn't compile with at least /bin/cc on
93996         ymp-cray-unicos9.0.2.X.
93997         Combine two mostly-identical uses of alloca into one.
93998         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93999
94000 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94001
94002         [From Emacs.]
94003
94004         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94005         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94006         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94007         obsolete NLIST_NAME_UNION.
94008         [__GNU__]: Undef BSD and FSCALE.
94009         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94010
94011 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94012
94013         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94014         an enum type, so that it's guaranteed to promote to int.  See:
94015         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94016
94017 2003-08-03  Karl Berry  <karl@gnu.org>
94018
94019         * config/depcomp: update from automake.
94020
94021 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94022
94023         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94024         (strerror): Don't assume that a printable int fits in 14 bytes.
94025
94026 2003-07-31  Bruno Haible  <bruno@clisp.org>
94027
94028         * modules/getpass-gnu: New file.
94029         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94030
94031 2003-07-31  Bruno Haible  <bruno@clisp.org>
94032
94033         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94034
94035 2003-07-24  Karl Berry  <karl@gnu.org>
94036
94037         * config/missing: update from automake.
94038
94039 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94040             Bruno Haible  <bruno@clisp.org>
94041
94042         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94043         * lib/getline.c (getline, getdelim): Likewise.
94044         Remove _GNU_SOURCE define; now it's defined in config.h through
94045         m4/getline.m4.
94046
94047 2003-07-23  Karl Berry  <karl@gnu.org>
94048
94049         * config/config.sub: update from prep.
94050
94051 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94052
94053         * modules/xalloc (Depends-on): Add exitfail.
94054         * modules/xmemcoll: Likewise.
94055
94056 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94057
94058         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94059         over-parenthesization in macros.
94060
94061         Sync with coreutils.
94062
94063         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94064         required by C99.
94065
94066         Use `exit_failure' for xalloc and xmemcoll instead of their own
94067         private exit-failure variables.
94068         * lib/xalloc.h (xalloc_exit_failure): Remove.
94069         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94070         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94071         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94072         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94073         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94074
94075 2003-07-20  Jim Meyering  <jim@meyering.net>
94076
94077         * modules/closeout (Depends-on): Add exitfail.
94078         Suggestion from Bruno Haible.
94079
94080 2003-07-19  Karl Berry  <karl@gnu.org>
94081
94082         * config/config.sub: update from prep.
94083
94084 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94085
94086         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94087         Remove.
94088         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94089         to test that it can stand by itself.  Include "exitfail.h".
94090         Clients should set exit_failure instead.
94091         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94092
94093 2003-07-18  Bruno Haible  <bruno@clisp.org>
94094
94095         * modules/getndelim2: New file.
94096         * modules/getline: Share files with module getndelim2.
94097         * modules/getnline: Depend on getndelim2 instead of sharing files with
94098         it. Add getnline.c to lib_SOURCES.
94099         * MODULES.html.sh (func_all_modules): Add getndelim2.
94100
94101 2003-07-18  Bruno Haible  <bruno@clisp.org>
94102
94103         * m4/getndelim2.m4: New file.
94104         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94105         invoke gl_PREREQ_GETNDELIM2.
94106         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94107         gl_PREREQ_GETNDELIM2.
94108         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94109         gl_GETNDELIM2.
94110
94111 2003-07-18  Bruno Haible  <bruno@clisp.org>
94112
94113         * lib/getndelim2.h: New file.
94114         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94115         getndelim2.h.
94116         (getndelim2): Make non-static. Change return type to ssize_t.
94117         * lib/getline.h: Change argument names.
94118         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94119         * lib/getnline.c: Include getndelim2.h.
94120
94121 2003-07-18  Andreas Schwab  <schwab@suse.de>
94122
94123         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94124
94125 2003-07-17  Karl Berry  <karl@gnu.org>
94126
94127         * config/config.sub: update from prep.
94128
94129 2003-07-17  Bruno Haible  <bruno@clisp.org>
94130
94131         * modules/getnline: New file.
94132         * modules/getline: Add lib/getndelim2.c to source file list.
94133         * MODULES.html.sh (func_all_modules): Add getnline.
94134
94135 2003-07-17  Bruno Haible  <bruno@clisp.org>
94136
94137         * m4/getnline.m4: New file.
94138
94139 2003-07-17  Bruno Haible  <bruno@clisp.org>
94140
94141         * m4/Makefile.am.in: Remove file.
94142         * m4/Makefile.am: Remove file.
94143         * m4/Makefile.in: Remove file.
94144
94145 2003-07-17  Bruno Haible  <bruno@clisp.org>
94146
94147         * lib/getnline.h: New file.
94148         * lib/getnline.c: New file.
94149         * lib/getndelim2.c: New file, extracted from getline.c.
94150         (getndelim2): Renamed from getdelim2, with added nmax argument.
94151         * lib/getline.c: Include getndelim2.c.
94152         (getdelim2): Moved out to getndelim2.c.
94153         (getline, getdelim): Update.
94154
94155 2003-07-17  Bruno Haible  <bruno@clisp.org>
94156
94157         * lib/Makefile.am: Remove file.
94158         * lib/Makefile.in: Remove file.
94159
94160 2003-07-17  Bruno Haible  <bruno@clisp.org>
94161
94162         * configure.in: Remove file.
94163         * Makefile.in: Remove file.
94164
94165 2003-07-17  Bruno Haible  <bruno@clisp.org>
94166
94167         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94168
94169 2003-07-16  Karl Berry  <karl@gnu.org>
94170
94171         * config/srclist-update: was running fixlicense twice, which caused
94172                 texinfo.tex to be nullified for some reason.  Simplify,
94173                 $gplsrc is no longer needed as far as I can see?
94174
94175 2003-07-16  Jim Meyering  <jim@meyering.net>
94176
94177         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94178
94179 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94180
94181         * config/srclist.txt: Get the following files from gettext-runtime/intl
94182         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94183         ref-del.sin.  From Bruno Haible.
94184         * config/srclist-update (fixfile): Change grep pattern again, since the
94185         previous fix didn't work (there was another trailing $).  Use
94186         '[$]' to escape the $s.
94187
94188 2003-07-15  Karl Berry  <karl@gnu.org>
94189
94190         * lib/vasnprintf.c: update from gettext.
94191
94192 2003-07-15  Karl Berry  <karl@gnu.org>
94193
94194         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94195         gets expanded when surrounded by '$'.
94196
94197 2003-07-15  Jim Meyering  <jim@meyering.net>
94198
94199         * modules/save-cwd: Don't depend on error.  From Derek Price.
94200
94201 2003-07-15  Jim Meyering  <jim@meyering.net>
94202
94203         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94204
94205 2003-07-14  Simon Josefsson  <jas@extundo.com>
94206
94207         * modules/mempcpy: New file.
94208         * MODULES.html.sh (func_all_modules): Add mempcpy.
94209
94210 2003-07-14  Simon Josefsson  <jas@extundo.com>
94211
94212         * m4/mempcpy.m4: New file.
94213
94214 2003-07-14  Simon Josefsson  <jas@extundo.com>
94215
94216         * lib/mempcpy.h: New file.
94217         * lib/mempcpy.c: New file.
94218
94219 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94220
94221         * modules/getdate, modules/posixtm: Depend on mktime.
94222
94223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94224
94225         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94226         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94227         unicodeio.c, unicodeio.h, unlocked-io.h:
94228         Switch from LGPL to GPL.
94229
94230 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94231
94232         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94233         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94234         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94235         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94236         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94237         updated automatically by ../config/srclist-update.  This changes
94238         their license from LPGL to GPL.
94239
94240 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94241
94242         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94243         assumed to refer to the root of the most recent stable gettext version.
94244         * config/srclistvars.sh: Add defaults for eggert.
94245         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94246         Match "This program" as well as "The program".  This is needed
94247         for gettext.
94248
94249 2003-07-14  Jim Meyering  <jim@meyering.net>
94250
94251         Don't emit diagnostics.  Let callers do that.
94252         * lib/save-cwd.c: Don't include "error.h".
94253         (save_cwd): Don't call error.  Ensure that errno is valid
94254         when returning nonzero.
94255
94256         * lib/save-cwd.h (restore_cwd): Update prototype.
94257         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94258         Simplify.  Don't call error upon failure.  Let callers do that.
94259         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94260         when auditing is enabled.  But don't bother updating the #if.
94261
94262 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94263
94264         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94265         it breaks C++ compilation.
94266         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94267
94268 2003-07-10  Simon Josefsson  <jas@extundo.com>
94269
94270         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94271
94272 2003-07-10  Jim Meyering  <jim@meyering.net>
94273
94274         * m4/clock_time.m4: Remove trailing blank.
94275         * m4/intmax_t.m4: Likewise.
94276
94277 2003-07-10  Jim Meyering  <jim@meyering.net>
94278
94279         * lib/vasnprintf.c: Remove trailing blanks.
94280         Make cpp indentation consistent.
94281
94282 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94283
94284         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94285         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94286         Switch from LGPL to GPL.
94287
94288 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94289
94290         * config/srclist.txt: Sort sublists.  Add
94291         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94292         that differ from gnulib for one reason or another; we'd like this list
94293         to be smaller but for now let's document what we have.
94294
94295 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94296
94297         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94298         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94299         and sweeter "eval x=$x".
94300         * config/srclist.txt: Get lib/argp* from glibc.
94301
94302 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94303
94304         * lib/mktime.c: Fix some boundary cases and remove need for floating
94305         point.
94306
94307         Issue a compile-time diagnostic if time_t is floating point, or if
94308         two's complement arithmetic is not in effect, or if arithmetic
94309         right shift does not propagate the sign.  These assumptions were
94310         all in the original code but they weren't checked.
94311
94312         (TIME_T_MIDPOINT, verify): New macros.
94313         (__isleap): Remove; it has integer overflow problems.
94314         (leapyear): New function, without those problems.
94315         (ydhms_tm_diff): Remove; splitting into two parts.
94316         (ydhms_diff): New function, containing the arithmetic part of
94317         the old ydhms_tm_diff function.  Issue a compile-time
94318         diagnostic if we are not using C99 integer division.
94319         Avoid casts when possible.
94320         (guess_time_tm): New function, containing the checking part of
94321         the old ydhms_tm_diff function.  Return the new value, rather than
94322         the difference between it and the old.  Accept a new argument T
94323         so that *T specifies the old value.  Check for overflow in the result.
94324
94325         (__mktime_internal): Use a time_t offset, not a long int offset.
94326         This undoes the 2003-06-04 change, which is no longer needed now
94327         that we have better overflow checking.
94328         (localtime_offset): Likewise.
94329
94330         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94331         and long are 64-bit but int is only 32-bit.
94332         (ydhms_diff): Use long int to store year1 and yday1.
94333         Issue a compile-time diagnostic if long int is not wide enough.
94334
94335         (__mktime_internal): Use long int to store adjusted year and yday.
94336         Use plain C rather than preprocessor commands, if that doesn't
94337         affect efficiency.
94338         Check for overflow (and try to repair) after each probe
94339         rather than checking only at the very end.  This avoids some bugs
94340         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94341         does not equal GMT offset at maximum time).
94342         Use integer to check for overflow rather than floating point; this
94343         is more portable to non-IEEE hosts, and is a tad faster.
94344         When we detect that we are oscillating between two values,
94345         don't check whether tm_isdst has the requested value, since
94346         we already know the answer.  When tm_isdst has the wrong value,
94347         use a different heuristic to find the right one, based on the
94348         extreme values actually observed in practice in tz2003a,
94349         rather than the (overly optimistic) "previous 3 calendar quarters".
94350
94351         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94352         "T const" to accommodate glibc style.
94353         (check_result): Use less-confusing report format.  "long" -> "long int.
94354         (main): Likewise.
94355         Don't loop if the iteration overflows time_t.
94356         Allow a negative step in the iteration.
94357
94358 2003-07-06  Karl Berry  <karl@gnu.org>
94359
94360         * config/depcomp: update from automake.
94361         * config/config.sub: update from prep.
94362
94363 2003-07-03  Karl Berry  <karl@gnu.org>
94364
94365         * config/config.guess: update from prep.
94366
94367 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94368
94369         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94370         xreadlink.c now includes it unconditionally.
94371
94372 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94373
94374         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94375         having it depend on HAVE_SYS_TYPES_H.
94376
94377 2003-07-01  Bruno Haible  <bruno@clisp.org>
94378
94379         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94380         <sys/types.h> should be sufficient.
94381         Reported by Paul Eggert.
94382
94383 2003-06-26  Karl Berry  <karl@gnu.org>
94384
94385         * config/depcomp: update from automake.
94386
94387 2003-06-26  Bruno Haible  <bruno@clisp.org>
94388
94389         * modules/human: Depend on module stdbool.
94390
94391 2003-06-25  Bruno Haible  <bruno@clisp.org>
94392
94393         * modules/readlink: New file.
94394         * modules/xreadlink: Depend on it.
94395         * MODULES.html.sh (func_all_modules): Add readlink.
94396
94397 2003-06-25  Bruno Haible  <bruno@clisp.org>
94398
94399         * m4/readlink.m4: New file.
94400
94401 2003-06-25  Bruno Haible  <bruno@clisp.org>
94402
94403         * lib/readlink.c: New file.
94404
94405 2003-06-22  Karl Berry  <karl@gnu.org>
94406
94407         * config/srclist.txt: update mkinstalldirs from automake.
94408         * config/mkinstalldirs: update.
94409
94410 2003-06-22  Bruno Haible  <bruno@clisp.org>
94411
94412         Portability to mingw32.
94413         * m4/ssize_t.m4: New file, from GNU gettext.
94414         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94415         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94416
94417 2003-06-22  Bruno Haible  <bruno@clisp.org>
94418
94419         * modules/safe-read: Add m4/ssize_t.m4.
94420         * modules/xreadlink: Add m4/ssize_t.m4.
94421
94422 2003-06-20  Bruno Haible  <bruno@clisp.org>
94423
94424         Assume C89, so PARAMS isn't needed.
94425         * lib/unicodeio.h (PARAMS): Remove.
94426         * lib/unicodeio.c: Don't use PARAMS.
94427
94428 2003-06-18  Karl Berry  <karl@gnu.org>
94429
94430         * config/config.{guess,sub}: update from prep.
94431
94432 2003-06-18  Jim Meyering  <jim@meyering.net>
94433
94434         Merge changes from coreutils.
94435         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94436         Remove explicit declarations of xmalloc and realloc.
94437         Include xalloc.h.
94438         (read_utmp): Remove anachronistic cast of xmalloc.
94439
94440 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94441
94442         Assume C89, so PARAMS isn't needed.
94443         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94444         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94445         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94446         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94447         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94448         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94449         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94450         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94451         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94452         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94453         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94454         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94455         no longer needed. Anyway, config.h should always be included before any
94456         other file.
94457
94458 2003-06-11  Simon Josefsson  <jas@extundo.com>
94459
94460         * modules/sysexits: New file.
94461         * MODULES.html.sh (func_all_modules): Add sysexits.
94462
94463 2003-06-11  Simon Josefsson  <jas@extundo.com>
94464
94465         * lib/sysexit_.h: New file.
94466
94467 2003-06-11  Derek Price  <derek@ximbiot.com>
94468
94469         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94470         necessary.
94471
94472 2003-06-11  Bruno Haible  <bruno@clisp.org>
94473
94474         * m4/sysexits.m4: New file.
94475
94476 2003-06-10  Simon Josefsson  <jas@extundo.com>
94477
94478         * lib/argp.h: New file, from glibc.
94479         * lib/argp-ba.c: New file, from glibc.
94480         * lib/argp-eexst.c: New file, from glibc.
94481         * lib/argp-fmtstream.c: New file, from glibc.
94482         * lib/argp-fmtstream.h: New file, from glibc.
94483         * lib/argp-fs-xinl.c: New file, from glibc.
94484         * lib/argp-help.c: New file, from glibc.
94485         * lib/argp-namefrob.h: New file, from glibc.
94486         * lib/argp-parse.c: New file, from glibc.
94487         * lib/argp-pv.c: New file, from glibc.
94488         * lib/argp-pvh.c: New file, from glibc.
94489         * lib/argp-xinl.c: New file, from glibc.
94490
94491 2003-06-10  Simon Josefsson  <jas@extundo.com>
94492
94493         * modules/strchrnul: New file.
94494
94495 2003-06-10  Simon Josefsson  <jas@extundo.com>
94496
94497         * modules/argp: New file.
94498
94499 2003-06-10  Simon Josefsson  <jas@extundo.com>
94500
94501         * m4/strchrnul.m4: New file.
94502
94503 2003-06-10  Simon Josefsson  <jas@extundo.com>
94504
94505         * lib/strchrnul.h: New file.
94506         * lib/strchrnul.c: New file.
94507
94508 2003-06-10  Bruno Haible  <bruno@clisp.org>
94509
94510         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94511
94512 2003-06-07  Karl Berry  <karl@gnu.org>
94513
94514         * config/config.{guess,sub}: update from prep.
94515
94516 2003-06-07  Jim Meyering  <jim@meyering.net>
94517
94518         * modules/strtod: Use $(...) notation, not @...@ for
94519         AC_REPLACE'd variables.
94520         * modules/localcharset: Likewise.
94521
94522 2003-06-07  Jim Meyering  <jim@meyering.net>
94523
94524         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94525         in place of my name in the copyright comment.
94526         Remove definition and uses of __P.
94527
94528         From coreutils.
94529         * lib/stat.c: Don't declare xmalloc explicitly.
94530         Instead, include "xalloc.h".
94531         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94532         xrealloc, and xcalloc return values.
94533         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94534         Improve comment.
94535         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94536
94537 2003-06-07  Bruno Haible  <bruno@clisp.org>
94538
94539         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94540         avoid AC_CONFIG_LINKS.
94541         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94542         fnmatch.h, to avoid AC_CONFIG_LINKS.
94543         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94544
94545 2003-06-07  Bruno Haible  <bruno@clisp.org>
94546
94547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94548         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94549         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94550         directory.
94551         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94552         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94553         directory.
94554
94555 2003-06-06  Jim Meyering  <jim@meyering.net>
94556
94557         Merge from coreutils.
94558         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94559         Consolidate declarations and initializations of *_base* locals.
94560
94561         Merge from coreutils.
94562         This avoids a core dump on systems without GNU putenv,
94563         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94564         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94565         (unsetenv): New static function, from GNU libc.
94566         (rpl_putenv): Use it.
94567
94568         * lib/modechange.c: Remove trailing blanks.
94569
94570         Merge from coreutils.
94571         * lib/fsusage.c: Remove declaration of statfs.
94572         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94573
94574         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94575
94576 2003-06-06  Jim Meyering  <jim@meyering.net>
94577
94578         * lib/stdbool_.h: Renamed from stdbool.h.in.
94579
94580 2003-06-06  Jim Meyering  <jim@meyering.net>
94581             Bruno Haible  <bruno@clisp.org>
94582
94583         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94584         Adjust Makefile.am snippet not to redirect directly to target.
94585         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94586
94587 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94588
94589         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94590         mismatch, look in future quarters as well as past.  This fixes a
94591         bug when processing fall-backwards gaps immediately after a long
94592         period of daylight-saving time.
94593
94594         * lib/mktime.c: Assume freestanding C89 or better.
94595         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94596         (__P): Remove; not used.
94597         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94598         (mktime, not_equal_tm, print_tm, check_result,
94599         main): Use prototypes.  Use const * where appropriate.
94600         (main): Fix typo in testing code that uncovered by above changes.
94601         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94602
94603 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94604
94605         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94606         locale.h, localeconv.  This merges changes from coreutils.
94607
94608         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94609         It can be removed after the next Autoconf is released.
94610         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94611         needed.
94612
94613 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94614
94615         * lib/mktime.c: Fix Debian bug 177940
94616         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94617         (localtime_offset): Now long int, not time_t, because we want it
94618         to be guaranteed to be signed.  All uses changed.
94619         (__mktime_internal): If overflow would occur when adding offset,
94620         don't add it.
94621
94622         Merge 'human' changes from coreutils.  Rewrite to support
94623         locale-specific notations like thousands separators.
94624         * lib/human.c: Simplify authorship notice.
94625         Include human.h immediately after config.h.
94626         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94627         <limits.h>: Do not include, since human.h does.
94628         (SIZE_MAX, UINTMAX_MAX): New macros.
94629         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94630         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94631         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94632         (power_letter): Renamed from suffixes.
94633         (generate_suffix_backwards): Remove.
94634         (adjust_value): Now takes int style (because of human.h changes)
94635         and long double value (for greater precision on some platforms).
94636         (group_number): New function.
94637         (human_readable): Use it.  Use integer options, not enum.
94638         Put the options before the sizes in the arg list.
94639         Support all the new options.
94640         The old human_readable function has been removed;
94641         use inttostr.h instead.
94642         (human_readable, default_block_size, humblock):
94643         Use uintmax_t, not int, for block sizes.
94644         (human_readable_inexact, block_size_types): Remove.
94645         (block_size_opts): New constant.
94646         (human_options): Renamed from human_block_size, with new signature
94647         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94648         * lib/human.h: Add copyright and authorship notice.
94649         Include <limits.h> and <stdbool.h> unconditionally.
94650         (PARAMS): Remove.  All uses removed.
94651         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94652         (enum human_inexact_style): Remove tag; now a nameless enum.
94653         (human_floor, human_ceiling, human_round_to_even): Now have
94654         values 2, 0, 1 rather than -1, 1, 0.
94655         (human_group_digits, human_suppress_point_zero, human_autoscale,
94656         human_base_1024, human_SI, human_B): New constants.
94657         (human_readable_inexact, human_block_size): Remove.
94658         (human_readable): Size args are now uintmax_t, not int.
94659         (human_options): New decl.
94660
94661         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94662         unnecessary now that we assume C89 or better.  This change
94663         imported from coreutils.
94664
94665         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94666         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94667         in the 2003-05-30 sync from glibc.
94668
94669         .h files should stand alone, but we shouldn't include <sys/types.h>
94670         if we can get away with just <stddef.h>.
94671
94672         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94673         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94674         rather than <sys/types.h>, as we merely need size_t.
94675         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94676         to get size_t.
94677         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94678         Include <stdio.h>, to get FILE.
94679         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94680         memcasecmp.h has included <stddef.h> and all we need is size_t.
94681         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94682         our interface, instead of including <sys/types.h>
94683
94684 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94685
94686         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94687         now, as glibc mktime is buggy on non-glibc systems.
94688
94689 2003-06-03  Karl Berry  <karl@gnu.org>
94690
94691         * config/config.sub: update from prep.
94692
94693 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94694
94695         [from coreutils]
94696         Fix some minor time-related bugs with POSIX time arguments.
94697         Some valid time stamps were being rejected (notably -1, and
94698         time stamps before 1900 on 64-bit hosts).  And some invalid
94699         time stamps were being accepted, e.g. September 31.
94700
94701         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94702         that we can return (time_t) -1 successfully.
94703         * lib/posixtm.c: Likewise.
94704         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94705         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94706         (t): Remove static var.
94707         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94708         of static var.  All uses changed.
94709         (year): Do not reject years before 1900; they can occur with
94710         64-bit time_t.
94711         (posix_time_parse): Do not check for out-of-range components;
94712         that is now the caller's responsibility, since our checks were
94713         only approximations.
94714         (posixtime): Use mktime to check for out-of-range components,
94715         since it knows them exactly.
94716         If mktime returns (time_t) -1, check whether an error actually occurred
94717         by invoking localtime on -1.
94718         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94719         posixtime failures better.
94720         Improve the test data (in comments only).
94721
94722 2003-06-02  Karl Berry  <karl@gnu.org>
94723
94724         * config/mkinstalldirs (version): new variable.
94725         (--version): new option.
94726         (usage): improve message.
94727
94728 2003-05-30  Karl Berry  <karl@gnu.org>
94729
94730         * lib/mktime.c: update from libc.
94731
94732 2003-05-30  Bruno Haible  <bruno@clisp.org>
94733
94734         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94735         * config/config.rpath: Upgrade to gettext-0.12.1.
94736
94737 2003-05-30  Bruno Haible  <bruno@clisp.org>
94738
94739         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94740         * m4/nls.m4: New file, from gettext-0.12.1.
94741         * m4/po.m4: New file, from gettext-0.12.1.
94742         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94743
94744 2003-05-30  Bruno Haible  <bruno@clisp.org>
94745
94746         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94747         * lib/localcharset.h: Likewise.
94748         * lib/localcharset.c: Likewise.
94749
94750 2003-05-29  Karl Berry  <karl@gnu.org>
94751
94752         * config/config.rpath: update from gettext.
94753
94754 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94755
94756         Assume the headers required for C89 freestanding compilers.
94757         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94758         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94759         * m4/human.m4 (gl_HUMAN): Likewise.
94760         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94761         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94762         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94763         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94765         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94766
94767 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94768
94769         Assume the headers required for C89 freestanding compilers.
94770         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94771         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94772         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94773         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94774         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94775         define, since <limits.h> is guaranteed to do that.
94776         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94777         * lib/exclude.c: Include <stdbool.h> unconditionally.
94778         * lib/tempname.c: Include <stddef.h> unconditionally.
94779         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94780         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94781         <stddef.h> does that.
94782         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94783         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94784         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94785         needed.
94786         * lib/xstrtol.c: Likewise.
94787         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94788         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94789
94790         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94791         warnings on some platforms.
94792
94793         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94794         arbitrarily.
94795
94796 2003-05-26  Jim Meyering  <jim@meyering.net>
94797
94798         Merge in a change from coreutils:
94799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94800         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94801         that condition, rather than `-1' which is slightly misleading.
94802         Change the name of the cache variable to have the gl_ prefix.
94803         Prompted by a patch from Richard Dawe for DJGPP.
94804
94805 2003-05-24  Karl Berry  <karl@gnu.org>
94806
94807         * config/config.guess: update from prep.
94808
94809 2003-05-22  Karl Berry  <karl@gnu.org>
94810
94811         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94812
94813 2003-05-20  Karl Berry  <karl@gnu.org>
94814
94815         * config/config.guess: update from prep.
94816
94817 2003-05-18  Karl Berry  <karl@gnu.org>
94818
94819         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94820         might actually be set by the user.
94821
94822         * config/depcomp, install-sh, mdate-sh: update from automake.
94823
94824 2003-05-17  Bruno Haible  <bruno@clisp.org>
94825
94826         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94827         invalid expansion for AC_EGREP_CPP.
94828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94830         Suggested by Akim Demaille <akim@epita.fr> in
94831         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94832
94833 2003-05-12  Jim Meyering  <jim@meyering.net>
94834
94835         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94836         the space-padded-by-default conversion specifiers, %e, %k, %l.
94837
94838 2003-05-12  Bruno Haible  <bruno@clisp.org>
94839
94840         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94841         the string is longer than 4 KB.
94842
94843 2003-05-11  Karl Berry  <karl@gnu.org>
94844
94845         * config/config.{guess,sub}: update from prep.
94846
94847 2003-05-09  Bruno Haible  <bruno@clisp.org>
94848
94849         * modules/error: Add m4/strerror_r.m4 to file list.
94850
94851 2003-05-03  Bruno Haible  <bruno@clisp.org>
94852
94853         Upgrade to Unicode-4.0.
94854         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94855         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94856         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94857         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94858         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94859         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94860         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94861         Change width of U+E0100..U+E01EF from 1 to 0.
94862
94863 2003-04-25  Jim Meyering  <jim@meyering.net>
94864
94865         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94866         of type size_t, not int.
94867
94868 2003-04-25  Bruno Haible  <bruno@clisp.org>
94869
94870         * lib/copy-file.c: Include <stddef.h>, for size_t.
94871
94872 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94873
94874         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94875         code which expansion is under static control.  Patch imported from
94876         Akim Demaille's patch to Bison; see
94877         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94878
94879 2003-04-14  Bruno Haible  <bruno@clisp.org>
94880
94881         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94882
94883 2003-04-11  Jim Meyering  <jim@meyering.net>
94884
94885         Merge changes from Coreutils.
94886
94887         2003-03-22  Jim Meyering  <jim@meyering.net>
94888
94889         * lib/strftime.c (widen): Cast alloca return value to proper type.
94890
94891         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94892
94893         From GNU libc.
94894         * lib/strftime.c (my_strftime): Handle very large width
94895         specifications for numeric values correctly.  Improve checks for
94896         overflow.
94897
94898         2003-01-19  Jim Meyering  <jim@meyering.net>
94899
94900         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94901         definitions.
94902         (nl_get_alt_digit) [! defined my_strftime]: Define.
94903         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94904         _nl_get_alt_digit and _nl_get_walt_digit.
94905
94906         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94907         libc. These changes have no effect outside of _LIBC.
94908
94909 2003-04-10  Bruno Haible  <bruno@clisp.org>
94910
94911         * modules/findprog: New file.
94912         * MODULES.html.sh (func_all_modules): Add it.
94913
94914 2003-04-10  Bruno Haible  <bruno@clisp.org>
94915
94916         * m4/findprog.m4: New file.
94917         * m4/eaccess.m4: New file.
94918
94919 2003-04-10  Bruno Haible  <bruno@clisp.org>
94920
94921         * lib/findprog.h: New file, from GNU gettext.
94922         * lib/findprog.c: New file, from GNU gettext.
94923
94924 2003-04-05  Jim Meyering  <jim@meyering.net>
94925
94926         Merge changes from Coreutils.
94927
94928         * lib/exclude.h (PARAMS): Remove definition and uses.
94929         * lib/exclude.c: Remove uses of `PARAMS'.
94930
94931         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94932         Add test-cases for DOS filenames. Declare program_name.
94933         (main): Set up program_name.  Patch by Rich Dawe.
94934
94935         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94936         error from mntctl.
94937         Use mntctl's return value to drive the entry-processing loop, since
94938         we can't rely on the value of the vmt_length member in the last
94939         entry.  On some systems doing so could result in exhausting
94940         virtual memory.  Based in part on a patch from Mike Jetzer.
94941
94942 2003-04-04  Bruno Haible  <bruno@clisp.org>
94943
94944         * modules/linebreak: New file.
94945         * MODULES.html.sh (func_all_modules): Add it.
94946
94947 2003-04-04  Bruno Haible  <bruno@clisp.org>
94948
94949         * m4/linebreak.m4: New file.
94950
94951 2003-04-04  Bruno Haible  <bruno@clisp.org>
94952
94953         * lib/linebreak.h: New file, from GNU gettext.
94954         * lib/linebreak.c: New file, from GNU gettext with slight
94955         modifications.
94956         * lib/lbrkprop.h: New file, from GNU gettext.
94957
94958 2003-04-03  Bruno Haible  <bruno@clisp.org>
94959
94960         * modules/utf8-ucs4: New file.
94961         * modules/utf16-ucs4: New file.
94962         * modules/ucs4-utf8: New file.
94963         * modules/ucs4-utf16: New file.
94964         * MODULES.html.sh (func_all_modules): Add them.
94965
94966 2003-04-03  Bruno Haible  <bruno@clisp.org>
94967
94968         * m4/utf-ucs4.m4: New file.
94969         * m4/ucs4-utf.m4: New file.
94970
94971 2003-04-03  Bruno Haible  <bruno@clisp.org>
94972
94973         * lib/utf8-ucs4.h: New file, from GNU gettext.
94974         * lib/utf16-ucs4.h: New file, from GNU gettext.
94975         * lib/ucs4-utf8.h: New file, from GNU gettext.
94976         * lib/ucs4-utf16.h: New file, from GNU gettext.
94977
94978 2003-04-02  Bruno Haible  <bruno@clisp.org>
94979
94980         * modules/binary-io: New file.
94981         * MODULES.html.sh (func_all_modules): Add it.
94982
94983 2003-04-02  Bruno Haible  <bruno@clisp.org>
94984
94985         * lib/binary-io.h: New file, from GNU gettext.
94986
94987 2003-04-01  Bruno Haible  <bruno@clisp.org>
94988
94989         * modules/pathname: New file.
94990         * MODULES.html.sh (func_all_modules): Add it.
94991
94992 2003-04-01  Bruno Haible  <bruno@clisp.org>
94993
94994         * lib/pathname.h: New file, from GNU gettext.
94995         * lib/concatpath.c: New file, from GNU gettext.
94996
94997 2003-03-30  Bruno Haible  <bruno@clisp.org>
94998
94999         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95000
95001 2003-03-30  Bruno Haible  <bruno@clisp.org>
95002
95003         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95004         function chown() doesn't exist.
95005
95006 2003-03-28  Bruno Haible  <bruno@clisp.org>
95007
95008         * modules/copy-file: New file.
95009         * MODULES.html.sh (func_all_modules): Add it.
95010
95011 2003-03-28  Bruno Haible  <bruno@clisp.org>
95012
95013         * m4/copy-file.m4: New file.
95014
95015 2003-03-28  Bruno Haible  <bruno@clisp.org>
95016
95017         * lib/copy-file.h: New file, from GNU gettext.
95018         * lib/copy-file.c: New file, from GNU gettext.
95019
95020 2003-03-18  Jim Meyering  <jim@meyering.net>
95021
95022         * lib/quote.c (quote_n): Fix typo in comment.
95023
95024 2003-03-18  Bruno Haible  <bruno@clisp.org>
95025
95026         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95027         checking.
95028         * m4/onceonly_2_57.m4: Likewise.
95029
95030 2003-03-17  Bruno Haible  <bruno@clisp.org>
95031
95032         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95033         (m4_quote): Remove macro.
95034         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95035
95036 2003-03-14  Jim Meyering  <jim@meyering.net>
95037
95038         Merge changes from Coreutils.
95039         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95040         to be const, in order to avoid warnings.
95041         (obstack_room): Likewise.
95042         (obstack_empty_p): Likewise.
95043
95044 2003-03-14  Bruno Haible  <bruno@clisp.org>
95045
95046         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95047         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95048
95049 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95050
95051         Merge changes from Bison.
95052         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95053         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95054         when compiling Bison 1.875's `bitset bset = obstack_alloc
95055         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95056         * lib/hash.c: Include <stdbool.h> unconditionally.
95057
95058 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95059
95060         * m4/onceonly.m4 (m4_quote): New macro.
95061         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95062         Quote AC_FOREACH variable-expansions properly.
95063
95064 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95065
95066         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95067
95068 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95069
95070         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95071         Reported by Bruce Becker; see:
95072         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95073
95074 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95075             Bruno Haible  <bruno@clisp.org>
95076
95077         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95078         Reported by John Hughes, see
95079         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95080
95081 2003-02-20  Bruno Haible  <bruno@clisp.org>
95082
95083         * MODULES.html.sh (func_all_modules): Add poll.
95084
95085 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95086
95087         * modules/poll: New file.
95088
95089 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95090
95091         * lib/poll_.h: New file.
95092         * lib/poll.c: New file.
95093
95094 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95095
95096         * m4/poll.m4: New file.
95097
95098 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95099
95100         * modules/mathl: New file.
95101
95102 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95103
95104         * lib/mathl.h: New file.
95105         * lib/acosl.c: New file.
95106         * lib/asinl.c: New file.
95107         * lib/atanl.c: New file.
95108         * lib/ceill.c: New file.
95109         * lib/cosl.c: New file.
95110         * lib/expl.c: New file.
95111         * lib/floorl.c: New file.
95112         * lib/frexpl.c: New file.
95113         * lib/ldexpl.c: New file.
95114         * lib/logl.c: New file.
95115         * lib/sincosl.c: New file.
95116         * lib/sinl.c: New file.
95117         * lib/sqrtl.c: New file.
95118         * lib/tanl.c: New file.
95119         * lib/trigl.c: New file.
95120         * lib/trigl.h: New file.
95121
95122 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95123
95124         * m4/mathl.m4: New file.
95125
95126 2003-02-18  Bruno Haible  <bruno@clisp.org>
95127
95128         * MODULES.html.sh (func_all_modules): Add mathl.
95129
95130 2003-02-17  Bruno Haible  <bruno@clisp.org>
95131
95132         * modules/mkdtemp: New module.
95133         * MODULES.html.sh (func_all_modules): Add it.
95134
95135 2003-02-17  Bruno Haible  <bruno@clisp.org>
95136
95137         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95138
95139 2003-02-17  Bruno Haible  <bruno@clisp.org>
95140
95141         * lib/mkdtemp.h: New file, from GNU gettext.
95142         * lib/mkdtemp.c: New file, from GNU gettext.
95143
95144 2003-02-02  Jim Meyering  <jim@meyering.net>
95145
95146         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95147         e.g. glibc-2.2.93.
95148
95149 2003-01-31  Bruno Haible  <bruno@clisp.org>
95150
95151         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95152         'rpl_rename'.
95153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95154         'rpl_strnlen'.
95155         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95156         'rpl_strtod'.
95157         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95158         'rpl_utime'.
95159
95160 2003-01-31  Bruno Haible  <bruno@clisp.org>
95161
95162         * lib/rename.c: #undef rename before defining rpl_rename.
95163         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95164
95165 2003-01-30  Bruno Haible  <bruno@clisp.org>
95166
95167         * modules/vasnprintf, modules/vasprintf: New modules.
95168         * MODULES.html.sh (func_all_modules): Add them.
95169
95170 2003-01-30  Bruno Haible  <bruno@clisp.org>
95171
95172         * m4/signed.m4: New file, from GNU gettext.
95173         * m4/longdouble.m4: New file, from GNU gettext.
95174         * m4/wchar_t.m4: New file, from GNU gettext.
95175         * m4/wint_t.m4: New file, from GNU gettext.
95176         * m4/vasnprintf.m4: New file.
95177         * m4/vasprintf.m4: New file.
95178
95179 2003-01-30  Bruno Haible  <bruno@clisp.org>
95180
95181         * lib/printf-args.h: New file, from GNU gettext.
95182         * lib/printf-args.c: New file, from GNU gettext.
95183         * lib/printf-parse.h: New file, from GNU gettext.
95184         * lib/printf-parse.c: New file, from GNU gettext.
95185         * lib/vasnprintf.h: New file, from GNU gettext.
95186         * lib/vasnprintf.c: New file, from GNU gettext.
95187         * lib/asnprintf.c: New file, from GNU gettext.
95188         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95189         * lib/vasprintf.c: New file, from GNU gettext.
95190         * lib/asprintf.c: New file, from GNU gettext.
95191
95192 2003-01-29  Bruno Haible  <bruno@clisp.org>
95193
95194         * modules/stpncpy: New module.
95195         * MODULES.html.sh (func_all_modules): Add it.
95196
95197 2003-01-29  Bruno Haible  <bruno@clisp.org>
95198
95199         * m4/stpncpy.m4: New file.
95200
95201 2003-01-29  Bruno Haible  <bruno@clisp.org>
95202
95203         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95204         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95205
95206 2003-01-28  Bruno Haible  <bruno@clisp.org>
95207
95208         * modules/c-ctype: New module.
95209         * MODULES.html.sh (func_all_modules): Add it.
95210
95211 2003-01-28  Bruno Haible  <bruno@clisp.org>
95212
95213         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95214         Paul Eggert.
95215         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95216         Paul Eggert.
95217
95218 2003-01-27  Bruno Haible  <bruno@clisp.org>
95219
95220         * modules/xsetenv: New module.
95221         * MODULES.html.sh (func_all_modules): Add it.
95222
95223 2003-01-27  Bruno Haible  <bruno@clisp.org>
95224
95225         * lib/xsetenv.h: New file, from GNU gettext.
95226         * lib/xsetenv.c: New file, from GNU gettext.
95227
95228 2003-01-23  Jim Meyering  <jim@meyering.net>
95229
95230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95231         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95232
95233 2003-01-23  Bruno Haible  <bruno@clisp.org>
95234
95235         * modules/minmax: New module.
95236         * MODULES.html.sh (func_all_modules): Add it.
95237
95238 2003-01-23  Bruno Haible  <bruno@clisp.org>
95239
95240         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95241         Eggert.
95242
95243 2003-01-22  Bruno Haible  <bruno@clisp.org>
95244
95245         * modules/exit: New module.
95246         * MODULES.html.sh (func_all_modules): Add it.
95247
95248 2003-01-22  Bruno Haible  <bruno@clisp.org>
95249
95250         * lib/exit.h: New file, from GNU gettext.
95251
95252 2003-01-19  Bruno Haible  <bruno@clisp.org>
95253
95254         * gnulib-tool: Recognize option --extract-maintainer.
95255         (func_get_maintainer): New function.
95256         * modules/*: Add Maintainer entry.
95257
95258 2003-01-16  Jim Meyering  <jim@meyering.net>
95259
95260         * m4/regex.m4: The `regex' struct is both input and output.
95261         Initialize it before each use.  Patch by Tim Waugh.
95262
95263 2003-01-16  Bruno Haible  <bruno@clisp.org>
95264
95265         * MODULES.html.sh: Add a table of contents. Add the module name as
95266         leftmost column. Add hyperlinks.
95267
95268 2003-01-15  Bruno Haible  <bruno@clisp.org>
95269
95270         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95271
95272 2003-01-15  Bruno Haible  <bruno@clisp.org>
95273
95274         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95275         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95276         suffix.
95277
95278 2003-01-15  Bruno Haible  <bruno@clisp.org>
95279
95280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95281
95282 2003-01-15  Bruno Haible  <bruno@clisp.org>
95283
95284         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95285         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95286
95287 2003-01-14  Jim Meyering  <jim@meyering.net>
95288
95289         * lib/same.c (same_name): Tweak a comment.
95290
95291 2003-01-14  Bruno Haible  <bruno@clisp.org>
95292
95293         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95294         when a string comparison is sufficient.
95295
95296 2003-01-14  Bruno Haible  <bruno@clisp.org>
95297
95298         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95299         'unsigned int'.
95300
95301 2003-01-14  Bruno Haible  <bruno@clisp.org>
95302
95303         * lib/hash-pjw.c: Add comment about low quality of this function.
95304
95305 2003-01-13  Bruno Haible  <bruno@clisp.org>
95306
95307         * modules/stpcpy: Distribute lib/stpcpy.h.
95308         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95309
95310 2003-01-13  Bruno Haible  <bruno@clisp.org>
95311
95312         * modules/*: Add a description.
95313         * modules/strpbrk: Fix Makefile.am snippet.
95314         * modules/strtoimax: Fix dependencies.
95315         * modules/strtoumax: Likewise.
95316
95317 2003-01-13  Bruno Haible  <bruno@clisp.org>
95318
95319         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95320         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95321         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95322
95323 2003-01-13  Bruno Haible  <bruno@clisp.org>
95324
95325         * gnulib-tool (func_create_testdir): Store config/* files in the main
95326         directory.
95327         * config.rpath: Move to ...
95328         * config/config.rpath: ... here.
95329         * modules/gettext: Contains config/config.rpath, not config.rpath.
95330         * modules/iconv: Likewise.
95331
95332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95333
95334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95335         to avoid collisions with libcurses and libreadline.
95336
95337         * m4/getstr.m4: Remove.
95338         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95339
95340 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95341
95342         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95343         to avoid collisions with libcurses and libreadline.
95344
95345         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95346         * lib/getstr.h, getstr.c: Remove.
95347         * lib/getline.c: Include "getline.h", to check interface.
95348         Move body of old getstr.c here: this defines MIN_CHUNK and
95349         declares getdelim2, which is renamed from getstr.
95350         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95351
95352         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95353         All uses changed.
95354         * lib/linebuffer.h: Likewise.
95355         (readline): Remove backward-compatibility macro.
95356
95357 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95358
95359         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95360         to avoid collisions with libcurses and libreadline.
95361         * getstr: Remove.
95362         * MODULES.html.sh: Remove getstr.
95363         * modules/getline: Depend on unlocked-io, not getstr.
95364
95365 2003-01-12  Jim Meyering  <jim@meyering.net>
95366
95367         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95368
95369 2003-01-10  Bruno Haible  <bruno@clisp.org>
95370
95371         * modules/alloca: Change Makefile.am requirements. Simplify Include
95372         requirements. Add lib/alloca_.h to file list.
95373
95374 2003-01-10  Bruno Haible  <bruno@clisp.org>
95375
95376         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95377
95378 2003-01-10  Bruno Haible  <bruno@clisp.org>
95379
95380         * lib/alloca_.h: New file.
95381         * lib/getdate.y: Unconditionally include alloca.h.
95382         * lib/makepath.c: Likewise.
95383         * lib/setenv.c: Likewise.
95384         * lib/userspec.c: Likewise.
95385
95386 2003-01-09  Karl Berry  <karl@gnu.org>
95387
95388         * MODULES.html.sh: include `dirname $0` in PATH, to find
95389         gnulib-tool.
95390
95391 2003-01-09  Bruno Haible  <bruno@clisp.org>
95392
95393         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95394         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95395
95396 2003-01-09  Bruno Haible  <bruno@clisp.org>
95397
95398         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95399
95400 2003-01-09  Bruno Haible  <bruno@clisp.org>
95401
95402         * lib/stdbool.h.in: New file.
95403
95404 2003-01-09  Bruno Haible  <bruno@clisp.org>
95405
95406         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95407         * MODULES.html.sh: Likewise.
95408
95409 2003-01-08  Jim Meyering  <jim@meyering.net>
95410
95411         * lib/full-write.c: Undefine and define-away `const' after inclusion
95412         of errno.h, not before.  Suggestion from Bruno Haible.
95413
95414 2003-01-08  Bruno Haible  <bruno@clisp.org>
95415
95416         * modules/full-read: Depend on full-write.
95417
95418 2003-01-08  Bruno Haible  <bruno@clisp.org>
95419
95420         * lib/safe-read.c: Include specification header first, to ensure its
95421         selfcontainedness.
95422         * lib/full-write.c: Likewise.
95423
95424 2003-01-07  Jim Meyering  <jim@meyering.net>
95425
95426         * lib/full-write.c: Rework so that it may serve to define full_read,
95427         too.
95428         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95429
95430 2003-01-07  Bruno Haible  <bruno@clisp.org>
95431
95432         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95433         <inttypes.h>.
95434         * lib/xstrtol.h: Likewise.
95435         * lib/xstrtoimax.c: Likewise.
95436         * lib/xstrtoumax.c: Likewise.
95437         * lib/human.h: Likewise.
95438
95439         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95440         on systems that have <inttypes.h> but not <stdint.h>.
95441
95442 2003-01-07  Bruno Haible  <bruno@clisp.org>
95443
95444         * MODULES.html.sh: Add copyright notice.
95445         (missed_files): Omit CVS directory entries.
95446         (func_module): Make it work with sed-3.02.
95447         * MODULES.txt: Remove file.
95448
95449 2003-01-06  Jim Meyering  <jim@meyering.net>
95450
95451         * lib/version-etc.c: Update year in translatable copyright string.
95452
95453 2003-01-03  Karl Berry  <karl@gnu.org>
95454
95455         * config/config.{guess,sub}: update from prep.
95456
95457 2003-01-02  Karl Berry  <karl@gnu.org>
95458
95459         * doc/COPYING.DOC: belatedly updated to 1.2.
95460
95461 2003-01-01  Karl Berry  <karl@gnu.org>
95462
95463         * gnulib-tool (func_verify_module): report module name $module in
95464         error message, not $1.
95465         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95466         be created, only if it doesn't exist.
95467         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95468
95469 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95470
95471         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95472
95473 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95474
95475         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95476         memcmp if strcoll doesn't work.
95477
95478 2002-12-31  Bruno Haible  <bruno@clisp.org>
95479
95480         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95481         nonempty.
95482
95483 2002-12-31  Bruno Haible  <bruno@clisp.org>
95484
95485         * lib/memcoll.c (STRCOLL): New macro.
95486         (memcoll): Use it.
95487
95488 2002-12-31  Bruno Haible  <bruno@clisp.org>
95489
95490         * lib/localcharset.h: New file.
95491         * lib/localcharset.c: Include it.
95492         * lib/unicodeio.c: Likewise.
95493
95494 2002-12-31  Bruno Haible  <bruno@clisp.org>
95495
95496         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95497         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95498
95499 2002-12-31  Bruno Haible  <bruno@clisp.org>
95500
95501         * lib/getline.h: Include <stddef.h>, for size_t.
95502
95503         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95504         * lib/unicodeio.c: Don't include <stddef.h>.
95505
95506 2002-12-31  Bruno Haible  <bruno@clisp.org>
95507
95508         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95509         HAVE_TM_ZONE.
95510
95511 2002-12-24  Karl Berry  <karl@gnu.org>
95512
95513         * config/config.guess: update from prep.
95514
95515 2002-12-24  Bruno Haible  <bruno@clisp.org>
95516
95517         General infrasructure.
95518         * m4/README: Rewritten.
95519         * m4/onceonly.m4: New file.
95520         * m4/onceonly_2_57.m4: New file.
95521
95522         Module atexit.
95523         * m4/atexit.m4: New file.
95524
95525         Module strtod.
95526         * m4/strtod.m4: New file.
95527
95528         Module strtol.
95529         * m4/strtol.m4: New file.
95530
95531         Module strtoul.
95532         * m4/strtoul.m4: New file.
95533
95534         Module memchr.
95535         * m4/memchr.m4: New file.
95536
95537         Module memcmp.
95538         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95539         (jm_FUNC_MEMCMP): Invoke it.
95540
95541         Module memcpy.
95542         * m4/memcpy.m4: New file.
95543
95544         Module memmove.
95545         * m4/memmove.m4: New file.
95546
95547         Module memset.
95548         * m4/memset.m4: New file.
95549
95550         Module strcspn.
95551         * m4/strcspn.m4: New file.
95552
95553         Module strpbrk.
95554         * m4/strpbrk.m4: New file.
95555
95556         Module strstr.
95557         * m4/strstr.m4: New file.
95558
95559         Module strerror.
95560         * m4/strerror.m4: New file.
95561
95562         Module mktime.
95563         * m4/mktime.m4: Renamed from jm-mktime.m4.
95564         (gl_PREREQ_MKTIME): New macro.
95565         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95566
95567         Module malloc.
95568         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95569         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95570         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95571
95572         Module realloc.
95573         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95574         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95575         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95576
95577         Module strftime.
95578         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95580         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95581         gl_TM_GMTOFF.
95582         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95583
95584         Module xalloc.
95585         * m4/xalloc.m4: New file.
95586
95587         Module alloca.
95588         * m4/alloca.m4: New file.
95589
95590         Module putenv.
95591         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95592         (jm_FUNC_PUTENV): Invoke it.
95593
95594         Module setenv.
95595         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95596         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95597         when invoked twice.
95598         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95599         gt_FUNC_SETENV.
95600
95601         Module memrchr.
95602         * m4/memrchr.m4: New file.
95603
95604         Module stpcpy.
95605         * m4/stpcpy.m4: New file.
95606
95607         Module strcase.
95608         * m4/strcase.m4: New file.
95609
95610         Module strdup.
95611         * m4/strdup.m4: New file.
95612
95613         Module strnlen.
95614         * m4/strnlen.m4: New file.
95615
95616         Module strndup.
95617         * m4/strndup.m4: New file.
95618
95619         Module xstrtod.
95620         * m4/xstrtod.m4: New file.
95621
95622         Module xstrtol.
95623         * m4/xstrtol.m4: New file.
95624
95625         Module getdate.
95626         * m4/getdate.m4: New file.
95627
95628         Module unlocked-io.
95629         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95630         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95631         * m4/jm-glibc-io.m4n: Remove file.
95632
95633         Module long-options.
95634         * m4/long-options.m4: New file.
95635
95636         Module md5.
95637         * m4/md5.m4: New file.
95638
95639         Module sha.
95640         * m4/sha.m4: New file.
95641
95642         Module getstr.
95643         * m4/getstr.m4: New file.
95644
95645         Module getline.
95646         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95647         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95648         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95649         simply getline. Infoke gl_PREREQ_GETLINE.
95650
95651         Module obstack.
95652         * m4/obstack.m4: New file.
95653
95654         Module hash.
95655         * m4/hash.m4: New file.
95656
95657         Module readtokens.
95658         * m4/readtokens.m4: New file.
95659
95660         Module strverscmp.
95661         * m4/strverscmp.m4: New file.
95662
95663         Module stdbool.
95664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95665         OSF/1.
95666
95667         Module strtoll.
95668         * m4/strtoll.m4: New file.
95669
95670         Module strtoull.
95671         * m4/strtoull.m4: New file.
95672
95673         Module strtoimax.
95674         * m4/strtoimax.m4: New file.
95675
95676         Module strtoumax.
95677         * m4/strtoumax.m4: New file.
95678
95679         Module xstrtoimax.
95680         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95681         jm_AC_PREREQ_XSTRTOIMAX.
95682         Moved the strtol prerequisites to strtol.m4.
95683         Moved the strtoll prerequisites to strtoll.m4.
95684         Moved the strtoimax prerequisites to strtoimax.m4.
95685
95686         Module xstrtoumax.
95687         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95688         jm_AC_PREREQ_XSTRTOUMAX.
95689         Moved the strtoul prerequisites to strtoul.m4.
95690         Moved the strtoull prerequisites to strtoull.m4.
95691         Moved the strtoumax prerequisites to strtoumax.m4.
95692
95693         Module chown.
95694         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95695         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95696
95697         Module dup2.
95698         * m4/dup2.m4: New file.
95699
95700         Module ftruncate.
95701         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95702         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95703
95704         Module getgroups.
95705         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95706         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95707
95708         Module gettimeofday.
95709         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95710         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95711         gl_PREREQ_GETTIMEOFDAY.
95712
95713         Module mkdir.
95714         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95715         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95716
95717         Module mkstemp.
95718         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95719         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95720         jm_AC_TYPE_UINTMAX_T.
95721         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95722
95723         Module stat.
95724         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95725         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95726
95727         Module lstat.
95728         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95729         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95730
95731         Module timespec.
95732         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95733         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95734         * m4/st_mtim.m4: Indentation.
95735
95736         Module nanosleep.
95737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95738         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95739         gl_PREREQ_NANOSLEEP.
95740
95741         Module regex.
95742         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95743         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95744         (gl_REGEX): New macro.
95745
95746         Module rename.
95747         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95748         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95749
95750         Module rmdir.
95751         * m4/rmdir.m4: New file.
95752
95753         Module utime.
95754         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95755         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95756         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95757
95758         Module dirname.
95759         * m4/dirname.m4: New file.
95760
95761         Module getopt.
95762         * m4/getopt.m4: New file.
95763
95764         Module unistd-safer.
95765         * m4/unistd-safer.m4: New file.
95766
95767         Module fnmatch.
95768         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95769         declaration.
95770         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95771         (gl_FUNC_FNMATCH_POSIX): New macro.
95772         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95773         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95774         simply fnmatch.
95775
95776         Module exclude.
95777         * m4/exclude.m4: New file.
95778
95779         Module human.
95780         * m4/human.m4: New file.
95781
95782         Module acl.
95783         * m4/acl.m4: Nop.
95784
95785         Module backupfile.
95786         * m4/backupfile.m4: New file.
95787         * m4/d-ino.m4: Indentation.
95788
95789         Module fsusage.
95790         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95791         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95792         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95793
95794         Module dirfd.
95795         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95796         requirements.
95797
95798         Module euidaccess.
95799         * m4/euidaccess.m4: New file.
95800
95801         Module file-type.
95802         * m4/file-type.m4: New file.
95803
95804         Module fileblocks.
95805         * m4/fileblocks.m4: New file.
95806
95807         Module filemode.
95808         * m4/filemode.m4: New file.
95809
95810         Module isdir.
95811         * m4/isdir.m4: New file.
95812
95813         Module lchown.
95814         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95815         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95816
95817         Module makepath.
95818         * m4/makepath.m4: New file.
95819
95820         Module modechange.
95821         * m4/modechange.m4: New file.
95822
95823         Module mountlist.
95824         * m4/mountlist.m4: New file.
95825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95826         Indentation.
95827
95828         Module path-concat.
95829         * m4/path-concat.m4: New file.
95830
95831         Module pathmax.
95832         * m4/pathmax.m4: New file.
95833
95834         Module same.
95835         * m4/same.m4: New file.
95836
95837         Module save-cwd.
95838         * m4/save-cwd.m4: New file.
95839
95840         Module savedir.
95841         * m4/savedir.m4: New file.
95842
95843         Module xgetcwd.
95844         * m4/xgetcwd.m4: New file.
95845         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95846
95847         Module xreadlink.
95848         * m4/xreadlink.m4: New file.
95849
95850         Module safe-read.
95851         * m4/safe-read.m4: New file.
95852
95853         Module safe-write.
95854         * m4/safe-write.m4: New file.
95855
95856         Module closeout.
95857         * m4/closeout.m4: New file.
95858
95859         Module stdio-safer.
95860         * m4/stdio-safer.m4: New file.
95861
95862         Module getpass.
95863         * m4/getpass.m4: New file.
95864
95865         Module getugroups.
95866         * m4/getugroups.m4: New file.
95867
95868         Module group-member.
95869         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95870         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95871
95872         Module idcache.
95873         * m4/idcache.m4: New file.
95874
95875         Module userspec.
95876         * m4/userspec.m4: New file.
95877
95878         Module gettime.
95879         * m4/clock_time.m4: New file.
95880         * m4/gettime.m4: New file.
95881
95882         Module settime.
95883         * m4/settime.m4: New file.
95884
95885         Module posixtm.
95886         * m4/posixtm.m4: New file.
95887
95888         Module gethostname.
95889         * m4/gethostname.m4: New file.
95890
95891         Module canon-host.
95892         * m4/canon-host.m4: New file.
95893
95894         Module gettext.
95895         * m4/codeset.m4: New file, from gettext-0.11.5.
95896         * m4/gettext.m4: New file, from gettext-0.11.5.
95897         * m4/glibc21.m4: New file, from gettext-0.11.5.
95898         * m4/iconv.m4: New file, from gettext-0.11.5.
95899         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95900         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95901         * m4/inttypes.m4: New file, from gettext-0.11.5.
95902         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95903         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95904         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95905         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95906         * m4/lib-link.m4: New file, from gettext-0.11.5.
95907         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95908         * m4/progtest.m4: New file, from gettext-0.11.5.
95909         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95910         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95911         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95912
95913         Module localcharset.
95914         * m4/localcharset.m4: New file.
95915
95916         Module hard-locale.
95917         * m4/hard-locale.m4: New file.
95918
95919         Module mbswidth.
95920         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95921         onceonly macros.
95922         * m4/mbrtowc.m4: Add comment.
95923
95924         Module memcasecmp.
95925         * m4/memcasecmp.m4: New file.
95926
95927         Module memcoll.
95928         * m4/memcoll.m4: New file.
95929
95930         Module unicodeio.
95931         * m4/unicodeio.m4: New file.
95932
95933         Module rpmatch.
95934         * m4/rpmatch.m4: New file.
95935
95936         Module yesno.
95937         * m4/yesno.m4: New file.
95938
95939         Module exitfail.
95940         * m4/exitfail.m4: New file.
95941
95942         Module c-stack.
95943         * m4/c-stack.m4 (gl_C_STACK): New macro.
95944         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95945
95946         Module error.
95947         * m4/error.m4 (gl_ERROR): New macro.
95948         (jm_PREREQ_ERROR): Use onceonly macros.
95949
95950         Module fatal.
95951         * m4/fatal.m4: New file.
95952
95953         Module getloadavg.
95954         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95955         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95956
95957         Module getpagesize.
95958         * m4/getpagesize.m4: New file.
95959
95960         Module getusershell.
95961         * m4/getusershell.m4: New file.
95962
95963         Module physmem.
95964         * m4/physmem.m4: New file.
95965
95966         Module posixver.
95967         * m4/posixver.m4: New file.
95968
95969         Module quotearg.
95970         * m4/quotearg.m4: New file.
95971
95972         Module quote.
95973         * m4/quote.m4: New file.
95974
95975         Module readutmp.
95976         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95977
95978         Module sig2str.
95979         * m4/sig2str.m4: New file.
95980
95981         Other.
95982         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95983         ulonglong.m4.
95984         * m4/intmax_t.m4: New file.
95985         * m4/d-type.m4: Indentation.
95986         * m4/jm-macros.m4: Update.
95987         * m4/prereq.m4 (jm_PREREQ): Update.
95988         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95989         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95990         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95991         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95992         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95993         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95994         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95995         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95996         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95997         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95998         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95999         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96000         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96001         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96002         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96003         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96004         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96005         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96006         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96007
96008 2002-12-24  Bruno Haible  <bruno@clisp.org>
96009
96010         * MODULES.txt: Update according to m4/ changes.
96011
96012         Module gettext.
96013         * config.rpath: New file, from gettext-0.11.5.
96014
96015         * modules/*: New module descriptions.
96016         * gnulib-tool: New file.
96017         * MODULES.html.sh: New file.
96018
96019 2002-12-21  Karl Berry  <karl@gnu.org>
96020
96021         * doc/fdl.texi: update to version 1.2.
96022
96023 2002-12-19  Karl Berry  <karl@gnu.org>
96024
96025         * config/config.guess: update from prep.
96026
96027 2002-12-18  Bruno Haible  <bruno@clisp.org>
96028
96029         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96030         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96031
96032 2002-12-17  Bruno Haible  <bruno@clisp.org>
96033
96034         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96035         stdlib.h, string.h.
96036
96037 2002-12-17  Bruno Haible  <bruno@clisp.org>
96038
96039         * lib/canon-host.c (strdup): Remove unused declaration.
96040
96041         * lib/fsusage.c: Include full_read.h.
96042         (get_fs_usage): Use full_read instead of safe_read.
96043
96044         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96045
96046 2002-12-12  Karl Berry  <karl@gnu.org>
96047
96048         * config/config.guess: update from prep.
96049
96050 2002-12-11  Bruno Haible  <bruno@clisp.org>
96051
96052         * m4/setenv.m4: New file, from gettext-0.11.5.
96053
96054 2002-12-11  Bruno Haible  <bruno@clisp.org>
96055
96056         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96057         not unsetenv().
96058         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96059         modifications:
96060
96061         2002-12-11  Bruno Haible  <bruno@clisp.org>
96062
96063                 * setenv.c (alloca): Fall back to malloc.
96064                 (freea): New macro.
96065                 (setenv): Use freea() to free memory allocated with alloca().
96066
96067         2002-11-13  Bruno Haible  <bruno@clisp.org>
96068
96069                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96070                 function declarations.
96071                 * unsetenv.c (unsetenv): Likewise.
96072
96073         2002-03-04  Bruno Haible  <bruno@clisp.org>
96074
96075                 Portability to AIX 4.3.3.
96076                 * unsetenv.c: New file, extracted from setenv.c.
96077                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96078
96079         2001-12-20  Bruno Haible  <bruno@clisp.org>
96080
96081                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96082                 use malloc instead. For SunOS 4.
96083
96084         2001-12-11  Bruno Haible  <bruno@clisp.org>
96085
96086                 * setenv.c: Declare alloca.
96087                 (compar_fn_t): New typedef.
96088                 (KNOWN_VALUE, STORE_VALUE): Use it.
96089
96090         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96091         setenv.h.
96092
96093 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96094
96095         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96097         Choose values that are less likely to collide with system fnmatch
96098         options.
96099         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96100         defined (e.g., a pure POSIX system).
96101         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96102         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96103
96104 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96105
96106         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96107         a pain in practice to deal with generated m4 files.  This change
96108         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96109
96110         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96111         and jm-glibc-io.m4, as they are no longer a special case.
96112         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96113         kludge and the auto-generation stuff.  Check only whether the
96114         functions are declared, not whether they exist, since older hosts
96115         that don't declare the functions can't use the optimization anyway.
96116
96117 2002-12-06  Jim Meyering  <jim@meyering.net>
96118
96119         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96120
96121         Merge in changes from libc's misc/error.c, in preparation
96122         for the merge of gnulib's changes back into libc.
96123
96124         * lib/error.c (_): Define only if not already defined.
96125         Move definition to follow all #include directives.
96126         Include unlocked-io.h only if !_LIBC.
96127         [_LIBC]: Include <libio/libioP.h>.
96128         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96129         (fflush): Tweak definition to use INTUSE.
96130         (putc): Define.
96131
96132 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96133
96134         * lib/alloca.c [defined emacs]: Include "lisp.h".
96135         (xalloc_die) [defined emacs]: New macro.
96136         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96137         [! defined emacs]: Include <xalloc.h>.
96138         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96139         (pointer): Typedef to POINTER_TYPE *.
96140         (malloc): Remove decl; we now always use xmalloc.
96141         (alloca): Use old-style definition, since Emacs needs this.
96142         Check for arithmetic overflow when computing combined size.
96143
96144 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96145
96146         Do not generate unlocked-io.h automatically, since it's easier to
96147         maintain it by hand.
96148
96149         * lib/unlocked-io.h: New file, from GNU diffutils,
96150         but with proper copyright notice and attribution.
96151         * lib/gen-uio: Remove.
96152         * lib/Makefile.am: Add copyright notice.
96153         (libfetish_a_SOURCES): Add unlocked-io.h.
96154         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96155         (DISTCLEANFILES, io_functions): Remove macros.
96156         (EXTRA_DIST): Remove gen_uio.
96157         (unlocked-io.h): Remove rule.
96158
96159 2002-12-04  Jim Meyering  <jim@meyering.net>
96160
96161         Reflect the fact that stat.c and lstat.c are no longer generated.
96162         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96163         (DISTCLEANFILES): Likewise.
96164         (EXTRA_DIST): Likewise.
96165         (all_local): Don't depend on stat.c or lstat.c.
96166         (stat.c, lstat.c): Remove rules.
96167         (EXTRA_DIST): Remove xstat.in.
96168
96169         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96170         * lib/stat.c: New file.  Contents mostly from xstat.in.
96171         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96172         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96173
96174         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96175         too.
96176         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96177
96178 2002-12-03  Jim Meyering  <jim@meyering.net>
96179
96180         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96181         but not semantics, to minimize the differences between these two files.
96182         (safe_read): Change comment to mention SAFE_READ_ERROR.
96183
96184         * lib/safe-read.c (IS_EINTR): Define.
96185         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96186
96187 2002-12-02  Jim Meyering  <jim@meyering.net>
96188
96189         * lib/safe-read.c (EINTR): Define.
96190         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96191         (INT_MAX): Provide fallback.
96192         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96193
96194         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96195
96196 2002-12-02  Bruno Haible  <bruno@clisp.org>
96197
96198         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96199         Define, taken from safe-read.c.
96200         (INT_MAX): Provide fallback.
96201         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96202         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96203
96204         * lib/safe-read.c (EINTR): Remove definition.
96205         (safe_read): Don't use EINTR if it is absent.
96206
96207 2002-12-01  Jim Meyering  <jim@meyering.net>
96208
96209         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96210         zero.
96211         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96212
96213 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96214
96215         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96216         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96217         with `if (! (value < limit)) abort ();', for readability.
96218
96219 2002-11-26  Karl Berry  <karl@gnu.org>
96220
96221         * lib/strdup.c: copy from libc again, with jim's ok.
96222         * lib/.cppi-disable: re-add strdup.c
96223
96224 2002-11-25  Karl Berry  <karl@gnu.org>
96225
96226         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96227         instead of "strtol.c".
96228
96229 2002-11-25  Karl Berry  <karl@gnu.org>
96230
96231         * config/install-sh: update from automake for variable quoting, $0 in
96232         error msgs, etc.
96233
96234         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96235         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96236         entry.
96237
96238 2002-11-25  Jim Meyering  <jim@meyering.net>
96239
96240         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96241
96242 2002-11-24  Karl Berry  <karl@gnu.org>
96243
96244         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96245         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96246
96247 2002-11-24  Jim Meyering  <jim@meyering.net>
96248
96249         Update from coreutils:
96250
96251         * lib/mktime.c: Merge in changes from libc.
96252
96253         Avoid a link-time failure on some Linux systems.
96254         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96255         (otherwise).
96256         (__mon_yday): Declare with the STATIC attribute.
96257         (__mktime_internal): Likewise.
96258         Based on a report from Greg Schafer.
96259
96260 2002-11-23  Jim Meyering  <jim@meyering.net>
96261
96262         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96263         Use `unsigned', not `int', as type of index.
96264
96265         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96266
96267         * lib/fsusage.c: Remove unneeded parentheses around operands of
96268         `defined'.
96269
96270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96271
96272         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96273         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96274         so that we can be included first.
96275         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96276         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96277         No need to include stddef.h or sys/types.h any more.
96278         Surround local include files with "", not "<>".
96279         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96280         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96281         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96282         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96283         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96284         (ISPRINT): Remove; no longer needed now that we assume C89.
96285
96286         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96287         Preserve errno.
96288
96289         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96290         quotearg_char): Use SIZE_MAX rather than
96291         (size_t) -1 when we are talking about "infinity".
96292
96293         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96294
96295 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96296
96297         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96298         hint that one should use `if (! x) abort ();' rather than `assert
96299         (x);', and anyway it's one less thing to worry about configuring.
96300         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96301         hash_rehash, hash_insert): Use abort rather than assert.
96302
96303 2002-11-22  Bruno Haible  <bruno@clisp.org>
96304
96305         * lib/safe-read.h: Assume C89. Add comments.
96306         (safe_read): Change return type to size_t.
96307         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96308         byte counts > SSIZE_MAX correctly.
96309         * lib/safe-write.h: New file.
96310         * lib/safe-write.c: New file.
96311         * lib/full-read.h: New file.
96312         * lib/full-read.c: New file.
96313         * lib/full-write.h: Assume C89. Add comments.
96314         * lib/full-write.c: Include safe-write.h.
96315         (full_write): Rewritten to use safe_write.
96316         Suggested by Jim Meyering and Paul Eggert.
96317
96318 2002-11-21  Jim Meyering  <jim@meyering.net>
96319
96320         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96321
96322         Merge in changes from the coreutils.
96323
96324         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96325         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96326         <stdint.h>.
96327         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96328         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96329         int.  Work more efficiently if X is the same width as uintmax_t.
96330         Do not compare X to -1, to avoid bogus compiler warning.
96331         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96332         Don't assume that f_frsize and f_bsize are the same type.
96333
96334         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96335         warning on FreeBSD.
96336
96337         * lib/makepath.c (make_path): Restore umask *before* creating the final
96338         component.
96339         (make_path): Minor reformatting.
96340
96341         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96342         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96343         HAVE_MALLOC/HAVE_REALLOC.
96344
96345         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96346         dummy ones.  At least on GNU/Linux systems, `auto' means something
96347         else.
96348         From Michael Stone.
96349
96350 2002-11-21  Bruno Haible  <bruno@clisp.org>
96351
96352         Remove case insensitive option matching.
96353         * lib/argmatch.h (argcasematch): Remove declaration.
96354         (ARGCASEMATCH): Remove macro.
96355         (__xargmatch_internal): Remove case_sensitive argument.
96356         (XARGMATCH): Update.
96357         (XARGCASEMATCH): Remove macro.
96358         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96359         case_sensitive argument.
96360         (argcasematch): Remove function.
96361         (__xargmatch_internal): Remove case_sensitive argument.
96362         (main): Use XARGMATCH instead of XARGCASEMATCH.
96363
96364         * lib/xmalloc.c: Change compile-time error message. Add comment about
96365         required autoconf version.
96366
96367 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96368
96369         Merge argmatch cleanups from Bison.  Assume C89.
96370
96371         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96372         Include stdlib.h, for EXIT_FAILURE.
96373         Always include <string.h>, since we assume C89.
96374         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96375         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96376         Include <stddef.h> instead, since it's all we need for size_t.
96377         (PARAMS): Remove.  All uses removed.
96378         (ARRAY_CARDINALITY): Do not bother to #undef.
96379         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96380         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96381         Remove unnecessary parentheses.
96382         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96383         Insert necessary parentheses.
96384         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96385         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96386
96387 2002-11-19  Bruno Haible  <bruno@clisp.org>
96388
96389         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96390         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96391
96392         * lib/mbswidth.h (PARAMS): Remove macro.
96393         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96394         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96395
96396         * lib/gcd.h (PARAMS): Remove macro.
96397         (gcd): Use ANSI C function declarations.
96398         * lib/gcd.c (gcd): Likewise.
96399
96400 2002-11-15  Bruno Haible  <bruno@clisp.org>
96401
96402         * lib/strcspn.c: Include <stddef.h>.
96403         (strcspn): Use ANSI C function declaration. Change return type to
96404         size_t. Use NULL.
96405         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96406         (strpbrk): Use NULL.
96407         * lib/strpbrk.h (PARAMS): Remove macro.
96408         (strpbrk): Use ANSI C function declaration.
96409         * lib/strstr.c: Don't include <sys/types.h>.
96410         * lib/strstr.h (PARAMS): Remove macro.
96411         (strstr): Use ANSI C function declarations.
96412
96413 2002-11-14  Karl Berry  <karl@gnu.org>
96414
96415         * config/mkinstalldirs: `do' on separate line, instead of
96416         `for var; do'.
96417
96418 2002-11-06  Bruno Haible  <bruno@clisp.org>
96419
96420         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96421         * lib/gcd.c (gcd): Likewise.
96422
96423 2002-11-05  Bruno Haible  <bruno@clisp.org>
96424
96425         * lib/gcd.h: New file, from gettext-0.11.5.
96426         * lib/gcd.c: New file, from gettext-0.11.5.
96427
96428 2002-11-05  Bruno Haible  <bruno@clisp.org>
96429
96430         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96431         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96432         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96433         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96434
96435         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96436         <libintl.h>.
96437         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96438         <libintl.h>.
96439
96440         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96441         * lib/human.c: Include gettext.h instead of <libintl.h>.
96442         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96443         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96444         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96445         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96446         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96447         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96448         (textdomain): Remove definition.
96449         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96450
96451         * lib/long-options.c: Remove include of <libintl.h> and definition of
96452         _.
96453         * lib/same.c: Remove include of <libintl.h> and definition of _.
96454
96455 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96456
96457         * lib/config.charset: A few additions for Solaris.
96458
96459 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96460
96461         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96462         * lib/localcharset.c (locale_charset): Declare as extern "C".
96463
96464 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96465
96466         * lib/config.charset: msdos in uk_UA uses CP1125.
96467
96468 2002-11-04  Bruno Haible  <bruno@clisp.org>
96469
96470         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96471         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96472         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96473         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96474         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96475
96476 2002-11-04  Bruno Haible  <bruno@clisp.org>
96477
96478         * lib/localcharset.c (locale_charset): Don't return an empty string.
96479
96480 2002-11-04  Bruno Haible  <bruno@clisp.org>
96481
96482         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96483         aliases.
96484
96485 2002-11-04  Bruno Haible  <bruno@clisp.org>
96486
96487         * lib/config.charset: Update for newest glibc. Add canonical names
96488         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96489
96490 2002-11-04  Bruno Haible  <bruno@clisp.org>
96491
96492         * lib/config.charset: Add support for NetBSD.
96493
96494 2002-11-04  Bruno Haible  <bruno@clisp.org>
96495
96496         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96497
96498 2002-11-01  Bruno Haible  <bruno@clisp.org>
96499
96500         * configure.in: Add AC_CONFIG_AUX_DIR call.
96501         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96502         test/Makefile.
96503         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96504
96505 2002-09-28  Karl Berry  <karl@gnu.org>
96506
96507         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96508         installed automake until the next release, since changes have been
96509         made.
96510
96511 2002-09-25  Karl Berry  <karl@gnu.org>
96512
96513         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96514         * lib/getopt*: copy from libc/posix.
96515         * lib/gettext.h: copy from gettext.
96516         * lib/.cppi-disable: add strdup.c, gettext.h.
96517
96518 2002-09-25  Karl Berry  <karl@gnu.org>
96519
96520         * config/srclist.txt: enable gettext.h check.
96521         * config/config.{guess,sub}: update from prep.
96522         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96523                 from automake 1.6.3.
96524         See srclist*.
96525
96526 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96527
96528         * regex.c (PATFETCH): Remove the translating fetch.
96529         (PATFETCH_RAW): Rename to PATFETCH.
96530         (set_image_of_range): New fun.
96531         (SET_RANGE_TABLE_WORK_AREA): Use it.
96532         (regex_compile): Don't translate the pattern chars so eagerly.
96533         Only do it when inserting an `exactn' bytecode or when handling
96534         a char-range.
96535         (mutually_exclusive_p): Avoid empty statement.
96536
96537 2002-07-06  Jim Meyering  <meyering@lucent.com>
96538
96539         * m4/README: Don't mention Makefile.am.in.
96540         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96541
96542 2002-07-01  Jim Meyering  <meyering@lucent.com>
96543
96544         * lib/c-stack.c: Include sys/time.h.
96545         From Volker Borchert.
96546
96547 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96548
96549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96550
96551 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96552
96553         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96554         New macro.  Use it uniformly instead of
96555         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96556         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96557         reported by Vin Shelton.
96558
96559 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96560
96561         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96562         Do not assume SA_SIGINFO behavior.
96563         Bug reported by Jim Meyering on NetBSD 1.5.2.
96564
96565 2002-06-22  Jim Meyering  <meyering@lucent.com>
96566
96567         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96569
96570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96571         now that configure.ac uses AC_GNU_SOURCE.
96572         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96573         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96574
96575         Update to latest tools.  Suggestions from Paul Eggert.
96576         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96577         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96578         * m4/fnmatch.m4: Likewise.
96579         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96580         to AC_HEADER_STDBOOL
96581
96582 2002-06-22  Jim Meyering  <meyering@lucent.com>
96583
96584         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96585         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96586
96587 2002-06-22  Jim Meyering  <meyering@lucent.com>
96588
96589         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96590
96591         * lib/exitfail.c, exitfail.h: Likewise.
96592         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96593
96594         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96595         of fnmatch.h.
96596         (EXTRA_DIST): Add fnmatch_loop.c.
96597         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96598
96599         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96600         * lib/fnmatch.c: Update from diffutils-2.8.2.
96601         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96602         * lib/fnmatch.h: Remove file.
96603
96604 2002-06-21  Jim Meyering  <meyering@lucent.com>
96605
96606         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96607         * m4/mbrtowc.m4: Likewise.
96608
96609         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96610         * m4/mbswidth.m4: Reflect name change:
96611         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96613
96614         * m4/lib-link.m4: Update from gettext-0.11.2.
96615         * m4/gettext.m4: Likewise.
96616
96617         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96618         From Alfred M. Szmidt.
96619
96620 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96621
96622         * lib/file-type.h: Report an error if neither S_ISREG nor
96623         S_IFREG is defined, instead of using a test specific to glibc
96624         2.2.  This should be safe, since POSIX requires S_ISREG and
96625         Unix Version 7 had S_IFREG.  We don't need to check for
96626         <sys/types.h> since we don't use any symbols that it defines.
96627
96628 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96629
96630         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96631         $@-t, so that each temporary file name is unique and valid in the first
96632         8 characters, for operation under DOS.
96633
96634 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96635
96636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96637
96638 2002-06-15  Jim Meyering  <meyering@lucent.com>
96639
96640         Work even with DJGPP 2.03, which lacks support for symlinks.
96641         From Richard Dawe.
96642         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96643         is defined.
96644         * lib/lchown.c (S_ISLNK): Likewise.
96645
96646 2002-06-15  Jim Meyering  <meyering@lucent.com>
96647
96648         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96649         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96650         have been included before this file.
96651
96652 2002-06-14  Jim Meyering  <meyering@lucent.com>
96653
96654         * lib/file-type.h: Use the version from diffutils-2.8.2.
96655         * lib/file-type.c: Likewise.
96656
96657 2002-06-07  Jim Meyering  <meyering@lucent.com>
96658
96659         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96660         They're needed at least for NetBSD 1.5.2.
96661         ($statxfs_includes): Include those same headers.
96662         ($statxfs_includes): Include sys/vfs.h if available.
96663         ($statxfs_includes): Likewise for sys/statvfs.h.
96664         Check for the following members in both structs statfs and statvfs:
96665         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96666
96667 2002-06-01  Jim Meyering  <meyering@lucent.com>
96668
96669         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96670         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96671
96672 2002-05-28  Jim Meyering  <meyering@lucent.com>
96673
96674         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96675         Reported by Volker Borchert.
96676
96677 2002-05-27  Jim Meyering  <meyering@lucent.com>
96678
96679         Fix a problem seen only on nonconforming systems whereby ls.c's
96680         use of localtime, and then of gettimeofday would cause trouble:
96681         the localtime call used to initialize rpl_gettimeofday's save
96682         mechanism would clobber ls's current local time information so
96683         that in any long listing the first file would always be listed
96684         with date 1970-01-01.  Analysis by Volker Borchert.
96685
96686         * lib/gettimeofday.c (localtime): Undefine.
96687         (rpl_localtime): New function.
96688
96689 2002-05-27  Jim Meyering  <meyering@lucent.com>
96690
96691         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96692         localtime.
96693
96694         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96695         use the replacement function; it wouldn't resolve at link time.
96696         Reported by Volker Borchert.
96697
96698 2002-05-22  Jim Meyering  <meyering@lucent.com>
96699
96700         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96701         file-type.h.
96702         * lib/file-type.h: New file.
96703         * lib/file-type.c (file_type): New file/function.  Extracted from
96704         diffutils.
96705
96706 2002-04-30  Jim Meyering  <meyering@lucent.com>
96707
96708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96709
96710 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96711
96712         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96713
96714 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96715
96716         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96717         Do not check for alloca.h (no longer used) or stdbool.h (was never
96718         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96719
96720 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96721
96722         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96723
96724 2002-04-29  Jim Meyering  <meyering@lucent.com>
96725
96726         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96727         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96728         Use AC_FUNC_STRNLEN here instead.
96729
96730         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96731         With autoconf-2.53a, it's part of AC_PROG_CC.
96732
96733 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96734
96735         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96737
96738 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96739
96740         * lib/sig2str.h, lib/sig2str.c: New files.
96741         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96742
96743 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96744
96745         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96746         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96747         of 127, since 64 is the largest conceivable number for ancient
96748         nonstandard hosts.
96749         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96750
96751 2002-04-28  Jim Meyering  <meyering@lucent.com>
96752
96753         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96754
96755 2002-04-24  Jim Meyering  <meyering@lucent.com>
96756
96757         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96758         (jm_PREREQ): Use it.
96759
96760         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96761         mach/mach.h fcntl.h.
96762         Check for this function: setlocale.
96763
96764 2002-04-24  Jim Meyering  <meyering@lucent.com>
96765
96766         * lib/gettext.h: New file, from Gettext.
96767         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96768         (libfetish_a_SOURCES): Add gettext.h.
96769
96770 2002-04-16  Jim Meyering  <meyering@lucent.com>
96771
96772         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96773         ut_pid, ut_id, ut_exit.
96774
96775 2002-04-16  Jim Meyering  <meyering@lucent.com>
96776
96777         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96778         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96779         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96780
96781 2002-04-12  Jim Meyering  <meyering@lucent.com>
96782
96783         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96784         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96785         existence of the getmntinfo function.  Needed for Darwin 5.3.
96786
96787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96788         This is necessary at least on Darwin 5.3.
96789
96790         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96791         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96792         strnlen.o in the library, and that makes some versions of ranlib
96793         object.
96794
96795 2002-04-12  Jim Meyering  <meyering@lucent.com>
96796
96797         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96798
96799 2002-04-09  Jim Meyering  <meyering@lucent.com>
96800
96801         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96802         to be more precise.  Rather than saying we're checking whether the
96803         function `works', say what we're testing.
96804         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96805         Reported by Bruno Haible.
96806
96807 2002-03-10  Jim Meyering  <meyering@lucent.com>
96808
96809         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96810         Suggestion from Santiago Vila.
96811
96812 2002-03-08  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/rename.c: Mention that this wrapper is needed also on
96815         mips-dec-ultrix4.4 systems.
96816
96817 2002-03-02  Jim Meyering  <meyering@lucent.com>
96818
96819         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96820         not HAVE_CLOCK_SETTIME.
96821
96822 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96823
96824         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96825         Check for clock_settime.
96826
96827 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96828
96829         * lib/nanosleep.h: Rename to....
96830         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96831
96832         * lib/gettime.c: New file.
96833         * lib/settime.c: New file.
96834         * lib/stime.c: Remove.
96835
96836         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96837         timespec.h.  Remove nanosleep.h.
96838
96839 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96840
96841         * m4/acl.m4: New file.
96842         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96843         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96844
96845 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96846
96847         * lib/acl.c, lib/acl.h: New files.
96848         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96849
96850 2002-02-24  Jim Meyering  <meyering@lucent.com>
96851
96852         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96853         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96854         cause trouble.  Reported by Nelson Beebe.
96855
96856 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96857
96858         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96859         compilers that don't know that xalloc_die never returns.
96860
96861 2002-02-20  Jim Meyering  <meyering@lucent.com>
96862
96863         * lib/getdate.c: Regenerate using bison-1.33.
96864
96865 2002-02-17  Jim Meyering  <meyering@lucent.com>
96866
96867         * config/config.guess (main): Don't use `head -1'; it's no longer
96868         portable. Use `sed 1q' instead.
96869
96870 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96871
96872         * m4/codeset.m4: Upgrade to gettext-0.11.
96873         * m4/gettext.m4: Upgrade to gettext-0.11.
96874         * m4/glibc21.m4: Upgrade to gettext-0.11.
96875         * m4/iconv.m4: Upgrade to gettext-0.11.
96876         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96877         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96878         * m4/lib-ld.m4: New file, from gettext-0.11.
96879         * m4/lib-link.m4: New file, from gettext-0.11.
96880         * m4/lib-prefix.m4: New file, from gettext-0.11.
96881         * m4/progtest.m4: Upgrade to gettext-0.11.
96882
96883 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96884
96885         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96886         (jm_PREREQ): Use it.
96887
96888 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96889
96890         * lib/posixver.c, lib/posixver.h: New files.
96891         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96892
96893 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96894             Bruno Haible  <bruno@clisp.org>
96895
96896         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96897         (fwrite_success_callback): New declaration.
96898         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96899         print_unicode_char. Call failure callback instead of error.
96900         (fwrite_success_callback): New function.
96901         (exit_failure_callback): New function.
96902         (fallback_failure_callback): New function.
96903         (print_unicode_char): Call unicode_to_mb.
96904
96905 2002-01-26  Jim Meyering  <meyering@lucent.com>
96906
96907         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96908         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96909
96910 2002-01-26  Jim Meyering  <meyering@lucent.com>
96911
96912         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96913
96914 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96915
96916         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96917
96918 2002-01-22  Jim Meyering  <meyering@lucent.com>
96919
96920         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96921         Otherwise, some versions of automake would omit the rule that makes
96922         Makefile from Makefile.in.
96923
96924 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96925
96926         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96927         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96928         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96929         (memcoll): Set errno to zero if there is no error.
96930
96931         * lib/quotearg.c (quotearg_buffer_restyled):
96932         Fix bug with quoting buffers containing NUL when backslashing escapes.
96933         This bug was exposed by the other changes in this patch.
96934         (quotearg_n_options): New arg ARGSIZE.
96935         All callers changed.
96936         (quoting_options_from_style): New function.
96937         (quotearg_n_style): Use it.
96938         (quotearg_n_style_mem): New function.
96939
96940         * lib/quotearg.h (quotearg_n_style_mem): New function.
96941
96942 2002-01-19  Jim Meyering  <meyering@lucent.com>
96943
96944         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96945         Remove useless quotes: DF_PROG="df".
96946         * m4/strnlen.m4: New file.
96947
96948 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96949
96950         * lib/backupfile.c (ISDIGIT): Comment fix.
96951         * lib/getdate.y (ISDIGIT): Likewise.
96952         * lib/posixtm.c (ISDIGIT, year): Likewise.
96953         * lib/strverscmp.c (ISDIGIT): Likewise.
96954         * lib/userspec.c (ISDIGIT): Likewise.
96955
96956 2002-01-16  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/getdate.y: Add three semicolons, each just before a closing
96959         brace. Bison (as of version 1.31) no longer papers over that mistake.
96960
96961 2002-01-05  Jim Meyering  <meyering@lucent.com>
96962
96963         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96964
96965 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96966
96967         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96968         not silently exit merely because the output buffer happens to
96969         have nothing pending.
96970
96971 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96972
96973         See the big note in ../ChangeLog.
96974         * lib/human.c (suffixes): Prefer K to k for 1024.
96975         (generate_suffix_backwards): New function.
96976         (human_readable_inexact): Use it.
96977         * lib/xstrtol.c (__xstrtol): If there is no number but there
96978         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96979         Accept 'K' as well as 'k'.
96980
96981 2001-12-15  Jim Meyering  <meyering@lucent.com>
96982
96983         * lib/regex.h (__restrict_arr): Update from libc.
96984
96985         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96986         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96987         (STREQ): Define.
96988
96989 2001-12-14  Jim Meyering  <meyering@lucent.com>
96990
96991         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96992         Suggestion from Bruno Haible.
96993
96994 2001-12-10  Jim Meyering  <meyering@lucent.com>
96995
96996         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96997         xrealloc, Instead, include "xalloc.h".
96998         (initbuffer): Don't cast xmalloc return value to char*.
96999         (readline): Reword comment.
97000         Don't cast xrealloc return value to char*
97001         Return NULL, not 0.
97002
97003 2001-12-09  Jim Meyering  <meyering@lucent.com>
97004
97005         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97006         about `signed and unsigned type in conditional expression'.
97007         * lib/posixtm.c (posix_time_parse): Likewise.
97008
97009         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97010
97011         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97012         to avoid a pedantic warning.
97013
97014         * lib/getstr.c: Don't include assert.h.
97015         (getstr): Remove warning-evoking assertions.
97016         Return -1 if offset parameter is out of bounds.
97017         Change the type of a local from int to size_t.
97018
97019         * lib/strftime.c (my_strftime_localtime_r): Include this function
97020         definition in the `#if ! HAVE_TM_GMTOFF' block.
97021
97022         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97023         Include xalloc.h instead.
97024
97025 2001-12-02  Jim Meyering  <meyering@lucent.com>
97026
97027         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97028         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97029         included.
97030
97031         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97032         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97033
97034 2001-11-30  Akim Demaille  <akim@epita.fr>
97035
97036         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97037         before being defined.
97038
97039 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97040
97041         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97042         First arg is int, not unsigned.
97043         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97044         (SIZE_MAX, UINT_MAX): New macros.
97045         (quotearg_n_options): Abort if N is negative.
97046         Avoid overflow check on hosts where size_t is 64 bits and int
97047         is 32 bits, as overflow is impossible there.
97048         Fix off-by-one typo that caused unnecessary reallocation.
97049
97050 2001-11-27  Jim Meyering  <meyering@lucent.com>
97051
97052         * lib/tempname.c: Merge with version from libc.
97053         * lib/regex.c: Likewise.
97054
97055         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97056         systems for which STDC_HEADERS is 0, it was not included, resulting in
97057         a warning about an integer-to-pointer conversion problem with getenv.
97058         Reported by Volker Borchert.
97059
97060 2001-11-26  Jim Meyering  <meyering@lucent.com>
97061
97062         * lib/gtod.h: Remove file.
97063         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97064         * lib/gettimeofday.c: Don't include gtod.h.
97065         (GTOD_init): Remove function.
97066         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97067         Suggestion from Volker Borchert.
97068
97069 2001-11-23  Jim Meyering  <meyering@lucent.com>
97070
97071         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97072         it.
97073         * lib/hash.c (struct hash_table): Define it here instead.
97074
97075 2001-11-22  Jim Meyering  <meyering@lucent.com>
97076
97077         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97078
97079 2001-11-20  Jim Meyering  <meyering@lucent.com>
97080
97081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97082         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97083
97084 2001-11-19  Jim Meyering  <meyering@lucent.com>
97085
97086         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97087         directory.  Use "conftestXXXXXX" as the template.
97088         Suggestion from Paul Eggert.
97089
97090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97091         immediately, so the test doesn't mistakenly hit the max-open-files
97092         limit.
97093
97094 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97095
97096         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97097         (TEMPORARIES): New macro.
97098         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97099         removes an artificial limitation (e.g. HP-UX 10.20, where
97100         TMP_MAX is 17576).
97101
97102 2001-11-18  Jim Meyering  <meyering@lucent.com>
97103
97104         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97105
97106 2001-11-18  Jim Meyering  <meyering@lucent.com>
97107
97108         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97109         on SunOS 4.
97110
97111         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97112         files will be created before anything else.
97113
97114 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97115
97116         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97117         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97118
97119 2001-11-17  Jim Meyering  <meyering@lucent.com>
97120
97121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97122         Prompted by a report from Bob Proulx.
97123
97124         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97125         Instead, require UTILS_FUNC_MKSTEMP.
97126
97127 2001-11-17  Jim Meyering  <meyering@lucent.com>
97128
97129         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97130         Now, that's done as part of AC_FUNC_STRTOD.
97131
97132 2001-11-17  Jim Meyering  <meyering@lucent.com>
97133
97134         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97135         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97136         rather than group writable.  Patch by Juan F. Codagnone.
97137
97138         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97139         xrealloc, Instead, include "xalloc.h".
97140
97141         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97142         Remove explicit declarations of xmalloc, xrealloc,
97143         and xstrdup.  Instead, include "xalloc.h".
97144
97145         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97146         unlocked-io.h.
97147         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97148         Likewise.
97149         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97150
97151         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97152         Reported by Padraig Brady.
97153
97154         * lib/mkstemp.c: #undef mkstemp.
97155         Include config.h.
97156         (rpl_mkstemp): Rename from mkstemp.
97157         Protoize.
97158
97159 2001-11-16  Jim Meyering  <meyering@lucent.com>
97160
97161         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97162         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97163         determine the amount of total physical memory, use pstat_getstatic.
97164         HPUX-11 doesn't define _SC_PHYS_PAGES.
97165         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97166         If sysconf couldn't be used to determine the amount of available
97167         physical memory, use both pstat_getstatic and pstat_getdynamic.
97168         Based on a patch from Bob Proulx.
97169
97170 2001-11-10  Jim Meyering  <meyering@lucent.com>
97171
97172         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97173         (jm_PREREQ): Use it.
97174
97175 2001-11-09  Jim Meyering  <meyering@lucent.com>
97176
97177         * m4/jm-macros.m4: Require autoconf-2.52f.
97178         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97179         Use these AC_-prefixed names, not the AM_-prefixed ones.
97180
97181         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97182
97183 2001-11-05  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97186
97187 2001-11-04  Jim Meyering  <meyering@lucent.com>
97188
97189         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97190         $DEFS.
97191
97192 2001-11-03  Jim Meyering  <meyering@lucent.com>
97193
97194         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97195         of AC_DEFUN.
97196
97197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97198         know the name of the variable in the macro definition.
97199
97200 2001-11-03  Jim Meyering  <meyering@lucent.com>
97201
97202         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97203         in argmatch_to_argument call.
97204
97205         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97206         argument.
97207
97208         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97209         e.g., a fault due to an attempt to free a NULL pointer.
97210
97211 2001-11-01  Jim Meyering  <meyering@lucent.com>
97212
97213         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97214         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97215
97216 2001-11-01  Jim Meyering  <meyering@lucent.com>
97217
97218         * lib/dirfd.c, lib/dirfd.h: New files.
97219         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97220
97221         * lib/hash.c (hash_print) [TESTING]: Clean up.
97222
97223 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97224
97225         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97226         to avoid a warning if -Wall.
97227
97228 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97229
97230         * README: New file
97231         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97232         (per RMS's instructions, this is now the canonical source)
97233         * lgpl/, gpl/: New directories.
97234
97235 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97236
97237         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97238
97239 2001-10-21  Jim Meyering  <meyering@lucent.com>
97240
97241         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97242         this code would end up calling gettext even in packages built
97243         with --disable-nls.
97244         * lib/getopt.c (_): Likewise.
97245         * lib/regex.c (_): Likewise.
97246
97247 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97248
97249         * m4/error.m4 (jm_PREREQ_ERROR):
97250         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97251         AC_FUNC_STRERROR_R does that.
97252         Check for strerror declaration.
97253
97254         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97255         are supposed to have them these days.
97256         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97257         Merge changes from latest Autoconf CVS.
97258         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97259         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97260         POSIX decided to standardize on the int flavor of strerror_r.
97261
97262 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97263
97264         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97265         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97266         Use strerror_r that is only a macro, even if it is not a function.
97267         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97268         (private_strerror): Use prototypes, not old-style function definition.
97269         (print_errno_message): New function.
97270         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97271         char*-flavored one.
97272         (error_tail, error, error_at_line): Use it.
97273
97274 2001-10-11  Jim Meyering  <meyering@lucent.com>
97275
97276         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97277         and quote_n (1, ... to avoid clobbering a buffer.
97278
97279 2001-10-05  Jim Meyering  <meyering@lucent.com>
97280
97281         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97282         hash-pjw.h.
97283         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97284         * lib/hash-pjw.h: New file.
97285
97286 2001-09-30  Jim Meyering  <meyering@lucent.com>
97287
97288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97289         `struct fsstat' has the `f_fstypename' member.
97290         Use that to define FS_TYPE, which is now used to make
97291         the getfsstat link test tighter.
97292
97293 2001-09-30  Jim Meyering  <meyering@lucent.com>
97294
97295         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97296         Include <sys/ucred.h>, for Apple Darwin.
97297         Include sys/mount.h and sys/fs_types.h only if available.
97298         (FS_TYPE): Define.
97299         (read_filesystem_list): Use FS_TYPE.
97300
97301 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97302
97303         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97304         a boolean context.
97305
97306 2001-09-29  Jim Meyering  <meyering@lucent.com>
97307
97308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97309         [one-argument getmntent function]): Include stdio.h before mntent.h.
97310         SunOS 4.1.x needs it for the declaration of `FILE'.
97311         Patch by Volker Borchert.
97312
97313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97314         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97315         sys/fs_types.h, and make the link-test for getfsstat guard #include
97316         directives with appropriate #if HAVE_*_H tests so that we can
97317         detect getfsstat on Apple Darwin1.3.7 systems.
97318         Reported by Nelson Beebe.
97319         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97320
97321 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97322
97323         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97324         #defines strtoimax.  Also treat the other strto* functions
97325         like strtoimax.
97326
97327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97328         Check for strtoul and strtoumax,
97329         as those declarations are made even in the signed case.
97330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97331         Likewise, for strtol and strtoimax.
97332
97333 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97334
97335         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97336         #defines strtoimax.  Also treat the other strto* functions
97337         like strtoimax.
97338
97339         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97340         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97341         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97342
97343 2001-09-26  Jim Meyering  <meyering@lucent.com>
97344
97345         Most macros in unlocked-io.h had the wrong number of arguments.
97346         * lib/gen-uio: New script.
97347         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97348         * lib/unlocked-io.hin: Remove file.
97349         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97350         rather than trying to embed it here.
97351         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97352         Reported by Padraig Brady.
97353
97354 2001-09-25  Volker Borchert  <bt@teknon.de>
97355
97356         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97357         `result'.
97358
97359 2001-09-24  Jim Meyering  <meyering@lucent.com>
97360
97361         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97362
97363 2001-09-23  Jim Meyering  <meyering@lucent.com>
97364
97365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97366         instead of the mere test for existence of mntent.h.  The latter
97367         would get a false-positive on AIX 3.4 systems.
97368         In the outer getmntent if-block, don't die if neither of the getmntent
97369         tests succeeds.  Instead, just fall through and continue with the
97370         remaining tests.
97371
97372 2001-09-23  Jim Meyering  <meyering@lucent.com>
97373
97374         * lib/mountlist.c: Remove useless parentheses in #if directives.
97375         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97376         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97377
97378 2001-09-22  Jim Meyering  <meyering@lucent.com>
97379
97380         * m4/gettext.m4: New file.  From gettext.
97381         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97382         * m4/progtest.m4: Likewise
97383         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97384         * m4/glibc21.m4: Likewise.
97385
97386         * m4/libintl.m4: Remove.  No longer used.
97387
97388 2001-09-22  Jim Meyering  <meyering@lucent.com>
97389
97390         * lib/localcharset.c: Update from latest gettext.
97391         * lib/config.charset: Likewise.
97392
97393 2001-09-20  Jim Meyering  <meyering@lucent.com>
97394
97395         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97396         strtoimax.
97397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97398         strtoumax.
97399
97400 2001-09-20  Jim Meyering  <meyering@lucent.com>
97401
97402         * lib/xstrtol.c (strtoimax): Guard declaration with
97403         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97404         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97405         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97406         (strtoumax): Likewise, for completeness (it wasn't necessary).
97407
97408 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97409
97410         * lib/strtoimax.c (HAVE_LONG_LONG):
97411         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97412         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97413         to work around bug in IBM C compiler.
97414
97415 2001-09-17  Jim Meyering  <meyering@lucent.com>
97416
97417         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97418         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97419         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97420         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97421         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97422         whenever the right hand side need not be expanded by the shell.
97423
97424 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97425
97426         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97427         library.  It's not correct, as some older glibcs are buggy.
97428         fnmatch wasn't fixed until glibc 2.2.
97429
97430         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97431         special shell magic here.
97432
97433 2001-09-16  Jim Meyering  <meyering@lucent.com>
97434
97435         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97436         * m4/jm-macros.m4: Require it.
97437
97438 2001-09-16  Jim Meyering  <meyering@lucent.com>
97439
97440         * lib/mkdir.c: New file.
97441
97442 2001-09-15  Jim Meyering  <meyering@lucent.com>
97443
97444         * m4/jm-macros.m4: Check for help2man.
97445
97446 2001-09-11  Jim Meyering  <meyering@lucent.com>
97447
97448         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97449         The body, by Paul Eggert, was moved here from configure.in.
97450         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97451
97452 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97453
97454         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97455         (jm_PREREQ): Use it.
97456
97457 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97458
97459         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97460         Use ssize_t, not int, to store result of readlink.
97461         Check for ssize_t overflow as well as size_t overflow,
97462         as POSIX says the result of readlink is implementation-defined
97463         when ssize_t overflows.
97464         Remove unnecessary cast to char*.
97465         Use free+malloc instead of realloc, as the storage doesn't need
97466         to be preserved and it's clearer and can be more efficient that way.
97467         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97468         * lib/xreadlink.h (xreadlink): Update prototype.
97469
97470 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97471
97472         * lib/xgetcwd.c: Revert some of the previous change; intead,
97473         fix the HAVE_GETCWD_NULL code to behave more like the
97474         !HAVE_GETCWD_NULL code used to.
97475
97476         Include "xalloc.h".
97477         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97478         invoke xalloc_die.
97479
97480 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97481
97482         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97483         sys/param.h, as pathmax.h includes them.
97484
97485 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97486
97487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97488         (jm_PREREQ_XGETCWD): New macro.
97489
97490         * m4/getcwd.m4: New file.
97491
97492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97493
97494         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97495         like the HAVE_GETCWD_NULL code.
97496         Include pathmax.h if not HAVE_GETCWD.
97497         Do not include xalloc.h.
97498         (INITIAL_BUFFER_SIZE): New symbol.
97499         Do not use xmalloc / xrealloc, since the caller is responsible for
97500         handling errors.  Preserve errno around `free' during failure.
97501         Do not overrun buffer when using getwd.
97502
97503 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97504
97505         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97506         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97507         getcwd (NULL, 0).
97508
97509 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97510
97511         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97512         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97513         spotted by Jim Meyering.
97514
97515 2001-09-03  Jim Meyering  <meyering@lucent.com>
97516
97517         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97518         failure.
97519
97520 2001-09-02  Jim Meyering  <meyering@lucent.com>
97521
97522         * lib/error.c: Update from GNU libc.
97523
97524 2001-09-01  Jim Meyering  <meyering@lucent.com>
97525
97526         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97527         Used by df.
97528
97529 2001-09-01  Jim Meyering  <meyering@lucent.com>
97530
97531         * lib/xreadlink.c: New file.
97532         * lib/xreadlink.h: New file.
97533         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97534         xreadlink.h.
97535
97536         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97537         doesn't conflict with sparc Solaris 7's definition in
97538         /usr/include/sys/int_types.h.
97539
97540         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97541         files.
97542         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97543         and strncasecmp as r-values.  Unixware didn't have declarations.
97544
97545 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97546
97547         * lib/xstrtol.h: Add copyright notice.
97548         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97549         LONGINT_INVALID_SUFFIX_CHAR.
97550
97551 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97552
97553         * lib/xstrtol.c (strtoimax): New decl.
97554
97555 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97556
97557         * lib/xgetcwd.c: Don't include pathmax.h.
97558         Include stdlib.h and unistd.h if available.
97559         Include xalloc.h.
97560         (xmalloc, xstrdup, free): Remove decls.
97561         (xgetcwd): Don't assume sizes fit in unsigned.
97562         Check for overflow when computing sizes.
97563         Simplify reallocation code.
97564
97565 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97566
97567         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97568         a directory's st_size can have an arbitrary value, so the old
97569         usage could waste an arbitrary amount of memory.  All uses
97570         changed.
97571         * lib/savedir.h: Update prototype.
97572
97573 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97574
97575         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97576
97577         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97578         old strtoimax.c.
97579
97580         Also, make the following further changes to make this file's
97581         configuration more similar to that of strtol.c:
97582         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97583         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97584         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97585         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97586         changed to signed values.
97587
97588         And make the following changes as well:
97589         Fix copyright notice, as 1999 was missing.
97590         (verify): New macro.
97591         (strtoimax): Check sizes at compile-time, not run-time.
97592         Prefer strtol to strtoll if both work.
97593         (main): Remove; it was not that useful and was a pain to maintain.
97594
97595         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97596
97597 2001-08-31  Jim Meyering  <meyering@lucent.com>
97598
97599         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97600         Use an initial, malloc'd, buffer of length 128 rather than
97601         a statically allocated one of length 1024.
97602
97603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97604
97605         Simplify code, partly by assuming autoconf 2.52 semantics.
97606
97607         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97608
97609         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97610         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97611         All uses removed.
97612         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97613         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97614         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97615         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97616         jm_AC_HEADER_INTTYPES_H.
97617         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97618
97619         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97620
97621         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97622         Quote first arg of AC_DEFUN.
97623         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97624         since they are needed to parse the include file even if we need
97625         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97627         but with opposite signedness.
97628
97629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97630
97631         Merge 'exclude' changes from tar 1.13.22.
97632         This fixes one or two unlikely storage allocation overflow bugs,
97633         but doesn't change user-visible behavior otherwise.
97634
97635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97636
97637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97638         (jm_PREREQ_EXCLUDE): New macro.
97639
97640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97641
97642         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97643         tm to be declared.
97644
97645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97646
97647         * lib/hash.c: Remove '2001' from copyright notice.
97648
97649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97650
97651         * lib/full-write.h: New file.
97652         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97653         * lib/full-write.c: Correct credits, as cccp.c no longer
97654         exists and anyway it was so heavily changed from the old cccp
97655         code as to be unrecognizable.  Include full-write.h.
97656         (full_write): Return size_t, with short writes meaning failure.
97657         All callers changed.  This fixes a bug with large buffers
97658         on 64-bit hosts.
97659         * lib/utime.c: Include full-write.h.
97660
97661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97662
97663         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97664         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97665         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97666         Include if available.
97667         (<xalloc.h>): Include
97668         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97669         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97670         collide with FNM macros.
97671         (struct patopts): New struct.
97672         (struct exclude): Use it, as exclude patterns now come with options.
97673         (new_exclude): Support above changes.
97674         (new_exclude, add_exclude_file):
97675         Initial size must now be a power of two to simplify overflow checking.
97676         (free_exclude, fnmatch_no_wildcards): New function.
97677         (excluded_filename): No longer requires options arg, as the options
97678         are determined by add_exclude.  Now returns bool, not int.
97679         (excluded_filename, add_exclude):
97680         Add support for the fancy new exclusion options.
97681         (add_exclude, add_exclude_file): Now takes int options arg.
97682         Check for arithmetic overflow when computing sizes.
97683         (add_exclude_file): xrealloc might modify errno, so don't
97684         realloc until after errno might be used.
97685
97686         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97687         New macros.
97688         (free_exclude): New decl.
97689         (add_exclude, add_exclude_file): Now takes int options arg.
97690         (excluded_filename): No longer requires options arg, as the options
97691         are determined by add_exclude.  Now returns bool, not int.
97692
97693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97694
97695         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97696
97697 2001-08-27  Jim Meyering  <meyering@lucent.com>
97698
97699         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97700
97701         * lib/version-etc.c (N_): Remove definition.
97702         Revert most of last change.
97703         Instead, simply don't mark the `Copyright...' string for translation.
97704         Based on advice from Paul Eggert.
97705
97706         * lib/strtoxmax.c: Tweak comment.
97707
97708 2001-08-26  Jim Meyering  <meyering@lucent.com>
97709
97710         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97711
97712         * m4/xstrtoimax.m4: New file.
97713         * m4/xstrtoumax.m4: Add comments explaining why we
97714         AC_REPLACE_FUNCS(strtol).
97715
97716 2001-08-26  Jim Meyering  <meyering@lucent.com>
97717
97718         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97719         of copyright with `%s' so translators don't get an untranslated
97720         message in 2002.
97721         (COPYRIGHT_YEAR): Define.
97722         (version_etc): Use fprintf rather than fputs.
97723         Suggestion from Ulrich Drepper.
97724
97725         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97726
97727         * lib/strtoll.c: New file, from GNU libc.
97728         * lib/xstrtoimax.c: New file.
97729
97730         * lib/xstrtol.h: Add xstrtoimax.
97731         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97732         * lib/strtoimax.c: New file.  Likewise, but first define
97733         STRTOUXMAX_SIGNED.
97734
97735         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97736         ...
97737         * lib/strtoxmax.c: ... then renamed to this.
97738
97739 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97740
97741         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97742         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97743         (jm_AC_TYPE_INTMAX_T): New macro.
97744         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97745
97746         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97747
97748         * m4/longlong.m4: Renamed from ulonglong.m4.
97749         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97750         * m4/uintmax_t.m4: Removed.
97751
97752 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97753
97754         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97755         Port to Solaris 8, where 'sed' requires a space after the 'r'
97756         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97757         Redirect output to $tmp just once.
97758
97759 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97760
97761         * lib/addext.c (<errno.h>): Include.
97762         (errno): Declare if not defined.
97763         (addext): Work correctly when pathconf returns -1 and leaves
97764         errno alone because there is no limit.  Also, work even if
97765         pathconf returns a value greater than SIZE_MAX.
97766
97767 2001-08-12  Jim Meyering  <meyering@lucent.com>
97768
97769         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97770         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97771         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97772         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97773         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97774         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97775         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97776         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97777         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97778         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97779         utime.m4, utimes.m4, xstrtoumax.m4:
97780         Quote the first argument in each use of AC_DEFUN.
97781
97782 2001-08-12  Jim Meyering  <meyering@lucent.com>
97783
97784         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97785         Simply `return getcwd (NULL, 0);'.
97786         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97787         Use 1300 as initial value for length, not PATH_MAX.
97788
97789         * lib/pathmax.h: Clean up cpp syntax.
97790
97791 2001-08-12  Jim Meyering  <meyering@lucent.com>
97792
97793         * lib/gettimeofday.c: New file.
97794         * lib/gtod.h: New file.
97795         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97796
97797 2001-08-05  Jim Meyering  <meyering@lucent.com>
97798
97799         * m4/jm-macros.m4: Require autoconf-2.52.
97800
97801 2001-08-04  Jim Meyering  <meyering@lucent.com>
97802
97803         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97804         stmt, to get in sync with glibc.
97805
97806 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97807
97808         The following changes are from gettext 0.10.39 as maintained by
97809         Bruno Haible.
97810
97811         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97812         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97813         with inverted sense.  All uses changed.
97814
97815         * lib/mbswidth.c: Don't include <limits.h>.
97816         Include <stdlib.h> and <string.h> unconditionally.
97817         (iswcntrl, mbsinit, ISCNTRL): New macros.
97818         (mbsnwidth): Use K&R style function declarations.
97819         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97820         can optimize it when MB_CUR_MAX == 1.
97821         The width of control characters is zero, not 1.
97822
97823 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97824
97825         The following changes are from gettext 0.10.39 as maintained by
97826         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97827
97828         * m4/codeset.m4: Upgrade to serial AM1.
97829         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97830         all uses changed.  Quote first arg of AC_DEFUN.
97831         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97832
97833         * m4/iconv.m4: Upgrade to serial AM2.
97834         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97835         Add --with-libconv-prefix.
97836         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97837         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97838         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97839         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97840         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97841
97842         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97843         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97844         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97845         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97846         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97847         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97848         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97849         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97850         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97851
97852         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97853         string.h any more.
97854
97855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97856         not the default value.
97857
97858         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97859         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97860         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97861         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97862         Also check for iswcntrl, used for wcwidth fallback.
97863         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97864         to Autoconf 2.13.
97865
97866 2001-08-03  Jim Meyering  <meyering@lucent.com>
97867
97868         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97869         as it was in the original.  Reported by Paul Eggert.
97870
97871 2001-07-16  Jim Meyering  <meyering@lucent.com>
97872
97873         * m4/gettimeofday.m4: New file.
97874         Prompted by a report from Bernhard Baehr.
97875
97876 2001-07-15  Jim Meyering  <meyering@lucent.com>
97877
97878         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97879         stuff. Now it's in ../Makefile.cfg.
97880
97881 2001-07-15  Jim Meyering  <meyering@lucent.com>
97882
97883         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97884         (BUILT_SOURCES): Add unlocked-io.h.
97885         (io_functions): Define.
97886         (unlocked-io.h): New rule.
97887         (DISTCLEANFILES): Add unlocked-io.h.
97888         (all-local): Depend on unlocked-io.h, to ensure it is created.
97889
97890         * lib/unlocked-io.hin: New file
97891
97892         * lib/regex.c: Update from glibc.
97893
97894 2001-07-05  Jim Meyering  <meyering@lucent.com>
97895
97896         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97897         recommendation.
97898         (libfetish_a_SOURCES): Put all .h files here instead.
97899         Remove a thus-exposed (better checks in automake) duplicate and
97900         two unnecessary .h files.
97901
97902 2001-07-04  Jim Meyering  <meyering@lucent.com>
97903
97904         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97905         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97906         distcheck failure.
97907
97908 2001-07-02  Jim Meyering  <meyering@lucent.com>
97909
97910         The following changes were prompted by suggestions from Bruno Haible.
97911
97912         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97913         is now generated.
97914         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97915         definition of EXTRA_DIST.
97916         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97917         ensure that the generated file is created/updated whenever the list
97918         of $(unlocked_functions) is changed.
97919         (jm-glibc-io.m4): New rule.
97920         (unlocked-io.h): New rule -- currently unused.
97921
97922 2001-06-24  Jim Meyering  <meyering@lucent.com>
97923
97924         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97925         unmatched right bracket, rather than kludging it with an extra,
97926         falsely-matching quote in a comment.  Patch by Akim Demaille.
97927
97928 2001-06-11  Jim Meyering  <meyering@lucent.com>
97929
97930         * lib/regex.c: Update from GNU libc.
97931
97932 2001-05-27  Jim Meyering  <meyering@lucent.com>
97933
97934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97935         Check for ut_type in struct utmp.
97936
97937 2001-05-27  Jim Meyering  <meyering@lucent.com>
97938
97939         * lib/readutmp.h (UT_TYPE): Define.
97940
97941 2001-05-24  Jim Meyering  <meyering@lucent.com>
97942
97943         * lib/argmatch.c: Include "quote.h".
97944         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97945         quote function.  Reported by Göran Uddeborg.
97946
97947 2001-05-22  Jim Meyering  <meyering@lucent.com>
97948
97949         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97950         now that we use the package-supplied version unconditionally.
97951         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97952
97953 2001-05-21  Jim Meyering  <meyering@lucent.com>
97954
97955         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97956         shell syntax errors.
97957
97958 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97959
97960         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97961
97962 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97963
97964         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97965         Don't bother to check library strftime, since
97966         we'll be using our own my_strftime function anyway.
97967         Define my_strftime instead of strftime.
97968
97969 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97970
97971         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97972         which is not yet declared.
97973
97974 2001-05-15  Jim Meyering  <meyering@lucent.com>
97975
97976         * m4/regex.m4: Use proper quoting so brackets appear in the test
97977         program.
97978         Reported by, and with help from, Bruno Haible.
97979
97980 2001-05-13  Jim Meyering  <meyering@lucent.com>
97981
97982         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97983         undefined.
97984
97985 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97986
97987         dirname code cleanup.  base_name now behaves more compatibly
97988         with POSIX basename when given file names that have trailing
97989         slashes, and similarly for dir_name.  Add new primitives
97990         base_len and dir_len.  Put the directory-name-related decls
97991         into dirname.h.
97992
97993         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97994         * lib/backupfile.c (base_name): Likewise.
97995         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97996         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97997         * lib/makepath.c (strip_trailing_slashes): Likewise.
97998         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97999         ISSLASH): Likewise.
98000         * lib/rename.c (strip_trailing_slashes): Likewise.
98001         * lib/same.c (base_name): Likewise.
98002         * lib/stripslash.c (ISSLASH): Likewise.
98003
98004         * lib/addext.c: Include <dirname.h> after size_t is defined.
98005         * lib/backupfile.c: Likewise.
98006
98007         * lib/addext.c (addext): Use base_len to trim redundant
98008         trailing slashes instead of doing it ourselves.
98009         But do not trim the last slash if it is not redundant.
98010
98011         * lib/backupfile.c (find_backup_file_name,
98012         max_backup_version): Use base_len instead of rolling it ourselves.
98013         Handle the case of "" and (on DOS) "C:" correctly.
98014
98015         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98016         needed. Include <string.h>, <dirname.h>.
98017         (base_name): Allow file names ending in slashes, other than names
98018         that are all slashes.  In this case, return the basename followed
98019         by the slashes.  This is more general, and can be used in places
98020         where the original base_name purposely had an assertion failure.
98021         (base_len): New function.
98022
98023         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98024         Do not include <assert.h>; no longer needed.
98025         Include xalloc.h.
98026         (memrchr): Remove decl.
98027         (dir_name_r): Remove.
98028         (dir_len): Renamed from dirlen.  All callers changed.
98029         Rewrite in terms of base_name, for simplicity and consistency.
98030         (dir_name): Never return NULL.  All callers changed.
98031         Do not include <stdlib.h> in test program; no longer needed.
98032         return 0; is fine for test program.
98033
98034         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98035         New macros.
98036         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98037
98038         * lib/path-concat.c (path_concat): Use base_len to compute
98039         base length, not strlen; this means we cannot rely on memcpy
98040         to null-terminate.
98041
98042         * lib/same.c (STREQ): Remove.
98043         (same_name): Handle the case where the basename ends in trailing '/'.
98044
98045         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98046         a slash was stripped.  Do not strip the last slash after a
98047         file system prefix.
98048
98049 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98050
98051         * lib/Makefile.am (libfetish_a_SOURCES):
98052         Add strftime.c, since we now compile it on all hosts.
98053
98054         * lib/strftime.c (my_strftime):
98055         Define to nstrftime if emacs, but only if my_strftime is not defined.
98056         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98057         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98058         Add one more extra argument: a nanoseconds value.
98059         All uses changed.
98060         (ns): New macro.
98061         (my_strftime function): Add %N format.
98062         (emacs_strftimeu): Renamed from emacs_strftime,
98063         with extra ut argument.
98064
98065 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98066
98067         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98068
98069 2001-04-21  Jim Meyering  <meyering@lucent.com>
98070
98071         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98072         doesn't interfere.
98073
98074 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98075
98076         * m4/ftruncate.m4: Check for chsize.
98077         Link with ftruncate.o unconditionally if ftruncate is missing.
98078         This was required when cross-compiling to i586-mingw32msvc.
98079
98080 2001-04-08  Jim Meyering  <meyering@lucent.com>
98081
98082         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98083         recomputed; that's necessary when the offset spans a DST transition.
98084         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98085
98086 2001-04-02  Jim Meyering  <meyering@lucent.com>
98087
98088         * lib/regex.h, regex.c: Update from GNU libc.
98089
98090 2001-03-24  Jim Meyering  <meyering@lucent.com>
98091
98092         * m4/jm-macros.m4: Require autoconf-2.49d.
98093
98094 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98095
98096         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98097
98098 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98099
98100         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98101
98102 2001-03-17  Jim Meyering  <meyering@lucent.com>
98103
98104         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98105         now that the version in autoconf is equivalent.
98106         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98107
98108         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98109         Suggestion from Akim Demaille.
98110
98111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98112         (jm_PREREQ_TEMPNAME): New function.
98113
98114 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98115
98116         * lib/tempname.c (uint64_t): Define to uintmax_t if
98117         not defined, and if UINT64_MAX is not defined.
98118         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98119         Reported by John David Anglin.
98120
98121 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98122
98123         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98124         resolve alias if codeset is empty.
98125         * lib/config.charset (BeOS): Use wildcard syntax.
98126
98127 2001-03-13  Jim Meyering  <meyering@lucent.com>
98128
98129         * lib/path-concat.c (path_concat)
98130         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98131         concatenating e.g., `C:' and `foo'.
98132         From Bruno Haible.
98133
98134 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98135
98136         * lib/localcharset.c (locale_charset): Don't use
98137         setlocale(LC_CTYPE,NULL). Don't return NULL.
98138         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98139
98140 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98141
98142         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98143         support for DOS/DJGPP.
98144
98145 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98146
98147         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98148         lacks mkstemp.  Compile our own tempname.c if we compile our own
98149         mkstemp.c, as mkstemp relies on tempname.
98150
98151 2001-03-01  Jim Meyering  <meyering@lucent.com>
98152
98153         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98154         AH_VERBATIM really does output its argument verbatim.
98155
98156 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98157
98158         * lib/Makefile.am (libfetish_a_SOURCES):
98159         Add dup-safer.c, fopen-safer.c.
98160         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98161
98162         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98163         * lib/unistd-safer.h: New files.
98164
98165 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98166
98167         The mkstemp replacement is taken from glibc 2.2.2, with some
98168         portability fixes for use outside glibc, as follows:
98169
98170         * lib/tempname.c (struct_stat64): New macro.
98171         (direxists, __gen_tempname): Use it.
98172         This avoids a portability problem with Solaris 8.
98173
98174         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98175         (<stddef.h>, <stdint.h>, <string.h>):
98176         Include only if STDC_HEADERS || _LIBC.
98177         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98178         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98179         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98180         (__set_errno): Define this macro if <errno.h> doesn't.
98181         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98182         Define these macros if <stdio.h> doesn't.
98183         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98184         Define these macros if <sys/stat.h>
98185         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98186         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98187         __xstat64): Define if not _LIBC.
98188         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98189         (__gen_tempname): Invoke gettimeofday only if
98190         HAVE_GETTIMEOFDAY || _LIBC;
98191         otherwise, fall back on plain "time".
98192         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98193
98194         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98195
98196         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98197
98198 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98199
98200         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98201
98202 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98203
98204         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98206         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98208
98209 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98210
98211         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98212         Remove workaround macros for hosts that have mbrtowc but not
98213         mbstate_t, as we now insist on proper declarations for both
98214         before using mbrtowc.
98215
98216 2001-02-17  Jim Meyering  <meyering@lucent.com>
98217
98218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98219         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98220         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98221         UnixWare 7.1.1.
98222
98223         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98224         rather than AC_CACHE_VAL.
98225
98226 2001-02-17  Jim Meyering  <meyering@lucent.com>
98227
98228         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98229         around included file name.
98230
98231         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98232
98233         * lib/strftime.c: Update from GNU libc (the only changes were to
98234         comments).
98235
98236 2001-02-17  Jim Meyering  <meyering@lucent.com>
98237
98238         * lib/regex.c: Update from libc.
98239
98240 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98241
98242         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98243         clash.
98244
98245 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98246
98247         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98248         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98249         Reported by Mark Hounschell via Paul Eggert.
98250
98251 2001-02-07  Jim Meyering  <meyering@lucent.com>
98252
98253         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98254
98255 2001-02-05  Jim Meyering  <meyering@lucent.com>
98256
98257         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98258         it includes the patch required for `large file' support with at least
98259         HP-UX's 10.20 /bin/cc.
98260
98261 2001-02-03  Jim Meyering  <meyering@lucent.com>
98262
98263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98264         AS_IF, now that it works once again (mysteriously).
98265         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98266
98267 2001-01-30  Jim Meyering  <meyering@lucent.com>
98268
98269         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98270         * m4/chown.m4: Rename conftestchown to conftest.chown.
98271         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98272         s/conftestdir2/conftest.d2/.
98273         * m4/utimes.m4: s/conftestdata/conftest.data/
98274         Inspired by Pavel Roskin's change in autoconf.
98275
98276 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98277
98278         * lib/config.charset: Update for FreeBSD 4.2.
98279
98280 2001-01-27  Jim Meyering  <meyering@lucent.com>
98281
98282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98283         a use of AS_IF.
98284         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98285
98286 2001-01-26  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98289         quotearg.c includes it.
98290
98291 2001-01-26  Jim Meyering  <meyering@lucent.com>
98292
98293         * lib/quotearg.c: Include stddef.h.
98294         * lib/quote.c: Include stddef.h.
98295         Reported by Axel Kittenberger.
98296
98297         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98298         line in double quotes so that it evokes a better diagnostic.
98299         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98300         Reported by Axel Kittenberger.
98301
98302 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98303
98304         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98305         as if it was a `charset'.
98306
98307 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98308
98309         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98310         has const.
98311
98312 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98313
98314         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98315         to avoid a warning.  Add back 'const' to inptr.
98316
98317 2001-01-20  Jim Meyering  <meyering@lucent.com>
98318
98319         Be sure that headers are checked before used in code compiled
98320         for the type checks.
98321         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98322         In place of that, invoke jm_CHECK_ALL_TYPES.
98323         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98324         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98325         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98326         The check for ssize_t was mistakenly run before the test for unistd.h.
98327
98328         The configure-time check for stdbool.h was missing.
98329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98330         (jm_PREREQ_HASH): New function.
98331
98332 2001-01-17  Jim Meyering  <meyering@lucent.com>
98333
98334         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98335         for autoconf-2.49c.
98336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98337
98338 2001-01-16  Jim Meyering  <meyering@lucent.com>
98339
98340         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98341         From Bruno Haible.
98342
98343 2001-01-14  Jim Meyering  <meyering@lucent.com>
98344
98345         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98346         foo and bar.  Create conftestdir/ in the script, not in the C code.
98347         Remove directories in the script, not in the C code.
98348         Remove conftestdir{,2} before trying to create the directory.
98349         Make the entire configure script fail if the mkdir fails.
98350
98351 2001-01-14  Jim Meyering  <meyering@lucent.com>
98352
98353         * lib/rename.c: New file.  From Volker Borchert.
98354         Include stdlib.h, string.h or strings.h, and xalloc.h.
98355         Use strip_trailing_slashes rather than open-coding it.
98356
98357 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98358
98359         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98360
98361 2001-01-03  Jim Meyering  <meyering@lucent.com>
98362
98363         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98364         of local `inptr' to avoid warning with some system declarations of
98365         iconv.
98366
98367 2001-01-02  Volker Borchert  <bt@teknon.de>
98368
98369         * m4/rename.m4: New file.
98370         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98371
98372 2001-01-01  Jim Meyering  <meyering@lucent.com>
98373
98374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98375         even on systems with utmpx.h.  It's necessary for the declaration of
98376         utmp's ut_user member.  Reported by Andreas Jaeger.
98377
98378         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98379         available. They are required for the declarations of getgrgid and
98380         getpwuid resp.
98381         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98382         Reported by Andreas Jaeger.
98383
98384 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98385
98386         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98387         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98388         so `make install' also works in VPATH builds.
98389
98390 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98391
98392         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98393         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98394         can be used in subdirectories.
98395
98396 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98397
98398         * lib/modechange.c: Do not assume that mode_t uses the
98399         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98400         the other-execute bit of FOO even if S_IXOTH != 1.
98401
98402         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98403         WOTH, XOTH, ALLM): New macros.
98404         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98405          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98406         Use them.
98407         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98408         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98409         (mode_compile):
98410         No need to use uintmax_t; unsigned long is long enough.
98411         Don't bother to get suffix since we don't use it.
98412
98413 2000-12-26  Jim Meyering  <meyering@lucent.com>
98414
98415         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98416         better with autoheader.
98417
98418 2000-12-24  Jim Meyering  <meyering@lucent.com>
98419
98420         * lib/hash.c (is_prime): Return explicit boolean values.
98421         (hash_get_first): Return NULL to appease Irix5.6's 89.
98422         Reported by Nelson Beebe.
98423
98424 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98425
98426         * lib/localcharset.c (locale_charset): Add support for Win32.
98427
98428 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98429
98430         * lib/physmem.h, lib/physmem.c: New files.
98431
98432         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98433         (noinst_HEADERS): Add physmem.h.
98434
98435         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98436         't' for compatibility with Solaris 8 sort.
98437
98438 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98439
98440         * lib/config.charset: Add support for BeOS.
98441
98442 2000-12-17  Jim Meyering  <meyering@lucent.com>
98443
98444         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98445         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98446
98447 2000-12-16  Jim Meyering  <meyering@lucent.com>
98448
98449         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98450         N and M) would have treated it like `chown N:N FILE'.
98451
98452         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98453
98454 2000-12-16  Jim Meyering  <meyering@lucent.com>
98455
98456         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98457         SHELLS_FILE to a file name that's useful on djgpp systems.
98458         Include stdlib.h.
98459         (ADDITIONAL_DEFAULT_SHELLS): Define.
98460         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98461         Based mostly on a patch from Prashant TR.
98462
98463 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98464
98465         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98466         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98467         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98468
98469 2000-12-08  Andreas Schwab  <schwab@suse.de>
98470
98471         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98472         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98473
98474 2000-12-07  Jim Meyering  <meyering@lucent.com>
98475
98476         * lib/stripslash.c (ISSLASH): Define.
98477         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98478         `/'.
98479         From Prashant TR.
98480
98481         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98482         (dir_name_r): Declare this function as static.
98483         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98484         manifest itself on a name containing a mix of slashes and
98485         backslashes.
98486         Make this function work with names starting with a DOS-style
98487         drive letter and colon prefix.
98488         (dir_name): Append `.' if necessary.
98489         Based mostly on patches from Prashant TR and Eli Zaretskii.
98490
98491         * lib/dirname.h (dir_name_r): Remove prototype.
98492
98493 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98494
98495         * m4/off_t-format.m4: Remove this file.
98496         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98497
98498 2000-12-06  Jim Meyering  <meyering@lucent.com>
98499
98500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98501         replacement strtoull, we may well need the replacement strtoul, too.
98502         Check for declarations of strtoul and strtoull.
98503         Check for strtol.  Mainly as a cue to cause automake to include
98504         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98505         Check for limits.h -- strtol.c needs it.
98506
98507 2000-12-05  Jim Meyering  <meyering@lucent.com>
98508
98509         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98510
98511 2000-12-04  Jim Meyering  <meyering@lucent.com>
98512
98513         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98514         Also include memory.h, stdlib.h, unistd.h if appropriate.
98515         Reported by Andreas Jaeger (conflicting declaration of malloc).
98516
98517 2000-12-02  Jim Meyering  <meyering@lucent.com>
98518
98519         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98520         * m4/jm-macros.m4 (jm_MACROS): require it.
98521
98522 2000-12-02  Jim Meyering  <meyering@lucent.com>
98523
98524         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98525
98526 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98527
98528         * lib/memrchr.c: Include <config.h> before any system include file.
98529
98530 2000-11-30  Jim Meyering  <meyering@lucent.com>
98531
98532         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98533
98534 2000-11-30  Jim Meyering  <meyering@lucent.com>
98535
98536         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98537
98538 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98539
98540         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98541
98542 2000-11-26  Jim Meyering  <meyering@lucent.com>
98543
98544         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98545
98546 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98547
98548         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98549         size of (size_t) -1; it's not portable.
98550
98551 2000-11-17  Jim Meyering  <meyering@lucent.com>
98552
98553         * lib/strstr.c: Update from GNU libc.
98554
98555 2000-11-17  Akim Demaille  <akim@epita.fr>
98556
98557         * lib/obstack.h: Formatting changes.
98558         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98559         prevent type checking.
98560         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98561         cast the value to (void *): assigning a `foo *' to a `void *'
98562         variable is valid.
98563         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98564
98565 2000-11-16  Jim Meyering  <meyering@lucent.com>
98566
98567         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98568
98569 2000-11-11  Jim Meyering  <meyering@lucent.com>
98570
98571         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98572
98573 2000-11-10  Jim Meyering  <meyering@lucent.com>
98574
98575         * lib/obstack.h: Update from GNU libc.
98576         * lib/obstack.c: Likewise.
98577
98578 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98579
98580         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98581
98582 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98583
98584         * lib/getusershell.c (setusershell): Use rewind rather than
98585         fseek/fseeko, to avoid configuration hassles with fseeko.
98586         Don't bother opening SHELLS_FILE if shellstream is NULL;
98587         it's not necessary.
98588
98589 2000-11-05  Jim Meyering  <meyering@lucent.com>
98590
98591         * lib/makepath.h (make_dir): Declare.
98592         * lib/makepath.c (make_dir): Remove `static' attribute.
98593         Tweak a comment.
98594
98595 2000-11-04  Jim Meyering  <meyering@lucent.com>
98596
98597         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98598
98599 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98600
98601         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98602         last one in a bucket, advance to the next bucket.
98603
98604 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98605
98606         * lib/fnmatch.c: Do not comment out all the code if we are using
98607         the GNU C library, because in some cases we are replacing buggy
98608         code in the GNU C library itself.
98609
98610 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98611
98612         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98613         (regex_compile): Catch bogus \(\1\).
98614
98615 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98616
98617         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98618         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98619         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98620
98621 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98622
98623         * lib/error.h, getline.h, modechange.h:
98624         Remove "2000" from Copyright line, as the file hasn't been
98625         changed this year other than in the copyright notice.
98626
98627         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98628         was changed this year.
98629
98630 2000-10-29  Jim Meyering  <meyering@lucent.com>
98631
98632         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98633         renaming.
98634         * m4/ls-mntd-fs.m4: Likewise
98635
98636 2000-10-29  Jim Meyering  <meyering@lucent.com>
98637
98638         * lib/xstat.in: Fix grammar in comment.
98639
98640 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98641
98642         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98643         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98644         doesn't define __restrict_arr.
98645
98646 2000-10-28  Jim Meyering  <meyering@lucent.com>
98647
98648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98649         (jm_PREREQ_MEMCHR): New function.
98650
98651 2000-10-28  Jim Meyering  <meyering@lucent.com>
98652
98653         * lib/memchr.c: Update from libc.
98654         Adjust for portability:
98655         [HAVE_STDLIB_H]: Include stdlib.h.
98656         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98657         Undef __memchr, too.
98658         [!weak_alias]: Define __memchr to memchr.
98659
98660         * lib/regex.c: Update from libc.
98661         * lib/regex.h: Likewise.
98662         * lib/getopt1.c: Likewise.
98663         * lib/memcmp.c: Likewise.
98664
98665         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98666         Avoid using fseek, when possible -- it's broken by design.
98667         Patch by Ulrich Drepper.
98668
98669 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98670
98671         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98672         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98673         Giving in to popular pressure to shut up the compiler with casts.
98674
98675 2000-10-26  Jim Meyering  <meyering@lucent.com>
98676
98677         * lib/strftime.c: Update from libc.
98678
98679 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98680
98681         * regex.c: More `unsigned char' -> `re_char' changes.
98682         Also change several `int' into `re_wchar_t'.
98683         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98684         (PUSH_FAILURE_POINTER): Don't cast any more.
98685         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98686         We want GCC to complain, since this piece of code makes
98687         re_match non-reentrant, which *should* be fixed.
98688         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98689         (EXTEND_BUFFER): Use RETALLOC.
98690         (SET_LIST_BIT): Don't cast.
98691         (re_wchar_t): New type.
98692         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98693         that those two functions will always properly return.
98694         (IMMEDIATE_QUIT_CHECK): Cast to void.
98695         (analyse_first): Use recursion rather than an explicit stack.
98696         (re_compile_fastmap): Can't fail anymore.
98697         (re_search_2): Don't check re_compile_fastmap for failure.
98698         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98699         Now also sets the new value (passed in a new argument).
98700         (re_match_2_internal): Use it.
98701         Also, use a new var `reg' of type size_t when looping through regs
98702         rather than reuse the inappropriate `mcnt'.
98703
98704 2000-10-25  Jim Meyering  <meyering@lucent.com>
98705
98706         * lib/obstack.c: Update from libc.
98707
98708 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98709
98710         * regex.c (regex_compile): Change the way of handling a range from
98711         a char less than 256 to a char not less than 256.
98712
98713 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98714
98715         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98716         NT-Emacs only.
98717         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98718         so that re_search functions only quit when callers expect them to.
98719
98720 2000-10-23  Jim Meyering  <meyering@lucent.com>
98721
98722         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98723         wrong.  That set_locale call must not have any side effects.
98724         From Paul Eggert.
98725
98726 2000-10-22  Jim Meyering  <meyering@lucent.com>
98727
98728         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98729         [CYCLIC]: Remove now-unused definition.
98730
98731         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98732         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98733         Suggestion from Ulrich Drepper.
98734
98735 2000-10-21  Jim Meyering  <meyering@lucent.com>
98736
98737         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98738         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98740
98741 2000-10-21  Jim Meyering  <meyering@lucent.com>
98742
98743         * lib/dirname.c (memrchr): Declare if necessary.
98744         (dir_name): Remove the restriction that there be no
98745         trailing slashes.  Now, this code skips past them, effectively
98746         ignoring them.
98747         [TEST_DIRNAME] (main): New unit tests.
98748
98749         * lib/memrchr.c: New file from GNU libc.
98750         Undef __memrchr, too.
98751         [!weak_alias]: Define __memrchr to memrchr.
98752         Guard weak_alias use with `#ifdef weak_alias'.
98753
98754 2000-10-21  Jim Meyering  <meyering@lucent.com>
98755
98756         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98757         (dir_name): Use dir_name_r.
98758         * lib/dirname.h (dir_name_r): Declare it.
98759
98760 2000-10-17  Jim Meyering  <meyering@lucent.com>
98761
98762         * lib/quote.h (PARAMS): Define and use.
98763         Reported by Akim Demaille.
98764
98765         * lib/getopt.c: Update from libc.
98766
98767 2000-10-16  Jim Meyering  <meyering@lucent.com>
98768
98769         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98770         setlocale.
98771         From Jan Fedak.
98772
98773 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98774
98775         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98776
98777 2000-09-25  Jim Meyering  <meyering@lucent.com>
98778
98779         * lib/md5.h (rol): Define (from GnuPG).
98780
98781         * lib/sha.c: Give credit (GnuPG) where due.
98782         (M): Use rol rather than open-coding it.
98783         Add a FIXME comment.
98784
98785 2000-09-21  Jim Meyering  <meyering@lucent.com>
98786
98787         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98788         Reported by Michael Stone.
98789
98790 2000-09-20  Jim Meyering  <meyering@lucent.com>
98791
98792         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98793         (noinst_HEADERS): Add sha.h.
98794         Based on code from Scott G. Miller and from GnuPG.
98795
98796 2000-09-18  Jim Meyering  <meyering@lucent.com>
98797
98798         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98799         LIBS. Otherwise, everyone ends up linking with -lelf for some
98800         configurations.
98801         Reported by Mike Stone.
98802
98803 2000-09-15  Jim Meyering  <meyering@lucent.com>
98804
98805         * lib/regex.c: Update from libc.
98806
98807 2000-09-10  Jim Meyering  <meyering@lucent.com>
98808
98809         * lib/getopt.c (_getopt_internal): Update from glibc.
98810
98811 2000-09-09  Jim Meyering  <meyering@lucent.com>
98812
98813         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98814         think it should be used as a general replacement for isascii.
98815         * lib/fnmatch.c: Likewise.
98816         * lib/mbswidth.c: Likewise
98817         * lib/regex.c: Likewise.
98818
98819         Don't use atoi.
98820         * lib/userspec.c: Include sys/param.h and limits.h.
98821         Include xstrtol.h.
98822         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98823         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98824         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98825         UID, GID.  Check range.
98826
98827 2000-09-06  Jim Meyering  <meyering@lucent.com>
98828
98829         * lib/getopt.c (_getopt_internal): Update from glibc.
98830
98831 2000-08-30  Jim Meyering  <meyering@lucent.com>
98832
98833         * lib/strftime.c: Merge in changes from GNU libc.
98834
98835 2000-08-26  Jim Meyering  <meyering@lucent.com>
98836
98837         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98838         * m4/fpending.m4: New file.
98839
98840 2000-08-26  Jim Meyering  <meyering@lucent.com>
98841
98842         * lib/closeout.c: Include "__fpending.h".
98843         (close_stdout_status): Return right away if there's nothing to flush.
98844
98845         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98846         * lib/__fpending.c: New file.
98847         * lib/__fpending.h: New file.
98848
98849 2000-08-20  Jim Meyering  <meyering@lucent.com>
98850
98851         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98852         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98853         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98854
98855 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98856
98857         Improve fileutils installation on systems where running
98858         programs (like install) can't be unlinked.
98859         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98860         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98861
98862 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98863
98864         Standardize on "memory exhausted" instead of "Memory exhausted"
98865         or "virtual memory exhausted".
98866         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98867         "virtual memory exhausted".
98868         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98869         our own message.
98870         * lib/userspec.c (parse_user_spec): Likewise.
98871         * lib/bumpalloc.h: comment fix
98872         * lib/same.c, userspec.c: Include xalloc.h.
98873
98874         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98875         not char *const and pointing to a constant array.
98876         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98877         (xrealloc): Comment fix.
98878
98879         * lib/userspec.c (parse_user_spec):
98880         Don't translate a message until just before returning,
98881         to avoid unnecessary translation.
98882
98883 2000-08-07  Jim Meyering  <meyering@lucent.com>
98884
98885         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98886         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98887         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98888         getgroups.c, gethostname.c, getopt.h, group-member.c,
98889         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98890         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98891         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98892         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98893         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98894         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98895         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98896         yesno.c: Back out Copyright date changes for each file with no change
98897         this year.  This eases coordination with other programs using the same
98898         source code modules.  From Paul Eggert.
98899
98900 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98901
98902         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98903         not char, for compatibility with glibc 2.1.3 strftime.c.
98904
98905 2000-08-03  Greg McGary  <greg@mcgary.org>
98906
98907         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98908         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98909         (EXTEND_BUFFER): Use them.
98910
98911 2000-08-01  Jim Meyering  <meyering@lucent.com>
98912
98913         * lib/dirname.c (ISSLASH): Define.
98914         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98915         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98916         both `\' and `/' may be use as path separators.
98917         Based on a patch from Prashant TR.
98918
98919 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98920
98921         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98922         slot vector a constant, since it might get modified.
98923
98924 2000-07-31  Jim Meyering  <meyering@lucent.com>
98925
98926         * lib/xmalloc.c: Use `virtual memory exhausted', not
98927         `Memory exhausted'.
98928         * lib/obstack.c (print_and_abort): Likewise.
98929
98930 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98931
98932         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98933         buffer, so that the caller can always quote one small
98934         component of a "memory exhausted" message in slot 0.
98935         From a suggestion by Jim Meyering.
98936
98937 2000-07-30  Jim Meyering  <meyering@lucent.com>
98938
98939         * lib/makepath.c (make_path): Quote the other instance, too.
98940
98941         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98942         (STATIC_BUF_SIZE): Define.
98943         (quotearg_n_options): Use only statically allocated storage when
98944         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98945         than STATIC_BUF_SIZE.
98946
98947 2000-07-29  Jim Meyering  <meyering@lucent.com>
98948
98949         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98950         * lib/dirname.c (dir_name): Likewise.
98951
98952         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98953         `/'.
98954
98955         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98956         (dir_name): Assert that there are no trailing slashes.
98957
98958 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98959
98960         * lib/mbswidth.h (mbswidth): Add a flags argument.
98961         (mbswidth): New declaration.
98962         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98963         * lib/mbswidth.c (mbswidth): Add a flags argument.
98964         (mbsnwidth): New function.
98965
98966 2000-07-24  Jim Meyering  <meyering@lucent.com>
98967
98968         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98969
98970 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98971
98972         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98973
98974 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98975
98976         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98977         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98978         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98979         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98980         invoke multibyte primitives.
98981
98982 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98983
98984         * lib/quotearg.c:
98985         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98986         so that mbstate_t is always defined.
98987
98988         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98989         be 1 in at least one GCC installation, and this configuration
98990         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98991         performance on hosts that have mbrtowc but have only unibyte
98992         locales, but I assume these hosts are rare.
98993
98994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98995
98996         * lib/mbswidth.c (_XOPEN_SOURCE):
98997         Don't define; this causes problems on Solaris 7.
98998         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98999
99000 2000-07-23  Jim Meyering  <meyering@lucent.com>
99001
99002         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99003         too: getgrgid, getpwuid, getuid.
99004
99005 2000-07-23  Jim Meyering  <meyering@lucent.com>
99006
99007         * lib/basename.c (base_name): Add an assertion.
99008
99009 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99010
99011         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99012         shadow its mbsinit function.
99013
99014 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99015
99016         * lib/mbswidth.h: New file.
99017         * lib/mbswidth.c: New file.
99018         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99019         (noinst_HEADERS): Add mbswidth.h.
99020
99021 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99022
99023         * lib/config.charset: Add support for FreeBSD. Improve support for
99024         HP-UX and IRIX 6.
99025
99026 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99027
99028         * m4/mbswidth.m4: New file.
99029         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99030
99031 2000-07-15  Jim Meyering  <meyering@lucent.com>
99032
99033         * lib/makepath.c: Include quote.h.
99034         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99035         corresponding argument in a `quote (...)' call.
99036         Give better diagnostics.
99037
99038         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99039         (noinst_HEADERS): Add quote.h.
99040
99041         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99042         from tar's src/misc.c.
99043         * lib/quote.h: New file.  Prototypes for same.
99044
99045 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99046
99047         From a suggestion by Bruno Haible.
99048         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99049         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99050         to decide whether to define the BeOS workaround macro;
99051         this adjusts to the change to AC_MBSTATE_T.
99052
99053 2000-07-14  Jim Meyering  <meyering@lucent.com>
99054
99055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99056         jm_AC_TYPE_UINTMAX_T.
99057
99058 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99059
99060         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99061
99062         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99063         quotearg_buffer_restyled): Add support for
99064         clocale_quoting_style.  Undo previous change to
99065         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99066         and "{RIGHT QUOTATION MARK}" msgids.
99067
99068 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99069
99070         From a suggestion by Bruno Haible.
99071         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99072         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99073         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99074         and mbstate_t, to a single-part test that simply defines mbstate_t.
99075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99076         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99077
99078 2000-07-10  Jim Meyering  <meyering@lucent.com>
99079
99080         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99081
99082         * m4/gnu-source.m4: Output to confdefs.h directly.
99083         Suggestion from Akim Demaille.
99084
99085 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99086
99087         The old behavior of quoting `like this' doesn't look good with
99088         newer, ISO-style fonts.  See:
99089         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99090
99091         Instead, quote "like this" by default.  Let the translator
99092         tailor the locale-specific quoting behavior by providing
99093         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99094
99095         * lib/quotearg.c (N_): New macro.
99096         (gettext_default): New function.
99097         (quotearg_buffer_restyled): Use
99098         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99099         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99100
99101 2000-07-09  Jim Meyering  <meyering@lucent.com>
99102
99103         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99104         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99105
99106         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99108
99109 2000-07-09  Jim Meyering  <meyering@lucent.com>
99110
99111         * lib/Most files: Update copyright dates to include 2000.
99112
99113 2000-07-08  Jim Meyering  <meyering@lucent.com>
99114
99115         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99116         if not defined.
99117         (xgethostname): Remove now-unnecessary #ifdef.
99118         Move declaration of `err' into loop where it's used.
99119
99120 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99121         and Bruno Haible  <haible@clisp.cons.org>
99122
99123         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99124         only if the test for an object-type mbstate_t fails.  This
99125         prevents us from mistakenly reporting that mbstate_t is a
99126         system object type after we "#define mbstate_t int" to work
99127         around its lack.
99128
99129 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99130         and Bruno Haible  <haible@clisp.cons.org>
99131
99132         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99133
99134 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99135
99136         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99137         to strerror_r.
99138         Include <ctype.h> for use of isalpha.
99139
99140 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99141
99142         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99143         by allocating a larger buffer. Test the gethostname return value for
99144         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99145         returns an error and ENAMETOOLONG isn't defined.
99146
99147 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99148
99149         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99150         dimension.
99151
99152 2000-07-04  Jim Meyering  <meyering@lucent.com>
99153
99154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99155         of the deprecated AC_CHECKING.
99156
99157 2000-07-04  Jim Meyering  <meyering@lucent.com>
99158
99159         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99160         Reported by Bruno Haible.
99161
99162 2000-07-04  Jim Meyering  <meyering@lucent.com>
99163
99164         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99165         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99166         lacks mbrtowc.
99167
99168 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99169
99170         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99171         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99172
99173 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99174         and Bruno Haible  <haible@clisp.cons.org>
99175
99176         * lib/quotearg.c (mbrtowc):
99177         Assign to *pwc, and return 1 only if result is nonzero.
99178         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99179
99180 2000-07-03  Jim Meyering  <meyering@lucent.com>
99181
99182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99183
99184 2000-07-03  Jim Meyering  <meyering@lucent.com>
99185
99186         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99187         This is necessary to get a definition of e.g., UTMP_FILE on
99188         HP-UX 10.20.
99189         From Bob Proulx.
99190
99191 2000-07-02  Jim Meyering  <meyering@lucent.com>
99192
99193         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99194
99195         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99196         AC_LIBOBJ(function_name).
99197         * m4/chown.m4: Likewise.
99198         * m4/fnmatch.m4: Likewise.
99199         * m4/ftruncate.m4: Likewise.
99200         * m4/getgroups.m4: Likewise.
99201         * m4/getline.m4: Likewise.
99202         * m4/group-member.m4: Likewise.
99203         * m4/jm-macros.m4: Likewise.
99204         * m4/lstat.m4: Likewise.
99205         * m4/malloc.m4: Likewise.
99206         * m4/memcmp.m4: Likewise.
99207         * m4/nanosleep.m4: Likewise.
99208         * m4/putenv.m4: Likewise.
99209         * m4/realloc.m4: Likewise.
99210         * m4/regex.m4: Likewise.
99211         * m4/stat.m4: Likewise.
99212         * m4/strftime.m4: Likewise.
99213
99214 2000-07-02  Jim Meyering  <meyering@lucent.com>
99215
99216         * lib/quotearg.c (mbstate_t): Don't define here.
99217
99218 2000-07-02  Jim Meyering  <meyering@lucent.com>
99219
99220         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99221
99222 2000-07-01  Jim Meyering  <meyering@lucent.com>
99223
99224         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99225
99226 2000-07-01  Jim Meyering  <meyering@lucent.com>
99227
99228         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99229         problem.
99230
99231 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99232
99233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99234         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99235
99236 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99237
99238         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99239         per change in ../m4/ls-mntd-fs.m4.
99240         (read_filesystem_list): Ignore symbolic links.
99241
99242 2000-06-29  Jim Meyering  <meyering@lucent.com>
99243
99244         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99245         for declaration of strcmp.
99246
99247         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99248
99249         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99250         Avoid warning by casting result to `char *' to remove `const'.
99251
99252 2000-06-28  Jim Meyering  <meyering@lucent.com>
99253
99254         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99255         included by quotearg.c, for which we perform this test.  From
99256         Bruno Haible.
99257
99258 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99259
99260         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99261         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99262         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99263
99264 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99265
99266         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99267
99268 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99269
99270         savedir now sets errno on failure and invokes xmalloc to get memory.
99271         Fix a couple of other minor bugs while we're at it.
99272
99273         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99274         (NAMLEN): Remove macro.
99275         (malloc, realloc): Remove decls.
99276         (stpcpy): Likewise.
99277         ("xalloc.h"): Include.
99278         (NAME_SIZE_DEFAULT): New macro.
99279         (savedir): Use xmalloc / xrealloc to allocate memory.
99280         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99281         Skip "" directory entries.
99282         Use strlen to calculate directory entry length, since the old method
99283         is rarely used these days and isn't worth supporting.
99284         Don't use a pointer after freeing it.
99285         Check for integer overflow when calculating allocation size.
99286         Use memcpy to copy entries, instead of stpcpy.
99287         Set errno properly when returning NULL.
99288         Check for readdir error.
99289
99290 2000-06-26  Jim Meyering  <meyering@lucent.com>
99291
99292         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99293
99294 2000-06-25  Jim Meyering  <meyering@lucent.com>
99295
99296         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99297         Linux header bug when _XOPEN_SOURCE is defined to 500.
99298
99299 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99300
99301         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99302         deficiency.
99303
99304 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99305
99306         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99307         Include xalloc.h.
99308         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99309
99310 2000-06-24  Jim Meyering  <meyering@lucent.com>
99311
99312         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99313         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99314         for which strerror does return char*, but which lacks a conveniently
99315         accessible declaration of the function.  If the compile-test says
99316         strerror_r doesn't work, then resort to a `run'-test that works on
99317         BeOS and segfaults on DEC Unix.
99318
99319 2000-06-24  Jim Meyering  <meyering@lucent.com>
99320
99321         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99322
99323 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99324
99325         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99327
99328 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99329
99330         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99331         (mbrtowc, mbstate_t): Define substitutes if
99332         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99333         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99334         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99335
99336 2000-06-23  Jim Meyering  <meyering@lucent.com>
99337
99338         * m4/afs.m4: Add missing AC_MSG_RESULT.
99339         Reported by Bruno Haible.
99340
99341         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99342         Suggestion from Bruno Haible.
99343
99344 2000-06-23  Jim Meyering  <meyering@lucent.com>
99345
99346         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99347
99348 2000-06-21  Jim Meyering  <meyering@lucent.com>
99349
99350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99351
99352 2000-06-21  Jim Meyering  <meyering@lucent.com>
99353
99354         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99355         (noinst_HEADERS): Add getstr.h.
99356
99357         * lib/getline.c (getstr): Move into a separate file.
99358         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99359         the following changes: new parameter, delim2; both delim[12]
99360         parameters have type `int', not `char'.  The latter would lose
99361         with 8-bit delimiters.
99362         * lib/getstr.h: New file.
99363
99364 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99365
99366         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99367         than 1024, return a memory chunk of least possible size, instead
99368         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99369         Use free/xmalloc instead of xrealloc to avoid copying for very long
99370         paths.
99371
99372 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99373
99374         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99375         the empty string.
99376
99377 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99378
99379         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99380         address, not strdup.  Include <stdlib.h> and don't declare free().
99381
99382 2000-06-19  Jim Meyering  <meyering@lucent.com>
99383
99384         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99385
99386 2000-06-18  Jim Meyering  <meyering@lucent.com>
99387
99388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99389
99390         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99391         `checking whether...' message to be consistent with that of the
99392         lstat test.
99393
99394 2000-06-18  Jim Meyering  <meyering@lucent.com>
99395
99396         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99397         Besides, these days every porting target provides a mkdir function.
99398
99399         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99400         needed. (this snippet comes from src/system.h).
99401
99402 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99403
99404         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99405
99406 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99407
99408         * lib/human.c (adjust_value): New function.
99409         (human_readable_inexact): Apply rounding style even when
99410         printing approximate values.
99411
99412 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99413
99414         * lib/human.c (human_readable_inexact): Allow an input block
99415         size that is not a multiple of the output block size, and vice versa.
99416         Reported by Piergiorgio Sartor.
99417
99418 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99419
99420         * lib/getdate.y (get_date): Apply relative times after time
99421         zone indicator, not before.  Reported by Todd A. Jacobs.
99422
99423 2000-06-13  Jim Meyering  <meyering@lucent.com>
99424
99425         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99426
99427         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99428
99429 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99430
99431         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99432
99433 2000-06-12  Jim Meyering  <meyering@lucent.com>
99434
99435         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99436         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99437         optional argument.
99438         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99439         the optional argument, `lib'.
99440
99441 2000-06-08  Jim Meyering  <meyering@lucent.com>
99442
99443         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99444
99445 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99446
99447         Rewrite largefile configuration so that we don't need to run
99448         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99449         AC_CANONICAL_HOST in configure.in -- jmm]
99450
99451         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99452         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99453         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99454         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99455         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99456         All uses changed.
99457         Instead of inspecting the output of getconf, try to compile the
99458         test program without and with the macro definition.
99459         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99460         for getconf.  Instead, check for the needed flags by compiling
99461         test programs.
99462
99463 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99464
99465         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99466
99467 2000-06-04  Jim Meyering  <meyering@lucent.com>
99468
99469         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99470         SunOS 4.1.4 for which gid_t is an unsigned type.
99471
99472 2000-06-03  Jim Meyering  <meyering@lucent.com>
99473
99474         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99475         now that autoconf requires that.
99476
99477         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99478         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99479         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99480
99481 2000-06-03  Jim Meyering  <meyering@lucent.com>
99482
99483         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99484
99485 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99486
99487         * m4/glibc21.m4: New file.
99488         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99489
99490 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99491
99492         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99493         newer, don't install charset.alias.
99494         * lib/config.charset: Change the Linux/glibc rules so they become empty
99495         on glibc-2.1 or newer.
99496
99497 2000-06-02  Jim Meyering  <meyering@lucent.com>
99498
99499         * lib/mountlist.c: Back out last change.  Instead, do this...
99500         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99501         me_dummy member using the same `ignore'-testing code.
99502         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99503         fs_type strings.
99504         From Mark D. Roth.
99505
99506 2000-05-29  Jim Meyering  <meyering@lucent.com>
99507
99508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99509         mounts with the `ignore' attribute.  Based on a patch from
99510         Mark D. Roth.
99511
99512 2000-05-28  Jim Meyering  <meyering@lucent.com>
99513
99514         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99515         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99516         * m4/stat.m4: Likewise.
99517         * m4/lstat.m4: Likewise.
99518         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99519
99520         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99521         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99522
99523 2000-05-26  Jim Meyering  <meyering@lucent.com>
99524
99525         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99526
99527 2000-05-24  Jim Meyering  <meyering@lucent.com>
99528
99529         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99530         autoconf requires that.
99531         * m4/lib-check.m4: Likewise.
99532         * m4/jm-macros.m4: Likewise.
99533         * m4/strftime.m4: Likewise.
99534
99535         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99536         AC_CHECK_DECLS, now that autoconf requires that.
99537
99538 2000-05-22  Jim Meyering  <meyering@lucent.com>
99539
99540         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99541         * m4/lstat.m4: Likewise.
99542
99543 2000-05-22  Jim Meyering  <meyering@lucent.com>
99544
99545         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99546
99547 2000-05-20  Jim Meyering  <meyering@lucent.com>
99548
99549         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99550         (jm_PREREQ): Use it.
99551
99552 2000-05-18  Jim Meyering  <meyering@lucent.com>
99553
99554         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99555         back, too, since it may have been modified by allocate_entry.
99556         (hash_delete): Rewrite to use neither the assignment operator
99557         nor the comma operator in an if-expression.
99558
99559 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99560
99561         * lib/closeout.c:
99562         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99563         Remove; no longer needed.
99564         "quotearg.h": Add include.
99565         (file_name): Do not bother to explicitly initialize to NULL; it's less
99566         efficient on some hosts.
99567         (close_stdout_status): Remove test as to whether stdout was already
99568         closed; it breaks for the case "echo x | sort >&-".
99569         Quote file name colons.
99570         Do not assume that _("write error") lacks format strings.
99571
99572 2000-05-15  Jim Meyering  <meyering@lucent.com>
99573
99574         * lib/version-etc.c (version_etc_copyright): Update the copyright
99575         string used in all --version output.
99576
99577 2000-05-14  Jim Meyering  <meyering@lucent.com>
99578
99579         * lib/closeout.c (close_stdout_set_file_name): New function.
99580         (close_stdout_status): Use new file-scoped global.
99581         Return right away if fstat says the stdout file descriptor is invalid.
99582         * lib/closeout.h (close_stdout_set_file_name): Declare.
99583
99584 2000-05-10  Jim Meyering  <meyering@lucent.com>
99585
99586         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99587         (close_stdout_set_status): New function.
99588         * lib/closeout.h (close_stdout_set_status): Declare.
99589
99590 2000-05-09  Jim Meyering  <meyering@lucent.com>
99591
99592         * m4/gettext.m4: Rename this...
99593         * m4/libintl.m4: ...to this.
99594
99595 2000-05-08  Jim Meyering  <meyering@lucent.com>
99596
99597         * lib/long-options.c: Don't include closeout.h.
99598         (parse_long_options): Don't call close_stdout for --version.
99599
99600 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99601
99602         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99603         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99604         2.1.3 bug.  This avoids a clash when files like regex.c define
99605         _GNU_SOURCE.
99606
99607 2000-05-06  Jim Meyering  <meyering@lucent.com>
99608
99609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99610         (AC_REPLACE_FUNCS): Add strnlen.
99611
99612         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99613         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99614
99615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99616         AC_SEARCH_LIBS call for nanosleep.
99617         (LIB_NANOSLEEP): Set and AC_SUBST.
99618
99619 2000-05-06  Jim Meyering  <meyering@lucent.com>
99620
99621         * lib/strnlen.c: Undefine __strnlen and strnlen.
99622         [!weak_alias]: Define __strnlen to strnlen.
99623
99624         * lib/atexit.c: New file, from libiberty.
99625
99626 2000-05-06  Jim Meyering  <meyering@lucent.com>
99627
99628         * lib/closeout.c (close_stdout_status): Also check for errors on the
99629         stderr stream.
99630
99631 2000-05-05  Jim Meyering  <meyering@lucent.com>
99632
99633         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99634         AC_SEARCH_LIBS call for clock_gettime.
99635         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99636
99637         * m4/search-libs.m4: Update from autoconf.
99638
99639         su doesn't work on Solaris 2.6.
99640         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99641         <shadow.h>.  Reported by Dragos Harabor.
99642
99643 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99644
99645         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99646         memcpy instead of xmalloc, xrealloc, path_concat.
99647         (locale_charset): Treat empty environment variables as absent.
99648         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99649
99650 2000-05-04  Jim Meyering  <meyering@lucent.com>
99651
99652         * lib/getopt.c: Update from glibc.
99653         * lib/obstack.c: Likewise.
99654         * lib/obstack.h: Likewise.
99655         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99656         file
99657
99658         * lib/regex.h: Likewise.
99659         * lib/strndup.c: Likewise.
99660         * lib/strnlen.c: New file, from glibc.
99661
99662 2000-05-03  Jim Meyering  <meyering@lucent.com>
99663
99664         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99665
99666 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99667
99668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99669         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99670         compile-time test, rather than inspecting host and OS, to
99671         decide whether to define _LARGEFILE_SOURCE.
99672
99673 2000-05-01  Jim Meyering  <meyering@lucent.com>
99674
99675         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99676
99677         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99678         Based on a patch from Bruno Haible.
99679
99680 2000-05-01  Jim Meyering  <meyering@lucent.com>
99681
99682         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99683
99684 2000-04-29  Jim Meyering  <meyering@lucent.com>
99685
99686         * lib/path-concat.c: Declare strdup only if it's not defined.
99687         * lib/canon-host.c: Likewise.
99688
99689 2000-04-28  Jim Meyering  <meyering@lucent.com>
99690
99691         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99692         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99693         is included first, then limits.h is included by locale.h by libintl.h.
99694         From John David Anglin.
99695
99696 2000-04-25  Jim Meyering  <meyering@lucent.com>
99697
99698         * lib/makepath.c (S_IRWXUGO): Define.
99699         (make_path): Always perform explicit chmod if MODE specifies any
99700         of the `special' permission bits.  Prompted by a bug report against
99701         install from Mate Wierdl and Joost van Baal.
99702
99703 2000-04-18  Jim Meyering  <meyering@lucent.com>
99704
99705         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99706         (jm_PREREQ): Use it.
99707
99708 2000-04-18  Jim Meyering  <meyering@lucent.com>
99709
99710         * lib/README: New file.
99711
99712         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99713         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99714
99715 2000-04-17  Jim Meyering  <meyering@lucent.com>
99716
99717         Get it right :-)
99718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99719         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99720         Suggestion from Akim Demaille.
99721
99722 2000-04-17  Jim Meyering  <meyering@lucent.com>
99723
99724         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99725         the definition of it to rpl_strftime also defined-away the system's
99726         declaration.
99727
99728 2000-04-15  Jim Meyering  <meyering@lucent.com>
99729
99730         Use `C' to denote so-called `contiguous' files, the same way
99731         that tar does.
99732         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99733         (ftypelet): Use S_ISCTG.
99734         From Michael Deutschmann.
99735
99736 2000-04-14  Jim Meyering  <meyering@lucent.com>
99737
99738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99739         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99740         clobbered.
99741
99742 2000-04-14  Jim Meyering  <meyering@lucent.com>
99743
99744         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99745
99746 2000-04-13  Jim Meyering  <meyering@lucent.com>
99747
99748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99749         AH_VERBATIM to insert required #ifndef into config.h.in.
99750         Suggestion from Akim Demaille.
99751
99752 2000-04-12  Jim Meyering  <meyering@lucent.com>
99753
99754         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99755         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99756         Christian Krackowizer.
99757
99758         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99759         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99760         (AC_SYS_LARGEFILE): Require.
99761         (AM_C_PROTOTYPES): Require.
99762
99763 2000-04-08  Jim Meyering  <meyering@lucent.com>
99764
99765         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99766         names don't conflict.  Reported by Eli Zaretskii.
99767
99768 2000-04-07  Jim Meyering  <meyering@lucent.com>
99769
99770         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99771         sys/types.h, to work around system header problems on AIX 3.2.5.
99772         From Bruno Haible.
99773
99774 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99775
99776         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99777         bug.  Deal with the different error behavior of Irix iconv.
99778
99779 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99780
99781         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99782         IRIX if the installer said otherwise.
99783
99784 2000-04-05  Jim Meyering  <meyering@lucent.com>
99785
99786         Portability tweaks required for ultrix4.3.
99787         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99788         (jm_CHECK_DECLS): Add getutent to the list of functions.
99789         (_jm_DECL_HEADERS): Add utmpx.h.
99790         From John David Anglin.
99791
99792         * m4/strftime.m4: Back out the 2000-04-02 change.
99793         Instead of that change, simply undefine putenv in the test program.
99794
99795 2000-04-05  Jim Meyering  <meyering@lucent.com>
99796
99797         Portability tweaks required for ultrix4.3.
99798         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99799         getutent.
99800         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99801         * lib/canon-host.c: Declare strdup.
99802         * lib/path-concat.c: Likewise.
99803         From John David Anglin.
99804
99805 2000-04-04  Jim Meyering  <meyering@lucent.com>
99806
99807         Be more DOS 8.3-friendly.
99808         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99809         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99810         * lib/Makefile.am: Reflect renaming.
99811         Reported by Eli Zaretskii.
99812
99813         Use a temporary file name that won't clash with `charset.alias'
99814         in the DOS 8.3 name space.
99815         * lib/Makefile.am (charset_tmp): Define.
99816         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99817         (uninstall-local): Likewise.
99818         Reported by Eli Zaretskii.
99819
99820 2000-04-03  Jim Meyering  <meyering@lucent.com>
99821
99822         * m4/gettext.m4: Fix typo in comment.
99823
99824         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99825         textutils/configure.in).  Suggestion from Paul Eggert.
99826         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99827
99828 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99829
99830         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99831         variable in the shell rather than using putenv, which isn't
99832         portable.  This avoids the configure-time inter-test dependency
99833         on the potentially-renamed putenv function.
99834
99835 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99836
99837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99838         before checking struct stat.st_blksize, so that
99839         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99840
99841 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99842
99843         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99844         since strftime.c uses HAVE_STRFTIME to decide whether to use
99845         the underlying strftime.
99846
99847 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99848
99849         * lib/time/strftime.c (my_strftime): Make sure we call the system
99850         strftime, not ourselves, when invoking the underlying strftime.
99851
99852 2000-03-24  Jim Meyering  <meyering@lucent.com>
99853
99854         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99855         (charset_alias): Define.
99856         (install-exec-local): Factor out common code.
99857         (uninstall-local): Split lines longer than 80.
99858         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99859         (SUFFIXES): Define.
99860         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99861         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99862
99863 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99864
99865         * lib/config.charset: Output a line containing "Packages using this
99866         file".
99867         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99868         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99869         ref-del.sed): New rules.
99870
99871 2000-03-17  Jim Meyering  <meyering@lucent.com>
99872
99873         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99874         Otherwise, include <strings.h>
99875
99876 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99877
99878         * lib/unicodeio.c (utf8_wctomb): New function.
99879         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99880         format instead of in UCS-4 with platform dependent endianness.
99881
99882 2000-03-10  Jim Meyering  <meyering@lucent.com>
99883
99884         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99885         From Marco Franzen.
99886
99887 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99888
99889         * lib/savedir.c (savedir): Work even if directory size is
99890         negative; this can happen with some screwy NFS configurations.
99891
99892 2000-03-06  Jim Meyering  <meyering@lucent.com>
99893
99894         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99895         if it's NULL (because we ran out of memory).  From Bruno Haible.
99896
99897 2000-03-05  Jim Meyering  <meyering@lucent.com>
99898
99899         * lib/localcharset.c ("path-concat.h"): Include.
99900         (get_charset_aliases): Use path_concat instead of ANSI string
99901         concatenation.
99902
99903         * lib/unicodeio.h (PARAMS): Define.
99904         Use it to guard prototype.
99905
99906 2000-03-04  Jim Meyering  <meyering@lucent.com>
99907
99908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99909         for lib/localcharset.c.
99910
99911 2000-03-04  Jim Meyering  <meyering@lucent.com>
99912
99913         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99914         installing into it.
99915         (uninstall-local): Uncomment this rule so `make distcheck' works
99916         once again.
99917
99918         * lib/unicodeio.c (<errno.h>): Include it.
99919         (errno): Declare if not defined.
99920
99921         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99922
99923         * lib/config.charset: New version, incorporating remarks from a linux
99924         i18n mailing list.  From Bruno Haible.
99925
99926 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99927
99928         * m4/codeset.m4: New file.
99929         * m4/iconv.m4: New file.
99930         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99931
99932 2000-03-03  Jim Meyering  <meyering@lucent.com>
99933
99934         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99935
99936 2000-03-02  Jim Meyering  <meyering@lucent.com>
99937
99938         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99939         the messages come out on separate lines.
99940
99941         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99942         rather than jm_CHECK_DECLARATIONS.
99943         * m4/decl.m4: Remove now-unused file.
99944
99945         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99946         geteuid.
99947
99948 2000-03-02  Jim Meyering  <meyering@lucent.com>
99949
99950         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99951
99952 2000-03-01  Jim Meyering  <meyering@lucent.com>
99953
99954         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99955         * lib/unicodeio.c: Likewise.
99956
99957 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99958
99959         * lib/config.charset: New file.
99960         * lib/localcharset.c: New file.
99961         * lib/unicodeio.h, lib/unicodeio.c: New files.
99962         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99963         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99964         (noinst_HEADERS): Add unicodeio.h.
99965         (all-local, install-exec-local, charset.alias): New targets.
99966
99967 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99968
99969         * lib/quotearg.c (ALERT_CHAR): New macro.
99970         (quotearg_buffer_restyled): Use it.
99971
99972 2000-02-27  Jim Meyering  <meyering@lucent.com>
99973
99974         * m4/check-decl.m4: Add getenv to the list.
99975
99976 2000-02-27  Jim Meyering  <meyering@lucent.com>
99977
99978         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99979         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99980
99981         * lib/backupfile.c: Guard inclusion of stdlib.h with
99982         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99983         Declare malloc if needed.
99984
99985         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99986         `#ifndef HAVE_DECL..'
99987         now that autoconf always defines the HAVE_DECL_ symbols.
99988         * lib/human.c: Likewise.
99989         * lib/same.c: Likewise.
99990         * lib/strtoumax.c: Likewise.
99991
99992         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99993         declaration check was not run.
99994         * lib/hash.c: Likewise.
99995         * lib/human.c: Likewise.
99996         * lib/same.c: Likewise.
99997         * lib/strtoumax.c: Likewise.
99998
99999         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100000         `.', then first look up the entire `.'-containing string as a login
100001         name.
100002
100003 2000-02-23  Jim Meyering  <meyering@lucent.com>
100004
100005         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100006         in place of my hack.
100007
100008 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100009
100010         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100011         (textint): New typedef.
100012         (parser_control): Member year changed from int to textint.
100013         All uses changed.
100014         (YYSTYPE): Removed; replaced by %union with int and textint members.
100015         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100016         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100017         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100018         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100019         (date, number, to_year): Use width of number in digits, not its value,
100020         to determine whether it's a 2-digit year, or a 2-digit time.
100021         (yylex): Store number of digits of numeric tokens.
100022         Reported by John Kendall.
100023
100024         (parser_control): Changed from struct parser_control to typedef (for
100025         consistency).  All uses changed.
100026
100027         (tID): Removed; not used.
100028         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100029
100030 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100031
100032         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100033         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100034
100035 2000-02-12  Jim Meyering  <meyering@lucent.com>
100036
100037         * lib/userspec.c (ISDIGIT): Define it.
100038         (isdigit): Remove definition.
100039         (is_number): Use ISDIGIT, not isdigit.
100040         <libintl.h>: Include.
100041         (_ and N_): Define.
100042         (parse_user_spec): Mark translatable strings.
100043
100044 2000-02-10  Jim Meyering  <meyering@lucent.com>
100045
100046         With these changes, nanosleep.[ch] are finally enough like the other
100047         lib/* replacement files to compile on a few more losing systems.
100048
100049         * lib/nanosleep.h: Don't include config.h.
100050         Remove prototype from declaration of nanosleep.
100051         (PARAMS): Remove now-unneeded definition.
100052         * lib/nanosleep.c: #undef nanosleep.
100053         (rpl_nanosleep): Rename from nanosleep.
100054
100055 2000-02-10  Jim Meyering  <meyering@lucent.com>
100056
100057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100058         gnu_nanosleep to rpl_nanosleep.
100059
100060 2000-02-09  Jim Meyering  <meyering@lucent.com>
100061
100062         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100063         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100064
100065 2000-02-08  Akim Demaille  <akim@epita.fr>
100066
100067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100068         `[' and `]' and remove uses of `changequote'.
100069         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100070         (AC_SYS_LARGEFILE): Likewise.
100071         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100072         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100073         of changequote.
100074         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100075         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100076         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100077         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100078
100079 2000-02-05  Jim Meyering  <meyering@lucent.com>
100080
100081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100082         Remove explicit use of AC_HEADER_TIME.  It is required by
100083         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100084         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100085         in autoconf whereby the expansion of the latter ended up preceding
100086         the expansion of its prerequisite, AC_HEADER_TIME.
100087         Reported by Volker Borchert.
100088
100089 2000-02-03  Jim Meyering  <meyering@lucent.com>
100090
100091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100092
100093 2000-02-03  Jim Meyering  <meyering@lucent.com>
100094
100095         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100096         rather than with `#if HAVE_UTMPNAME'.
100097
100098 2000-02-02  Jim Meyering  <meyering@lucent.com>
100099
100100         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100101         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100102         Reported by Eli Zaretskii.
100103
100104 2000-02-01  Jim Meyering  <meyering@lucent.com>
100105
100106         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100107
100108 2000-01-31  Jim Meyering  <meyering@lucent.com>
100109
100110         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100111         functions.  Add the time.h and sys/time.h headers along with the
100112         AC_REQUIRE'ment of AC_HEADER_TIME.
100113
100114 2000-01-31  Jim Meyering  <meyering@lucent.com>
100115
100116         * lib/nanosleep.h (nanosleep): Guard declaration with
100117         `#if ! HAVE_DECL_NANOSLEEP'.
100118         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100119         the declaration in that vendor's sys/timers.h.
100120         Reported by Christian Krackowizer.
100121
100122         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100123         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100124         (ISPRINT): Likewise.
100125         Reported by Tom Tromey.
100126
100127 2000-01-30  Jim Meyering  <meyering@lucent.com>
100128
100129         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100130
100131         * m4/prereq.m4 (utmp_includes): Define.
100132         Check for ut_user and ut_name members in both struct utmpx
100133         and struct utmp.
100134
100135 2000-01-30  Jim Meyering  <meyering@lucent.com>
100136
100137         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100138         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100139         header files where only utmpx.ut_user is declared.
100140
100141         * lib/readutmp.h (UT_USER): Define.
100142
100143 2000-01-29  Jim Meyering  <meyering@lucent.com>
100144
100145         * m4/lib-check.m4: New file containing library-related checks from
100146         fileutils and sh-utils (textutils had none).
100147
100148 2000-01-28  Jim Meyering  <meyering@lucent.com>
100149
100150         * m4/perl.m4: Change format of warning message to look more like that
100151         from the missing script.  Suggestion from François Pinard.
100152
100153 2000-01-25  Jim Meyering  <meyering@lucent.com>
100154
100155         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100156         well as time.h in the compile check.
100157         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100158         Fix typo in cross-compiling case: s/yes/no/.
100159
100160 2000-01-23  Jim Meyering  <meyering@lucent.com>
100161
100162         * m4/jm-macros.m4: Move df-related tests here from
100163         fileutils/configure.in
100164
100165         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100166         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100167
100168         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100169         s/space/ac_fsusage_space/.
100170         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100171
100172         * m4/ftruncate.m4: New file (derived from part of
100173         fileutils/configure.in).
100174         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100175         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100176
100177         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100178         AC_SUBST these here, rather than just in sh-util/configure.in, so
100179         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100180         all the same.
100181         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100182         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100183         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100184         (AC_SUBST(POW_LIBM)): Likewise.
100185         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100186
100187 2000-01-23  Jim Meyering  <meyering@lucent.com>
100188
100189         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100190         obstack.c.
100191
100192 2000-01-22  Jim Meyering  <meyering@lucent.com>
100193
100194         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100195
100196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100197
100198         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100199         configure.in
100200         (AC_CHECK_HEADERS): Likewise for sh-utils.
100201         (AC_CHECK_HEADERS): Likewise for textutils.
100202         Merge the three lists of headers.
100203
100204         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100205         from fileutils' configure.in.
100206
100207         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100208         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100209         check-decl.m4.
100210
100211         * m4/check-decl.m4: Use #if rather than #ifdef.
100212         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100213         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100214         (_jm_DECL_HEADERS): Define new function.
100215         (jm_CHECK_DECLARATIONS): Require it.
100216
100217 2000-01-22  Jim Meyering  <meyering@lucent.com>
100218
100219         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100220         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100221         Required for some AIX systems.  Reported by Christian Krackowizer.
100222         [TESTING] (main): New function.
100223
100224         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100225         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100226         letters.
100227
100228         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100229         iswprint.
100230
100231         * lib/strverscmp.c (ISDIGIT): Define.
100232         (strverscmp): Use ISDIGIT, not isdigit.
100233
100234 2000-01-19  Jim Meyering  <meyering@lucent.com>
100235
100236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100237         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100238         defines `struct timespec' in <sys/time.h>
100239
100240         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100241         Thanks to Akim for explaining.
100242
100243 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100244
100245         * lib/nanosleep.c (nanosleep):
100246         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100247         POSIX.1 doesn't require SA_INTERRUPT and some systems
100248         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100249         it's been part of POSIX.1 since day 1 (in 1988).
100250
100251 2000-01-17  Jim Meyering  <meyering@lucent.com>
100252
100253         * lib/interlock: Remove unused file.  Reported by François Pinard.
100254
100255 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100256
100257         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100258         alert, backslash, formfeed, and vertical tab unnecessarily in
100259         shell quoting style.
100260
100261 2000-01-16  Jim Meyering  <meyering@lucent.com>
100262
100263         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100264         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100265         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100266         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100267
100268 2000-01-16  Jim Meyering  <meyering@lucent.com>
100269
100270         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100271         because the latter didn't work.
100272
100273 2000-01-15  Jim Meyering  <meyering@lucent.com>
100274
100275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100276         (AC_REPLACE_FUNCS): Add memcpy and memset.
100277         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100278         Add strpbrk.
100279         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100280
100281 2000-01-12  Jim Meyering  <meyering@lucent.com>
100282
100283         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100284         (jm_PREREQ): Use it.
100285         (jm_PREREQ_READUTMP): New macro.
100286         (jm_PREREQ): Use it.
100287
100288 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100289
100290         Quote multibyte characters correctly.
100291         * m4/c-bs-a.m4: New file.
100292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100293         (jm_PREREQ): Use it.
100294
100295 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100296
100297         * m4/uintmax_t.m4: Port to autoconf 2.13.
100298
100299 2000-01-08  Jim Meyering  <meyering@ascend.com>
100300
100301         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100302         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100303
100304 2000-01-04  Jim Meyering  <meyering@ascend.com>
100305
100306         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100307         jm_STRUCT_DIRENT_D_TYPE.
100308         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100309         jm_STRUCT_DIRENT_D_INO.
100310         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100311         jm_STRUCT_UTIMBUF.
100312         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100313         renamings.
100314         * m4/utime.m4: Likewise.
100315
100316         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100317         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100318
100319 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100320
100321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100322         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100323
100324 2000-01-02  Jim Meyering  <meyering@ascend.com>
100325
100326         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100327         remember if this is necessary.
100328
100329 1999-12-26  Jim Meyering  <meyering@ascend.com>
100330
100331         * m4/jm-macros.m4: Use it here.
100332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100333
100334 1999-12-23  Jim Meyering  <meyering@ascend.com>
100335
100336         * m4/jm-macros.m4: Check for clock_gettime (moved from
100337         fileutils/configure.in)
100338         Check for gettimeofday.
100339
100340 1999-12-20  Jim Meyering  <meyering@ascend.com>
100341
100342         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100343         autoconf-2.14a-1999-12-20.
100344
100345 1999-12-19  Jim Meyering  <meyering@ascend.com>
100346
100347         * m4/lstat-slash.m4: New file.
100348         * m4/jm-macros.m4: Use the new macro:
100349         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100350
100351 1999-12-07  Jim Meyering  <meyering@ascend.com>
100352
100353         * m4/perl.m4: Require that File::Compare be available, too.
100354         Too many systems seem to lack it.
100355
100356         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100357         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100358
100359 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100360
100361         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100362         problem with the QNX 4.25 shell, which doesn't propagate exit
100363         status of failed commands inside shell assignments.
100364
100365 1999-11-17  Jim Meyering  <meyering@ascend.com>
100366
100367         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100368
100369 1999-11-07  Jim Meyering  <meyering@ascend.com>
100370
100371         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100372
100373 1999-11-06  Jim Meyering  <meyering@ascend.com>
100374
100375         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100376         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100377
100378 1999-11-05  Jim Meyering  <meyering@ascend.com>
100379
100380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100381         configure.in of textutils, fileutils, and sh-utils into this one
100382         (shared between those packages) file.
100383         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100384         AC_STRUCT_ST_BLKSIZE.
100385
100386 1999-11-03  Jim Meyering  <meyering@ascend.com>
100387
100388         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100389         of AC_CHECK_TYPE checks includes unistd.h.
100390         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100391         Suggestion from Akim Demaille.
100392
100393 1999-10-30  Jim Meyering  <meyering@ascend.com>
100394
100395         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100396         m4-quoted string.
100397         * m4/ls-mntd-fs.m4: Likewise.
100398         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100399         * m4/jm-winsz1.m4: Likewise.
100400
100401         * m4/const.m4: Remove file, since the fix made it into the experimental
100402         version of autoconf.
100403         * m4/mktime.m4: Likewise.
100404
100405         * m4/check-type.m4: Remove file, now that the latest version of
100406         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100407
100408         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100409         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100410         AC_CHECK_TYPE.
100411
100412 1999-10-04  Jim Meyering  <meyering@ascend.com>
100413
100414         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100415
100416 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100417
100418         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100419         2.95.1 bug with HP-UX 10.20.
100420
100421 1999-09-17  Jim Meyering  <meyering@ascend.com>
100422
100423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100424         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100425         due to missing strdup (against sh-utils-2.0).
100426
100427 1999-08-29  Jim Meyering  <meyering@ascend.com>
100428
100429         * m4/jm-macros.m4: Require jm_BISON.
100430         * m4/bison.m4: New file.
100431
100432 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100433
100434         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100435         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100436
100437 1999-08-05  Jim Meyering  <meyering@ascend.com>
100438
100439         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100440         to avoid conflicts with `conftest' on 8+3 filesystems.
100441         Suggestion from Eli Zaretskii.
100442
100443 1999-08-04  Jim Meyering  <meyering@ascend.com>
100444
100445         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100446         fileutils and sh-utils (textutils's getline test was inadequate).
100447         (AM_FUNC_GETLINE): Run this test.
100448         (AC_CHECK_FUNCS): Check for getdelim.
100449         Reported by Bob Proulx.
100450
100451 1999-08-02  Jim Meyering  <meyering@ascend.com>
100452
100453         * m4/jm-macros.m4: Add a comment.
100454
100455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100456
100457         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100458         <inttypes.h> defines strtoumax as a macro (and not as a
100459         function).
100460
100461 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100462
100463         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100464         that we can shift, multiply and divide unsigned long long
100465         values; Ultrix cc can't do it.
100466
100467 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100468
100469         * m4/mktime.m4: New file, which is a preview of what should appear
100470         in the next public autoconf release.
100471
100472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100473
100474         * m4/lfs.m4: Remove this file.
100475         * m4/largefile.m4: New file.  It contains the old contents of
100476         lfs.m4, except that all names with prefix AC_LFS have been
100477         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100478         compatible with future autoconf versions.  Also, some minor m4
100479         quoting problems have been fixed.
100480
100481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100482
100483         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100484         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100485         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100486         and simplify the shell code.
100487
100488 1999-08-01  Jim Meyering  <meyering@ascend.com>
100489
100490         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100491         m4.
100492
100493 1999-07-20  Jim Meyering  <meyering@ascend.com>
100494
100495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100496
100497 1999-07-15  Jim Meyering  <meyering@ascend.com>
100498
100499         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100500
100501 1999-05-22  Jim Meyering  <meyering@ascend.com>
100502
100503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100504
100505 1999-05-20  Jim Meyering  <meyering@ascend.com>
100506
100507         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100508         Add a colon after each `then' in case $4 is empty.
100509
100510 1999-05-16  Jim Meyering  <meyering@ascend.com>
100511
100512         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100513
100514 1999-05-10  Jim Meyering  <meyering@ascend.com>
100515
100516         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100517
100518         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100519         AC_FUNC_MKTIME.
100520
100521 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100522
100523         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100524
100525 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100526
100527         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100528         not CPPFLAGS, so that linking works correctly in IRIX.
100529
100530 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100531
100532         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100533
100534 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100535
100536         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100537         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100539         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100540         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100541
100542         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100543
100544 1999-04-20  Jim Meyering  <meyering@ascend.com>
100545
100546         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100547         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100548         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100549
100550 1999-04-18  Jim Meyering  <meyering@ascend.com>
100551
100552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100553         * m4/jm-macros.m4: Use it.
100554
100555 1999-04-06  Jim Meyering  <meyering@ascend.com>
100556
100557         * m4/strftime.m4: Remove test for %f.
100558
100559 1999-03-29  Jim Meyering  <meyering@ascend.com>
100560
100561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100562         superset of the AC_TYPE_* checks in the textutils, fileutils,
100563         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100564         AC_TYPE_PID_T.
100565
100566 1999-03-28  Jim Meyering  <meyering@ascend.com>
100567
100568         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100569         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100570         replaced e.g., in the *.sh files of the sh-utils.
100571
100572 1999-03-20  Jim Meyering  <meyering@ascend.com>
100573
100574         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100575         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100576         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100577
100578 1999-03-19  Jim Meyering  <meyering@ascend.com>
100579
100580         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100581
100582 1999-03-12  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100585
100586 1999-03-07  Jim Meyering  <meyering@ascend.com>
100587
100588         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100589         declared.
100590
100591 1999-02-17  Jim Meyering  <meyering@ascend.com>
100592
100593         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100594         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100595
100596 1999-02-07  Jim Meyering  <meyering@ascend.com>
100597
100598         * m4/group-member.m4: New file -- extracted from sh-utils'
100599         configure.in.
100600
100601         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100602         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100603
100604 1999-02-06  Jim Meyering  <meyering@ascend.com>
100605
100606         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100607         * m4/fnmatch.m4: Likewise.
100608         * m4/getgroups.m4: Likewise.
100609         * m4/lstat.m4: Likewise.
100610         * m4/malloc.m4: Likewise.
100611         * m4/putenv.m4: Likewise.
100612         * m4/realloc.m4: Likewise.
100613         * m4/regex.m4: Likewise.
100614         * m4/stat.m4: Likewise.
100615         * m4/strftime.m4: Likewise.
100616         Suggestion from Alain Magloire.
100617
100618         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100619         * m4/fnmatch.m4: Likewise.
100620         * m4/getgroups.m4: Likewise.
100621         * m4/getline.m4: Likewise.
100622         * m4/lstat.m4: Likewise.
100623         * m4/malloc.m4: Likewise.
100624         * m4/memcmp.m4: Likewise.
100625         * m4/putenv.m4: Likewise.
100626         * m4/realloc.m4: Likewise.
100627         * m4/regex.m4: Likewise.
100628         * m4/stat.m4: Likewise.
100629         * m4/strftime.m4: Likewise.
100630         Suggestion from Alain Magloire.
100631
100632         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100633         an argument.
100634
100635         * m4/regex.m4: Add a run-time Test for proper operation of
100636         re_compile_pattern.
100637
100638 1999-01-31  Jim Meyering  <meyering@ascend.com>
100639
100640         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100641
100642 1999-01-30  Jim Meyering  <meyering@ascend.com>
100643
100644         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100645
100646         * m4/jm-mktime.m4: Make this a wrapper around the official
100647         AM_FUNC_MKTIME rather than my private copy, now that the official one
100648         is up to date.
100649         * m4/mktime.m4: Remove file.
100650
100651         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100652         * m4/uptime.m4: Likewise.
100653         * m4/uintmax_t.m4: Likewise.
100654
100655 1999-01-28  Jim Meyering  <meyering@ascend.com>
100656
100657         * m4/jm-macros.m4: Use jm_AFS.
100658         * m4/afs.m4: New file (from fileutils' configure.in).
100659
100660         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100661         * m4/chown.m4: Likewise.
100662         * m4/d-ino.m4: Likewise.
100663         * m4/d-type.m4: Likewise.
100664         * m4/fnmatch.m4: Likewise.
100665         * m4/getgroups.m4: Likewise.
100666         * m4/gettext.m4: Likewise.
100667         * m4/jm-mktime.m4: Likewise.
100668         * m4/jm-winsz2.m4: Likewise.
100669         * m4/lcmessage.m4: Likewise.
100670         * m4/ls-mntd-fs.m4: Likewise.
100671         * m4/malloc.m4: Likewise.
100672         * m4/memcmp.m4: Likewise.
100673         * m4/putenv.m4: Likewise.
100674         * m4/realloc.m4: Likewise.
100675         * m4/st_mtim.m4: Likewise.
100676         * m4/strftime.m4: Likewise.
100677
100678 1999-01-16  Jim Meyering  <meyering@ascend.com>
100679
100680         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100681         (ARGMATCH_DIE_DECL): Define.
100682
100683 1999-01-12  Jim Meyering  <meyering@ascend.com>
100684
100685         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100686         Reported by Lars Hecking.
100687
100688 1999-01-10  Jim Meyering  <meyering@ascend.com>
100689
100690         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100691         gross kludge.
100692         * m4/inttypes_h.m4: Likewise.
100693         * m4/lstat.m4: Likewise.
100694         * m4/malloc.m4: Likewise.
100695         * m4/readdir.m4: Likewise.
100696         * m4/realloc.m4: Likewise.
100697         * m4/st_dm_mode.m4: Likewise.
100698         * m4/stat.m4: Likewise.
100699         * m4/utimbuf.m4: Likewise.
100700         * m4/utimes.m4: Likewise.
100701
100702         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100703         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100704         comments in config.h.in are meaningful.
100705
100706         * m4/jm-macros.m4: Require autoconf-2.13 here.
100707
100708         * m4/regex.m4: By default, don't use the included regex.c on systems
100709         with glibc 2.  Suggestion from Uli Drepper.
100710
100711 1999-01-02  Jim Meyering  <meyering@ascend.com>
100712
100713         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100714
100715 1998-12-18  Jim Meyering  <meyering@ascend.com>
100716
100717         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100718         Based on a suggestion from Lars Hecking.
100719
100720 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100721
100722         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100723
100724 1998-11-16  Jim Meyering  <meyering@ascend.com>
100725
100726         * m4/lfs.m4: Double-quote the `uname...` expression.
100727
100728 1998-11-14  Jim Meyering  <meyering@ascend.com>
100729
100730         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100731         * m4/stat.m4: Likewise.
100732
100733 1998-11-03  Jim Meyering  <meyering@ascend.com>
100734
100735         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100736         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100737
100738 1998-10-18  Jim Meyering  <meyering@ascend.com>
100739
100740         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100741
100742 1998-10-17  Jim Meyering  <meyering@ascend.com>
100743
100744         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100745         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100746         calls for those previously hard-coded headers.  Instead, take a new
100747         parameter.
100748         (jm_CHECK_DECLARATIONS): Reflect interface change.
100749         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100750         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100751
100752         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100753
100754 1998-10-14  Jim Meyering  <meyering@ascend.com>
100755
100756         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100757         instead of "TZ=America/Vancouver".  From Paul Eggert.
100758
100759 1998-10-11  Jim Meyering  <meyering@ascend.com>
100760
100761         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100762         This adds a test for a recently added compatibility fix for mktime.c.
100763         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100764
100765 1998-09-27  Jim Meyering  <meyering@ascend.com>
100766
100767         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100768
100769         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100770         ../configure.in, including a change from Gordon Matzigkeit to allow
100771         cross-compiling for the Hurd.
100772
100773         * m4/glibc.m4: New file/macro to test for the GNU C Library
100774         versions 1 and 2.  From Gordon Matzigkeit.
100775         Indent.
100776
100777 1998-09-21  Jim Meyering  <meyering@ascend.com>
100778
100779         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100780
100781 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100782
100783         Port nanosecond-resolution times to UnixWare 2.1.2 and
100784         pedantic Solaris 2.6.
100785
100786         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100787         AC_STRUCT_ST_MTIM.
100788         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100789         Generate name of ns member, instead of just 1 or undef.
100790         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100791
100792 1998-08-15  Jim Meyering  <meyering@ascend.com>
100793
100794         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100795         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100796         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100797         instead of jm_TYPE_SSIZE_T.
100798
100799 1998-08-12  Jim Meyering  <meyering@ascend.com>
100800
100801         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100802
100803 1998-08-02  Jim Meyering  <meyering@ascend.com>
100804
100805         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100806         in acconfig.h manually.
100807
100808 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100809
100810         * m4/st_mtim.m4: New file.
100811
100812 1998-07-28  Jim Meyering  <meyering@ascend.com>
100813
100814         * m4/utimes.m4: Undef stat.
100815
100816 1998-07-25  Jim Meyering  <meyering@ascend.com>
100817
100818         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100819         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100820
100821 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100822
100823         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100824         uid and gid actually remain unchanged.
100825
100826 1998-07-07  Jim Meyering  <meyering@ascend.com>
100827
100828         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100829
100830 1998-07-04  Jim Meyering  <meyering@ascend.com>
100831
100832         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100833         to prove that this macro can be used in packages without regex.c.
100834
100835 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100836
100837         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100838         is to be used.
100839
100840 1998-07-03  Jim Meyering  <meyering@ascend.com>
100841
100842         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100843
100844         * m4/gettext.m4: New file -- from gettext-0.10.35.
100845         * m4/lcmessage.m4: Likewise.
100846         * m4/progtest.m4: Likewise.
100847
100848         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100849         * m4/jm-macros.m4: Require the new macro.
100850
100851 1998-06-29  Jim Meyering  <meyering@ascend.com>
100852
100853         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100854         for the definition of NGROUPS (used in a system header included
100855         by sys/mount.h).
100856
100857 1998-06-28  Jim Meyering  <meyering@ascend.com>
100858
100859         * m4/ls-mntd-fs.m4: New file.
100860         * m4/fstypename.m4: New file.
100861
100862         * m4/jm-macros.m4: Require the new macro.
100863         * m4/jm-glibc-io.m4: New file.
100864
100865 1998-05-19  Jim Meyering  <meyering@ascend.com>
100866
100867         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100868         * m4/lchown.m4: New file.
100869
100870         * m4/Makefile.am.in: New file.
100871         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100872
100873 1998-05-14  Jim Meyering  <meyering@ascend.com>
100874
100875         * m4/Makefile.am (EXTRA_DIST): Add them.
100876         * m4/jm-macros.m4: New file.
100877         * m4/utimbuf.m4: New file.
100878
100879 1998-05-12  Jim Meyering  <meyering@ascend.com>
100880
100881         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100882
100883 1998-05-11  Jim Meyering  <meyering@ascend.com>
100884
100885         * m4/isc-posix.m4: New file.
100886
100887 1998-05-10  Jim Meyering  <meyering@ascend.com>
100888
100889         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100890
100891 1998-05-09  Jim Meyering  <meyering@ascend.com>
100892
100893         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100894         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100895         with automake.
100896
100897         * m4/ssize_t.m4: New file.
100898         * m4/mktime.m4: Remove file -- the new automake has this now.
100899
100900 1998-04-26  Jim Meyering  <meyering@ascend.com>
100901
100902         * m4/assert.m4: New file.
100903         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100904
100905 1998-04-05  Jim Meyering  <meyering@ascend.com>
100906
100907         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100908         (jm_PREREQ): Use it here.
100909
100910 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100911
100912         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100913         in acconfig.h.
100914
100915 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100916
100917         * m4/prereq.m4: New file.
100918         * m4/error.m4: New file.
100919         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100920
100921 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100922
100923         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100924         cache-check for the same variable -- that defeated the purpose of
100925         the test; the test program was never run.  This was a problem only
100926         on systems with losing getline functions -- HP-UX 10.20 is one.
100927         Reported by Bjorn Helgaas.
100928
100929 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100930
100931         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100932
100933 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100934
100935         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100936
100937         * m4/const.m4: New file.  Use an initializer in this declaration
100938         typedef int charset[2]; const charset x;
100939         Reported by Bob Glickstein.
100940
100941 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100942
100943         * m4/chown.m4: Fix reversed types on -1 args to chown.
100944         From Kaveh Ghazi.
100945
100946 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100947
100948         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100949         Add lseek and memchr.
100950
100951         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100952         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100953         have a 20-character limit on names.
100954
100955 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100956
100957         * m4/inttypes_h.m4: New file.
100958         * m4/uintmax_t.m4: New file.
100959         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100960
100961
100962         -----
100963
100964         Local Variables:
100965         coding: utf-8
100966         End:
100967
100968         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100969
100970         Copying and distribution of this file, with or without
100971         modification, are permitted provided the copyright notice
100972         and this notice are preserved.