Don't interfere with a program's definition of __attribute__.
[gnulib.git] / ChangeLog
1 2011-02-13  Bruno Haible  <bruno@clisp.org>
2
3         Don't interfere with a program's definition of __attribute__.
4         * lib/argp.h (__attribute__): Remove definition.
5         (_GL_ATTRIBUTE_FORMAT): New macro.
6         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8         (_GL_ATTRIBUTE_FORMAT): New macro.
9         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11         GCC 3 or newer.
12         * lib/error.h (__attribute__): Remove definition.
13         (_GL_ATTRIBUTE_FORMAT): New macro.
14         (error, error_at_line): Use it.
15         * lib/hash.h (__attribute__): Remove definition.
16         (ATTRIBUTE_WUR): Update definition. Define always.
17         * lib/openat.h (__attribute__): Remove definition.
18         (ATTRIBUTE_NORETURN): Update definition. Define always.
19         * lib/sigpipe-die.h (__attribute__): Remove definition.
20         (ATTRIBUTE_NORETURN): Update definition. Define always.
21         * lib/vasnprintf.h (__attribute__): Remove definition.
22         (_GL_ATTRIBUTE_FORMAT): New macro.
23         (asnprintf, vasnprintf): Use it.
24         * lib/xalloc.h (__attribute__): Remove definition.
25         (ATTRIBUTE_NORETURN): Update definition. Define always.
26         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
27         * lib/xmemdup0.h (__attribute__): Remove definition.
28         (ATTRIBUTE_NORETURN): Update definition. Define always.
29         * lib/xprintf.h (__attribute__): Remove definition.
30         (_GL_ATTRIBUTE_FORMAT): New macro.
31         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
32         * lib/xstrtol.h (__attribute__): Remove definition.
33         (ATTRIBUTE_NORETURN): Update definition. Define always.
34         * lib/xvasprintf.h (__attribute__): Remove definition.
35         (_GL_ATTRIBUTE_FORMAT): New macro.
36         (xasprintf, xvasprintf): Use it.
37         * tests/test-argmatch.c (__attribute__): Remove definition.
38         (ATTRIBUTE_NORETURN): Update definition. Define always.
39         * tests/test-exclude.c (__attribute__): Remove definition.
40         (ATTRIBUTE_NORETURN): Update definition. Define always.
41         Reported by Paul Eggert.
42
43 2011-02-13  Bruno Haible  <bruno@clisp.org>
44
45         mbrtowc: Add more tests for native Windows platforms.
46         * tests/test-mbrtowc-w32-1.sh: New file.
47         * tests/test-mbrtowc-w32-2.sh: New file.
48         * tests/test-mbrtowc-w32-3.sh: New file.
49         * tests/test-mbrtowc-w32-4.sh: New file.
50         * tests/test-mbrtowc-w32-5.sh: New file.
51         * tests/test-mbrtowc-w32.c: New file.
52         * modules/mbrtowc-tests (Files): Add them.
53         (Makefile.am): Arrange to run these tests.
54         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
56
57 2011-02-13  Bruno Haible  <bruno@clisp.org>
58
59         mbrtowc: Work around native Windows bug.
60         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
61         guess when no suitable locale for testing was found.
62         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
63
64 2011-02-13  Bruno Haible  <bruno@clisp.org>
65
66         mbsinit: Work around mingw bug.
67         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
68         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
69         Windows.
70         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
71
72 2011-02-13  Bruno Haible  <bruno@clisp.org>
73
74         mbsinit: Don't crash for a NULL argument.
75         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
76         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
77
78 2011-02-13  Bruno Haible  <bruno@clisp.org>
79
80         Don't interfere with a program's definition of __attribute__.
81         * lib/stdio.in.h (__attribute__): Remove definition.
82         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
83         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
84         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
85         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
86         * lib/string.in.h (__attribute__): Remove definition.
87         Reported by Paul Eggert.
88
89 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90
91         stdlib: don't get in the way of non-GCC __attribute__
92         See thread starting at
93         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
94         Revert previous stdlib change, installing the following instead:
95         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
96         to get in the way of a non-GCC compiler that supports __attribute__.
97         (_GL_ATTRIBUTE_RETURN): New macro.
98         (_Exit): Use it instead of __attribute__.
99
100 2011-02-12  Bruno Haible  <bruno@clisp.org>
101
102         quotearg test: Avoid test failure on mingw.
103         * tests/test-quotearg.sh: Convert the locale identifier from native
104         Windows syntax to Unix syntax.
105
106 2011-02-12  Bruno Haible  <bruno@clisp.org>
107
108         setlocale: Prefer gnulib's override over libintl's override.
109         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
110         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
111         GNULIB_defined_setlocale is set.
112
113 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
114
115         stdlib: support non-GCC __attribute__
116
117         Fix a serious and tricky problem encountered when attempting to
118         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
119         5.5, but it crashed due to memory corruption on Solaris 10 with
120         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
121         bits that are otherwise zero.  This tagging is optional inside
122         Emacs but is preferred and is used when __attribute__ ((__aligned
123         (8))) works, as it does with both recent-enough GCC and with Sun C
124         5.11.  However, Sun C 5.11 is not GCC and does not #define
125         __GNUC__ and __GNUC_MINOR__.
126
127         When I added the getloadavg module to Emacs, it brought in
128         stdlib.in.h, which contained this fragment:
129
130            #ifndef __attribute__
131            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
132            #  define __attribute__(Spec)   /* empty */
133            # endif
134            #endif
135
136         When files that include <stdlib.h> were compiled with Sun C 5.11,
137         the above code disabled __attribute__ ((__aligned (8))), which
138         caused variables to not be properly aligned, which eventually led
139         to the pointer corruption mentioned above.  (This was a bit hard
140         to diagnose, unfortunately.)
141
142         Several "#define __attribute__(X) /* empty */" code snippets need
143         to be eradicated from Gnulib to work with non-GCC compilers that
144         support __attribute__.  The Autoconf way to do this is to test for
145         each kind of attribute that we want support for, and selectively
146         enable that in source code.
147
148         Fix this problem just for stdlib.h, by adding a test for the
149         __noreturn__ attribute, and change stdlib.in.h to use that test
150         when needed.  This technique can be easily generalized to the
151         other *.in.h files and attributes, and a similar technique can be
152         used for *.h and *.c files.  This patch is enough to solve the
153         problem for Emacs + getloadavg, and I thought I'd publish it for
154         feedback before undertaking further, similar fixes in other
155         modules.
156
157         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
158         because it's not needed for stdlib.h.  It merely substitutes the
159         value directly into stdlib.h.  We may well need to #define it, or
160         similar symbols, for other modules, but it's nice to also have an
161         option to not #define it for applications like Emacs that do not
162         need it.
163
164         * lib/stdlib.in.h (__attribute__): Do not #define.
165         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
166         be defined only if the _Exit module is also used.
167         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
169         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
170         platforms.
171         * modules/_Exit (Files): Add m4/attribute.m4.
172         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
173         * m4/attribute.m4: New file.
174
175 2011-02-12  Bruno Haible  <bruno@clisp.org>
176
177         wcsrtombs: Work around bug on native Windows.
178         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
179         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
180         instead of len.
181         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
182
183 2011-02-12  Bruno Haible  <bruno@clisp.org>
184
185         mbsrtowcs: Work around bug on native Windows.
186         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
187         against mingw bug.
188         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
189
190 2011-02-12  Bruno Haible  <bruno@clisp.org>
191
192         Avoid setlocale bugs in tests.
193         * modules/btowc (Dependencies): Add setlocale.
194         * modules/c-strcase (Dependencies): Likewise.
195         * modules/mbmemcasecmp (Dependencies): Likewise.
196         * modules/mbmemcasecoll (Dependencies): Likewise.
197         * modules/mbrtowc (Dependencies): Likewise.
198         * modules/mbscasecmp (Dependencies): Likewise.
199         * modules/mbscasestr (Dependencies): Likewise.
200         * modules/mbschr (Dependencies): Likewise.
201         * modules/mbscspn (Dependencies): Likewise.
202         * modules/mbsinit (Dependencies): Likewise.
203         * modules/mbsncasecmp (Dependencies): Likewise.
204         * modules/mbsnrtowcs (Dependencies): Likewise.
205         * modules/mbspbrk (Dependencies): Likewise.
206         * modules/mbspcasecmp (Dependencies): Likewise.
207         * modules/mbsrchr (Dependencies): Likewise.
208         * modules/mbsrtowcs (Dependencies): Likewise.
209         * modules/mbsspn (Dependencies): Likewise.
210         * modules/mbsstr (Dependencies): Likewise.
211         * modules/nl_langinfo (Dependencies): Likewise.
212         * modules/quotearg (Dependencies): Likewise.
213         * modules/unicase/locale-language (Dependencies): Likewise.
214         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
215         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
216         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
217         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
218         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
219         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
220         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
221         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
222         * modules/vasnprintf-posix (Dependencies): Likewise.
223         * modules/wcrtomb (Dependencies): Likewise.
224         * modules/wcsnrtombs (Dependencies): Likewise.
225         * modules/wcsrtombs (Dependencies): Likewise.
226
227 2011-02-12  Bruno Haible  <bruno@clisp.org>
228
229         setlocale: Workaround native Windows bug.
230         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
231         succeeds but sets LC_CTYPE to "C", report a failure.
232         * tests/test-setlocale2.sh: New file.
233         * tests/test-setlocale2.c: New file.
234         * modules/setlocale-tests (Files): Add the new files.
235         (Makefile.am): Enable test-setlocale2.sh test.
236         * doc/posix-functions/setlocale.texi: Mention workaround.
237
238 2011-02-11  Bruno Haible  <bruno@clisp.org>
239
240         Tests for module 'setlocale'.
241         * modules/setlocale-tests: New file.
242         * tests/test-setlocale1.sh: New file.
243         * tests/test-setlocale1.c: New file.
244
245         New module 'setlocale'.
246         * lib/locale.in.h (setlocale): New declaration.
247         * lib/setlocale.c: New file, based on
248         gettext/gettext-runtime/intl/setlocale.c.
249         * m4/setlocale.m4: New file.
250         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
251         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
252         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
253         REPLACE_SETLOCALE.
254         * modules/setlocale: New file.
255         * tests/test-locale-c++.cc: Test the declaration of setlocale.
256         * doc/posix-functions/setlocale.texi: Mention the new module.
257
258 2011-02-11  Bruno Haible  <bruno@clisp.org>
259
260         Prepare for locale dependent tests on mingw.
261         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
262         because it has the wrong locale encoding.
263         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
264         French_France.1252 instead of "fr".
265         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
266         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
267         because it has the wrong locale encoding.
268         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
269         native Windows, try Turkish_Turkey.65001.
270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
271         Chinese_China.54936.
272
273         Prepare for locale dependent tests on mingw.
274         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
275         differently.
276         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
277         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
280
281 2011-02-11  Eric Blake  <eblake@redhat.com>
282
283         strptime: avoid compiler warnings
284         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
285         compiler warnings about dead code.
286         Reported by Daniel P. Berrange.
287
288 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
289
290         doc: update users.txt
291         * users.txt: Add rcs.
292
293 2011-02-10  John W. Eaton  <jwe@gnu.org>
294
295         doc: update users.txt
296         * users.txt: Add octave.
297
298 2011-02-10  Jim Meyering  <meyering@redhat.com>
299
300         doc: update users.txt
301         * users.txt: Add iwhd.
302
303 2011-02-09  Bruno Haible  <bruno@clisp.org>
304
305         gnulib-tool: Make copyright notice adjustment more robust.
306         * gnulib-tool (func_import): In sed_transform_main_lib_file,
307         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
308         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
309         License".
310         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
311
312 2011-02-06  Bruno Haible  <bruno@clisp.org>
313
314         New module 'towctrans'.
315         * modules/towctrans: New file.
316         * lib/wctype.in.h (towctrans): New declaration.
317         * lib/towctrans.c: New file.
318         * lib/towctrans-impl.h: New file.
319         * m4/towctrans.m4: New file.
320         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
321         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
322         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
323         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
324         * doc/posix-functions/towctrans.texi: Mention the new module.
325
326 2011-02-06  Bruno Haible  <bruno@clisp.org>
327
328         New module 'wctrans'.
329         * modules/wctrans: New file.
330         * lib/wctype.in.h (wctrans): New declaration.
331         * lib/wctrans.c: New file.
332         * lib/wctrans-impl.h: New file.
333         * m4/wctrans.m4: New file.
334         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
335         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
336         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
337         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
338         * doc/posix-functions/wctrans.texi: Mention the new module.
339
340 2011-02-06  Bruno Haible  <bruno@clisp.org>
341
342         New module 'iswctype'.
343         * modules/iswctype: New file.
344         * lib/wctype.in.h (iswctype): New declaration.
345         * lib/iswctype.c: New file.
346         * lib/iswctype-impl.h: New file.
347         * m4/iswctype.m4: New file.
348         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
349         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
350         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
351         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
352         * doc/posix-functions/iswctype.texi: Mention the new module and the
353         HP-UX 11.00 problem.
354
355 2011-02-06  Bruno Haible  <bruno@clisp.org>
356
357         New module 'wctype'.
358         * modules/wctype: Change to represent the wctype() substitute.
359         * lib/wctype.in.h (wctype): New declaration.
360         * lib/wctype.c: New file.
361         * lib/wctype-impl.h: New file.
362         * m4/wctype.m4: New file.
363         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
364         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
365         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
366         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
367         * doc/posix-functions/wctype.texi: Mention the new module and the
368         HP-UX 11.00 problem.
369
370 2011-02-06  Bruno Haible  <bruno@clisp.org>
371
372         wctype-h: Ensure wctype_t and wctrans_t are defined.
373         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
374         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
375         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
376         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
377         HAVE_WCTRANS_T.
378         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
379
380 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
381
382         flock: fix license typo
383
384         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
385         omitted.
386
387 2011-02-08  Bruno Haible  <bruno@clisp.org>
388
389         Split large sed scripts, for HP-UX sed.
390         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
391         to avoid HP-UX limit of 99 commands, in the near future.
392         * modules/stdlib (Makefile.am): Likewise.
393         * modules/unistd (Makefile.am): Likewise.
394         * modules/wchar (Makefile.am): Likewise.
395         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
396         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
398
399 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
400             Bruno Haible  <bruno@clisp.org>
401
402         stdlib: improve random_r modularization
403         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
404         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
405         you also need the random_r module to get this material right.
406         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
407         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
408         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
409
410 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
411
412         stdlib: don't depend on stdint
413         * lib/stdlib.in.h: Don't include <stdint.h> merely because
414         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
415         be independent of whether stdint.h is needed.
416         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
417         here, instead of ...
418         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
419         struct random_data should be using the random_r module, not just
420         the stdlib module (which wouldn't make sense: what package needs
421         just struct random_data without also needing random_r?).
422         * modules/stdlib (Depends-on): Remove stdint.
423
424         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
425         See the thread rooted at
426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
427         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
428         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
429         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
430         __VMS)); previously it was always included (via fcntl--.h).
431         (getloadavg): Do not use c_strtod.  Instead, approximate it by
432         hand; this is good enough for load averages.  Also, do not use
433         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
434         flags directly if available and don't bother otherwise.  (Packages
435         that need the extra reliability should use the modules that define
436         these flags on older platforms that lack them.)
437         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
438         fcntl-safer.
439
440 2011-02-08  Jim Meyering  <meyering@redhat.com>
441
442         di-set.h, ino-map.h: add multiple-inclusion guard
443         Technically, the guard is required only for ino-map.h, due to its
444         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
445         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
446         * lib/ino-map.h: Likewise.
447
448 2011-02-06  Bruno Haible  <bruno@clisp.org>
449
450         iswblank: Ensure declaration on glibc systems.
451         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
452         * modules/iswblank (Dependencies): Add 'extensions'.
453         * doc/posix-functions/iswblank.texi: Document the glibc problem.
454
455 2011-02-06  Bruno Haible  <bruno@clisp.org>
456
457         New module 'iswblank'.
458         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
459         * modules/iswblank: New file.
460         * modules/wctype-h (Files): Remove lib/iswblank.c.
461         (Makefile.am): Substitute GNULIB_ISWBLANK.
462         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
463         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
464         (gl_WCTYPE_H_DEFAULTS): New macro.
465         (gl_WCTYPE_H): Require it. Remove iswblank related code.
466         * modules/iswblank-tests: New file.
467         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
468         * tests/test-wctype-h.c (main): Remove iswblank tests.
469         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
470         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
471         of 'wctype-h'.
472         * NEWS: Mention the change.
473         * modules/mbchar (Depends-on): Add iswblank.
474
475 2011-02-08  Bruno Haible  <bruno@clisp.org>
476
477         di-set tests: Refactor.
478         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
479         unnecessary includes.
480         (ASSERT): Remove macro.
481         (main): Make C90 compliant by avoiding variable declaration after
482         statement.
483         * modules/di-set-tests (Files): Add tests/macros.h.
484
485 2011-02-08  Bruno Haible  <bruno@clisp.org>
486
487         ino-map tests: Refactor.
488         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
489         unnecessary includes.
490         (ASSERT): Remove macro.
491         (main): Make C90 compliant by avoiding variable declaration after
492         statement.
493         * modules/ino-map-tests (Files): Add tests/macros.h.
494
495 2011-02-08  Jim Meyering  <meyering@redhat.com>
496
497         di-set: add "const" to a cast
498         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
499         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
500
501 2011-02-06  Bruno Haible  <bruno@clisp.org>
502
503         Rename module 'wctype' to 'wctype-h'.
504         * modules/wctype-h: Renamed from modules/wctype.
505         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
506         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
507         (Files, Depends-on, Makefile.am): Update.
508         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
509         (Files, Makefile.am): Update.
510         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
511         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
512         * doc/posix-headers/wctype.texi: Update.
513         * doc/posix-functions/iswalnum.texi: Update.
514         * doc/posix-functions/iswalpha.texi: Update.
515         * doc/posix-functions/iswblank.texi: Update.
516         * doc/posix-functions/iswcntrl.texi: Update.
517         * doc/posix-functions/iswdigit.texi: Update.
518         * doc/posix-functions/iswgraph.texi: Update.
519         * doc/posix-functions/iswlower.texi: Update.
520         * doc/posix-functions/iswprint.texi: Update.
521         * doc/posix-functions/iswpunct.texi: Update.
522         * doc/posix-functions/iswspace.texi: Update.
523         * doc/posix-functions/iswupper.texi: Update.
524         * doc/posix-functions/iswxdigit.texi: Update.
525         * doc/posix-functions/towlower.texi: Update.
526         * doc/posix-functions/towupper.texi: Update.
527         * NEWS: Mention the change.
528         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
529         * modules/mbchar (Dependencies): Likewise.
530         * modules/mbswidth (Dependencies): Likewise.
531         * modules/quotearg (Dependencies): Likewise.
532         * modules/regex (Dependencies): Likewise.
533         * modules/wcscasecmp (Dependencies): Likewise.
534         * modules/wcsncasecmp (Dependencies): Likewise.
535         * modules/wcwidth (Dependencies): Likewise.
536
537 2011-02-06  Bruno Haible  <bruno@clisp.org>
538
539         New module 'wcswidth'.
540         * modules/wcswidth: New file.
541         * lib/wchar.in.h (wcswidth): New declaration.
542         * lib/wcswidth.c: New file.
543         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
544         * m4/wcswidth.m4: New file.
545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
547         REPLACE_WCSWIDTH.
548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
549         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
550         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
551         * doc/posix-functions/wcswidth.texi: Mention the new module.
552
553 2011-02-06  Bruno Haible  <bruno@clisp.org>
554
555         New module 'wcstok'.
556         * modules/wcstok: New file.
557         * lib/wchar.in.h (wcstok): New declaration.
558         * lib/wcstok.c: New file.
559         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
560         * m4/wcstok.m4: New file.
561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
564         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
565         * doc/posix-functions/wcstok.texi: Mention the new module.
566
567 2011-02-06  Bruno Haible  <bruno@clisp.org>
568
569         New module 'wcsstr'.
570         * modules/wcsstr: New file.
571         * lib/wchar.in.h (wcsstr): New declaration.
572         * lib/wcsstr.c: New file.
573         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
574         * m4/wcsstr.m4: New file.
575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
578         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
579         * doc/posix-functions/wcsstr.texi: Mention the new module.
580
581 2011-02-06  Bruno Haible  <bruno@clisp.org>
582
583         New module 'wcspbrk'.
584         * modules/wcspbrk: New file.
585         * lib/wchar.in.h (wcspbrk): New declaration.
586         * lib/wcspbrk.c: New file.
587         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
588         * m4/wcspbrk.m4: New file.
589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
592         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
593         * doc/posix-functions/wcspbrk.texi: Mention the new module.
594
595 2011-02-06  Bruno Haible  <bruno@clisp.org>
596
597         New module 'wcsspn'.
598         * modules/wcsspn: New file.
599         * lib/wchar.in.h (wcsspn): New declaration.
600         * lib/wcsspn.c: New file.
601         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
602         * m4/wcsspn.m4: New file.
603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
606         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
607         * doc/posix-functions/wcsspn.texi: Mention the new module.
608
609 2011-02-06  Bruno Haible  <bruno@clisp.org>
610
611         New module 'wcscspn'.
612         * modules/wcscspn: New file.
613         * lib/wchar.in.h (wcscspn): New declaration.
614         * lib/wcscspn.c: New file.
615         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
616         * m4/wcscspn.m4: New file.
617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
620         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
621         * doc/posix-functions/wcscspn.texi: Mention the new module.
622
623 2011-02-06  Bruno Haible  <bruno@clisp.org>
624
625         New module 'wcsrchr'.
626         * modules/wcsrchr: New file.
627         * lib/wchar.in.h (wcsrchr): New declaration.
628         * lib/wcsrchr.c: New file.
629         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
630         * m4/wcsrchr.m4: New file.
631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
634         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
635         * doc/posix-functions/wcsrchr.texi: Mention the new module.
636
637 2011-02-06  Bruno Haible  <bruno@clisp.org>
638
639         New module 'wcschr'.
640         * modules/wcschr: New file.
641         * lib/wchar.in.h (wcschr): New declaration.
642         * lib/wcschr.c: New file.
643         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
644         * m4/wcschr.m4: New file.
645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
648         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
649         * doc/posix-functions/wcschr.texi: Mention the new module.
650
651 2011-02-06  Bruno Haible  <bruno@clisp.org>
652
653         New module 'wcsdup'.
654         * modules/wcsdup: New file.
655         * lib/wchar.in.h (wcsdup): New declaration.
656         * lib/wcsdup.c: New file.
657         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
658         * m4/wcsdup.m4: New file.
659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
662         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
663         * doc/posix-functions/wcsdup.texi: Mention the new module.
664
665 2011-02-06  Bruno Haible  <bruno@clisp.org>
666
667         New module 'wcsxfrm'.
668         * modules/wcsxfrm: New file.
669         * lib/wchar.in.h (wcsxfrm): New declaration.
670         * lib/wcsxfrm.c: New file.
671         * lib/wcsxfrm-impl.h: New file.
672         * m4/wcsxfrm.m4: New file.
673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
676         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
677         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
678
679 2011-02-06  Bruno Haible  <bruno@clisp.org>
680
681         New module 'wcscoll'.
682         * modules/wcscoll: New file.
683         * lib/wchar.in.h (wcscoll): New declaration.
684         * lib/wcscoll.c: New file.
685         * lib/wcscoll-impl.h: New file.
686         * m4/wcscoll.m4: New file.
687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
690         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
691         * doc/posix-functions/wcscoll.texi: Mention the new module.
692
693 2011-02-06  Bruno Haible  <bruno@clisp.org>
694
695         New module 'wcsncasecmp'.
696         * modules/wcsncasecmp: New file.
697         * lib/wchar.in.h (wcsncasecmp): New declaration.
698         * lib/wcsncasecmp.c: New file.
699         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
700         * m4/wcsncasecmp.m4: New file.
701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
704         HAVE_WCSNCASECMP.
705         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
706         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
707
708 2011-02-06  Bruno Haible  <bruno@clisp.org>
709
710         New module 'wcscasecmp'.
711         * modules/wcscasecmp: New file.
712         * lib/wchar.in.h (wcscasecmp): New declaration.
713         * lib/wcscasecmp.c: New file.
714         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
715         * m4/wcscasecmp.m4: New file.
716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
719         HAVE_WCSCASECMP.
720         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
721         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
722
723 2011-02-05  Bruno Haible  <bruno@clisp.org>
724
725         New module 'wcsncmp'.
726         * modules/wcsncmp: New file.
727         * lib/wchar.in.h (wcsncmp): New declaration.
728         * lib/wcsncmp.c: New file.
729         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
730         * m4/wcsncmp.m4: New file.
731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
734         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
735         * doc/posix-functions/wcsncmp.texi: Mention the new module.
736
737 2011-02-05  Bruno Haible  <bruno@clisp.org>
738
739         New module 'wcscmp'.
740         * modules/wcscmp: New file.
741         * lib/wchar.in.h (wcscmp): New declaration.
742         * lib/wcscmp.c: New file.
743         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
744         * m4/wcscmp.m4: New file.
745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
748         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
749         * doc/posix-functions/wcscmp.texi: Mention the new module.
750
751 2011-02-05  Bruno Haible  <bruno@clisp.org>
752
753         New module 'wcsncat'.
754         * modules/wcsncat: New file.
755         * lib/wchar.in.h (wcsncat): New declaration.
756         * lib/wcsncat.c: New file.
757         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
758         * m4/wcsncat.m4: New file.
759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
762         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
763         * doc/posix-functions/wcsncat.texi: Mention the new module.
764
765 2011-02-05  Bruno Haible  <bruno@clisp.org>
766
767         New module 'wcscat'.
768         * modules/wcscat: New file.
769         * lib/wchar.in.h (wcscat): New declaration.
770         * lib/wcscat.c: New file.
771         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
772         * m4/wcscat.m4: New file.
773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
776         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
777         * doc/posix-functions/wcscat.texi: Mention the new module.
778
779 2011-02-05  Bruno Haible  <bruno@clisp.org>
780
781         New module 'wcpncpy'.
782         * modules/wcpncpy: New file.
783         * lib/wchar.in.h (wcpncpy): New declaration.
784         * lib/wcpncpy.c: New file.
785         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
786         * m4/wcpncpy.m4: New file.
787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
789         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
790         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
791         * doc/posix-functions/wcpncpy.texi: Mention the new module.
792
793 2011-02-05  Bruno Haible  <bruno@clisp.org>
794
795         New module 'wcsncpy'.
796         * modules/wcsncpy: New file.
797         * lib/wchar.in.h (wcsncpy): New declaration.
798         * lib/wcsncpy.c: New file.
799         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
800         * m4/wcsncpy.m4: New file.
801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
804         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
805         * doc/posix-functions/wcsncpy.texi: Mention the new module.
806
807 2011-02-05  Bruno Haible  <bruno@clisp.org>
808
809         New module 'wcpcpy'.
810         * modules/wcpcpy: New file.
811         * lib/wchar.in.h (wcpcpy): New declaration.
812         * lib/wcpcpy.c: New file.
813         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
814         * m4/wcpcpy.m4: New file.
815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
817         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
818         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
819         * doc/posix-functions/wcpcpy.texi: Mention the new module.
820
821 2011-02-05  Bruno Haible  <bruno@clisp.org>
822
823         New module 'wcscpy'.
824         * modules/wcscpy: New file.
825         * lib/wchar.in.h (wcscpy): New declaration.
826         * lib/wcscpy.c: New file.
827         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
828         * m4/wcscpy.m4: New file.
829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
832         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
833         * doc/posix-functions/wcscpy.texi: Mention the new module.
834
835 2011-02-05  Bruno Haible  <bruno@clisp.org>
836
837         New module 'wcsnlen'.
838         * modules/wcsnlen: New file.
839         * lib/wchar.in.h (wcsnlen): New declaration.
840         * lib/wcsnlen.c: New file.
841         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
842         * m4/wcsnlen.m4: New file.
843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
846         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
847         * doc/posix-functions/wcsnlen.texi: Mention the new module.
848
849 2011-02-05  Bruno Haible  <bruno@clisp.org>
850
851         New module 'wcslen'.
852         * modules/wcslen: New file.
853         * lib/wchar.in.h (wcslen): New declaration.
854         * lib/wcslen.c: New file.
855         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
856         * m4/wcslen.m4: New file.
857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
860         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
861         * doc/posix-functions/wcslen.texi: Mention the new module.
862
863 2011-02-05  Bruno Haible  <bruno@clisp.org>
864
865         New module 'wmemset'.
866         * modules/wmemset: New file.
867         * lib/wchar.in.h (wmemset): New declaration.
868         * lib/wmemset.c: New file.
869         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
870         * m4/wmemset.m4: New file.
871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
873         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
874         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
875         * doc/posix-functions/wmemset.texi: Mention the new module.
876
877 2011-02-05  Bruno Haible  <bruno@clisp.org>
878
879         New module 'wmemmove'.
880         * modules/wmemmove: New file.
881         * lib/wchar.in.h (wmemmove): New declaration.
882         * lib/wmemmove.c: New file.
883         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
884         * m4/wmemmove.m4: New file.
885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
887         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
888         HAVE_WMEMMOVE.
889         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
890         * doc/posix-functions/wmemmove.texi: Mention the new module.
891
892 2011-02-05  Bruno Haible  <bruno@clisp.org>
893
894         New module 'wmemcpy'.
895         * modules/wmemcpy: New file.
896         * lib/wchar.in.h (wmemcpy): New declaration.
897         * lib/wmemcpy.c: New file.
898         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
899         * m4/wmemcpy.m4: New file.
900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
902         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
903         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
904         * doc/posix-functions/wmemcpy.texi: Mention the new module.
905
906 2011-02-05  Bruno Haible  <bruno@clisp.org>
907
908         New module 'wmemcmp'.
909         * modules/wmemcmp: New file.
910         * lib/wchar.in.h (wmemcmp): New declaration.
911         * lib/wmemcmp.c: New file.
912         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
913         * m4/wmemcmp.m4: New file.
914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
916         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
917         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
918         * doc/posix-functions/wmemcmp.texi: Mention the new module.
919
920 2011-02-07  Jim Meyering  <meyering@redhat.com>
921
922         di-set, ino-map: new modules, from coreutils
923         * lib/di-set.c: New file.
924         * lib/di-set.h: Likewise.
925         * lib/ino-map.c: Likewise.
926         * lib/ino-map.h: Likewise.
927         * modules/di-set: Likewise.
928         * modules/di-set-tests: Likewise.
929         * modules/ino-map: Likewise.
930         * modules/ino-map-tests: Likewise.
931         * tests/test-di-set.c: Likewise.
932         * tests/test-ino-map.c: Likewise.
933
934 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
935
936         getloadavg: merge minor changes from Emacs
937
938         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
939         (getloadavg): Use memset, not bzero.
940
941         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
942         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
943         clash (bug#86).
944
945 2010-11-14  Bruno Haible  <bruno@clisp.org>
946
947         Allow multiple gnulib generated replacements to coexist.
948         * lib/getopt.in.h (struct option): Avoid identical redefinition.
949         * lib/inttypes.in.h (imaxdiv_t): Likewise.
950         * lib/langinfo.in.h (nl_item): Likewise.
951         * lib/math.in.h (_NaN, NAN): Likewise.
952         * lib/netdb.in.h (struct addrinfo): Likewise.
953         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
954         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
955         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
956         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
957         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
958         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
959         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
960         pthread_mutexattr_init, pthread_mutexattr_settype,
961         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
962         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
963         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
964         pthread_spin_trylock, pthread_spin_unlock): Likewise.
965         * lib/sched.in.h (struct sched_param): Likewise.
966         * lib/se-selinux.in.h (security_class_t, security_context_t,
967         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
968         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
969         lsetfilecon, fsetfilecon, security_check_context,
970         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
971         Likewise.
972         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
973         Likewise.
974         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
975         _gl_function_taking_int_returning_void_t, union sigval,
976         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
977         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
978         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
979         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
980         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
981         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
982         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
983         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
984         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
985         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
986         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
987         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
988         socklen_t, rpl_fd_isset): Likewise.
989         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
990         * lib/sys_time.in.h (struct timeval): Likewise.
991         * lib/sys_times.in.h (struct tms): Likewise.
992         * lib/sys_utsname.in.h (struct utsname):
993         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
994         * lib/unistd.in.h (getpagesize): Likewise.
995         * lib/wchar.in.h (mbstate_t): Likewise.
996         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
997         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
998         towlower, towupper): Likewise.
999         Reported by Sam Steingold <sds@gnu.org>.
1000
1001 2011-02-05  Eric Blake  <eblake@redhat.com>
1002
1003         unsetenv: work around Haiku issues
1004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
1005         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
1006
1007 2010-12-30  Bruce Korb  <bkorb@gnu.org>
1008
1009         libposix: avoid calling error() within libposix
1010         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
1011         is defined.
1012
1013 2011-02-05  Eric Blake  <eblake@redhat.com>
1014
1015         strerror_r-posix: port to cygwin
1016         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
1017         implementation.
1018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
1019         * tests/test-strerror_r.c (main): Fix test.
1020         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1021         issue.
1022
1023 2011-02-05  Bruno Haible  <bruno@clisp.org>
1024
1025         New module 'wmemchr'.
1026         * modules/wmemchr: New file.
1027         * lib/wchar.in.h (wmemchr): New declaration.
1028         * lib/wmemchr.c: New file.
1029         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
1030         * m4/wmemchr.m4: New file.
1031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
1032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
1033         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
1034         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
1035         * doc/posix-functions/wmemchr.texi: Mention the new module.
1036
1037 2011-02-04  Eric Blake  <eblake@redhat.com>
1038
1039         fdopendir: detect FreeBSD bug
1040         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
1041         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
1042
1043 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         stdbool: do not define HAVE_STDBOOL_H
1046         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
1047         AC_HEADER_STDBOOL.  All uses changed.  Do not define
1048         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
1049         imported from the latest Autoconf git.  It was motivated by Emacs,
1050         which uses gnulib but does not need HAVE_STDBOOL_H.
1051
1052 2011-02-04  Bruno Haible  <bruno@clisp.org>
1053
1054         wcsnrtombs: Prepare for new module wwcsnrtombs.
1055         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
1056         * lib/wcsnrtombs.c: Include it.
1057         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
1058
1059         wcsrtombs: Prepare for new module wwcsrtombs.
1060         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
1061         * lib/wcsrtombs.c: Include it.
1062         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
1063
1064         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
1065         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
1066         * lib/mbsnrtowcs.c: Include it.
1067         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
1068
1069         mbsrtowcs: Prepare for new module mbsrtowwcs.
1070         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
1071         * lib/mbsrtowcs.c: Include it.
1072         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
1073
1074 2011-02-04  Bruno Haible  <bruno@clisp.org>
1075
1076         vasnprintf: Reduce use of malloc for small format strings.
1077         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
1078         (arguments): Add room for the first 7 arguments.
1079         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
1080         (char_directives, u8_directives, u16_directives, u32_directives): Add
1081         room for the first 7 directives.
1082         * lib/printf-parse.c: Include <string.h>.
1083         (PRINTF_PARSE): Change memory handling code so that it uses the first
1084         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
1085         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
1086         Reported by Pádraig Brady <P@draigbrady.com>.
1087
1088 2011-01-31  Eric Blake  <eblake@redhat.com>
1089
1090         dup2: work around Haiku bug
1091         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
1092         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
1093         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1094         * tests/test-dup2.c (main): Enhance test.
1095
1096 2011-01-31  Simon Josefsson  <simon@josefsson.org>
1097
1098         doc: off_t is not available in eglibc 2.11.2 stdio.h.
1099         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
1100         declared by eglibc 2.11.2.
1101         * lib/stdio.in.h: Likewise.
1102
1103 2011-01-31  Eric Blake  <eblake@redhat.com>
1104
1105         ignore-value: add missing test dependency
1106         * tests/test-ignore-value.c: Revert previous change; stdio.h
1107         provides off_t.
1108         * modules/ignore-value-tests (Depends-on): Add missing dependency.
1109
1110 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1111
1112         mktime: clarify long_int width checking
1113         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
1114         the top level, to make it clearer that the assumption about
1115         long_int width is being checked.  See
1116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
1117
1118 2011-01-30  Simon Josefsson  <simon@josefsson.org>
1119
1120         ignore-value: Fix self-test.
1121         * tests/test-ignore-value.c: Include sys/types.h for off_t.
1122
1123 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1124
1125         TYPE_MAXIMUM: avoid theoretically undefined behavior
1126         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
1127         negative number, which the C Standard says has undefined behavior.
1128         In practice this is not a problem, but might as well do it by the book.
1129         Reported by Rich Felker and Eric Blake; see
1130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
1131         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
1132         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1134         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
1135         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1136         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
1137
1138         mktime: #undef mktime before #defining it
1139         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
1140
1141         mktime: systematically normalize tm_isdst comparisons
1142         * lib/mktime.c (isdst_differ): New function.
1143         (__mktime_internal): Use it systematically for all isdst comparisons.
1144         This completes the fix for libc BZ #6723, and removes the need for
1145         normalizing tm_isdst.  See
1146         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
1147         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
1148
1149         mktime: fix some integer overflow issues and sidestep the rest
1150
1151         This was prompted by a bug report by Benjamin Lindner for MinGW
1152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
1153         His bug is due to signed integer overflow (0 - INT_MIN), and I
1154         I scanned through mktime.c looking for other integer overflow
1155         problems, fixing all the bugs I found.
1156
1157         Although the C Standard says the resulting code is still not safe
1158         in the presence of integer overflow, in practice it should be good
1159         enough for all real-world two's-complement implementations, except
1160         for debugging environments that deliberately trap on integer
1161         overflow (e.g., gcc -ftrapv).
1162
1163         * lib/mktime.c (WRAPV): New macro.
1164         (SHR): Also check that long_int and time_t shift right in the
1165         usual way, before using the fast-but-unportable method.
1166         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
1167         used.  The code already assumed two's complement, so there's
1168         no need to test for alternatives.  All uses removed.
1169         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
1170         the C standard.  Problem reported by Rich Felker in
1171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
1172         (twos_complement_arithmetic): Also check long_int and time_t.
1173         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
1174         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
1175         (__mktime_internal): Avoid integer overflow with unary subtraction
1176         in two instances where -1 - X is an adequate replacement for -X,
1177         since the calculations are approximate.
1178
1179 2011-01-29  Eric Blake  <eblake@redhat.com>
1180
1181         mktime: avoid infinite loop
1182         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
1183         type; behavior is still undefined but portable to all known targets.
1184         Reported by Rich Felker.
1185
1186 2011-01-29  Simon Josefsson  <simon@josefsson.org>
1187
1188         rename, unlink, same-inode: Relicense.
1189         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
1190         * modules/unlink (License): Likewise.
1191         * modules/same-inode (License): Likewise.
1192
1193 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1194
1195         mktime: avoid problems on NetBSD 5 / i386
1196         * lib/mktime.c (long_int): New type.  This works around a problem
1197         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
1198         but time_t is 64 bits, and where I expect the existing code is
1199         wrong in some cases.
1200         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
1201         (ydhms_diff): Bring back the compile-time check for wide-enough
1202         year and yday.
1203
1204         mktime: fix misspelling in comment
1205         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
1206         This merges all recent glibc changes of importance.
1207
1208 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1209
1210         move-if-change: cope with concurrent mv of identical file.
1211         * build-aux/move-if-change (CMPPROG): Accept environment
1212         variable as an override for `cmp'.
1213         (usage): Document CMPPROG.
1214         Adjust comparison to drop stdout.  Cope with failure of mv if
1215         the target file exists and is identical to the source, for
1216         parallel builds.
1217         Report from H.J. Lu against binutils in PR binutils/12283.
1218
1219 2011-01-28  Bruce Korb  <bkorb@gnu.org>
1220
1221         * users.txt: Mention sharutils.
1222
1223 2011-01-28  Simon Josefsson  <simon@josefsson.org>
1224
1225         * users.txt: Mention OATH Toolkit.
1226
1227 2011-01-27  Bruno Haible  <bruno@clisp.org>
1228
1229         Prepare for supporting FreeBSD 10.
1230         * build-aux/config.libpath: Remove handling of freebsd1*.
1231
1232 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
1233
1234         Prepare for supporting FreeBSD 10.
1235         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
1236         match FreeBSD 10.0.
1237
1238 2011-01-27  Bruno Haible  <bruno@clisp.org>
1239
1240         vma-iter, get-rusage-as: Add OpenBSD support.
1241         * modules/vma-iter (configure.ac): Test for mquery.
1242         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
1243         * lib/vma-iter.c: Include <sys/mman.h>.
1244         (vma_iterate): Add an implementation based on mquery().
1245         * lib/resource-ext.h (get_rusage_as): Update comments.
1246         * lib/get-rusage-as.c: Likewise.
1247         * lib/get-rusage-data.c: Likewise.
1248
1249 2011-01-26  Karl Berry  <karl@gnu.org>
1250
1251         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
1252         variables to make it easier to override the makeinfo program used.
1253
1254 2011-01-26  Eric Blake  <eblake@redhat.com>
1255
1256         fcntl: work around Haiku F_DUPFD bugs
1257         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
1258         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
1259         cloexec bit on duplication.
1260         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
1261
1262 2011-01-26  Bruno Haible  <bruno@clisp.org>
1263
1264         Enable memory leak tests on AIX.
1265         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
1266         * tests/test-fprintf-posix3.c (main): Likewise.
1267
1268 2011-01-26  Bruno Haible  <bruno@clisp.org>
1269
1270         Tests for module 'get-rusage-data'.
1271         * modules/get-rusage-data-tests: New file.
1272         * tests/test-get-rusage-data.c: New file.
1273
1274         New module 'get-rusage-data'.
1275         * lib/resource-ext.h (get_rusage_data): New declaration.
1276         * lib/get-rusage-data.c: New file.
1277         * modules/get-rusage-data: New file.
1278
1279 2011-01-25  Bruno Haible  <bruno@clisp.org>
1280
1281         get-rusage-as: Allow for easier testing.
1282         * lib/resource-ext.h (get_rusage_as): Add comment.
1283         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
1284         (main): New function for interactive testing.
1285
1286 2011-01-25  Bruno Haible  <bruno@clisp.org>
1287
1288         vma-iter: Treat Haiku like BeOS.
1289         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
1290         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
1291
1292 2011-01-25  Eric Blake  <eblake@redhat.com>
1293
1294         c-stack: fix regression on cygwin when libsigsegv is present
1295         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
1296
1297 2011-01-24  Bruno Haible  <bruno@clisp.org>
1298
1299         vma-iter: Avoid empty intervals.
1300         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
1301         on an empty interval.
1302
1303 2011-01-24  Jim Meyering  <meyering@redhat.com>
1304
1305         u64: remove unnecessary #include
1306         * lib/u64.h: Don't include <stddef.h>.  It was not used.
1307
1308 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1309
1310         Allow the user to avoid the GNULIB_TEST_* macros.
1311         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
1312
1313 2011-01-23  Bruno Haible  <bruno@clisp.org>
1314
1315         New module 'vma-iter'.
1316         * lib/vma-iter.h: New file.
1317         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
1318         * modules/vma-iter: New file.
1319         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
1320         for get_rusage_as_via_iterator.
1321         (vma_iterate_callback): New function.
1322         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
1323         * modules/get-rusage-as (Depends-on): Add vma-iter.
1324
1325 2011-01-23  Bruno Haible  <bruno@clisp.org>
1326
1327         uninorm: Tweak includes.
1328         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
1329         Reported by Jim Meyering.
1330
1331 2011-01-23  Bruno Haible  <bruno@clisp.org>
1332
1333         get-rusage-as: Improve on NetBSD.
1334         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
1335         /proc, like on FreeBSD.
1336
1337 2011-01-23  Jim Meyering  <meyering@redhat.com>
1338
1339         xreadlink.h: remove unnecessary #include
1340         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
1341
1342         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
1343         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
1344
1345 2011-01-23  Bruno Haible  <bruno@clisp.org>
1346
1347         get-rusage-as: Fix bug.
1348         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
1349         original limit when aborting the first loop.
1350
1351 2011-01-23  Bruno Haible  <bruno@clisp.org>
1352
1353         wctype: Ensure valid C syntax.
1354         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
1355         unconditionally, instead of gl_NEXT_HEADERS conditionally.
1356
1357 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
1360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
1361         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
1362         as they are needed only for configure's test case.
1363         This removes two unnecessary symbols from config.h.
1364
1365         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
1366         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
1367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
1368         AC_CHECK_HEADERS_ONCE on a header that we also invoke
1369         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
1370         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
1371         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
1372         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1373         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1374         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1375         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1379         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1380         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1381         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1382         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1383
1384 2011-01-21  Eric Blake  <eblake@redhat.com>
1385
1386         maintainer-makefile: work with older git for submodule check
1387         * top/maint.mk (public-submodule-commit): Rewrite to avoid
1388         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
1389         Reported by Matthias Bolte.
1390
1391         bootstrap: minor portability fixes
1392         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
1393         (usage): Omit leading capital and trailing . on help phrases, per
1394         GNU Coding Standards.
1395         (check_versions, top level): Prefix messages with script name.
1396
1397 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
1398
1399         bootstrap: support --no-git option
1400         * build-aux/bootstrap: Add --no-git option, to be used when
1401         --gnulib-srcdir points to the exact desired checkout.
1402
1403 2011-01-21  Eric Blake  <eblake@redhat.com>
1404
1405         strerror_r-posix: work with glibc 2.13
1406         * lib/strerror_r.c (strerror_r): Fix return type.
1407
1408 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1409             Bruno Haible  <bruno@clisp.org>
1410
1411         uN_strstr: New unit tests.
1412         * modules/unistr/u8-strstr-tests: New file.
1413         * modules/unistr/u16-strstr-tests: New file.
1414         * modules/unistr/u32-strstr-tests: New file.
1415         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
1416         * tests/unistr/test-u8-strstr.c: New file.
1417         * tests/unistr/test-u16-strstr.c: New file.
1418         * tests/unistr/test-u32-strstr.c: New file.
1419
1420 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1421             Bruno Haible  <bruno@clisp.org>
1422
1423         Make uN_strstr functions O(n) worst-case.
1424         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
1425         16-bit and 32-bit unit cases, use the unibyte algorithm from
1426         lib/mbsstr.c.
1427         * lib/unistr/u8-strstr.c: Include <string.h>.
1428         (UNIT_IS_UINT8_T): New macro.
1429         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
1430         (U_STRLEN, U_STRNLEN): New macros.
1431         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
1432         (U_STRLEN, U_STRNLEN): New macros.
1433         * modules/unistr/u8-strstr (Depends-on): Add strstr.
1434         (configure.ac): Update required libunistring version.
1435         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
1436         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
1437         malloca.
1438         (configure.ac): Update required libunistring version.
1439         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
1440         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
1441         malloca.
1442         (configure.ac): Update required libunistring version.
1443
1444 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1445             Bruno Haible  <bruno@clisp.org>
1446
1447         Prepare for faster uN_strstr functions.
1448         * lib/str-kmp.h: Support definable UNITs.
1449         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
1450         needle_len argument.
1451         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
1452         * lib/mbscasestr.c (mbscasestr): Likewise.
1453
1454 2011-01-21  Pádraig Brady <P@draigBrady.com>
1455
1456         malloca-tests: make faster by unsetting MALLOC_PERTURB_
1457         * tests/test-malloca.c (main): Unset the environment variable
1458         to greatly speed up the test.
1459         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
1460         * modules/malloca-tests: Depend on unsetenv.
1461
1462 2011-01-21  Pádraig Brady <P@draigBrady.com>
1463
1464         ignore-value: remove stdint dependency
1465         * lib/ignore-value.h: Remove <stdint.h>
1466         * modules/ignore-value: Remove stdint dependency.
1467
1468 2011-01-21  Jim Meyering  <meyering@redhat.com>
1469
1470         maint.mk: adjust variable name to be consistent with other gl_ vars
1471         * top/maint.mk (gl_public_submodule_commit): Rename the variable
1472         to be lower case.
1473
1474 2011-01-20  Jim Meyering  <meyering@redhat.com>
1475
1476         maint.mk: make "check" depend on public-submodule-commit by default
1477         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
1478
1479 2011-01-20  Bruno Haible  <bruno@clisp.org>
1480
1481         mbfile, mbiter: Complete change from 2008-12-21.
1482         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
1483         * m4/mbiter.m4 (gl_MBITER): Likewise.
1484
1485 2011-01-20  Jim Meyering  <meyering@redhat.com>
1486
1487         init.sh: insert space between each function name and "()"
1488         * tests/init.sh: Make it a little easier to see that a function's
1489         name is "warn_", and not "warn" when looking at the first part of
1490         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
1491
1492 2011-01-20  Jim Meyering  <meyering@redhat.com>
1493
1494         mountlist: clean up code formatting
1495         * lib/mountlist.c (read_file_system_list): Split a long line,
1496         correct bracing style, use NULL in place of "(struct statfs *)0",
1497         don't parenthesize return value, add spaces around "=" and after
1498         ";-in-for-stmt".
1499
1500 2011-01-14  Markus Duft <mduft@gentoo.org>
1501
1502         mountlist: add support for Interix
1503         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
1504         Apply statvfs to all entries of /dev/fs.
1505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
1506         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
1507
1508 2011-01-20  Jim Meyering  <meyering@redhat.com>
1509
1510         maint.mk: improve the public-submodule-commit rule
1511         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
1512         to suppress printing of its commands... unless V=1.
1513         Add git submodule's --quiet option to suppress printing of e.g.,
1514         "Entering gnulib" output.
1515         "cd" into $(srcdir) before running git submodule.
1516
1517 2011-01-20  Bruno Haible  <bruno@clisp.org>
1518
1519         include_next: Fix bug introduced on 2011-01-18.
1520         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
1521         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
1522         ac_cv_header_... variable if the second argument is not 'check'.
1523         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
1524         gl_NEXT_HEADERS_INTERNAL.
1525
1526 2011-01-20  Bruno Haible  <bruno@clisp.org>
1527
1528         Allow the user to avoid the GNULIB_TEST_* macros.
1529         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
1530         Suggested by Paul Eggert.
1531
1532 2011-01-14  Jim Meyering  <meyering@redhat.com>
1533
1534         bootstrap: avoid failure when there is no .gitmodules file
1535         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
1536         has been assigned to, even when its value is the empty string.
1537         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
1538         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
1539         Reported by John W. Eaton <jwe@gnu.org>.
1540
1541 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         assume <ctype.h>, ..., <time.h> exist
1544         For years gnulib has been assuming the existence of the headers
1545         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
1546         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
1547         them, since they don't appear to be needed.
1548         * README (Portability guidelines): Document this.
1549         * lib/flock.c: Assume <fcntl.h> exists.
1550         * lib/regex_internal.h: Assume <locale.h> exists.
1551         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
1552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
1553         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
1554         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
1555         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
1556         * m4/regex.m4 (gl_REGEX): Likewise.
1557         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
1558         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
1559         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
1560         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
1561         * tests/test-argp.c: Likewise.
1562         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
1563
1564         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
1565         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
1566         AA_APPLE_UNIVERSAL_BUILD.  See
1567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
1568         * NEWS: Document this.
1569
1570 2011-01-19  Eric Blake  <eblake@redhat.com>
1571
1572         c-stack: assume stack overflow if SA_SIGINFO unsupported
1573         * lib/c-stack.c (SIGACTION_WORKS): Rename...
1574         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
1575         sigaction will work.
1576         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
1577         behavior match Linux.
1578         * tests/test-c-stack.c (main): Prefer NULL for pointers.
1579
1580         stdbool-tests: accomodate Haiku
1581         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
1582
1583         binary-io: fix O_TEXT on Haiku
1584         * modules/binary-io (Depends-on): Add fcntl-h.
1585         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
1586         than blindly undefining O_TEXT.
1587         Reported by Scott McCreary.
1588
1589 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1590
1591         include_next: do not check for standard headers like stddef.h
1592
1593         I found this problem when modifying Emacs to use gnulib.
1594         I noticed that it added HAVE_STDDEF_H to config.h, even though
1595         gnulib always assumes <stddef.h> exists as per README and this
1596         symbol is unnecessary.
1597         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
1598         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
1599         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
1600         faster for headers like stddef.h that are known to exist.
1601         (gl_CHECK_NEXT_HEADERS): Use it.
1602         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
1603         rather than gl_CHECK_NEXT_HEADERS.
1604         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
1605         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
1606
1607 2011-01-18  Eric Blake  <eblake@redhat.com>
1608
1609         ansi-c++-opt: skip C++ dependency style if C++ is unused
1610         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
1611         tests when we know C++ compilation is not desired.
1612         Reported by Scott McCreary.
1613
1614 2011-01-18  Bruno Haible  <bruno@clisp.org>
1615
1616         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
1617         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
1618         (main): Perform test also when getrlimit and setrlimit don't exist or
1619         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
1620         limiting the address space size using setrlimit, compare the address
1621         space size before and after the the test.
1622         * tests/test-dprintf-posix2.c: Likewise.
1623         * tests/test-fprintf-posix3.sh: Update skip messages.
1624         * tests/test-dprintf-posix2.sh: Likewise.
1625         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
1626         * modules/dprintf-posix-tests (Depends-on): Likewise.
1627         Reported by Bruce Korb <bkorb@gnu.org> and
1628         Gary V. Vaughan <gary@gnu.org>.
1629
1630 2011-01-18  Bruno Haible  <bruno@clisp.org>
1631
1632         get-rusage-as: Improvement for Cygwin.
1633         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
1634         areas that are merely reserved.
1635
1636 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1637
1638         strftime: remove dependencies on multibyte modules
1639
1640         strftime depended on mbrlen, mbsinit, and wchar, but these modules
1641         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
1642         only if __osf__ is defined, and I suspect OSF doesn't need these
1643         other modules.  If my guess is wrong, we'll need to come up with a
1644         variant of strftime that doesn't need the multibyte modules.
1645
1646         I discovered this problem when attempting modify Emacs to use the
1647         strftime module.  With the previous gnulib, this caused Emacs to
1648         need 31 new files, ranging from lib/config.charset to
1649         m4/wint_t.m4.  This was overkill and I expect would be offputting
1650         to the Emacs maintainers.  After this change, only 6 new files are
1651         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
1652         stdbool.m4, and tm_gmtoff.m4.
1653
1654         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
1655         Suggested by Bruno Haible in
1656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
1657         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
1658         and do not check for wchar.h.
1659         * modules/strftime (Files): Remove m4/mbstate_t.m4.
1660         (Depends-on): Remove mbrlen, mbsinit, wchar.
1661
1662 2011-01-18  Bruno Haible  <bruno@clisp.org>
1663
1664         Tests for module 'get-rusage-as'.
1665         * modules/get-rusage-as-tests: New file.
1666         * tests/test-get-rusage-as.c: New file.
1667
1668         New module 'get-rusage-as'.
1669         * modules/get-rusage-as: New file.
1670         * lib/resource-ext.h: New file.
1671         * lib/get-rusage-as.c: New file.
1672
1673 2011-01-17  Eric Blake  <eblake@redhat.com>
1674
1675         sigaction: relax license from LGPLv3+ to LGPLv2+
1676         * modules/sigaction (License): Relax to LGPLv2+.
1677
1678 2011-01-14  Bruno Haible  <bruno@clisp.org>
1679
1680         filemode: Make function declarations usable in C++ mode.
1681         * lib/filemode.h: Enclose function declarations in extern "C" block.
1682         Reported by John W. Eaton <jwe@gnu.org>.
1683
1684 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
1685
1686         save-cwd: no longer include "xgetcwd.h"
1687         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
1688         This avoids a compilation failure in projects that use save-cwd
1689         without also using the xgetcwd module.
1690
1691 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1692
1693         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
1694         This is so that a program like Emacs, which needs only dtoastr,
1695         does not have to bother with distributing and compiling ftoastr
1696         and ldtoastr.
1697         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
1698         * modules/dtoastr, modules/ldtoastr: New files.
1699         * modules/ftoastr: Now works just for 'float'.
1700         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
1701         (Makefile.am): Remove ftoastr.h (not needed and no effect),
1702         dtoastr.c, ldtoastr.c.
1703
1704 2011-01-11  Jim Meyering  <meyering@redhat.com>
1705
1706         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1707         There is no need to work around the lack of the fchdir function,
1708         since gnulib can now provide a replacement when required.
1709         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1710         * modules/save-cwd (Depends-on): Add fchdir.
1711
1712 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1713
1714         openat, save-cwd: avoid xmalloc
1715
1716         This removes a direct (but undocumented) dependency of openat on
1717         xalloc, along with an indirect dependency via save-cwd.  It also
1718         removes a dependency of save-cwd on xgetcwd, and thereby
1719         indirectly on xalloc.  This change causes the openat substitute
1720         to fall back on save_cwd when memory is tight, and for save_cwd to
1721         fail instead of dying when memory is tight, but that's good enough.
1722         Problem and initial idea for fix reported by Bastien Roucaries in
1723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
1724
1725         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1726         xalloc.h (for xmalloc).
1727         (openat_proc_name): Use malloc, not xmalloc.
1728         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1729         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1730
1731         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1732         This avoids heap allocation for file names whose lengths are in
1733         the range 512..1023, with the upper bound increasing to at most
1734         4031 depending on the platform's PATH_MAX.  (We do not want
1735         pathmax.h here as it might supply a non-constant PATH_MAX.)
1736         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1737         Perhaps they should be moved to malloca.h?
1738         (OPENAT_BUFFER_SIZE): Use them.
1739
1740 2011-01-10  Bruno Haible  <bruno@clisp.org>
1741
1742         doc: Update users.txt.
1743         * users.txt: Add recutils.
1744
1745 2011-01-09  Karl Berry  <karl@gnu.org>
1746
1747         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1748
1749         * doc/configmake.texi: New file.
1750         * doc/gnulib.texi: Include it.
1751         * modules/configmake: Move documentation from here.
1752
1753 2011-01-09  Bruno Haible  <bruno@clisp.org>
1754
1755         Update to Unicode 6.0.0.
1756         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1757         (get_lbp): Update for Unicode 6.0.0.
1758         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1759         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1760         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1761         U+11001, U+11038..U+11046. Remove U+06DE.
1762         (uc_width): Fix bounds of planes.
1763         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1764         lib/uniwidth/width.c.
1765         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1766         trailing whitespace removed.
1767         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1768         without comments, but with the original copyright notice.
1769         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1770         * lib/unicase/ignorable.h: Likewise.
1771         * lib/unicase/tocasefold.h: Likewise.
1772         * lib/unicase/tolower.h: Likewise.
1773         * lib/unicase/totitle.h: Likewise.
1774         * lib/unicase/toupper.h: Likewise.
1775         * lib/unictype/bidi_of.h: Likewise.
1776         * lib/unictype/blocks.h: Likewise.
1777         * lib/unictype/categ_C.h: Likewise.
1778         * lib/unictype/categ_Cn.h: Likewise.
1779         * lib/unictype/categ_L.h: Likewise.
1780         * lib/unictype/categ_Ll.h: Likewise.
1781         * lib/unictype/categ_Lm.h: Likewise.
1782         * lib/unictype/categ_Lo.h: Likewise.
1783         * lib/unictype/categ_Lu.h: Likewise.
1784         * lib/unictype/categ_M.h: Likewise.
1785         * lib/unictype/categ_Mc.h: Likewise.
1786         * lib/unictype/categ_Me.h: Likewise.
1787         * lib/unictype/categ_Mn.h: Likewise.
1788         * lib/unictype/categ_N.h: Likewise.
1789         * lib/unictype/categ_Nd.h: Likewise.
1790         * lib/unictype/categ_No.h: Likewise.
1791         * lib/unictype/categ_P.h: Likewise.
1792         * lib/unictype/categ_Po.h: Likewise.
1793         * lib/unictype/categ_S.h: Likewise.
1794         * lib/unictype/categ_Sc.h: Likewise.
1795         * lib/unictype/categ_Sk.h: Likewise.
1796         * lib/unictype/categ_Sm.h: Likewise.
1797         * lib/unictype/categ_So.h: Likewise.
1798         * lib/unictype/categ_of.h: Likewise.
1799         * lib/unictype/combining.h: Likewise.
1800         * lib/unictype/ctype_alnum.h: Likewise.
1801         * lib/unictype/ctype_alpha.h: Likewise.
1802         * lib/unictype/ctype_graph.h: Likewise.
1803         * lib/unictype/ctype_lower.h: Likewise.
1804         * lib/unictype/ctype_print.h: Likewise.
1805         * lib/unictype/ctype_punct.h: Likewise.
1806         * lib/unictype/ctype_upper.h: Likewise.
1807         * lib/unictype/decdigit.h: Likewise.
1808         * lib/unictype/digit.h: Likewise.
1809         * lib/unictype/numeric.h: Likewise.
1810         * lib/unictype/pr_alphabetic.h: Likewise.
1811         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1812         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1813         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1814         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1815         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1816         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1817         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1818         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1819         * lib/unictype/pr_case_ignorable.h: Likewise.
1820         * lib/unictype/pr_cased.h: Likewise.
1821         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1822         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1823         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1824         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1825         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1826         * lib/unictype/pr_combining.h: Likewise.
1827         * lib/unictype/pr_composite.h: Likewise.
1828         * lib/unictype/pr_currency_symbol.h: Likewise.
1829         * lib/unictype/pr_decimal_digit.h: Likewise.
1830         * lib/unictype/pr_deprecated.h: Likewise.
1831         * lib/unictype/pr_format_control.h: Likewise.
1832         * lib/unictype/pr_grapheme_base.h: Likewise.
1833         * lib/unictype/pr_grapheme_extend.h: Likewise.
1834         * lib/unictype/pr_grapheme_link.h: Likewise.
1835         * lib/unictype/pr_id_continue.h: Likewise.
1836         * lib/unictype/pr_id_start.h: Likewise.
1837         * lib/unictype/pr_ideographic.h: Likewise.
1838         * lib/unictype/pr_lowercase.h: Likewise.
1839         * lib/unictype/pr_math.h: Likewise.
1840         * lib/unictype/pr_numeric.h: Likewise.
1841         * lib/unictype/pr_other_alphabetic.h: Likewise.
1842         * lib/unictype/pr_other_id_continue.h: Likewise.
1843         * lib/unictype/pr_other_math.h: Likewise.
1844         * lib/unictype/pr_punctuation.h: Likewise.
1845         * lib/unictype/pr_sentence_terminal.h: Likewise.
1846         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1847         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1848         * lib/unictype/pr_unified_ideograph.h: Likewise.
1849         * lib/unictype/pr_uppercase.h: Likewise.
1850         * lib/unictype/pr_xid_continue.h: Likewise.
1851         * lib/unictype/pr_xid_start.h: Likewise.
1852         * lib/unictype/scripts.h: Likewise.
1853         * lib/unictype/scripts_byname.gperf: Likewise.
1854         * lib/unictype/sy_java_ident.h: Likewise.
1855         * lib/unigbrk/gbrkprop.h: Likewise.
1856         * lib/unilbrk/lbrkprop1.h: Likewise.
1857         * lib/unilbrk/lbrkprop2.h: Likewise.
1858         * lib/uninorm/decomposition-table2.h: Likewise.
1859         * lib/uniwbrk/wbrkprop.h: Likewise.
1860         * tests/unicase/test-cased.c: Likewise.
1861         * tests/unicase/test-ignorable.c: Likewise.
1862         * tests/unicase/test-uc_tolower.c: Likewise.
1863         * tests/unicase/test-uc_totitle.c: Likewise.
1864         * tests/unicase/test-uc_toupper.c: Likewise.
1865         * tests/unictype/test-categ_C.c: Likewise.
1866         * tests/unictype/test-categ_Cn.c: Likewise.
1867         * tests/unictype/test-categ_L.c: Likewise.
1868         * tests/unictype/test-categ_Ll.c: Likewise.
1869         * tests/unictype/test-categ_Lm.c: Likewise.
1870         * tests/unictype/test-categ_Lo.c: Likewise.
1871         * tests/unictype/test-categ_Lu.c: Likewise.
1872         * tests/unictype/test-categ_M.c: Likewise.
1873         * tests/unictype/test-categ_Mc.c: Likewise.
1874         * tests/unictype/test-categ_Me.c: Likewise.
1875         * tests/unictype/test-categ_Mn.c: Likewise.
1876         * tests/unictype/test-categ_N.c: Likewise.
1877         * tests/unictype/test-categ_Nd.c: Likewise.
1878         * tests/unictype/test-categ_No.c: Likewise.
1879         * tests/unictype/test-categ_P.c: Likewise.
1880         * tests/unictype/test-categ_Po.c: Likewise.
1881         * tests/unictype/test-categ_S.c: Likewise.
1882         * tests/unictype/test-categ_Sc.c: Likewise.
1883         * tests/unictype/test-categ_Sk.c: Likewise.
1884         * tests/unictype/test-categ_Sm.c: Likewise.
1885         * tests/unictype/test-categ_So.c: Likewise.
1886         * tests/unictype/test-ctype_alnum.c: Likewise.
1887         * tests/unictype/test-ctype_alpha.c: Likewise.
1888         * tests/unictype/test-ctype_graph.c: Likewise.
1889         * tests/unictype/test-ctype_lower.c: Likewise.
1890         * tests/unictype/test-ctype_print.c: Likewise.
1891         * tests/unictype/test-ctype_punct.c: Likewise.
1892         * tests/unictype/test-ctype_upper.c: Likewise.
1893         * tests/unictype/test-decdigit.h: Likewise.
1894         * tests/unictype/test-digit.h: Likewise.
1895         * tests/unictype/test-numeric.h: Likewise.
1896         * tests/unictype/test-pr_alphabetic.c: Likewise.
1897         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1898         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1899         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1900         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1901         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1902         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1903         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1904         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1905         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1906         * tests/unictype/test-pr_cased.c: Likewise.
1907         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1908         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1909         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1910         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1911         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1912         * tests/unictype/test-pr_combining.c: Likewise.
1913         * tests/unictype/test-pr_composite.c: Likewise.
1914         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1915         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1916         * tests/unictype/test-pr_deprecated.c: Likewise.
1917         * tests/unictype/test-pr_format_control.c: Likewise.
1918         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1919         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1920         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1921         * tests/unictype/test-pr_id_continue.c: Likewise.
1922         * tests/unictype/test-pr_id_start.c: Likewise.
1923         * tests/unictype/test-pr_ideographic.c: Likewise.
1924         * tests/unictype/test-pr_lowercase.c: Likewise.
1925         * tests/unictype/test-pr_math.c: Likewise.
1926         * tests/unictype/test-pr_numeric.c: Likewise.
1927         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1928         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1929         * tests/unictype/test-pr_other_math.c: Likewise.
1930         * tests/unictype/test-pr_punctuation.c: Likewise.
1931         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1932         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1933         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1934         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1935         * tests/unictype/test-pr_uppercase.c: Likewise.
1936         * tests/unictype/test-pr_xid_continue.c: Likewise.
1937         * tests/unictype/test-pr_xid_start.c: Likewise.
1938         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1939         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1940         changes.
1941         * lib/unictype/categ_Cc.h: Likewise.
1942         * lib/unictype/categ_Cf.h: Likewise.
1943         * lib/unictype/categ_Co.h: Likewise.
1944         * lib/unictype/categ_Cs.h: Likewise.
1945         * lib/unictype/categ_Lt.h: Likewise.
1946         * lib/unictype/categ_Nl.h: Likewise.
1947         * lib/unictype/categ_Pc.h: Likewise.
1948         * lib/unictype/categ_Pd.h: Likewise.
1949         * lib/unictype/categ_Pe.h: Likewise.
1950         * lib/unictype/categ_Pf.h: Likewise.
1951         * lib/unictype/categ_Pi.h: Likewise.
1952         * lib/unictype/categ_Ps.h: Likewise.
1953         * lib/unictype/categ_Z.h: Likewise.
1954         * lib/unictype/categ_Zl.h: Likewise.
1955         * lib/unictype/categ_Zp.h: Likewise.
1956         * lib/unictype/categ_Zs.h: Likewise.
1957         * lib/unictype/ctype_blank.h: Likewise.
1958         * lib/unictype/ctype_cntrl.h: Likewise.
1959         * lib/unictype/ctype_digit.h: Likewise.
1960         * lib/unictype/ctype_space.h: Likewise.
1961         * lib/unictype/ctype_xdigit.h: Likewise.
1962         * lib/unictype/mirror.h: Likewise.
1963         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1964         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1965         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1966         * lib/unictype/pr_bidi_control.h: Likewise.
1967         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1968         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1969         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1970         * lib/unictype/pr_bidi_pdf.h: Likewise.
1971         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1972         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1973         * lib/unictype/pr_dash.h: Likewise.
1974         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1975         * lib/unictype/pr_diacritic.h: Likewise.
1976         * lib/unictype/pr_extender.h: Likewise.
1977         * lib/unictype/pr_hex_digit.h: Likewise.
1978         * lib/unictype/pr_hyphen.h: Likewise.
1979         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1980         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1981         * lib/unictype/pr_ignorable_control.h: Likewise.
1982         * lib/unictype/pr_iso_control.h: Likewise.
1983         * lib/unictype/pr_join_control.h: Likewise.
1984         * lib/unictype/pr_left_of_pair.h: Likewise.
1985         * lib/unictype/pr_line_separator.h: Likewise.
1986         * lib/unictype/pr_logical_order_exception.h: Likewise.
1987         * lib/unictype/pr_non_break.h: Likewise.
1988         * lib/unictype/pr_not_a_character.h: Likewise.
1989         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1990         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1991         * lib/unictype/pr_other_id_start.h: Likewise.
1992         * lib/unictype/pr_other_lowercase.h: Likewise.
1993         * lib/unictype/pr_other_uppercase.h: Likewise.
1994         * lib/unictype/pr_paired_punctuation.h: Likewise.
1995         * lib/unictype/pr_paragraph_separator.h: Likewise.
1996         * lib/unictype/pr_pattern_syntax.h: Likewise.
1997         * lib/unictype/pr_pattern_white_space.h: Likewise.
1998         * lib/unictype/pr_private_use.h: Likewise.
1999         * lib/unictype/pr_quotation_mark.h: Likewise.
2000         * lib/unictype/pr_radical.h: Likewise.
2001         * lib/unictype/pr_soft_dotted.h: Likewise.
2002         * lib/unictype/pr_space.h: Likewise.
2003         * lib/unictype/pr_titlecase.h: Likewise.
2004         * lib/unictype/pr_variation_selector.h: Likewise.
2005         * lib/unictype/pr_white_space.h: Likewise.
2006         * lib/unictype/pr_zero_width.h: Likewise.
2007         * lib/unictype/sy_c_ident.h: Likewise.
2008         * lib/unictype/sy_c_whitespace.h: Likewise.
2009         * lib/unictype/sy_java_whitespace.h: Likewise.
2010         * lib/uninorm/composition-table.gperf: Likewise.
2011         * lib/uninorm/decomposition-table1.h: Likewise.
2012         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
2013         LB8.
2014         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2015         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2016         * modules/unictype/*: Bump version number of expected libunistring
2017         version.
2018
2019 2011-01-09  Bruno Haible  <bruno@clisp.org>
2020
2021         Update to Unicode 5.2.0.
2022         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
2023         trailing whitespace removed.
2024
2025 2011-01-09  Bruno Haible  <bruno@clisp.org>
2026
2027         New Unicode character properties, from Unicode 5.2.0.
2028         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
2029         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
2030         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
2031         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
2032         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
2033         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
2034         uc_is_property_cased, uc_is_property_case_ignorable,
2035         uc_is_property_changes_when_lowercased,
2036         uc_is_property_changes_when_uppercased,
2037         uc_is_property_changes_when_titlecased,
2038         uc_is_property_changes_when_casefolded,
2039         uc_is_property_changes_when_casemapped): New declarations.
2040         * lib/unictype/pr_byname.gperf: Add the new properties.
2041         * modules/unictype/property-byname (Depends-on): Depend on the new
2042         properties modules.
2043         * modules/unictype/property-all (Depends-on): Likewise.
2044         * MODULES.html.sh (Unicode string functions): Add
2045         unictype/property-case-ignorable, unictype/property-cased,
2046         unictype/property-changes-when-casefolded,
2047         unictype/property-changes-when-casemapped,
2048         unictype/property-changes-when-lowercased,
2049         unictype/property-changes-when-titlecased,
2050         unictype/property-changes-when-uppercased.
2051
2052         New module 'unictype/property-changes-when-casemapped'.
2053         * modules/unictype/property-changes-when-casemapped: New file.
2054         * lib/unictype/pr_changes_when_casemapped.c: New file.
2055         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
2056         generated by gen-uni-tables.
2057         * modules/unictype/property-changes-when-casemapped-tests: New file.
2058         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
2059         automatically generated by gen-uni-tables.
2060
2061         New module 'unictype/property-changes-when-casefolded'.
2062         * modules/unictype/property-changes-when-casefolded: New file.
2063         * lib/unictype/pr_changes_when_casefolded.c: New file.
2064         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
2065         generated by gen-uni-tables.
2066         * modules/unictype/property-changes-when-casefolded-tests: New file.
2067         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
2068         automatically generated by gen-uni-tables.
2069
2070         New module 'unictype/property-changes-when-titlecased'.
2071         * modules/unictype/property-changes-when-titlecased: New file.
2072         * lib/unictype/pr_changes_when_titlecased.c: New file.
2073         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
2074         generated by gen-uni-tables.
2075         * modules/unictype/property-changes-when-titlecased-tests: New file.
2076         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
2077         automatically generated by gen-uni-tables.
2078
2079         New module 'unictype/property-changes-when-uppercased'.
2080         * modules/unictype/property-changes-when-uppercased: New file.
2081         * lib/unictype/pr_changes_when_uppercased.c: New file.
2082         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
2083         generated by gen-uni-tables.
2084         * modules/unictype/property-changes-when-uppercased-tests: New file.
2085         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
2086         automatically generated by gen-uni-tables.
2087
2088         New module 'unictype/property-changes-when-lowercased'.
2089         * modules/unictype/property-changes-when-lowercased: New file.
2090         * lib/unictype/pr_changes_when_lowercased.c: New file.
2091         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
2092         generated by gen-uni-tables.
2093         * modules/unictype/property-changes-when-lowercased-tests: New file.
2094         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
2095         automatically generated by gen-uni-tables.
2096
2097         New module 'unictype/property-case-ignorable'.
2098         * modules/unictype/property-case-ignorable: New file.
2099         * lib/unictype/pr_case_ignorable.c: New file.
2100         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
2101         by gen-uni-tables.
2102         * modules/unictype/property-case-ignorable-tests: New file.
2103         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
2104         generated by gen-uni-tables.
2105
2106         New module 'unictype/property-cased'.
2107         * modules/unictype/property-cased: New file.
2108         * lib/unictype/pr_cased.c: New file.
2109         * lib/unictype/pr_cased.h: New file, automatically generated by
2110         gen-uni-tables.
2111         * modules/unictype/property-cased-tests: New file.
2112         * tests/unictype/test-pr_cased.c: New file, automatically generated by
2113         gen-uni-tables.
2114
2115 2011-01-09  Bruno Haible  <bruno@clisp.org>
2116
2117         Update to Unicode 5.2.0.
2118         * lib/gen-uni-tables.c (output_predicate, output_category,
2119         output_combclass, output_bidi_category, output_decimal_digit_test,
2120         output_decimal_digit, output_digit_test, output_digit,
2121         output_numeric_test, output_numeric, output_mirror, output_scripts,
2122         output_scripts_byname, output_blocks, output_ident_category): Fix
2123         comment header.
2124         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
2125         get_wbp.
2126         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
2127         items.
2128         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
2129         Changes_When_Lowercased, Changes_When_Uppercased,
2130         Changes_When_Titlecased, Changes_When_Casefolded,
2131         Changes_When_Casemapped.
2132         (is_property_alphabetic, is_property_default_ignorable_code_point):
2133         Update for Unicode 5.2.0.
2134         (is_property_cased, is_property_case_ignorable,
2135         is_property_changes_when_lowercased,
2136         is_property_changes_when_uppercased,
2137         is_property_changes_when_titlecased,
2138         is_property_changes_when_casefolded,
2139         is_property_changes_when_casemapped): New functions.
2140         (output_properties): Output also the properties cased, case_ignorable,
2141         changes_when_lowercased, changes_when_uppercased,
2142         changes_when_titlecased, changes_when_casefolded,
2143         changes_when_casemapped.
2144         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
2145         Unicode TR#11 revision 17 -> 19.
2146         (LBP_CP): New enumeration value.
2147         (LBP_*): Adjust values accordingly.
2148         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2149         TR#14 revision 22 -> 24.
2150         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
2151         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
2152         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2153         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
2154         is_WBP_MIDLETTER.
2155         (output_composition_tables): Allow for 24 bits instead of 16 bits in
2156         the code1 and code2 of each composition rule.
2157         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
2158         * lib/unicase/ignorable.h: Likewise.
2159         * lib/unicase/tocasefold.h: Likewise.
2160         * lib/unicase/tolower.h: Likewise.
2161         * lib/unicase/totitle.h: Likewise.
2162         * lib/unicase/toupper.h: Likewise.
2163         * lib/unictype/bidi_of.h: Likewise.
2164         * lib/unictype/blocks.h: Likewise.
2165         * lib/unictype/categ_C.h: Likewise.
2166         * lib/unictype/categ_Cf.h: Likewise.
2167         * lib/unictype/categ_Cn.h: Likewise.
2168         * lib/unictype/categ_L.h: Likewise.
2169         * lib/unictype/categ_Ll.h: Likewise.
2170         * lib/unictype/categ_Lm.h: Likewise.
2171         * lib/unictype/categ_Lo.h: Likewise.
2172         * lib/unictype/categ_Lu.h: Likewise.
2173         * lib/unictype/categ_M.h: Likewise.
2174         * lib/unictype/categ_Mc.h: Likewise.
2175         * lib/unictype/categ_Mn.h: Likewise.
2176         * lib/unictype/categ_N.h: Likewise.
2177         * lib/unictype/categ_Nd.h: Likewise.
2178         * lib/unictype/categ_Nl.h: Likewise.
2179         * lib/unictype/categ_No.h: Likewise.
2180         * lib/unictype/categ_P.h: Likewise.
2181         * lib/unictype/categ_Pd.h: Likewise.
2182         * lib/unictype/categ_Po.h: Likewise.
2183         * lib/unictype/categ_S.h: Likewise.
2184         * lib/unictype/categ_Sc.h: Likewise.
2185         * lib/unictype/categ_So.h: Likewise.
2186         * lib/unictype/categ_of.h: Likewise.
2187         * lib/unictype/combining.h: Likewise.
2188         * lib/unictype/ctype_alnum.h: Likewise.
2189         * lib/unictype/ctype_alpha.h: Likewise.
2190         * lib/unictype/ctype_graph.h: Likewise.
2191         * lib/unictype/ctype_lower.h: Likewise.
2192         * lib/unictype/ctype_print.h: Likewise.
2193         * lib/unictype/ctype_punct.h: Likewise.
2194         * lib/unictype/ctype_upper.h: Likewise.
2195         * lib/unictype/decdigit.h: Likewise.
2196         * lib/unictype/digit.h: Likewise.
2197         * lib/unictype/numeric.h: Likewise.
2198         * lib/unictype/pr_alphabetic.h: Likewise.
2199         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2200         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2201         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2202         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2203         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2204         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2205         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2206         * lib/unictype/pr_combining.h: Likewise.
2207         * lib/unictype/pr_composite.h: Likewise.
2208         * lib/unictype/pr_currency_symbol.h: Likewise.
2209         * lib/unictype/pr_dash.h: Likewise.
2210         * lib/unictype/pr_decimal_digit.h: Likewise.
2211         * lib/unictype/pr_deprecated.h: Likewise.
2212         * lib/unictype/pr_diacritic.h: Likewise.
2213         * lib/unictype/pr_extender.h: Likewise.
2214         * lib/unictype/pr_grapheme_base.h: Likewise.
2215         * lib/unictype/pr_grapheme_extend.h: Likewise.
2216         * lib/unictype/pr_grapheme_link.h: Likewise.
2217         * lib/unictype/pr_id_continue.h: Likewise.
2218         * lib/unictype/pr_id_start.h: Likewise.
2219         * lib/unictype/pr_ideographic.h: Likewise.
2220         * lib/unictype/pr_ignorable_control.h: Likewise.
2221         * lib/unictype/pr_logical_order_exception.h: Likewise.
2222         * lib/unictype/pr_lowercase.h: Likewise.
2223         * lib/unictype/pr_numeric.h: Likewise.
2224         * lib/unictype/pr_other_alphabetic.h: Likewise.
2225         * lib/unictype/pr_punctuation.h: Likewise.
2226         * lib/unictype/pr_sentence_terminal.h: Likewise.
2227         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2228         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2229         * lib/unictype/pr_unified_ideograph.h: Likewise.
2230         * lib/unictype/pr_uppercase.h: Likewise.
2231         * lib/unictype/pr_xid_continue.h: Likewise.
2232         * lib/unictype/pr_xid_start.h: Likewise.
2233         * lib/unictype/pr_zero_width.h: Likewise.
2234         * lib/unictype/scripts.h: Likewise.
2235         * lib/unictype/scripts_byname.gperf: Likewise.
2236         * lib/unictype/sy_java_ident.h: Likewise.
2237         * lib/unigbrk/gbrkprop.h: Likewise.
2238         * lib/unilbrk/lbrkprop1.h: Likewise.
2239         * lib/unilbrk/lbrkprop2.h: Likewise.
2240         * lib/unilbrk/lbrktables.h: Likewise.
2241         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
2242         LBP_CP. Implement rule LB30.
2243         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
2244         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
2245         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
2246         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
2247         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
2248         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
2249         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
2250         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
2251         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
2252         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
2253         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
2254         bits instead of 16 bits in the code1 and code2 of each composition
2255         rule.
2256         (uc_composition): Update for Unicode 5.2.0.
2257         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
2258         * lib/uninorm/decomposition-table2.h: Likewise.
2259         * lib/uniwbrk/wbrkprop.h: Likewise.
2260         * tests/unicase/test-cased.c: Likewise.
2261         * tests/unicase/test-ignorable.c: Likewise.
2262         * tests/unicase/test-uc_tolower.c: Likewise.
2263         * tests/unicase/test-uc_totitle.c: Likewise.
2264         * tests/unicase/test-uc_toupper.c: Likewise.
2265         * tests/unictype/test-categ_C.c: Likewise.
2266         * tests/unictype/test-categ_Cf.c: Likewise.
2267         * tests/unictype/test-categ_Cn.c: Likewise.
2268         * tests/unictype/test-categ_L.c: Likewise.
2269         * tests/unictype/test-categ_Ll.c: Likewise.
2270         * tests/unictype/test-categ_Lm.c: Likewise.
2271         * tests/unictype/test-categ_Lo.c: Likewise.
2272         * tests/unictype/test-categ_Lu.c: Likewise.
2273         * tests/unictype/test-categ_M.c: Likewise.
2274         * tests/unictype/test-categ_Mc.c: Likewise.
2275         * tests/unictype/test-categ_Mn.c: Likewise.
2276         * tests/unictype/test-categ_N.c: Likewise.
2277         * tests/unictype/test-categ_Nd.c: Likewise.
2278         * tests/unictype/test-categ_Nl.c: Likewise.
2279         * tests/unictype/test-categ_No.c: Likewise.
2280         * tests/unictype/test-categ_P.c: Likewise.
2281         * tests/unictype/test-categ_Pd.c: Likewise.
2282         * tests/unictype/test-categ_Po.c: Likewise.
2283         * tests/unictype/test-categ_S.c: Likewise.
2284         * tests/unictype/test-categ_Sc.c: Likewise.
2285         * tests/unictype/test-categ_So.c: Likewise.
2286         * tests/unictype/test-ctype_alnum.c: Likewise.
2287         * tests/unictype/test-ctype_alpha.c: Likewise.
2288         * tests/unictype/test-ctype_graph.c: Likewise.
2289         * tests/unictype/test-ctype_lower.c: Likewise.
2290         * tests/unictype/test-ctype_print.c: Likewise.
2291         * tests/unictype/test-ctype_punct.c: Likewise.
2292         * tests/unictype/test-ctype_upper.c: Likewise.
2293         * tests/unictype/test-decdigit.h: Likewise.
2294         * tests/unictype/test-digit.h: Likewise.
2295         * tests/unictype/test-numeric.h: Likewise.
2296         * tests/unictype/test-pr_alphabetic.c: Likewise.
2297         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2298         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2299         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2300         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2301         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2302         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2303         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2304         * tests/unictype/test-pr_combining.c: Likewise.
2305         * tests/unictype/test-pr_composite.c: Likewise.
2306         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2307         * tests/unictype/test-pr_dash.c: Likewise.
2308         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2309         * tests/unictype/test-pr_deprecated.c: Likewise.
2310         * tests/unictype/test-pr_diacritic.c: Likewise.
2311         * tests/unictype/test-pr_extender.c: Likewise.
2312         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2313         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2314         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2315         * tests/unictype/test-pr_id_continue.c: Likewise.
2316         * tests/unictype/test-pr_id_start.c: Likewise.
2317         * tests/unictype/test-pr_ideographic.c: Likewise.
2318         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2319         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2320         * tests/unictype/test-pr_lowercase.c: Likewise.
2321         * tests/unictype/test-pr_numeric.c: Likewise.
2322         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2323         * tests/unictype/test-pr_punctuation.c: Likewise.
2324         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2325         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2326         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2327         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2328         * tests/unictype/test-pr_uppercase.c: Likewise.
2329         * tests/unictype/test-pr_xid_continue.c: Likewise.
2330         * tests/unictype/test-pr_xid_start.c: Likewise.
2331         * tests/unictype/test-pr_zero_width.c: Likewise.
2332         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2333         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
2334         changed behaviour: line breaking is now disallowed between a letter
2335         or '=' and '('.
2336         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2337         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2338         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2339         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
2340         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2341         lib/uniwidth/width.c.
2342         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
2343         without comments, but with the original copyright notice.
2344         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2345         changes.
2346         * lib/unictype/categ_Cc.h: Likewise.
2347         * lib/unictype/categ_Co.h: Likewise.
2348         * lib/unictype/categ_Cs.h: Likewise.
2349         * lib/unictype/categ_Lt.h: Likewise.
2350         * lib/unictype/categ_Me.h: Likewise.
2351         * lib/unictype/categ_Pc.h: Likewise.
2352         * lib/unictype/categ_Pe.h: Likewise.
2353         * lib/unictype/categ_Pf.h: Likewise.
2354         * lib/unictype/categ_Pi.h: Likewise.
2355         * lib/unictype/categ_Ps.h: Likewise.
2356         * lib/unictype/categ_Sk.h: Likewise.
2357         * lib/unictype/categ_Sm.h: Likewise.
2358         * lib/unictype/categ_Z.h: Likewise.
2359         * lib/unictype/categ_Zl.h: Likewise.
2360         * lib/unictype/categ_Zp.h: Likewise.
2361         * lib/unictype/categ_Zs.h: Likewise.
2362         * lib/unictype/ctype_blank.h: Likewise.
2363         * lib/unictype/ctype_cntrl.h: Likewise.
2364         * lib/unictype/ctype_digit.h: Likewise.
2365         * lib/unictype/ctype_space.h: Likewise.
2366         * lib/unictype/ctype_xdigit.h: Likewise.
2367         * lib/unictype/mirror.h: Likewise.
2368         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2369         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2370         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2371         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2372         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2373         * lib/unictype/pr_bidi_control.h: Likewise.
2374         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2375         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2376         * lib/unictype/pr_bidi_pdf.h: Likewise.
2377         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2378         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2379         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2380         * lib/unictype/pr_format_control.h: Likewise.
2381         * lib/unictype/pr_hex_digit.h: Likewise.
2382         * lib/unictype/pr_hyphen.h: Likewise.
2383         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2384         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2385         * lib/unictype/pr_iso_control.h: Likewise.
2386         * lib/unictype/pr_join_control.h: Likewise.
2387         * lib/unictype/pr_left_of_pair.h: Likewise.
2388         * lib/unictype/pr_line_separator.h: Likewise.
2389         * lib/unictype/pr_math.h: Likewise.
2390         * lib/unictype/pr_non_break.h: Likewise.
2391         * lib/unictype/pr_not_a_character.h: Likewise.
2392         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2393         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2394         * lib/unictype/pr_other_id_continue.h: Likewise.
2395         * lib/unictype/pr_other_id_start.h: Likewise.
2396         * lib/unictype/pr_other_lowercase.h: Likewise.
2397         * lib/unictype/pr_other_math.h: Likewise.
2398         * lib/unictype/pr_other_uppercase.h: Likewise.
2399         * lib/unictype/pr_paired_punctuation.h: Likewise.
2400         * lib/unictype/pr_paragraph_separator.h: Likewise.
2401         * lib/unictype/pr_pattern_syntax.h: Likewise.
2402         * lib/unictype/pr_pattern_white_space.h: Likewise.
2403         * lib/unictype/pr_private_use.h: Likewise.
2404         * lib/unictype/pr_quotation_mark.h: Likewise.
2405         * lib/unictype/pr_radical.h: Likewise.
2406         * lib/unictype/pr_soft_dotted.h: Likewise.
2407         * lib/unictype/pr_space.h: Likewise.
2408         * lib/unictype/pr_titlecase.h: Likewise.
2409         * lib/unictype/pr_variation_selector.h: Likewise.
2410         * lib/unictype/pr_white_space.h: Likewise.
2411         * lib/unictype/sy_c_ident.h: Likewise.
2412         * lib/unictype/sy_c_whitespace.h: Likewise.
2413         * lib/unictype/sy_java_whitespace.h: Likewise.
2414         * modules/uni*/*: Bump version number of expected libunistring version.
2415         Reported by Simon Josefsson.
2416
2417 2011-01-09  Karl Heuer  <kwzh@gnu.org>
2418
2419         useless-if-before-free: fix typo in --help and make the internal,
2420         automatic version date update process work once again.
2421         --help output contained a NUL character instead of the
2422         backslash-zero that was intended.  Also, the "must lie within
2423         the first 8 lines" line is on line 9, and hence not getting
2424         automatically updated.
2425         * build-aux/useless-if-before-free: Fix the former by adding a
2426         backslash, and the latter by condensing the three lines of what-it-does
2427         to a single line, leaving one line of slack for the future.
2428
2429 2011-01-09  Bruno Haible  <bruno@clisp.org>
2430
2431         uniwidth/width: Fix width of U+1D173..U+1D17A.
2432         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
2433         symbolic_width, output_width_property_test): New functions.
2434         (main): Invoke output_nonspacing_property, output_width_property_test.
2435         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
2436         U+1D173..U+1D17A.
2437         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
2438         1.
2439         * modules/uniwidth/*: Bump version number of expected libunistring
2440         version.
2441         * modules/unilbrk/*: Likewise.
2442
2443 2011-01-08  Bruno Haible  <bruno@clisp.org>
2444
2445         uninorm tests: Preserve copyright of Unicode data file.
2446         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
2447         Mention modifications.
2448
2449 2011-01-08  Bruno Haible  <bruno@clisp.org>
2450
2451         gen-uni-tables: Prepare for Unicode 5.2.0.
2452         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
2453         (debug_output_lbp, output_lbp): Update.
2454
2455 2011-01-08  Bruno Haible  <bruno@clisp.org>
2456
2457         unilbrk: Clarify gen-uni-tables.c code.
2458         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
2459         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
2460         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
2461
2462 2011-01-07  Bruno Haible  <bruno@clisp.org>
2463
2464         strtod: Restore errno when successfully parsing Infinity or NaN.
2465         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
2466         restore the original errno.
2467
2468 2011-01-07  Bruno Haible  <bruno@clisp.org>
2469
2470         remove test: Avoid failure on HP-UX 11.
2471         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
2472
2473 2011-01-07  Bruno Haible  <bruno@clisp.org>
2474
2475         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
2476         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
2477         error code.
2478
2479 2011-01-07  Pádraig Brady <P@draigBrady.com>
2480
2481         ignore-value: fixup comments, and add Eric Blake
2482         as an author since he rewrote the macros.
2483         * lib/ignore-value.h (ignore_value):  State that
2484         we now support aggregates.  Also specify exactly
2485         when the GCC warn_unused_result feature was added.
2486
2487 2011-01-06  Eric Blake  <eblake@redhat.com>
2488
2489         ignore-value: support aggregate types
2490         * lib/ignore-value.h (ignore_value): Provide separate gcc
2491         definition.
2492         * modules/ignore-value-tests: New test module.
2493         * tests/test-ignore-value.c: New test.
2494
2495         maint.mk: improve sc_prohibit_strcmp regex
2496         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
2497         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
2498         definition of STRNEQ.
2499
2500         signal: work around Haiku issue with SIGBUS
2501         * lib/siglist.h: Add comment.
2502         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
2503         strsignal's favoring of SIGSEGV.
2504         * tests/test-signal.c (main): Avoid test failure.
2505         * doc/posix-headers/signal.texi (signal.h): Document the issue.
2506         Reported by Scott McCreary.
2507
2508         maint.mk: add pre-release check to ensure submodule commits are public
2509         * top/maint.mk (public-submodule-commit): New rule.
2510         (submodule-checks): New variable.
2511         (alpha beta stable): Depend on the variable.
2512
2513 2011-01-05  Pádraig Brady <P@draigBrady.com>
2514         and Jim Meyering  <meyering@redhat.com>
2515
2516         ignore-value: make ignore_value more generic; deprecate ignore_ptr
2517         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
2518         (ATTRIBUTE_DEPRECATED): Define.
2519         (_ignore_case): New function.
2520         (ignore_value): New macro, to replace the old function.
2521         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
2522         * modules/ignore-value (Depends-on): Add stdint.
2523
2524 2011-01-04  Eric Blake  <eblake@redhat.com>
2525
2526         doc: regenerate INSTALL
2527         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
2528         @firstparagraphindent support, now that autoconf dropped it.
2529         (INSTALL_PRELUDE): Reinstate old macro.
2530         * doc/install.texi: Resync from autoconf.
2531         * doc/INSTALL: Reflect recent autoconf update.
2532         * doc/INSTALL.ISO: Likewise.
2533         * doc/INSTALL.UTF-8: Likewise.
2534         Reported by Karl Berry.
2535
2536 2011-01-04  Bruce Korb  <address@hidden>
2537
2538         git-version-gen: avoid a sub-shell
2539         * build-aux/git-version-gen: Redirect stderr in `...` via
2540         "exec 2>...", rather than via an added sub-shell.
2541
2542 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
2543
2544         git-version-gen: use (...) rather than sh -c '...'
2545         * build-aux/git-version-gen: Rather than hard-coding a shell's name
2546         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
2547
2548 2011-01-03  Jim Meyering  <meyering@redhat.com>
2549
2550         git-version-gen: convert leading TABs to spaces
2551         * build-aux/git-version-gen: Expand leading TABs.
2552
2553         git-version-gen: handle failed "git rev-list"
2554         * build-aux/git-version-gen: Rather than leaking a "fatal" error
2555         from git and proceeding as if it had succeeded but printed no SHA1
2556         checksums, suppress the diagnostic and handle the failure.
2557         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
2558
2559         git-version-gen: include command name in one more diagnostic
2560         * build-aux/git-version-gen: When the required .tarball-version file
2561         was missing or unreadable, you might see the diagnostic from "cat",
2562         but no trace of the name of the invoking script.  Now, you still see
2563         the diagnostic from cat, but also get one from "git-version-gen: ".
2564         Inspired by a patch from Bruce Korb.
2565
2566         update-copyright: adjust test to match changed code
2567         * tests/test-update-copyright.sh: Change test's expected output
2568         to match new actual output.
2569
2570 2011-01-02  Bruno Haible  <bruno@clisp.org>
2571
2572         getlogin_r: Avoid test failure on HP-UX 11.
2573         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
2574         ERANGE when the second argument is zero.
2575         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
2576         portability problem.
2577
2578 2011-01-02  Bruce Korb  <bkorb@gnu.org>
2579
2580         * build-aux/update-copyright: doc Simon's changes
2581
2582 2011-01-02  Simon Josefsson  <simon@josefsson.org>
2583
2584         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
2585         environment variable.
2586
2587 2011-01-02  Bruno Haible  <bruno@clisp.org>
2588
2589         unigbrk: Avoid gcc warnings.
2590         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
2591         unused variable.
2592         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
2593         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
2594         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
2595         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
2596         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
2597         Change type of first argument to 'const char *'.
2598         (main): Remove unused variable.
2599         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
2600         type of first argument to 'const char *'.
2601         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
2602         Likewise.
2603         (main): Change type of variable 's'.
2604         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
2605         to 'int'.
2606
2607 2011-01-02  Bruno Haible  <bruno@clisp.org>
2608
2609         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
2610         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
2611         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
2612         bug.
2613         * lib/pwrite.c: Undo 2010-12-31 patch.
2614         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
2615
2616 2011-01-02  Bruno Haible  <bruno@clisp.org>
2617
2618         pread: Fix test whether it works.
2619         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
2620
2621 2011-01-02  Bruno Haible  <bruno@clisp.org>
2622
2623         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
2624         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
2625         ends in "6". Don't require a specific month name. Try also the locale
2626         names found on HP-UX 11 and Solaris 7.
2627
2628 2011-01-02  Bruno Haible  <bruno@clisp.org>
2629
2630         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
2631         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
2632         C linkage.
2633         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
2634
2635 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2636
2637         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
2638         for consistency, since the "cluster" term is not used elsewhere.
2639         * lib/unigbrk.in.h: Update name.
2640         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
2641         * lib/unigbrk/u16-grapheme-next.c: Update name.
2642         * lib/unigbrk/u16-grapheme-prev.c: Update name.
2643         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
2644         * lib/unigbrk/u32-grapheme-next.c: Update name.
2645         * lib/unigbrk/u32-grapheme-prev.c: Update name.
2646         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
2647         * lib/unigbrk/u8-grapheme-next.c: Update name.
2648         * lib/unigbrk/u8-grapheme-prev.c: Update name.
2649         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
2650         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
2651         Suggested by Bruno Haible.
2652
2653 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2654
2655         Remove module 'u8-grapheme-len' as too redundant with
2656         'u8-grapheme-next'.
2657         * modules/unigbrk/u8-grapheme-len: Delete file.
2658         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
2659         * lib/unigbrk.in.h: Remove prototype for deleted function.
2660         * lib/unigbrk/u8-grapheme-len.c: Delete file.
2661         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
2662
2663         Remove module 'u16-grapheme-len' as too redundant with
2664         'u16-grapheme-next'.
2665         * modules/unigbrk/u16-grapheme-len: Delete file.
2666         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
2667         * lib/unigbrk.in.h: Remove prototype for deleted function.
2668         * lib/unigbrk/u16-grapheme-len.c: Delete file.
2669         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
2670
2671         Remove module 'u32-grapheme-len' as too redundant with
2672         'u32-grapheme-next'.
2673         * modules/unigbrk/u32-grapheme-len: Delete file.
2674         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
2675         * lib/unigbrk.in.h: Remove prototype for deleted function.
2676         * lib/unigbrk/u32-grapheme-len.c: Delete file.
2677         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
2678
2679         Suggested by Bruno Haible.
2680
2681 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2682
2683         * unigbrk.in.h: Fix typo: "ben" => "been".
2684         Reported by Bruno Haible.
2685
2686 2011-01-01  Jim Meyering  <meyering@redhat.com>
2687
2688         maint: update almost all copyright ranges to include 2011
2689         Run the new "make update-copyright" rule.
2690
2691 2011-01-01  Jim Meyering  <meyering@redhat.com>
2692
2693         maint: update-copyright: exempt doc/INSTALL*
2694         * Makefile (update-copyright): Also exclude doc/INSTALL*,
2695         since they are generated.  Suggested by Bruno Haible.
2696
2697 2011-01-01  Jim Meyering  <meyering@redhat.com>
2698
2699         maint: refine the update-copyright rule
2700         * Makefile (update-copyright): Also exclude any file that includes
2701         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
2702         code that merely generates the comment.
2703
2704 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2705
2706         New module 'u8-grapheme-len'.
2707         * modules/unigbrk/u8-grapheme-len: New file.
2708         * modules/unigbrk/u8-grapheme-len-tests: New file.
2709         * lib/unigbrk.in.h: Add prototype for new function.
2710         * lib/unigbrk/u8-grapheme-len.c: New file.
2711         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2712
2713         New module 'u16-grapheme-len'.
2714         * modules/unigbrk/u16-grapheme-len: New file.
2715         * modules/unigbrk/u16-grapheme-len-tests: New file.
2716         * lib/unigbrk.in.h: Add prototype for new function.
2717         * lib/unigbrk/u16-grapheme-len.c: New file.
2718         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2719
2720         New module 'u32-grapheme-len'.
2721         * modules/unigbrk/u32-grapheme-len: New file.
2722         * modules/unigbrk/u32-grapheme-len-tests: New file.
2723         * lib/unigbrk.in.h: Add prototype for new function.
2724         * lib/unigbrk/u32-grapheme-len.c: New file.
2725         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2726
2727         New module 'u8-grapheme-next'.
2728         * modules/unigbrk/u8-grapheme-next: New file.
2729         * modules/unigbrk/u8-grapheme-next-tests: New file.
2730         * lib/unigbrk.in.h: Add prototype for new function.
2731         * lib/unigbrk/u8-grapheme-next.c: New file.
2732         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2733
2734         New module 'u16-grapheme-next'.
2735         * modules/unigbrk/u16-grapheme-next: New file.
2736         * modules/unigbrk/u16-grapheme-next-tests: New file.
2737         * lib/unigbrk.in.h: Add prototype for new function.
2738         * lib/unigbrk/u16-grapheme-next.c: New file.
2739         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2740
2741         New module 'u32-grapheme-next'.
2742         * modules/unigbrk/u32-grapheme-next: New file.
2743         * modules/unigbrk/u32-grapheme-next-tests: New file.
2744         * lib/unigbrk.in.h: Add prototype for new function.
2745         * lib/unigbrk/u32-grapheme-next.c: New file.
2746         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2747
2748         New module 'u8-grapheme-prev'.
2749         * modules/unigbrk/u8-grapheme-prev: New file.
2750         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2751         * lib/unigbrk.in.h: Add prototype for new function.
2752         * lib/unigbrk/u8-grapheme-prev.c: New file.
2753         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2754
2755         New module 'u16-grapheme-prev'.
2756         * modules/unigbrk/u16-grapheme-prev: New file.
2757         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2758         * lib/unigbrk.in.h: Add prototype for new function.
2759         * lib/unigbrk/u16-grapheme-prev.c: New file.
2760         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2761
2762         New module 'u32-grapheme-prev'.
2763         * modules/unigbrk/u32-grapheme-prev: New file.
2764         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2765         * lib/unigbrk.in.h: Add prototype for new function.
2766         * lib/unigbrk/u32-grapheme-prev.c: New file.
2767         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2768
2769         New module 'u8-grapheme-breaks'.
2770         * modules/unigbrk/u8-grapheme-breaks: New file.
2771         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2772         * lib/unigbrk.in.h: Add prototype for new function.
2773         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2774         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2775
2776         New module 'u16-grapheme-breaks'.
2777         * modules/unigbrk/u16-grapheme-breaks: New file.
2778         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2779         * lib/unigbrk.in.h: Add prototype for new function.
2780         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2781         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2782
2783         New module 'u32-grapheme-breaks'.
2784         * modules/unigbrk/u32-grapheme-breaks: New file.
2785         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2786         * lib/unigbrk.in.h: Add prototype for new function.
2787         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2788         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2789
2790         New module 'ulc-grapheme-breaks'.
2791         * modules/unigbrk/ulc-grapheme-breaks: New file.
2792         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2793         * m4/locale-ar.m4: New file.
2794         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2795         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2796         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2797
2798 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2799
2800         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2801         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2802         modified how this file was generated before I initially submitted
2803         the module, but failed to regenerate it.  This meant that several
2804         of the level2 entries were wrong.
2805         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2806         Remove the division-by-2 that is folded into the table now that
2807         gbrkprop.h has been regenerated properly.  Now -1 entries are
2808         handled correctly.
2809
2810         New module 'unigbrk/uc-gbrk-prop-tests'.
2811         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2812         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2813         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2814         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2815
2816 2011-01-01  Bruno Haible  <bruno@clisp.org>
2817
2818         Avoid use of hexadecimal escapes.
2819         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2820         instead of hexadecimal escapes.
2821
2822 2011-01-01  Jim Meyering  <meyering@redhat.com>
2823
2824         maint: new rule to update copyright year ranges
2825         * Makefile (update-copyright): New rule.
2826
2827         maint: indent with TABs in Makefile
2828         * Makefile: Expand leading sequences of spaces to TABs
2829
2830         version-etc: update the copyright year it reports
2831         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2832
2833 2010-12-31  Bruno Haible  <bruno@clisp.org>
2834
2835         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2836         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2837         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2838         zero.
2839
2840 2010-12-31  Bruno Haible  <bruno@clisp.org>
2841
2842         pwrite: Work around HP-UX 11.11 bug.
2843         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2844         works and set REPLACE_PWRITE if not.
2845         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2846         function.
2847         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2848
2849 2010-12-31  Bruno Haible  <bruno@clisp.org>
2850
2851         pread: Work around HP-UX 11 bugs.
2852         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2853         and set REPLACE_PREAD if not.
2854         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2855
2856 2010-12-31  Eric Blake  <eblake@redhat.com>
2857
2858         nl_langinfo: fix YESEXPR on Irix 6.5
2859         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2860         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2861         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2862         it.
2863
2864 2010-12-31  Bruno Haible  <bruno@clisp.org>
2865
2866         iconv: Document HP-UX 11 bug.
2867         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2868
2869 2010-12-31  Bruno Haible  <bruno@clisp.org>
2870
2871         ldexpl: Fix link error on HP-UX 11.
2872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2873         LDEXPL_LIBM, using $ISNANL_LIBM.
2874
2875 2010-12-31  Eric Blake  <eblake@redhat.com>
2876
2877         ftello: avoid compilation failure with SunStudio c89
2878         * lib/ftello.c (ftello): Use lseek, not llseek.
2879
2880         tests: avoid failing coreutils tests on cygwin
2881         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2882         (create_exe_shims_): Return 0 when skipping.
2883
2884 2010-12-31  Bruno Haible  <bruno@clisp.org>
2885
2886         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2887         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2888
2889 2010-12-31  Bruno Haible  <bruno@clisp.org>
2890
2891         waitpid: Fix link error in C++ mode.
2892         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2893
2894 2010-12-31  Bruno Haible  <bruno@clisp.org>
2895
2896         isnan: Use GCC built-ins when possible.
2897         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2898         __builtin_isnan.
2899         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2900         (isnan): Define using GCC built-ins for GCC >= 4.0.
2901
2902 2010-12-31  Bruno Haible  <bruno@clisp.org>
2903
2904         isnand: Fix mistake.
2905         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2906         __builtin_isnand.
2907
2908 2010-12-31  Bruno Haible  <bruno@clisp.org>
2909
2910         open: Avoid C++ error on HP-UX 11.
2911         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2912
2913 2010-12-31  Bruno Haible  <bruno@clisp.org>
2914
2915         time_r: Add missing declarations on HP-UX 11.
2916         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2917         instead of HAVE_LOCALTIME_R.
2918         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2919         HAVE_LOCALTIME_R always.
2920         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2921         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2922         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2923         HAVE_LOCALTIME_R.
2924         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2925         * doc/posix-functions/localtime_r.texi: Likewise.
2926
2927 2010-12-29  Eric Blake  <eblake@redhat.com>
2928
2929         mountlist: tweak previous commit
2930         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2931         Reported by Paul Eggert.
2932
2933         mountlist: fix local drive detection on cygwin
2934         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2935         that works for cygwin.
2936
2937 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         ftoastr, snprintf: ftoastr + snprintf module
2940         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2941         since the snprintf module now should be good enough here.
2942         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2943         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2944         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2945         GNULIB_SNPRINTF only for the test directory, and the latter
2946         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2947         seems to suffice by itself.
2948
2949 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2950
2951         alloca: one step towards thread-safety
2952         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2953         need for a static variable.  All callers changed.  This does not
2954         make the alloca replacement thread-safe, but it's one step.
2955
2956         tests: minor indenting change
2957         * tests/init.sh: Sync from coreutils housekeeping patch
2958         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2959         to keep lines within 80 columns.
2960
2961 2010-12-28  Jim Meyering  <meyering@redhat.com>
2962
2963         regex: don't infloop on persistent failing calloc
2964         * lib/regexec.c (build_trtable): Return failure indication upon
2965         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2966         In glibc, this was fixed for version 2.13:
2967         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
2968
2969 2010-12-28  Bruno Haible  <bruno@clisp.org>
2970             Paul Eggert <eggert@cs.ucla.edu>
2971
2972         linkat: Make implementation robust against system behaviour variations.
2973         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
2974         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
2975         way, and to -2 if it needs a generic runtime test.
2976         * lib/linkat.c (solaris_optimized_link_immediate,
2977         solaris_optimized_link_follow): New functions.
2978         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
2979         (check_same_link): Use it.
2980
2981 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2982
2983         New module 'unigbrk/base'.
2984         * modules/unigbrk/base: New file.
2985         * lib/unigbrk.in.h: New file.
2986
2987         New module 'unigbrk/uc-gbrk-prop'.
2988         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
2989         * modules/unigbrk/uc-gbrk-prop: New file.
2990         * lib/unigbrk/gbrkprop.h: New file.
2991         * lib/unigbrk/uc-gbrk-prop.c: New file.
2992
2993         New module 'unigbrk/uc-is-grapheme-break'.
2994         * modules/unigbrk/uc-is-grapheme-break: New file.
2995         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
2996         * lib/unigbrk/uc-is-grapheme-break.c: New file.
2997         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
2998         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
2999         * tests/unigbrk/GraphemeBreakTest.txt: New file.
3000
3001         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
3002
3003 2010-12-27  Bruno Haible  <bruno@clisp.org>
3004
3005         linkat test: Avoid failure on Solaris 11 2010-11.
3006         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
3007
3008 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3009
3010         utimens: work around glibc rounding bug on more platforms
3011         * lib/utimens.c (fdutimens): Work around rounding bug even if
3012         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
3013         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
3014
3015 2010-12-27  Bruno Haible  <bruno@clisp.org>
3016
3017         select tests: Improve comments.
3018         * tests/test-select.c (do_select): Add comments.
3019
3020 2010-12-27  Bruno Haible  <bruno@clisp.org>
3021
3022         select tests: Safer way of handling timeout.
3023         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
3024         at every invocation.
3025
3026 2010-12-27  Bruno Haible  <bruno@clisp.org>
3027
3028         select tests: Use 'bool' where appropriate.
3029         * tests/test-select.c (connect_to_socket): Change argument type to
3030         'bool'.
3031
3032 2010-12-27  Bruno Haible  <bruno@clisp.org>
3033
3034         select tests: Use existing modules.
3035         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
3036         (configure.ac): Don't test for unistd.h.
3037         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
3038         declared in <unistd.h>.
3039
3040 2010-12-27  Bruno Haible  <bruno@clisp.org>
3041
3042         mbrtowc: Work around a Solaris 7 bug.
3043         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
3044         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
3045         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
3046         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
3047         MBRTOWC_NULL_ARG1_BUG.
3048         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
3049         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
3050         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
3051         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
3052
3053 2010-12-27  Jim Meyering  <meyering@redhat.com>
3054
3055         read-file.c: tweak syntax
3056         * lib/read-file.c (fread_file): Remove space after "*" in function
3057         definitions.
3058
3059 2010-12-27  Bruno Haible  <bruno@clisp.org>
3060
3061         times test: Avoid gcc warnings on OSF/1.
3062         * tests/test-times.c (main): Cast printf arguments from clock_t to
3063         'long int'.
3064
3065 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3066
3067         utimens: work around glibc rounding bug on older Linux kernels
3068         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
3069         on Linux with a glibc whose utimes might not work, then work
3070         around a longstanding glibc bug involving rounding rather than
3071         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
3072         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3073
3074 2010-12-26  Bruno Haible  <bruno@clisp.org>
3075
3076         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
3077         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
3078         _GL_CXXALIAS_SYS.
3079         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3080
3081 2010-12-26  Bruno Haible  <bruno@clisp.org>
3082
3083         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
3084         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
3085         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3086         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
3087         looking for the declaration.
3088         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3089         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
3090         problem.
3091         * doc/posix-functions/inet_pton.texi: Likewise.
3092
3093 2010-12-26  Bruno Haible  <bruno@clisp.org>
3094
3095         arpa_inet: Use the common idioms with C++ support.
3096         * lib/arpa_inet.in.h: Include c++defs.h.
3097         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
3098         support.
3099         * modules/arpa_inet (Depends-on): Add c++defs.
3100         (Makefile.am): Substitute the contents of c++defs.h.
3101         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
3102         * modules/arpa_inet-c++-tests: New file.
3103         * tests/test-arpa_inet-c++.cc: New file.
3104
3105 2010-12-25  Bruno Haible  <bruno@clisp.org>
3106
3107         Fix more C++ link errors on Solaris 8.
3108         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
3109         $(LIB_EACCESS).
3110         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
3111         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
3112         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
3113         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
3114         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
3115
3116 2010-12-25  Bruno Haible  <bruno@clisp.org>
3117
3118         printf-posix: Fix link error when a non-GCC compiler is used.
3119         * lib/stdio.in.h (printf): When not using GCC, override printf
3120         correctly.
3121         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3122
3123 2010-12-25  Bruno Haible  <bruno@clisp.org>
3124
3125         strerror_r-posix: Update doc.
3126         * doc/posix-functions/strerror_r.texi: Update doc about the return
3127         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
3128
3129 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3130
3131         utimens: simplify the logic of the previous change
3132         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
3133         This should not affect whether the test succeeds or fails.
3134
3135         utimens: configure better on hosts with NFS clock skew
3136         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
3137         uses the clock of the local host.  It might use the clock of the
3138         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
3139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3140
3141 2010-12-25  Bruno Haible  <bruno@clisp.org>
3142
3143         ptsname test: Avoid failure on Solaris.
3144         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
3145         open a pseudo-terminal; don't use BSD-style ptys.
3146         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
3147
3148 2010-12-25  Bruno Haible  <bruno@clisp.org>
3149
3150         ptsname: Avoid ERANGE failure on some systems.
3151         * lib/ptsname.c (buffer): Increase size.
3152
3153 2010-12-25  Bruno Haible  <bruno@clisp.org>
3154
3155         rename, renameat: Avoid test failures at NFS mounted locations.
3156         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
3157         so that subsequent mkdir calls succeed.
3158
3159 2010-12-25  Bruno Haible  <bruno@clisp.org>
3160
3161         iswblank: Fix C++ link error on Solaris 8.
3162         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
3163         _GL_FUNCDECL_SYS.
3164
3165 2010-12-25  Bruno Haible  <bruno@clisp.org>
3166
3167         unistd: Fix C++ link error on Solaris 8.
3168         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
3169
3170 2010-12-25  Bruno Haible  <bruno@clisp.org>
3171
3172         readlink doc: Mention an old glibc bug.
3173         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
3174
3175 2010-12-25  Bruno Haible  <bruno@clisp.org>
3176
3177         fcntl-h: Fix for use of C++ on glibc systems.
3178         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3179         also on glibc systems in C++ mode.
3180         Reported by Gary V. Vaughan <gary@gnu.org>.
3181
3182 2010-12-25  Bruno Haible  <bruno@clisp.org>
3183
3184         roundl-ieee: Make it work on OSF/1 5.1 with cc.
3185         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
3186
3187 2010-12-25  Bruno Haible  <bruno@clisp.org>
3188
3189         truncl-ieee: Make it work on OSF/1 5.1 with cc.
3190         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
3191         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
3192         test whether truncl works according to ISO C 99 with IEC 60559.
3193         * m4/truncl-ieee.m4: New file.
3194         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
3195         m4/signbit.m4.
3196         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
3197
3198 2010-12-25  Bruno Haible  <bruno@clisp.org>
3199
3200         ceill-ieee: Make it work on OSF/1 5.1 with cc.
3201         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
3202         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
3203         test whether ceill works according to ISO C 99 with IEC 60559.
3204         * m4/ceill-ieee.m4: New file.
3205         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
3206         m4/signbit.m4.
3207         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
3208
3209 2010-12-25  Bruno Haible  <bruno@clisp.org>
3210
3211         Ensure all prerequisites of <wchar.h> are included.
3212         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
3213         before <wchar.h>.
3214         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3215         gl_MBRLEN_NUL_RETVAL): Likewise.
3216         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3217         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
3218         AC_FUNC_MBRTOWC): Likewise.
3219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3220         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3222         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3223         Likewise.
3224         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3225         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
3226         (gl_WCHAR_H): Improve comments.
3227         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3228
3229 2010-12-25  Bruno Haible  <bruno@clisp.org>
3230
3231         strtok_r: Fix C syntax error in autoconf macro.
3232         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
3233         characters in test program.
3234
3235 2010-12-24  Bruno Haible  <bruno@clisp.org>
3236
3237         ceil, trunc, round: Fix gcc warnings.
3238         * lib/ceil.c (MIN): Undefine before redefining.
3239         * lib/trunc.c (MIN): Likewise.
3240         * lib/round.c (MIN): Likewise.
3241         Include <math.h> first.
3242
3243 2010-12-24  Bruno Haible  <bruno@clisp.org>
3244
3245         select tests: Avoid failures on OSF/1 5.1.
3246         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
3247         failure of closing the last socket; it may fail with ECONNRESET.
3248
3249 2010-12-24  Eric Blake  <eblake@redhat.com>
3250
3251         stdint: avoid HP-UX 10.20 preprocessor bug
3252         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
3253         than #if.
3254         * tests/test-floor2.c (main): Likewise.
3255         Reported by Peter O'Gorman.
3256
3257         pipe: make obsoletion transition easier
3258         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
3259         * modules/pipe (Files): Include revived file.
3260         (Include): Drop reference, to mirror getdate's behavior.
3261
3262 2010-12-24  Bruno Haible  <bruno@clisp.org>
3263
3264         sys_socket: Hide mismatch of declarations on NonStop Kernel.
3265         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
3266         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
3267         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3268
3269 2010-12-24  Bruno Haible  <bruno@clisp.org>
3270
3271         gethostname: Ensure declaration on NonStop Kernel.
3272         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
3273         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3274
3275 2010-12-24  Bruno Haible  <bruno@clisp.org>
3276
3277         sys_select: Ensure all necessary types on NonStop Kernel.
3278         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
3279         include <sys/time.h>.
3280         * doc/posix-headers/sys_select.texi: Mention that it's missing on
3281         NonStop Kernel.
3282         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3283
3284 2010-12-24  Bruno Haible  <bruno@clisp.org>
3285
3286         sys_select: Remove unneeded include.
3287         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
3288         have <sys/select.h>.
3289
3290 2010-12-24  Bruno Haible  <bruno@clisp.org>
3291
3292         gethostname: Provide a fallback for HOST_NAME_MAX.
3293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
3294         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
3295         instead.
3296         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3297
3298 2010-12-24  Bruno Haible  <bruno@clisp.org>
3299
3300         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
3301         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
3302         (SA_RESTART): Likewise.
3303         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3304
3305 2010-12-24  Bruno Haible  <bruno@clisp.org>
3306
3307         signal: Define NSIG.
3308         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
3309         * tests/test-signal.c (nsig): New variable.
3310         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3311
3312 2010-12-24  Bruno Haible  <bruno@clisp.org>
3313
3314         rename, renameat: Avoid test failures on OSF/1 5.1.
3315         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
3316         alternative error codes.
3317         * tests/test-renameat.c (main): Likewise.
3318
3319 2010-12-24  Bruno Haible  <bruno@clisp.org>
3320
3321         *printf: Detect large precisions bug on Solaris 10/SPARC.
3322         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
3323         by Paul Eggert.
3324         * tests/test-snprintf-posix.h (test_function): Add this test code here
3325         too.
3326         * tests/test-sprintf-posix.h (test_function): Likewise.
3327         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3328         * tests/test-vasprintf-posix.c (test_function): Likewise.
3329         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
3330         around by gnulib.
3331         * doc/posix-functions/printf.texi: Likewise.
3332         * doc/posix-functions/snprintf.texi: Likewise.
3333         * doc/posix-functions/sprintf.texi: Likewise.
3334         * doc/posix-functions/vfprintf.texi: Likewise.
3335         * doc/posix-functions/vprintf.texi: Likewise.
3336         * doc/posix-functions/vsnprintf.texi: Likewise.
3337         * doc/posix-functions/vsprintf.texi: Likewise.
3338         * doc/posix-functions/dprintf.texi: Undo last commit.
3339         * doc/posix-functions/vdprintf.texi: Likewise.
3340
3341 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3342
3343         tests: port test-fdutimensat.c to Solaris 8
3344         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
3345         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
3346         On Solaris 8, it fails with errno == ENOSYS, because there is no
3347         futimens (so it can't use the fd), and there is no lutimens (so it
3348         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
3349
3350         vsnprintf: make more consistent with snprintf; doc fixes
3351
3352         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
3353         the byte count return problem was promoted from the snprintf-posix
3354         to the snprintf module.
3355         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3356         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
3357         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
3358         * tests/test-snprintf.c (main): Check the byte count returned.
3359         * tests/test-vsnprintf.c (main): Likewise.
3360
3361 2010-12-23  Eric Blake  <eblake@redhat.com>
3362
3363         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
3364         * modules/sigpipe (License): Relax license.
3365
3366 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3367
3368         doc: document Solaris printf bug with large float precisions
3369         * doc/posix-functions/dprintf.texi (dprintf):
3370         * doc/posix-functions/fprintf.texi (fprintf):
3371         * doc/posix-functions/printf.texi (printf):
3372         * doc/posix-functions/snprintf.texi (snprintf):
3373         * doc/posix-functions/sprintf.texi (sprintf):
3374         * doc/posix-functions/vdprintf.texi (vdprintf):
3375         * doc/posix-functions/vfprintf.texi (vfprintf):
3376         * doc/posix-functions/vprintf.texi (vprintf):
3377         * doc/posix-functions/vsnprintf.texi (vsnprintf):
3378         * doc/posix-functions/vsprintf.texi (vsprintf):
3379         Mention that these functions mishandle large floating point
3380         precisions on Solaris 10.  The same bug is also present in Solaris
3381         8, and I assume earlier.  This causes "cd gnulib-tests; make
3382         check" to fail on Solaris 8 (and I assume, later) when building
3383         the latest coreutils, in test-vasprintf-posix's call to
3384         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
3385         the wide flavors (e.g., wprintf) so this patch just updates the
3386         documentation for the narrow ones.
3387
3388         test-posixtm.c: add two tests
3389         * tests/test-posixtm.c: Add two tests, to highlight the
3390         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
3391         around this bug; this is merely to document it.
3392
3393 2010-12-22  Bruno Haible  <bruno@clisp.org>
3394
3395         getlogin_r: Work around portability problem on OSF/1.
3396         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
3397         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
3398         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
3399         test for a truncated result.
3400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
3401         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
3402         * modules/getlogin_r (Depends-on): Add memchr.
3403         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
3404
3405 2010-12-22  Bruno Haible  <bruno@clisp.org>
3406
3407         ptsname: Avoid test failure on OSF/1 5.1.
3408         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
3409         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
3410         (same_slave): New function.
3411         (main): Use it to compare ptsname's result with the expected file name.
3412
3413 2010-12-22  Bruno Haible  <bruno@clisp.org>
3414
3415         Port extended stdio modules to HP NonStop Kernel.
3416         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
3417         macros.
3418         * lib/fbufmode.c: Update comments.
3419         * lib/fflush.c: Likewise.
3420         * lib/fpurge.c: Likewise.
3421         * lib/freadable.c: Likewise.
3422         * lib/freadahead.c: Likewise.
3423         * lib/freading.c: Likewise.
3424         * lib/freadptr.c: Likewise.
3425         * lib/freadseek.c: Likewise.
3426         * lib/fseeko.c: Likewise.
3427         * lib/fseterr.c: Likewise.
3428         * lib/fwritable.c: Likewise.
3429         * lib/fwriting.c: Likewise.
3430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3431
3432 2010-12-22  Bruno Haible  <bruno@clisp.org>
3433
3434         ttyname_r: Work around bug on OSF/1 5.1.
3435         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
3436         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
3437         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
3438         present.
3439         * lib/ttyname_r.c (ttyname_r): Update comments.
3440
3441 2010-12-22  Bruno Haible  <bruno@clisp.org>
3442
3443         round: Implement result sign according to IEEE 754.
3444         * lib/round.c (MIN, MINUS_ZERO): New macros.
3445         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
3446         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
3447         * tests/test-round-ieee.c (main): Likewise.
3448         * tests/test-roundl-ieee.c (main): Likewise.
3449
3450         trunc: Implement result sign according to IEEE 754.
3451         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
3452         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
3453         * tests/test-trunc2.c: Include minus-zero.h.
3454         (MINUS_ZERO): New macro.
3455         (trunc_reference): Keep in sync with lib/trunc.c.
3456         * tests/test-truncf2.c: Include minus-zero.h.
3457         (MINUS_ZERO): New macro.
3458         (truncf_reference): Keep in sync with lib/trunc.c.
3459         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
3460         * tests/test-trunc-ieee.c (main): Likewise.
3461         * tests/test-truncl-ieee.c (main): Likewise.
3462
3463         ceil: Implement result sign according to IEEE 754.
3464         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
3465         (FUNC): Return -0.0 for -1 < x < 0.
3466         * tests/test-ceil2.c: Include minus-zero.h.
3467         (MINUS_ZERO): New macro.
3468         (ceil_reference): Keep in sync with lib/ceil.c.
3469         * tests/test-ceilf2.c: Include minus-zero.h.
3470         (MINUS_ZERO): New macro.
3471         (ceilf_reference): Keep in sync with lib/ceil.c.
3472         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
3473         * tests/test-ceil-ieee.c (main): Likewise.
3474         * tests/test-ceill-ieee.c (main): Likewise.
3475
3476         floor: Implement result sign according to IEEE 754.
3477         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
3478         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
3479         * tests/test-floorf2.c (floorf_reference): Likewise.
3480         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
3481         * tests/test-floor-ieee.c (main): Likewise.
3482         * tests/test-floorl-ieee.c (main): Likewise.
3483
3484 2010-12-22  Bruno Haible  <bruno@clisp.org>
3485
3486         getaddrinfo: Update doc.
3487         * doc/posix-functions/gai_strerror.texi: Return type is also different
3488         on AIX and HP-UX.
3489
3490 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3491
3492         getaddrinfo, inet_ntop: Update doc for Solaris.
3493         * doc/posix-functions/gai_strerror.texi: Return type is also an
3494         issue on Solaris 9 and earlier.
3495         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
3496         on Solaris 10 and earlier.
3497
3498 2010-12-21  Bruno Haible  <bruno@clisp.org>
3499
3500         New module 'roundl-ieee'.
3501         * modules/roundl-ieee: New file.
3502         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
3503         test whether roundl works according to ISO C 99 with IEC 60559.
3504         * m4/roundl-ieee.m4: New file.
3505         * modules/roundl-ieee-tests: New file.
3506         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
3507         * tests/test-roundl.c (main): Remove signbit tests.
3508         * modules/roundl-tests (Depends-on): Remove signbit.
3509         * doc/posix-functions/roundl.texi: Mention the new module.
3510
3511 2010-12-21  Bruno Haible  <bruno@clisp.org>
3512
3513         New module 'truncl-ieee'.
3514         * modules/truncl-ieee: New file.
3515         * modules/truncl-ieee-tests: New file.
3516         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
3517         * tests/test-truncl.c (main): Remove signbit tests.
3518         * modules/truncl-tests (Depends-on): Remove signbit.
3519         * doc/posix-functions/truncl.texi: Mention the new module.
3520
3521 2010-12-21  Bruno Haible  <bruno@clisp.org>
3522
3523         New module 'ceill-ieee'.
3524         * modules/ceill-ieee: New file.
3525         * modules/ceill-ieee-tests: New file.
3526         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
3527         * tests/test-ceill.c (main): Remove signbit tests.
3528         * modules/ceill-tests (Depends-on): Remove signbit.
3529         * doc/posix-functions/ceill.texi: Mention the new module.
3530
3531 2010-12-21  Bruno Haible  <bruno@clisp.org>
3532
3533         New module 'floorl-ieee'.
3534         * modules/floorl-ieee: New file.
3535         * modules/floorl-ieee-tests: New file.
3536         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
3537         * tests/test-floorl.c (main): Remove signbit tests.
3538         * modules/floorl-tests (Depends-on): Remove signbit.
3539         * doc/posix-functions/floorl.texi: Mention the new module.
3540
3541 2010-12-21  Bruno Haible  <bruno@clisp.org>
3542
3543         New module 'round-ieee'.
3544         * modules/round-ieee: New file.
3545         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
3546         whether round works according to ISO C 99 with IEC 60559.
3547         * m4/round-ieee.m4: New file.
3548         * modules/round-ieee-tests: New file.
3549         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
3550         * tests/test-round1.c (main): Remove signbit tests.
3551         * modules/round-tests (Depends-on): Remove 'signbit'.
3552         * doc/posix-functions/round.texi: Mention the new module.
3553
3554 2010-12-21  Bruno Haible  <bruno@clisp.org>
3555
3556         New module 'trunc-ieee'.
3557         * modules/trunc-ieee: New file.
3558         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
3559         whether trunc works according to ISO C 99 with IEC 60559.
3560         * m4/trunc-ieee.m4: New file.
3561         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
3562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
3563         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
3564         * modules/trunc-ieee-tests: New file.
3565         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
3566         * tests/test-trunc1.c (main): Remove signbit tests.
3567         * modules/trunc-tests (Depends-on): Remove 'signbit'.
3568         * doc/posix-functions/trunc.texi: Mention the new module.
3569
3570 2010-12-21  Bruno Haible  <bruno@clisp.org>
3571
3572         New module 'ceil-ieee'.
3573         * modules/ceil-ieee: New file.
3574         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
3575         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
3576         ISO C 99 with IEC 60559.
3577         * m4/ceil-ieee.m4: New file.
3578         * modules/ceil (Files): Add lib/ceil.c.
3579         (Depends-on): Add 'float'.
3580         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3581         * lib/math.in.h (ceil): New declaration.
3582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
3583         REPLACE_CEIL.
3584         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
3585         * modules/ceil-ieee-tests: New file.
3586         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
3587         * tests/test-math-c++.cc: Check the signature of 'ceil'.
3588         * doc/posix-functions/ceil.texi: Mention the new module.
3589
3590 2010-12-21  Bruno Haible  <bruno@clisp.org>
3591
3592         New module 'floor-ieee'.
3593         * modules/floor-ieee: New file.
3594         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
3595         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
3596         ISO C 99 with IEC 60559.
3597         * m4/floor-ieee.m4: New file.
3598         * modules/floor (Files): Add lib/floor.c.
3599         (Depends-on): Add 'float'.
3600         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3601         * lib/math.in.h (floor): New declaration.
3602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
3603         REPLACE_FLOOR.
3604         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
3605         * modules/floor-ieee-tests: New file.
3606         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
3607         * tests/test-math-c++.cc: Check the signature of 'floor'.
3608         * doc/posix-functions/floor.texi: Mention the new module.
3609
3610 2010-12-21  Bruno Haible  <bruno@clisp.org>
3611
3612         New module 'roundf-ieee'.
3613         * modules/roundf-ieee: New file.
3614         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
3615         test whether roundf works according to ISO C 99 with IEC 60559.
3616         * m4/roundf-ieee.m4: New file.
3617         * modules/roundf-ieee-tests: New file.
3618         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
3619         * tests/test-roundf1.c (main): Remove signbit tests.
3620         * modules/roundf-tests (Depends-on): Remove 'signbit'.
3621         * doc/posix-functions/roundf.texi: Mention the new module.
3622
3623 2010-12-21  Bruno Haible  <bruno@clisp.org>
3624
3625         New module 'truncf-ieee'.
3626         * modules/truncf-ieee: New file.
3627         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
3628         test whether truncf works according to ISO C 99 with IEC 60559.
3629         * m4/truncf-ieee.m4: New file.
3630         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
3631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
3632         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
3633         * modules/truncf-ieee-tests: New file.
3634         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
3635         * tests/test-truncf1.c (main): Remove signbit tests.
3636         * modules/truncf-tests (Depends-on): Remove 'signbit'.
3637         * doc/posix-functions/truncf.texi: Mention the new module.
3638
3639 2010-12-21  Bruno Haible  <bruno@clisp.org>
3640
3641         New module 'ceilf-ieee'.
3642         * modules/ceilf-ieee: New file.
3643         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
3644         test whether ceilf works according to ISO C 99 with IEC 60559.
3645         * m4/ceilf-ieee.m4: New file.
3646         * modules/ceilf-ieee-tests: New file.
3647         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
3648         * tests/test-ceilf1.c (main): Remove signbit tests.
3649         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
3650         * doc/posix-functions/ceilf.texi: Mention the new module.
3651
3652 2010-12-21  Bruno Haible  <bruno@clisp.org>
3653
3654         New module 'floorf-ieee'.
3655         * modules/floorf-ieee: New file.
3656         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
3657         test whether floorf works according to ISO C 99 with IEC 60559.
3658         * m4/floorf-ieee.m4: New file.
3659         * modules/floorf-ieee-tests: New file.
3660         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
3661         * tests/test-floorf1.c (main): Remove signbit tests.
3662         * modules/floorf-tests (Depends-on): Remove 'signbit'.
3663         * doc/posix-functions/floorf.texi: Mention the new module.
3664
3665 2010-12-21  Bruno Haible  <bruno@clisp.org>
3666
3667         Support for minus zero in autoconf macros.
3668         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
3669         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
3670         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
3671         * tests/minus-zero.h: Update comments.
3672
3673 2010-12-21  Bruno Haible  <bruno@clisp.org>
3674
3675         Tests for module 'ceil'.
3676         * modules/ceil-tests: New file.
3677         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
3678         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
3679
3680 2010-12-21  Bruno Haible  <bruno@clisp.org>
3681
3682         Tests for module 'floor'.
3683         * modules/floor-tests: New file.
3684         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
3685         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
3686
3687 2010-12-21  Bruno Haible  <bruno@clisp.org>
3688
3689         math: Fix indentation.
3690         * lib/math.in.h (floorf): Fix indentation.
3691
3692 2010-12-21  Bruno Haible  <bruno@clisp.org>
3693
3694         Fix cross-compilation guesses on Solaris.
3695         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
3696         not match "solaris2.10".
3697         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3698         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
3699         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3700
3701 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
3704         This fixes a problem observed with the latest coreutils snapshot
3705         that caused a test to fail on Solaris 8.  src/csplit.c's call
3706         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
3707         earlier, instead of returning the number of bytes that would have
3708         been generated; this causes csplit to incorrectly report memory
3709         exhaustion.
3710         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3711         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3712         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3713         comments to match.
3714         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3715         Fix typo in matching older versions of Solaris: "solaris2.10"
3716         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3717         only for guessing while cross-compiling.
3718         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3719
3720 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         ftoastr: fix comment again
3723         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3725         Also, simplify example a bit by using flags = 0.
3726
3727 2010-12-20  Bruno Haible  <bruno@clisp.org>
3728
3729         round*, trunc*: Update documentation regarding glibc.
3730         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3731         * doc/posix-functions/round.texi: Likewise.
3732         * doc/posix-functions/roundl.texi: Likewise.
3733         * doc/posix-functions/truncf.texi: Likewise.
3734         * doc/posix-functions/trunc.texi: Likewise.
3735         * doc/posix-functions/truncl.texi: Likewise.
3736
3737 2010-12-20  Bruno Haible  <bruno@clisp.org>
3738
3739         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3740         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3741         * doc/posix-functions/round.texi: Likewise.
3742         * doc/posix-functions/roundl.texi: Likewise.
3743
3744 2010-12-20  Bruno Haible  <bruno@clisp.org>
3745
3746         ttyname_r: Add missing declaration on HP-UX 11.
3747         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3748         HAVE_TTYNAME_R.
3749         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3750         declared. Set HAVE_TTYNAME_R always.
3751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3752         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3753         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3754         HAVE_TTYNAME_R.
3755         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3756
3757 2010-12-20  Bruno Haible  <bruno@clisp.org>
3758
3759         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3760         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3761         * doc/posix-functions/getlogin_r.texi: Likewise.
3762         * tests/test-getlogin.c: Include <errno.h>.
3763         (main): Avoid test failure on HP-UX 11.11.
3764         * tests/test-getlogin_r.c (main): Likewise.
3765
3766 2010-12-20  Bruno Haible  <bruno@clisp.org>
3767
3768         getlogin_r: Add missing declaration on HP-UX 11.
3769         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3770         declared also when it exists as a function.
3771         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3772
3773 2010-12-20  Bruno Haible  <bruno@clisp.org>
3774
3775         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3776         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3777         through wcrtomb.
3778
3779 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         ftoastr: fix comment
3782         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3783         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3784
3785 2010-12-19  Bruno Haible  <bruno@clisp.org>
3786
3787         isnan: Ensure it is a macro.
3788         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3789         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3790         Solaris.
3791
3792 2010-12-19  Bruno Haible  <bruno@clisp.org>
3793
3794         ldexpl test: Fix link error on OSF/1 5.1.
3795         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3796
3797 2010-12-19  Bruno Haible  <bruno@clisp.org>
3798
3799         wctype: Make it work in C++ mode on OSF/1 5.1.
3800         * lib/wctype.in.h (iswblank): Declare but not define here.
3801         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3802         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3803         * modules/wctype (Files): Add lib/iswblank.c.
3804
3805 2010-12-19  Bruno Haible  <bruno@clisp.org>
3806
3807         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3808         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3809         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3810
3811 2010-12-19  Bruno Haible  <bruno@clisp.org>
3812
3813         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3815         _POSIX_PII_SOCKET.
3816         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3817         * doc/posix-functions/recvfrom.texi: Likewise.
3818         * doc/posix-functions/send.texi: Likewise.
3819         * doc/posix-functions/sendto.texi: Likewise.
3820
3821 2010-12-19  Bruno Haible  <bruno@clisp.org>
3822
3823         tcgetsid: Add missing declaration on OSF/1 5.1.
3824         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3825         HAVE_TCGETSID.
3826         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3827         Don't set HAVE_TCGETSID.
3828         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3829         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3830         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3831         HAVE_TCGETSID.
3832         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3833
3834 2010-12-19  Bruno Haible  <bruno@clisp.org>
3835
3836         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3837         * lib/stdio.in.h: During the include_next statement, let recursive
3838         includes of this file include only the system header file.
3839
3840 2010-12-19  Bruno Haible  <bruno@clisp.org>
3841
3842         iconv_open: Fix regression from 2010-12-04.
3843         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3844         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3845
3846 2010-12-19  Bruno Haible  <bruno@clisp.org>
3847
3848         stdbool test: Avoid a gcc warning.
3849         * tests/test-stdbool.c (main): Fail if e1 is false.
3850         Reported by Jim Meyering.
3851
3852 2010-12-19  Jim Meyering  <meyering@redhat.com>
3853
3854         setenv: restore to working order
3855         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3856         mistakenly removed.
3857         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3858         HAVE_SETENV.
3859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3860         HAVE_SETENV.
3861
3862 2010-12-19  Bruno Haible  <bruno@clisp.org>
3863
3864         Document some different function declarations on OSF/1 5.1.
3865         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3866         * doc/posix-functions/inet_ntop.texi: Likewise.
3867         * doc/posix-functions/gethostname.texi: Likewise.
3868         * lib/unistd.in.h (gethostname): Update comment.
3869
3870 2010-12-19  Bruno Haible  <bruno@clisp.org>
3871
3872         doc: Mention vasprintf-posix module.
3873         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3874         the 'vasprintf-posix' module.
3875         * doc/glibc-functions/vasprintf.texi: Likewise.
3876
3877 2010-12-19  Bruno Haible  <bruno@clisp.org>
3878
3879         unsetenv: Add missing declaration on OSF/1 5.1.
3880         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3882         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3884         not HAVE_UNSETENV.
3885         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3886         HAVE_UNSETENV.
3887         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3888
3889 2010-12-19  Bruno Haible  <bruno@clisp.org>
3890
3891         setenv: Add missing declaration on OSF/1 5.1.
3892         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3893         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3894         declared. Don't set HAVE_SETENV.
3895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3896         not HAVE_SETENV.
3897         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3898         HAVE_SETENV.
3899         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3900
3901 2010-12-19  Bruno Haible  <bruno@clisp.org>
3902
3903         nl_langinfo tests: Avoid gcc warning.
3904         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3905
3906 2010-12-19  Bruno Haible  <bruno@clisp.org>
3907
3908         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3909         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3910         _GL_CXXALIAS_SYS.
3911
3912 2010-12-19  Bruno Haible  <bruno@clisp.org>
3913
3914         stdbool: Relax test.
3915         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3916         address to 'bool' work in static initializer, for compilers other than
3917         GCC.
3918
3919 2010-12-19  Bruno Haible  <bruno@clisp.org>
3920
3921         ftello: Add missing declaration on OSF/1 5.1.
3922         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3923         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3925         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3926         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3927
3928 2010-12-19  Bruno Haible  <bruno@clisp.org>
3929
3930         fseeko: Add missing declaration on OSF/1 5.1.
3931         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3934         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3935         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3936
3937 2010-12-19  Bruno Haible  <bruno@clisp.org>
3938
3939         fchdir: Add missing declaration on OSF/1 5.1.
3940         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3943         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3944         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3945
3946 2010-12-19  Bruno Haible  <bruno@clisp.org>
3947
3948         relocatable-prog-wrapper: Separate from relocatable-prog.
3949         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3950         uninstall-relocwrapper rule here.
3951         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3952         Reported by Ian Beckwith <ianb@erislabs.net>.
3953
3954 2010-12-19  Bruno Haible  <bruno@clisp.org>
3955
3956         unistr/u8-mbsnlen: Add missing dependency.
3957         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3958         Reported by Ian Beckwith <ianb@erislabs.net>.
3959
3960 2010-12-19  Bruno Haible  <bruno@clisp.org>
3961
3962         iconv: Make it possible again to use this module without 'iconv-h'.
3963         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3964         if it is not defined.
3965         Reported by Ian Beckwith <ianb@erislabs.net>.
3966
3967 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3968
3969         acl: port to Solaris 8 when copying from tmpfs to ufs
3970         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
3971         error number.  Problem observed on Solaris 8 with latest
3972         coreutils, with "mv A B", where A is on a tmpfs file system and B
3973         is on a ufs file system.  This caused coreutils' mv/part-symlink
3974         test to fail.
3975
3976         tests: set fail=0 at start
3977         * tests/init.sh (setup_): Move fail=0 initialization here ...
3978         (mktempd_): ... from here, so that tests can rely on fail being
3979         set to 0 initially.  This fixes a problem in coreutils; see:
3980         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
3981
3982 2010-12-18  Bruno Haible  <bruno@clisp.org>
3983
3984         memmem-simple: Stylistic changes.
3985         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
3986         Fix preprocessor directive indentation.
3987
3988 2010-12-15  Pádraig Brady <P@draigBrady.com>
3989
3990         memmem, memmem-simple: reorganize and expand empty needle check
3991         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
3992         functional checks to memmem-simple so that one has a fully functional
3993         memmem by using just this module.
3994         Restrict the performance only check to the memmem module.
3995         Also expand the empty needle check to ensure the correct
3996         pointer is returned, not just a non NULL pointer.
3997         * doc/glibc-functions/memmem.texi: Rearrange the portability
3998         documentation to correlate with the rearranged checks.
3999         Clarify exactly how the memmem and memmem-simple modules
4000         relate to each other.
4001
4002 2010-12-15  Pádraig Brady <P@draigBrady.com>
4003             Bruno Haible  <bruno@clisp.org>
4004
4005         Improve cross-compilation guesses for uClibc.
4006         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
4007         that uClibc does not have the glibc bug.
4008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4009         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
4010
4011 2010-12-14  Eric Blake  <eblake@redhat.com>
4012
4013         configmake: provide fallbacks for oldest supported autotools
4014         * m4/configmake.m4: New file.
4015         * modules/configmake (Files): Ship it.
4016         (configure.ac): Use it to guarantee fallbacks.
4017
4018 2010-12-13  Pádraig Brady <P@draigBrady.com>
4019
4020         read-file: Improve handling of large files
4021         * lib/read-file.c (fread_file): Minimize realloc()s
4022         for regular files, and better manage sizes around SIZE_MAX.
4023
4024 2010-12-13  Eric Blake  <eblake@redhat.com>
4025
4026         cloexec, fcntl: relax license
4027         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
4028         consent from all contributors.
4029         * modules/fcntl (License): Likewise.
4030
4031 2010-12-10  Bruno Haible  <bruno@clisp.org>
4032
4033         Tests for module 'pipe-posix'.
4034         * modules/pipe-posix-tests: New file.
4035         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
4036
4037 2010-12-10  Bruno Haible  <bruno@clisp.org>
4038
4039         pipe-posix: Make it work in C++ mode.
4040         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
4041         (pipe): Use common idiom, not a macro definition.
4042         * lib/pipe.c: New file.
4043         * m4/pipe.m4: New file.
4044         * modules/pipe-posix (Description): Enhance.
4045         (Files): Add lib/pipe.c, m4/pipe.m4.
4046         (configure.ac): Invoke gl_FUNC_PIPE.
4047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
4048         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
4049         * tests/test-unistd-c++.cc: Check the signature of pipe.
4050
4051 2010-12-10  Bruno Haible  <bruno@clisp.org>
4052
4053         Rename module 'pipe' to 'spawn-pipe'.
4054         * modules/spawn-pipe: New file, renamed from modules/pipe.
4055         (Files, configure.ac, Makefile.am): Update.
4056         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
4057         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
4058         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
4059         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
4060         "spawn-pipe.h" instead of "pipe.h".
4061         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
4062         to gl_SPAWN_PIPE.
4063         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
4064         (Files, Makefile.am): Update.
4065         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
4066         Update.
4067         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
4068         Include "spawn-pipe.h" instead of "pipe.h".
4069         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
4070         * lib/javacomp.c: Likewise.
4071         * lib/javaversion.c: Likewise.
4072         * lib/pipe-filter-gi.c: Likewise.
4073         * lib/pipe-filter-ii.c: Likewise.
4074         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
4075         * modules/javacomp (Depends-on): Likewise.
4076         * modules/javaversion (Depends-on): Likewise.
4077         * modules/pipe-filter-gi (Depends-on): Likewise.
4078         * modules/pipe-filter-ii (Depends-on): Likewise.
4079         * MODULES.html.sh (Executing programs): Update.
4080         * NEWS: Mention the change.
4081
4082 2010-12-10  Eric Blake  <eblake@redhat.com>
4083
4084         pipe-posix: new module
4085         * modules/pipe-posix: New file.
4086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
4087         (gl_UNISTD_H): Check for declaration.
4088         * modules/unistd (Makefile.am): Substitute it.
4089         * lib/unistd.in.h (pipe): Provide it for mingw.
4090         * doc/posix-functions/pipe.texi (pipe): Update documentation.
4091         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
4092
4093 2010-12-07  Bruno Haible  <bruno@clisp.org>
4094
4095         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
4096         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
4097         u8_strcmp_gnu.
4098         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
4099
4100 2010-12-06  Bruno Haible  <bruno@clisp.org>
4101
4102         Update internal documentation.
4103         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
4104
4105 2010-12-04  Bruno Haible  <bruno@clisp.org>
4106
4107         Put more information about failed tests into the test return codes.
4108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
4109         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
4110         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4111         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4112         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4115         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4116         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
4117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4119         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4120         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4121         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4122         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
4123         returns a bit mask.
4124         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4125         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4126         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4127         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4128         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4132         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4133         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4134         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4135         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4136         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4138         * m4/link.m4 (gl_FUNC_LINK): Likewise.
4139         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4140         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
4141         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
4142         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4143         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
4144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4145         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4147         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4148         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4149         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4150         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4151         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4152         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4153         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
4154         gl_PRINTF_PRECISION): Likewise.
4155         * m4/regex.m4 (gl_REGEX): Likewise.
4156         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4157         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4158         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
4159         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4163         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
4164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4165         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4166         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4167         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4168         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4169         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4170         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4171         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4172         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4173         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4174         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4175         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
4176         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
4177         enumerated value.
4178         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
4179
4180 2010-12-04  Bruno Haible  <bruno@clisp.org>
4181
4182         Update for Solaris 11 2010-11.
4183         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
4184         Express, released in November 2010.
4185
4186 2010-12-04  Bruno Haible  <bruno@clisp.org>
4187
4188         nproc: Relax license.
4189         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
4190         and Paul Eggert.
4191         Requested by Ludovic Courtès <ludo@gnu.org>.
4192
4193 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4194
4195         utimecmp: fine-grained src to nearby coarse-grained dest
4196
4197         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
4198         and the source is on a file system with higher-resolution time
4199         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
4200         not work, and the time stamps are close together, the algorithm to
4201         determine the exact resolution from the read-back mtime was buggy:
4202         it had a "!=" where it should have had an "==".  This bug has been
4203         in the code ever since it was introduced to gnulib.
4204         Problem reported by Dan Jacobson in
4205         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
4206
4207 2010-11-30  Bruno Haible  <bruno@clisp.org>
4208
4209         strerror_r-posix: Fix autoconf test.
4210         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
4211
4212 2010-11-28  Bruno Haible  <bruno@clisp.org>
4213             Paul Eggert  <eggert@cs.ucla.edu>
4214
4215         Tests for module 'getdomainname'.
4216         * modules/getdomainname-tests: New file.
4217         * tests/test-getdomainname.c: New file, based on
4218         tests/test-gethostname.c.
4219
4220 2010-11-28  Bruno Haible  <bruno@clisp.org>
4221             Paul Eggert  <eggert@cs.ucla.edu>
4222
4223         getdomainname: Use the system function when possible.
4224         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
4225         (getdomainname): Replace if needed. Provide the declaration if it is
4226         missing. Don't use _GL_CXXALIAS_SYS_CAST.
4227         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
4228         (getdomainname): When the system has getdomainname, call the system
4229         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
4230         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4231         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
4232         found in libnsl. Look for the declaration also in <netdb.h>. Replace
4233         the function if its second argument is of type 'int' or if it is found
4234         in libnsl.
4235         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
4236         <sys/systeminfo.h> and sysinfo().
4237         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
4238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4239         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
4240         HAVE_GETDOMAINNAME.
4241         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
4242         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
4243         * doc/glibc-functions/getdomainname.texi: Document the problems with
4244         the getdomainname declaration.
4245
4246 2010-11-28  Bruno Haible  <bruno@clisp.org>
4247
4248         sys_socket: Ensure ss_family field on AIX.
4249         * lib/sys_socket.in.h (ss_family): New macro definition.
4250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
4251         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
4252         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4253         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4254         * modules/sys_socket (Makefile.am): Substitute
4255         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4256         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
4257
4258 2010-11-27  Bruno Haible  <bruno@clisp.org>
4259
4260         readline: Improve configure output.
4261         * m4/readline.m4 (gl_FUNC_READLINE): Make the
4262         "checking for readline..." result understandable.
4263
4264 2010-11-27  Bruno Haible  <bruno@clisp.org>
4265
4266         *printf-posix: Detect a bug on Solaris 10/x86.
4267         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
4268         for floating-point output.
4269         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
4270         directive.
4271         * tests/test-snprintf-posix.h (test_function): Likewise.
4272         * tests/test-sprintf-posix.h (test_function): Likewise.
4273         * tests/test-vasprintf-posix.c (test_function): Likewise.
4274         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
4275         * doc/posix-functions/printf.texi: Likewise.
4276         * doc/posix-functions/snprintf.texi: Likewise.
4277         * doc/posix-functions/sprintf.texi: Likewise.
4278         * doc/posix-functions/vfprintf.texi: Likewise.
4279         * doc/posix-functions/vprintf.texi: Likewise.
4280         * doc/posix-functions/vsnprintf.texi: Likewise.
4281         * doc/posix-functions/vsprintf.texi: Likewise.
4282         * doc/glibc-functions/obstack_printf.texi: Likewise.
4283         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4284
4285 2010-11-27  Bruno Haible  <bruno@clisp.org>
4286
4287         Fix link error when module libunistring-optional is in use.
4288         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
4289         * modules/striconveha-tests (Makefile.am): Likewise.
4290
4291 2010-11-27  Bruno Haible  <bruno@clisp.org>
4292
4293         regex: Mention link dependencies.
4294         * modules/regex (Link): New section.
4295         * modules/rpmatch (Link): Likewise.
4296         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
4297
4298 2010-11-27  Bruno Haible  <bruno@clisp.org>
4299
4300         ftoastr: Fix compilation error on Solaris.
4301         * lib/ftoastr.c: Include <config.h>.
4302
4303 2010-11-27  Bruno Haible  <bruno@clisp.org>
4304
4305         getloadavg: Update documentation.
4306         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
4307
4308 2010-11-27  Bruno Haible  <bruno@clisp.org>
4309
4310         sys_socket: Fix test whether the functions are declared.
4311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
4312         not <sys/select.h>.
4313
4314 2010-11-27  Bruno Haible  <bruno@clisp.org>
4315
4316         getpass: Make sure to get system declaration on some platforms.
4317         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
4318         gl_USE_SYSTEM_EXTENSIONS.
4319         * modules/getpass (Depends-on): Add extensions.
4320
4321 2010-11-26  Bruno Haible  <bruno@clisp.org>
4322
4323         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
4324         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
4325         'iconv' module is present.
4326         (ICONV_CONST): New macro.
4327         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
4328         ICONV_CONST.
4329         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
4330         set ICONV_CONST.
4331         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
4332         here.
4333         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
4334         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
4335         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
4336         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
4337         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
4338         present.
4339
4340 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4341
4342         ftoastr: comment fix
4343         * lib/ftoastr.c: "little" -> "little or no" in comment
4344
4345 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4346
4347         stdint: port to GCC 4.3 + OSX + Octave
4348         On this platform, stdint.h is buggy and defines int64_t to long
4349         long int.  The replacement defined it to long int, causing
4350         problems with C++ style name mangling.  Instead, trust the system
4351         definition if INT64_MAX is defined, and likewise for the unsigned
4352         variant.   Problem reported by Jarno Rajahalme in
4353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
4354         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
4355         and don't mess with int64_t and INT64_MAX in this case.
4356         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
4357
4358 2010-11-24  Bruno Haible  <bruno@clisp.org>
4359
4360         doc: Corrections regarding MacOS X 10.4 and 10.5.
4361         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
4362         MacOS X.
4363         Reported by Simon Josefsson.
4364
4365 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
4366
4367         Uninstall ".bin" files installed by relocwrapper.
4368         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
4369         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
4370         unless it is already there.
4371
4372 2010-11-21  Bruno Haible  <bruno@clisp.org>
4373
4374         Update for NetBSD 5.0.
4375         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4376         NetBSD; the test fails on NetBSD 5.0.
4377         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4378         about NetBSD.
4379
4380 2010-11-21  Bruno Haible  <bruno@clisp.org>
4381
4382         Update for HP-UX 11.23 and HP-UX 11.31.
4383         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
4384         HP-UX.
4385
4386 2010-11-21  Bruno Haible  <bruno@clisp.org>
4387
4388         Update for MacOS X 10.5.
4389         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4390         MacOS X; the test fails on MacOS X 10.5.8.
4391         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4392         about MacOS X.
4393
4394 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
4395
4396         bootstrap: add bootstrap_sync option.
4397         See discussion at
4398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
4399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
4400         * build-aux/bootstrap: Accept --bootstrap-sync to update
4401         bootstrap if it is not identical to the local gnulib's
4402         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
4403         enable this by default.  Accept --no-bootstrap-sync to disable
4404         it.
4405
4406 2010-11-20  Bruno Haible  <bruno@clisp.org>
4407
4408         Ensure that <features.h> is included before __GLIBC__ is tested.
4409         * lib/printf-parse.h: Include <features.h>.
4410         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
4411         Reported by Mike Frysinger <vapier@gentoo.org>.
4412
4413         Ensure that <features.h> is included before __GLIBC__ is tested.
4414         * lib/wchar.in.h: Include <features.h>.
4415         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
4416         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
4417         Reported by Mike Frysinger <vapier@gentoo.org>.
4418
4419         Ensure that <features.h> is included before __GLIBC__ is tested.
4420         * lib/arpa_inet.in.h: Include <features.h>.
4421         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
4422         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
4423         Reported by Mike Frysinger <vapier@gentoo.org>.
4424
4425         Ensure that <features.h> is included before __GLIBC__ is tested.
4426         * build-aux/link-warning.h: Include <features.h>.
4427         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
4428         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
4429         Reported by Mike Frysinger <vapier@gentoo.org>.
4430
4431         Ensure that <features.h> is included before __GLIBC__ is tested.
4432         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
4433         Reported by Mike Frysinger <vapier@gentoo.org>.
4434
4435 2010-11-20  Bruno Haible  <bruno@clisp.org>
4436
4437         memmem: Fix autoconf test.
4438         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
4439
4440 2010-11-20  Bruno Haible  <bruno@clisp.org>
4441
4442         Port to uClibc.
4443         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
4444         * lib/fcntl.in.h: Likewise.
4445         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
4446         * lib/mbrtowc.c (mbrtowc): Likewise.
4447         * lib/relocatable.c (find_shared_library_fullname): Likewise.
4448         * lib/strerror_r.c: Likewise.
4449         * lib/unistr/u8-strnlen.c: Likewise.
4450         * lib/vasnprintf.c (decimal_point_char): Likewise.
4451         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4452         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4454         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4455         * tests/test-sigaction.c (handler, main): Likewise.
4456         * lib/freading.h: Treat uClibc like a non-glibc platform.
4457         * lib/freading.c: Likewise.
4458         * lib/gettext.h: Likewise.
4459         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
4460         Likewise.
4461         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
4462         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4463         * lib/propername.c (proper_name_utf8): Likewise.
4464         * lib/spawn.in.h: Likewise.
4465         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
4466         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
4467         mem_cd_iconveh_internal): Likewise.
4468         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
4469         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4470         strstr, strcasestr): Likewise.
4471         * lib/unicodeio.c (unicode_to_mb): Likewise.
4472         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
4473         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
4474         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
4475         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
4476         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
4477         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
4478         * lib/unistr/u8-stpncpy.c: Likewise.
4479         * lib/vasnprintf.c (VASNPRINTF): Likewise.
4480         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
4481         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4482         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4483         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
4485         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
4486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
4487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4488         Likewise.
4489         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4490         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4491         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4494         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4495         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4496         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4497         * tests/test-getopt.h (OPTIND_MIN): Likewise.
4498         * tests/test-striconveha.c (main): Likewise.
4499         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4500         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
4501         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
4502         * doc/posix-functions/getline.texi: Likewise.
4503         Reported by Mike Frysinger <vapier@gentoo.org>.
4504
4505 2010-11-20  Bruno Haible  <bruno@clisp.org>
4506
4507         nproc: Fix condition.
4508         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
4509         HAVE_PTHREAD_AFFINITY_NP.
4510
4511 2010-11-20  Bruno Haible  <bruno@clisp.org>
4512
4513         Fix a comment.
4514         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
4515
4516 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
4517
4518         ftoastr: don't assume snprintf
4519         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
4520         Implement a subset of snprintf here, by using sprintf safely.
4521         * modules/ftoastr (Depends-on): Remove snprintf.
4522
4523 2010-11-19  Jim Meyering  <meyering@redhat.com>
4524
4525         test-rename.h: fix compilation failure
4526         * tests/test-rename.h (test_rename): Add omitted "}".
4527
4528 2010-11-17  Jim Meyering  <meyering@redhat.com>
4529
4530         maint.mk: add a URL discussing the no-@acronym policy
4531         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
4532
4533 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4534
4535         ftoastr: depend on snprintf, improve comments
4536         * lib/ftoastr.c: Also mention Loitsch's draft.
4537         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
4538         needed in the current implementation, but it might simplify
4539         speeding up the code later.
4540         * modules/ftoastr: Depend on snprintf; this improves portability.
4541         Suggested by Bruno Haible in the same email.
4542
4543         ftoastr: port to hosts lacking strtof and strtold
4544         Problem reported by Bruno Haible in
4545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
4546         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
4547         environment and strtold (and presumably strtof) are not available.
4548         * modules/ftoastr (Files): Add m4/c-strtod.m4.
4549         (configure.ac): Require gl_C99_STRTOLD.
4550
4551 2010-11-18  Bruno Haible  <bruno@clisp.org>
4552
4553         c-strtold: Avoid link error on AIX 7.
4554         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
4555         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
4556         (gl_C_STRTOLD): Test whether strtold_l exists.
4557         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4558
4559 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4560
4561         intprops: new macro INT_BITS_STRLEN_BOUND
4562         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
4563         ftoastr.h.  This exposes an internal of intprops.h that was formerly
4564         not exposed.  Also, it uses a slightly tighter bound than before;
4565         though this makes no practical difference, we might as well be as
4566         tight as we easily can.
4567
4568         ftoastr: new module, for lossless conversion of floats to short strings
4569         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
4570         * modules/ftoastr: New files.
4571
4572 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4573
4574         bootstrap: port to Solaris sed
4575         * build-aux/bootstrap (get_version): Port to Solaris sed.
4576         See Ralf Wildenhues's note in
4577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
4578
4579 2010-11-14  Jim Meyering  <meyering@redhat.com>
4580
4581         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
4582         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
4583         and move definition closer to sole use.
4584
4585 2010-11-13  Jim Meyering  <meyering@redhat.com>
4586
4587         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
4588         Now we require at least autoconf-2.59, which means the work-around
4589         is no longer needed.
4590         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
4591         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4592         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4593         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4594         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4595
4596 2010-11-13  Bruno Haible  <bruno@clisp.org>
4597
4598         rename, renameat: Avoid test failures at NFS mounted locations.
4599         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
4600         functions.
4601         (test_rename): Use assert_nonexistent.
4602         * tests/test-rename.c: Include <dirent.h>.
4603         * tests/test-renameat.c: Likewise.
4604         Reported by Gary V. Vaughan <gary@gnu.org>.
4605
4606         rename, renameat: Document Linux bug with NFS
4607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
4608         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
4609         * doc/posix-functions/renameat.texi: Likewise.
4610         Suggested by Eric Blake.
4611
4612 2010-11-13  Bruno Haible  <bruno@clisp.org>
4613
4614         rename test: Add comments.
4615         * tests/test-rename.h (test_rename): Add structure and comments.
4616
4617 2010-11-13  Eric Blake  <eblake@redhat.com>
4618
4619         maintainer-makefile: cover a few more files
4620         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
4621         scripts generated within C files, for libvirt.
4622
4623 2010-11-13  Bruno Haible  <bruno@clisp.org>
4624
4625         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
4626         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
4627         character, return the number of bytes that belong together, not always
4628         1.
4629         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4630         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4631         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4632         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
4633         number of bytes of an invalid character.
4634         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
4635         (main): Invoke it.
4636         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
4637         results.
4638         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
4639         malformed byte sequences.
4640         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
4641         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
4642         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
4643         Reported by Ben Pfaff and Paolo Bonzini.
4644
4645 2010-11-13  Bruno Haible  <bruno@clisp.org>
4646
4647         openat: Work around glibc bug with fchownat() and empty file names.
4648         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
4649         (gl_FUNC_FCHOWNAT): Invoke it.
4650         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
4651         * doc/posix-functions/fchownat.texi: Document the glibc bug.
4652         Reported by Gary V. Vaughan <gary@gnu.org>.
4653
4654 2010-11-13  Bruno Haible  <bruno@clisp.org>
4655
4656         openat: Ensure autoconf macro ordering.
4657         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
4658         gl_USE_SYSTEM_EXTENSIONS.
4659         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
4660
4661 2010-11-13  Bruno Haible  <bruno@clisp.org>
4662
4663         Update comments.
4664         * lib/unistr/u8-check.c: Update file name in comments.
4665         * lib/unistr/u8-mblen.c: Likewise.
4666         * lib/unistr/u8-prev.c: Likewise.
4667         * lib/unistr/u8-strmblen.c: Likewise.
4668         * lib/unistr/u8-strmbtouc.c: Likewise.
4669
4670 2010-11-13  Jim Meyering  <meyering@redhat.com>
4671
4672         tests: avoid test failure on Solaris 10 due to lack of PATH export
4673         * tests/test-update-copyright.sh: Don't forget to export PATH.
4674
4675         init.sh: ensure that IFS is defined, just in case...
4676         * tests/init.sh (setup_): Ensure that IFS is defined,
4677         so that saving and restoring it works as expected.  This
4678         appears to be useful at least for an old version of dash
4679         from a long time ago (RH 6).  See here for details:
4680         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
4681
4682         maint.mk: tighten "test a == b" check
4683         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
4684         test to files that contain something like #!/bin/sh.
4685         Without this, coreutils would get two false positives in
4686         the comments of C source files.
4687
4688 2010-11-12  Eric Blake  <eblake@redhat.com>
4689
4690         bootstrap: fix typo in previous attempt
4691         * build-aux/bootstrap (buildreq): Correct the grouping.
4692         Reported by Paul Eggert.
4693
4694         maintainer-makefile: prohibit test x == x
4695         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
4696         Based on a report by Matthias Bolte.
4697
4698         bootstrap: allow FreeBSD gzip
4699         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
4700         which has no '.' and goes to stderr.
4701         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
4702         Reported by Matthias Bolte.
4703
4704         maintainer-makefile: check for i18n setup
4705         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
4706         will likely work.
4707
4708 2010-11-12  Bruno Haible  <bruno@clisp.org>
4709
4710         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4711         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4712         * lib/nanosleep.c (nanosleep): Likewise.
4713
4714 2010-11-11  Bruno Haible  <bruno@clisp.org>
4715
4716         fcntl-h: Fix for use of C++ on glibc systems.
4717         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4718         also on glibc systems in C++ mode.
4719         Reported by Gary V. Vaughan <gary@gnu.org>.
4720
4721 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4722
4723         mknod: avoid false failure with dash
4724         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4725
4726 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4727
4728         unlink: Fix "is it should" typo in diagnostic.
4729         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4731
4732 2010-11-11  Bruno Haible  <bruno@clisp.org>
4733
4734         Tests for module 'strerror_r-posix'.
4735         * modules/strerror_r-posix-tests: New file.
4736         * tests/test-strerror_r.c: New file.
4737         * tests/test-string-c++.cc: Check the signature of strerror_r.
4738
4739         New module 'strerror_r-posix'.
4740         * lib/string.in.h (strerror_r): New declaration.
4741         * lib/strerror_r.c: New file.
4742         * m4/strerror_r.m4: New file.
4743         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4744         of strerror_r.
4745         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4746         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4747         * modules/strerror_r-posix: New file.
4748         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4749         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4750         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4751         portability problems.
4752
4753 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4754
4755         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4756         line is also considered for output. Quoted function name in shell
4757         command, so temporary files for functions like MyClass::operator()
4758         are removed correctly without errors.
4759
4760 2010-11-09  Bruno Haible  <bruno@clisp.org>
4761
4762         * doc/posix-functions/strerror.texi: List more failing platforms.
4763
4764         * doc/posix-functions/strerror.texi: Add a comment.
4765
4766 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4767
4768         fdopendir: fix bug on MacOS X when low on file descriptors
4769
4770         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4771         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4772         All callers changed.
4773         (fdopendir): Invoke save_cwd at the top level, not after using
4774         multiple dup() calls to use up file descriptors.  Then retry
4775         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4776         less than the maximum number of open file descriptors, because
4777         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4778         on Mac OS X 10.6.4 for tar 1.24
4779         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4780         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4781         and for tar 1.25
4782         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4783
4784 2010-11-07  Bruno Haible  <bruno@clisp.org>
4785
4786         vasnprintf: Support I flag on glibc systems.
4787         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4788         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4789         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4790         snprintf function.
4791         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4792         glibc systems.
4793         * tests/test-vasnprintf-posix3.c: New file.
4794         * modules/vasnprintf-posix-tests (Files): Add it.
4795         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4796
4797 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4798
4799         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4800         * MODULES.html.sh: For compiler warnings, use name
4801         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4802
4803 2010-11-05  Eric Blake  <eblake@redhat.com>
4804
4805         ceil, floor: avoid spurious failure with icc
4806         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4807         [denormals-as-zero] when optimizing without -mieee-fp option.
4808         * tests/test-floorf2.c (floorf_reference): Likewise.
4809         * tests/test-ceilf1.c (dummy): New function.
4810         (main): Use it to outsmart icc's optimization.
4811         * tests/test-floorf1.c (dummy, main): Likewise.
4812
4813         tests: require working signbit
4814         * modules/ceilf-tests (Depends-on): Add signbit.
4815         * modules/ceill-tests (Depends-on): Likewise.
4816         * modules/floorf-tests (Depends-on): Likewise.
4817         * modules/floorl-tests (Depends-on): Likewise.
4818         * modules/round-tests (Depends-on): Likewise.
4819         * modules/roundf-tests (Depends-on): Likewise.
4820         * modules/roundl-tests (Depends-on): Likewise.
4821         * modules/trunc-tests (Depends-on): Likewise.
4822         * modules/truncf-tests (Depends-on): Likewise.
4823         * modules/truncl-tests (Depends-on): Likewise.
4824
4825         strtod: work around icc bug
4826         * lib/strtod.c (minus_zero): Define to working value.
4827         (strtod): Use it to avoid icc bug.
4828
4829         copysign: enhance tests
4830         * modules/copysign-tests (Files): Add minus-zero.h.
4831         * tests/test-copysign.c (main): Also test zeros.
4832
4833 2010-11-04  Eric Blake  <eblake@redhat.com>
4834
4835         ceil, floor, round, trunc: enhance tests of -0
4836         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4837         * tests/test-ceill.c (main): Likewise.
4838         * tests/test-floorf1.c (main): Likewise.
4839         * tests/test-floorl.c (main): Likewise.
4840         * tests/test-round1.c (main): Likewise.
4841         * tests/test-roundf1.c (main): Likewise.
4842         * tests/test-roundl.c (main): Likewise.
4843         * tests/test-trunc1.c (main): Likewise.
4844         * tests/test-truncf1.c (main): Likewise.
4845         * tests/test-truncl.c (main): Likewise.
4846
4847 2010-11-04  Eric Blake  <eblake@redhat.com>
4848
4849         frexp, tests: work around ICC bug with -zero
4850         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4851         works with more compilers.
4852         * tests/minus-zero.h: New file.
4853         * modules/ceilf-tests (Files): Include it.
4854         * modules/ceill-tests (Files): Likewise.
4855         * modules/floorf-tests (Files): Likewise.
4856         * modules/floorl-tests (Files): Likewise.
4857         * modules/frexp-nolibm-tests (Files): Likewise.
4858         * modules/frexp-tests (Files): Likewise.
4859         * modules/frexpl-nolibm-tests (Files): Likewise.
4860         * modules/frexpl-tests (Files): Likewise.
4861         * modules/isnan-tests (Files): Likewise.
4862         * modules/isnand-nolibm-tests (Files): Likewise.
4863         * modules/isnand-tests (Files): Likewise.
4864         * modules/isnanf-nolibm-tests (Files): Likewise.
4865         * modules/isnanf-tests (Files): Likewise.
4866         * modules/isnanl-nolibm-tests (Files): Likewise.
4867         * modules/isnanl-tests (Files): Likewise.
4868         * modules/round-tests (Files): Likewise.
4869         * modules/roundf-tests (Files): Likewise.
4870         * modules/roundl-tests (Files): Likewise.
4871         * modules/ldexpl-tests (Files): Likewise.
4872         * modules/signbit-tests (Files): Likewise.
4873         * modules/snprintf-posix-tests (Files): Likewise.
4874         * modules/sprintf-posix-tests (Files): Likewise.
4875         * modules/strtod-tests (Files): Likewise.
4876         * modules/trunc-tests (Files): Likewise.
4877         * modules/truncf-tests (Files): Likewise.
4878         * modules/truncl-tests (Files): Likewise.
4879         * modules/vsnprintf-posix-tests (Files): Likewise.
4880         * modules/vsprintf-posix-tests (Files): Likewise.
4881         * modules/vasnprintf-posix-tests (Files): Likewise.
4882         * modules/vasprintf-posix-tests (Files): Likewise.
4883         * tests/test-ceilf1.c (main): Use it.
4884         * tests/test-ceill.c (main): Likewise.
4885         * tests/test-floorf1.c (main): Likewise.
4886         * tests/test-floorl.c (main): Likewise.
4887         * tests/test-frexp.c (main): Likewise.
4888         * tests/test-frexpl.c (main): Likewise.
4889         * tests/test-isnan.c (main): Likewise.
4890         * tests/test-isnand.h (main): Likewise.
4891         * tests/test-isnanf.h (main): Likewise.
4892         * tests/test-isnanl.h (main): Likewise.
4893         * tests/test-ldexpl.c (main): Likewise.
4894         * tests/test-round.c (main): Likewise.
4895         * tests/test-roundf.c (main): Likewise.
4896         * tests/test-roundl.c (main): Likewise.
4897         * tests/test-signbit.c (test_signbitf, test_signbitd)
4898         (test_signbitl): Likewise.
4899         * tests/test-snprintf-posix.h (test_function): Likewise.
4900         * tests/test-sprintf-posix.h (test_function): Likewise.
4901         * tests/test-strtod.c (main): Likewise.
4902         * tests/test-trunc1.c (main): Likewise.
4903         * tests/test-truncf1.c (main): Likewise.
4904         * tests/test-truncl.c (main): Likewise.
4905
4906         isnanl: work around icc bug
4907         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4908
4909 2010-11-03  Eric Blake  <eblake@redhat.com>
4910
4911         tests: fix compiler warnings
4912         * tests/test-getopt.h (test_getopt): Fix condition.
4913         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4914         * tests/test-pipe2.c (main): Likewise.
4915         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4916
4917         utimens: fix broken m4 test
4918         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4919
4920 2010-10-28  Bruno Haible  <bruno@clisp.org>
4921
4922         posix_spawn*, getdtablesize: Relax license.
4923         * modules/posix_spawn (License): Change to LGPLv2+.
4924         * modules/posix_spawnp (License): Likewise.
4925         * modules/posix_spawn-internal (License): Likewise.
4926         * modules/posix_spawnattr_init (License): Likewise.
4927         * modules/posix_spawnattr_getflags (License): Likewise.
4928         * modules/posix_spawnattr_setflags (License): Likewise.
4929         * modules/posix_spawnattr_getpgroup (License): Likewise.
4930         * modules/posix_spawnattr_setpgroup (License): Likewise.
4931         * modules/posix_spawnattr_getschedparam (License): Likewise.
4932         * modules/posix_spawnattr_setschedparam (License): Likewise.
4933         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4934         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4935         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4936         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4937         * modules/posix_spawnattr_getsigmask (License): Likewise.
4938         * modules/posix_spawnattr_setsigmask (License): Likewise.
4939         * modules/posix_spawnattr_destroy (License): Likewise.
4940         * modules/posix_spawn_file_actions_init (License): Likewise.
4941         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4942         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4943         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4944         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4945         * modules/getdtablesize (License): Likewise.
4946         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4947
4948 2010-10-26  Bruno Haible  <bruno@clisp.org>
4949
4950         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4951         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4952         Cygwin and mingw.
4953         Suggested by Eric Blake.
4954
4955 2010-10-26  Bruno Haible  <bruno@clisp.org>
4956
4957         stdio: Work around compilation error due to renameat() on Solaris 10.
4958         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4959         * lib/renameat.c: Don't include <unistd.h> here.
4960         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4961         Reported by Paul Eggert and Eric Blake.
4962
4963 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4964
4965         renameat: port to Solaris 10, which declares renameat in unistd.h
4966
4967         * lib/renameat.c: Include unistd.h before stdio.h, because
4968         Solaris 10 declares renameat in unistd.h.  Problem encountered
4969         when building GNU tar 1.24 on Solaris 10.
4970
4971 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4972
4973         fdopendir: fix C89 compilation
4974         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
4975         compilers.
4976
4977 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4978
4979         inttostr: simplify by removing unnecessary redundancy
4980         * lib/anytostr.c: Don't include verify.h.
4981         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
4982         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
4983         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
4984         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
4985         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
4986         Likewise.
4987         * modules/inttostr (Depends-on): Remove 'verify'.
4988
4989 2010-10-23  Bruno Haible  <bruno@clisp.org>
4990
4991         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
4992         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
4993         Reported by Eric Blake.
4994
4995 2010-10-23  Bruno Haible  <bruno@clisp.org>
4996
4997         Tests: Fix LOCALE_JA on MirBSD 10.
4998         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
4999         to an UTF-8 locale.
5000         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
5001         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5002         Reported by Eric Blake.
5003
5004 2010-10-21  Bruno Haible  <bruno@clisp.org>
5005
5006         nl_langinfo test: Avoid test failure on NetBSD 5.
5007         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
5008         Reported by Eric Blake.
5009
5010 2010-10-21  Eric Blake  <eblake@redhat.com>
5011
5012         c-stack: work around libsigsegv 2.8 bug
5013         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
5014         overflow on at least PowerPC64.
5015
5016 2010-10-17  Bruno Haible  <bruno@clisp.org>
5017
5018         userspec: Drop redundant file.
5019         * modules/userspec (Files): Remove lib/inttostr.h.
5020
5021 2010-10-17  Bruno Haible  <bruno@clisp.org>
5022
5023         nl_langinfo tests: Silence some warnings.
5024         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
5025         Reported by Jim Meyering.
5026
5027 2010-10-17  Bruno Haible  <bruno@clisp.org>
5028
5029         Make use of GCC's attribute __alloc_size__.
5030         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
5031         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
5032         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
5033         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
5034         __alloc_size__.
5035         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5036         Suggested by Jim Meyering.
5037
5038 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
5039
5040         bootstrap: anchor .gitignore entries.
5041         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
5042         with...
5043         (insert_vc_ignore): ... this new function, which prepends `/' to
5044         all .gitignore entries before passing them to
5045         insert_sorted_if_absent.
5046
5047 2010-10-16  Bruno Haible  <bruno@clisp.org>
5048
5049         nextafter: Fix configure check.
5050         * modules/nextafter (configure.ac): Correct expected prototype.
5051
5052 2010-10-16  Bruno Haible  <bruno@clisp.org>
5053
5054         termios: Update documentation.
5055         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
5056
5057 2010-10-16  Bruno Haible  <bruno@clisp.org>
5058
5059         tests: Make them compile with TinyCC.
5060         * tests/test-strstr.c (main): Remove parentheses around array
5061         initializer.
5062
5063 2010-10-15  Eric Blake  <eblake@redhat.com>
5064
5065         ignore-value: make header idempotent
5066         * lib/ignore-value.h: Add double-inclusion guards.
5067         Reported by Stefan Berger.
5068
5069 2010-10-15  Jim Meyering  <meyering@redhat.com>
5070
5071         GNUmakefile: handle "stable" target, not "major"
5072         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
5073         lists in maint.mk and announce-gen.  Without this, "make stable"
5074         would fail to ensure that $(VERSION) is up to date.
5075
5076 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
5077
5078         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
5079         & co.
5080
5081 2010-10-14  Bruno Haible  <bruno@clisp.org>
5082
5083         vasnprintf: Don't set errno to 0.
5084         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
5085         block that sets it to 0.
5086         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5087
5088 2010-10-14  Bruno Haible  <bruno@clisp.org>
5089
5090         socketlib: Fix.
5091         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
5092         gl_PREREQ_SYS_H_WINSOCK2.
5093         Reported by Ian Beckwith <ianb@erislabs.net>.
5094
5095 2010-10-13  Jim Meyering  <meyering@redhat.com>
5096
5097         test-select-stdin.c: avoid warn_unused_result warnings
5098         * tests/test-select-stdin.c: Include "macros.h".
5099         ASSERT that read and fflush succeed.
5100
5101 2010-10-13  Jim Meyering  <meyering@redhat.com>
5102
5103         git-version-gen: do require git-VC'd files in cwd
5104         * build-aux/git-version-gen: Reject a git version string
5105         if there are no commits associated with the current directory.
5106         This avoids an unlikely false-positive (unrelated dir whose parent
5107         repository also contains a tag matching v*), as pointed out
5108         by Giuseppe Scrivano in
5109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
5110
5111 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         argv-iter: omit nonconforming declaration
5114         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
5115         enum arg_iter_err declaration, which doesn't conform to C99.
5116         Solaris 10 cc warns about this.
5117
5118 2010-10-13  Eric Blake  <eblake@redhat.com>
5119
5120         termios: fix compilation on mingw
5121         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
5122         (gl_TERMIOS_H): Adjust it on mingw.
5123         * modules/termios (Makefile.am): Substitute new key.
5124         * lib/termios.in.h (includes): Make include_next conditional.
5125         * doc/posix-headers/termios.texi (termios.h): Update
5126         documentation.
5127         Reported by Daniel P. Berrange.
5128
5129 2010-10-13  Jim Meyering  <meyering@redhat.com>
5130
5131         git-version-gen: don't require that .git/ be in the current dir
5132         * build-aux/git-version-gen: Adjust this script so that it works
5133         when run from any working directory beneath the top-level .git/-
5134         containing directory.  Inspired by a patch from Giuseppe Scrivano,
5135         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
5136
5137         test-select: avoid warn_unused_result warnings
5138         * tests/test-select.c: Include "macros.h".
5139         ASSERT that each call to read, write, and pipe succeeds.
5140         While not technically required, also check each "close".
5141         * modules/select-tests (Files): Add tests/macros.h.
5142
5143         test-symlinkat: remove declaration of unused local
5144         * tests/test-symlinkat.c (main): Remove unused local, "buf".
5145
5146         test-inttostr: avoid shadowing warnings
5147         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
5148         and use malloc rather than the stack for the same reason as
5149         mentioned in the comment justifying the other allocation.
5150
5151 2010-10-11  Bruno Haible  <bruno@clisp.org>
5152
5153         stdlib: Allow multiple gnulib generated replacements to coexist.
5154         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
5155         Reported by Sam Steingold <sds@gnu.org>.
5156
5157 2010-10-11  Jim Meyering  <meyering@redhat.com>
5158
5159         fix a documentation typo
5160         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
5161
5162 2010-10-11  Eric Blake  <eblake@redhat.com>
5163
5164         futimens: work around Solaris 11 bug
5165         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
5166         * tests/test-futimens.h (test_futimens): Enhance, rather than
5167         weaken test.
5168         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5169
5170 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5171
5172         Indentation.
5173         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
5174         higher-level operators more to the left.
5175
5176 2010-10-11  Jim Meyering  <meyering@redhat.com>
5177
5178         test-futimens: avoid unwarranted test failure on Solaris 5.11
5179         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
5180         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
5181         because it tries to dereference the NULL name argument.
5182
5183 2010-10-11  Bruno Haible  <bruno@clisp.org>
5184
5185         Indentation.
5186         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
5187         indentation.
5188
5189 2010-10-11  Jim Meyering  <meyering@redhat.com>
5190
5191         spawn.in.h: make indentation consistent with parentheses
5192         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
5193         Make indentation consistent with parentheses.
5194
5195 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
5196
5197         Fix mismatched parens in previous commit
5198         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
5199         parens.
5200
5201 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5202
5203         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
5204
5205         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
5206         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
5207         * lib/malloca.c: Include "verify.h".
5208         (verify1): Remove, replacing with a verify call.
5209         * lib/relocwrapper.c (verify1): Likewise.
5210         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
5211         Likewise.
5212         * modules/malloca (Depends-on): Add 'verify'.
5213         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
5214         * modules/vasnprintf (Depends-on): Add 'verify'.
5215         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5216         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5217         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5218         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5219         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5220         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5221         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5222
5223         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
5224
5225         Formerly the style was sometimes 2*X - 1, because the C standard
5226         was wrongly thought to disallow ?: in integral constant expressions.
5227         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
5228         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
5229         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5230         * lib/stdint.in.h (_verify_intmax_size): Likewise.
5231         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
5232         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
5233         verify that time_t cannot be floating.
5234
5235 2010-10-08  Eric Blake  <eblake@redhat.com>
5236
5237         time: enforce recent POSIX ruling that time_t is integral
5238         * lib/time.in.h (__time_t_must_be_integral): Detect any
5239         problematic systems, allowing the rest of gnulib to assume POSIX.
5240
5241 2010-10-08  Jim Meyering  <meyering@redhat.com>
5242
5243         fdopendir: fix a bug on systems lacking openat and /proc support
5244         OpenBSD 4.7 is one such system.  The most noticeable effect was
5245         failure of any application making nontrivial use of fts: rm, du,
5246         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
5247           ./rm: traversal failed: `a': Bad file descriptor
5248         Debugging that, you see that even though FD 6 was closed just
5249         prior to the opendir call in fd_clone_opendir, its resulting
5250         dir->dd_fd was 8, rather than the expected value of 6:
5251
5252         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
5253         93                close (fd);
5254         (gdb) n
5255         94                dir = fd_clone_opendir (dupfd);
5256         (gdb) n
5257         95                saved_errno = errno;
5258         (gdb) p dir->dd_fd
5259         $11 = 8
5260
5261         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
5262         The problem is that on OpenBSD, fd_clone_opendir has to resort
5263         to using the old-style save/restore CWD mechanism, due to its
5264         lack of openat/proc support, and *that* would steal the FD (6)
5265         that opendir was supposed to use.
5266
5267         The fix is to squirrel away the desired FD so that save_cwd uses a
5268         different one, and then free the dest FD right before calling opendir.
5269         That guarantees opendir will use the required file descriptor.
5270
5271         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
5272
5273 2010-10-08  Bruno Haible  <bruno@clisp.org>
5274
5275         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
5276         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
5277
5278 2010-10-08  Bruno Haible  <bruno@clisp.org>
5279
5280         nanosleep: Make replacement POSIX compliant.
5281         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
5282         is out of range.
5283         Reported by Jim Meyering.
5284
5285 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5286
5287         bootstrap: add hook for altering gnulib.mk, for Bison
5288         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
5289         the Bison bootstrapping process can rewrite file names and variables
5290         in this file before later parts of 'bootstrap' use the file.
5291         Bison wants to include lib/gnulib.mk from the top-level makefile,
5292         so it needs the file names in this file to be relative to the top
5293         level, not relative to lib; plus it needs variable names to be
5294         rewritten.
5295         (slurp): Use the new function.
5296
5297         bootstrap: reformat for readability
5298         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
5299
5300 2010-10-08  Eric Blake  <eblake@redhat.com>
5301
5302         docs: update cygwin progress
5303         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
5304         1.7.7.
5305         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
5306         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
5307         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
5308         * doc/posix-functions/carg.texi (carg): Likewise.
5309         * doc/posix-functions/cargf.texi (cargf): Likewise.
5310         * doc/posix-functions/casin.texi (casin): Likewise.
5311         * doc/posix-functions/casinf.texi (casinf): Likewise.
5312         * doc/posix-functions/casinh.texi (casinh): Likewise.
5313         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
5314         * doc/posix-functions/catan.texi (catan): Likewise.
5315         * doc/posix-functions/catanf.texi (catanf): Likewise.
5316         * doc/posix-functions/catanh.texi (catanh): Likewise.
5317         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
5318         * doc/posix-functions/ccos.texi (ccos): Likewise.
5319         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
5320         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
5321         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
5322         * doc/posix-functions/cexp.texi (cexp): Likewise.
5323         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
5324         * doc/posix-functions/cimag.texi (cimag): Likewise.
5325         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
5326         * doc/posix-functions/clog.texi (clog): Likewise.
5327         * doc/posix-functions/clogf.texi (clogf): Likewise.
5328         * doc/posix-functions/conj.texi (conj): Likewise.
5329         * doc/posix-functions/conjf.texi (conjf): Likewise.
5330         * doc/posix-functions/cpow.texi (cpow): Likewise.
5331         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
5332         * doc/posix-functions/cproj.texi (cproj): Likewise.
5333         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
5334         * doc/posix-functions/creal.texi (creal): Likewise.
5335         * doc/posix-functions/crealf.texi (crealf): Likewise.
5336         * doc/posix-functions/csin.texi (csin): Likewise.
5337         * doc/posix-functions/csinf.texi (csinf): Likewise.
5338         * doc/posix-functions/csinh.texi (csinh): Likewise.
5339         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
5340         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
5341         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
5342         * doc/posix-functions/ctan.texi (ctan): Likewise.
5343         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
5344         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
5345         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
5346         * doc/posix-headers/complex.texi (complex.h): Likewise.
5347
5348 2010-10-07  Jim Meyering  <meyering@redhat.com>
5349
5350         parse-datetime: avoid compilation failure on OpenBSD 4.7
5351         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
5352         This works around a compilation failure on OpenBSD 4.7:
5353         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
5354
5355 2010-10-07  Eric Blake  <eblake@redhat.com>
5356
5357         docs: update cygwin progress
5358         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
5359         1.7.6.
5360         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5361         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
5362         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
5363         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
5364         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
5365         Likewise.
5366         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
5367         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
5368         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
5369         Likewise.
5370         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
5371         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
5372         Likewise.
5373         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
5374         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
5375         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
5376         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
5377         Likewise.
5378         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
5379         Likewise.
5380         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
5381
5382         docs: update parse-datetime history
5383         * doc/parse-datetime.texi (Authors of parse_datetime): Better
5384         documentation of this function's history and alternatives.
5385
5386         cygwin: use more robust version check
5387         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
5388         exclude an eventual cygwin 1.9.1.
5389         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5391         (gl_FUNC_STRCASESTR): Likewise.
5392         Reported by Bruno Haible.
5393
5394 2010-10-06  Bruno Haible  <bruno@clisp.org>
5395
5396         string, sys_select: Avoid #including large headers unless necessary.
5397         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
5398         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
5399         OSF/1, BeOS, Haiku.
5400         Reported by Jim Meyering.
5401
5402 2010-10-05  Eric Blake  <eblake@redhat.com>
5403
5404         memmem, strstr, strcasestr: fix bug with long periodic needle
5405         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
5406         periodic needle having false positive.
5407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
5408         and cygwin 1.7.7.
5409         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
5410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5411         (gl_FUNC_STRCASESTR): Likewise.
5412         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5413         * tests/test-memmem.c (main): Expose the bug.
5414         * tests/test-strcasestr.c (main): Likewise.
5415         * tests/test-strstr.c (main): Likewise.
5416         * tests/test-c-strcasestr.c (main): Likewise.
5417         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
5418         * doc/posix-functions/strstr.texi (strstr): Likewise.
5419         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5420         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
5421
5422 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5423
5424         parse-datetime: do some more renaming
5425         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
5426         parse_datetime, not get_date.  Mention the renaming.
5427         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
5428         in comments.
5429         * m4/bison.m4: Likewise.
5430
5431 2010-10-05  Eric Blake  <eblake@redhat.com>
5432
5433         parse-datetime: better name than get_date
5434         * NEWS: Reword the deprecation notice.
5435         * modules/get_date: Rename to modules/parse-datetime.
5436         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
5437         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
5438         * lib/get_date.y: Rename to lib/parse-datetime.y.
5439         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
5440         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
5441         * doc/getdate.texi: Provide fallback wrapper.
5442         * lib/getdate.h: Move guts, and wrap...
5443         * lib/parse-datetime.h: ...new file.
5444         * lib/parse-datetime.y (get_date): Rename...
5445         (parse_datetime): ...to this.
5446         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
5447         (gl_PARSE_DATETIME): ...to this.
5448         * doc/posix-functions/getdate.texi (get_date): Provide fallback
5449         documentation.
5450         * modules/getdate (Files): Provide fallback docs and header.
5451         (Notice, Depends-on): Update references.
5452         * tests/test-parse-datetime.c: Likewise.
5453         * DEPENDENCIES: Likewise.
5454         * MODULES.html.sh (Date and time <time.h>): Likewise.
5455         * doc/parse-datetime.texi (Date input formats)
5456         (Authors of parse_datetime): Likewise.
5457         * modules/parse-datetime (Files, configure.ac, Makefile.am)
5458         (Include): Likewise.
5459         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
5460         * gnulib-tool: Likewise.
5461         * m4/bison.m4 (gl_BISON): Likewise.
5462         Suggested by Bruno Haible.
5463
5464 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5465
5466         more ports to Solaris tr, which needs [] around ranges
5467         * gnulib-tool: Solaris tr needs [] around ranges.
5468         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5469         * tests/test-pipe-filter-gi1.c (main): Likewise.
5470         * tests/test-pipe-filter-ii1.c (main): Likewise.
5471
5472 2010-10-05  Eric Blake  <eblake@redhat.com>
5473
5474         bootstrap: fix Solaris regression
5475         * build-aux/bootstrap (check_versions): Solaris tr still needs []
5476         around ranges.
5477         Reported by Pádraig Brady.
5478
5479         bootstrap: work with pkg-config
5480         * build-aux/bootstrap (check_versions): Also transliterate - in
5481         prerequisite name.
5482         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
5483         prerequisites that were already found, to avoid confusion.
5484         Reported by Justin Clift.
5485
5486         faccessat: remove unused wrappers
5487         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
5488         presence of these wrappers dragged in -lgen on Solaris.
5489         Reported by Clemens Brogi; fix suggested by Paul Eggert.
5490
5491 2010-10-05  Jim Meyering  <meyering@redhat.com>
5492
5493         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
5494         * Makefile (sc_pragma_columns): New syntax-check rule.
5495
5496 2010-10-04  Bruno Haible  <bruno@clisp.org>
5497
5498         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
5499         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
5500         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
5501         Reported by Bruce Korb and Eric Blake.
5502
5503 2010-10-04  Bruno Haible  <bruno@clisp.org>
5504
5505         threadlib: Make option --with-libpth-prefix work.
5506         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
5507         use $LIBPTH, not just -lpth.
5508
5509 2010-10-04  Bruno Haible  <bruno@clisp.org>
5510
5511         Avoid line length limitation from HP NonStop system header files.
5512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
5513         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
5514         * lib/ctype.in.h: Likewise.
5515         * lib/dirent.in.h: Likewise.
5516         * lib/errno.in.h: Likewise.
5517         * lib/fcntl.in.h: Likewise.
5518         * lib/float.in.h: Likewise.
5519         * lib/getopt.in.h: Likewise.
5520         * lib/iconv.in.h: Likewise.
5521         * lib/inttypes.in.h: Likewise.
5522         * lib/langinfo.in.h: Likewise.
5523         * lib/locale.in.h: Likewise.
5524         * lib/math.in.h: Likewise.
5525         * lib/netdb.in.h: Likewise.
5526         * lib/netinet_in.in.h: Likewise.
5527         * lib/poll.in.h: Likewise.
5528         * lib/pthread.in.h: Likewise.
5529         * lib/pty.in.h: Likewise.
5530         * lib/sched.in.h: Likewise.
5531         * lib/se-selinux.in.h: Likewise.
5532         * lib/search.in.h: Likewise.
5533         * lib/signal.in.h: Likewise.
5534         * lib/spawn.in.h: Likewise.
5535         * lib/stdarg.in.h: Likewise.
5536         * lib/stddef.in.h: Likewise.
5537         * lib/stdint.in.h: Likewise.
5538         * lib/stdio.in.h: Likewise.
5539         * lib/stdlib.in.h: Likewise.
5540         * lib/string.in.h: Likewise.
5541         * lib/strings.in.h: Likewise.
5542         * lib/sys_file.in.h: Likewise.
5543         * lib/sys_ioctl.in.h: Likewise.
5544         * lib/sys_select.in.h: Likewise.
5545         * lib/sys_socket.in.h: Likewise.
5546         * lib/sys_stat.in.h: Likewise.
5547         * lib/sys_time.in.h: Likewise.
5548         * lib/sys_times.in.h: Likewise.
5549         * lib/sys_utsname.in.h: Likewise.
5550         * lib/sys_wait.in.h: Likewise.
5551         * lib/sysexits.in.h: Likewise.
5552         * lib/termios.in.h: Likewise.
5553         * lib/time.in.h: Likewise.
5554         * lib/unistd.in.h: Likewise.
5555         * lib/wchar.in.h: Likewise.
5556         * lib/wctype.in.h: Likewise.
5557         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
5558         * modules/ctype (Makefile.am): Likewise.
5559         * modules/dirent (Makefile.am): Likewise.
5560         * modules/errno (Makefile.am): Likewise.
5561         * modules/fcntl-h (Makefile.am): Likewise.
5562         * modules/float (Makefile.am): Likewise.
5563         * modules/getopt-posix (Makefile.am): Likewise.
5564         * modules/iconv-h (Makefile.am): Likewise.
5565         * modules/inttypes (Makefile.am): Likewise.
5566         * modules/langinfo (Makefile.am): Likewise.
5567         * modules/locale (Makefile.am): Likewise.
5568         * modules/math (Makefile.am): Likewise.
5569         * modules/netdb (Makefile.am): Likewise.
5570         * modules/netinet_in (Makefile.am): Likewise.
5571         * modules/poll-h (Makefile.am): Likewise.
5572         * modules/pthread (Makefile.am): Likewise.
5573         * modules/pty (Makefile.am): Likewise.
5574         * modules/sched (Makefile.am): Likewise.
5575         * modules/search (Makefile.am): Likewise.
5576         * modules/selinux-h (Makefile.am): Likewise.
5577         * modules/signal (Makefile.am): Likewise.
5578         * modules/spawn (Makefile.am): Likewise.
5579         * modules/stdarg (Makefile.am): Likewise.
5580         * modules/stddef (Makefile.am): Likewise.
5581         * modules/stdint (Makefile.am): Likewise.
5582         * modules/stdio (Makefile.am): Likewise.
5583         * modules/stdlib (Makefile.am): Likewise.
5584         * modules/string (Makefile.am): Likewise.
5585         * modules/strings (Makefile.am): Likewise.
5586         * modules/sys_file (Makefile.am): Likewise.
5587         * modules/sys_ioctl (Makefile.am): Likewise.
5588         * modules/sys_select (Makefile.am): Likewise.
5589         * modules/sys_socket (Makefile.am): Likewise.
5590         * modules/sys_stat (Makefile.am): Likewise.
5591         * modules/sys_time (Makefile.am): Likewise.
5592         * modules/sys_times (Makefile.am): Likewise.
5593         * modules/sys_utsname (Makefile.am): Likewise.
5594         * modules/sys_wait (Makefile.am): Likewise.
5595         * modules/sysexits (Makefile.am): Likewise.
5596         * modules/termios (Makefile.am): Likewise.
5597         * modules/time (Makefile.am): Likewise.
5598         * modules/unistd (Makefile.am): Likewise.
5599         * modules/wchar (Makefile.am): Likewise.
5600         * modules/wctype (Makefile.am): Likewise.
5601
5602 2010-10-04  Bruno Haible  <bruno@clisp.org>
5603
5604         read-file tests: Avoid a test failure on NonStop Kernel.
5605         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
5606         a regular file.
5607         Reported by Joachim Schmitz <schmitz@hp.com>.
5608
5609 2010-10-03  Bruno Haible  <bruno@clisp.org>
5610
5611         gnulib-tool: Fixes for --create-testdir with --libtool.
5612         * gnulib-tool (func_get_automake_snippet): Don't augment
5613         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
5614         an executable.
5615         (func_create_testdir): Handle module 'alloca' like func_import.
5616         Reported by Bruce Korb <bruce.korb@gmail.com>.
5617
5618 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5619
5620         Avoid some lines longer than 80 characters.
5621         * lib/stdint.in.h: Break long comment lines.
5622         * lib/math.in.h: Likewise.
5623         (_GL_NUM_UINT_WORDS): New macro, for readability.
5624         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
5625         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
5626         * lib/stdlib.in.h: Likewise.
5627         * lib/spawn.in.h: Likewise.
5628         * lib/sys_socket.in.h: Update an URL.
5629         * lib/sys_stat.in.h: Break long line.
5630
5631 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
5632
5633         Improve pmccabe2html.
5634         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
5635         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
5636         when the sources change. Remove the line in the HTML about "Used
5637         ranges" (which implied that there might be other unused ranges),
5638         rename "Resume" to "Summary" (easier to understand for more users).
5639         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
5640         styles, and some unnecessary blank lines.
5641
5642 2010-10-03  Bruno Haible  <bruno@clisp.org>
5643             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5644
5645         acl: Add support for ACLs on NonStop Kernel.
5646         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
5647         Check whether the function aclsort() exists.
5648         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
5649         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
5650         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5651         (acl_nontrivial [HAVE_ACLSORT]: New function.
5652         (file_has_acl): Implement for NonStop Kernel.
5653         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5654         (qset_acl): Implement for NonStop Kernel.
5655         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
5656         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5657         (main): Implement for NonStop Kernel.
5658         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
5659         Kernel. Handle this flavor.
5660         * tests/test-set-mode-acl.sh: Likewise.
5661         * tests/test-copy-acl.sh: Likewise.
5662         * tests/test-copy-file.sh: Likewise.
5663
5664 2010-10-03  Bruno Haible  <bruno@clisp.org>
5665
5666         Info about ACLs on NonStop Kernel.
5667         * doc/acl-resources.txt: Add info about NonStop Kernel.
5668         References by Joachim Schmitz <schmitz@hp.com>.
5669
5670 2010-10-02  Bruno Haible  <bruno@clisp.org>
5671
5672         Define missing EDQUOT on NonStop Kernel.
5673         * lib/errno.in.h (EDQUOT): Assign a value if missing.
5674         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
5675         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
5676         missing.
5677         * doc/posix-headers/errno.texi: Mention the NSK bug.
5678         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
5679         Reported by Joachim Schmitz <schmitz@hp.com>.
5680
5681 2010-10-02  Bruno Haible  <bruno@clisp.org>
5682
5683         Update doc for POSIX:2008.
5684         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
5685         Update URL of POSIX specification.
5686
5687 2010-10-02  Bruno Haible  <bruno@clisp.org>
5688
5689         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
5690         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
5691         from gnulib, not from Automake.
5692
5693 2010-10-02  Bruno Haible  <bruno@clisp.org>
5694
5695         New module 'system-posix'.
5696         * modules/system-posix: New file.
5697         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
5698         module is present.
5699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5700         GNULIB_SYSTEM_POSIX.
5701         * modules/stdlib (Depends-on): Remove sys_wait.
5702         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
5703         * doc/posix-functions/system.texi: Mention the new module.
5704         * doc/posix-headers/stdlib.texi: Likewise.
5705         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
5706         define test_sys_wait_macros to a no-op.
5707         Reported by Sam Steingold <sds@gnu.org>.
5708
5709 2010-09-30  Bruno Haible  <bruno@clisp.org>
5710
5711         More renaming from 'getdate' to 'get_date'.
5712         * doc/get_date.texi: Renamed from doc/getdate.texi.
5713         * modules/get_date (Files): Update.
5714         * MODULES.html.sh (Date and time <time.h>): Update.
5715         * DEPENDENCIES: Update.
5716         * gnulib-tool: Update comment.
5717         * m4/bison.m4 (gl_BISON): Likewise.
5718         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5719
5720 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5721
5722         bootstrap: support ACLOCAL_FLAGS during aclocal
5723         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5724         can add additional -I dir for third-party .m4 files.
5725
5726 2010-09-30  Eric Blake  <eblake@redhat.com>
5727
5728         bootstrap: use glibtoolize on MacOS
5729         * build-aux/bootstrap (check_versions): Convert libtool into
5730         libtoolize.
5731         (tool search): Move libtool check earlier, and look for
5732         glibtoolize for MacOS.
5733         (gnulib_tool_options): Auto-add --libtool when appropriate.
5734         Reported by Justin Clift.
5735
5736         poll: fix typo that broke test on MacOS
5737         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5738         Reported by Justin Clift.
5739
5740         getdate: rename to get_date
5741         Note: getdate.h is not renamed, to minimize client impact.
5742         * modules/getdate: Mark obsolete.  Move old contents...
5743         * modules/get_date: ...to new module name.
5744         * modules/getdate-tests: Move...
5745         * modules/get_date-tests: ...here.
5746         * m4/getdate.m4: Move...
5747         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5748         * lib/getdate.y: Move...
5749         * lib/get_date.y: ...here.
5750         * tests/test-getdate.c: Move...
5751         * tests/test-get_date.c: ...here.
5752         * doc/posix-functions/getdate.texi (getdate): Update name.
5753         * NEWS: Mention the change.
5754
5755 2010-09-29  Bruno Haible  <bruno@clisp.org>
5756
5757         Separate the module 'waitpid' from the module 'sys_wait'.
5758         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5759         present.
5760         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5761         gl_MODULE_INDICATOR_FOR_TESTS.
5762         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5763         * modules/sys_wait (Depends-on): Remove waitpid.
5764         (Makefile.am): Substitute GNULIB_WAITPID.
5765         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5766         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5767         signature only if the 'waitpid' module is present.
5768         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5769         * NEWS: Mention the change.
5770         * modules/grantpt (Depends-on): Add waitpid.
5771         * modules/wait-process (Depends-on): Likewise.
5772
5773 2010-09-29  Bruno Haible  <bruno@clisp.org>
5774
5775         More tests for module 'sys_wait'.
5776         * modules/sys_wait-c++-tests: New file.
5777         * tests/test-sys_wait-c++.cc: New file.
5778         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5779         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5780
5781 2010-09-29  Bruno Haible  <bruno@clisp.org>
5782
5783         New module 'waitpid'.
5784         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5785         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5786         Don't include <process.h>.
5787         (waitpid): Declare only, using modern idiom.
5788         * m4/waitpid.m4: New file.
5789         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5790         * modules/waitpid: New file.
5791         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5792         (Makefile.am): Update.
5793         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5794
5795 2010-09-28  Bruno Haible  <bruno@clisp.org>
5796
5797         poll: Assume ANSI C.
5798         * lib/poll.c (poll): Use an ANSI C declaration.
5799
5800 2010-09-28  Bruno Haible  <bruno@clisp.org>
5801
5802         poll-h: Create poll.h on all platforms.
5803         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5804         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5805         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5806         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5807         (gl_REPLACE_POLL_H): Don't set POLL_H.
5808         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5809         * modules/poll-h (Depends-on): Add include_next.
5810         (Makefile.am): Create poll.h unconditionally. Substitute also
5811         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5812
5813 2010-09-28  Bruno Haible  <bruno@clisp.org>
5814
5815         Tests for module 'poll-h'.
5816         * modules/poll-h-c++-tests: New file.
5817         * tests/test-poll-h-c++.cc: New file.
5818
5819         Tests for module 'poll-h'.
5820         * modules/poll-h-tests: New file.
5821         * tests/test-poll-h.c: New file.
5822
5823 2010-09-28  Bruno Haible  <bruno@clisp.org>
5824
5825         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5826         * modules/poll-h (Depends-on): Add 'extensions'.
5827
5828 2010-09-28  Bruno Haible  <bruno@clisp.org>
5829
5830         New module 'poll-h'.
5831         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5832         (poll): Use modern idiom.
5833         * modules/poll-h: New file.
5834         * modules/poll (Files): Remove lib/poll.in.h.
5835         (Depends-on): Add poll-h.
5836         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5837         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5838         * m4/poll_h.m4: New file.
5839         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5840         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5841         and invoke gl_REPLACE_POLL_H.
5842         * lib/poll.c: Use common idiom.
5843         * tests/test-poll.c: Likewise.
5844         * doc/posix-headers/poll.texi: Mention the poll-h module.
5845         Suggested by Eric Blake.
5846
5847 2010-09-26  Bruno Haible  <bruno@clisp.org>
5848
5849         sys_wait: Implement WSTOPSIG.
5850         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5851         Reported by Simon Josefsson.
5852
5853 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5854
5855         stdlib, sys_wait: Avoid compilation error on mingw.
5856         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5857
5858 2010-09-26  Bruno Haible  <bruno@clisp.org>
5859
5860         stdlib tests: Avoid code duplication.
5861         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5862         * modules/sys_wait-tests (Files): Likewise.
5863         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5864         * tests/test-stdlib.c: Include test-sys_wait.h.
5865         (main): Invoke test_sys_wait_macros.
5866         * tests/test-sys_wait.c: Include test-sys_wait.h.
5867         (main): Invoke test_sys_wait_macros.
5868
5869 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5870
5871         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5872         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5873         sure Windows sockets are working before calling getaddrinfo.
5874         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5875         * doc/gnulib.texi (Windows sockets): Fix typo.
5876
5877 2010-09-25  Bruno Haible  <bruno@clisp.org>
5878
5879         Tests for module 'regex-quote'.
5880         * modules/regex-quote-tests: New file.
5881         * tests/test-regex-quote.c: New file.
5882
5883         New module 'regex-quote'.
5884         * lib/regex-quote.h: New file.
5885         * lib/regex-quote.c: New file.
5886         * modules/regex-quote: New file.
5887         Suggested by Reuben Thomas <rrt@sc3d.org>.
5888
5889 2010-09-24  Bruno Haible  <bruno@clisp.org>
5890
5891         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5892         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5893
5894 2010-09-23  Bruno Haible  <bruno@clisp.org>
5895
5896         setenv: Relax license.
5897         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5898         Blake.
5899         Requested by Eric Blake.
5900
5901 2010-09-22  Bruno Haible  <bruno@clisp.org>
5902
5903         termios: Relax license.
5904         * modules/termios (License): Change to LGPLv2+.
5905         Requested by Eric Blake.
5906
5907 2010-09-22  Bruno Haible  <bruno@clisp.org>
5908
5909         threadlib: Allow the package to change the default to 'no'.
5910         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5911         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5912         Reported by Paul Eggert.
5913
5914 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5915             Bruno Haible  <bruno@clisp.org>
5916
5917         Fix endless loop in mbmemcasecoll.
5918         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5919         byte.
5920         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5921
5922 2010-09-22  Bruno Haible  <bruno@clisp.org>
5923
5924         Tests for module 'memcoll'.
5925         * modules/memcoll-tests: New file.
5926         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5927
5928         memcoll, xmemcoll: Clarify size vs. length.
5929         * modules/memcoll.c (memcoll0): Clarify specification.
5930         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5931         passed to collate_error.
5932
5933 2010-09-22  Bruno Haible  <bruno@clisp.org>
5934
5935         Tests for module 'memcasecmp'.
5936         * modules/memcasecmp-tests: New file.
5937         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5938
5939 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5940
5941         * lib/pthread.in.h: Add split double-inclusion guard, and include
5942         system <pthread.h> if there is one.  Use @@-style as in other
5943         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5944         pthread.h doesn't.
5945         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5946         (pthread_mutexattr_settype, pthread_mutex_trylock):
5947         New static inline functions, if there's no system <pthread.h>.
5948         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5949         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5950         Approximate with mutexes if the system lacks spinlocks, as in
5951         MacOS.
5952         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5953         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5954         @@-style.  Check for spinlocks separately.
5955         (gl_PTHREAD_DEFAULTS): New macro.
5956         * modules/pthread: Redo to use a more typical style for in.h files.
5957
5958 2010-09-21  Eric Blake  <eblake@redhat.com>
5959
5960         net_if: enhance tests
5961         * tests/test-net_if.c (main): Move signature checks earlier.
5962         Print failures to stderr.
5963         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5964         Document the bug that we do not yet fix.
5965
5966 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5967
5968         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
5969         about gnulib, not GSS.
5970
5971 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5972
5973         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
5974         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5975         for Emacs.
5976         * build-aux/pmccabe2html: Make Makefile.am example code more
5977         cut-and-paste friendly.
5978
5979 2010-09-21  Simon Josefsson  <simon@josefsson.org>
5980
5981         * tests/test-net_if.c: New file.
5982         * modules/net_if-tests: New file.
5983
5984 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
5985
5986         pthread: add pthread_spin_destroy
5987         * lib/pthread.in.h (pthread_spin_destroy): New function.
5988
5989 2010-09-19  Bruno Haible  <bruno@clisp.org>
5990
5991         gnulib-tool: Fix --help output.
5992         * gnulib-tool (func_usage): Fix help message.
5993         Reported by Reuben Thomas <rrt@sc3d.org>.
5994
5995 2010-09-18  Jim Meyering  <meyering@redhat.com>
5996
5997         maint.mk: avoid unexpanded \n in two diagnostics
5998         * top/maint.mk (sc_prohibit_always_true_header_tests):
5999         Don't use a literal \n in a halt=... assignment.  It would not be
6000         expanded, and the two \n bytes would appear in the diagnostic output
6001         rather than the desired newline.  Use halt=$$(printf ... instead.
6002         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6003
6004 2010-09-18  Bruno Haible  <bruno@clisp.org>
6005
6006         netinet_in: Doc tweak.
6007         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
6008         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6009
6010 2010-09-18  Jim Meyering  <meyering@redhat.com>
6011
6012         init.sh: correct an outdated comment
6013         * tests/init.sh (create_exe_shims_):  s/function/alias/
6014
6015         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
6016         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
6017         a file named "*.exe" is removed between the glob expansion and the
6018         processing of that oddly named file.
6019
6020 2010-09-17  Eric Blake  <eblake@redhat.com>
6021
6022         mirbsd: add some more support
6023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
6024         in BSD family.
6025         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
6026         devices as OpenBSD.
6027         * m4/host-os.m4 (mirbsd): Add MirBSD.
6028
6029         tests: fix unportable assumption on sys/wait.h
6030         * tests/test-sys_wait.c (main): Relax test.
6031         * tests/test-stdlib.c (main): Likewise.
6032
6033         init.sh: accomodate directory with no .exes
6034         * tests/init.sh: Accomodate directory containing only scripts.
6035
6036         tests: avoid compiler warning
6037         * tests/test-stdlib.c (main): Use the variable.
6038
6039         fdutimens, fdutimensat: update signature, again
6040         * lib/utimens.h (gl_futimens): Delete, and move signature...
6041         (fdutimens): ...here.
6042         (fdutimensat): Rearrange signature.
6043         (lutimensat): Rename variable for clarity.
6044         * lib/fdutimensat.c (fdutimensat): Update signature.
6045         * lib/utimens.c (fdutimens): Likewise.
6046         (gl_futimens): Delete.
6047         (utimens, lutimens): Update callers.
6048         * lib/futimens.c (futimens): Likewise.
6049         * tests/test-fdutimensat.c: Likewise.
6050         * tests/test-utimens.c: Likewise.
6051         * tests/test-futimens.h: Update comment.
6052         * NEWS: Mention this.
6053         Suggested by Paul Eggert.
6054
6055 2010-09-17  Bruno Haible  <bruno@clisp.org>
6056
6057         Take over the maintenance of some older macros from Autoconf.
6058         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
6059         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
6060         GNU Autoconf.
6061         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
6062         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
6063
6064 2010-09-17  Eric Blake  <eblake@redhat.com>
6065
6066         fdutimensat: drop atflag validation
6067         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
6068         with valid fd, to close a race scenario where futimens is
6069         unsupported and FILE was replaced by a symlink.
6070         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
6071         accordingly.
6072         Suggested by Paul Eggert.
6073
6074 2010-09-16  Bruno Haible  <bruno@clisp.org>
6075
6076         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
6077         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
6078
6079 2010-09-16  Bruno Haible  <bruno@clisp.org>
6080
6081         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
6082         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
6083         login_tty exists.
6084         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6085
6086 2010-09-16  Bruno Haible  <bruno@clisp.org>
6087
6088         login_tty: Make the replacement code work on BSD systems.
6089         * lib/login_tty.c: Include <sys/ioctl.h>.
6090         (login_tty): Use ioctl TIOCSCTTY when available.
6091         * modules/login_tty (Depends-on): Add sys_ioctl.
6092         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6093
6094 2010-09-16  Bruno Haible  <bruno@clisp.org>
6095
6096         login_tty: Stricter unit test.
6097         * modules/login_tty-tests (Depends-on): Add tcgetsid.
6098         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
6099         and tcgetsid() after login_tty.
6100         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6101
6102 2010-09-16  Bruno Haible  <bruno@clisp.org>
6103
6104         New module 'tcgetsid'.
6105         * lib/tcgetsid.c: New file.
6106         * m4/tcgetsid.m4: New file.
6107         * modules/tcgetsid: New file.
6108         * modules/termios (Depends-on): Add c++defs, warn-on-use.
6109         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
6110         GNULIB_TCGETSID, HAVE_TCGETSID.
6111         * lib/termios.in.h: Include <sys/types.h>.
6112         (tcgetsid): New declaration.
6113         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
6114         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
6115         * doc/posix-functions/tcgetsid.texi: Mention the new module.
6116         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
6117
6118 2010-09-16  Bruno Haible  <bruno@clisp.org>
6119
6120         Tests for module 'termios'.
6121         * modules/termios-c++-tests: New file.
6122         * modules/termios-tests: New file.
6123         * tests/test-termios-c++.cc: New file.
6124         * tests/test-termios.c: New file.
6125
6126         New module 'termios'.
6127         * modules/termios: New file.
6128         * lib/termios.in.h: New file.
6129         * m4/termios_h.m4: New file.
6130         * doc/posix-headers/termios.texi: Mention the new module.
6131
6132 2010-09-16  Eric Blake  <eblake@redhat.com>
6133
6134         fdutimensat: add an atflag parameter
6135         * lib/fdutimensat.c (fdutimensat): Add new parameter.
6136         * lib/utimens.h (fdutimensat): Update prototype.
6137         * tests/test-fdutimensat.c: Adjust test to match.
6138         * NEWS: Document the change.
6139         Suggested by Paul Eggert.
6140
6141 2010-09-16  Bruno Haible  <bruno@clisp.org>
6142
6143         Fix typos in comments.
6144         * lib/striconveh.h: Fix typo in comment.
6145         * lib/login_tty.c (login_tty): Likewise.
6146
6147 2010-09-15  Bruno Haible  <bruno@clisp.org>
6148
6149         stdlib: clarify MirBSD WEXITSTATUS bug
6150         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
6151         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6152
6153 2010-09-15  Eric Blake  <eblake@redhat.com>
6154
6155         stdlib: work around MirBSD WEXITSTATUS bug
6156         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
6157         * modules/stdlib (Depends-on): Add sys_wait.
6158         * tests/test-sys_wait.c (main): Enhance test.
6159         * tests/test-stdlib.c (main): Likewise.
6160         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
6161
6162         docs: mention MacOS issue with WEXITSTATUS(constant)
6163         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
6164         issue.
6165         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6166
6167         strnlen: add tests
6168         * modules/strnlen-tests: New file.
6169         * tests/test-strnlen.c: Likewise.
6170
6171 2010-09-14  Bruno Haible  <bruno@clisp.org>
6172
6173         unistr/base: Avoid link errors when module 'libunistring' is also used.
6174         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
6175         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
6176         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
6177         Declare also when HAVE_LIBUNISTRING is set.
6178         Reported by Pádraig Brady <P@draigbrady.com>.
6179
6180 2010-09-14  Eric Blake  <eblake@redhat.com>
6181
6182         test-rawmemchr: make more robust
6183         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
6184         (Depends-on, configure.ac): Add needed prerequisites to use it.
6185         * modules/memchr-tests (Files, Depends-on, configure.ac):
6186         Likewise, to avoid implicit reliance on memchr module prereqs.
6187         * tests/test-memchr.c (main): Ensure proper masking.
6188         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
6189         reads.
6190
6191         memchr: detect glibc Alpha bug
6192         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
6193         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
6194         Alpha.
6195         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
6196         * tests/test-memchr.c (main): Enhance test.
6197         Reported by Nelson H. F. Beebe.
6198
6199 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6200
6201         fts, getcwd, glob: audit for dirfd returning -1
6202         * lib/fts.c (opendir): Remove #define; no longer used.
6203         (opendirat): New arg PDIR_FD.  All callers changed.
6204         (fts_build, _opendir2): Use new opendirat to avoid the need for
6205         dirfd, or for checking whether dirfd returns a negative value.
6206         Don't use opendir; always use openat followed by fdopendir.
6207         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
6208         it.
6209         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
6210         returns -1 here.
6211         * modules/fts (Depends-on): Remove dirfd.
6212         * modules/getcwd (Depends-on): Likewise.
6213
6214 2010-09-13  Eric Blake  <eblake@redhat.com>
6215
6216         float: fix broken MirBSD header
6217         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
6218         * doc/posix-headers/float.texi (float.h): Document it.
6219
6220 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6221
6222         fts: use O_NOFOLLOW to avoid race condition when opening a directory
6223         * lib/fts.c (opendirat): New arg extra_flags.
6224         (__opendir2): Use it to avoid following symlinks when opening
6225         a directory, if symlinks are not supposed to be followed.  See
6226         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
6227
6228         fdopendir: preserve argument fd before returning
6229         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
6230         (fdopendir_with_dup, fd_clone_opendir): New static functions.
6231         (fdopendir): Use them, arranging for FD to be open to the same
6232         directory that it was when it started.  (It might be temporarily
6233         closed while fdopendir is running, so this not thread- or
6234         signal-safe.)  Be careful to do the right thing even when file
6235         descriptors are scarce and dup fails with errno == EMFILE.  See
6236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
6237
6238 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
6239
6240         regex: Pass the system regex if its only problem is 32-bit regoff_t.
6241         * NEWS: Document change.
6242         * m4/regex.m4: Disable test for regoff_t size.
6243
6244 2010-09-13  Jim Meyering  <meyering@redhat.com>
6245
6246         fts: don't operate on an invalid file descriptor after failed dup
6247         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
6248         negative file descriptor.
6249
6250 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6251
6252         savedir: add streamsavedir, deprecate fdsavedir
6253         * NEWS: Mention deprecation of fdsavedir.
6254         * lib/savedir.c (streamsavedir): New extern function, whose name
6255         ends in "savedir" to be consistent with the others.  This differs
6256         from savedirstream in that it doesn't close its argument.  The
6257         next version of GNU tar will use this instead of fdsavedir, to
6258         avoid some race conditions and conserve file descriptors.
6259         (savedirstream): Reimplement as a wrapper around streamsavedir.
6260         (fdsavedir): Add a comment deprecating this function.  As far as
6261         I know, only GNU tar used it, and GNU tar doesn't need it any more.
6262         * lib/savedir.h (streamsavedir): New decl.
6263         (fdsavedir): Add a comment deprecating this.
6264
6265 2010-09-10  Bruno Haible  <bruno@clisp.org>
6266
6267         langinfo: Fix last commit.
6268         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
6269         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
6270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6271
6272 2010-09-10  Bruno Haible  <bruno@clisp.org>
6273
6274         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
6275         * lib/progreloc.c (O_EXEC): Define fallback.
6276
6277 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6278
6279         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
6280         * NEWS: Document recent changes to fcntl-h.
6281         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
6282         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
6283         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
6284         Similarly for O_SEARCH; this last was already true, but not documented.
6285         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
6286         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
6287         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
6288         Likewise.
6289         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
6290         is zero, not whether it is defined.
6291         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
6292         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
6293         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
6294
6295 2010-09-10  Bruno Haible  <bruno@clisp.org>
6296
6297         langinfo, nl_langinfo: Fix for IRIX 5.3.
6298         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
6299         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
6300         HAVE_LANGINFO_YESEXPR.
6301         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
6302         HAVE_LANGINFO_YESEXPR.
6303         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
6304         HAVE_LANGINFO_T_FMT_AMPM is 0.
6305         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
6306         HAVE_LANGINFO_YESEXPR is 0.
6307         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
6308         NOEXPR.
6309         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
6310         * doc/posix-functions/nl_langinfo.texi: Likewise.
6311         Reported by Eric Blake.
6312
6313 2010-09-10  Bruno Haible  <bruno@clisp.org>
6314
6315         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
6316         * doc/glibc-functions/login_tty.texi: Mention the include file problem
6317         on FreeBSD 8.0 and OpenBSD 4.6.
6318         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
6319         * m4/pty_h.m4 (gl_PTY_H): Likewise.
6320         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
6321         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
6322         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
6323         ac_includes_default.
6324         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6325
6326 2010-09-09  Eric Blake  <eblake@redhat.com>
6327
6328         strsignal: work around NetBSD bug
6329         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
6330         * lib/string.in.h (includes): Likewise.
6331         * doc/posix-functions/strsignal.texi (strsignal): Document the
6332         bug.
6333         Reported by Nelson H. F. Beebe.
6334
6335         gnulib-tool: work with NetBSD /bin/sh
6336         * gnulib-tool (func_cache_var, func_cache_lookup_module)
6337         (func_get_description, func_get_comment, func_get_status)
6338         (func_get_notice, func_get_applicability, func_get_filelist)
6339         (func_get_dependencies, func_get_autoconf_early_snippet)
6340         (func_get_autoconf_snippet, func_get_automake_snippet)
6341         (func_get_include_directive, func_get_link_directive)
6342         (func_get_license, func_get_maintainer, func_import): Avoid
6343         shell syntax errors from parsing syntax extensions.
6344
6345 2010-09-09  Bruno Haible  <bruno@clisp.org>
6346
6347         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6348         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
6349         a reliable way to determine whether the 'alias' command works.
6350
6351 2010-09-08  Jim Meyering  <meyering@redhat.com>
6352
6353         init.sh: penalize a set-x-impaired shell; don't disqualify it
6354         * tests/init.sh: Too many shells corrupt application stderr when
6355         you set -x, so we can't afford to disqualify them, since at least
6356         on Irix-6.5, that would disqualify all bourne shells.
6357         Instead, use a two-pass approach.
6358         On the first pass, try to find a shell that meets the stricter
6359         condition that set -x does not corrupt stderr.
6360         If no shell meets the stricter condition, retest each candidate
6361         shell, but without that extra condition.  Finally, when
6362         VERBOSE=yes is requested and set -x might cause trouble, simply
6363         issue a warning and refrain from enabling debug output.
6364
6365 2010-09-08  Eric Blake  <eblake@redhat.com>
6366
6367         unsetenv: fix OpenBSD bug
6368         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
6369         * doc/posix-functions/unsetenv.texi (unsetenv): Update
6370         documentation.
6371         Reported by Jim Meyering.
6372
6373         strtod: work around IRIX 6.5 bug
6374         * lib/strtod.c (strtod): Reparse number on shorter string if
6375         exponent parse was invalid.
6376         * tests/test-strtod.c (main): Add check for "0x1p 2".
6377         Reported by Tom G. Christensen.
6378
6379         getopt: optimize previous patch
6380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
6381         empty variable.  Speed up awk script.
6382         Reported by Paolo Bonzini.
6383
6384 2010-09-08  Jim Meyering  <meyering@redhat.com>
6385
6386         test.sh: disqualify shells for which set -x corrupts stderr
6387         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
6388         and OpenBSD 4.7.  They make it so with "set -x", environment settings
6389         appear in stderr output.  For example, this command:
6390             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
6391         prints "P=1" on those two systems:
6392
6393 2010-09-08  Bruno Haible  <bruno@clisp.org>
6394
6395         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6396         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
6397         commands, because some shells ignore redirections when there is an
6398         error in the command lookup.
6399         Reported by Eric Blake.
6400
6401 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
6402
6403         * lib/regex.h: Fix a mention of `regex_compile' (should be
6404         `re_compile_pattern').
6405         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
6406         (re_set_registers): Correct name of parameter in comment.
6407
6408         * doc/regex.texi: Add documentation for missing syntax flags.
6409         Remove commented-out documentation of defunct syntax option
6410         RE_NO_EMPTY_ALTS.
6411         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
6412         Add documentation of re_set_registers.
6413         Document trick to re-use a pattern buffer by setting fastmap manually.
6414         Update documentation of struct re_pattern_buffer per public members.
6415         Uncomment documentation of equivalence class operators and
6416         collating symbol operators, since they are now implemented,
6417         Explain leftmost-longest matching in relation to alternatives.
6418         Tidy documentation of substring matching.
6419         Remove POSIX documentation, which is done better in
6420         glibc, and refer the reader there. Keep BSD API documentation, as
6421         that is not readily available elsewhere.
6422
6423 2010-09-07  Eric Blake  <eblake@redhat.com>
6424
6425         getopt: handle POSIXLY_CORRECT set but not exported
6426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
6427         export state of POSIXLY_CORRECT, due to bash set -o posix.
6428         Reported by Dustin J. Mitchell.
6429
6430 2010-09-05  Bruno Haible  <bruno@clisp.org>
6431
6432         gnulib-tool: Highlight the changed options.
6433         * gnulib-tool (func_usage): Display the --import, --add-import,
6434         --remove-import explanations in bold font.
6435
6436 2010-09-06  Karl Berry  <karl@gnu.org>
6437
6438         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
6439
6440 2010-09-05  Bruno Haible  <bruno@clisp.org>
6441
6442         uniwidth/width: Update comment.
6443         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
6444         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
6445
6446 2010-09-05  Bruno Haible  <bruno@clisp.org>
6447
6448         isinf, isnan: Relax license.
6449         * modules/isinf (License): Change from GPL to LGPL, with consent from
6450         Ben Pfaff.
6451         * modules/isnan (License): Likewise.
6452         Requested by Ludovic Courtès.
6453
6454 2010-09-04  Bruno Haible  <bruno@clisp.org>
6455
6456         gnulib-tool: Help migration from --import to --add-import or --update.
6457         * gnulib-tool: Emit a verbose error message when --import is used
6458         without any module name.
6459
6460 2010-09-04  Bruno Haible  <bruno@clisp.org>
6461
6462         Update doc about gnulib-tool.
6463         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
6464         'gnulib-tool --update' in more detail.
6465         Reported by Eric Blake.
6466
6467 2010-09-04  Bruno Haible  <bruno@clisp.org>
6468
6469         gnulib-tool: Change --import. New options --add/remove-import.
6470         * gnulib-tool: New options --add-import, --remove-import.
6471         (func_usage): Document them.
6472         (have_associative): Define always.
6473         (func_import): In import mode, don't merge the specified settings with
6474         the cached settings. Implement remove-import mode.
6475         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
6476         Explain when to use them versus --import.
6477         (Simple update): Use --add-import instead of --import.
6478         * NEWS: Mention the change.
6479
6480 2010-09-04  Bruno Haible  <bruno@clisp.org>
6481
6482         * doc/gnulib-tool.texi (Initial import): Update paragraph about
6483         separate gnulib.mk.
6484
6485 2010-09-04  Bruno Haible  <bruno@clisp.org>
6486
6487         gnulib-tool: Don't talk about CVS any more.
6488         * gnulib-tool (func_usage, func_import): Write "version control"
6489         instead of CVS.
6490
6491 2010-09-04  Jim Meyering  <meyering@redhat.com>
6492
6493         maint.mk: avoid obscure sc_copyright_check failure in coreutils
6494         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
6495         false positives (whose names may be ill-chosen) when searching
6496         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
6497         would cause a false-positive.
6498
6499         avoid coreutils "make distcheck" failure
6500         Coreutils tests with an absolute build directory name that contains
6501         a space.  Not quoting this directory name caused a failure.
6502         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
6503         * tests/test-vc-list-files-cvs.sh: Likewise.
6504
6505 2010-09-04  Bruno Haible  <bruno@clisp.org>
6506
6507         gnulib-tool: Avoid error when run in a package without Makefile.am.
6508         * gnulib-tool: When collecting the m4dirs in a package that does not
6509         have a Makefile.am, eliminate those directories that contain no
6510         gnulib-cache.m4. Fix expression that counts these directories.
6511
6512 2010-09-04  Bruno Haible  <bruno@clisp.org>
6513
6514         update-copyright test: Improve output when perl is missing or too old.
6515         * tests/test-update-copyright.sh: Move test of Perl version down after
6516         the test whether Perl exists. Provide an explanation relating Perl's
6517         error message to Automake's SKIP: message.
6518
6519 2010-09-04  Bruno Haible  <bruno@clisp.org>
6520
6521         Don't augment PATH in TESTS_ENVIRONMENT.
6522         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
6523         set abs_aux_dir instead of augmenting PATH.
6524         * modules/vc-list-files-tests (Makefile.am): Likewise.
6525         * tests/test-update-copyright.sh: Augment PATH here.
6526         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
6527         path_prepend_.
6528         * tests/test-vc-list-files-git.sh: Likewise.
6529
6530 2010-09-04  Jim Meyering  <meyering@redhat.com>
6531
6532         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
6533         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
6534
6535 2010-09-04  Bruno Haible  <bruno@clisp.org>
6536
6537         strdup: Fix compilation error in C++ mode.
6538         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
6539         the macro.
6540
6541 2010-09-04  Bruno Haible  <bruno@clisp.org>
6542
6543         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
6544         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
6545         macro into a function.
6546         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6547
6548 2010-09-04  Bruno Haible  <bruno@clisp.org>
6549
6550         Set PATH_SEPARATOR the same way autoconf does.
6551         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
6552         the value of PATH_SEPARATOR the same way autoconf-generated configure
6553         scripts do.
6554         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
6555         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6556
6557 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6558
6559         Set PATH_SEPARATOR the same way autoconf does.
6560         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
6561         the same way autoconf-generated configure scripts do.
6562         * posix-modules: Likewise.
6563
6564 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6565
6566         hash: fix safe_hasher const typo
6567         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
6568         const; otherwise, there is a type error later.
6569
6570 2010-09-02  Jim Meyering  <meyering@redhat.com>
6571
6572         test-update-copyright.sh: require perl 5.8.0
6573         * tests/test-update-copyright.sh: Require 5.8.0,
6574         which Tom G. Christensen has confirmed is adequate,
6575         while 5.6.1 is not.
6576
6577 2010-09-02  Eric Blake  <eblake@redhat.com>
6578
6579         tests: init.sh improvements for re-exec'ing with zsh
6580         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
6581         -vx through shell re-exec.
6582         Reported by Tom G. Christensen.
6583
6584         wctype: fix typo in previous commit
6585         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
6586         Reported by Ludovic Courtès.
6587
6588 2010-09-02  Jim Meyering  <meyering@redhat.com>
6589
6590         test-update-copyright.sh: skip test if Perl is too old
6591         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
6592         Reported by Tom G. Christensen.
6593
6594 2010-09-02  Bruno Haible  <bruno@clisp.org>
6595
6596         wctype: Avoid compilation error on IRIX 6.5.30.
6597         * lib/wctype.in.h (iswblank): Declare with a replacement if
6598         REPLACE_ISWBLANK is set.
6599         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
6600         declared. Set REPLACE_ISWBLANK.
6601         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
6602         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
6603         * doc/posix-headers/wctype.texi: Likewise.
6604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6605
6606 2010-09-01  Bruno Haible  <bruno@clisp.org>
6607
6608         New module 'socketlib'.
6609         * modules/socketlib: New file.
6610         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
6611         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
6612         * modules/sockets (Depends-on): Add socketlib.
6613         Suggested by Sam Steingold <sds@gnu.org>.
6614
6615 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6616
6617         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
6618
6619         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6620         when one needs search access to a directory but not read access.
6621         On systems where it is available, it works in some cases where
6622         O_RDONLY does not, namely on directories that are searchable but
6623         not readable, and which need only to be searchable.  If O_SEARCH
6624         is not available, fall back to the traditional method of using
6625         O_RDONLY.
6626
6627         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
6628         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
6629         when opening a directory that needs only to be searchable.
6630         * lib/chdir-safer.c (chdir_no_follow): Likewise.
6631         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
6632         * lib/openat-proc.c (openat_proc_name): Likewise.
6633         * lib/openat.c (openat_needs_fchdir): Likewise.
6634         * lib/save-cwd.c (save_cwd): Likewise.
6635         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
6636
6637 2010-08-28  Bruno Haible  <bruno@clisp.org>
6638
6639         New module 'host-cpu-c-abi'.
6640         * modules/host-cpu-c-abi: New file.
6641         * m4/host-cpu-c-abi.m4: New file, based on part of
6642         clisp/src/m4/general.m4.
6643         Requested by Sam Steingold <sds@gnu.org>.
6644
6645 2010-08-31  Eric Blake  <eblake@redhat.com>
6646         and Jim Meyering  <meyering@redhat.com>
6647
6648         hash: factor, and guard against misbehaving hasher function
6649         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
6650         of table->hasher's return value.  Also protect against a hash value
6651         so large that adding it to table->bucket results in a NULL pointer.
6652         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
6653         Use it in place of open-coded check-and-abort.
6654
6655 2010-08-30  Bruno Haible  <bruno@clisp.org>
6656
6657         hash: silence spurious clang warning
6658         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
6659         Reported by Eric Blake.
6660
6661 2010-08-30  Eric Blake  <eblake@redhat.com>
6662
6663         strstr, memmem, strcasestr: avoid leaked shell message
6664         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
6665         FreeBSD.
6666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6668
6669         tests: silence clang warning
6670         * tests/test-malloca.c (do_allocation): Avoid dead store.
6671
6672 2010-08-29  Bruno Haible  <bruno@clisp.org>
6673
6674         gettext: Fix recent mistake.
6675         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
6676
6677 2010-08-29  Bruno Haible  <bruno@clisp.org>
6678
6679         selinux-h: Offer a --without-selinux option.
6680         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
6681         --without-selinux was specified, skip all tests and define
6682         HAVE_SELINUX_SELINUX_H to 0.
6683         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
6684         set LIB_SELINUX to empty.
6685         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
6686         gl_LIBSELINUX. If --without-selinux was specified, replace
6687         selinux/context.h.
6688         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
6689
6690 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6691             Bruno Haible  <bruno@clisp.org>
6692
6693         Make the module 'realloc-gnu' work again on AIX and OSF/1.
6694         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
6695         of HAVE_REALLOC.
6696         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
6697         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
6698         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
6699         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6700
6701 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6702             Bruno Haible  <bruno@clisp.org>
6703
6704         Make the module 'calloc-gnu' work again on AIX and OSF/1.
6705         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
6706         HAVE_CALLOC.
6707         * lib/xmalloc.c: Update accordingly.
6708         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6709         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6710         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6711
6712 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6713             Bruno Haible  <bruno@clisp.org>
6714
6715         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6716         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6717         HAVE_MALLOC.
6718         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6719         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6720         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6721
6722 2010-08-29  Bruno Haible  <bruno@clisp.org>
6723
6724         Update modules list.
6725         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6726         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6727         (String handling <string.h>): Add astrxfrm.
6728         (File system functions): Add readlinkat.
6729
6730 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6731
6732         Tests for module 'realloc-gnu'.
6733         * modules/realloc-gnu-tests: New file.
6734         * tests/test-realloc-gnu.c: New file.
6735
6736         Tests for module 'calloc-gnu'.
6737         * modules/calloc-gnu-tests: New file.
6738         * tests/test-calloc-gnu.c: New file.
6739
6740         Tests for module 'malloc-gnu'.
6741         * modules/malloc-gnu-tests: New file.
6742         * tests/test-malloc-gnu.c: New file.
6743
6744 2010-08-28  Bruno Haible  <bruno@clisp.org>
6745
6746         Rename module 'realloc' -> 'realloc-gnu'.
6747         * modules/realloc-gnu: New file, copied from modules/realloc.
6748         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6749         obsolete.
6750         * modules/mgetgroups (Depends-on): Update.
6751         * doc/posix-functions/realloc.texi: Update.
6752         * NEWS: Mention the change.
6753
6754         Rename module 'calloc' -> 'calloc-gnu'.
6755         * modules/calloc-gnu: New file, copied from modules/calloc.
6756         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6757         obsolete.
6758         * doc/posix-functions/calloc.texi: Update.
6759         * NEWS: Mention the change.
6760
6761         Rename module 'malloc' -> 'malloc-gnu'.
6762         * modules/malloc-gnu: New file, copied from modules/malloc.
6763         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6764         obsolete.
6765         * modules/argp (Depends-on): Update.
6766         * modules/regex (Depends-on): Update.
6767         * doc/posix-functions/malloc.texi: Update.
6768         * NEWS: Mention the change.
6769
6770 2010-08-28  Eric Blake  <eblake@redhat.com>
6771
6772         pread, pwrite: add missing dependency
6773         * modules/pread (Depends-on): Add extensions.
6774         * modules/pwrite (Depends-on): Likewise.
6775
6776 2010-08-28  Bruno Haible  <bruno@clisp.org>
6777
6778         unistr/u*-strchr: Fix tests dependencies.
6779         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6780         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6781         Reported by Ian Beckwith <ianb@erislabs.net>.
6782
6783 2010-08-28  Bruno Haible  <bruno@clisp.org>
6784
6785         read-file: Don't occupy too much unused memory.
6786         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6787
6788 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6789             Eric Blake  <eblake@redhat.com>
6790             Bruno Haible  <bruno@clisp.org>
6791
6792         read-file: Avoid memory reallocations with regular files.
6793         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6794         (fread_file): With regular files, use the remaining length as the
6795         initial buffer size.  Check against overflow.
6796         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6797         sys_stat.
6798
6799 2010-08-28  Bruno Haible  <bruno@clisp.org>
6800
6801         ftello: Relax license.
6802         * modules/ftello (License): Relax to LGPLv2+.
6803         Reported by Eric Blake.
6804
6805 2010-08-28  Bruno Haible  <bruno@clisp.org>
6806
6807         Avoid relocwrapper link errors due to gnulib replacement functions.
6808         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6809         function.
6810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6811
6812 2010-08-28  Bruno Haible  <bruno@clisp.org>
6813
6814         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6815         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6816         defined.
6817         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6818         Suggested by Eric Blake.
6819
6820 2010-08-28  Bruno Haible  <bruno@clisp.org>
6821
6822         sys_socket, netdb: Ensure socklen_t gets defined.
6823         * modules/sys_socket (Depends-on): Add socklen.
6824         * modules/netdb (Depends-on): Likewise.
6825         * modules/getaddrinfo (Depends-on): Remove socklen.
6826         * modules/getsockopt (Depends-on): Likewise.
6827         * modules/setsockopt (Depends-on): Likewise.
6828         * tests/test-sys_socket.c: Check that socklen_t is defined.
6829         * tests/test-netdb.c: Likewise.
6830         * m4/socklen.m4: Update comments.
6831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6832
6833 2010-08-27  Eric Blake  <eblake@redhat.com>
6834
6835         login_tty: add missing dependency
6836         * modules/login_tty (Depends-on): Add pty.
6837
6838 2010-08-26  Eric Blake  <eblake@redhat.com>
6839
6840         lib-symbol-versions: fix m4 quoting
6841         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6842         format for AC_LINK_IFELSE.
6843
6844         glob: fix compile test
6845         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6846
6847         btowc: fix missing file
6848         * modules/btowc (Files): Also ship locale-fr.m4.
6849
6850         lseek: fix link test
6851         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6852         AC_LINK_IFELSE.
6853
6854         include_next: silence autoconf 2.68 warning
6855         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6856         AC_COMPILE_IFELSE as special.
6857         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6858         autoconf < 2.68.
6859
6860         acl: fix compilation test
6861         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6862         AC_COMPILE_IFELSE.
6863
6864 2010-08-26  Bruno Haible  <bruno@clisp.org>
6865
6866         Modernize AC_TRY_RUN invocations.
6867         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6868         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6869         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6870         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6871         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6872         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6875         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6876         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6878         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6879         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6880         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6882         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6883         gl_MBRLEN_NUL_RETVAL): Likewise.
6884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6886         Likewise.
6887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6888         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6889         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6890         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6891         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6892         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6893         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6894         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6895         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6896         Likewise.
6897         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6898         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6899         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6900         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6902         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6904         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6905         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6907
6908 2010-08-26  Bruno Haible  <bruno@clisp.org>
6909
6910         Modernize AC_TRY_LINK invocations.
6911         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6912         AC_TRY_LINK.
6913         * m4/argp.m4 (gl_ARGP): Likewise.
6914         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6915         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6916         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6917         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6918         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6919         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6920         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6921         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6922         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6923         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6924         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6925         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6926         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6927         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6928         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6929         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6930         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6931         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6932         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6933         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6934         Likewise.
6935         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6936         Likewise.
6937         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6938         Likewise.
6939         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6941         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6942         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6943         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6944         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6945         * m4/servent.m4 (gl_SERVENT): Likewise.
6946         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6947         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6948         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6949         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6950         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6951         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6952         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6953         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6954         * modules/tsearch-tests (configure.ac): Likewise.
6955
6956 2010-08-26  Bruno Haible  <bruno@clisp.org>
6957
6958         Modernize AC_TRY_COMPILE invocations.
6959         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6960         AC_TRY_COMPILE.
6961         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6962         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6963         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6964         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6965         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6966         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6967         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6968         * m4/lock.m4 (gl_LOCK): Likewise.
6969         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
6970         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6971         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
6972         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6973         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6974         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
6975         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6976         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
6977         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6978         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6979         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6980         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6981         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
6982         extraneous semicolon.
6983
6984 2010-08-26  Jim Meyering  <meyering@redhat.com>
6985
6986         stat-time: relax license LGPL
6987         * modules/stat-time (License): Change from GPL to LGPL,
6988         with consent from all contributors, for use in libguile.
6989         Requested by Ludovic Courtès.
6990
6991 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
6992
6993         poll: return immediately on POLLHUP.
6994         * lib/poll.c (poll): Always set timeout before wait_timeout is
6995         computed.
6996
6997 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6998
6999         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
7000         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
7001         rmdir ("dir/.//"), unlinkat.
7002
7003 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7004
7005         stdbool: avoid spurious failure with modern xlc
7006         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7007
7008 2010-08-24  Bruno Haible  <bruno@clisp.org>
7009
7010         getloadavg: simplify code
7011         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
7012         gl_have_func. Update comments.
7013
7014 2010-08-24  Eric Blake  <eblake@redhat.com>
7015
7016         getloadavg: don't define SVR4 on cygwin
7017         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
7018         only define SVR4 when -lkvm is required.
7019         Reported by Yaakov Selkowitz.
7020
7021 2010-08-24  Bruno Haible  <bruno@clisp.org>
7022
7023         priv-set: fix comment
7024         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
7025
7026 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
7027
7028         priv-set: fix comments
7029         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
7030         to match code, as suggested by David Bartley in:
7031         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
7032
7033 2010-08-23  Eric Blake  <eblake@redhat.com>
7034
7035         stdbool: avoid rejecting clang
7036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7037         * tests/test-stdbool.c: Enable more tests if using the system
7038         <stdbool.h> instead of the gnulib replacement.
7039         (main): Move xlc bug test to a runtime test for all compilers.
7040         Reported by Anders Kaseorg.
7041
7042         argz: fix shell quoting issue
7043         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
7044         Reported by Charles Wilson.
7045
7046 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
7047             Erik Faye-Lund <kusmabite@gmail.com>
7048
7049         poll, select: handle ERROR_BROKEN_PIPE.
7050         * lib/poll.c (win32_compute_revents): Return POLLHUP when
7051         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7052         * lib/select.c (win32_compute_revents): Do not mark a pipe
7053         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7054
7055 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
7056
7057         fts: allow compilation with C++
7058         * lib/fts_.h: Specify extern "C" linkage with C++.
7059
7060 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7061
7062         Fix gnulib-tool sed script de-commentation for AIX sed.
7063         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
7064         sed.
7065
7066 2010-08-17  Eric Blake  <eblake@redhat.com>
7067
7068         test-stddef: test for (some) offsetof bugs
7069         * tests/test-stddef.c: Enhance test to ensure correct type of
7070         offsetof.
7071         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
7072         that we are not fixing at this time.
7073
7074 2010-08-15  Bruno Haible  <bruno@clisp.org>
7075
7076         stpncpy: Allow stpncpy to be defined as a macro.
7077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
7078         if it's already correctly declared.
7079         * lib/string.in.h (stpncpy): Undefine before redefining.
7080         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
7081
7082 2010-08-14  Bruno Haible  <bruno@clisp.org>
7083
7084         Rename module 'memxfrm' to 'amemxfrm'.
7085         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
7086         (amemxfrm): Renamed from memxfrm.
7087         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
7088         (amemxfrm): Renamed from memxfrm.
7089         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
7090         * NEWS: Mention the change.
7091         * MODULES.html.sh (String handling <string.h>): Update.
7092         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
7093         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
7094         * lib/unicase/u16-casexfrm.c: Likewise.
7095         * lib/unicase/u32-casexfrm.c: Likewise.
7096         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
7097         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
7098         * lib/uninorm/u16-normxfrm.c: Likewise.
7099         * lib/uninorm/u32-normxfrm.c: Likewise.
7100         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
7101         memxfrm.
7102         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
7103         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
7104         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
7105         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
7106         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
7107         Suggested by Paul Eggert.
7108
7109 2010-08-14  Bruno Haible  <bruno@clisp.org>
7110
7111         Tests for module 'astrxfrm'.
7112         * modules/astrxfrm-tests: New file.
7113         * tests/test-astrxfrm.c: New file.
7114
7115         New module 'astrxfrm'.
7116         * lib/astrxfrm.h: New file.
7117         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
7118         * modules/astrxfrm: New file.
7119
7120 2010-08-14  Reuben Thomas <rrt@sc3d.org>
7121
7122         regex: Tweak doc.
7123         * doc/regex.texi (Overview): Don't mention regex.c.
7124         (GNU Regular Expression Compiling): Likewise.
7125         (Match-end-of-line Operator): Mention 'not_eol'.
7126
7127 2010-08-14  Brian Gough  <bjg@gnu.org>
7128             Bruno Haible  <bruno@clisp.org>
7129
7130         git-merge-changelog: add doc relating to use with bzr and hg.
7131         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
7132
7133 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
7134
7135         pthread: fix pthread.h creation for srcdir != builddir
7136         * modules/pthread (Makefile.am): Fix the rule to work also in a
7137         non-srcdir build.
7138
7139 2010-08-13  Karl Berry  <karl@gnu.org>
7140
7141         * doc/regex.texi (Predefined Syntaxes): @smallexample.
7142         * doc/posix-*/*: force line break before @url of POSIX
7143         specifications.
7144         Suggested by Werner Lemberg.
7145
7146 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7147
7148         strtod: fix const diagnostic
7149         * lib/strtod.c (strtod): Don't assign const char * to char *,
7150         as this elicits a warning from GCC when warnings are enabled.
7151
7152 2010-08-10  Pádraig Brady <P@draigbrady.com>
7153         and Eric Blake  <eblake@redhat.com>
7154
7155         copy-acl: ignore ENOTSUP on HP-UX
7156         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
7157         so that it is available for HP-UX.
7158         * lib/copy-acl.c (qcopy_acl): Use it.
7159         Reported by Patrick M. Callahan.
7160
7161 2010-08-10  Eric Blake  <eblake@redhat.com>
7162
7163         open, chown: relax license
7164         * modules/open (License): Change to LGPLv2+, with consent by all
7165         authors, for use in augeas.
7166         * modules/chown (License): Likewise.
7167         * modules/lchown (Likewise): Likewise.
7168         Requested by Adam Stokes.
7169
7170 2010-08-09  Karl Berry  <karl@gnu.org>
7171
7172         * build-aux/ar-lib: new file, import from Automake.
7173         * config/srclist.txt: autocheck for updates.
7174
7175 2010-08-09  Eric Blake  <eblake@redhat.com>
7176
7177         readlinkat: adjust client modules
7178         * modules/areadlinkat (Depends-on): Use readlinkat, not
7179         symlinkat.
7180         * modules/areadlinkat-with-size (Depends-on): Likewise.
7181
7182         mknod: be more vocal about danger of running tests as root
7183         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
7184         root, since that is just asking for problems.
7185         Suggested by Bruno Haible, based on a report by Rainer Tammer.
7186
7187         readlinkat: split into its own module
7188         * modules/symlinkat: Split readlinkat...
7189         * modules/readlinkat: ...into separate module.
7190         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
7191         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
7192         * lib/symlinkat.c (readlinkat): Move...
7193         * lib/readlinkat.c: ...into new file.
7194         * modules/symlinkat-tests: Split readlinkat test...
7195         * modules/readlinkat-tests: ...into separate module.
7196         * tests/test-symlinkat.c: Split...
7197         * tests/test-readlinkat.c: ...into new file.
7198         * NEWS: Document the split.
7199         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7200         * lib/unistd.in.h (readlinkat): Likewise.
7201         Suggested by Bruno Haible.
7202
7203 2010-08-08  Bruno Haible  <bruno@clisp.org>
7204
7205         memxfrm: Speed up.
7206         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
7207         that usually only one call to strxfrm is necessary for each string
7208         part.
7209         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7210
7211 2010-08-07  Karl Berry  <karl@gnu.org>
7212
7213         * doc/posix-headers/limits.texi,
7214         * doc/posix-functions/malloc.texi,
7215         * doc/posix-functions/strsignal.texi: missing @item.
7216         * doc/ld-version-script.texi: spurious leading i.
7217         * doc/regex.texi (Interval Operators): no commas inside @var.
7218
7219 2010-08-01  Bruno Haible  <bruno@clisp.org>
7220
7221         Integrate the regex documentation.
7222         * doc/gnulib.texi: Define 'cn' index.
7223         (Regular expressions): New a chapter that includes regex.texi and
7224         regexprops-generic.texi.
7225         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
7226         syntax.
7227
7228         Whitespace cleanup.
7229         * doc/regex.texi: Remove trailing spaces.
7230
7231         Add regex documentation.
7232         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
7233         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
7234         Written by Kathy A. Hargreaves and Karl Berry.
7235
7236 2010-08-01  Bruno Haible  <bruno@clisp.org>
7237
7238         link: Update documentation.
7239         * doc/posix-functions/link.texi: Update regarding Solaris.
7240
7241 2010-07-31  Bruno Haible  <bruno@clisp.org>
7242
7243         Update modules list.
7244         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
7245         (String handling <string.h>): Add memcmp2, memxfrm.
7246         (Container data structures): Add xlist, xsublist, xoset.
7247         (Core language properties): Add alignof, unused-parameter.
7248         (Process control, Numeric conversion functions <stdlib.h>): Renamed
7249         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
7250         (Unibyte characters <ctype.h>): New section.
7251         (String handling <string.h>): New section.
7252         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
7253         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
7254         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
7255         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
7256         tan, tanh, tanl, y0, y1, yn.
7257         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
7258         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
7259         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
7260         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
7261         unlockpt, vdprintf, vdprintf-posix.
7262         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
7263         (File system functions): Add concat-filename, sys_file, sys_ioctl,
7264         xconcat-filename.
7265         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
7266         getdtablesize, pipe2, pipe2-safer.
7267         (Security): New section.
7268         (Networking functions): Add accept4.
7269         (Signal handling): Add sigpipe.
7270         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
7271         mbmemcasecoll.
7272         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
7273         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
7274         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
7275         pipe-filter-ii.
7276         (Misc): Add argp-version-etc, login_tty, parse-duration.
7277
7278 2010-07-31  Bruno Haible  <bruno@clisp.org>
7279
7280         Improve doc in MODULES.html.
7281         * modules/linkat (Description): Add the word "function".
7282         * modules/mkfifo (Description): Likewise.
7283         * modules/mknod (Description): Likewise.
7284         * modules/remove (Description): Likewise.
7285         * modules/renameat (Description): Likewise.
7286         * modules/stat (Description): Likewise.
7287         * modules/symlink (Description): Likewise.
7288         * modules/unlink (Description): Likewise.
7289
7290 2010-07-31  Bruno Haible  <bruno@clisp.org>
7291
7292         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
7293         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
7294         option --enable/disable-c++ instead of --enable/disable-cxx.
7295         * NEWS: Mention the change.
7296
7297 2010-07-31  Bruno Haible  <bruno@clisp.org>
7298
7299         readlink, areadlink: Relax test a bit.
7300         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
7301         alternative to ENOTDIR.
7302         * tests/test-areadlink.h (test_areadlink): Likewise.
7303         Reported by Rainer Tammer.
7304
7305 2010-07-31  Bruno Haible  <bruno@clisp.org>
7306
7307         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
7308         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
7309         character, perform the search using U_STRCHR.
7310         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
7311         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
7312         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
7313         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
7314         Suggested by Paolo Bonzini.
7315
7316 2010-07-31  Bruno Haible  <bruno@clisp.org>
7317
7318         unistr/u*-strstr: Fix dependencies.
7319         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
7320         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
7321         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
7322
7323 2010-07-31  Bruno Haible  <bruno@clisp.org>
7324
7325         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
7326         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
7327         the beginning of the loop.
7328         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
7329         cases in 'switch' statement.
7330
7331         unistr/u8-strchr: Fix several bugs.
7332         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
7333         the string. When not found, return NULL, not a pointer near the end.
7334
7335         More tests for unistr/u8-strchr.
7336         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
7337         that the function does not read past the first occurrence of the byte
7338         being searched.
7339         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
7340         * tests/unistr/test-u16-strchr.c (main): New function.
7341         * tests/unistr/test-u32-strchr.c (main): New function.
7342
7343 2010-07-31  Bruno Haible  <bruno@clisp.org>
7344
7345         posix-modules: Ignore backup files of documentation files.
7346         * posix-modules: grep only through files named *.texi.
7347
7348 2010-07-31  Bruno Haible  <bruno@clisp.org>
7349
7350         symlinkat: Fix documentation.
7351         * doc/posix-functions/readlinkat.texi: Fix module name.
7352
7353 2010-07-31  Bruno Haible  <bruno@clisp.org>
7354
7355         fchownat: Replace also when chown has the trailing slash bug.
7356         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
7357         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
7358         introduced on 2010-04-10.
7359         Reported by Rainer Tammer.
7360
7361 2010-07-31  Bruno Haible  <bruno@clisp.org>
7362
7363         linkat: Work around AIX 7.1 bug.
7364         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
7365         whether linkat handles trailing slash correctly. If not, replace linkat
7366         and define LINKAT_TRAILING_SLASH_BUG.
7367         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
7368         check whether (fd1,file1) points to a directory if file1 or file2 ends
7369         in a slash. Code taken from lib/link.c.
7370         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
7371         Reported by Rainer Tammer.
7372
7373 2010-07-31  Bruno Haible  <bruno@clisp.org>
7374
7375         Correctly determine whether pow is available in libc on AIX 7 with xlc.
7376         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
7377         This disables an xlc optimization that was causing wrong test results.
7378         Reported by Rainer Tammer.
7379
7380 2010-07-31  Bruno Haible  <bruno@clisp.org>
7381
7382         iconv: Work around AIX 6.1..7.1 bug.
7383         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
7384         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
7385         cross-compiling, guess no on all versions of AIX.
7386         Reported by Rainer Tammer.
7387
7388 2010-07-31  Bruno Haible  <bruno@clisp.org>
7389
7390         readlink: Relax test a bit.
7391         * tests/test-readlink.h (test_readlink): Allow different errno value
7392         when readlink is called with a file name that ends in / and refers to
7393         a file.
7394         Suggested by Eric Blake.
7395         Reported by Rainer Tammer.
7396
7397 2010-07-31  Bruno Haible  <bruno@clisp.org>
7398
7399         copysign: Does not require -lm on glibc systems.
7400         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
7401         gl_COMMON_DOUBLE_MATHFUNC.
7402         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
7403
7404 2010-07-31  Bruno Haible  <bruno@clisp.org>
7405
7406         duplocale: Work around AIX 7.1 bug.
7407         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
7408         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
7409         * lib/duplocale.c (rpl_duplocale): Update comment.
7410         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
7411         Reported by Rainer Tammer.
7412
7413 2010-07-30  Bruno Haible  <bruno@clisp.org>
7414
7415         dirfd: Avoid link error on AIX 7.1.
7416         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
7417         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
7418         exist, set REPLACE_DIRFD.
7419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
7420         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
7421         * doc/posix-functions/dirfd.texi: Update.
7422         Reported by Rainer Tammer.
7423
7424 2010-07-30  Eric Blake  <eblake@redhat.com>
7425
7426         strtod: next round of AIX fixes
7427         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
7428         exponent.
7429         * tests/test-strtod.c (main): Enhance tests.
7430         * doc/posix-functions/strtod.texi (strtod): Document next bug.
7431         Reported by Rainer Tammer.
7432
7433         futimens: fix configure check
7434         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
7435         Reported by Bruno Haible.
7436
7437 2010-07-30  Bruno Haible  <bruno@clisp.org>
7438
7439         getline: Update regarding AIX.
7440         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
7441         Reported by Rainer Tammer.
7442
7443 2010-07-30  Bruno Haible  <bruno@clisp.org>
7444
7445         wcwidth: Drop replacement on AIX 7.
7446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
7447         AIX 7.
7448         Reported by Rainer Tammer.
7449
7450 2010-07-30  Bruno Haible  <bruno@clisp.org>
7451
7452         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
7453         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
7454         a 'char *'.
7455         Reported by Rainer Tammer.
7456
7457 2010-07-30  Bruno Haible  <bruno@clisp.org>
7458
7459         unlink: Update regarding AIX.
7460         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
7461         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
7462         Reported by Rainer Tammer.
7463
7464 2010-07-30  Bruno Haible  <bruno@clisp.org>
7465
7466         symlink: Update regarding AIX.
7467         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
7468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
7469         Reported by Rainer Tammer.
7470
7471 2010-07-30  Bruno Haible  <bruno@clisp.org>
7472
7473         strndup: Update regarding AIX.
7474         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
7475         AIX 7.
7476         Reported by Rainer Tammer.
7477
7478 2010-07-30  Bruno Haible  <bruno@clisp.org>
7479
7480         stat: Update regarding AIX.
7481         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
7482         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
7483         Reported by Rainer Tammer.
7484
7485 2010-07-30  Bruno Haible  <bruno@clisp.org>
7486
7487         truncl: Fix autoconf test.
7488         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
7489         whether truncl works.
7490         Reported by Rainer Tammer.
7491
7492 2010-07-30  Bruno Haible  <bruno@clisp.org>
7493
7494         round: Update regarding AIX.
7495         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
7496         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
7497         Reported by Rainer Tammer.
7498
7499 2010-07-30  Bruno Haible  <bruno@clisp.org>
7500
7501         rename: Update regarding AIX.
7502         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
7503         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
7504         Reported by Rainer Tammer.
7505
7506 2010-07-30  Bruno Haible  <bruno@clisp.org>
7507
7508         printf.m4: Update regarding AIX.
7509         * m4/printf.m4: Update comments regarding AIX.
7510         Reported by Rainer Tammer.
7511
7512 2010-07-30  Bruno Haible  <bruno@clisp.org>
7513
7514         iconv: Update regarding AIX.
7515         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
7516         AIX 7.
7517         Reported by Rainer Tammer.
7518
7519 2010-07-30  Bruno Haible  <bruno@clisp.org>
7520
7521         getopt: Update regarding AIX.
7522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
7523         no on AIX.
7524         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
7525         Reported by Rainer Tammer.
7526
7527 2010-07-30  Bruno Haible  <bruno@clisp.org>
7528
7529         ldexpl; Update regarding AIX.
7530         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
7531         on AIX 7.
7532         Reported by Rainer Tammer.
7533
7534 2010-07-30  Bruno Haible  <bruno@clisp.org>
7535
7536         frexpl: Update regarding AIX.
7537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
7538         on AIX 7.
7539         Reported by Rainer Tammer.
7540
7541 2010-07-30  Bruno Haible  <bruno@clisp.org>
7542
7543         open, fopen: Update regarding AIX.
7544         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
7545         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7546         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
7547         * doc/posix-functions/fopen.texi: Likewise.
7548         Reported by Rainer Tammer.
7549
7550 2010-07-30  Bruno Haible  <bruno@clisp.org>
7551
7552         chown: Update doc regarding AIX.
7553         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
7554         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
7555         Reported by Rainer Tammer.
7556
7557 2010-07-30  Eric Blake  <eblake@redhat.com>
7558
7559         strtod: fix bug in replacement function on AIX
7560         * lib/strtod.c (strtod): Special case broken "0x" parse in
7561         underlying strtod.
7562         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
7563         * doc/posix-functions/strtod.texi (strtod): Likewise.
7564         Reported by Rainer Tammer.
7565
7566 2010-07-30  Bruno Haible  <bruno@clisp.org>
7567
7568         mbrlen: Fix cross-compilation guess for AIX.
7569         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
7570         guess. Leftover from 2008-12-22.
7571
7572 2010-07-30  Bruno Haible  <bruno@clisp.org>
7573
7574         mbrtowc: Fix cross-compilation guess for AIX.
7575         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
7576         guess. Leftover from 2008-12-21.
7577
7578 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
7579
7580         init.sh: work around trap limitation of some shells
7581         * tests/init.sh (setup_): Move exit trap outside of shell function.
7582
7583 2010-07-29  Eric Blake  <eblake@redhat.com>
7584
7585         strtod: aid debugging
7586         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
7587         understanding why strtod is rejected.
7588
7589 2010-07-28  Bruno Haible  <bruno@clisp.org>
7590
7591         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
7592         * lib/unistr/u8-chr.c: Include <string.h>.
7593         * tests/unistr/test-u8-chr.c: Likewise.
7594         * tests/unistr/test-u16-chr.c: Likewise.
7595         * tests/unistr/test-u32-chr.c: Likewise.
7596         * tests/unistr/test-u8-strchr.c: Likewise.
7597         * tests/unistr/test-u16-strchr.c: Likewise.
7598         * tests/unistr/test-u32-strchr.c: Likewise.
7599         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
7600         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
7601         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
7602         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
7603
7604 2010-07-28  Bruno Haible  <bruno@clisp.org>
7605
7606         Use spaces for indentation, not tabs.
7607         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7608
7609 2010-07-27  Bruno Haible  <bruno@clisp.org>
7610
7611         mbspcasecmp: Fix function specification.
7612         * lib/string.in.h (mbspcasecmp): Fix specification comment.
7613         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
7614         Reported by Eric Blake <eblake@redhat.com>.
7615
7616 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
7617
7618         timespec: use cast and not conditional, as truncation isn't possible
7619         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
7620         instead of a conditional.  Comment about the situation in more detail.
7621         This undoes most of the 2009-10-29 patch.
7622
7623 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
7624
7625         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
7626         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
7627         * lib/unistr/u8-strchr.c: Likewise.
7628         * modules/unistr/u8-chr: Depend on memchr.
7629
7630         unistr/u*-strchr: add tests
7631         * modules/unistr/u8-strchr-tests: New file.
7632         * modules/unistr/u16-strchr-tests: New file.
7633         * modules/unistr/u32-strchr-tests: New file.
7634         * tests/unistr/test-strchr.h: New file.
7635         * tests/unistr/test-u8-strchr.c: New file.
7636         * tests/unistr/test-u16-strchr.c: New file.
7637         * tests/unistr/test-u32-strchr.c: New file.
7638
7639         unistr/u*-chr: test multibyte sequences more
7640         * tests/unistr/test-chr.h: Do complete testing of the characters in the
7641         test vector.
7642         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
7643         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
7644         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
7645
7646         unistr/u*-chr: test multibyte sequences
7647         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
7648
7649         unistr/u*-chr: prepare for multibyte tests
7650         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
7651         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
7652         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
7653         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
7654         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
7655         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
7656
7657 2010-07-18  Bruno Haible  <bruno@clisp.org>
7658
7659         unistr/u8-strchr: Optimize non-ASCII argument case.
7660         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
7661         because the first byte often matches anyway.
7662         Reported by Pádraig Brady <P@draigbrady.com>.
7663
7664 2010-07-15  Karl Berry  <karl@gnu.org>
7665
7666         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
7667
7668 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
7669
7670         getcwd: on Solaris, work better if ancestors are inaccessible
7671         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
7672         buffer and size, try again with a large buffer.  This works better
7673         on Solaris, since its getcwd succeeds even if the path to the root
7674         is inaccessible, and this is helpful in common cases such as .zfs
7675         hidden directories.  Problem reported by J Chapman Flack in
7676         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
7677         Use system getcwd if it's declared, not merely if it's partly
7678         working; use the partly-working test only to avoid needless effort
7679         if the system getcwd fails.
7680         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
7681         comment that was already obsolete and is now even more obsolete.
7682         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
7683         now might call strdup.
7684
7685 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
7686
7687         pthread: Add enough so that coreutils/src/sort.c compiles.
7688         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
7689         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
7690         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7691         Include <sys/types.h>, in case it defines pthread_t.
7692         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
7693         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
7694         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
7695         (pthread_rwlockattr_t, pthread_spinlock_t):
7696         New typedefs, if HAVE_PTHREAD_T is not defined.
7697         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
7698         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
7699         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
7700         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
7701         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
7702         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
7703         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
7704         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
7705         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
7706         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
7707         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
7708         New macros.
7709         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7710         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7711         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7712         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7713         (pthread_spin_unlock): New dummy functions.
7714         (pthread_create): Return EAGAIN; don't set errno.
7715         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7716         require AC_C_INLINE.
7717         * modules/pthread (Depends-on): Add sched, time.
7718         (pthread.h): Use AM_V_GEN.
7719
7720 2010-07-13  Bruno Haible  <bruno@clisp.org>
7721
7722         striconveh: Don't malloc memory if the result buffer is sufficient.
7723         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7724         buffer if its size is sufficient.
7725         Reported by Ludovic Courtès <ludo@gnu.org>.
7726
7727 2010-07-13  Bruno Haible  <bruno@clisp.org>
7728
7729         strtod: Add safety check.
7730         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7731
7732 2010-07-12  Bruno Haible  <bruno@clisp.org>
7733
7734         Unify tests that set gl_cv_func_ldexpl_no_libm.
7735         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7736         gl_FUNC_LDEXPL.
7737         (gl_FUNC_LDEXPL): Invoke it.
7738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7739
7740 2010-07-12  Bruno Haible  <bruno@clisp.org>
7741
7742         Unify tests that set gl_cv_func_ldexp_no_libm.
7743         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7744         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7745         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7746         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7747         * modules/strtod (Files): Add m4/ldexp.m4.
7748
7749 2010-07-12  Bruno Haible  <bruno@clisp.org>
7750
7751         Unify tests that set gl_cv_func_frexpl_no_libm.
7752         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7753         gl_FUNC_FREXPL_NO_LIBM.
7754         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7755         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7756
7757 2010-07-12  Bruno Haible  <bruno@clisp.org>
7758
7759         Unify tests that set gl_cv_func_frexp_no_libm.
7760         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7761         gl_FUNC_FREXP_NO_LIBM.
7762         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7763         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7764
7765 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7766
7767         memcoll: clarify sizes versus lengths, document better, and tweak perf
7768         * lib/memcoll.c (strcoll_loop, memcoll0):
7769         Improve quality of descriptive comments.  Name variables
7770         consistently as to whether they are lengths (which do not include
7771         terminating null) versus sizes (which do).
7772         * lib/xmemcoll.c (xmemcoll0): Likewise.
7773         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7774         returned when s1size == 0; this is easier to compile and saves
7775         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7776
7777 2010-07-12  Bruno Haible  <bruno@clisp.org>
7778
7779         Tests for module '_Exit'.
7780         * modules/_Exit-tests: New file.
7781         * tests/test-_Exit.sh: New file.
7782         * tests/test-_Exit.c: New file.
7783
7784         New module '_Exit'.
7785         * lib/stdlib.in.h (__attribute__): New macro.
7786         (_Exit): New declaration.
7787         * lib/_Exit.c: New file.
7788         * m4/_Exit.m4: New file.
7789         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7790         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7791         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7792         * modules/_Exit: New file.
7793         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7794         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7795
7796 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7797
7798         strtod: make it more-accurate typically, and don't require libm
7799         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7800         Include limits.h.  Don't include string.h.
7801         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7802         (locale_isspace): New function, so that no casts are needed to
7803         check whether *s is a space.
7804         (ldexp): Provide an unused dummy if not available.
7805         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7806         (strtod): Use them.  This implementation prefers to use the
7807         underlying strtod if available, falling back on our own code
7808         only to fix known bugs.  This is more likely to produce an
7809         accurate result.  Also, it avoids the use of libm functions.
7810         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7811         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7812         was absent, but it caused a test failure with coreutils.
7813         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7814         with libm.
7815         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7816         * modules/strtod-tests (Makefile.am): Likewise.
7817
7818 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7819             Bruno Haible  <bruno@clisp.org>
7820
7821         unistr/u8-strchr: Optimize ASCII argument case.
7822         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7823
7824 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7825
7826         (x)memcoll: minor tweaks
7827         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7828         is after the type that it qualifies.
7829         (memcoll0): Likewise.
7830         * lib/memcoll.h (memcoll0): Likewise.
7831         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7832         * lib/xmemcoll.h (xmemcoll0): Likewise.
7833         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7834         differs from memcoll in that the NUL byte is part of the argument.
7835         Omit the abort-checks, as performance is a real issue here.  Plus,
7836         the checks were wrong anyway (an off-by-one error).  Omit local
7837         variable 'diff', as it's a bit clearer that way.
7838         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7839         no longer needed.
7840
7841 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7842
7843         (x)memcoll: speedup when input is known to be NUL delimited
7844         * lib/memcoll.c: Include stdlib.
7845         (memcoll0) New function.
7846         (strcoll_loop) New function, refactored for use in both memcoll
7847         and memcoll0.
7848         * lib/memcoll.h: Add prototype for memcoll0.
7849         * lib/xmemcoll.c: (xmemcoll0) New function.
7850         (collate_error) New function, refactored for use in both xmemcoll
7851         and xmemcoll0.
7852         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7853         * m4/memcoll.m4: add inline invocation.
7854
7855 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7856
7857         * build-aux/bootstrap: Remove any local translations
7858         from the translation project synchronization directory,
7859         so that local only translations are not distributed.
7860
7861 2010-07-04  Bruno Haible  <bruno@clisp.org>
7862
7863         fsusage: Clarify which code applies to which platforms.
7864         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7865         platform.
7866         * lib/fsusage.c (get_fs_usage): Likewise.
7867
7868 2010-07-04  Bruno Haible  <bruno@clisp.org>
7869
7870         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7871         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7872         Reported by Martin Lambers <marlam@marlam.de>.
7873
7874 2010-07-04  Jim Meyering  <meyering@redhat.com>
7875
7876         hash: once again explicitly disallow insertion of NULL
7877         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7878         inserting a NULL pointer cannot work with these functions.
7879         Add a comment with details.
7880         This reverts part of the 2010-07-01 commit, 5bef1a35
7881         "hash: extend module to deal with non-pointer keys".
7882
7883 2010-07-01  Bruno Haible  <bruno@clisp.org>
7884
7885         stdbool: Update doc.
7886         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7887         Info from Christian Weisgerber <naddy@mips.inka.de>.
7888
7889 2010-07-01  Jim Meyering  <meyering@redhat.com>
7890
7891         hash: extend module to deal with non-pointer keys
7892         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7893         but that allows insertion of non-pointer entries.
7894         Do not disallow an ENTRY value of NULL.
7895         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7896         * lib/hash.h (hash_insert0): Declare.
7897
7898 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7899
7900         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7901         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7902         not present (i.e. with autoconf 2.59 and when using gettextize, not
7903         gnulib), require AC_GNU_SOURCE instead.
7904
7905 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7906
7907         idpriv-drop: Fix tests.
7908         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7909         not to the test-idpriv-droptemp program.
7910
7911 2010-06-29  Bruno Haible  <bruno@clisp.org>
7912
7913         string: Fix syntax error with g++ 2.96.
7914         * lib/string.in.h (__pure__): Remove definition.
7915         (_GL_ATTRIBUTE_PURE): New macro.
7916         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7917         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7918         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7919
7920 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7921
7922         unitypes: Fix bug introduced on 2010-05-18.
7923         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7924
7925 2010-06-22  Eric Blake  <eblake@redhat.com>
7926
7927         memmem: slight optimization
7928         * lib/str-two-way.h (critical_factorization): Update comments.
7929         Reduce work during factorization phase.
7930         Reported by Carlos Bueno <carlos@bueno.org>.
7931
7932 2010-06-21  Bruno Haible  <bruno@clisp.org>
7933
7934         Fix HAVE_CALLOC_POSIX misnomer.
7935         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7936         !HAVE_CALLOC_POSIX.
7937         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7938         HAVE_CALLOC_POSIX.
7939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7940         instead of HAVE_CALLOC_POSIX.
7941         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7942         HAVE_CALLOC_POSIX.
7943
7944         Use modern idiom for calloc() replacement.
7945         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7946         AC_FUNC_CALLOC.
7947         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7948         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7949         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7950         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7951         (gl_REPLACE_CALLOC): New macro.
7952
7953 2010-06-21  Bruno Haible  <bruno@clisp.org>
7954
7955         Fix HAVE_REALLOC_POSIX misnomer.
7956         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7957         !HAVE_REALLOC_POSIX.
7958         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7959         HAVE_REALLOC_POSIX.
7960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7961         instead of HAVE_REALLOC_POSIX.
7962         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7963         HAVE_REALLOC_POSIX.
7964
7965         Use modern idiom for realloc() replacement.
7966         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7967         AC_FUNC_REALLOC.
7968         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
7969         Autoconf's AC_FUNC_REALLOC.
7970         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7971         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
7972         (gl_REPLACE_REALLOC): New macro.
7973         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7974
7975 2010-06-21  Bruno Haible  <bruno@clisp.org>
7976
7977         Fix HAVE_MALLOC_POSIX misnomer.
7978         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
7979         !HAVE_MALLOC_POSIX.
7980         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
7981         HAVE_MALLOC_POSIX.
7982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
7983         instead of HAVE_MALLOC_POSIX.
7984         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
7985         HAVE_MALLOC_POSIX.
7986
7987         Use modern idiom for malloc() replacement.
7988         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
7989         AC_FUNC_MALLOC.
7990         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
7991         Autoconf's AC_FUNC_MALLOC.
7992         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7993         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
7994         (gl_REPLACE_MALLOC): New macro.
7995         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7996
7997 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
7998
7999         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
8000         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
8001         This macro takes 3 arguments, not 4.
8002
8003 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
8004
8005         ipv6: fix detection under mingw
8006         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
8007         in6_addr.
8008
8009 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
8010
8011         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
8012         that strtod() works when cross-compiling to a glibc version known
8013         to work.
8014
8015 2010-06-15  Bruno Haible  <bruno@clisp.org>
8016
8017         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
8018
8019 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
8020
8021         select: Correct timeout.
8022         * lib/select.c (rpl_select): Compute wait_timeout correctly.
8023
8024 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8025
8026         git-version-gen: init shell var to avoid env var influence
8027         * build-aux/git-version-gen (v): Init shell var to empty.
8028
8029 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8030
8031         priv-set: Don't assume that priv.h exists merely because getppriv does.
8032         See Jan Andersen's bug report about AIX 5L in
8033         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
8034         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
8035         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
8036         * lib/priv-set.h: Likewise.
8037         * tests/test-priv-set.c: Likewise.
8038
8039 2010-06-13  Bruno Haible  <bruno@clisp.org>
8040
8041         relocatable: Make it easier to test whether to install wrappers.
8042         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
8043         RELOCATABLE_VIA_WRAPPER.
8044
8045 2010-06-13  Bruno Haible  <bruno@clisp.org>
8046
8047         gnulib-tool: Display specified modules and dependencies differently.
8048         * gnulib-tool (func_show_module_list): New function.
8049         (func_import, func_create_testdir): Invoke it.
8050         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8051
8052 2010-06-13  Bruno Haible  <bruno@clisp.org>
8053
8054         gnulib-tool: Align code of func_import and func_create_testdir.
8055         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
8056         specified_modules.
8057
8058 2010-06-12  Jim Meyering  <meyering@redhat.com>
8059
8060         test-inttostr: avoid spurious failure on Solaris 9
8061         * tests/test-inttostr.c (main): Skip the test when snprintf fails
8062         to accept "%ju".  Reported by Bruno Haible.
8063
8064 2010-06-11  Jim Meyering  <meyering@redhat.com>
8065
8066         test-sys_socket: mark variables as used more readably
8067         * tests/test-sys_socket.c (main): Mark otherwise unused variables
8068         as "used" explicitly via (void) statement casts.  This is more
8069         readable than using them in an artificial return expression.
8070         Suggestion from Bruno Haible.
8071
8072 2010-06-11  Bruno Haible  <bruno@clisp.org>
8073
8074         Avoid some more warnings from "gcc -Wwrite-strings".
8075         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
8076         to 'const char *'.
8077         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
8078         * tests/test-c-strcasestr.c (main): Likewise.
8079         * tests/test-mbscasestr1.c (main): Likewise.
8080         * tests/test-mbscasestr2.c (main): Likewise.
8081         * tests/test-memmem.c (main): Likewise.
8082         * tests/test-strstr.c (main): Likewise.
8083         * tests/test-strcasestr.c (main): Likewise.
8084
8085 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8086
8087         init.sh: change framework_failure_ to fail with status 99, not 1
8088         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
8089         automake's parallel-tests rule that this is an unexpected failure,
8090         even if the test is listed in XFAIL_TESTS.
8091
8092 2010-06-11  Jim Meyering  <meyering@redhat.com>
8093
8094         test-inttostr: avoid warnings about 4-6KB literal strings
8095         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
8096         Include "macros.h", for its definition of ASSERT.
8097         (CK): s/assert/ASSERT/
8098         * modules/inttostr-tests (Files): Add macros.h.
8099
8100         init.sh: don't use $ME_ or skip_ before they are defined
8101         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
8102         their first uses.  Also hoist their companions: warn_, fail_,
8103         framework_failure_, $stderr_fileno.  Prompted by a patch from
8104         Stefano Lattarini.
8105
8106         test-sys_socket: avoid set-but-not-used warnings from gcc
8107         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
8108         avoid warning about set-but-not-used variables.
8109
8110         test-xvasprintf: avoid 'const' discard warnings
8111         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
8112         "const" when assigning from literal strings.
8113         (test_xasprintf): Add "void" in function argument list to placate
8114         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
8115
8116         tests: avoid compilation warnings in argmatch and exclude tests...
8117         in packages that define ARGMATCH_DIE_DECL, like coreutils.
8118         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
8119         Since it always exits, declare with the "noreturn" attribute.
8120         * tests/test-argmatch.c: Likewise.
8121
8122         tests: avoid 'const' discard warnings in mbsstr tests
8123         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
8124         * tests/test-mbsstr2.c (main): Likewise.
8125
8126         test-verify: avoid warning from gcc's -Wmissing-declarations
8127         * tests/test-verify.c (function): Declare to be static.
8128
8129         test-inttostr.c: include <string.h> for use of strcmp
8130         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
8131
8132         test-linkat: avoid failed assertion on "other" architectures
8133         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
8134         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
8135         sparc: https://bugs.launchpad.net/bugs/591968
8136
8137 2010-06-11  Jim Meyering  <meyering@redhat.com>
8138
8139         printf.m4: avoid autoconf's "Expanded Before Required" warning
8140         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
8141         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
8142         autoconf warning.
8143
8144 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
8145
8146         Replacement header templates are now named with ".in", not "_".
8147         * doc/gnulib-intro.texi: Correct.
8148
8149 2010-06-10  Jim Meyering  <meyering@redhat.com>
8150
8151         inttostr-tests: depend on snprintf, not snprintf-posix
8152         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
8153         snprintf-posix, to avoid this aclocal failure:
8154           missing file gnulib-tests/vasnprintf.c
8155           configure.ac:45: error: expected source file, required through \
8156           AC_LIBSOURCES, not found
8157
8158 2010-06-10  Jim Meyering  <meyering@redhat.com>
8159
8160         inttostr: add a new function, inttostr, and tests
8161         The namesake function was not available.  The existence of the
8162         template file, inttostr.c makes its addition nontrivial.
8163         * lib/anytostr.c: Rename from inttostr.c.
8164         (anytostr): Rename from inttostr.
8165         * lib/inttostr.c: New file.
8166         * modules/inttostr (Files): Add anytostr.c.
8167         (Makefile.am): Set lib_SOURCES instead of ...
8168         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
8169         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
8170         * lib/offtostr.c: Likewise.
8171         * lib/uinttostr.c: Likewise.
8172         * lib/umaxtostr.c: Likewise.
8173         * modules/inttostr-tests: New file.
8174         * tests/test-inttostr.c: New file.  Test these functions.
8175
8176 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
8177             Bruno Haible  <bruno@clisp.org>
8178
8179         Add "Extending Gnulib" chapter to manual.
8180         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
8181         chapter.
8182         (Extending Gnulib): New chapter.
8183         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
8184         chapter.
8185
8186 2010-06-09  Bruno Haible  <bruno@clisp.org>
8187
8188         Avoid relocwrapper link errors due to gnulib replacement functions.
8189         * lib/areadlink.c: Use the system's malloc, realloc functions.
8190         (areadlink): Set errno to ENOMEM explicitly.
8191         * modules/areadlink (Depends-on): Remove malloc-posix.
8192         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8193
8194 2010-06-09  Bruno Haible  <bruno@clisp.org>
8195
8196         Avoid relocwrapper link errors due to gnulib replacement functions.
8197         * lib/canonicalize-lgpl.c: Use the system's malloc function.
8198         * lib/malloca.c: Likewise.
8199         * lib/relocatable.c: Likewise.
8200         * lib/progreloc.c: Use the system's malloc, sprintf functions.
8201         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
8202         * lib/setenv.c: Use the system's malloc, realloc functions.
8203         * lib/strerror.c: Use the system's sprintf function.
8204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8205
8206 2010-06-04  Bruno Haible  <bruno@clisp.org>
8207
8208         Prefer documented low-level autoconf macro names.
8209         * m4/lib-link.m4: Use m4_translit instead of translit.
8210         * m4/environ.m4: Likewise.
8211         * m4/mathfunc.m4: Likewise.
8212         * m4/onceonly.m4: Likewise.
8213         * m4/stdint.m4: Likewise.
8214         Suggested by Eric Blake.
8215
8216 2010-06-04  Martin Lambers  <marlam@marlam.de>
8217             Bruno Haible  <bruno@clisp.org>
8218
8219         havelib: Allow library names with '+' characters.
8220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8221         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
8222
8223 2010-06-09  Bruno Haible  <bruno@clisp.org>
8224
8225         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
8226         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
8227         realloc failed.
8228
8229 2010-06-08  Peter Simons  <simons@cryp.to>
8230
8231         maint.mk: make the news-check rule more configurable
8232         * top/maint.mk (news-check-lines-spec) New variable.
8233         (news-check): Use "sed -n 1,10p" in place of "head".
8234
8235 2010-06-07  Jim Meyering  <meyering@redhat.com>
8236
8237         do-release-commit-and-tag: fix typo in --help
8238         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
8239
8240         regex: avoid new dead-code warning with gcc-4.6.0
8241         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
8242         if-block containing a while-loop.  It's been unused for at least
8243         5 years.
8244
8245 2010-06-05  Bruno Haible  <bruno@clisp.org>
8246
8247         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
8248         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
8249
8250 2010-06-04  Bruno Haible  <bruno@clisp.org>
8251
8252         Update to GNU gettext 0.18.1.
8253         * modules/gettext (configure.ac): Require gettext infrastructure from
8254         version 0.18.1.
8255
8256 2010-06-03  Bruno Haible  <bruno@clisp.org>
8257
8258         Don't use AC_LIBOBJ with file names in subdirectories.
8259         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
8260         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
8261         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
8262         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
8263         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
8264         gl_LIBUNISTRING_LIBSOURCE.
8265         (Makefile.am): Augment lib_SOURCES here, conditionally.
8266         * NEWS: Drop requirement for Automake option 'subdir-objects'.
8267
8268 2010-06-03  Bruno Haible  <bruno@clisp.org>
8269
8270         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
8271         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
8272         expansion does not end with a newline.
8273         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
8274         unnecessary newline.
8275
8276 2010-06-03  Bruno Haible  <bruno@clisp.org>
8277
8278         Reduce dependencies.
8279         * tests/test-quotearg.h: New file, extracted from
8280         tests/test-quotearg.c.
8281         * tests/test-quotearg-simple.c: New file, extracted from
8282         tests/test-quotearg.c.
8283         * tests/test-quotearg.c: Don't include <ctype.h>.
8284         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
8285         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
8286         use_quote_double_quotes, use_quotearg_colon): Moved to
8287         tests/test-quotearg.h.
8288         (results_g, flag_results, custom_quotes, custom_results): Moved
8289         to tests/test-quotearg-simple.c.
8290         (main): Moved the part that does not depend on gettext to
8291         tests/test-quotearg-simple.c. Return 77 if the test cannot be
8292         performed.
8293         * modules/quotearg-simple: New file.
8294         * modules/quotearg-simple-tests: New file.
8295         * modules/quotearg (Depends-on): Add quotearg-simple.
8296         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
8297         (Files): Add tests/test-quotearg.h.
8298         Reported by Paolo Bonzini.
8299
8300 2010-06-03  Bruno Haible  <bruno@clisp.org>
8301
8302         Reduce dependencies.
8303         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
8304
8305 2010-06-03  Bruno Haible  <bruno@clisp.org>
8306
8307         time: Undefine more broken macros.
8308         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
8309         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
8310         Reported by Eric Blake.
8311
8312 2010-06-03  Bruno Haible  <bruno@clisp.org>
8313
8314         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
8315         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
8316         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
8317         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
8318         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
8319         Reported by Ludovic Courtès <ludo@gnu.org>.
8320
8321 2010-06-02  Eric Blake  <eblake@redhat.com>
8322
8323         time: work with mingw + pthreads-win32 library
8324         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
8325         if timespec is defined only in pthread.h.
8326         * modules/time (Makefile.am): Substitute it.
8327         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
8328         <pthread.h>, when needed.
8329         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
8330         from the library.
8331
8332 2010-05-31  Bruno Haible  <bruno@clisp.org>
8333
8334         Avoid expanding two macros in the wrong order.
8335         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
8336         gl_LIBUNISTRING if it is defined.
8337         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
8338         autoconf >= 2.64.
8339         Reported by Ludovic Courtès <ludo@gnu.org>.
8340
8341 2010-05-27  Jim Meyering  <meyering@redhat.com>
8342
8343         maint.mk: also prohibit "#undef" of always-defined symbols
8344         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
8345         Allow more than one space before the symbol name.
8346         (sc_prohibit_always-defined_macros): Use grep's -E, now that
8347         the regexp uses alternation.
8348
8349 2010-05-26  Eric Blake  <eblake@redhat.com>
8350
8351         maint.mk: avoid echo -e
8352         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
8353         Convert all uses of echo -* to printf.
8354         Reported by Matthias Bolte.
8355
8356 2010-05-25  Bruno Haible  <bruno@clisp.org>
8357
8358         Update to GNU gettext 0.18, part 2.
8359         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
8360         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
8361
8362 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8363
8364         Add missing include in test-pwrite.c.
8365         * tests/test-pwrite.c: Include string.h, for strcmp.
8366
8367 2010-05-24  Bruno Haible  <bruno@clisp.org>
8368
8369         * NEWS: Mention requirement for Automake option 'subdir-objects'.
8370
8371 2010-05-24  Bruno Haible  <bruno@clisp.org>
8372
8373         Don't use conversion with transliteration in u{8,16,32}_strcoll.
8374         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
8375         iconveh_error argument.
8376         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
8377         U_STRCONV_TO_LOCALE.
8378         * lib/unistr/u16-strcoll.c: Likewise.
8379         * lib/unistr/u32-strcoll.c: Likewise.
8380         * modules/unistr/u8-strcoll (Depends-on): Add
8381         uniconv/u8-strconv-to-enc, localcharset. Remove
8382         uniconv/u8-strconv-to-locale.
8383         (configure.ac): Bump version number.
8384         * modules/unistr/u16-strcoll (Depends-on): Add
8385         uniconv/u16-strconv-to-enc, localcharset. Remove
8386         uniconv/u16-strconv-to-locale.
8387         (configure.ac): Bump version number.
8388         * modules/unistr/u32-strcoll (Depends-on): Add
8389         uniconv/u32-strconv-to-enc, localcharset. Remove
8390         uniconv/u32-strconv-to-locale.
8391         (configure.ac): Bump version number.
8392
8393 2010-05-24  Bruno Haible  <bruno@clisp.org>
8394
8395         Avoid a test failure on NetBSD 5.0.
8396         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
8397         an iconv() bug.
8398
8399 2010-05-24  Bruno Haible  <bruno@clisp.org>
8400
8401         Adjust #include directive style.
8402         * modules/regex (Includes): Recommend to write <regex.h>.
8403
8404 2010-05-24  Bruno Haible  <bruno@clisp.org>
8405
8406         regex: Don't require alloca.
8407         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
8408         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
8409         only inside if (0).
8410
8411 2010-05-23  Jim Meyering  <meyering@redhat.com>
8412
8413         test-renameat.c: include <sys/stat.h>
8414         * tests/test-renameat.c: Include <sys/stat.h>; required for
8415         definition of S_IS* macros.
8416
8417 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
8418
8419         Update maintainer documentation for 'relocatable-prog' module.
8420         * doc/relocatable-maint.texi: Update.
8421         Comments by Bruno Haible.
8422
8423 2010-05-23  Bruno Haible  <bruno@clisp.org>
8424
8425         git-merge-changelog: Enable --split-merged-entry by default.
8426         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
8427         (usage): Don't mention this option any more.
8428         Reported by Ralf Wildenhues.
8429
8430 2010-05-23  Jim Meyering  <meyering@redhat.com>
8431
8432         test-pwrite: do not leave behind a test file named "out"
8433         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
8434         The trivial-looking use of init.sh is really necessary.
8435         It ensures that the temporary file, "out", is created in
8436         a temporary directory, and removed upon termination.
8437         * tests/test-pwrite.sh: Re-add file.
8438         * modules/pwrite-tests: Reference it.
8439
8440 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8441
8442         Fix output redirection buglet in init.sh.
8443         * tests/init.sh: Fix redirection of stderr.
8444
8445 2010-05-20  Simon Josefsson  <simon@josefsson.org>
8446
8447         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
8448
8449 2010-05-17  Simon Josefsson  <simon@josefsson.org>
8450
8451         * modules/valgrind-tests: New file.
8452         * m4/valgrind-tests.m4: New file.
8453         * doc/valgrind-tests.texi: New file.
8454         * doc/gnulib.texi (Running self-tests under valgrind): New
8455         section.
8456
8457 2010-05-19  Bruno Haible  <bruno@clisp.org>
8458
8459         Clean up dead code in recent commit.
8460         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
8461         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
8462         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
8463         Suggested by Paolo Bonzini.
8464
8465 2010-05-19  Bruno Haible  <bruno@clisp.org>
8466
8467         Avoid valgrind error reports from libunistring.
8468         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
8469         * modules/libunistring (Files): Add it.
8470         * modules/libunistring-optional (Files): Likewise.
8471
8472 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
8473             Bruno Haible  <bruno@clisp.org>
8474
8475         New module 'libunistring-optional'.
8476         * modules/libunistring-optional: New file.
8477         * m4/libunistring-base.m4: New file.
8478         * m4/libunistring-optional.m4: New file.
8479         * lib/unicase.in.h: Renamed from lib/unicase.h.
8480         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
8481         * lib/unictype.in.h: Renamed from lib/unictype.h.
8482         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
8483         * lib/uniname.in.h: Renamed from lib/uniname.h.
8484         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
8485         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
8486         * lib/unistr.in.h: Renamed from lib/unistr.h.
8487         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
8488         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
8489         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
8490         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
8491         gl_LIBUNISTRING. If the library was found, determine the installed
8492         version and set LIBUNISTRING_VERSION.
8493         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
8494         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
8495         handle a configuration option --with-included-libunistring.
8496         * modules/libunistring (Files): Add m4/absolute-header.m4.
8497         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
8498         Add m4/libunistring-base.m4.
8499         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8500         (Makefile.am): Build unicase.h from unicase.in.h.
8501         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
8502         Add m4/libunistring-base.m4.
8503         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8504         (Makefile.am): Build uniconv.h from uniconv.in.h.
8505         * modules/unictype/base (Files): Use unictype.in.h instead of
8506         unictype.h. Add m4/libunistring-base.m4.
8507         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8508         (Makefile.am): Build unictype.h from unictype.in.h.
8509         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
8510         Add m4/libunistring-base.m4.
8511         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8512         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
8513         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
8514         Add m4/libunistring-base.m4.
8515         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8516         (Makefile.am): Build uniname.h from uniname.in.h.
8517         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
8518         Add m4/libunistring-base.m4.
8519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8520         (Makefile.am): Build uninorm.h from uninorm.in.h.
8521         * modules/unistdio/base (Files): Use unistdio.in.h instead of
8522         unistdio.h. Add m4/libunistring-base.m4.
8523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8524         (Makefile.am): Build unistdio.h from unistdio.in.h.
8525         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
8526         Add m4/libunistring-base.m4.
8527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8528         (Makefile.am): Build unistr.h from unistr.in.h.
8529         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
8530         Add m4/libunistring-base.m4.
8531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8532         (Makefile.am): Build unitypes.h from unitypes.in.h.
8533         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
8534         Add m4/libunistring-base.m4.
8535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8536         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
8537         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
8538         uniwidth.h. Add m4/libunistring-base.m4.
8539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8540         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
8541         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
8542         instead of augmenting lib_SOURCES.
8543         * modules/unicase/empty-suffix-context: Likewise.
8544         * modules/unicase/locale-language: Likewise.
8545         * modules/unicase/tolower: Likewise.
8546         * modules/unicase/totitle: Likewise.
8547         * modules/unicase/toupper: Likewise.
8548         * modules/unicase/u8-casecmp: Likewise.
8549         * modules/unicase/u8-casecoll: Likewise.
8550         * modules/unicase/u8-casefold: Likewise.
8551         * modules/unicase/u8-casexfrm: Likewise.
8552         * modules/unicase/u8-ct-casefold: Likewise.
8553         * modules/unicase/u8-ct-tolower: Likewise.
8554         * modules/unicase/u8-ct-totitle: Likewise.
8555         * modules/unicase/u8-ct-toupper: Likewise.
8556         * modules/unicase/u8-is-cased: Likewise.
8557         * modules/unicase/u8-is-casefolded: Likewise.
8558         * modules/unicase/u8-is-lowercase: Likewise.
8559         * modules/unicase/u8-is-titlecase: Likewise.
8560         * modules/unicase/u8-is-uppercase: Likewise.
8561         * modules/unicase/u8-prefix-context: Likewise.
8562         * modules/unicase/u8-suffix-context: Likewise.
8563         * modules/unicase/u8-tolower: Likewise.
8564         * modules/unicase/u8-totitle: Likewise.
8565         * modules/unicase/u8-toupper: Likewise.
8566         * modules/unicase/u16-casecmp: Likewise.
8567         * modules/unicase/u16-casecoll: Likewise.
8568         * modules/unicase/u16-casefold: Likewise.
8569         * modules/unicase/u16-casexfrm: Likewise.
8570         * modules/unicase/u16-ct-casefold: Likewise.
8571         * modules/unicase/u16-ct-tolower: Likewise.
8572         * modules/unicase/u16-ct-totitle: Likewise.
8573         * modules/unicase/u16-ct-toupper: Likewise.
8574         * modules/unicase/u16-is-cased: Likewise.
8575         * modules/unicase/u16-is-casefolded: Likewise.
8576         * modules/unicase/u16-is-lowercase: Likewise.
8577         * modules/unicase/u16-is-titlecase: Likewise.
8578         * modules/unicase/u16-is-uppercase: Likewise.
8579         * modules/unicase/u16-prefix-context: Likewise.
8580         * modules/unicase/u16-suffix-context: Likewise.
8581         * modules/unicase/u16-tolower: Likewise.
8582         * modules/unicase/u16-totitle: Likewise.
8583         * modules/unicase/u16-toupper: Likewise.
8584         * modules/unicase/u32-casecmp: Likewise.
8585         * modules/unicase/u32-casecoll: Likewise.
8586         * modules/unicase/u32-casefold: Likewise.
8587         * modules/unicase/u32-casexfrm: Likewise.
8588         * modules/unicase/u32-ct-casefold: Likewise.
8589         * modules/unicase/u32-ct-tolower: Likewise.
8590         * modules/unicase/u32-ct-totitle: Likewise.
8591         * modules/unicase/u32-ct-toupper: Likewise.
8592         * modules/unicase/u32-is-cased: Likewise.
8593         * modules/unicase/u32-is-casefolded: Likewise.
8594         * modules/unicase/u32-is-lowercase: Likewise.
8595         * modules/unicase/u32-is-titlecase: Likewise.
8596         * modules/unicase/u32-is-uppercase: Likewise.
8597         * modules/unicase/u32-prefix-context: Likewise.
8598         * modules/unicase/u32-suffix-context: Likewise.
8599         * modules/unicase/u32-tolower: Likewise.
8600         * modules/unicase/u32-totitle: Likewise.
8601         * modules/unicase/u32-toupper: Likewise.
8602         * modules/unicase/ulc-casecmp: Likewise.
8603         * modules/unicase/ulc-casecoll: Likewise.
8604         * modules/unicase/ulc-casexfrm: Likewise.
8605         * modules/uniconv/u8-conv-from-enc: Likewise.
8606         * modules/uniconv/u8-conv-to-enc: Likewise.
8607         * modules/uniconv/u8-strconv-from-enc: Likewise.
8608         * modules/uniconv/u8-strconv-from-locale: Likewise.
8609         * modules/uniconv/u8-strconv-to-enc: Likewise.
8610         * modules/uniconv/u8-strconv-to-locale: Likewise.
8611         * modules/uniconv/u16-conv-from-enc: Likewise.
8612         * modules/uniconv/u16-conv-to-enc: Likewise.
8613         * modules/uniconv/u16-strconv-from-enc: Likewise.
8614         * modules/uniconv/u16-strconv-from-locale: Likewise.
8615         * modules/uniconv/u16-strconv-to-enc: Likewise.
8616         * modules/uniconv/u16-strconv-to-locale: Likewise.
8617         * modules/uniconv/u32-conv-from-enc: Likewise.
8618         * modules/uniconv/u32-conv-to-enc: Likewise.
8619         * modules/uniconv/u32-strconv-from-enc: Likewise.
8620         * modules/uniconv/u32-strconv-from-locale: Likewise.
8621         * modules/uniconv/u32-strconv-to-enc: Likewise.
8622         * modules/uniconv/u32-strconv-to-locale: Likewise.
8623         * modules/unictype/bidicategory-byname: Likewise.
8624         * modules/unictype/bidicategory-name: Likewise.
8625         * modules/unictype/bidicategory-of: Likewise.
8626         * modules/unictype/bidicategory-test: Likewise.
8627         * modules/unictype/block-list: Likewise.
8628         * modules/unictype/block-test: Likewise.
8629         * modules/unictype/category-C: Likewise.
8630         * modules/unictype/category-Cc: Likewise.
8631         * modules/unictype/category-Cf: Likewise.
8632         * modules/unictype/category-Cn: Likewise.
8633         * modules/unictype/category-Co: Likewise.
8634         * modules/unictype/category-Cs: Likewise.
8635         * modules/unictype/category-L: Likewise.
8636         * modules/unictype/category-Ll: Likewise.
8637         * modules/unictype/category-Lm: Likewise.
8638         * modules/unictype/category-Lo: Likewise.
8639         * modules/unictype/category-Lt: Likewise.
8640         * modules/unictype/category-Lu: Likewise.
8641         * modules/unictype/category-M: Likewise.
8642         * modules/unictype/category-Mc: Likewise.
8643         * modules/unictype/category-Me: Likewise.
8644         * modules/unictype/category-Mn: Likewise.
8645         * modules/unictype/category-N: Likewise.
8646         * modules/unictype/category-Nd: Likewise.
8647         * modules/unictype/category-Nl: Likewise.
8648         * modules/unictype/category-No: Likewise.
8649         * modules/unictype/category-P: Likewise.
8650         * modules/unictype/category-Pc: Likewise.
8651         * modules/unictype/category-Pd: Likewise.
8652         * modules/unictype/category-Pe: Likewise.
8653         * modules/unictype/category-Pf: Likewise.
8654         * modules/unictype/category-Pi: Likewise.
8655         * modules/unictype/category-Po: Likewise.
8656         * modules/unictype/category-Ps: Likewise.
8657         * modules/unictype/category-S: Likewise.
8658         * modules/unictype/category-Sc: Likewise.
8659         * modules/unictype/category-Sk: Likewise.
8660         * modules/unictype/category-Sm: Likewise.
8661         * modules/unictype/category-So: Likewise.
8662         * modules/unictype/category-Z: Likewise.
8663         * modules/unictype/category-Zl: Likewise.
8664         * modules/unictype/category-Zp: Likewise.
8665         * modules/unictype/category-Zs: Likewise.
8666         * modules/unictype/category-and: Likewise.
8667         * modules/unictype/category-and-not: Likewise.
8668         * modules/unictype/category-byname: Likewise.
8669         * modules/unictype/category-name: Likewise.
8670         * modules/unictype/category-none: Likewise.
8671         * modules/unictype/category-of: Likewise.
8672         * modules/unictype/category-or: Likewise.
8673         * modules/unictype/category-test: Likewise.
8674         * modules/unictype/combining-class: Likewise.
8675         * modules/unictype/ctype-alnum: Likewise.
8676         * modules/unictype/ctype-alpha: Likewise.
8677         * modules/unictype/ctype-blank: Likewise.
8678         * modules/unictype/ctype-cntrl: Likewise.
8679         * modules/unictype/ctype-digit: Likewise.
8680         * modules/unictype/ctype-graph: Likewise.
8681         * modules/unictype/ctype-lower: Likewise.
8682         * modules/unictype/ctype-print: Likewise.
8683         * modules/unictype/ctype-punct: Likewise.
8684         * modules/unictype/ctype-space: Likewise.
8685         * modules/unictype/ctype-upper: Likewise.
8686         * modules/unictype/ctype-xdigit: Likewise.
8687         * modules/unictype/decimal-digit: Likewise.
8688         * modules/unictype/digit: Likewise.
8689         * modules/unictype/mirror: Likewise.
8690         * modules/unictype/numeric: Likewise.
8691         * modules/unictype/property-alphabetic: Likewise.
8692         * modules/unictype/property-ascii-hex-digit: Likewise.
8693         * modules/unictype/property-bidi-arabic-digit: Likewise.
8694         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
8695         * modules/unictype/property-bidi-block-separator: Likewise.
8696         * modules/unictype/property-bidi-boundary-neutral: Likewise.
8697         * modules/unictype/property-bidi-common-separator: Likewise.
8698         * modules/unictype/property-bidi-control: Likewise.
8699         * modules/unictype/property-bidi-embedding-or-override: Likewise.
8700         * modules/unictype/property-bidi-eur-num-separator: Likewise.
8701         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
8702         * modules/unictype/property-bidi-european-digit: Likewise.
8703         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
8704         * modules/unictype/property-bidi-left-to-right: Likewise.
8705         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
8706         * modules/unictype/property-bidi-other-neutral: Likewise.
8707         * modules/unictype/property-bidi-pdf: Likewise.
8708         * modules/unictype/property-bidi-segment-separator: Likewise.
8709         * modules/unictype/property-bidi-whitespace: Likewise.
8710         * modules/unictype/property-byname: Likewise.
8711         * modules/unictype/property-combining: Likewise.
8712         * modules/unictype/property-composite: Likewise.
8713         * modules/unictype/property-currency-symbol: Likewise.
8714         * modules/unictype/property-dash: Likewise.
8715         * modules/unictype/property-decimal-digit: Likewise.
8716         * modules/unictype/property-default-ignorable-code-point: Likewise.
8717         * modules/unictype/property-deprecated: Likewise.
8718         * modules/unictype/property-diacritic: Likewise.
8719         * modules/unictype/property-extender: Likewise.
8720         * modules/unictype/property-format-control: Likewise.
8721         * modules/unictype/property-grapheme-base: Likewise.
8722         * modules/unictype/property-grapheme-extend: Likewise.
8723         * modules/unictype/property-grapheme-link: Likewise.
8724         * modules/unictype/property-hex-digit: Likewise.
8725         * modules/unictype/property-hyphen: Likewise.
8726         * modules/unictype/property-id-continue: Likewise.
8727         * modules/unictype/property-id-start: Likewise.
8728         * modules/unictype/property-ideographic: Likewise.
8729         * modules/unictype/property-ids-binary-operator: Likewise.
8730         * modules/unictype/property-ids-trinary-operator: Likewise.
8731         * modules/unictype/property-ignorable-control: Likewise.
8732         * modules/unictype/property-iso-control: Likewise.
8733         * modules/unictype/property-join-control: Likewise.
8734         * modules/unictype/property-left-of-pair: Likewise.
8735         * modules/unictype/property-line-separator: Likewise.
8736         * modules/unictype/property-logical-order-exception: Likewise.
8737         * modules/unictype/property-lowercase: Likewise.
8738         * modules/unictype/property-math: Likewise.
8739         * modules/unictype/property-non-break: Likewise.
8740         * modules/unictype/property-not-a-character: Likewise.
8741         * modules/unictype/property-numeric: Likewise.
8742         * modules/unictype/property-other-alphabetic: Likewise.
8743         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8744         * modules/unictype/property-other-grapheme-extend: Likewise.
8745         * modules/unictype/property-other-id-continue: Likewise.
8746         * modules/unictype/property-other-id-start: Likewise.
8747         * modules/unictype/property-other-lowercase: Likewise.
8748         * modules/unictype/property-other-math: Likewise.
8749         * modules/unictype/property-other-uppercase: Likewise.
8750         * modules/unictype/property-paired-punctuation: Likewise.
8751         * modules/unictype/property-paragraph-separator: Likewise.
8752         * modules/unictype/property-pattern-syntax: Likewise.
8753         * modules/unictype/property-pattern-white-space: Likewise.
8754         * modules/unictype/property-private-use: Likewise.
8755         * modules/unictype/property-punctuation: Likewise.
8756         * modules/unictype/property-quotation-mark: Likewise.
8757         * modules/unictype/property-radical: Likewise.
8758         * modules/unictype/property-sentence-terminal: Likewise.
8759         * modules/unictype/property-soft-dotted: Likewise.
8760         * modules/unictype/property-space: Likewise.
8761         * modules/unictype/property-terminal-punctuation: Likewise.
8762         * modules/unictype/property-test: Likewise.
8763         * modules/unictype/property-titlecase: Likewise.
8764         * modules/unictype/property-unassigned-code-value: Likewise.
8765         * modules/unictype/property-unified-ideograph: Likewise.
8766         * modules/unictype/property-uppercase: Likewise.
8767         * modules/unictype/property-variation-selector: Likewise.
8768         * modules/unictype/property-white-space: Likewise.
8769         * modules/unictype/property-xid-continue: Likewise.
8770         * modules/unictype/property-xid-start: Likewise.
8771         * modules/unictype/property-zero-width: Likewise.
8772         * modules/unictype/scripts: Likewise.
8773         * modules/unictype/syntax-c-ident: Likewise.
8774         * modules/unictype/syntax-c-whitespace: Likewise.
8775         * modules/unictype/syntax-java-ident: Likewise.
8776         * modules/unictype/syntax-java-whitespace: Likewise.
8777         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8778         * modules/unilbrk/u8-width-linebreaks: Likewise.
8779         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8780         * modules/unilbrk/u16-width-linebreaks: Likewise.
8781         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8782         * modules/unilbrk/u32-width-linebreaks: Likewise.
8783         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8784         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8785         * modules/uniname/uniname: Likewise.
8786         * modules/uninorm/canonical-decomposition: Likewise.
8787         * modules/uninorm/composition: Likewise.
8788         * modules/uninorm/decomposing-form: Likewise.
8789         * modules/uninorm/decomposition: Likewise.
8790         * modules/uninorm/filter: Likewise.
8791         * modules/uninorm/nfc: Likewise.
8792         * modules/uninorm/nfd: Likewise.
8793         * modules/uninorm/nfkc: Likewise.
8794         * modules/uninorm/nfkd: Likewise.
8795         * modules/uninorm/u8-normalize: Likewise.
8796         * modules/uninorm/u8-normcmp: Likewise.
8797         * modules/uninorm/u8-normcoll: Likewise.
8798         * modules/uninorm/u8-normxfrm: Likewise.
8799         * modules/uninorm/u16-normalize: Likewise.
8800         * modules/uninorm/u16-normcmp: Likewise.
8801         * modules/uninorm/u16-normcoll: Likewise.
8802         * modules/uninorm/u16-normxfrm: Likewise.
8803         * modules/uninorm/u32-normalize: Likewise.
8804         * modules/uninorm/u32-normcmp: Likewise.
8805         * modules/uninorm/u32-normcoll: Likewise.
8806         * modules/uninorm/u32-normxfrm: Likewise.
8807         * modules/unistdio/u8-asnprintf: Likewise.
8808         * modules/unistdio/u8-asprintf: Likewise.
8809         * modules/unistdio/u8-snprintf: Likewise.
8810         * modules/unistdio/u8-sprintf: Likewise.
8811         * modules/unistdio/u8-u8-asnprintf: Likewise.
8812         * modules/unistdio/u8-u8-asprintf: Likewise.
8813         * modules/unistdio/u8-u8-snprintf: Likewise.
8814         * modules/unistdio/u8-u8-sprintf: Likewise.
8815         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8816         * modules/unistdio/u8-u8-vasprintf: Likewise.
8817         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8818         * modules/unistdio/u8-u8-vsprintf: Likewise.
8819         * modules/unistdio/u8-vasnprintf: Likewise.
8820         * modules/unistdio/u8-vasprintf: Likewise.
8821         * modules/unistdio/u8-vsnprintf: Likewise.
8822         * modules/unistdio/u8-vsprintf: Likewise.
8823         * modules/unistdio/u16-asnprintf: Likewise.
8824         * modules/unistdio/u16-asprintf: Likewise.
8825         * modules/unistdio/u16-snprintf: Likewise.
8826         * modules/unistdio/u16-sprintf: Likewise.
8827         * modules/unistdio/u16-u16-asnprintf: Likewise.
8828         * modules/unistdio/u16-u16-asprintf: Likewise.
8829         * modules/unistdio/u16-u16-snprintf: Likewise.
8830         * modules/unistdio/u16-u16-sprintf: Likewise.
8831         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8832         * modules/unistdio/u16-u16-vasprintf: Likewise.
8833         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8834         * modules/unistdio/u16-u16-vsprintf: Likewise.
8835         * modules/unistdio/u16-vasnprintf: Likewise.
8836         * modules/unistdio/u16-vasprintf: Likewise.
8837         * modules/unistdio/u16-vsnprintf: Likewise.
8838         * modules/unistdio/u16-vsprintf: Likewise.
8839         * modules/unistdio/u32-asnprintf: Likewise.
8840         * modules/unistdio/u32-asprintf: Likewise.
8841         * modules/unistdio/u32-snprintf: Likewise.
8842         * modules/unistdio/u32-sprintf: Likewise.
8843         * modules/unistdio/u32-u32-asnprintf: Likewise.
8844         * modules/unistdio/u32-u32-asprintf: Likewise.
8845         * modules/unistdio/u32-u32-snprintf: Likewise.
8846         * modules/unistdio/u32-u32-sprintf: Likewise.
8847         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8848         * modules/unistdio/u32-u32-vasprintf: Likewise.
8849         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8850         * modules/unistdio/u32-u32-vsprintf: Likewise.
8851         * modules/unistdio/u32-vasnprintf: Likewise.
8852         * modules/unistdio/u32-vasprintf: Likewise.
8853         * modules/unistdio/u32-vsnprintf: Likewise.
8854         * modules/unistdio/u32-vsprintf: Likewise.
8855         * modules/unistdio/ulc-asnprintf: Likewise.
8856         * modules/unistdio/ulc-asprintf: Likewise.
8857         * modules/unistdio/ulc-fprintf: Likewise.
8858         * modules/unistdio/ulc-snprintf: Likewise.
8859         * modules/unistdio/ulc-sprintf: Likewise.
8860         * modules/unistdio/ulc-vasnprintf: Likewise.
8861         * modules/unistdio/ulc-vasprintf: Likewise.
8862         * modules/unistdio/ulc-vfprintf: Likewise.
8863         * modules/unistdio/ulc-vsnprintf: Likewise.
8864         * modules/unistdio/ulc-vsprintf: Likewise.
8865         * modules/unistr/u8-check: Likewise.
8866         * modules/unistr/u8-chr: Likewise.
8867         * modules/unistr/u8-cmp: Likewise.
8868         * modules/unistr/u8-cmp2: Likewise.
8869         * modules/unistr/u8-cpy: Likewise.
8870         * modules/unistr/u8-cpy-alloc: Likewise.
8871         * modules/unistr/u8-endswith: Likewise.
8872         * modules/unistr/u8-mblen: Likewise.
8873         * modules/unistr/u8-mbsnlen: Likewise.
8874         * modules/unistr/u8-mbtouc: Likewise.
8875         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8876         * modules/unistr/u8-mbtoucr: Likewise.
8877         * modules/unistr/u8-move: Likewise.
8878         * modules/unistr/u8-next: Likewise.
8879         * modules/unistr/u8-prev: Likewise.
8880         * modules/unistr/u8-set: Likewise.
8881         * modules/unistr/u8-startswith: Likewise.
8882         * modules/unistr/u8-stpcpy: Likewise.
8883         * modules/unistr/u8-stpncpy: Likewise.
8884         * modules/unistr/u8-strcat: Likewise.
8885         * modules/unistr/u8-strchr: Likewise.
8886         * modules/unistr/u8-strcmp: Likewise.
8887         * modules/unistr/u8-strcoll: Likewise.
8888         * modules/unistr/u8-strcpy: Likewise.
8889         * modules/unistr/u8-strcspn: Likewise.
8890         * modules/unistr/u8-strdup: Likewise.
8891         * modules/unistr/u8-strlen: Likewise.
8892         * modules/unistr/u8-strmblen: Likewise.
8893         * modules/unistr/u8-strmbtouc: Likewise.
8894         * modules/unistr/u8-strncat: Likewise.
8895         * modules/unistr/u8-strncmp: Likewise.
8896         * modules/unistr/u8-strncpy: Likewise.
8897         * modules/unistr/u8-strnlen: Likewise.
8898         * modules/unistr/u8-strpbrk: Likewise.
8899         * modules/unistr/u8-strrchr: Likewise.
8900         * modules/unistr/u8-strspn: Likewise.
8901         * modules/unistr/u8-strstr: Likewise.
8902         * modules/unistr/u8-strtok: Likewise.
8903         * modules/unistr/u8-to-u16: Likewise.
8904         * modules/unistr/u8-to-u32: Likewise.
8905         * modules/unistr/u8-uctomb: Likewise.
8906         * modules/unistr/u16-check: Likewise.
8907         * modules/unistr/u16-chr: Likewise.
8908         * modules/unistr/u16-cmp: Likewise.
8909         * modules/unistr/u16-cmp2: Likewise.
8910         * modules/unistr/u16-cpy: Likewise.
8911         * modules/unistr/u16-cpy-alloc: Likewise.
8912         * modules/unistr/u16-endswith: Likewise.
8913         * modules/unistr/u16-mblen: Likewise.
8914         * modules/unistr/u16-mbsnlen: Likewise.
8915         * modules/unistr/u16-mbtouc: Likewise.
8916         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8917         * modules/unistr/u16-mbtoucr: Likewise.
8918         * modules/unistr/u16-move: Likewise.
8919         * modules/unistr/u16-next: Likewise.
8920         * modules/unistr/u16-prev: Likewise.
8921         * modules/unistr/u16-set: Likewise.
8922         * modules/unistr/u16-startswith: Likewise.
8923         * modules/unistr/u16-stpcpy: Likewise.
8924         * modules/unistr/u16-stpncpy: Likewise.
8925         * modules/unistr/u16-strcat: Likewise.
8926         * modules/unistr/u16-strchr: Likewise.
8927         * modules/unistr/u16-strcmp: Likewise.
8928         * modules/unistr/u16-strcoll: Likewise.
8929         * modules/unistr/u16-strcpy: Likewise.
8930         * modules/unistr/u16-strcspn: Likewise.
8931         * modules/unistr/u16-strdup: Likewise.
8932         * modules/unistr/u16-strlen: Likewise.
8933         * modules/unistr/u16-strmblen: Likewise.
8934         * modules/unistr/u16-strmbtouc: Likewise.
8935         * modules/unistr/u16-strncat: Likewise.
8936         * modules/unistr/u16-strncmp: Likewise.
8937         * modules/unistr/u16-strncpy: Likewise.
8938         * modules/unistr/u16-strnlen: Likewise.
8939         * modules/unistr/u16-strpbrk: Likewise.
8940         * modules/unistr/u16-strrchr: Likewise.
8941         * modules/unistr/u16-strspn: Likewise.
8942         * modules/unistr/u16-strstr: Likewise.
8943         * modules/unistr/u16-strtok: Likewise.
8944         * modules/unistr/u16-to-u32: Likewise.
8945         * modules/unistr/u16-to-u8: Likewise.
8946         * modules/unistr/u16-uctomb: Likewise.
8947         * modules/unistr/u32-check: Likewise.
8948         * modules/unistr/u32-chr: Likewise.
8949         * modules/unistr/u32-cmp: Likewise.
8950         * modules/unistr/u32-cmp2: Likewise.
8951         * modules/unistr/u32-cpy: Likewise.
8952         * modules/unistr/u32-cpy-alloc: Likewise.
8953         * modules/unistr/u32-endswith: Likewise.
8954         * modules/unistr/u32-mblen: Likewise.
8955         * modules/unistr/u32-mbsnlen: Likewise.
8956         * modules/unistr/u32-mbtouc: Likewise.
8957         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8958         * modules/unistr/u32-mbtoucr: Likewise.
8959         * modules/unistr/u32-move: Likewise.
8960         * modules/unistr/u32-next: Likewise.
8961         * modules/unistr/u32-prev: Likewise.
8962         * modules/unistr/u32-set: Likewise.
8963         * modules/unistr/u32-startswith: Likewise.
8964         * modules/unistr/u32-stpcpy: Likewise.
8965         * modules/unistr/u32-stpncpy: Likewise.
8966         * modules/unistr/u32-strcat: Likewise.
8967         * modules/unistr/u32-strchr: Likewise.
8968         * modules/unistr/u32-strcmp: Likewise.
8969         * modules/unistr/u32-strcoll: Likewise.
8970         * modules/unistr/u32-strcpy: Likewise.
8971         * modules/unistr/u32-strcspn: Likewise.
8972         * modules/unistr/u32-strdup: Likewise.
8973         * modules/unistr/u32-strlen: Likewise.
8974         * modules/unistr/u32-strmblen: Likewise.
8975         * modules/unistr/u32-strmbtouc: Likewise.
8976         * modules/unistr/u32-strncat: Likewise.
8977         * modules/unistr/u32-strncmp: Likewise.
8978         * modules/unistr/u32-strncpy: Likewise.
8979         * modules/unistr/u32-strnlen: Likewise.
8980         * modules/unistr/u32-strpbrk: Likewise.
8981         * modules/unistr/u32-strrchr: Likewise.
8982         * modules/unistr/u32-strspn: Likewise.
8983         * modules/unistr/u32-strstr: Likewise.
8984         * modules/unistr/u32-strtok: Likewise.
8985         * modules/unistr/u32-to-u16: Likewise.
8986         * modules/unistr/u32-to-u8: Likewise.
8987         * modules/unistr/u32-uctomb: Likewise.
8988         * modules/uniwbrk/u8-wordbreaks: Likewise.
8989         * modules/uniwbrk/u16-wordbreaks: Likewise.
8990         * modules/uniwbrk/u32-wordbreaks: Likewise.
8991         * modules/uniwbrk/ulc-wordbreaks: Likewise.
8992         * modules/uniwbrk/wordbreak-property: Likewise.
8993         * modules/uniwidth/u8-strwidth: Likewise.
8994         * modules/uniwidth/u8-width: Likewise.
8995         * modules/uniwidth/u16-strwidth: Likewise.
8996         * modules/uniwidth/u16-width: Likewise.
8997         * modules/uniwidth/u32-strwidth: Likewise.
8998         * modules/uniwidth/u32-width: Likewise.
8999         * modules/uniwidth/width: Likewise.
9000         * modules/unicase/cased-tests (Makefile.am): Link all test programs
9001         with $(LIBUNISTRING).
9002         * modules/unicase/ignorable-tests: Likewise.
9003         * modules/unicase/locale-language-tests: Likewise.
9004         * modules/unicase/tolower-tests: Likewise.
9005         * modules/unicase/totitle-tests: Likewise.
9006         * modules/unicase/toupper-tests: Likewise.
9007         * modules/unicase/u8-casecmp-tests: Likewise.
9008         * modules/unicase/u8-casecoll-tests: Likewise.
9009         * modules/unicase/u8-casefold-tests: Likewise.
9010         * modules/unicase/u8-is-cased-tests: Likewise.
9011         * modules/unicase/u8-is-casefolded-tests: Likewise.
9012         * modules/unicase/u8-is-lowercase-tests: Likewise.
9013         * modules/unicase/u8-is-titlecase-tests: Likewise.
9014         * modules/unicase/u8-is-uppercase-tests: Likewise.
9015         * modules/unicase/u8-tolower-tests: Likewise.
9016         * modules/unicase/u8-totitle-tests: Likewise.
9017         * modules/unicase/u8-toupper-tests: Likewise.
9018         * modules/unicase/u16-casecmp-tests: Likewise.
9019         * modules/unicase/u16-casecoll-tests: Likewise.
9020         * modules/unicase/u16-casefold-tests: Likewise.
9021         * modules/unicase/u16-is-cased-tests: Likewise.
9022         * modules/unicase/u16-is-casefolded-tests: Likewise.
9023         * modules/unicase/u16-is-lowercase-tests: Likewise.
9024         * modules/unicase/u16-is-titlecase-tests: Likewise.
9025         * modules/unicase/u16-is-uppercase-tests: Likewise.
9026         * modules/unicase/u16-tolower-tests: Likewise.
9027         * modules/unicase/u16-totitle-tests: Likewise.
9028         * modules/unicase/u16-toupper-tests: Likewise.
9029         * modules/unicase/u32-casecmp-tests: Likewise.
9030         * modules/unicase/u32-casecoll-tests: Likewise.
9031         * modules/unicase/u32-casefold-tests: Likewise.
9032         * modules/unicase/u32-is-cased-tests: Likewise.
9033         * modules/unicase/u32-is-casefolded-tests: Likewise.
9034         * modules/unicase/u32-is-lowercase-tests: Likewise.
9035         * modules/unicase/u32-is-titlecase-tests: Likewise.
9036         * modules/unicase/u32-is-uppercase-tests: Likewise.
9037         * modules/unicase/u32-tolower-tests: Likewise.
9038         * modules/unicase/u32-totitle-tests: Likewise.
9039         * modules/unicase/u32-toupper-tests: Likewise.
9040         * modules/unicase/ulc-casecmp-tests: Likewise.
9041         * modules/unicase/ulc-casecoll-tests: Likewise.
9042         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
9043         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
9044         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
9045         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
9046         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
9047         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
9048         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
9049         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
9050         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
9051         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
9052         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
9053         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
9054         * modules/unictype/bidicategory-byname-tests: Likewise.
9055         * modules/unictype/bidicategory-name-tests: Likewise.
9056         * modules/unictype/bidicategory-of-tests: Likewise.
9057         * modules/unictype/bidicategory-test-tests: Likewise.
9058         * modules/unictype/block-list-tests: Likewise.
9059         * modules/unictype/block-of-tests: Likewise.
9060         * modules/unictype/block-test-tests: Likewise.
9061         * modules/unictype/category-C-tests: Likewise.
9062         * modules/unictype/category-Cc-tests: Likewise.
9063         * modules/unictype/category-Cf-tests: Likewise.
9064         * modules/unictype/category-Cn-tests: Likewise.
9065         * modules/unictype/category-Co-tests: Likewise.
9066         * modules/unictype/category-Cs-tests: Likewise.
9067         * modules/unictype/category-L-tests: Likewise.
9068         * modules/unictype/category-Ll-tests: Likewise.
9069         * modules/unictype/category-Lm-tests: Likewise.
9070         * modules/unictype/category-Lo-tests: Likewise.
9071         * modules/unictype/category-Lt-tests: Likewise.
9072         * modules/unictype/category-Lu-tests: Likewise.
9073         * modules/unictype/category-M-tests: Likewise.
9074         * modules/unictype/category-Mc-tests: Likewise.
9075         * modules/unictype/category-Me-tests: Likewise.
9076         * modules/unictype/category-Mn-tests: Likewise.
9077         * modules/unictype/category-N-tests: Likewise.
9078         * modules/unictype/category-Nd-tests: Likewise.
9079         * modules/unictype/category-Nl-tests: Likewise.
9080         * modules/unictype/category-No-tests: Likewise.
9081         * modules/unictype/category-P-tests: Likewise.
9082         * modules/unictype/category-Pc-tests: Likewise.
9083         * modules/unictype/category-Pd-tests: Likewise.
9084         * modules/unictype/category-Pe-tests: Likewise.
9085         * modules/unictype/category-Pf-tests: Likewise.
9086         * modules/unictype/category-Pi-tests: Likewise.
9087         * modules/unictype/category-Po-tests: Likewise.
9088         * modules/unictype/category-Ps-tests: Likewise.
9089         * modules/unictype/category-S-tests: Likewise.
9090         * modules/unictype/category-Sc-tests: Likewise.
9091         * modules/unictype/category-Sk-tests: Likewise.
9092         * modules/unictype/category-Sm-tests: Likewise.
9093         * modules/unictype/category-So-tests: Likewise.
9094         * modules/unictype/category-Z-tests: Likewise.
9095         * modules/unictype/category-Zl-tests: Likewise.
9096         * modules/unictype/category-Zp-tests: Likewise.
9097         * modules/unictype/category-Zs-tests: Likewise.
9098         * modules/unictype/category-and-not-tests: Likewise.
9099         * modules/unictype/category-and-tests: Likewise.
9100         * modules/unictype/category-byname-tests: Likewise.
9101         * modules/unictype/category-name-tests: Likewise.
9102         * modules/unictype/category-none-tests: Likewise.
9103         * modules/unictype/category-of-tests: Likewise.
9104         * modules/unictype/category-or-tests: Likewise.
9105         * modules/unictype/category-test-withtable-tests: Likewise.
9106         * modules/unictype/combining-class-tests: Likewise.
9107         * modules/unictype/ctype-alnum-tests: Likewise.
9108         * modules/unictype/ctype-alpha-tests: Likewise.
9109         * modules/unictype/ctype-blank-tests: Likewise.
9110         * modules/unictype/ctype-cntrl-tests: Likewise.
9111         * modules/unictype/ctype-digit-tests: Likewise.
9112         * modules/unictype/ctype-graph-tests: Likewise.
9113         * modules/unictype/ctype-lower-tests: Likewise.
9114         * modules/unictype/ctype-print-tests: Likewise.
9115         * modules/unictype/ctype-punct-tests: Likewise.
9116         * modules/unictype/ctype-space-tests: Likewise.
9117         * modules/unictype/ctype-upper-tests: Likewise.
9118         * modules/unictype/ctype-xdigit-tests: Likewise.
9119         * modules/unictype/decimal-digit-tests: Likewise.
9120         * modules/unictype/digit-tests: Likewise.
9121         * modules/unictype/mirror-tests: Likewise.
9122         * modules/unictype/numeric-tests: Likewise.
9123         * modules/unictype/property-alphabetic-tests: Likewise.
9124         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
9125         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
9126         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
9127         * modules/unictype/property-bidi-block-separator-tests: Likewise.
9128         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
9129         * modules/unictype/property-bidi-common-separator-tests: Likewise.
9130         * modules/unictype/property-bidi-control-tests: Likewise.
9131         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
9132         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
9133         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
9134         * modules/unictype/property-bidi-european-digit-tests: Likewise.
9135         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
9136         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
9137         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
9138         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
9139         * modules/unictype/property-bidi-pdf-tests: Likewise.
9140         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
9141         * modules/unictype/property-bidi-whitespace-tests: Likewise.
9142         * modules/unictype/property-byname-tests: Likewise.
9143         * modules/unictype/property-combining-tests: Likewise.
9144         * modules/unictype/property-composite-tests: Likewise.
9145         * modules/unictype/property-currency-symbol-tests: Likewise.
9146         * modules/unictype/property-dash-tests: Likewise.
9147         * modules/unictype/property-decimal-digit-tests: Likewise.
9148         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
9149         * modules/unictype/property-deprecated-tests: Likewise.
9150         * modules/unictype/property-diacritic-tests: Likewise.
9151         * modules/unictype/property-extender-tests: Likewise.
9152         * modules/unictype/property-format-control-tests: Likewise.
9153         * modules/unictype/property-grapheme-base-tests: Likewise.
9154         * modules/unictype/property-grapheme-extend-tests: Likewise.
9155         * modules/unictype/property-grapheme-link-tests: Likewise.
9156         * modules/unictype/property-hex-digit-tests: Likewise.
9157         * modules/unictype/property-hyphen-tests: Likewise.
9158         * modules/unictype/property-id-continue-tests: Likewise.
9159         * modules/unictype/property-id-start-tests: Likewise.
9160         * modules/unictype/property-ideographic-tests: Likewise.
9161         * modules/unictype/property-ids-binary-operator-tests: Likewise.
9162         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
9163         * modules/unictype/property-ignorable-control-tests: Likewise.
9164         * modules/unictype/property-iso-control-tests: Likewise.
9165         * modules/unictype/property-join-control-tests: Likewise.
9166         * modules/unictype/property-left-of-pair-tests: Likewise.
9167         * modules/unictype/property-line-separator-tests: Likewise.
9168         * modules/unictype/property-logical-order-exception-tests: Likewise.
9169         * modules/unictype/property-lowercase-tests: Likewise.
9170         * modules/unictype/property-math-tests: Likewise.
9171         * modules/unictype/property-non-break-tests: Likewise.
9172         * modules/unictype/property-not-a-character-tests: Likewise.
9173         * modules/unictype/property-numeric-tests: Likewise.
9174         * modules/unictype/property-other-alphabetic-tests: Likewise.
9175         * modules/unictype/property-other-default-ignorable-code-point-tests:
9176         Likewise.
9177         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
9178         * modules/unictype/property-other-id-continue-tests: Likewise.
9179         * modules/unictype/property-other-id-start-tests: Likewise.
9180         * modules/unictype/property-other-lowercase-tests: Likewise.
9181         * modules/unictype/property-other-math-tests: Likewise.
9182         * modules/unictype/property-other-uppercase-tests: Likewise.
9183         * modules/unictype/property-paired-punctuation-tests: Likewise.
9184         * modules/unictype/property-paragraph-separator-tests: Likewise.
9185         * modules/unictype/property-pattern-syntax-tests: Likewise.
9186         * modules/unictype/property-pattern-white-space-tests: Likewise.
9187         * modules/unictype/property-private-use-tests: Likewise.
9188         * modules/unictype/property-punctuation-tests: Likewise.
9189         * modules/unictype/property-quotation-mark-tests: Likewise.
9190         * modules/unictype/property-radical-tests: Likewise.
9191         * modules/unictype/property-sentence-terminal-tests: Likewise.
9192         * modules/unictype/property-soft-dotted-tests: Likewise.
9193         * modules/unictype/property-space-tests: Likewise.
9194         * modules/unictype/property-terminal-punctuation-tests: Likewise.
9195         * modules/unictype/property-test-tests: Likewise.
9196         * modules/unictype/property-titlecase-tests: Likewise.
9197         * modules/unictype/property-unassigned-code-value-tests: Likewise.
9198         * modules/unictype/property-unified-ideograph-tests: Likewise.
9199         * modules/unictype/property-uppercase-tests: Likewise.
9200         * modules/unictype/property-variation-selector-tests: Likewise.
9201         * modules/unictype/property-white-space-tests: Likewise.
9202         * modules/unictype/property-xid-continue-tests: Likewise.
9203         * modules/unictype/property-xid-start-tests: Likewise.
9204         * modules/unictype/property-zero-width-tests: Likewise.
9205         * modules/unictype/scripts-tests: Likewise.
9206         * modules/unictype/syntax-c-ident-tests: Likewise.
9207         * modules/unictype/syntax-c-whitespace-tests: Likewise.
9208         * modules/unictype/syntax-java-ident-tests: Likewise.
9209         * modules/unictype/syntax-java-whitespace-tests: Likewise.
9210         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
9211         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
9212         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
9213         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
9214         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
9215         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
9216         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
9217         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
9218         * modules/uniname/uniname-tests: Likewise.
9219         * modules/uninorm/canonical-decomposition-tests: Likewise.
9220         * modules/uninorm/compat-decomposition-tests: Likewise.
9221         * modules/uninorm/composition-tests: Likewise.
9222         * modules/uninorm/decomposing-form-tests: Likewise.
9223         * modules/uninorm/decomposition-tests: Likewise.
9224         * modules/uninorm/filter-tests: Likewise.
9225         * modules/uninorm/nfc-tests: Likewise.
9226         * modules/uninorm/nfd-tests: Likewise.
9227         * modules/uninorm/nfkc-tests: Likewise.
9228         * modules/uninorm/nfkd-tests: Likewise.
9229         * modules/uninorm/u8-normcmp-tests: Likewise.
9230         * modules/uninorm/u8-normcoll-tests: Likewise.
9231         * modules/uninorm/u16-normcmp-tests: Likewise.
9232         * modules/uninorm/u16-normcoll-tests: Likewise.
9233         * modules/uninorm/u32-normcmp-tests: Likewise.
9234         * modules/uninorm/u32-normcoll-tests: Likewise.
9235         * modules/unistdio/u8-asnprintf-tests: Likewise.
9236         * modules/unistdio/u8-vasnprintf-tests: Likewise.
9237         * modules/unistdio/u8-vasprintf-tests: Likewise.
9238         * modules/unistdio/u8-vsnprintf-tests: Likewise.
9239         * modules/unistdio/u8-vsprintf-tests: Likewise.
9240         * modules/unistdio/u16-asnprintf-tests: Likewise.
9241         * modules/unistdio/u16-vasnprintf-tests: Likewise.
9242         * modules/unistdio/u16-vasprintf-tests: Likewise.
9243         * modules/unistdio/u16-vsnprintf-tests: Likewise.
9244         * modules/unistdio/u16-vsprintf-tests: Likewise.
9245         * modules/unistdio/u32-asnprintf-tests: Likewise.
9246         * modules/unistdio/u32-vasnprintf-tests: Likewise.
9247         * modules/unistdio/u32-vasprintf-tests: Likewise.
9248         * modules/unistdio/u32-vsnprintf-tests: Likewise.
9249         * modules/unistdio/u32-vsprintf-tests: Likewise.
9250         * modules/unistdio/ulc-asnprintf-tests: Likewise.
9251         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
9252         * modules/unistdio/ulc-vasprintf-tests: Likewise.
9253         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
9254         * modules/unistdio/ulc-vsprintf-tests: Likewise.
9255         * modules/unistr/u8-check-tests: Likewise.
9256         * modules/unistr/u8-chr-tests: Likewise.
9257         * modules/unistr/u8-cmp-tests: Likewise.
9258         * modules/unistr/u8-cmp2-tests: Likewise.
9259         * modules/unistr/u8-cpy-alloc-tests: Likewise.
9260         * modules/unistr/u8-cpy-tests: Likewise.
9261         * modules/unistr/u8-mblen-tests: Likewise.
9262         * modules/unistr/u8-mbsnlen-tests: Likewise.
9263         * modules/unistr/u8-mbtouc-tests: Likewise.
9264         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
9265         * modules/unistr/u8-mbtoucr-tests: Likewise.
9266         * modules/unistr/u8-move-tests: Likewise.
9267         * modules/unistr/u8-next-tests: Likewise.
9268         * modules/unistr/u8-prev-tests: Likewise.
9269         * modules/unistr/u8-set-tests: Likewise.
9270         * modules/unistr/u8-stpcpy-tests: Likewise.
9271         * modules/unistr/u8-stpncpy-tests: Likewise.
9272         * modules/unistr/u8-strcat-tests: Likewise.
9273         * modules/unistr/u8-strcmp-tests: Likewise.
9274         * modules/unistr/u8-strcoll-tests: Likewise.
9275         * modules/unistr/u8-strcpy-tests: Likewise.
9276         * modules/unistr/u8-strdup-tests: Likewise.
9277         * modules/unistr/u8-strlen-tests: Likewise.
9278         * modules/unistr/u8-strmblen-tests: Likewise.
9279         * modules/unistr/u8-strmbtouc-tests: Likewise.
9280         * modules/unistr/u8-strncat-tests: Likewise.
9281         * modules/unistr/u8-strncmp-tests: Likewise.
9282         * modules/unistr/u8-strncpy-tests: Likewise.
9283         * modules/unistr/u8-strnlen-tests: Likewise.
9284         * modules/unistr/u8-to-u16-tests: Likewise.
9285         * modules/unistr/u8-to-u32-tests: Likewise.
9286         * modules/unistr/u8-uctomb-tests: Likewise.
9287         * modules/unistr/u16-check-tests: Likewise.
9288         * modules/unistr/u16-chr-tests: Likewise.
9289         * modules/unistr/u16-cmp-tests: Likewise.
9290         * modules/unistr/u16-cmp2-tests: Likewise.
9291         * modules/unistr/u16-cpy-alloc-tests: Likewise.
9292         * modules/unistr/u16-cpy-tests: Likewise.
9293         * modules/unistr/u16-mblen-tests: Likewise.
9294         * modules/unistr/u16-mbsnlen-tests: Likewise.
9295         * modules/unistr/u16-mbtouc-tests: Likewise.
9296         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
9297         * modules/unistr/u16-mbtoucr-tests: Likewise.
9298         * modules/unistr/u16-move-tests: Likewise.
9299         * modules/unistr/u16-next-tests: Likewise.
9300         * modules/unistr/u16-prev-tests: Likewise.
9301         * modules/unistr/u16-set-tests: Likewise.
9302         * modules/unistr/u16-stpcpy-tests: Likewise.
9303         * modules/unistr/u16-stpncpy-tests: Likewise.
9304         * modules/unistr/u16-strcat-tests: Likewise.
9305         * modules/unistr/u16-strcmp-tests: Likewise.
9306         * modules/unistr/u16-strcoll-tests: Likewise.
9307         * modules/unistr/u16-strcpy-tests: Likewise.
9308         * modules/unistr/u16-strdup-tests: Likewise.
9309         * modules/unistr/u16-strlen-tests: Likewise.
9310         * modules/unistr/u16-strmblen-tests: Likewise.
9311         * modules/unistr/u16-strmbtouc-tests: Likewise.
9312         * modules/unistr/u16-strncat-tests: Likewise.
9313         * modules/unistr/u16-strncmp-tests: Likewise.
9314         * modules/unistr/u16-strncpy-tests: Likewise.
9315         * modules/unistr/u16-strnlen-tests: Likewise.
9316         * modules/unistr/u16-to-u32-tests: Likewise.
9317         * modules/unistr/u16-to-u8-tests: Likewise.
9318         * modules/unistr/u16-uctomb-tests: Likewise.
9319         * modules/unistr/u32-check-tests: Likewise.
9320         * modules/unistr/u32-chr-tests: Likewise.
9321         * modules/unistr/u32-cmp-tests: Likewise.
9322         * modules/unistr/u32-cmp2-tests: Likewise.
9323         * modules/unistr/u32-cpy-alloc-tests: Likewise.
9324         * modules/unistr/u32-cpy-tests: Likewise.
9325         * modules/unistr/u32-mblen-tests: Likewise.
9326         * modules/unistr/u32-mbsnlen-tests: Likewise.
9327         * modules/unistr/u32-mbtouc-tests: Likewise.
9328         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
9329         * modules/unistr/u32-mbtoucr-tests: Likewise.
9330         * modules/unistr/u32-move-tests: Likewise.
9331         * modules/unistr/u32-next-tests: Likewise.
9332         * modules/unistr/u32-prev-tests: Likewise.
9333         * modules/unistr/u32-set-tests: Likewise.
9334         * modules/unistr/u32-stpcpy-tests: Likewise.
9335         * modules/unistr/u32-stpncpy-tests: Likewise.
9336         * modules/unistr/u32-strcat-tests: Likewise.
9337         * modules/unistr/u32-strcmp-tests: Likewise.
9338         * modules/unistr/u32-strcoll-tests: Likewise.
9339         * modules/unistr/u32-strcpy-tests: Likewise.
9340         * modules/unistr/u32-strdup-tests: Likewise.
9341         * modules/unistr/u32-strlen-tests: Likewise.
9342         * modules/unistr/u32-strmblen-tests: Likewise.
9343         * modules/unistr/u32-strmbtouc-tests: Likewise.
9344         * modules/unistr/u32-strncat-tests: Likewise.
9345         * modules/unistr/u32-strncmp-tests: Likewise.
9346         * modules/unistr/u32-strncpy-tests: Likewise.
9347         * modules/unistr/u32-strnlen-tests: Likewise.
9348         * modules/unistr/u32-to-u16-tests: Likewise.
9349         * modules/unistr/u32-to-u8-tests: Likewise.
9350         * modules/unistr/u32-uctomb-tests: Likewise.
9351         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
9352         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
9353         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
9354         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
9355         * modules/uniwidth/u8-strwidth-tests: Likewise.
9356         * modules/uniwidth/u8-width-tests: Likewise.
9357         * modules/uniwidth/u16-strwidth-tests: Likewise.
9358         * modules/uniwidth/u16-width-tests: Likewise.
9359         * modules/uniwidth/u32-strwidth-tests: Likewise.
9360         * modules/uniwidth/u32-width-tests: Likewise.
9361         * modules/uniwidth/width-tests: Likewise.
9362
9363 2010-05-18  Richard Jones  <rjones@redhat.com>
9364
9365         doc: users.txt: list hivex
9366         * users.txt: Add hivex.
9367
9368 2010-05-18  Richard Jones  <rjones@redhat.com>
9369
9370         doc: users.txt: list febootstrap
9371         * users.txt: Add febootstrap.
9372
9373 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
9374
9375         bootstrap: fix an error when gnulib is not used as a git submodule
9376         * build-aux/bootstrap (gnulib_path): If its length is zero then
9377         assign "gnulib" to it.
9378         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
9379
9380 2010-05-16  Bruno Haible  <bruno@clisp.org>
9381
9382         Avoid autoconf warnings about AM_ICONV.
9383         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
9384         2.64.
9385
9386 2010-05-16  Bruno Haible  <bruno@clisp.org>
9387
9388         absolute-header: Make the macro usable in more situations.
9389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
9390         from gl_ABSOLUTE_HEADER.
9391         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
9392
9393 2010-05-16  James Youngman  <jay@gnu.org>
9394
9395         doc: update users.txt
9396         * users.txt: Add CSSC.
9397
9398 2010-05-16  Jim Meyering  <meyering@redhat.com>
9399
9400         init.sh: fix an error in the previous change; add more comments
9401         * tests/init.sh: Compare exit code in loop against 9, not 2.
9402         Patch by Bruno Haible.
9403         Make the two tests more similar by adding an empty "then" clause.
9404         Add comments.
9405
9406         init.sh: avoid unnecessary shell re-exec
9407         * tests/init.sh: Improve the re-exec-required check to first test the
9408         current shell.  If it passes the test, do not search for a shell that
9409         does pass, and do not re-exec.  This test is particularly contorted to
9410         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
9411         of $(...) evokes a syntax error and causes immediate shell exit with
9412         status 2.  Bruno Haible reported that the re-exec made it impossible
9413         to single-step through any init.sh-using script.
9414
9415 2010-05-16  Bruno Haible  <bruno@clisp.org>
9416
9417         Fix collision between gnulib's and libintl's printf replacements.
9418         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
9419         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
9420         (printf): When using GNU C, map the __printf__ function to rpl_printf
9421         via __asm__. When not using GNU C, define rpl_printf instead of
9422         __printf__.
9423         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
9424         commit.
9425         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
9426         commit.
9427         * m4/asm-underscore.m4: New file.
9428         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
9429         * modules/stdio (Files): Add m4/asm-underscore.m4.
9430         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
9431         Reported by Ben Pfaff.
9432
9433 2010-05-16  Bruno Haible  <bruno@clisp.org>
9434
9435         verify: Avoid skipping the test on openSUSE 11.0.
9436         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
9437
9438 2010-05-13  Bruno Haible  <bruno@clisp.org>
9439
9440         Avoid useless warnings from G++.
9441         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
9442         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
9443         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9444
9445 2010-05-11  Jim Meyering  <meyering@redhat.com>
9446
9447         maint.mk: tweak preceding change
9448         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
9449         regexps tighter by anchoring at EOL, and make the new group "shy"
9450         for slightly decreased overhead.
9451
9452 2010-05-11  Eric Blake  <eblake@redhat.com>
9453
9454         maint.mk: gnulib doesn't guarantee NSIG
9455         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
9456
9457 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9458
9459         test-pwrite.c: Remove unused variable declaration.
9460         * tests/test-pwrite.c (main): Remove read_buf declaration.
9461
9462         Remove useless test-pwrite.sh file.
9463         * tests/test-pwrite.sh: Delete file.
9464         * modules/pwrite-tests: Remove references.
9465         Reported by Bruno Haible.
9466
9467 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9468
9469         init.sh: fix a typo
9470         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
9471
9472 2010-05-10  Jim Meyering  <meyering@redhat.com>
9473
9474         maint.mk: avoid using a temporary file in the always-defined-macros check
9475         * top/maint.mk (.re-defmac): Remove rule.
9476         (gl_trap_): Remove definition.
9477         (sc_prohibit_always-defined_macros): Rewrite not to create and
9478         depend on a temporary file.  Instead, depend on GNU grep's ability
9479         to read a list of regular expressions from stdin when given "-f -".
9480
9481 2010-05-09  Bruno Haible  <bruno@clisp.org>
9482
9483         Update to GNU gettext 0.18, part 1.
9484         * m4/gettext.m4: Update to GNU gettext 0.18.
9485         * m4/intl.m4: Likewise.
9486         * m4/po.m4: Likewise.
9487         * modules/gettext (Files): Add m4/fcntl-o.m4.
9488         (configure.ac): Require gettext infrastructure from version 0.18.
9489
9490 2010-05-09  Jim Meyering  <meyering@redhat.com>
9491
9492         init.sh: enable MALLOC_PERTURB_
9493         * tests/init.sh: Enable glibc's malloc-perturbing option.
9494
9495         maint.mk: improve sc_cross_check_PATH_usage_in_tests
9496         With my recent change in init.sh from the two-line form:
9497             -#   : ${srcdir=.}
9498             -#   . "$srcdir/init.sh"; path_prepend_ .
9499             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
9500         I noticed that using the one-line form would cause this test
9501         to fail with a false-positive, or to stop working altogether,
9502         depending on whether help-version changed or all the tests did.
9503         * top/maint.mk (_hv_regex): Remove this definition.
9504         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
9505         (_hv_regex_strong): Use a stronger regex to check for conformance.
9506         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
9507         Give a separate diagnostic for lack of conforming use.
9508
9509         maint.mk: prohibit definition of symbols defined by gnulib
9510         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
9511         definition of symbols defined by gnulib.
9512
9513 2010-05-09  Bruno Haible  <bruno@clisp.org>
9514
9515         acl: Avoid test failure on Cygwin-hosted mingw.
9516         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
9517
9518 2010-05-09  Bruno Haible  <bruno@clisp.org>
9519
9520         error: Use system's fcntl function.
9521         * lib/error.c (fcntl): Undefine.
9522
9523 2010-05-09  Jim Meyering  <meyering@redhat.com>
9524
9525         verify: adjust formatting to be more consistent
9526         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
9527         argument-list '('s, and after one comma.
9528
9529 2010-05-09  Bruno Haible  <bruno@clisp.org>
9530
9531         error: More reliable output on mingw.
9532         * lib/error.c: Include <windows.h>.
9533         (is_open): New function.
9534         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
9535         defined.
9536
9537 2010-05-09  Bruno Haible  <bruno@clisp.org>
9538
9539         vasnprintf: Fix syntax errors in libintl build on mingw.
9540         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
9541         pad_ourselves and prec_ourselves after use.
9542
9543 2010-05-08  Bruno Haible  <bruno@clisp.org>
9544
9545         * lib/config.charset: Update comments for Cygwin 1.7.
9546         * lib/localcharset.c: Likewise.
9547
9548 2010-05-07  Jim Meyering  <meyering@redhat.com>
9549
9550         init.sh: improve comments
9551         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
9552         . "${srcdir=.}/init.sh"; path_prepend_ .
9553         Add a note about path_prepend_ and the alternative of using
9554         TESTS_ENVIRONMENT.
9555
9556 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9557
9558         exclude: Unescape hashed patterns in wildcard mode.
9559         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
9560         to the hash list.
9561         * tests/test-exclude8.sh: New test case.
9562         * modules/exclude-tests: Add new test.
9563
9564 2010-05-05  Eric Blake  <eblake@redhat.com>
9565
9566         verify: automate tests
9567         * modules/verify-tests: New module.
9568         * tests/test-verify.sh: New file.
9569         * tests/test-verify.c: Guard each negative test with a unique id.
9570         Also avoid warning about unused left hand of comma expressions.
9571
9572 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         Further improvements to verify.h, suggested by Eric Blake.
9575         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
9576         the GL_* versions, to avoid collision with OpenGL.
9577         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
9578         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
9579         than testing merely whether it's defined.
9580
9581         Modify verify.h to pacify gcc -Wredundant_decls.
9582         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
9583         These use the prefix "GL_" since they're likely to be useful elsewhere.
9584         We may need to break them out into a different .h file.
9585         (__COUNTER__): Define to 0 if the compiler doesn't support it.
9586         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
9587         of verify_function__.
9588
9589 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9590
9591         Tests for module pwrite.
9592         * modules/pwrite-tests: New file.
9593         * tests/test-pwrite.sh: New file.
9594         * tests/test-pwrite.c: New file.
9595
9596         New module pwrite.
9597         * lib/unistd.in.h (pwrite): New declaration.
9598         * lib/pwrite.c: New file, from glibc with modifications.
9599         * m4/pwrite.m4: New file.
9600         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
9601         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
9602         REPLACE_PWRITE.
9603         * modules/pwrite: New file.
9604         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
9605         REPLACE_PWRITE.
9606         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
9607         * doc/posix-functions/pwrite.texi: Mention the new module.
9608
9609 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9610
9611         pread: Update documentation.
9612         * doc/posix-functions/pread.texi: Mention the 'pread' module.
9613
9614 2010-05-04  Eric Blake  <eblake@redhat.com>
9615
9616         docs: update cygwin progress
9617         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
9618         this bug.
9619         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
9620         Added in cygwin 1.7.2.
9621         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
9622         Likewise.
9623         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
9624         Likewise.
9625         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9626         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9627         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9628         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
9629         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
9630         Mention nproc module.
9631         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
9632         bug in cygwin 1.7.5 addition.
9633         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
9634         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
9635         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
9636         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
9637         1.7.5.
9638         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
9639         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
9640         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
9641         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
9642         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
9643         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
9644         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
9645         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
9646         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
9647         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
9648         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
9649         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
9650         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
9651         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
9652         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
9653         Likewise.
9654         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
9655         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
9656         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
9657         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
9658         Likewise.
9659         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
9660         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
9661         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
9662         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
9663         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
9664         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
9665         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
9666         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
9667         Likewise.
9668         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
9669         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
9670         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
9671         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
9672         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
9673         Likewise.
9674         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
9675         Likewise.
9676         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
9677         Likewise.
9678         * doc/glibc-functions/xdrrec_endofrecord.texi
9679         (xdrrec_endofrecord): Likewise.
9680         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
9681         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
9682         Likewise.
9683         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
9684         Likewise.
9685
9686 2010-05-04  Jim Meyering  <meyering@redhat.com>
9687
9688         gendocs.sh: make its "-s FILE" option more useful
9689         * build-aux/gendocs.sh: When honoring the -s FILE option, update
9690         $PACKAGE to reflect the probably-different basename of "FILE".
9691
9692 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9693
9694         bootstrap: don't ignore download_po_files failure
9695         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
9696         failure.
9697
9698 2010-05-03  Jim Meyering  <meyering@redhat.com>
9699
9700         maint.mk: allow to pass options to gendocs.sh
9701         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
9702         (gendocs_options_): New overridable variable.
9703
9704         gnu-web-doc-update: don't ignore configure or build failure
9705         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
9706
9707         announce-gen: backslash-escape '@'s in --help output
9708         * build-aux/announce-gen: Fix syntax errors.
9709
9710         maint.mk, announce-gen: allow project-specific announcement mail headers
9711         * top/maint.mk (translation_project_): Define default.
9712         (announcement_Cc_, announcement_mail_headers_): Likewise.
9713         (announcement): Invoke announce-gen with new --mail-headers option.
9714         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9715
9716         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9717         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9718         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9719         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9720         line in the "err2" output file when running "make check" in verbose
9721         mode (i.e., with set -x enabled).
9722
9723 2010-05-03  Bruno Haible  <bruno@clisp.org>
9724
9725         wctob: Fix for weird platforms.
9726         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9727         argument value.
9728
9729 2010-05-03  Jim Meyering  <meyering@redhat.com>
9730
9731         maint.mk: prohibit unwarranted use of <strings.h>
9732         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9733         strings.h in a file that does not also use strcasecmp, strncasecmp,
9734         ffs or ffsll.
9735
9736         maint.mk: remove obsolete comments
9737         * top/maint.mk: Remove stale, commented-out rules.
9738
9739 2010-05-02  Bruno Haible  <bruno@clisp.org>
9740
9741         wcwidth: Declare also when it's aliased.
9742         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9743         macro.
9744
9745 2010-05-02  Bruno Haible  <bruno@clisp.org>
9746
9747         Fix regression from 2010-04-25.
9748         * gnulib-tool (func_modules_transitive_closure): Check the status of
9749         all modules, not only of the tests that are of the form foo-tests where
9750         foo is a module.
9751
9752 2010-05-02  Bruno Haible  <bruno@clisp.org>
9753
9754         wctob: Work around nasty Cygwin 1.7.2 bug.
9755         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9756         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9757
9758 2010-05-01  Bruno Haible  <bruno@clisp.org>
9759
9760         fpurge: Sharper test.
9761         * tests/test-fpurge.c (main): Add one more ftell check.
9762         * modules/fpurge-tests (Depends-on): Add ftell.
9763         Suggested by Eric Blake.
9764
9765 2010-05-01  Bruno Haible  <bruno@clisp.org>
9766
9767         ftello: Another test.
9768         * tests/test-ftello3.c: New file.
9769         * modules/ftello-tests (Files): Add it.
9770         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9771         MOSTLYCLEANFILES.
9772
9773         ftell: Another test.
9774         * tests/test-ftell3.c: New file.
9775         * modules/ftell-tests (Files): Add it.
9776         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9777         MOSTLYCLEANFILES.
9778
9779 2010-05-01  Bruno Haible  <bruno@clisp.org>
9780
9781         ftell, ftello: Work around Solaris bug.
9782         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9783         * lib/ftello.c: Include stdio-impl.h.
9784         (ftello): On Solaris, when _IOWRT is set, compute the result without
9785         looking at _IOREAD.
9786         * modules/ftello (Files): Add lib/stdio-impl.h.
9787         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9788         * doc/posix-functions/ftello.texi: Likewise.
9789         Reported by Eric Blake.
9790
9791 2010-05-01  Bruno Haible  <bruno@clisp.org>
9792
9793         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9794         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9795         the _IOWRT flag is also set.
9796
9797 2010-05-01  Bruno Haible  <bruno@clisp.org>
9798
9799         Fix doc about a HP-UX stdio bug.
9800         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9801         * doc/posix-functions/ftello.texi: Likewise.
9802
9803 2010-05-01  Bruno Haible  <bruno@clisp.org>
9804
9805         lseek test: Fix failure on Solaris.
9806         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9807         output.
9808
9809 2010-04-30  Jim Meyering  <meyering@redhat.com>
9810
9811         bootstrap: don't ignore failure to generate po*/Makevars
9812         * build-aux/bootstrap (with_gettext): Don't ignore failure
9813         to create po/Makevars or runtime-po/Makevars.
9814
9815 2010-04-29  Eric Blake  <eblake@redhat.com>
9816
9817         headers: relax license to LGPLv2+
9818         * modules/fcntl-h (License): Relax license.
9819         * modules/getopt-posix (License): Likewise.
9820         * modules/locale (License): Likewise.
9821         * modules/math (License): Likewise.
9822         * modules/pty (License): Likewise.
9823         * modules/sched (License): Likewise.
9824         * modules/search (License): Likewise.
9825         * modules/spawn (License): Likewise.
9826         * modules/stdarg (License): Likewise.
9827         * modules/sysexits (License): Likewise.
9828
9829 2010-04-29  Jim Meyering  <meyering@redhat.com>
9830
9831         inttypes: relax license to LGPLv2+
9832         * modules/inttypes (License): Relax license.
9833
9834 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9835
9836         * top/maint.mk (indent): Run twice to produce idempotent results.
9837
9838 2010-04-28  Bruno Haible  <bruno@clisp.org>
9839
9840         getdate: Generate getdate.c in the source directory.
9841         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9842         MOSTLYCLEANFILES.
9843         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9844
9845 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9846
9847         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9848         is not declared as a const *; avoid warnings in that case.
9849
9850 2010-04-28  Eric Blake  <eblake@redhat.com>
9851
9852         canonicalize-lgpl: avoid compiler warning
9853         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9854         declaration' / 'extraneous semicolon' warning with some compilers.
9855         Reported by Andreas Gruenbacher.
9856
9857 2010-04-28  Jim Meyering  <meyering@redhat.com>
9858
9859         init.sh: ensure a more reliable exit status when exiting via trap
9860         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9861         Inspired by patches from Dmitry V. Levin.
9862         Also trap on signal 3 (SIGQUIT).
9863
9864 2010-04-27  Bruno Haible  <bruno@clisp.org>
9865
9866         Update doc about utimes().
9867         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9868         'utimens' module.
9869         Reported by Andreas Gruenbacher <agruen@suse.de>.
9870
9871 2010-04-27  Eric Blake  <eblake@redhat.com>
9872
9873         full-read, full-write: relax license
9874         * modules/full-read (License): Drop to LGPLv2+.
9875         * modules/full-write (License): Likewise.
9876         * modules/safe-read (License): Likewise.
9877         * modules/safe-write (License): Likewise.
9878
9879         pthread: mention library for linking
9880         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9881
9882 2010-04-27  Jim Meyering  <meyering@redhat.com>
9883
9884         maint.mk: fix a bug introduced in last change
9885         * top/maint.mk (gl_assured_headers_): Now that all names are on
9886         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9887         is not anchored to end of word, it should be adequate.
9888
9889         maint.mk: avoid side-effect in latest syntax-check
9890         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9891         to run commands via $(shell...), and hence to incur cost only when
9892         the new rule is actually run.
9893
9894         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9895         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9896         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9897         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9898         (gl_assured_headers_, az_, AZ_): Define.
9899         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9900
9901 2010-04-26  Jim Meyering  <jim@meyering.net>
9902             Bruno Haible  <bruno@clisp.org>
9903
9904         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9905         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9906         Prompted by an exchange with Gilles Espinasse.
9907
9908 2010-04-26  Jim Meyering  <meyering@redhat.com>
9909
9910         git-version-gen: aesthetic tweak
9911         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9912         so that the command remains on a single line.
9913
9914 2010-04-26  Eric Blake  <eblake@redhat.com>
9915
9916         git-version-gen: allow use on EBCDIC hosts
9917         * build-aux/git-version-gen (dirty): Use literal rather than tying
9918         ourselves to ascii.
9919         Reported by Steve Goetze.
9920
9921 2010-04-25  Bruno Haible  <bruno@clisp.org>
9922
9923         netdb: Add support for GNULIB_POSIXCHECK.
9924         * lib/netdb.in.h: Include warn-on-use.h.
9925         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9926         functions are used when GNULIB_POSIXCHECK is defined and the
9927         getaddrinfo module is not in use.
9928         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9929         freeaddrinfo, gai_strerror, getnameinfo are declared.
9930         * modules/netdb (Depends-on): Add warn-on-use.
9931         (Makefile.am): Include warn-on-use.h in netdb.h.
9932
9933 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9934
9935         build: avoid "make check" failure without .git/ directory
9936         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9937         there is no .git/ directory.
9938
9939 2010-04-25  Bruno Haible  <bruno@clisp.org>
9940
9941         ptsname: Fix misuse of ttyname_r.
9942         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9943         of errno.
9944
9945 2010-04-25  Bruno Haible  <bruno@clisp.org>
9946
9947         ttyname_r: Make it work on Solaris 10.
9948         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9949         if the system function has the POSIX declaration. Test whether the
9950         function fails if the buffer is less than 128 bytes large.
9951         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9952         system's ttyname_r function. Provide a reasonably large buffer.
9953         * modules/ttyname_r (Depends-on): Add extensions.
9954         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9955
9956 2010-04-25  Bruno Haible  <bruno@clisp.org>
9957
9958         Use the 'extensions' module for some more functions on Solaris.
9959         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9960         module.
9961         * doc/posix-functions/ctime_r.texi: Likewise.
9962         * doc/posix-functions/getgrgid_r.texi: Likewise.
9963         * doc/posix-functions/getgrnam_r.texi: Likewise.
9964         * doc/posix-functions/getpwnam_r.texi: Likewise.
9965         * doc/posix-functions/getpwuid_r.texi: Likewise.
9966         * doc/posix-functions/readdir_r.texi: Likewise.
9967         * doc/posix-functions/sigwait.texi: Likewise.
9968         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
9969         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
9970
9971 2010-04-25  Bruno Haible  <bruno@clisp.org>
9972
9973         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
9974         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
9975         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
9976         * lib/ttyname_r.c: Include <limits.h>.
9977         (ttyname_r): Define using the system's ttyname_r function, if it exists
9978         and not on Solaris.
9979         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
9980         set.
9981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
9982         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
9983         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
9984         Reported by Simon Josefsson.
9985
9986 2010-04-25  Bruno Haible  <bruno@clisp.org>
9987
9988         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
9989         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
9990         * doc/posix-functions/ctime_r.texi: Likewise.
9991         * doc/posix-functions/getgrgid_r.texi: Likewise.
9992         * doc/posix-functions/getgrnam_r.texi: Likewise.
9993         * doc/posix-functions/getlogin_r.texi: Likewise.
9994         * doc/posix-functions/getpwnam_r.texi: Likewise.
9995         * doc/posix-functions/getpwuid_r.texi: Likewise.
9996         * doc/posix-functions/readdir_r.texi: Likewise.
9997         * doc/posix-functions/sigwait.texi: Likewise.
9998         * doc/posix-functions/ttyname_r.texi: Likewise.
9999         Reported by Simon Josefsson.
10000
10001 2010-04-25  Bruno Haible  <bruno@clisp.org>
10002
10003         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
10004         * gnulib-tool (func_usage): Document that --with-*-tests options apply
10005         also to --create-testdir.
10006         (func_acceptable): Don't consider the status of *-tests modules here.
10007         (func_modules_transitive_closure): Consider it here, before including a
10008         test module.
10009         (func_import, func_create_testdir): Set inc_all_direct_tests,
10010         inc_all_indirect_tests.
10011         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
10012         --create-testdir and --create-megatestdir.
10013
10014 2010-04-25  Bruno Haible  <bruno@clisp.org>
10015
10016         gnulib-tool: Add --without-*-tests options.
10017         * gnulib-tool (func_usage): Document the --without-*-tests options.
10018         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
10019         excl_unportable_tests): New variables.
10020         Fail if they are specified with --import or --update.
10021         (func_acceptable): Respect the excl_*_tests variables.
10022         (func_import): Set the excl_*_tests variables to empty.
10023
10024 2010-04-25  Simon Josefsson  <simon@josefsson.org>
10025             Bruno Haible  <bruno@clisp.org>
10026
10027         Work around a MacOS X 10.4 bug with openpty.
10028         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
10029         * tests/test-openpty.c (main): Close the master side explicitly.
10030
10031 2010-04-25  Bruno Haible  <bruno@clisp.org>
10032
10033         strnlen: Fix a C++ test error on MacOS X and Solaris.
10034         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
10035         the function is not declared.
10036         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
10037         Simon Josefsson.
10038
10039 2010-04-24  Bruno Haible  <bruno@clisp.org>
10040
10041         Avoid a gcc warning.
10042         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
10043         of correct type for %08lx directive.
10044         Reported by Eric Blake.
10045
10046 2010-04-24  Bruno Haible  <bruno@clisp.org>
10047
10048         vasnprintf: Correct errno value in case of out-of-memory.
10049         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
10050         or sprintf. Use the errno value from SNPRINTF or sprintf.
10051         Reported by Ian Beckwith <ianb@erislabs.net>.
10052
10053 2010-04-24  Bruno Haible  <bruno@clisp.org>
10054
10055         ansi-c++-opt: Find correct compiler when cross-compiling.
10056         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
10057         AC_CHECK_PROGS.
10058         Reported by Simon Josefsson.
10059
10060 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
10061
10062         vc-list-files: Add support for subversion
10063         * build-aux/vc-list-files: Use "svn list" to generate the list of
10064         files controlled by subversion.
10065
10066 2010-04-23  Jim Meyering  <meyering@redhat.com>
10067
10068         vc-list-files tests: convert to use init.sh
10069         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
10070         path_prepend_.
10071         Use Exit, not exit.
10072         Use skip_ rather than open coding it.
10073         Remove trap set-up and compare definitions.
10074         * tests/test-vc-list-files-git.sh: Likewise.
10075         * modules/vc-list-files-tests (Files): Add tests/init.sh.
10076
10077 2010-04-22  Simon Josefsson  <simon@josefsson.org>
10078
10079         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
10080         backup files.
10081
10082 2010-04-21  Simon Josefsson  <simon@josefsson.org>
10083
10084         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
10085
10086 2010-04-20  Eric Blake  <eblake@redhat.com>
10087
10088         tests: be robust to ignored SIGPIPE
10089         * tests/test-select-in.sh: Consume all output.
10090         * tests/test-lseek.sh: Check correct exit status, while avoiding
10091         EPIPE.
10092
10093 2010-04-20  Simon Josefsson  <simon@josefsson.org>
10094             Bruno Haible  <bruno@clisp.org>
10095
10096         visibility: Don't use -fvisibility if it leads to a warning.
10097         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
10098         yes, don't pretend that visibility works if it leads to a warning.
10099         Reported by Mike Gran <spk121@yahoo.com>.
10100
10101 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
10102
10103         * build-aux/bootstrap: Use "git -h" for testing for supported options
10104         instead of "git --help".  The short-form option only shows a summary,
10105         and doesn't layout the full man page.  Grep for the full option name
10106         in the summary, too.
10107
10108 2010-04-19  Bruno Haible  <bruno@clisp.org>
10109
10110         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
10111         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
10112         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
10113         mention of RELOCATABLE_STRIP.
10114         Reported by Sylvain Beucler <beuc@beuc.net>.
10115
10116 2010-04-19  Bruno Haible  <bruno@clisp.org>
10117
10118         * lib/diffseq.h: Fix typo in comment.
10119         Reported by Eric Blake.
10120
10121 2010-04-19  Bruno Haible  <bruno@clisp.org>
10122
10123         ioctl: Move autoconf macro to a .m4 file.
10124         * m4/ioctl.m4: New file, extracted from modules/ioctl.
10125         * modules/ioctl (Files): Add it.
10126         (configure.ac): Simply invoke gl_FUNC_IOCTL.
10127         Reported by Ian Beckwith <ianb@erislabs.net>.
10128
10129 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
10130             Bruno Haible  <bruno@clisp.org>
10131
10132         diffseq: Accommodate use-case with abstract arrays.
10133         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
10134         is not defined.
10135         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
10136         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
10137
10138 2010-04-18  Bruno Haible  <bruno@clisp.org>
10139
10140         * doc/posix-headers/stdbool.texi: More precise wording.
10141
10142 2010-04-17  Jim Meyering  <meyering@redhat.com>
10143
10144         maint.mk: use gnu-style indentation in an embedded perl script
10145         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
10146         Rename variable: s/two/last_two_bytes/
10147
10148 2010-04-16  Eric Blake  <eblake@redhat.com>
10149
10150         test-stdbool: skip test that fails with Solaris CC
10151         * tests/test-stdbool.c (f): Skip test that causes compilation
10152         error under buggy C++ compiler.
10153         * lib/stdbool.in.h: Document the limitation.
10154         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
10155
10156         setenv: allow compilation with C++
10157         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
10158         register keyword.
10159
10160         stdint: allow test to pass with C++
10161         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
10162
10163         getopt: allow compilation with C++
10164         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
10165         struct.
10166         * lib/getopt.c (_getopt_internal_r): Use correct type.
10167         Reported by Dagobert Michelson, via Joel E. Denny.
10168
10169 2010-04-16  Bruno Haible  <bruno@clisp.org>
10170
10171         Override netdb.h always.
10172         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
10173         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
10174         Reported by Ludovic Courtès <ludo@gnu.org>.
10175
10176 2010-04-15  Bruno Haible  <bruno@clisp.org>
10177
10178         openpty: Fix mistake from 2010-03-21.
10179         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
10180         Reported by Simon Josefsson.
10181
10182 2010-04-15  Eric Blake  <eblake@redhat.com>
10183
10184         test-forkpty: fix expected signature
10185         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
10186         Reported by Simon Josefsson.
10187
10188 2010-04-15  Jim Meyering  <meyering@redhat.com>
10189
10190         maint.mk: texinfo_suffix_re_: correct the default regexp
10191         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
10192
10193         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
10194         make it configurable via texinfo_suffix_re_.
10195
10196 2010-04-14  Eric Blake  <eblake@redhat.com>
10197
10198         strtok_r: relax license to LGPLv2+
10199         * modules/strtok_r (License): Relax license.
10200         Reported by Matthias Bolte.
10201
10202 2010-04-14  Simon Josefsson  <simon@josefsson.org>
10203
10204         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
10205         version 1.4.4 by default instead of requiring the libgcrypt
10206         version used during build.  This makes it possible to use the
10207         application with older but still binary compatible libgcrypt
10208         versions.
10209
10210 2010-04-13  Eric Blake  <eblake@redhat.com>
10211
10212         getopt-gnu: match recent glibc fixes and posix ruling
10213         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
10214         '+' handling, when requesting extensions.
10215         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
10216         'W;' handling.
10217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
10218         * doc/posix-functions/getopt.texi (getopt): Document this.
10219         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10220         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10221         Likewise.
10222
10223         getopt: merge bug fixes from glibc
10224         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
10225         diagnostics.  Honor '+:' correctly.  Reject ';'.
10226
10227         getopt-posix: detect MacOS bug
10228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
10229         optind when missing a required argument.
10230         * doc/posix-functions/getopt.texi (getopt): Document the bug.
10231         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10232         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10233         Likewise.
10234
10235         getopt-posix: avoid spurious failure on Solaris
10236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
10237         an indicator that setting optind=1 is sufficient for reset.
10238
10239         getopt-posix: avoid spurious failure on FreeBSD
10240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
10241         in POSIX mode, since the m4 test uses it.
10242
10243         gnulib-tool: silence warning on BSD sh
10244         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
10245
10246 2010-04-13  Jim Meyering  <meyering@redhat.com>
10247
10248         doc: users.txt: GNU patch now uses gnulib
10249         * users.txt: Add patch.
10250
10251 2010-04-12  Jim Meyering  <meyering@redhat.com>
10252
10253         maint.mk: generate more concise timing data for syntax-check rules
10254         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
10255         " done" from each line that reports a syntax-check test duration.
10256
10257 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
10258
10259         git-version-gen: use "git update-index..." rather than "git status"
10260         * build-aux/git-version-gen: Use git update-index --refresh, not
10261         "git status".  With some versions of git, "git status" would fail
10262         to update the index and result in an unwarranted "-dirty" suffix.
10263
10264 2010-04-11  Jim Meyering  <meyering@redhat.com>
10265
10266         openat: correct formatting (no semantic change)
10267         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
10268         Suggested by Bruno Haible.
10269
10270 2010-04-11  Bruno Haible  <bruno@clisp.org>
10271
10272         Stricter declaration checking in testdirs.
10273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10274         If for_tests is true, augment AM_CPPFLAGS to define
10275         GNULIB_STRICT_CHECKING.
10276         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
10277         GNULIB_STRICT_CHECKING is defined, verify that the function is
10278         declared.
10279
10280 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
10281             Bruno Haible  <bruno@clisp.org>
10282
10283         libunistring: Improve configure output.
10284         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
10285         Don't say "consider installing GNU libunistring" when checking again
10286         with libiconv.
10287
10288 2010-04-11  Bruno Haible  <bruno@clisp.org>
10289
10290         libunistring: Correct value of $LTLIBUNISTRING.
10291         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
10292         correct the value of $LTLIBUNISTRING.
10293
10294 2010-04-11  Bruno Haible  <bruno@clisp.org>
10295
10296         havelib: Add static libraries to LIBS in the right order.
10297         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
10298         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
10299
10300 2010-04-11  Bruno Haible  <bruno@clisp.org>
10301
10302         libunistring: Detect libunistring also when it depends on libiconv.
10303         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
10304         the second AC_LIB_HAVE_LINKFLAGS invocation.
10305
10306 2010-04-11  James Youngman  <jay@gnu.org>
10307
10308         close-stream: declare local scalars to be "const"
10309         * lib/close-stream.c (close_stream): Make boolean variables const
10310         to document the fact that we set but do not change them.
10311
10312 2010-04-11  Bruno Haible  <bruno@clisp.org>
10313
10314         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
10315
10316 2010-04-11  Jim Meyering  <meyering@redhat.com>
10317
10318         maint.mk: don't include dist-check.mk
10319         * top/maint.mk: Remove bogus include directive.
10320
10321         maint.mk: improve empty-line-at-EOF check
10322         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
10323         solution, rather than tail+Perl-based one.  The latter would read
10324         a few kilobytes from the end of each file, and did not handle empty
10325         files properly.
10326
10327         maint.mk: print the elapsed time for each syntax-check rule
10328         * top/maint.mk (sc_m_rules_): Save start time in a file.
10329         (sc_z_rules_): New rules: remove temp file and print elapsed time.
10330         (local-check): Interpose the .z rules
10331
10332 2010-04-11  Jim Meyering  <meyering@redhat.com>
10333
10334         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
10335         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
10336         empty file with one that ends in an empty line.
10337
10338 2010-04-10  Bruno Haible  <bruno@clisp.org>
10339
10340         mkdir: Make it work on mingw64.
10341         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
10342         * lib/mkdir.c: Update comment.
10343         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
10344
10345 2010-04-10  Bruno Haible  <bruno@clisp.org>
10346
10347         Don't override improved macro from newer autoconf.
10348         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
10349         autoconf >= 2.62.
10350         Reported by Joel E. Denny <jdenny@clemson.edu>.
10351
10352 2010-04-10  Jim Meyering  <meyering@redhat.com>
10353
10354         maint.mk: new syntax-check rule: prohibit empty lines at end of file
10355         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
10356
10357         maint.mk: correct a diagnostic
10358         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
10359         in diagnostic; now use $prohibit.
10360
10361 2010-04-10  Bruno Haible  <address@hidden>
10362
10363         fchownat: Fix a C++ test error on Solaris 8.
10364         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
10365         the function does not exist.
10366
10367 2010-04-10  Bruno Haible  <bruno@clisp.org>
10368
10369         vasnprintf: Add more tests.
10370         * tests/test-vasnprintf-posix.c: Include <errno.h>.
10371         (test_function): Test converting an invalid wide string.
10372
10373         vasnprintf: Correct handling of unconvertible wide string arguments.
10374         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
10375         VASNPRINTF.
10376         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
10377         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
10378         smaller than the expected maximum need for the directive. Set errno to
10379         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
10380         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
10381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
10382         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
10383         * modules/vasnprintf (Files): Add m4/printf.m4.
10384         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10385
10386 2010-04-10  Bruno Haible  <bruno@clisp.org>
10387
10388         vasnprintf: Fix crash in %ls directive.
10389         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
10390         string is passed as argument to %ls, with no precision and no width.
10391         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10392
10393 2010-04-10  Bruno Haible  <bruno@clisp.org>
10394
10395         vasnprintf: Fix multiple test failures on mingw.
10396         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
10397         _snprintf, or snwprintf, not _snwprintf.
10398
10399 2010-04-10  Bruno Haible  <bruno@clisp.org>
10400
10401         write: Fix a C++ test error on mingw.
10402         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
10403
10404 2010-04-10  Bruno Haible  <bruno@clisp.org>
10405
10406         vasnprintf test: Reduce code duplication.
10407         * tests/test-vasnprintf.c (test_function): New function, extracted from
10408         test_vasnprintf.
10409         (test_vasnprintf, test_asnprintf): Invoke it.
10410
10411 2010-04-10  Bruno Haible  <bruno@clisp.org>
10412
10413         strnlen: Fix warning in C++ mode on MacOS X.
10414         * lib/string.in.h (strnlen): Use the modern idiom.
10415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
10416         defining strnlen as a macro already in <config.h>.
10417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10418         REPLACE_STRNLEN.
10419         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
10420         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10421
10422 2010-04-08  James Youngman  <jay@gnu.org>
10423
10424         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
10425         the example.
10426
10427 2010-04-09  Jim Meyering  <meyering@redhat.com>
10428
10429         maint.mk: print better diagnostic when there is no $(_hv_file)
10430         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
10431         announce that when $(_hv_file) (aka help-version) does not exist.
10432
10433         init.sh: run tr in the "C" locale to avoid multibyte interpretation
10434         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
10435         not try to interpret its random input bytes.  Jarno Rajahalme reported
10436         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
10437         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
10438         (mktempd_): Likewise, just in case.
10439
10440         ftruncate: add two years to projected module removal date: 2012
10441         * m4/ftruncate.m4: Adjust comments.
10442
10443         ftruncate: mark module as obsolete; even MinGW provides it, now
10444         * modules/ftruncate (Status): Obsolete.
10445         (Notice): Say that.
10446         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
10447         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
10448
10449 2010-04-08  Bruno Haible  <bruno@clisp.org>
10450
10451         Fix side effects from tests-related modules.
10452         * modules/dprintf-posix (Comment): New section.
10453         * modules/fprintf-posix (Comment): Likewise.
10454         * modules/obstack-printf-posix (Comment): Likewise.
10455         * modules/printf-posix (Comment): Likewise.
10456         * modules/snprintf-posix (Comment): Likewise.
10457         * modules/sprintf-posix (Comment): Likewise.
10458         * modules/vasnprintf-posix (Comment): Likewise.
10459         * modules/vasprintf-posix (Comment): Likewise.
10460         * modules/vdprintf-posix (Comment): Likewise.
10461         * modules/vfprintf-posix (Comment): Likewise.
10462         * modules/vprintf-posix (Comment): Likewise.
10463         * modules/vsnprintf-posix (Comment): Likewise.
10464         * modules/vsprintf-posix (Comment): Likewise.
10465         * modules/xprintf-posix (Comment): Likewise.
10466         * modules/xvasprintf-posix (Comment): Likewise.
10467         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
10468         * modules/floorf-tests (Depends-on): Likewise.
10469         * modules/round-tests (Depends-on): Likewise.
10470         * modules/roundf-tests (Depends-on): Likewise.
10471         * modules/trunc-tests (Depends-on): Likewise.
10472         * modules/truncf-tests (Depends-on): Likewise.
10473         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
10474         'fprintf-posix' module is not present.
10475         * tests/test-floorf2.c (check): Likewise.
10476         * tests/test-trunc2.c (check): Likewise.
10477         * tests/test-truncf2.c (check): Likewise.
10478         * tests/test-round2.c (equal): Likewise.
10479         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10480
10481 2010-04-07  Karl Berry  <karl@gnu.org>
10482
10483         * config/srclist.txt,
10484         * config/srclistvars.sh,
10485         * config/srclist-update: doc fixes.
10486
10487 2010-04-07  Jim Meyering  <meyering@redhat.com>
10488
10489         maint.mk: add a PATH crosschecking syntax-check rule
10490         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
10491         Useful if you use a test like the one in help-version (coreutils,
10492         diffutils, grep, gzip) that ensures $(VERSION) matches what is
10493         printed by prog --version.
10494
10495 2010-04-06  Bruno Haible  <bruno@clisp.org>
10496
10497         Fix link error on mingw.
10498         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
10499         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
10500
10501 2010-04-06  Bruno Haible  <bruno@clisp.org>
10502
10503         Assume rmdir exists.
10504         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
10505
10506 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
10507
10508         doc: update users.txt
10509         * users.txt: Add gcal.
10510
10511 2010-04-06  Jim Meyering  <meyering@redhat.com>
10512
10513         init.sh: simply unset TMPDIR rather than risking env -i
10514         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
10515         although it probably works fine on all Unix-based systems, some
10516         systems (Cygwin?) cannot tolerate a totally cleared environment.
10517         Suggestion from Eric Blake.
10518
10519 2010-04-06  Jim Meyering  <meyering@redhat.com>
10520
10521         init.sh: portability fix: use env's POSIX-specified -i option not -u
10522         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
10523         than unportable env -u.  Solaris 5.11's env lacks support for -u.
10524
10525 2010-04-05  Bruno Haible  <bruno@clisp.org>
10526
10527         btowc: Work around Cygwin 1.7.2 bug.
10528         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
10529         does not map NUL to 0.
10530         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
10531
10532 2010-04-05  Bruno Haible  <bruno@clisp.org>
10533
10534         Make the multithread modules work on Cygwin 1.7.2.
10535         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
10536         imported symbols can be declared weak, so that it returns "no" on
10537         Cygwin 1.7.2.
10538
10539 2010-04-05  Bruno Haible  <bruno@clisp.org>
10540
10541         Use the module 'strncat'.
10542         * modules/unistr/u8-strncat (Depends-on): Add strncat.
10543
10544         Tests for module 'strncat'.
10545         * modules/strncat-tests: New file.
10546         * tests/test-strncat.c: New file.
10547
10548         New module 'strncat'.
10549         * lib/string.in.h (strncat): New declaration.
10550         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
10551         * m4/strncat.m4: New file, based on m4/memchr.m4.
10552         * modules/strncat: New file.
10553         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
10554         is declared.
10555         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
10556         REPLACE_STRNCAT.
10557         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
10558         REPLACE_STRNCAT.
10559         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
10560         module.
10561         * tests/test-string-c++.cc: Check signature of strncat.
10562
10563 2010-04-05  Jim Meyering  <meyering@redhat.com>
10564
10565         xstrtoumax-tests: convert to use init.sh
10566         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
10567         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10568         Use Exit, not exit.
10569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10570
10571         xstrtoimax-tests: convert to use init.sh
10572         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
10573         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10574         Use Exit, not exit.
10575         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10576
10577 2010-04-05  Bruno Haible  <bruno@clisp.org>
10578
10579         sys_socket: Avoid #define replacements in C++ mode.
10580         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
10581         warning to the function if possible, rather than #defining the symbol
10582         to a dysfunctional alias.
10583
10584 2010-04-05  Bruno Haible  <bruno@clisp.org>
10585
10586         fseeko: Fix C++ test error on mingw.
10587         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
10588         gl_FUNC_FSEEKO.
10589         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
10590         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
10591         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
10592         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
10593
10594 2010-04-05  Bruno Haible  <bruno@clisp.org>
10595
10596         duplocale: Improve test output.
10597         * tests/test-duplocale.c (main): Print reason for skipped test.
10598
10599 2010-04-05  Bruno Haible  <bruno@clisp.org>
10600
10601         Assume rmdir exists.
10602         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10603         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
10604
10605 2010-04-05  Bruno Haible  <bruno@clisp.org>
10606
10607         Fix link error on Solaris 8 with cc.
10608         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
10609
10610 2010-04-05  Bruno Haible  <bruno@clisp.org>
10611
10612         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10613         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
10614
10615 2010-04-05  Bruno Haible  <bruno@clisp.org>
10616
10617         vasprintf: Update documentation.
10618         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
10619
10620 2010-04-05  Bruno Haible  <bruno@clisp.org>
10621
10622         ptsname: Improve test.
10623         * tests/test-ptsname.c (main): Also try the various master names of BSD
10624         systems.
10625
10626 2010-04-05  Bruno Haible  <bruno@clisp.org>
10627
10628         memchr: Avoid a possible C++ test error.
10629         * lib/string.in.h (memchr): Provide declaration if function is missing.
10630         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
10631         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
10632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
10633         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
10634
10635 2010-04-05  Bruno Haible  <bruno@clisp.org>
10636
10637         strtok_r: Improve idiom.
10638         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
10639         AC_LIBOBJ is used.
10640
10641 2010-04-05  Bruno Haible  <bruno@clisp.org>
10642
10643         strdup: Improve idiom.
10644         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
10645         AC_LIBOBJ is used.
10646         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
10647         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
10648         when AC_LIBOBJ is used.
10649
10650 2010-04-05  Bruno Haible  <bruno@clisp.org>
10651
10652         mbsinit, mbrtowc, wcrtomb: Improve idioms.
10653         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
10654         don't set REPLACE_MBSINIT to 1.
10655         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
10656         don't set REPLACE_MBRTOWC to 1.
10657         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
10658         exist, don't set REPLACE_MBSRTOWCS to 1.
10659         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
10660         exist, don't set REPLACE_MBSNRTOWCS to 1.
10661         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
10662         don't set REPLACE_WCRTOMB to 1.
10663         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
10664         exist, don't set REPLACE_WCSRTOMBS to 1.
10665         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
10666         exist, don't set REPLACE_WCSNRTOMBS to 1.
10667
10668 2010-04-05  Bruno Haible  <bruno@clisp.org>
10669
10670         ldexpl: Improve idiom.
10671         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
10672         make sure to set HAVE_DECL_LDEXPL to 0.
10673
10674 2010-04-05  Jim Meyering  <meyering@redhat.com>
10675
10676         xstrtol-tests: convert to use init.sh
10677         * modules/xstrtol-tests (Files): Add tests/init.sh.
10678         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10679         Use Exit, not exit.
10680         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10681
10682         atexit-tests: convert to use init.sh
10683         * modules/atexit-tests (Files): Add tests/init.sh.
10684         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10685         Use Exit, not exit.
10686         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10687
10688         init.sh: fix typo
10689         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
10690
10691         init.sh: make it easier for a test script to write to the tty, ...
10692         when using automake's parallel-tests mode.
10693         * tests/init.sh (stderr_fileno_): Define overridable variable.
10694         (warn_): New function, to use it.
10695         (fail_, skip_, framework_failure_): Use warn_.
10696
10697 2010-04-04  Bruno Haible  <bruno@clisp.org>
10698
10699         btowc: Avoid warning.
10700         * lib/btowc.c: Include <stdlib.h>.
10701         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
10702
10703 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10704             Bruno Haible  <bruno@clisp.org>
10705
10706         wchar: Port to NetBSD 1.5.
10707         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
10708         * lib/wctype.in.h (WEOF): Likewise.
10709
10710 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10711             Bruno Haible  <bruno@clisp.org>
10712
10713         Port extended stdio to NetBSD 1.5.
10714         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10715         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10716         older.
10717
10718 2010-04-04  Bruno Haible  <bruno@clisp.org>
10719
10720         string: Remove unused substitution.
10721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10722         HAVE_DECL_STRERROR.
10723         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10724
10725 2010-04-04  Bruno Haible  <bruno@clisp.org>
10726
10727         strtod: Avoid a possible C++ test error.
10728         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10729         set REPLACE_STRTOD.
10730
10731 2010-04-04  Bruno Haible  <bruno@clisp.org>
10732
10733         strerror: Update documentation.
10734         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10735
10736 2010-04-04  Bruno Haible  <bruno@clisp.org>
10737
10738         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10739         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10740         _GL_CXXALIAS_SYS_CAST.
10741
10742 2010-04-04  Bruno Haible  <bruno@clisp.org>
10743
10744         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10745         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10746         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10747         REPLACE_FREXPL to 1.
10748         * doc/posix-functions/frexpl.texi: Update documentation.
10749
10750 2010-04-04  Bruno Haible  <bruno@clisp.org>
10751
10752         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10753         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10754
10755 2010-04-04  Bruno Haible  <bruno@clisp.org>
10756
10757         Implement nanosleep for native Windows.
10758         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10759
10760 2010-04-04  Bruno Haible  <bruno@clisp.org>
10761
10762         math: Fix some C++ test errors on Solaris 8.
10763         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10764
10765 2010-04-04  Bruno Haible  <bruno@clisp.org>
10766
10767         math: Fix some C++ test errors on Cygwin.
10768         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10769         truncl): Provide declaration if the system does not have it.
10770         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10771         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10772         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10773         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10774         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10775         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10776         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10777         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10778         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10779         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10780         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10781         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10782         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10783         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10784         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10785         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10787         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10788         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10789         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10790         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10791         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10792
10793 2010-04-04  Bruno Haible  <bruno@clisp.org>
10794
10795         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10796         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10797         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10798         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10799         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10800         * m4/isinf.m4 (gl_ISINF): Likewise.
10801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10802
10803 2010-04-04  Bruno Haible  <bruno@clisp.org>
10804
10805         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10806         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10807
10808 2010-04-04  Bruno Haible  <bruno@clisp.org>
10809
10810         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10811         * modules/tmpfile (configure.ac): Update.
10812
10813         tmpfile: Fix C++ test error on mingw.
10814         * lib/stdio.in.h (tmpfile): New declaration.
10815         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10816         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10817         * modules/tmpfile (Depends-on): Add stdio.
10818         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10819         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10820         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10821         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10822         REPLACE_TMPFILE.
10823         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10824
10825 2010-04-04  Bruno Haible  <bruno@clisp.org>
10826
10827         ioctl: Fix C++ test error on mingw.
10828         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10829         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10830         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10831
10832 2010-04-03  Bruno Haible  <bruno@clisp.org>
10833
10834         wcwidth: Fix C++ test error on mingw.
10835         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10837         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10838
10839 2010-04-03  Bruno Haible  <bruno@clisp.org>
10840
10841         nanosleep: Fix C++ test error on mingw.
10842         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10843         * lib/time.in.h (nanosleep): Use modern idiom.
10844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10845         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10846         REPLACE_NANOSLEEP to 1.
10847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10848         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10849
10850 2010-04-03  Bruno Haible  <bruno@clisp.org>
10851
10852         strptime: Fix C++ test error on mingw.
10853         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10854         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10855         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10856         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10858         not REPLACE_STRPTIME.
10859         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10860         REPLACE_STRPTIME.
10861
10862 2010-04-03  Bruno Haible  <bruno@clisp.org>
10863
10864         timegm: Fix C++ test error on mingw.
10865         * lib/time.in.h (timegm): Use modern idiom.
10866         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10867         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10869         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10870
10871 2010-04-03  Bruno Haible  <bruno@clisp.org>
10872
10873         timegm: Assume declaration if function exists.
10874         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10875         if it exists. Don't clobber ac_cv_func_timegm.
10876
10877 2010-04-03  Bruno Haible  <bruno@clisp.org>
10878
10879         time_r: Fix C++ test error on mingw.
10880         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10881         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10882         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10883         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10884         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10885
10886 2010-04-03  Bruno Haible  <bruno@clisp.org>
10887
10888         time_r: Minor updates.
10889         * modules/time_r (Description): Mention the provided functions.
10890         * lib/time_r.c: Don't include <string.h>.
10891         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10892         * doc/posix-functions/localtime_r.texi: Likewise.
10893
10894 2010-04-03  Bruno Haible  <bruno@clisp.org>
10895
10896         time: Fix regression introduced on 2010-03-08.
10897         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10898         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10899
10900 2010-04-03  Jim Meyering  <meyering@redhat.com>
10901
10902         maint.mk: don't silently disable project-specific syntax-check rules
10903         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10904         that they need to convert their project-specific syntax-check rules
10905         to use the new _sc_search_regexp.
10906
10907 2010-04-03  Bruno Haible  <bruno@clisp.org>
10908
10909         fchdir: Fix regression introduced on 2010-03-08.
10910         * lib/unistd.in.h (fchdir): Fix declaration.
10911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10913         REPLACE_FCHDIR.
10914         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10915         REPLACE_FCHDIR.
10916
10917 2010-04-03  Bruno Haible  <bruno@clisp.org>
10918
10919         getpagesize: Fix C++ test error on mingw.
10920         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10921         system does not declare the function.
10922         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10923         declared.
10924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10925         HAVE_DECL_GETPAGESIZE.
10926         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10927
10928 2010-04-03  Bruno Haible  <bruno@clisp.org>
10929
10930         stdio: Make C++ tests work on mingw.
10931         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10932         does not declare the function.
10933
10934 2010-04-03  Bruno Haible  <bruno@clisp.org>
10935
10936         ftello: Fix C++ test error on mingw.
10937         * lib/stdio.in.h (ftello): Use modern idiom.
10938         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10939         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10940         is missing and that it needs to be replaced.
10941         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10943         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10944
10945 2010-04-03  Bruno Haible  <bruno@clisp.org>
10946
10947         fseeko: Fix C++ test error on mingw.
10948         * lib/stdio.in.h (fseeko): Use modern idiom.
10949         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10950         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10951         is missing and that it needs to be replaced.
10952         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10954         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10955
10956 2010-04-03  Bruno Haible  <bruno@clisp.org>
10957
10958         mkstemp: Fix C++ test error on mingw.
10959         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10960         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10961         function is missing and that it needs to be replaced.
10962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10963         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10964
10965 2010-04-03  Bruno Haible  <bruno@clisp.org>
10966
10967         stpncpy: Fix C++ test error on mingw.
10968         * lib/string.in.h (stpncpy): Use modern idiom.
10969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
10970         function is missing and that it needs to be replaced.
10971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10972         REPLACE_STPNCPY.
10973         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
10974
10975 2010-04-03  Bruno Haible  <bruno@clisp.org>
10976
10977         sys_stat: Fix C++ test error on mingw.
10978         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
10979         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
10980
10981 2010-04-03  Bruno Haible  <bruno@clisp.org>
10982
10983         pty: Update doc.
10984         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
10985
10986 2010-04-03  Bruno Haible  <bruno@clisp.org>
10987
10988         unistd: Fix C++ test error on mingw.
10989         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10990
10991 2010-04-03  Bruno Haible  <bruno@clisp.org>
10992
10993         Update doc regarding mingw.
10994         * doc/glibc-functions/openpty.texi: Update regarding mingw.
10995         * doc/glibc-functions/login_tty.texi: Likewise.
10996         * doc/glibc-functions/forkpty.texi: Likewise.
10997
10998 2010-04-03  Bruno Haible  <bruno@clisp.org>
10999
11000         stdlib: Avoid compilation failure of c-strtold on mingw.
11001         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
11002
11003 2010-04-03  Bruno Haible  <bruno@clisp.org>
11004
11005         locale: Make C++ tests work on Cygwin and mingw.
11006         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
11007         cannot provide the function.
11008         Reported by Simon Josefsson.
11009
11010 2010-04-03  Bruno Haible  <bruno@clisp.org>
11011
11012         localename: Port to MacOS X 10.6.
11013         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
11014         memory layout of the locales in MacOS X 10.6 as well.
11015         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
11016
11017 2010-04-02  Bruno Haible  <bruno@clisp.org>
11018
11019         gnulib-tool: Ensure that long-running tests are executed last.
11020         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
11021         running tests after the one for the other tests.
11022
11023 2010-04-02  Bruno Haible  <bruno@clisp.org>
11024
11025         gnulib-tool: Ensure the tests in the main directory are executed first.
11026         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
11027         start with the current directory.
11028
11029 2010-04-02  Bruno Haible  <bruno@clisp.org>
11030
11031         Tests for module 'havelib', moved here from GNU gettext.
11032         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
11033         modifications.
11034         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
11035         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
11036         with modifications.
11037         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
11038         modifications.
11039         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
11040         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
11041         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
11042         with modifications.
11043         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
11044         with modifications.
11045         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
11046         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
11047         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
11048         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
11049         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
11050         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
11051         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
11052         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
11053         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
11054         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
11055         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
11056         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
11057         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
11058         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
11059         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
11060         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
11061         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
11062         with modifications.
11063         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
11064         with modifications.
11065         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
11066         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
11067         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
11068         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
11069         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
11070         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
11071         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
11072         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
11073         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
11074         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
11075         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
11076         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
11077         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
11078         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
11079         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
11080         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
11081         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
11082         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
11083         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
11084         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
11085         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
11086         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
11087         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
11088         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
11089         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
11090         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
11091         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
11092         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
11093         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
11094         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
11095         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
11096         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
11097         * tests/havelib/rpathx/rpathx.c: New file, from
11098         gettext/autoconf-lib-link.
11099         * tests/havelib/rpathx/Makefile.am: New file, from
11100         gettext/autoconf-lib-link.
11101         * tests/havelib/rpathx/configure.ac: New file, from
11102         gettext/autoconf-lib-link with modifications.
11103         * tests/havelib/rpathy/rpathy.c: New file, from
11104         gettext/autoconf-lib-link.
11105         * tests/havelib/rpathy/Makefile.am: New file, from
11106         gettext/autoconf-lib-link.
11107         * tests/havelib/rpathy/configure.ac: New file, from
11108         gettext/autoconf-lib-link with modifications.
11109         * tests/havelib/rpathz/rpathz.c: New file, from
11110         gettext/autoconf-lib-link.
11111         * tests/havelib/rpathz/Makefile.am: New file, from
11112         gettext/autoconf-lib-link.
11113         * tests/havelib/rpathz/configure.ac: New file, from
11114         gettext/autoconf-lib-link with modifications.
11115         * tests/havelib/rpathlx/usex.c: New file, from
11116         gettext/autoconf-lib-link.
11117         * tests/havelib/rpathlx/Makefile.am: New file, from
11118         gettext/autoconf-lib-link.
11119         * tests/havelib/rpathlx/configure.ac: New file, from
11120         gettext/autoconf-lib-link with modifications.
11121         * tests/havelib/rpathly/usey.c: New file, from
11122         gettext/autoconf-lib-link.
11123         * tests/havelib/rpathly/Makefile.am: New file, from
11124         gettext/autoconf-lib-link.
11125         * tests/havelib/rpathly/configure.ac: New file, from
11126         gettext/autoconf-lib-link with modifications.
11127         * tests/havelib/rpathlz/usez.c: New file, from
11128         gettext/autoconf-lib-link.
11129         * tests/havelib/rpathlz/Makefile.am: New file, from
11130         gettext/autoconf-lib-link.
11131         * tests/havelib/rpathlz/configure.ac: New file, from
11132         gettext/autoconf-lib-link with modifications.
11133         * tests/havelib/rpathlyx/usey.c: New file, from
11134         gettext/autoconf-lib-link.
11135         * tests/havelib/rpathlyx/Makefile.am: New file, from
11136         gettext/autoconf-lib-link.
11137         * tests/havelib/rpathlyx/configure.ac: New file, from
11138         gettext/autoconf-lib-link with modifications.
11139         * tests/havelib/rpathlzyx/usez.c: New file, from
11140         gettext/autoconf-lib-link.
11141         * tests/havelib/rpathlzyx/Makefile.am: New file, from
11142         gettext/autoconf-lib-link.
11143         * tests/havelib/rpathlzyx/configure.ac: New file, from
11144         gettext/autoconf-lib-link with modifications.
11145         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
11146         with modifications.
11147
11148 2010-04-02  Bruno Haible  <bruno@clisp.org>
11149
11150         gnulib-tool: Create distributed built sources also for the tests.
11151         * gnulib-tool (func_create_testdir): Also generate distributed built
11152         sources in the tests directory.
11153
11154 2010-04-02  Bruno Haible  <bruno@clisp.org>
11155
11156         gnulib-tool: Obey user's environment variables.
11157         * gnulib-tool (func_create_testdir): When creating built sources,
11158         respect the environment variables for autoconf, automake, etc. given by
11159         the user.
11160
11161 2010-04-02  Bruno Haible  <bruno@clisp.org>
11162
11163         gnulib-tool: Provide the value of --m4-base to modules.
11164         * gnulib-tool (func_import, func_create_testdir): Emit a definition
11165         of gl_m4_base.
11166
11167 2010-04-02  Eric Blake  <eblake@redhat.com>
11168
11169         maint.mk: fix some fallout
11170         * NEWS: Document the incompatible change, and its effect on cfg.mk.
11171         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
11172
11173 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11174
11175         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
11176         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
11177         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
11178         (sc_cast_of_x_alloc_return_value): Likewise.
11179         (sc_cast_of_alloca_return_value): Likewise.
11180         (sc_space_tab): Likewise.
11181         (sc_prohibit_atoi_atof): Likewise.
11182         (sc_prohibit_magic_number_exit): Likewise.
11183         (sc_error_exit_success): Likewise.
11184         (sc_file_system): Likewise.
11185         (sc_prohibit_have_config_h): Likewise.
11186         (sc_require_config_h): Likewise.
11187         (sc_prohibit_HAVE_MBRTOWC): Likewise.
11188         (sc_obsolete_symbols): Likewise.
11189         (sc_changelog): Likewise.
11190         (sc_program_name): Likewise.
11191         (sc_the_the): Likewise.
11192         (sc_trailing_blank): Likewise.
11193         (sc_two_space_separator_in_usage): Likewise.
11194         (sc_useless_cpp_parens): Likewise.
11195         (sc_GPL_version): Likewise.
11196         (sc_GFDL_version): Likewise.
11197         (sc_texinfo_acronym): Likewise.
11198         (sc_prohibit_cvs_keyword): Likewise.
11199         (sc_prohibit_stat_st_blocks): Likewise.
11200         (sc_prohibit_S_IS_definition): Likewise.
11201         (sc_redundant_const): Likewise.
11202         (sc_makefile_TAB_only_indentation): Likewise.
11203         (sc_m4_quote_check): Likewise.
11204         (sc_makefile_path_separator_check): Likewise.
11205         (sc_copyright_check): Likewise.
11206         (sc_Wundef_boolean): Likewise.
11207         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11208
11209         maint.mk: match 0 or more whitespace-before-function-call '('
11210         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
11211         that have zero or two-and-more spaces between the function name
11212         and the open parenthesis.
11213         (sc_error_message_warn_fatal): Likewise.
11214         (sc_error_message_uppercase): Likewise.
11215         (sc_error_message_period): Likewise.
11216
11217 2010-03-31  Eric Blake  <eblake@redhat.com>
11218
11219         maint.mk: check for [ as well as test
11220         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
11221         Based on a libvirt report by Matthias Bolte.
11222
11223         gnumakefile: don't squelch _version output
11224         * top/GNUmakefile (_version): Create one-shot dependency rather
11225         than using $(shell) when version must be regenerated.
11226         (_autoreconf): Run verbosely, by default.
11227
11228         sys_time: avoid compiler warnings
11229         * lib/sys_time.in.h (includes): Ensure gcc pragma is
11230         unconditional, fixing regression from 2010-03-29.
11231         Reported by Simon Josefsson.
11232
11233 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11234
11235         maint.mk: s/_header_without_use/_sc_header_without_use/
11236         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
11237         (sc_prohibit_assert_without_use): Use the new name.
11238         (sc_prohibit_close_stream_without_use): Likewise.
11239         (sc_prohibit_getopt_without_use): Likewise.
11240         (sc_prohibit_quotearg_without_use): Likewise.
11241         (sc_prohibit_quote_without_use): Likewise.
11242         (sc_prohibit_long_options_without_use): Likewise.
11243         (sc_prohibit_inttostr_without_use): Likewise.
11244         (sc_prohibit_ignore_value_without_use): Likewise.
11245         (sc_prohibit_error_without_use): Likewise.
11246         (sc_prohibit_xalloc_without_use): Likewise.
11247         (sc_prohibit_hash_without_use): Likewise.
11248         (sc_prohibit_hash_pjw_without_use): Likewise.
11249         (sc_prohibit_safe_read_without_use): Likewise.
11250         (sc_prohibit_argmatch_without_use): Likewise.
11251         (sc_prohibit_canonicalize_without_use): Likewise.
11252         (sc_prohibit_root_dev_ino_without_use): Likewise.
11253         (sc_prohibit_openat_without_use): Likewise.
11254         (sc_prohibit_c_ctype_without_use): Likewise.
11255         (sc_prohibit_signal_without_use): Likewise.
11256         (sc_prohibit_intprops_without_use): Likewise.
11257
11258 2010-03-30  Eric Blake  <eblake@redhat.com>
11259
11260         maint: improve module indicators
11261         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
11262         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
11263         columns, and avoid extra macro expansion.
11264
11265         fdopendir: work around FreeBSD bug
11266         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
11267         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
11268         * modules/dirent (Makefile.am): Substitute it.
11269         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
11270         declaration.
11271         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
11272         fix.
11273         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11274
11275 2010-03-29  Bruno Haible  <bruno@clisp.org>
11276
11277         Emit #pragma system_header after the inclusion guard, not before.
11278         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
11279         guard that spans the entire file, not before. This enables an
11280         optimization in GCC's preprocessor.
11281         * lib/ctype.in.h: Likewise.
11282         * lib/dirent.in.h: Likewise.
11283         * lib/errno.in.h: Likewise.
11284         * lib/float.in.h: Likewise.
11285         * lib/getopt.in.h: Likewise.
11286         * lib/iconv.in.h: Likewise.
11287         * lib/langinfo.in.h: Likewise.
11288         * lib/locale.in.h: Likewise.
11289         * lib/math.in.h: Likewise.
11290         * lib/netdb.in.h: Likewise.
11291         * lib/netinet_in.in.h: Likewise.
11292         * lib/pty.in.h: Likewise.
11293         * lib/sched.in.h: Likewise.
11294         * lib/se-selinux.in.h: Likewise.
11295         * lib/search.in.h: Likewise.
11296         * lib/spawn.in.h: Likewise.
11297         * lib/stdarg.in.h: Likewise.
11298         * lib/stdint.in.h: Likewise.
11299         * lib/string.in.h: Likewise.
11300         * lib/strings.in.h: Likewise.
11301         * lib/sys_file.in.h: Likewise.
11302         * lib/sys_ioctl.in.h: Likewise.
11303         * lib/sys_time.in.h: Likewise.
11304         * lib/sys_times.in.h: Likewise.
11305         * lib/sys_utsname.in.h: Likewise.
11306         * lib/sys_wait.in.h: Likewise.
11307         * lib/sysexits.in.h: Likewise.
11308         * lib/wctype.in.h: Likewise.
11309
11310 2010-03-28  James Youngman  <jay@gnu.org>
11311
11312         save-cwd: don't leak a file descriptor when the caller execs.
11313         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
11314         saved file descriptor.
11315         * modules/save-cwd (Depends-on): Depend on cloexec.
11316
11317 2010-03-29  Bruno Haible  <bruno@clisp.org>
11318
11319         Remove vestiges of fts-lgpl module.
11320         * lib/fts_.h: Assume GNULIB_FTS is 1.
11321         * lib/fts.c: Likewise.
11322         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11323
11324 2010-03-28  Bruno Haible  <bruno@clisp.org>
11325
11326         Fix definition of tests witness macro.
11327         * gnulib-tool (func_import): Fix definition of witness macro.
11328
11329 2010-03-28  Bruno Haible  <bruno@clisp.org>
11330
11331         Fix ioctl's protoype on glibc systems.
11332         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
11333         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
11334         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
11335         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
11336         signature. If not, arrange to replace the ioctl function.
11337         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11338         REPLACE_IOCTL.
11339         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
11340         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
11341         Reported by Ludovic Courtès <ludo@gnu.org>.
11342
11343 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
11344
11345         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
11346         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
11347         made it so grep -r --include=GLOB* ... did not work.
11348
11349 2010-03-26  Jim Meyering  <meyering@redhat.com>
11350             Eric Blake  <eblake@redhat.com>
11351
11352         maint.mk: prohibit use of test's -o and -a operators
11353         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
11354
11355 2010-03-28  Bruno Haible  <bruno@clisp.org>
11356
11357         Remove unused GNULIB_XYZ macro definitions.
11358         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
11359         invocation.
11360
11361 2010-03-28  Bruno Haible  <bruno@clisp.org>
11362
11363         Mark privileged tests modules.
11364         * modules/idpriv-drop-tests (Status): New section.
11365         * modules/idpriv-droptemp-tests (Status): New section.
11366
11367 2010-03-28  Bruno Haible  <bruno@clisp.org>
11368
11369         Split C++ tests into separate tests modules.
11370         * modules/dirent-c++-tests: New file, extracted from
11371         modules/dirent-tests.
11372         * modules/dirent-tests: Depend on it.
11373         * modules/fcntl-h-c++-tests: New file, extracted from
11374         modules/fcntl-h-tests.
11375         * modules/fcntl-h-tests: Depend on it.
11376         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
11377         * modules/glob-tests: Depend on it.
11378         * modules/iconv-h-c++-tests: New file, extracted from
11379         modules/iconv-h-tests.
11380         * modules/iconv-h-tests: Depend on it.
11381         * modules/langinfo-c++-tests: New file, extracted from
11382         modules/langinfo-tests.
11383         * modules/langinfo-tests: Depend on it.
11384         * modules/locale-c++-tests: New file, extracted from
11385         modules/locale-tests.
11386         * modules/locale-tests: Depend on it.
11387         * modules/math-c++-tests: New file, extracted from modules/math-tests.
11388         * modules/math-tests: Depend on it.
11389         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
11390         * modules/pty-tests: Depend on it.
11391         * modules/search-c++-tests: New file, extracted from
11392         modules/search-tests.
11393         * modules/search-tests: Depend on it.
11394         * modules/signal-c++-tests: New file, extracted from
11395         modules/signal-tests.
11396         * modules/signal-tests: Depend on it.
11397         * modules/spawn-c++-tests: New file, extracted from
11398         modules/spawn-tests.
11399         * modules/spawn-tests: Depend on it.
11400         * modules/stdio-c++-tests: New file, extracted from
11401         modules/stdio-tests.
11402         * modules/stdio-tests: Depend on it.
11403         * modules/stdlib-c++-tests: New file, extracted from
11404         modules/stdlib-tests.
11405         * modules/stdlib-tests: Depend on it.
11406         * modules/string-c++-tests: New file, extracted from
11407         modules/string-tests.
11408         * modules/string-tests: Depend on it.
11409         * modules/sys_ioctl-c++-tests: New file, extracted from
11410         modules/sys_ioctl-tests.
11411         * modules/sys_ioctl-tests: Depend on it.
11412         * modules/sys_select-c++-tests: New file, extracted from
11413         modules/sys_select-tests.
11414         * modules/sys_select-tests: Depend on it.
11415         * modules/sys_socket-c++-tests: New file, extracted from
11416         modules/sys_socket-tests.
11417         * modules/sys_socket-tests: Depend on it.
11418         * modules/sys_stat-c++-tests: New file, extracted from
11419         modules/sys_stat-tests.
11420         * modules/sys_stat-tests: Depend on it.
11421         * modules/sys_time-c++-tests: New file, extracted from
11422         modules/sys_time-tests.
11423         * modules/sys_time-tests: Depend on it.
11424         * modules/time-c++-tests: New file, extracted from modules/time-tests.
11425         * modules/time-tests: Depend on it.
11426         * modules/unistd-c++-tests: New file, extracted from
11427         modules/unistd-tests.
11428         * modules/unistd-tests: Depend on it.
11429         * modules/wchar-c++-tests: New file, extracted from
11430         modules/wchar-tests.
11431         * modules/wchar-tests: Depend on it.
11432         * modules/wctype-c++-tests: New file, extracted from
11433         modules/wctype-tests.
11434         * modules/wctype-tests: Depend on it.
11435         Reported by Simon Josefsson.
11436
11437 2010-03-28  Bruno Haible  <bruno@clisp.org>
11438
11439         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
11440         * gnulib-tool (func_exists_module): New function, extracted from
11441         func_verify_module.
11442         (func_verify_module): Use it.
11443         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
11444         'foo' only if 'foo' exists.
11445         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
11446         module.
11447
11448 2010-03-28  Bruno Haible  <bruno@clisp.org>
11449
11450         gnulib-tool: Add support for special categories of tests.
11451         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
11452         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
11453         (func_usage): Document them.
11454         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
11455         inc_unportable_tests, inc_all_tests): New variables.
11456         (func_acceptable): Consider these variables.
11457         (func_modules_transitive_closure): Make it work when the 'Status' field
11458         consists of multiple words.
11459         (func_import): Store and restore the values of inc_cxx_tests,
11460         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
11461         inc_all_tests in gnulib-comp.m4.
11462         (func_create_testdir): Set inc_all_tests to true.
11463         * doc/gnulib.texi (Extra tests modules): New section.
11464         Suggested by Jim Meyering.
11465
11466 2010-03-28  Bruno Haible  <bruno@clisp.org>
11467
11468         ansi-c++-opt: Allow turning off the C++ build by default.
11469         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
11470         gl_CXX_CHOICE_DEFAULT_NO is defined.
11471         Requested by Eric Blake.
11472
11473 2010-03-28  Bruno Haible  <bruno@clisp.org>
11474
11475         unistd: Avoid #define replacements in C++ mode.
11476         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11477         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11478         setsockopt, shutdown, select): In C++, attach a warning to the function
11479         if possible, rather than #defining the symbol to a dysfunctional alias.
11480         Reported by John W. Eaton <jwe@gnu.org>.
11481
11482 2010-03-28  Bruno Haible  <bruno@clisp.org>
11483
11484         Fix link errors on mingw.
11485         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
11486         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
11487         $(LIBSOCKET).
11488         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
11489         $(LIBSOCKET).
11490
11491 2010-03-28  Bruno Haible  <bruno@clisp.org>
11492             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11493
11494         lib-ignore: Determine different options for different compilers.
11495         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
11496         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
11497         Add comments.
11498         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
11499         * NEWS: Mention the change.
11500
11501 2010-03-27  Bruno Haible  <bruno@clisp.org>
11502
11503         Remove unused GNULIB_XYZ macro definitions.
11504         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11505         * modules/fseek (configure.ac): Likewise.
11506         * modules/ioctl (configure.ac): Likewise.
11507         * modules/open (configure.ac): Likewise.
11508         * modules/stdlib-safer (configure.ac): Likewise.
11509
11510 2010-03-27  Bruno Haible  <bruno@clisp.org>
11511
11512         Add a remark about certain modules.
11513         * modules/malloc (Comment): New section.
11514         * modules/realloc (Comment): Likewise.
11515         * modules/sigpipe (Comment): Likewise.
11516
11517 2010-03-27  Bruno Haible  <bruno@clisp.org>
11518
11519         Resolve conflict between the two kinds of module indicators.
11520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
11521         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
11522         * modules/canonicalize (configure.ac): Invoke
11523         gl_MODULE_INDICATOR_FOR_TESTS.
11524         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
11525         GNULIB_XYZ.
11526         * tests/test-dirent-c++.cc: Likewise.
11527         * tests/test-dirent-safer.c: Likewise.
11528         * tests/test-dup2.c: Likewise.
11529         * tests/test-fchdir.c: Likewise.
11530         * tests/test-fcntl-h-c++.cc: Likewise.
11531         * tests/test-getopt.c: Likewise.
11532         * tests/test-getopt.h: Likewise.
11533         * tests/test-langinfo-c++.cc: Likewise.
11534         * tests/test-locale-c++.cc: Likewise.
11535         * tests/test-math-c++.cc: Likewise.
11536         * tests/test-pty-c++.cc: Likewise.
11537         * tests/test-search-c++.cc: Likewise.
11538         * tests/test-signal-c++.cc: Likewise.
11539         * tests/test-spawn-c++.cc: Likewise.
11540         * tests/test-stdio-c++.cc: Likewise.
11541         * tests/test-stdlib-c++.cc: Likewise.
11542         * tests/test-string-c++.cc: Likewise.
11543         * tests/test-sys_ioctl-c++.cc: Likewise.
11544         * tests/test-sys_select-c++.cc: Likewise.
11545         * tests/test-sys_socket-c++.cc: Likewise.
11546         * tests/test-sys_stat-c++.cc: Likewise.
11547         * tests/test-sys_time-c++.cc: Likewise.
11548         * tests/test-time-c++.cc: Likewise.
11549         * tests/test-unistd-c++.cc: Likewise.
11550         * tests/test-wchar-c++.cc: Likewise.
11551         * tests/uninorm/test-u8-nfc.c: Likewise.
11552         * tests/uninorm/test-u8-nfd.c: Likewise.
11553         * tests/uninorm/test-u8-nfkc.c: Likewise.
11554         * tests/uninorm/test-u8-nfkd.c: Likewise.
11555         * tests/uninorm/test-u16-nfc.c: Likewise.
11556         * tests/uninorm/test-u16-nfd.c: Likewise.
11557         * tests/uninorm/test-u16-nfkc.c: Likewise.
11558         * tests/uninorm/test-u16-nfkd.c: Likewise.
11559         * tests/uninorm/test-u32-nfc.c: Likewise.
11560         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11561         * tests/uninorm/test-u32-nfd.c: Likewise.
11562         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11563         * tests/uninorm/test-u32-nfkc.c: Likewise.
11564         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11565         * tests/uninorm/test-u32-nfkd.c: Likewise.
11566         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11567         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11568
11569 2010-03-27  Bruno Haible  <bruno@clisp.org>
11570
11571         Distinguish two kinds of module indicators.
11572         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
11573         gl_MODULE_INDICATOR.
11574         (gl_MODULE_INDICATOR): New macro.
11575         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11576         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
11577         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11578         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11579         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11580         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11581         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11582         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11583         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11584         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11585         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11586         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11589         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11590         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11591         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11592         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11593         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11594         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11595         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11596         * modules/cloexec (configure.ac): Likewise.
11597         * modules/getopt-gnu (configure.ac): Likewise.
11598         * modules/uninorm/u8-normalize (configure.ac): Likewise.
11599         * modules/uninorm/u16-normalize (configure.ac): Likewise.
11600         * modules/uninorm/u32-normalize (configure.ac): Likewise.
11601         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
11602
11603 2010-03-27  Bruno Haible  <bruno@clisp.org>
11604
11605         New module description field 'Comment'.
11606         * gnulib-tool: New option --extract-comment.
11607         (func_usage): Document it.
11608         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
11609         (func_get_comment): New function.
11610         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
11611
11612 2010-03-27  Bruno Haible  <bruno@clisp.org>
11613
11614         Addendum to 2010-02-07 commit.
11615         * gnulib-tool (func_usage): Document --extract-applicability option.
11616
11617 2010-03-27  Bruno Haible  <bruno@clisp.org>
11618
11619         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
11620         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
11621         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
11622         rather than link errors.
11623
11624 2010-03-27  Bruno Haible  <bruno@clisp.org>
11625
11626         Avoid side effects from tests-related modules on the compilation of lib.
11627         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
11628         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
11629         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
11630         parameter. Emit into AM_CPPFLAGS a definition of the designated C
11631         macro.
11632         (func_import): Define a witness macro. Assign it a value that depends
11633         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11634         tests-related modules.
11635         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
11636         Reported by Jim Meyering.
11637
11638 2010-03-27  Bruno Haible  <bruno@clisp.org>
11639
11640         Factorize common .m4 code.
11641         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
11642         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
11643         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
11644         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
11645         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11646         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
11647         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
11648         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11649         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11650         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11651         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
11652         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11653         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11654         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11655         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11656         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
11657         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11658         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11660         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
11661         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
11662         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11663         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11665         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11666         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11667         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
11668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
11669         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
11670         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11671         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11672         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11673
11674 2010-03-27  Bruno Haible  <bruno@clisp.org>
11675
11676         Fix a compilation error on Cygwin with g++ >= 4.3.
11677         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
11678         if it is undefined or if we alias it to chmod.
11679         (lstat): Don't warn about the use of this function if it is undefined
11680         or if we alias it to stat.
11681         Reported by Simon Josefsson.
11682
11683 2010-03-27  Bruno Haible  <bruno@clisp.org>
11684
11685         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
11686         * modules/getlogin (configure.ac): Update.
11687
11688         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
11689         * modules/getlogin_r (configure.ac): Update.
11690
11691         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
11692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
11693         * modules/inet_ntop (configure.ac): Update.
11694
11695         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
11696         * modules/inet_pton (configure.ac): Update.
11697
11698         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
11699         * modules/mbslen (configure.ac): Update.
11700
11701         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
11702         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
11703         * modules/forkpty (configure.ac): Update.
11704         * modules/openpty (configure.ac): Update.
11705
11706 2010-03-26  Simon Josefsson  <simon@josefsson.org>
11707
11708         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11709         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11710
11711 2010-03-25  Eric Blake  <eblake@redhat.com>
11712
11713         maint: use pragma consistently across replacement headers
11714         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11715         * lib/dirent.in.h (system_header): Likewise.
11716         * lib/errno.in.h (system_header): Likewise.
11717         * lib/float.in.h (system_header): Likewise.
11718         * lib/getopt.in.h (system_header): Likewise.
11719         * lib/iconv.in.h (system_header): Likewise.
11720         * lib/inttypes.in.h (system_header): Likewise.
11721         * lib/langinfo.in.h (system_header): Likewise.
11722         * lib/locale.in.h (system_header): Likewise.
11723         * lib/math.in.h (system_header): Likewise.
11724         * lib/netdb.in.h (system_header): Likewise.
11725         * lib/netinet_in.in.h (system_header): Likewise.
11726         * lib/pty.in.h (system_header): Likewise.
11727         * lib/sched.in.h (system_header): Likewise.
11728         * lib/se-selinux.in.h (system_header): Likewise.
11729         * lib/search.in.h (system_header): Likewise.
11730         * lib/spawn.in.h (system_header): Likewise.
11731         * lib/stdarg.in.h (system_header): Likewise.
11732         * lib/stdint.in.h (system_header): Likewise.
11733         * lib/string.in.h (system_header): Likewise.
11734         * lib/strings.in.h (system_header): Likewise.
11735         * lib/sys_file.in.h (system_header): Likewise.
11736         * lib/sys_ioctl.in.h (system_header): Likewise.
11737         * lib/sys_socket.in.h (system_header): Likewise.
11738         * lib/sys_times.in.h (system_header): Likewise.
11739         * lib/sys_utsname.in.h (system_header): Likewise.
11740         * lib/sys_wait.in.h (system_header): Likewise.
11741         * lib/sysexits.in.h (system_header): Likewise.
11742         * lib/unistd.in.h (system_header): Likewise.
11743         * lib/wctype.in.h (system_header): Likewise.
11744
11745         arpa/inet: fix mingw compilation warning
11746         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11747         Reported by Matthew Bolte.
11748
11749 2010-03-25  Bruno Haible  <bruno@clisp.org>
11750
11751         Avoid collision between gnulib wrapper and libintl wrapper.
11752         * lib/printf.c (printf): Don't define if a printf wrapper is already
11753         defined in intl/printf.c.
11754         Reported by Michel Boaventura <michel@michelboaventura.com>.
11755
11756 2010-03-25  Bruno Haible  <bruno@clisp.org>
11757
11758         Use ANSI C.
11759         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11760
11761 2010-03-25  Bruno Haible  <bruno@clisp.org>
11762
11763         Minor formatting changes.
11764         * lib/acosl.c: Insert space before function argument list.
11765         * lib/argz.c: Likewise.
11766         * lib/asinl.c: Likewise.
11767         * lib/expl.c: Likewise.
11768         * lib/gen-uni-tables.c: Likewise.
11769         * lib/gettext.h: Likewise.
11770         * lib/glthread/lock.h: Likewise.
11771         * lib/tanl.c: Likewise.
11772         * lib/uniname/uniname.c: Likewise.
11773         * tests/test-idpriv-drop.c: Likewise.
11774         * tests/test-idpriv-droptemp.c: Likewise.
11775         * tests/test-lock.c: Likewise.
11776         * tests/test-tls.c: Likewise.
11777         * lib/argp-help.c: Insert space before function-like macro argument
11778         list.
11779         * lib/memcmp.c: Likewise.
11780         * tests/test-base64.c: Likewise.
11781         * lib/localename.c: Insert space before sizeof's argument list.
11782         * lib/safe-alloc.h: Likewise.
11783         * lib/file-set.h: Insert space before macro argument list.
11784         * tests/test-argp.c: Likewise.
11785         * lib/argp-namefrob.h: Insert space before function parameter list.
11786         * lib/getaddrinfo.c: Likewise.
11787         * lib/netdb.in.h: Likewise.
11788         * lib/parse-duration.h: Likewise.
11789         * lib/parse-duration.c: Likewise.
11790         * lib/poll.c: Likewise.
11791         * lib/select.c: Likewise.
11792         * lib/trim.h: Likewise.
11793         * tests/test-usleep.c: Likewise.
11794         * lib/ldexpl.c: Insert space before function parameter list and before
11795         function argument list.
11796         * lib/logl.c: Likewise.
11797         * lib/sqrtl.c: Likewise.
11798         * lib/trim.c: Likewise.
11799         * lib/cosl.c: Use GNU style indentation. Insert space before function
11800         argument list.
11801         * lib/sinl.c: Likewise.
11802         * lib/tsearch.c: Insert space after 'for'.
11803         Reported by Jim Meyering.
11804
11805 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11806
11807         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11808         config header before grepping, as it's not present before
11809         autoreconf/configure are run.  Reported by Simon Josefsson.
11810
11811 2010-03-23  Bruno Haible  <bruno@clisp.org>
11812
11813         pt_chown: Make it work with automake < 1.11.
11814         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11815         Reported by Simon Josefsson.
11816
11817 2010-03-23  Bruno Haible  <bruno@clisp.org>
11818
11819         pt_chown: Don't depend on GPLed modules.
11820         * lib/pt_chown.c: Don't include idpriv.h.
11821         (main): Don't drop privileges.
11822         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11823         Reported by Simon Josefsson.
11824
11825 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11826
11827         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11828         suggestions from karl@freefriends.org (Karl Berry).
11829
11830 2010-03-22  Eric Blake  <eblake@redhat.com>
11831
11832         gethostname: further tweaks
11833         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11834         are overriding gethostname.
11835         Suggested by Bruno Haible.
11836
11837 2010-03-21  Bruno Haible  <bruno@clisp.org>
11838
11839         Fix comments.
11840         * lib/forkpty.c (rpl_forkpty): Fix comment.
11841         * lib/openpty.c (rpl_openpty): Likewise.
11842         Reported by Eric Blake.
11843
11844 2010-03-22  Eric Blake  <eblake@redhat.com>
11845
11846         gethostname: fix build on mingw
11847         * lib/unistd.in.h (includes): Work around fact that mingw
11848         <winsock2.h> re-includes <unistd.h>, by avoiding any
11849         redeclarations if we are being included by <winsock2.h>.
11850         Reported by Matthias Bolte.
11851
11852 2010-03-21  Bruno Haible  <bruno@clisp.org>
11853
11854         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11855         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11856         modifications.
11857         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11858         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11859         provide the replacement.
11860         * modules/forkpty (Depends-on): Add openpty, login_tty.
11861         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11862         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11863         * doc/glibc-functions/forkpty.texi: More supported platforms.
11864         * config/srclist.txt: Add forkpty.c (commented).
11865
11866 2010-03-21  Bruno Haible  <bruno@clisp.org>
11867
11868         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11869         (Makefile.am): Verify that PTY_LIB is defined.
11870
11871         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11872
11873 2010-03-21  Bruno Haible  <bruno@clisp.org>
11874
11875         Tests for module 'login_tty'.
11876         * modules/login_tty-tests: New file.
11877         * tests/test-login_tty.c: New file.
11878
11879         New module 'login_tty'.
11880         * lib/login_tty.c: New file.
11881         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11882         * modules/login_tty: New file.
11883         * doc/glibc-functions/login_tty.texi: Mention the new module.
11884
11885 2010-03-21  Bruno Haible  <bruno@clisp.org>
11886
11887         login_tty: Documentation.
11888         * doc/glibc-functions/login_tty.texi: New file.
11889         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11890
11891 2010-03-21  Bruno Haible  <bruno@clisp.org>
11892
11893         pty: Consistent macro naming.
11894         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11895         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11896         * modules/pty (configure.ac): Update.
11897
11898 2010-03-21  Bruno Haible  <bruno@clisp.org>
11899
11900         Tests for openpty: Make stricter.
11901         * tests/test-openpty.c (main): Add test of canonical processing and
11902         erase.
11903         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11904
11905         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11906         * lib/openpty.c (openpty): New replacement function.
11907         * lib/pty.in.h: Include <termios.h>.
11908         (openpty): Update declaration. Add comments.
11909         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11910         is not declared, arrange to provide the replacement. Check for _getpty
11911         and posix_openpt.
11912         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11913         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11914         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11915         * modules/pty-tests (test_pty_c___LDADD): New variable.
11916         * doc/glibc-functions/openpty.texi: More supported platforms.
11917
11918 2010-03-21  Bruno Haible  <bruno@clisp.org>
11919
11920         setenv: Tweaks.
11921         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11922         the test program.
11923         * doc/posix-functions/setenv.texi: Update platforms list.
11924
11925 2010-03-21  Bruno Haible  <bruno@clisp.org>
11926
11927         New module 'unlockpt'.
11928         * lib/unlockpt.c: New file, from glibc with modifications.
11929         * m4/unlockpt.m4: New file.
11930         * modules/unlockpt: New file.
11931         * lib/stdlib.in.h (unlockpt): New declaration.
11932         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11933         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11934         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11935         HAVE_UNLOCKPT.
11936         * doc/posix-functions/unlockpt.texi: Mention the new module.
11937         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11938         * config/srclist.txt: Add unlockpt.c (commented).
11939
11940 2010-03-21  Jim Meyering  <meyering@redhat.com>
11941
11942         maint.mk: prohibit inclusion of "intprops.h" without use
11943         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11944
11945 2010-03-21  Bruno Haible  <bruno@clisp.org>
11946
11947         New module 'grantpt'.
11948         * lib/grantpt.c: New file, from glibc with modifications.
11949         * m4/grantpt.m4: New file.
11950         * modules/grantpt: New file.
11951         * lib/stdlib.in.h (grantpt): New declaration.
11952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11953         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11954         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11955         HAVE_GRANTPT.
11956         * doc/posix-functions/grantpt.texi: Mention the new module.
11957         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11958         * config/srclist.txt: Add grantpt.c (commented).
11959
11960 2010-03-21  Bruno Haible  <bruno@clisp.org>
11961
11962         New module 'pt_chown'.
11963         * lib/pt_chown.c: New file, from glibc with modifications.
11964         * lib/pty-private.h: New file, from glibc with modifications.
11965         * modules/pt_chown: New file.
11966         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11967
11968 2010-03-21  Bruno Haible  <bruno@clisp.org>
11969
11970         Tests for module 'ptsname'.
11971         * modules/ptsname-tests: New file.
11972         * tests/test-ptsname.c: New file.
11973
11974         New module 'ptsname'.
11975         * lib/ptsname.c: New file, from glibc with modifications.
11976         * m4/ptsname.m4: New file.
11977         * modules/ptsname: New file.
11978         * lib/stdlib.in.h (ptsname): New declaration.
11979         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
11980         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
11981         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
11982         HAVE_PTSNAME.
11983         * doc/posix-functions/ptsname.texi: Mention the new module.
11984         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
11985         * config/srclist.txt: Add ptsname.c (commented).
11986
11987 2010-03-21  Bruno Haible  <bruno@clisp.org>
11988
11989         Tests for module 'ttyname_r'.
11990         * modules/ttyname_r-tests: New file.
11991         * tests/test-ttyname_r.c: New file.
11992
11993         New module 'ttyname_r'.
11994         * lib/ttyname_r.c: New file.
11995         * m4/ttyname_r.m4: New file.
11996         * modules/ttyname_r: New file.
11997         * lib/unistd.in.h (ttyname_r): New declaration.
11998         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
11999         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
12000         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
12001         HAVE_TTYNAME_R.
12002         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
12003         * doc/posix-functions/ttyname_r.texi: Mention the new module.
12004
12005 2010-03-20  Bruno Haible  <bruno@clisp.org>
12006
12007         signal: Undefine macro definitions in C++ mode.
12008         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
12009         sigfillset): Undefine macro definitions from the system header in C++
12010         mode.
12011         Reported by John W. Eaton <jwe@gnu.org>.
12012
12013 2010-03-20  Bruno Haible  <bruno@clisp.org>
12014
12015         Ensure no #include statements inside extern "C" { ... }.
12016         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
12017         contain #include statements.
12018         * lib/time.in.h: Likewise.
12019
12020 2010-03-20  Bruno Haible  <bruno@clisp.org>
12021
12022         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
12023         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
12024         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
12025         Reported by John W. Eaton <jwe@gnu.org>.
12026
12027 2010-03-20  Bruno Haible  <bruno@clisp.org>
12028
12029         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
12030         Reported by Jim Meyering.
12031
12032 2010-03-20  Bruno Haible  <bruno@clisp.org>
12033
12034         pipe: Set errno upon failure.
12035         * lib/pipe.h: Specify that when -1 is returned, errno is set.
12036         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
12037         errno value in error message.
12038
12039 2010-03-20  Bruno Haible  <bruno@clisp.org>
12040             Jim Meyering  <meyering@redhat.com>
12041
12042         lchown: Avoid "unused variable" warning.
12043         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
12044
12045 2010-03-20  Bruno Haible  <bruno@clisp.org>
12046
12047         Work around unlink() bug on MacOS X 10.5.6.
12048         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
12049         attempting to unlink a parent directory.
12050         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
12051         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
12052         activate for the replacement function.
12053         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
12054
12055 2010-03-20  Bruno Haible  <bruno@clisp.org>
12056
12057         Fix link errors on Solaris 8.
12058         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
12059         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
12060
12061 2010-03-19  Jim Meyering  <meyering@redhat.com>
12062
12063         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
12064         The _LIBC implementation of build_range_exp correctly honors the
12065         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
12066         However, the non-_LIBC implementation would ignore that syntax-bit
12067         flag and return REG_ERANGE unconditionally.
12068         This change makes it honor that flag.
12069         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
12070         Make two pointer parameters "const".
12071         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
12072         (parse_bracket_exp): Update caller.
12073
12074         regex.m4: correct the reversed range endpoint ([b-a]) test
12075         * m4/regex.m4: When requiring that [b-a] evoke failure,
12076         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
12077         test pass once again for x86-based systems.
12078
12079 2010-03-19  Bruno Haible  <bruno@clisp.org>
12080
12081         scandir: Fix link error on Solaris 8.
12082         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
12083         macros.
12084
12085 2010-03-19  Bruno Haible  <bruno@clisp.org>
12086
12087         getusershell: Fix documentation.
12088         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
12089         module.
12090         * doc/glibc-functions/setusershell.texi: Likewise.
12091
12092         getusershell: Provide declaration, missing on Solaris 9.
12093         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
12094         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
12095         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
12096         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
12097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12098         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
12099         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
12100         HAVE_GETUSERSHELL.
12101         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
12102
12103 2010-03-19  Bruno Haible  <bruno@clisp.org>
12104
12105         wctype: Provide iswblank function.
12106         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
12107         exists and is fine.
12108         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
12109         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
12110         * tests/test-wctype.c (main): Re-enable the iswblank tests.
12111         * doc/posix-functions/iswblank.texi: Update.
12112
12113 2010-03-19  Bruno Haible  <bruno@clisp.org>
12114
12115         Tests of module 'pty' in C++ mode.
12116         * modules/pty-tests: New file.
12117         * tests/test-pty-c++.cc: New file.
12118         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12119
12120 2010-03-19  Eric Blake  <eblake@redhat.com>
12121
12122         logb: fix documentation
12123         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
12124         1.5 declaration bug.
12125
12126         forkpty, openpty: prefer glibc's const-safe prototype
12127         * lib/forkpty.c (rpl_forkpty): New file.
12128         * lib/openpty.c (rpl_openpty): Likewise.
12129         * modules/forkpty (Files): Distribute it.
12130         * modules/openpty (Files): Likewise.
12131         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
12132         check...
12133         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
12134         replacement for for non-const BSD signature.
12135         * modules/pty (Makefile.am): Substitute witnesses.
12136         * lib/pty.in.h (forkpty, openpty): Declare replacements.
12137         * tests/test-forkpty.c: Update signature check.
12138         * tests/test-openpty.c: Likewise.
12139         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
12140         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12141
12142         forkpty, openpty: split functions into new modules
12143         * modules/pty (Makefile.am): Substitute new witnesses.
12144         (Libraries): Move library detection...
12145         * modules/forkpty: ...into new module.
12146         * modules/openpty: Another new module.
12147         * modules/pty-tests: Rename and split...
12148         * modules/forkpty-tests: ...to this...
12149         * modules/openpty-tests: ...and this.
12150         * tests/test-pty.c: Rename and split...
12151         * tests/test-forkpty.c: ...to this...
12152         * tests/test-openpty.c: ...and this.
12153         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
12154         (gl_PTY): Split library searching...
12155         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
12156         (gl_FORKPTY, gl_OPENPTY): New macros.
12157         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
12158         * NEWS: Mention the split.
12159         * MODULES.html.sh (Misc): Document the modules.
12160         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
12161         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12162
12163         pty: improve replacement header
12164         * lib/pty.in.h: New file.
12165         * modules/pty (Files): Ship it.
12166         (Makefile.am): Always build replacement.
12167         * m4/pty.m4: Rename...
12168         * m4/pty_h.m4: ...to this.
12169         (gl_PTY): Modernize setting of witness macros; update check of
12170         forkpty to take proper advantage of cache.
12171         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
12172
12173         getopt: avoid compiler warning
12174         * lib/getopt.c (attribute_hidden): Remove unused macro.
12175
12176 2010-03-18  Bruno Haible  <bruno@clisp.org>
12177
12178         Fix link errors on Solaris 8.
12179         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
12180         * modules/search-tests (test_search_c___LDADD): Likewise.
12181         * modules/signal-tests (test_signal_c___LDADD): Likewise.
12182         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
12183         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
12184         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
12185         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
12186         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
12187         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
12188
12189 2010-03-18  Bruno Haible  <bruno@clisp.org>
12190
12191         Fix bug introduced on 2010-03-14.
12192         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
12193         (gl_SPAWN_H): Require it.
12194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
12195         Reported by Simon Josefsson.
12196
12197 2010-03-18  Bruno Haible  <bruno@clisp.org>
12198
12199         Fix typo introduced on 2009-12-31.
12200         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
12201         posix_spawn_file_actions_adddup2.
12202
12203 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
12204         and Eric Blake  <eblake@redhat.com>
12205
12206         test-vc-list-files-git: make more robust
12207         * tests/test-vc-list-files-git.sh: Unset problematic environment
12208         variables.  Chain commands together.
12209
12210 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
12211
12212         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
12213         `AC_CHECK_DECL' invocation.
12214
12215 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
12216
12217         * lib/inttostr.c (inttostr): Make sure the invocation of verify
12218         appears before executable statements. Suggested by Petr Sumbera
12219         <Petr.Sumbera@Sun.COM>.
12220
12221 2010-03-14  Bruno Haible  <bruno@clisp.org>
12222
12223         * tests/test-flock.c (test_exclusive): Comment out a test that causes
12224         portability problems. Instead use a simpler test.
12225         (main): Check that invalid arguments are rejected only on Linux.
12226
12227 2010-03-14  Bruno Haible  <bruno@clisp.org>
12228
12229         Fix bug introduced on 2009-12-31.
12230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12231         gl_PREREQ_SYS_H_WINSOCK2 always.
12232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
12233         SYS_SOCKET_H variable.
12234         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
12235         Update comments.
12236         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
12237         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12238         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12239         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12240         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12241
12242 2010-03-14  Bruno Haible  <bruno@clisp.org>
12243
12244         Fix values returned by sinl, cosl.
12245         * lib/trigl.h: Add specification comments.
12246         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
12247         that combines the values from the precomputed table with the values of
12248         the Chebyshev polynomials.
12249
12250 2010-03-14  Bruno Haible  <bruno@clisp.org>
12251
12252         Fix compilation error when modules 'posix_spawn[p]' are not used.
12253         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
12254         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
12255
12256 2010-03-14  Bruno Haible  <bruno@clisp.org>
12257
12258         Fix compilation error on mingw when module 'time_r' is not used.
12259         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
12260         is 1.
12261         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
12262         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12263         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
12264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
12265
12266 2010-03-14  Bruno Haible  <bruno@clisp.org>
12267
12268         Fix compilation error with Sun C.
12269         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
12270         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
12271         instead of GCC specific ULONG_LONG_MAX.
12272         * lib/xstrtoll.c: Likewise.
12273         * lib/xstrtoull.c: Likewise.
12274
12275 2010-03-13  Bruno Haible  <bruno@clisp.org>
12276
12277         Allow the user to disable C++ code and tests.
12278         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
12279         (gl_PROG_ANSI_CXX): Require it.
12280
12281 2010-03-13  Bruno Haible  <bruno@clisp.org>
12282
12283         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
12284         cases.
12285
12286 2010-03-13  Bruno Haible  <bruno@clisp.org>
12287
12288         Test that gnulib does not break the standard C++ headers.
12289         * tests/test-locale-c++2.cc: New file.
12290         * modules/locale-tests (Files): Add it.
12291         (Makefile.am): Compile it for test-locale-c++.
12292         * tests/test-math-c++2.cc: New file.
12293         * modules/math-tests (Files): Add it.
12294         (Makefile.am): Compile it for test-math-c++.
12295         * tests/test-signal-c++2.cc: New file.
12296         * modules/signal-tests (Files): Add it.
12297         (Makefile.am): Compile it for test-signal-c++.
12298         * tests/test-stdio-c++2.cc: New file.
12299         * modules/stdio-tests (Files): Add it.
12300         (Makefile.am): Compile it for test-stdio-c++.
12301         * tests/test-stdlib-c++2.cc: New file.
12302         * modules/stdlib-tests (Files): Add it.
12303         (Makefile.am): Compile it for test-stdlib-c++.
12304         * tests/test-string-c++2.cc: New file.
12305         * modules/string-tests (Files): Add it.
12306         (Makefile.am): Compile it for test-string-c++.
12307         * tests/test-time-c++2.cc: New file.
12308         * modules/time-tests (Files): Add it.
12309         (Makefile.am): Compile it for test-time-c++.
12310         Reported by John W. Eaton <jwe@gnu.org>.
12311
12312 2010-03-13  Bruno Haible  <bruno@clisp.org>
12313
12314         * gnulib-tool (func_usage): Clarify which options are available for
12315         --create-testdir and --create-megatestdir.
12316
12317 2010-03-13  Bruno Haible  <bruno@clisp.org>
12318
12319         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
12320         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
12321         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
12322         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12323         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
12324         when appropriate.
12325         Reported by Jim Meyering.
12326
12327 2010-03-12  Simon Josefsson  <simon@josefsson.org>
12328
12329         * gnulib-tool (func_import): Explain origin of code.
12330
12331 2010-03-12  Bruno Haible  <bruno@clisp.org>
12332
12333         Fix problem with automake's definition of CXXLINK.
12334         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
12335         Reported by Simon Josefsson and Ludovic Courtès.
12336
12337 2010-03-12  Bruno Haible  <bruno@clisp.org>
12338
12339         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
12340         stable releases.
12341
12342 2010-03-11  Bruno Haible  <bruno@clisp.org>
12343
12344         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
12345         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
12346         whether the system provides one variant or multiple variants of the
12347         function.
12348         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
12349         C++ compilers.
12350         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
12351         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
12352         Reported by Jim Meyering.
12353
12354 2010-03-09  Simon Josefsson  <simon@josefsson.org>
12355
12356         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
12357
12358 2010-03-08  Bruno Haible  <bruno@clisp.org>
12359
12360         gnulib-tool: Add support for --libtool in --create-testdir.
12361         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
12362         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
12363
12364 2010-03-08  Eric Blake  <eblake@redhat.com>
12365
12366         gnulib-tool.texi: mention possibility of git submodule
12367         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
12368         submodules.
12369         * doc/.gitignore: Ignore another generated file.
12370
12371 2010-03-08  Karl Berry  <karl@gnu.org>
12372
12373         * doc/gnulib-tool.texi (VCS Issues): Mention third option
12374         of committing gnulib files while skipping others.
12375
12376 2010-03-07  Bruno Haible  <bruno@clisp.org>
12377
12378         Tests of module 'wctype' in C++ mode.
12379         * tests/test-wctype-c++.cc: New file.
12380         * modules/wctype-tests (Files): Add it and tests/signature.h.
12381         (Depends-on): Add ansi-c++-opt.
12382         (Makefile.am): Arrange to compile and run test-wctype-c++.
12383
12384         Tests of module 'wchar' in C++ mode.
12385         * tests/test-wchar-c++.cc: New file.
12386         * modules/wchar-tests (Files): Add it and tests/signature.h.
12387         (Depends-on): Add ansi-c++-opt.
12388         (Makefile.am): Arrange to compile and run test-wchar-c++.
12389         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
12390         gl_MODULE_INDICATOR.
12391
12392         Tests of module 'unistd' in C++ mode.
12393         * tests/test-unistd-c++.cc: New file.
12394         * modules/unistd-tests (Files): Add it and tests/signature.h.
12395         (Depends-on): Add ansi-c++-opt.
12396         (Makefile.am): Arrange to compile and run test-unistd-c++.
12397         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
12398         gl_MODULE_INDICATOR.
12399
12400         Tests of module 'time' in C++ mode.
12401         * tests/test-time-c++.cc: New file.
12402         * modules/time-tests (Files): Add it and tests/signature.h.
12403         (Depends-on): Add ansi-c++-opt.
12404         (Makefile.am): Arrange to compile and run test-time-c++.
12405         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12406
12407         Tests of module 'sys_time' in C++ mode.
12408         * tests/test-sys_time-c++.cc: New file.
12409         * modules/sys_time-tests (Files): Add it and tests/signature.h.
12410         (Depends-on): Add ansi-c++-opt.
12411         (Makefile.am): Arrange to compile and run test-sys_time-c++.
12412         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
12413         gl_MODULE_INDICATOR.
12414
12415         Tests of module 'sys_stat' in C++ mode.
12416         * tests/test-sys_stat-c++.cc: New file.
12417         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
12418         (Depends-on): Add ansi-c++-opt.
12419         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
12420         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
12421         gl_MODULE_INDICATOR.
12422
12423         Tests of module 'sys_socket' in C++ mode.
12424         * tests/test-sys_socket-c++.cc: New file.
12425         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
12426         (Depends-on): Add ansi-c++-opt.
12427         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
12428         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
12429         gl_MODULE_INDICATOR.
12430
12431         Tests of module 'sys_select' in C++ mode.
12432         * tests/test-sys_select-c++.cc: New file.
12433         * modules/sys_select-tests (Files): Add it and tests/signature.h.
12434         (Depends-on): Add ansi-c++-opt.
12435         (Makefile.am): Arrange to compile and run test-sys_select-c++.
12436         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
12437         gl_MODULE_INDICATOR.
12438
12439         Tests of module 'sys_ioctl' in C++ mode.
12440         * tests/test-sys_ioctl-c++.cc: New file.
12441         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
12442         (Depends-on): Add ansi-c++-opt.
12443         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
12444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
12445         gl_MODULE_INDICATOR.
12446
12447         Tests of module 'string' in C++ mode.
12448         * tests/test-string-c++.cc: New file.
12449         * modules/string-tests (Files): Add it and tests/signature.h.
12450         (Depends-on): Add ansi-c++-opt.
12451         (Makefile.am): Arrange to compile and run test-string-c++.
12452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
12453         gl_MODULE_INDICATOR.
12454
12455         Tests of module 'stdlib' in C++ mode.
12456         * tests/test-stdlib-c++.cc: New file.
12457         * modules/stdlib-tests (Files): Add it and tests/signature.h.
12458         (Depends-on): Add ansi-c++-opt.
12459         (Makefile.am): Arrange to compile and run test-stdlib-c++.
12460         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
12461         gl_MODULE_INDICATOR.
12462
12463         Tests of module 'stdio' in C++ mode.
12464         * tests/test-stdio-c++.cc: New file.
12465         * modules/stdio-tests (Files): Add it and tests/signature.h.
12466         (Depends-on): Add ansi-c++-opt.
12467         (Makefile.am): Arrange to compile and run test-stdio-c++.
12468         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
12469         gl_MODULE_INDICATOR.
12470
12471         Tests of module 'spawn' in C++ mode.
12472         * tests/test-spawn-c++.cc: New file.
12473         * modules/spawn-tests (Files): Add it and tests/signature.h.
12474         (Depends-on): Add ansi-c++-opt.
12475         (Makefile.am): Arrange to compile and run test-spawn-c++.
12476         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
12477         gl_MODULE_INDICATOR.
12478
12479         Tests of module 'signal' in C++ mode.
12480         * tests/test-signal-c++.cc: New file.
12481         * modules/signal-tests (Files): Add it and tests/signature.h.
12482         (Depends-on): Add ansi-c++-opt.
12483         (Makefile.am): Arrange to compile and run test-signal-c++.
12484         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
12485         gl_MODULE_INDICATOR.
12486
12487         Tests of module 'search' in C++ mode.
12488         * tests/test-search-c++.cc: New file.
12489         * modules/search-tests (Files): Add it and tests/signature.h.
12490         (Depends-on): Add ansi-c++-opt.
12491         (Makefile.am): Arrange to compile and run test-search-c++.
12492         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
12493         gl_MODULE_INDICATOR.
12494
12495         Tests of module 'math' in C++ mode.
12496         * tests/test-math-c++.cc: New file.
12497         * modules/math-tests (Files): Add it and tests/signature.h.
12498         (Depends-on): Add ansi-c++-opt.
12499         (Makefile.am): Arrange to compile and run test-math-c++.
12500         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12501
12502         Tests of module 'locale' in C++ mode.
12503         * tests/test-locale-c++.cc: New file.
12504         * modules/locale-tests (Files): Add it and tests/signature.h.
12505         (Depends-on): Add ansi-c++-opt.
12506         (Makefile.am): Arrange to compile and run test-locale-c++.
12507         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
12508         gl_MODULE_INDICATOR.
12509
12510         Tests of module 'langinfo' in C++ mode.
12511         * tests/test-langinfo-c++.cc: New file.
12512         * modules/langinfo-tests (Files): Add it and tests/signature.h.
12513         (Depends-on): Add ansi-c++-opt.
12514         (Makefile.am): Arrange to compile and run test-langinfo-c++.
12515         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
12516         gl_MODULE_INDICATOR.
12517
12518         Tests of module 'iconv-h' in C++ mode.
12519         * tests/test-iconv-h-c++.cc: New file.
12520         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
12521         (Depends-on): Add ansi-c++-opt.
12522         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
12523
12524         Tests of module 'glob' in C++ mode.
12525         * tests/test-glob-c++.cc: New file.
12526         * modules/glob-tests (Files): Add it.
12527         (Depends-on): Add ansi-c++-opt.
12528         (Makefile.am): Arrange to compile and run test-glob-c++.
12529
12530         Tests of module 'fcntl-h' in C++ mode.
12531         * tests/test-fcntl-h-c++.cc: New file.
12532         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
12533         (Depends-on): Add ansi-c++-opt.
12534         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
12535         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
12536         gl_MODULE_INDICATOR.
12537
12538         Tests of module 'dirent' in C++ mode.
12539         * tests/test-dirent-c++.cc: New file.
12540         * modules/dirent-tests (Files): Add it and tests/signature.h.
12541         (Depends-on): Add ansi-c++-opt.
12542         (Makefile.am): Arrange to compile and run test-dirent-c++.
12543         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12544         gl_MODULE_INDICATOR.
12545
12546         New module 'ansi-c++-opt'.
12547         * modules/ansi-c++-opt: New file.
12548         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
12549
12550         Document C++ namespace mode.
12551         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
12552
12553         wctype: Avoid #define replacements in C++ mode.
12554         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
12555         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
12556         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
12557         In C++, define a namespaced alias symbol.
12558         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
12559         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
12560         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
12561         rule.
12562
12563         wchar: Avoid #define replacements in C++ mode.
12564         * lib/wchar.in.h: Include c++defs.h.
12565         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
12566         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
12567         symbol.
12568         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
12569         * modules/wchar (Depends-on): Add c++defs.
12570         (Makefile.am): Update wchar.h rule.
12571
12572         unistd: Avoid #define replacements in C++ mode.
12573         * lib/unistd.in.h: Include c++defs.h.
12574         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
12575         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
12576         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
12577         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
12578         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
12579         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
12580         symbol.
12581         (environ): Update.
12582         * modules/unistd (Depends-on): Add c++defs.
12583         (Makefile.am): Update unistd.h rule.
12584
12585         time: Avoid #define replacements in C++ mode.
12586         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
12587         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
12588         define a namespaced alias symbol.
12589         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
12590         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
12591         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
12592         * modules/time (Depends-on): Add c++defs, warn-on-use.
12593         (Makefile.am): Update time.h rule.
12594         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12595         * modules/nanosleep (configure.ac): Likewise.
12596         * modules/strptime (configure.ac): Likewise.
12597         * modules/timegm (configure.ac): Likewise.
12598
12599         sys_time: Avoid #define replacements in C++ mode.
12600         * lib/sys_time.in.h: Include c++defs.h.
12601         (gettimeofday): In C++, define a namespaced alias symbol.
12602         * modules/sys_time (Depends-on): Add c++defs.
12603         (Makefile.am): Update sys/time.h rule.
12604
12605         sys_stat: Avoid #define replacements in C++ mode.
12606         * lib/sys_stat.in.h: Include c++defs.h.
12607         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12608         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
12609         namespaced alias symbol.
12610         In C++, define a namespaced alias symbol.
12611         * modules/sys_stat (Depends-on): Add c++defs.
12612         (Makefile.am): Update sys/stat.h rule.
12613
12614         sys_socket: Avoid #define replacements in C++ mode.
12615         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
12616         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
12617         definitions also when the system has a <sys/socket.h>.
12618         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12619         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
12620         In C++, define a namespaced alias symbol.
12621         * modules/sys_socket (Depends-on): Add c++defs.
12622         (Makefile.am): Update sys/socket.h rule.
12623
12624         sys_select: Avoid #define replacements in C++ mode.
12625         * lib/sys_select.in.h: Include c++defs.h. Enable the function
12626         definitions also when the system has a <sys/select.h>.
12627         (select): In C++, define a namespaced alias symbol.
12628         * modules/sys_select (Depends-on): Add c++defs.
12629         (Makefile.am): Update sys/select.h rule.
12630
12631         sys_ioctl: Avoid #define replacements in C++ mode.
12632         * lib/sys_ioctl.in.h: Include c++defs.h.
12633         (ioctl): In C++, define a namespaced alias symbol.
12634         * modules/sys_ioctl (Depends-on): Add c++defs.
12635         (Makefile.am): Update sys/ioctl.h rule.
12636
12637         string: Avoid #define replacements in C++ mode.
12638         * lib/string.in.h: Include c++defs.h.
12639         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
12640         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12641         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12642         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
12643         strsignal, strverscmp): In C++, define a namespaced alias symbol.
12644         * modules/string (Depends-on): Add c++defs.
12645         (Makefile.am): Update string.h rule.
12646
12647         stdlib: Avoid #define replacements in C++ mode.
12648         * lib/stdlib.in.h: Include c++defs.h.
12649         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
12650         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
12651         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
12652         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
12653         symbol.
12654         * modules/stdlib (Depends-on): Add c++defs.
12655         (Makefile.am): Update stdlib.h rule.
12656
12657         stdio: Avoid #define replacements in C++ mode.
12658         * lib/stdio.in.h: Include c++defs.h.
12659         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
12660         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
12661         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
12662         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
12663         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
12664         namespaced alias symbol.
12665         * modules/stdio (Depends-on): Add c++defs.
12666         (Makefile.am): Update stdio.h rule.
12667
12668         spawn: Avoid #define replacements in C++ mode.
12669         * lib/spawn.in.h: Include c++defs.h.
12670         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12671         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12672         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12673         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12674         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12675         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12676         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12677         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12678         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12679         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12680         In C++, define a namespaced alias symbol.
12681         * modules/spawn (Depends-on): Add c++defs.
12682         (Makefile.am): Update spawn.h rule.
12683
12684         signal: Avoid #define replacements in C++ mode.
12685         * lib/signal.in.h: Include c++defs.h.
12686         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12687         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
12688         namespaced alias symbol.
12689         * modules/signal (Depends-on): Add c++defs.
12690         (Makefile.am): Update signal.h rule.
12691
12692         search: Avoid #define replacements in C++ mode.
12693         * lib/search.in.h: Include c++defs.h.
12694         (_gl_search_compar_fn, _gl_search_action_fn): New types.
12695         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
12696         symbol.
12697         * modules/search (Depends-on): Add c++defs.
12698         (Makefile.am): Update search.h rule.
12699
12700         math: Avoid #define replacements in C++ mode.
12701         * lib/math.in.h: Include c++defs.h.
12702         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
12703         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
12704         trunc, truncl): In C++, define a namespaced alias symbol.
12705         * modules/math (Depends-on): Add c++defs.
12706         (Makefile.am): Update math.h rule.
12707
12708         locale: Avoid #define replacements in C++ mode.
12709         * lib/locale.in.h: Include c++defs.h.
12710         (duplocale): In C++, define a namespaced alias symbol.
12711         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12712         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12713         * modules/locale (Depends-on): Add c++defs.
12714         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12715
12716         langinfo: Avoid #define replacements in C++ mode.
12717         * lib/langinfo.in.h: Include c++defs.h.
12718         (nl_langinfo): In C++, define a namespaced alias symbol.
12719         * modules/langinfo (Depends-on): Add c++defs.
12720         (Makefile.am): Update langinfo.h rule.
12721
12722         iconv-h: Avoid #define replacements in C++ mode.
12723         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12724         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12725         symbol.
12726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12727         whenever iconv is present.
12728         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12729         (Makefile.am): Update iconv.h rule.
12730
12731         glob: Avoid #define replacements in C++ mode.
12732         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12733         (_gl_glob_errfunc_fn): New type.
12734         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12735         symbol.
12736         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12737         (Makefile.am): Update glob.h rule.
12738
12739         fcntl-h: Avoid #define replacements in C++ mode.
12740         * lib/fcntl.in.h: Include c++defs.h.
12741         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12742         * modules/fcntl-h (Depends-on): Add c++defs.
12743         (Makefile.am): Update fcntl.h rule.
12744
12745         dirent: Avoid #define replacements in C++ mode.
12746         * lib/dirent.in.h: Include c++defs.h.
12747         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12748         namespaced alias symbol.
12749         (dirfd): Update declaration.
12750         * modules/dirent (Depends-on): Add c++defs.
12751         (Makefile.am): Update dirent.h rule.
12752
12753         ctype: Make it usable in C++ code.
12754         * lib/ctype.in.h: Include c++defs.h.
12755         (isblank): Declare as extern "C".
12756         * modules/ctype (Depends-on): Add c++defs.
12757         (Makefile.am): Update ctype.h rule.
12758
12759         New module 'c++defs'.
12760         * modules/c++defs: New file.
12761         * build-aux/c++defs.h: New file.
12762         Reported by John W. Eaton <jwe@gnu.org>.
12763
12764 2010-03-07  Bruno Haible  <bruno@clisp.org>
12765
12766         logb: Provide missing declaration for Cygwin.
12767         * lib/math.in.h (logb): New declaration.
12768         * m4/logb.m4: New file.
12769         * modules/logb (Files): Add m4/logb.m4.
12770         (Depends-on): Add math.
12771         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12772         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12774         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12775         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12776
12777 2010-03-07  Bruno Haible  <bruno@clisp.org>
12778
12779         Fix test-cond link error.
12780         * tests/test-cond.c: Include <stdio.h>.
12781
12782 2010-03-07  Bruno Haible  <bruno@clisp.org>
12783
12784         Fix test-dirent-safer link error.
12785         * modules/dirent-safer-tests (Makefile.am): Define
12786         test_dirent_safer_LDADD.
12787
12788 2010-03-07  Bruno Haible  <bruno@clisp.org>
12789
12790         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12791         among default module list.
12792
12793 2010-03-07  Bruno Haible  <bruno@clisp.org>
12794
12795         Fix link error on platforms with GNU libiconv.
12796         * modules/unistr/u8-strcoll-tests (Makefile): Define
12797         test_u8_strcoll_LDADD.
12798         * modules/unistr/u16-strcoll-tests (Makefile): Define
12799         test_u16_strcoll_LDADD.
12800         * modules/unistr/u32-strcoll-tests (Makefile): Define
12801         test_u32_strcoll_LDADD.
12802
12803 2010-03-07  Bruno Haible  <bruno@clisp.org>
12804
12805         Use POSIX declarations for socket functions.
12806         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12807         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12808         rpl_sendto): Change declaration to match POSIX.
12809         * lib/connect.c (rpl_connect): Likewise.
12810         * lib/accept.c (rpl_accept): Likewise.
12811         * lib/bind.c (rpl_bind): Likewise.
12812         * lib/getpeername.c (rpl_getpeername): Likewise.
12813         * lib/getsockname.c (rpl_getsockname): Likewise.
12814         * lib/recv.c (rpl_recv): Likewise.
12815         * lib/send.c (rpl_send): Likewise.
12816         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12817         * lib/sendto.c (rpl_sendto): Likewise.
12818
12819 2010-03-06  Bruno Haible  <bruno@clisp.org>
12820
12821         Clarify access, euidaccess, faccessat.
12822         * doc/posix-functions/faccessat.texi: Mention security problem under
12823         "Other problems", not "Portability problems".
12824         * doc/posix-functions/access.texi: Likewise. Mention a related security
12825         problem.
12826         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12827         * lib/euidaccess.c: Add comments about platforms.
12828         * lib/unistd.in.h (access, euidaccess): Add warnings.
12829
12830 2010-03-07  Bruno Haible  <bruno@clisp.org>
12831
12832         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12833         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12834         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12835         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12836         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12837         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12838         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12839         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12840         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12842         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12843         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12844         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12845         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12846         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12847         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12848         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12849         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12850         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12851         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12852         Likewise.
12853         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12854         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12855         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12856         Likewise.
12857         * tests/test-spawn.c (main): Make it work when
12858         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12859
12860 2010-03-07  Bruno Haible  <bruno@clisp.org>
12861
12862         Fix incorrect Makefile.am generation in German locale.
12863         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12864         Execute sed command with character range in C locale.
12865
12866 2010-03-06  Bruno Haible  <bruno@clisp.org>
12867
12868         Tests for module 'iconv-h'.
12869         * modules/iconv-h-tests: New file.
12870         * tests/test-iconv-h.c: New file.
12871
12872         New module 'iconv-h'.
12873         * modules/iconv-h: New file.
12874         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12875         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12876         (configure.ac): Remove gl_ICONV_H.
12877         (Makefile.am): Remove rule for iconv.h.
12878
12879 2010-03-06  Bruno Haible  <bruno@clisp.org>
12880
12881         More consistent naming of *.m4 files.
12882         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12883         * modules/wctype (Files): Update.
12884
12885         More consistent naming of *.m4 files.
12886         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12887         * modules/wchar (Files): Update.
12888
12889 2010-03-06  Jim Meyering  <meyering@redhat.com>
12890
12891         euidaccess: relax license to LGPLv2+
12892         * modules/euidaccess (License): Relax to LGPLv2+.
12893
12894 2010-03-06  Bruno Haible  <bruno@clisp.org>
12895
12896         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12897         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12898         (Makefile.am): Augment lib_SOURCES instead.
12899
12900 2010-03-04  Jim Meyering  <meyering@redhat.com>
12901
12902         utime: remove obsolete module
12903         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12904         unnecessary for years, and has been marked as obsolete for 10 months.
12905         * modules/utime: Remove file.
12906         * lib/utime.c: Remove file.
12907         * m4/utime.m4: Remove file.
12908         * m4/utimes-null.m4: Remove file.
12909         * doc/posix-functions/utime.texi (utime): Remove reference to
12910         the module.  Move the sole "fixed by gnulib" item into the
12911         "problems not fixed by Gnulib" list.
12912         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12913
12914 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12915
12916         * modules/exit (License): Relax license to LGPLv2+.
12917         (Status): Mark as obsolete.
12918         * NEWS: Mention deprecated 'exit' module.
12919         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12920         of now obsolete 'exit'.
12921
12922 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12923
12924         fts-lgpl: remove unused module
12925         * modules/fts-lgpl: Remove.
12926         * MODULES.html.sh (func_all_modules): Adjust.
12927         * check-module (find_included_lib_files): Adjust.
12928         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12929
12930 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12931
12932         copy-acl: enhance Solaris ACL error handling
12933         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12934         * lib/set-mode-acl.c (qset_acl): Likewise.
12935
12936 2010-03-02  Bruno Haible  <bruno@clisp.org>
12937
12938         spawn: Don't override the system defined values on FreeBSD 8.
12939         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12940         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12941         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12942         if HAVE_POSIX_SPAWN is 1.
12943         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12944
12945 2010-03-01  Bruno Haible  <bruno@clisp.org>
12946
12947         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12948         regarding Automake.
12949
12950 2010-02-25  Bruno Haible  <bruno@clisp.org>
12951
12952         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12953         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12954         setting, not afterwards.
12955         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12956
12957 2010-02-24  Eric Blake  <eblake@redhat.com>
12958
12959         bootstrap, git-version-gen: use timestamp
12960         * build-aux/git-version-gen (scriptversion): Force UTC.
12961         * build-aux/bootstrap (scriptversion): New variable.
12962
12963         bootstrap: allow older git
12964         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12965         older than 1.6.4.  Requested by the libvirt project.
12966
12967 2010-02-23  Eric Blake  <eblake@redhat.com>
12968
12969         warn-on-use: work with old autoconf
12970         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
12971         AS_VAR semantics of autoconf 2.60.
12972         Reported by Bruno Haible.
12973
12974         bootstrap: improve some comments
12975         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
12976         clarification comments.
12977
12978         gettimeofday: provide correct function
12979         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
12980         when replacement is declared, otherwise provide gettimeofday.
12981         Reported by Michael Goffioul.
12982
12983 2010-02-23  Jim Meyering  <meyering@redhat.com>
12984
12985         lib-ignore: relax license to "unlimited", not LGPLv2+
12986         * modules/lib-ignore (License): Relax to "unlimited".
12987
12988 2010-02-23  Jim Meyering  <meyering@redhat.com>
12989
12990         lib-ignore: relax license to LGPLv2+
12991         * modules/lib-ignore (License): Relax to LGPLv2+.
12992
12993 2010-02-22  Eric Blake  <eblake@redhat.com>
12994
12995         lseek: avoid bash 3.2 broken pipe bug
12996         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
12997         warning from bash 3.2.
12998         Reported by Ben Pfaff, with analysis from Bruno Haible.
12999
13000         bootstrap: support non-FSF copyright holder
13001         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
13002         bootstrap.conf override of COPYRIGHT_HOLDER.
13003         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
13004
13005         bootstrap: interoperate with gettext 0.14.1
13006         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
13007
13008         bootstrap: allow for alternate submodule location
13009         * build-aux/bootstrap (gnulib_path): New variable; use instead of
13010         hardcoding submodule location.
13011         (gnulib_mk): Allow direct use of Makefile.am.
13012
13013         bootstrap: use GNULIB_SRCDIR to reduce disk usage
13014         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
13015         rather than reconfiguring where the submodule points.
13016
13017         gettimeofday: restore support for platforms that lack function
13018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
13019         replacement if function is missing.
13020         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
13021         * modules/sys_time (Makefile.am): Substitute it.
13022         * lib/sys_time.in.h (gettimeofday): Check it.
13023         Reported by Michael Goffioul.
13024
13025 2010-02-21  Bruno Haible  <bruno@clisp.org>
13026
13027         * lib/stdio.in.h (obstack_printf): Fix typo.
13028
13029 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
13030
13031         vc-list-files: use bzr ls's -R option
13032         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
13033         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
13034
13035 2010-02-21  Jim Meyering  <meyering@redhat.com>
13036
13037         init.sh: fix EXEEXT shims to work also for names like test-prog
13038         * tests/init.sh: Re-exec a better shell, when needed.
13039         If the current shell lacks support for posix $(...), an init.sh-using
13040         test will now try to find a shell that supports that.  If EXEEXT is
13041         nonempty, we also require support for hyphen-in-alias-name and shell
13042         substitutions like ${var#glob}.  Failure to find such a shell results
13043         in a skipped test.
13044
13045 2010-02-21  Bruno Haible  <bruno@clisp.org>
13046
13047         Really work around around "broken pipe" error message from bash 3.2.
13048         * gnulib-tool (func_reset_sigpipe): Remove function.
13049         (echo): In bash 3.2, define to a function that uses printf.
13050         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
13051
13052 2010-02-20  Bruno Haible  <bruno@clisp.org>
13053
13054         Restore support for automake 1.9.6 with autoconf 2.61.
13055         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
13056         Reported by James Youngman <jay@gnu.org>.
13057
13058 2010-02-20  Bruno Haible  <bruno@clisp.org>
13059
13060         Improve *printf warning condition.
13061         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
13062         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
13063         and the function is overridden due to SIGPIPE emulation.
13064
13065 2010-02-20  Bruno Haible  <bruno@clisp.org>
13066
13067         * lib/stdio.in.h: Tweak comments.
13068
13069 2010-02-19  Bruno Haible  <bruno@clisp.org>
13070
13071         Make it easier to find modules. New gnulib-tool option '--find'.
13072         * gnulib-tool: New option --find.
13073         (func_usage): Document it.
13074         (func_sanitize_modulelist): New function, extracted from
13075         func_all_modules.
13076         (func_all_modules): Invoke it.
13077         * doc/gnulib-tool.texi (Which modules?): New node.
13078
13079 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
13080
13081         * lib/sys_select.in.h: Provide select replacement even if
13082         sys/select.h exists on a system, for Interix.
13083
13084 2010-02-18  Jim Meyering  <meyering@redhat.com>
13085
13086         init.sh: don't use $(...) just yet
13087         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
13088         to accommodate e.g., Solaris' /bin/sh.
13089
13090 2010-02-17  Bruno Haible  <bruno@clisp.org>
13091
13092         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
13093         Reported by Ludovic Courtès <ludo@gnu.org>.
13094
13095 2010-02-16  Simon Josefsson  <simon@josefsson.org>
13096
13097         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
13098         linking with -lintl.
13099
13100 2010-02-17  Simon Josefsson  <simon@josefsson.org>
13101
13102         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
13103         if not provided by the system's netdb.h.  Reported by
13104         ludo@gnu.org (Ludovic Courtès).
13105
13106 2010-02-15  Jim Meyering  <meyering@redhat.com>
13107
13108         init.sh: improve portability and efficiency
13109         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
13110         "dummy" in a for loop.
13111         Use '!', not '^' to select the complement of a character set used
13112         in a "case" statement.
13113         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
13114         Suggestions from Eric Blake.
13115
13116         init.sh: automatically accommodate programs with the .exe suffix
13117         Automatically arrange for an invocation of "prog" to execute the
13118         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
13119         may use the simpler "prog", yet still work when built on a system
13120         that requires specifying the added suffix.
13121         Do this by constructing a function named "prog" that invokes
13122         "prog.exe" for each .exe file in selected directories.
13123         * tests/init.sh (find_exe_basenames_): New function.
13124         (create_exe_shim_functions_): New function.
13125         (path_prepend_): Use it.
13126
13127         maint.mk: mark syntax-check sc_*.m rules as .PHONY
13128         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
13129         "make -t syntax-check" doesn't create a ton of sc_*.m files.
13130
13131 2010-02-14  Jim Meyering  <meyering@redhat.com>
13132
13133         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
13134         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
13135         (sc_prohibit_hash_pjw_without_use): New rule.
13136
13137         maint.mk: allow the default upload destination dir to be overridden
13138         * top/maint.mk (upload_dest_dir_): Define with a default that
13139         preserves the status quo.
13140         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
13141         Reported by Peter Simons.
13142
13143         maint.mk: prohibit inclusion of "hash.h" without_use
13144         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
13145
13146 2010-02-10  Jim Meyering  <meyering@redhat.com>
13147
13148         maint.mk: prohibit inclusion of "ignore-value.h" without_use
13149         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
13150
13151 2010-02-09  Eric Blake  <ebb9@byu.net>
13152         and Bruno Haible  <bruno@clisp.org>
13153
13154         obstack-printf-posix: ensure declaration
13155         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
13156         extracted from gl_FUNC_OBSTACK_PRINTF.
13157         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
13158         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13159         Likewise.
13160         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
13161         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
13162         0.
13163
13164 2010-02-08  Bruno Haible  <bruno@clisp.org>
13165
13166         gnulib-tool: Fix typo in 2010-02-07 commit.
13167         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
13168         Reported by Eric Blake.
13169
13170 2010-02-07  Bruno Haible  <bruno@clisp.org>
13171
13172         gnulib-tool: Fix up caching patches.
13173         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
13174         option --no-cache. Use associative arrays when supported by the shell.
13175         (sed_comments): New variable.
13176         (modcache): Renamed from do_cache.
13177         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
13178         abbreviate unnecessarily.
13179         (have_associative): New variable.
13180         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
13181         way also for ksh and zsh.
13182         (func_init_sed_convert_to_cache_statements): New function, extracted
13183         from func_cache_lookup_module. Add support for associative arrays.
13184         Don't set the c_MODULE_cached variable here. Ignore all lines before
13185         the first field header. Remove only the final newline, not all trailing
13186         newlines. Support empty fields correctly. Limit the use of 'eval' to
13187         assignments.
13188         (func_get_description, func_get_status, func_get_notice,
13189         func_get_applicability, func_get_filelist, func_get_dependencies,
13190         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
13191         func_get_automake_snippet, func_get_include_directive,
13192         func_get_link_directive, func_get_license, func_get_maintainer):
13193         Update documentation. List the unoptimized code first. Add support for
13194         associative arrays. Limit the use of 'eval' to assignments.
13195         (func_get_applicability): Undo stylistic pessimisations.
13196         (func_get_automake_snippet, func_get_include_directive): Reduce code
13197         duplication.
13198         (func_modules_transitive_closure, func_modules_add_dummy,
13199         func_modules_notice, func_modules_to_filelist, func_add_file,
13200         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
13201         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
13202         func_create_testdir, func_create_megatestdir): Update documentation.
13203
13204 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13205
13206         * gnulib-tool (func_cache_lookup_module): Store the module name
13207         belonging to the cache variable; error out if two different
13208         module names map to the same cache variable name.
13209
13210 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13211
13212         gnulib-tool: Make caching optional.
13213         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
13214         Update matching short versions of --no-changelog.
13215         (func_usage): Update.
13216         (sed_extract_cache_prog): Renamed from ...
13217         (sed_extract_prog): ... this; revert to old extraction script.
13218         (func_get_description, func_get_status)
13219         (func_get_notice, func_get_applicability, func_get_filelist)
13220         (func_get_dependencies, func_get_autoconf_early_snippet)
13221         (func_get_autoconf_snippet, func_get_automake_snippet)
13222         (func_get_include_directive, func_get_link_directive)
13223         (func_get_license, func_get_maintainer): If $do_cache is false,
13224         use old, non-caching extraction scripts.
13225         Suggestion by Bruno Haible.
13226
13227 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13228
13229         gnulib-tool: cache module metainformation.
13230         * gnulib-tool (sed_extract_prog): Match newline before each
13231         header, and rewrite header to a shell variable suffix.
13232         (func_cache_var, func_cache_lookup_module): New functions,
13233         to turn a module name into a cache variable prefix, and to
13234         look up and cache module metainformation.
13235         (func_get_description, func_get_status)
13236         (func_get_notice, func_get_applicability, func_get_filelist)
13237         (func_get_dependencies, func_get_autoconf_early_snippet)
13238         (func_get_autoconf_snippet, func_get_automake_snippet)
13239         (func_get_include_directive, func_get_link_directive)
13240         (func_get_license, func_get_maintainer): Use
13241         func_cache_lookup_module.
13242
13243 2010-02-07  Bruno Haible  <bruno@clisp.org>
13244
13245         fnctl: Fix missing dependency.
13246         * modules/fcntl (Depends-on): Add getdtablesize.
13247         Reported by John W. Eaton <jwe@gnu.org>.
13248
13249 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13250
13251         Argp: fix recognition of short alias options.
13252
13253         * lib/argp-parse.c (convert_options): Fix improper use of
13254         `|' between character values.
13255         * tests/test-argp.c (group1_option): New alias option
13256         --read (-r).
13257         (group1_parser): Special handling for 'r'.
13258         (test15): New test case.
13259         (test_fun): Add test15.
13260         * tests/test-argp-2.sh: Update expected --help and --usage
13261         outputs.
13262
13263 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13264
13265         * tests/test-argp.c: Fix indentation.
13266
13267 2010-02-04  Eric Blake  <ebb9@byu.net>
13268
13269         gettimeofday: expose type of second argument
13270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
13271         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
13272         * tests/test-gettimeofday.c: Use it to silence warning.
13273         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
13274         the issue.
13275
13276 2010-02-03  Jim Meyering  <meyering@redhat.com>
13277
13278         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
13279         * lib/regcomp.c (TYPE_SIGNED): Define.
13280         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
13281
13282         regcomp.c: avoid a new -Wshadow warning
13283         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
13284
13285 2010-02-01  Jim Meyering  <meyering@redhat.com>
13286
13287         removing useless parentheses in cpp #define directives
13288         For motivation, see commit c0221df4, "define STREQ(a,b)
13289         consistently, removing useless parentheses"
13290         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
13291         * lib/mountlist.c (MNT_IGNORE): Likewise.
13292         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
13293
13294 2010-02-01  Eric Blake  <ebb9@byu.net>
13295
13296         sys_time: use link-warning
13297         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
13298         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
13299         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
13300         * modules/sys_time (Depends-on): Add warn-on-use.
13301         (Makefile.am): Always build replacement.
13302         (configure.ac): Update substitutions.
13303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
13304         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
13305         bother with SYS_TIME_H.
13306         * modules/gettimeofday (configure.ac): Declare indicator.
13307         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
13308         in use.
13309
13310         closein-tests: silence compiler warning
13311         * tests/test-closein.c (main): Ignore fread result.
13312         * modules/closein-tests (Depends-on): Add ignore-value.
13313
13314         tests: silence warning about system return
13315         * tests/test-areadlink-with-size.c (main): Ignore system result.
13316         * tests/test-areadlink.c (main): Likewise.
13317         * tests/test-areadlinkat-with-size.c (main): Likewise.
13318         * tests/test-areadlinkat.c (main): Likewise.
13319         * tests/test-canonicalize-lgpl.c (main): Likewise.
13320         * tests/test-canonicalize.c (main): Likewise.
13321         * tests/test-chown.c (main): Likewise.
13322         * tests/test-fchownat.c (main): Likewise.
13323         * tests/test-fdutimensat.c (main): Likewise.
13324         * tests/test-fstatat.c (main): Likewise.
13325         * tests/test-futimens.c (main): Likewise.
13326         * tests/test-lchown.c (main): Likewise.
13327         * tests/test-link.c (main): Likewise.
13328         * tests/test-linkat.c (main): Likewise.
13329         * tests/test-lstat.c (main): Likewise.
13330         * tests/test-mkdir.c (main): Likewise.
13331         * tests/test-mkdirat.c (main): Likewise.
13332         * tests/test-mkfifo.c (main): Likewise.
13333         * tests/test-mkfifoat.c (main): Likewise.
13334         * tests/test-mknod.c (main): Likewise.
13335         * tests/test-readlink.c (main): Likewise.
13336         * tests/test-remove.c (main): Likewise.
13337         * tests/test-rename.c (main): Likewise.
13338         * tests/test-renameat.c (main): Likewise.
13339         * tests/test-rmdir.c (main): Likewise.
13340         * tests/test-symlink.c (main): Likewise.
13341         * tests/test-symlinkat.c (main): Likewise.
13342         * tests/test-unlink.c (main): Likewise.
13343         * tests/test-unlinkat.c (main): Likewise.
13344         * tests/test-utimens.c (main): Likewise.
13345         * tests/test-utimensat.c (main): Likewise.
13346         * modules/areadlink-tests (Depends-on): Add ignore-value.
13347         * modules/areadlink-with-size-tests (Depends-on): Likewise.
13348         * modules/areadlinkat-tests (Depends-on): Likewise.
13349         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
13350         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13351         * modules/canonicalize-tests (Depends-on): Likewise.
13352         * modules/chown-tests (Depends-on): Likewise.
13353         * modules/fdutimensat-tests (Depends-on): Likewise.
13354         * modules/futimens-tests (Depends-on): Likewise.
13355         * modules/lchown-tests (Depends-on): Likewise.
13356         * modules/link-tests (Depends-on): Likewise.
13357         * modules/linkat-tests (Depends-on): Likewise.
13358         * modules/lstat-tests (Depends-on): Likewise.
13359         * modules/mkdir-tests (Depends-on): Likewise.
13360         * modules/mkfifo-tests (Depends-on): Likewise.
13361         * modules/mkfifoat-tests (Depends-on): Likewise.
13362         * modules/mknod-tests (Depends-on): Likewise.
13363         * modules/openat-tests (Depends-on): Likewise.
13364         * modules/readlink-tests (Depends-on): Likewise.
13365         * modules/remove-tests (Depends-on): Likewise.
13366         * modules/rename-tests (Depends-on): Likewise.
13367         * modules/renameat-tests (Depends-on): Likewise.
13368         * modules/rmdir-tests (Depends-on): Likewise.
13369         * modules/symlink-tests (Depends-on): Likewise.
13370         * modules/symlinkat-tests (Depends-on): Likewise.
13371         * modules/unlink-tests (Depends-on): Likewise.
13372         * modules/utimens-tests (Depends-on): Likewise.
13373         * modules/utimensat-tests (Depends-on): Likewise.
13374
13375 2010-01-31  Bruno Haible  <bruno@clisp.org>
13376
13377         Perform the same test for many <math.h> functions.
13378         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
13379         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
13380         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
13381         of gl_MATHFUNC.
13382         * modules/acos (configure.ac): Likewise.
13383         * modules/asin (configure.ac): Likewise.
13384         * modules/atan (configure.ac): Likewise.
13385         * modules/atan2 (configure.ac): Likewise.
13386         * modules/cbrt (configure.ac): Likewise.
13387         * modules/copysign (configure.ac): Likewise.
13388         * modules/cos (configure.ac): Likewise.
13389         * modules/cosh (configure.ac): Likewise.
13390         * modules/erf (configure.ac): Likewise.
13391         * modules/erfc (configure.ac): Likewise.
13392         * modules/exp (configure.ac): Likewise.
13393         * modules/fmod (configure.ac): Likewise.
13394         * modules/hypot (configure.ac): Likewise.
13395         * modules/j0 (configure.ac): Likewise.
13396         * modules/j1 (configure.ac): Likewise.
13397         * modules/jn (configure.ac): Likewise.
13398         * modules/lgamma (configure.ac): Likewise.
13399         * modules/log (configure.ac): Likewise.
13400         * modules/log10 (configure.ac): Likewise.
13401         * modules/log1p (configure.ac): Likewise.
13402         * modules/pow (configure.ac): Likewise.
13403         * modules/remainder (configure.ac): Likewise.
13404         * modules/sin (configure.ac): Likewise.
13405         * modules/sinh (configure.ac): Likewise.
13406         * modules/tan (configure.ac): Likewise.
13407         * modules/tanh (configure.ac): Likewise.
13408         * modules/y0 (configure.ac): Likewise.
13409         * modules/y1 (configure.ac): Likewise.
13410         * modules/yn (configure.ac): Likewise.
13411         Suggested by Paolo Bonzini.
13412
13413 2010-01-31  Bruno Haible  <bruno@clisp.org>
13414
13415         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
13416
13417 2010-01-31  Bruno Haible  <bruno@clisp.org>
13418
13419         Work around getdelim() bug on FreeBSD 8.0.
13420         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
13421         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
13422         not work.
13423         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
13424         is 1.
13425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
13426         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
13427         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
13428         a non-zero size.
13429         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
13430
13431 2010-01-31  Bruno Haible  <bruno@clisp.org>
13432
13433         Work around getline() bug on FreeBSD 8.0.
13434         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
13435         and a non-zero size.
13436         * tests/test-getline.c (main): Likewise.
13437         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
13438         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
13439
13440 2010-01-28  Eric Blake  <ebb9@byu.net>
13441
13442         regex: fix build failure
13443         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
13444         platforms.
13445
13446 2010-01-28  Jim Meyering  <meyering@redhat.com>
13447
13448         regex: do not ignore memory allocation failure
13449         * lib/regex_internal.c (create_cd_newstate): Detect
13450         re_node_set_init_copy failure.   Extracted from glibc commit
13451         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13452
13453         regex: sync more white-space changes from libc
13454         * lib/regex_internal.c: White-space only changes.
13455         * lib/regexec.c: Likewise.
13456
13457         regex: add many uses of __attribute_warn_unused_result__
13458         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
13459         * lib/regexec.c: Likewise.
13460         Extracted from a messy glibc commit.
13461
13462         regcomp.c: spelling and merge-artifact from glibc
13463         * lib/regcomp.c: Merge remainder of glibc's
13464         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13465
13466         regcomp.c: sync white-space changes from glibc
13467         * lib/regcomp.c: Merge to accommodate white space
13468         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13469
13470         regcomp.c: do not ignore internal return values
13471         * lib/regcomp.c: Do not ignore internal return values.
13472         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
13473         but without its white-space changes and spelling fixes.
13474
13475         regex_internal.h: define __attribute_warn_unused_result__
13476         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
13477
13478         maint: add a syntax-check rule to check for vulnerable Makefile.in
13479         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
13480
13481 2010-01-27  Jim Meyering  <meyering@redhat.com>
13482
13483         ncftpput-ftp: clean up spaces
13484         * build-aux/ncftpput-ftp: Make Copyright line consistent.
13485         Remove trailing blanks.
13486
13487 2010-01-27  Simon Josefsson  <simon@josefsson.org>
13488
13489         * build-aux/git-version-gen: Fix copyright statement.
13490         * build-aux/gnupload: Likewise.
13491         * tests/test-arcfour.c: Likewise.
13492         * tests/test-arctwo.c: Likewise.
13493         * tests/test-count-one-bits.c: Likewise.
13494         * tests/test-crc.c: Likewise.
13495         * tests/test-des.c: Likewise.
13496         * tests/test-gc-arcfour.c: Likewise.
13497         * tests/test-gc-arctwo.c: Likewise.
13498         * tests/test-gc-des.c: Likewise.
13499         * tests/test-gc-hmac-md5.c: Likewise.
13500         * tests/test-gc-hmac-sha1.c: Likewise.
13501         * tests/test-gc-md2.c: Likewise.
13502         * tests/test-gc-md4.c: Likewise.
13503         * tests/test-gc-md5.c: Likewise.
13504         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13505         * tests/test-gc-rijndael.c: Likewise.
13506         * tests/test-gc-sha1.c: Likewise.
13507         * tests/test-gc.c: Likewise.
13508         * tests/test-gethostname.c: Likewise.
13509         * tests/test-gettimeofday.c: Likewise.
13510         * tests/test-hash.c: Likewise.
13511         * tests/test-hmac-md5.c: Likewise.
13512         * tests/test-hmac-sha1.c: Likewise.
13513         * tests/test-md2.c: Likewise.
13514         * tests/test-md4.c: Likewise.
13515         * tests/test-md5.c: Likewise.
13516         * tests/test-memchr.c: Likewise.
13517         * tests/test-memchr2.c: Likewise.
13518         * tests/test-memcmp.c: Likewise.
13519         * tests/test-memmem.c: Likewise.
13520         * tests/test-memrchr.c: Likewise.
13521         * tests/test-rawmemchr.c: Likewise.
13522         * tests/test-read-file.c: Likewise.
13523         * tests/test-rijndael.c: Likewise.
13524         * tests/test-sockets.c: Likewise.
13525         * tests/test-strchrnul.c: Likewise.
13526         * tests/test-strstr.c: Likewise.
13527         * tests/test-strtod.c: Likewise.
13528         * build-aux/ncftpput-ftp: Likewise.
13529
13530 2010-01-26  Eric Blake  <ebb9@byu.net>
13531
13532         ignore-value: update recommended header name
13533         * modules/ignore-value (Include): Only use <> for headers that
13534         exist in glibc.
13535
13536 2010-01-26  Jim Meyering  <meyering@redhat.com>
13537
13538         test-userspec.c: avoid compiler warnings
13539         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
13540         and "initialization discards qualifiers..." warnings.
13541         Put the first "uid" in its own scope, and make char* members "const".
13542
13543 2010-01-25  Bruno Haible  <bruno@clisp.org>
13544
13545         gnulib-tool: Make warning diagnostics consistent.
13546         * gnulib-tool (func_warning): New function.
13547         Use it everywhere where gnulib-tool produces output to stderr and it is
13548         not a fatal error.
13549
13550 2010-01-25  Bruno Haible  <bruno@clisp.org>
13551
13552         Fix test dependencies.
13553         * modules/xstrtol-tests (Depends-on): Add inttypes.
13554         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
13555
13556 2010-01-25 Pádraig Brady <P@draigBrady.com>
13557
13558         syntax-check: detect incorrect boolean macro values in config.h
13559         * modules/maintainer-makefile (configure.ac): Parameterize the location
13560         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
13561         The logic is from Eric Blake and the location indicated by Jim Meyering.
13562         Note the more natural CONFIG_HEADER name is prohibited by automake
13563         for backwards compatibility reasons.
13564         * top/maint.mk (sc_Wundef_boolean): New rule.
13565
13566 2010-01-25  Jim Meyering  <meyering@redhat.com>
13567
13568         bootstrap: detect MacOS 10.6's shasum, too
13569         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
13570         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
13571
13572 2010-01-23  Jim Meyering  <meyering@redhat.com>
13573
13574         xstrtoll: new module
13575         * modules/xstrtoll: New file.
13576         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
13577         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
13578         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
13579         ./configure fails if you use this module and lack "long long".
13580         * modules/xstrtoll-tests: New module.
13581         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
13582         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
13583         new init.sh-based test framework.
13584
13585 2010-01-24  Bruno Haible  <bruno@clisp.org>
13586
13587         Tests for module 'yn'.
13588         * modules/yn-tests: New file.
13589         * tests/test-yn.c: New file.
13590
13591         Tests for module 'y1'.
13592         * modules/y1-tests: New file.
13593         * tests/test-y1.c: New file.
13594
13595         Tests for module 'y0'.
13596         * modules/y0-tests: New file.
13597         * tests/test-y0.c: New file.
13598
13599         Tests for module 'tanh'.
13600         * modules/tanh-tests: New file.
13601         * tests/test-tanh.c: New file.
13602
13603         Tests for module 'tan'.
13604         * modules/tan-tests: New file.
13605         * tests/test-tan.c: New file.
13606
13607         Tests for module 'sqrt'.
13608         * modules/sqrt-tests: New file.
13609         * tests/test-sqrt.c: New file.
13610
13611         Tests for module 'sinh'.
13612         * modules/sinh-tests: New file.
13613         * tests/test-sinh.c: New file.
13614
13615         Tests for module 'sin'.
13616         * modules/sin-tests: New file.
13617         * tests/test-sin.c: New file.
13618
13619         Tests for module 'rint'.
13620         * modules/rint-tests: New file.
13621         * tests/test-rint.c: New file.
13622
13623         Tests for module 'remainder'.
13624         * modules/remainder-tests: New file.
13625         * tests/test-remainder.c: New file.
13626
13627         Tests for module 'pow'.
13628         * modules/pow-tests: New file.
13629         * tests/test-pow.c: New file.
13630
13631         Tests for module 'nextafter'.
13632         * modules/nextafter-tests: New file.
13633         * tests/test-nextafter.c: New file.
13634
13635         Tests for module 'modf'.
13636         * modules/modf-tests: New file.
13637         * tests/test-modf.c: New file.
13638
13639         Tests for module 'logb'.
13640         * modules/logb-tests: New file.
13641         * tests/test-logb.c: New file.
13642
13643         Tests for module 'log1p'.
13644         * modules/log1p-tests: New file.
13645         * tests/test-log1p.c: New file.
13646
13647         Tests for module 'log10'.
13648         * modules/log10-tests: New file.
13649         * tests/test-log10.c: New file.
13650
13651         Tests for module 'log'.
13652         * modules/log-tests: New file.
13653         * tests/test-log.c: New file.
13654
13655         Tests for module 'lgamma'.
13656         * modules/lgamma-tests: New file.
13657         * tests/test-lgamma.c: New file.
13658
13659         Tests for module 'ldexp'.
13660         * modules/ldexp-tests: New file.
13661         * tests/test-ldexp.c: New file.
13662
13663         Tests for module 'jn'.
13664         * modules/jn-tests: New file.
13665         * tests/test-jn.c: New file.
13666
13667         Tests for module 'j1'.
13668         * modules/j1-tests: New file.
13669         * tests/test-j1.c: New file.
13670
13671         Tests for module 'j0'.
13672         * modules/j0-tests: New file.
13673         * tests/test-j0.c: New file.
13674
13675         Tests for module 'hypot'.
13676         * modules/hypot-tests: New file.
13677         * tests/test-hypot.c: New file.
13678
13679         Tests for module 'fmod'.
13680         * modules/fmod-tests: New file.
13681         * tests/test-fmod.c: New file.
13682
13683         Tests for module 'fabs'.
13684         * modules/fabs-tests: New file.
13685         * tests/test-fabs.c: New file.
13686
13687         Tests for module 'exp'.
13688         * modules/exp-tests: New file.
13689         * tests/test-exp.c: New file.
13690
13691         Tests for module 'erfc'.
13692         * modules/erfc-tests: New file.
13693         * tests/test-erfc.c: New file.
13694
13695         Tests for module 'erf'.
13696         * modules/erf-tests: New file.
13697         * tests/test-erf.c: New file.
13698
13699         Tests for module 'cosh'.
13700         * modules/cosh-tests: New file.
13701         * tests/test-cosh.c: New file.
13702
13703         Tests for module 'cos'.
13704         * modules/cos-tests: New file.
13705         * tests/test-cos.c: New file.
13706
13707         Tests for module 'copysign'.
13708         * modules/copysign-tests: New file.
13709         * tests/test-copysign.c: New file.
13710
13711         Tests for module 'cbrt'.
13712         * modules/cbrt-tests: New file.
13713         * tests/test-cbrt.c: New file.
13714
13715         Tests for module 'atan2'.
13716         * modules/atan2-tests: New file.
13717         * tests/test-atan2.c: New file.
13718
13719         Tests for module 'atan'.
13720         * modules/atan-tests: New file.
13721         * tests/test-atan.c: New file.
13722
13723         Tests for module 'asin'.
13724         * modules/asin-tests: New file.
13725         * tests/test-asin.c: New file.
13726
13727         Tests for module 'acos'.
13728         * modules/acos-tests: New file.
13729         * tests/test-acos.c: New file.
13730
13731 2010-01-24  Bruno Haible  <bruno@clisp.org>
13732
13733         Fix tests for common <math.h> functions.
13734         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13735         code snippet that references the function pointer, rather than merely
13736         calling the function. Substitute the FUNC_LIBM variable.
13737         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13738         * modules/acos (configure.ac): Likewise.
13739         * modules/asin (configure.ac): Likewise.
13740         * modules/atan (configure.ac): Likewise.
13741         * modules/atan2 (configure.ac): Likewise.
13742         * modules/cbrt (configure.ac): Likewise.
13743         * modules/copysign (configure.ac): Likewise.
13744         * modules/cos (configure.ac): Likewise.
13745         * modules/cosh (configure.ac): Likewise.
13746         * modules/erf (configure.ac): Likewise.
13747         * modules/erfc (configure.ac): Likewise.
13748         * modules/exp (configure.ac): Likewise.
13749         * modules/fabs (configure.ac): Likewise.
13750         * modules/fmod (configure.ac): Likewise.
13751         * modules/hypot (configure.ac): Likewise.
13752         * modules/j0 (configure.ac): Likewise.
13753         * modules/j1 (configure.ac): Likewise.
13754         * modules/jn (configure.ac): Likewise.
13755         * modules/ldexp (configure.ac): Likewise.
13756         * modules/lgamma (configure.ac): Likewise.
13757         * modules/log (configure.ac): Likewise.
13758         * modules/log10 (configure.ac): Likewise.
13759         * modules/log1p (configure.ac): Likewise.
13760         * modules/logb (configure.ac): Likewise.
13761         * modules/modf (configure.ac): Likewise.
13762         * modules/nextafter (configure.ac): Likewise.
13763         * modules/pow (configure.ac): Likewise.
13764         * modules/remainder (configure.ac): Likewise.
13765         * modules/rint (configure.ac): Likewise.
13766         * modules/sin (configure.ac): Likewise.
13767         * modules/sinh (configure.ac): Likewise.
13768         * modules/tan (configure.ac): Likewise.
13769         * modules/tanh (configure.ac): Likewise.
13770         * modules/y0 (configure.ac): Likewise.
13771         * modules/y1 (configure.ac): Likewise.
13772         * modules/yn (configure.ac): Likewise.
13773
13774 2010-01-24  Bruno Haible  <bruno@clisp.org>
13775
13776         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13777         * tests/test-acosl.c (x): New variable.
13778         (main): Store argument in x and fetch it from x.
13779         * tests/test-asinl.c (x): New variable.
13780         (main): Store argument in x and fetch it from x.
13781         * tests/test-atanl.c (x): New variable.
13782         (main): Store argument in x and fetch it from x.
13783         * tests/test-cosl.c (x): New variable.
13784         (main): Store argument in x and fetch it from x.
13785         * tests/test-expl.c (x): New variable.
13786         (main): Store argument in x and fetch it from x.
13787         * tests/test-logl.c (x): New variable.
13788         (main): Store argument in x and fetch it from x.
13789         * tests/test-sinl.c (x): New variable.
13790         (main): Store argument in x and fetch it from x.
13791         * tests/test-sqrtl.c (x): New variable.
13792         (main): Store argument in x and fetch it from x.
13793         * tests/test-tanl.c (x): New variable.
13794         (main): Store argument in x and fetch it from x.
13795
13796 2010-01-24  Bruno Haible  <bruno@clisp.org>
13797
13798         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13799         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13800         assignments to the initial TESTS_ENVIRONMENT.
13801         * doc/gnulib.texi (Unit test modules): Document it.
13802         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13803         TESTS_ENVIRONMENT.
13804         * modules/btowc-tests (Makefile.am): Likewise.
13805         * modules/c-stack-tests (Makefile.am): Likewise.
13806         * modules/c-strcase-tests (Makefile.am): Likewise.
13807         * modules/copy-file-tests (Makefile.am): Likewise.
13808         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13809         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13810         * modules/mbrtowc-tests (Makefile.am): Likewise.
13811         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13812         * modules/mbscasestr-tests (Makefile.am): Likewise.
13813         * modules/mbschr-tests (Makefile.am): Likewise.
13814         * modules/mbscspn-tests (Makefile.am): Likewise.
13815         * modules/mbsinit-tests (Makefile.am): Likewise.
13816         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13817         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13818         * modules/mbspbrk-tests (Makefile.am): Likewise.
13819         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13820         * modules/mbsrchr-tests (Makefile.am): Likewise.
13821         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13822         * modules/mbsspn-tests (Makefile.am): Likewise.
13823         * modules/mbsstr-tests (Makefile.am): Likewise.
13824         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13825         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13826         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13827         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13828         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13829         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13830         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13831         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13832         * modules/wcrtomb-tests (Makefile.am): Likewise.
13833         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13834         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13835         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13836         assignments from TESTS_ENVIRONMENT.
13837         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13838         augmentation.
13839         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13840         * modules/atexit-tests (Makefile.am): Likewise.
13841         * modules/binary-io-tests (Makefile.am): Likewise.
13842         * modules/closein-tests (Makefile.am): Likewise.
13843         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13844         * modules/exclude-tests (Makefile.am): Likewise.
13845         * modules/fflush-tests (Makefile.am): Likewise.
13846         * modules/fpending-tests (Makefile.am): Likewise.
13847         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13848         * modules/freadahead-tests (Makefile.am): Likewise.
13849         * modules/freadptr-tests (Makefile.am): Likewise.
13850         * modules/freadseek-tests (Makefile.am): Likewise.
13851         * modules/fseek-tests (Makefile.am): Likewise.
13852         * modules/fseeko-tests (Makefile.am): Likewise.
13853         * modules/ftell-tests (Makefile.am): Likewise.
13854         * modules/ftello-tests (Makefile.am): Likewise.
13855         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13856         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13857         * modules/lseek-tests (Makefile.am): Likewise.
13858         * modules/parse-duration-tests (Makefile.am): Likewise.
13859         * modules/perror-tests (Makefile.am): Likewise.
13860         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13861         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13862         * modules/pipe-tests (Makefile.am): Likewise.
13863         * modules/pread-tests (Makefile.am): Likewise.
13864         * modules/printf-posix-tests (Makefile.am): Likewise.
13865         * modules/select-tests (Makefile.am): Likewise.
13866         * modules/sigpipe-tests (Makefile.am): Likewise.
13867         * modules/tsearch-tests (Makefile.am): Likewise.
13868         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13869         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13870         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13871         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13872         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13873         * modules/version-etc-tests (Makefile.am): Likewise.
13874         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13875         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13876         * modules/xalloc-die-tests (Makefile.am): Likewise.
13877         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13878         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13879         * modules/xstrtol-tests (Makefile.am): Likewise.
13880         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13881         * modules/yesno-tests (Makefile.am): Likewise.
13882         Suggested by Jim Meyering.
13883
13884 2010-01-24  Bruno Haible  <bruno@clisp.org>
13885
13886         More documentation.
13887         * doc/gnulib.texi (Writing modules): New chapter.
13888         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13889         the new chapter.
13890
13891 2010-01-24  Jim Meyering  <meyering@redhat.com>
13892
13893         maint.mk: do not prepend "./" after filtering
13894         * top/maint.mk (_prepend_srcdir_prefix): New variable
13895         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13896         "./" when $(srcdir) is ".".
13897
13898         define STREQ(a,b) consistently, removing useless parentheses
13899         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13900         since the only risk is that "a" or "b" contains an unparenthesized
13901         comma, but if either did that, STREQ would have 3 or more arguments.
13902         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13903         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13904         * lib/hash-triple.c (STREQ): Likewise.
13905         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13906         * lib/getugroups.c (STREQ): Likewise.
13907
13908 2010-01-23  Jim Meyering  <meyering@redhat.com>
13909
13910         maint.mk: fix syntax-check in a non-srcdir build directory
13911         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13912         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13913
13914 2010-01-22  Jim Meyering  <meyering@redhat.com>
13915
13916         userspec: add unit tests
13917         * tests/test-userspec.c: New file.
13918         * modules/userspec-tests: Likewise.
13919
13920 2010-01-21  Jim Meyering  <meyering@redhat.com>
13921
13922         maint.mk: handle source file names containing "." robustly
13923         * top/maint.mk (_dot_escaped_srcdir): Define.
13924         (VC_LIST): Use it in LHS of sed substitution.
13925
13926 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13927
13928         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13929         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13930         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13931         from a non-srcdir build.
13932
13933 2010-01-20  Eric Blake  <ebb9@byu.net>
13934
13935         warn-on-use: use instead of link-warning
13936         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13937         * modules/unistd (Depends-on, Makefile.am): Likewise.
13938         * modules/arpa_inet (Depends-on): Replace link-warning with
13939         warn-on-use.
13940         (Makefile.am): Update rules accordingly.
13941         * modules/ctype (Depends-on, Makefile.am): Likewise.
13942         * modules/dirent (Depends-on, Makefile.am): Likewise.
13943         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13944         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13945         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13946         * modules/locale (Depends-on, Makefile.am): Likewise.
13947         * modules/math (Depends-on, Makefile.am): Likewise.
13948         * modules/search (Depends-on, Makefile.am): Likewise.
13949         * modules/signal (Depends-on, Makefile.am): Likewise.
13950         * modules/spawn (Depends-on, Makefile.am): Likewise.
13951         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13952         * modules/string (Depends-on, Makefile.am): Likewise.
13953         * modules/strings (Depends-on, Makefile.am): Likewise.
13954         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13955         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13956         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13957         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13958         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13959         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13960         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13961         * modules/wchar (Depends-on, Makefile.am): Likewise.
13962         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13963         should be poisoned.
13964         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13965         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13966         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13967         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13968         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13969         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13970         * m4/math_h.m4 (gl_MATH_H): Likewise.
13971         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13972         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13973         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13974         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13975         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13976         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13977         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13978         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
13979         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13981         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13983         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13985         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13986         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13987         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
13988         GL_LINK_WARNING.
13989         * lib/ctype.in.h: Likewise.
13990         * lib/dirent.in.h: Likewise.
13991         * lib/fcntl.in.h: Likewise.
13992         * lib/inttypes.in.h: Likewise.
13993         * lib/langinfo.in.h: Likewise.
13994         * lib/locale.in.h: Likewise.
13995         * lib/math.in.h: Likewise.
13996         * lib/search.in.h: Likewise.
13997         * lib/signal.in.h: Likewise.
13998         * lib/spawn.in.h: Likewise.
13999         * lib/stdio.in.h: Likewise.
14000         * lib/stdlib.in.h: Likewise.
14001         * lib/string.in.h: Likewise.
14002         * lib/strings.in.h: Likewise.
14003         * lib/sys_file.in.h: Likewise.
14004         * lib/sys_ioctl.in.h: Likewise.
14005         * lib/sys_select.in.h: Likewise.
14006         * lib/sys_socket.in.h: Likewise.
14007         * lib/sys_stat.in.h: Likewise.
14008         * lib/sys_times.in.h: Likewise.
14009         * lib/sys_utsname.in.h: Likewise.
14010         * lib/unistd.in.h: Likewise.
14011         * lib/wchar.in.h: Likewise.
14012
14013 2010-01-20  Bruno Haible  <bruno@clisp.org>
14014
14015         Avoid duplicate -lm.
14016         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
14017         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
14018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
14019         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
14020         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
14021         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
14022         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
14023         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
14024         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
14025         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
14026         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
14027         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14028         Reported by Paolo Bonzini.
14029
14030 2010-01-19  Bruno Haible  <bruno@clisp.org>
14031
14032         langinfo, nl_langinfo: Relicense under LGPLv2+.
14033         * modules/langinfo (License): Change to LGPLv2+.
14034         * modules/nl_langinfo (License): Likewise.
14035         Patch by David Lutterkort <lutter@redhat.com>.
14036
14037 2010-01-19  Bruno Haible  <bruno@clisp.org>
14038
14039         Avoid compilation error with cc on OSF/1 5.1.
14040         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
14041         statement, not before.
14042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14043
14044 2010-01-18  Bruno Haible  <bruno@clisp.org>
14045
14046         Avoid a link error due to the __printf__ symbol.
14047         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
14048         and 2.6.x.
14049         (__format__, __printf__): Remove definitions.
14050         * lib/argp-fmtstream.h: Likewise.
14051         * lib/argp.h: Likewise.
14052         * lib/error.h: Likewise.
14053         * lib/vasnprintf.h: Likewise.
14054         * lib/xprintf.h: Likewise.
14055         * lib/xvasprintf.h: Likewise.
14056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14057
14058 2010-01-18  Bruno Haible  <bruno@clisp.org>
14059
14060         Tests for module 'tanl'.
14061         * modules/tanl-tests: New file.
14062         * tests/test-tanl.c: New file.
14063
14064         Tests for module 'sqrtl'.
14065         * modules/sqrtl-tests: New file.
14066         * tests/test-sqrtl.c: New file.
14067
14068         Tests for module 'sinl'.
14069         * modules/sinl-tests: New file.
14070         * tests/test-sinl.c: New file.
14071
14072         Tests for module 'logl'.
14073         * modules/logl-tests: New file.
14074         * tests/test-logl.c: New file.
14075
14076         Tests for module 'expl'.
14077         * modules/expl-tests: New file.
14078         * tests/test-expl.c: New file.
14079
14080         Tests for module 'cosl'.
14081         * modules/cosl-tests: New file.
14082         * tests/test-cosl.c: New file.
14083
14084         Tests for module 'atanl'.
14085         * modules/atanl-tests: New file.
14086         * tests/test-atanl.c: New file.
14087
14088         Tests for module 'asinl'.
14089         * modules/asinl-tests: New file.
14090         * tests/test-asinl.c: New file.
14091
14092         Tests for module 'acosl'.
14093         * modules/acosl-tests: New file.
14094         * tests/test-acosl.c: New file.
14095
14096         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14097         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
14098         tanl): Use the standard gnulib idiom.
14099         * lib/cosl.c: Don't include trigl.c and sincosl.c.
14100         * lib/sinl.c: Likewise.
14101         * lib/tanl.c: Don't include trigl.c.
14102         (kernel_tanl): Make static.
14103         * lib/sincosl.c: Include trigl.h first.
14104         * lib/trigl.c: Likewise.
14105         * m4/acosl.m4: New file.
14106         * m4/asinl.m4: New file.
14107         * m4/atanl.m4: New file.
14108         * m4/cosl.m4: New file.
14109         * m4/expl.m4: New file.
14110         * m4/logl.m4: New file.
14111         * m4/sinl.m4: New file.
14112         * m4/sqrtl.m4: New file.
14113         * m4/tanl.m4: New file.
14114         * m4/mathl.m4: Remove file.
14115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
14116         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14117         Don't initialize GNULIB_MATHL.
14118         * modules/acosl: New file.
14119         * modules/asinl: New file.
14120         * modules/atanl: New file.
14121         * modules/cosl: New file.
14122         * modules/expl: New file.
14123         * modules/logl: New file.
14124         * modules/sinl: New file.
14125         * modules/sqrtl: New file.
14126         * modules/tanl: New file.
14127         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
14128         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
14129         substitute GNULIB_MATHL.
14130         * modules/mathl: Rewritten.
14131         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
14132         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
14133         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
14134         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
14135         * doc/posix-functions/expl.texi: Mention the 'expl' module.
14136         * doc/posix-functions/logl.texi: Mention the 'logl' module.
14137         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
14138         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
14139         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
14140
14141 2010-01-18  Bruno Haible  <bruno@clisp.org>
14142
14143         sqrt: Make gl_FUNC_SQRT requirable.
14144         * m4/sqrt.m4: New file.
14145         * modules/sqrt (Files): Add it.
14146         (configure.ac): Invoke gl_FUNC_SQRT.
14147
14148 2010-01-18  Bruno Haible  <bruno@clisp.org>
14149
14150         New modules for common <math.h> functions.
14151         * m4/mathfunc.m4: New file.
14152         * modules/acos: New file.
14153         * modules/asin: New file.
14154         * modules/atan: New file.
14155         * modules/atan2: New file.
14156         * modules/cbrt: New file.
14157         * modules/copysign: New file.
14158         * modules/cos: New file.
14159         * modules/cosh: New file.
14160         * modules/erf: New file.
14161         * modules/erfc: New file.
14162         * modules/exp: New file.
14163         * modules/fabs: New file.
14164         * modules/fmod: New file.
14165         * modules/hypot: New file.
14166         * modules/j0: New file.
14167         * modules/j1: New file.
14168         * modules/jn: New file.
14169         * modules/ldexp: New file.
14170         * modules/lgamma: New file.
14171         * modules/log: New file.
14172         * modules/log10: New file.
14173         * modules/log1p: New file.
14174         * modules/logb: New file.
14175         * modules/modf: New file.
14176         * modules/nextafter: New file.
14177         * modules/pow: New file.
14178         * modules/remainder: New file.
14179         * modules/rint: New file.
14180         * modules/sin: New file.
14181         * modules/sinh: New file.
14182         * modules/sqrt: New file.
14183         * modules/tan: New file.
14184         * modules/tanh: New file.
14185         * modules/y0: New file.
14186         * modules/y1: New file.
14187         * modules/yn: New file.
14188         * doc/posix-functions/acos.texi: Mention the 'acos' module.
14189         * doc/posix-functions/asin.texi: Mention the 'asin' module.
14190         * doc/posix-functions/atan.texi: Mention the 'atan' module.
14191         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
14192         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
14193         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
14194         * doc/posix-functions/cos.texi: Mention the 'cos' module.
14195         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
14196         * doc/posix-functions/erf.texi: Mention the 'erf' module.
14197         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
14198         * doc/posix-functions/exp.texi: Mention the 'exp' module.
14199         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
14200         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
14201         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
14202         * doc/posix-functions/j0.texi: Mention the 'j0' module.
14203         * doc/posix-functions/j1.texi: Mention the 'j1' module.
14204         * doc/posix-functions/jn.texi: Mention the 'jn' module.
14205         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
14206         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
14207         * doc/posix-functions/log.texi: Mention the 'log' module.
14208         * doc/posix-functions/log10.texi: Mention the 'log10' module.
14209         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
14210         * doc/posix-functions/logb.texi: Mention the 'logb' module.
14211         * doc/posix-functions/modf.texi: Mention the 'modf' module.
14212         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
14213         * doc/posix-functions/pow.texi: Mention the 'pow' module.
14214         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
14215         * doc/posix-functions/rint.texi: Mention the 'rint' module.
14216         * doc/posix-functions/sin.texi: Mention the 'sin' module.
14217         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
14218         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
14219         * doc/posix-functions/tan.texi: Mention the 'tan' module.
14220         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
14221         * doc/posix-functions/y0.texi: Mention the 'y0' module.
14222         * doc/posix-functions/y1.texi: Mention the 'y1' module.
14223         * doc/posix-functions/yn.texi: Mention the 'yn' module.
14224
14225 2010-01-18  Jim Meyering  <meyering@redhat.com>
14226
14227         ignore-value: relax license to LGPLv2+
14228         * modules/ignore-value (License): Relax to LGPLv2+.
14229
14230         getdate: don't leak when TZ contains two or more '"'s
14231         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
14232         double quote in TZ after the first one.
14233
14234         readtokens: do not leak internal token_lengths buffer
14235         * lib/readtokens.c (readtokens): Free the local, lengths,
14236         when the supplied "token_lengths" parameter is NULL.
14237
14238 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14239
14240         Fix a couple of missing LIBTHREAD link failures on AIX.
14241         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
14242         $(LIBTHREAD).
14243         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
14244
14245         Link test-poll against INET_PTON_LIB.
14246         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
14247         for inet_pton on Solaris 10.
14248
14249 2010-01-17  Bruno Haible  <bruno@clisp.org>
14250
14251         unistdio/*-sprintf: Fix typo in module description.
14252         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
14253         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
14254         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
14255         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
14256         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
14257         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
14258         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
14259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14260
14261 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14262
14263         gnulib-tool: fix filelist for AIX, HP-UX ksh.
14264         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
14265         variables in shell case patterns, for AIX and HP-UX ksh.
14266
14267         Split large sed scripts, for HP-UX sed.
14268         * modules/stdio: Split sed scripts around 50 sed commands,
14269         to avoid HP-UX limit of 99 commands, in the near future.
14270         * modules/string: Likewise.
14271         * modules/unistd: Likewise.
14272
14273         gnulib-tool: avoid writing in the current directory.
14274         * gnulib-tool (func_emit_lib_Makefile_am)
14275         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
14276         not in the current directory, so concurrent gnulib-tool
14277         instances do not interfere.
14278
14279 2010-01-16  Jim Meyering  <meyering@redhat.com>
14280
14281         doc: update users.txt
14282         * users.txt: Add grep.
14283         (diffutils, gzip): Update URLs.
14284
14285 2010-01-12  Bruno Haible  <bruno@clisp.org>
14286
14287         posix_spawn: Avoid test failure on Cygwin.
14288         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
14289         characters.
14290         Reported by Simon Josefsson.
14291
14292 2010-01-12  Bruno Haible  <bruno@clisp.org>
14293
14294         * tests/test-cond.c (main): When skipping the test, show the reason.
14295
14296 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14297
14298         * lib/striconv.c (str_cd_iconv): Avoid if before free.
14299
14300 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14301
14302         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
14303         VC_LIST_ALWAYS_EXCLUDE_REGEX.
14304
14305 2010-01-12  Eric Blake  <ebb9@byu.net>
14306
14307         build: guarantee AS_VAR_IF
14308         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
14309         (gl_AS_VAR_IF): Move...
14310         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
14311         Reported by Simon Josefsson.
14312
14313 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14314
14315         * lib/stdio.in.h: Fix typo.
14316
14317 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14318
14319         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
14320         libgpg-error.
14321
14322 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14323
14324         * tests/test-xalloc-die.sh: Use $EXEEXT.
14325
14326 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14327             Bruno Haible  <bruno@clisp.org>
14328
14329         getlogin, getlogin_r: Avoid test failure.
14330         * tests/test-getlogin.c: Include <stdio.h>.
14331         (main): Skip the test when the function fails because stdin is not a
14332         tty.
14333         * tests/test-getlogin_r.c: Include <stdio.h>.
14334         (main): Skip the test when the function fails because stdin is not a
14335         tty.
14336
14337 2010-01-11  Eric Blake  <ebb9@byu.net>
14338
14339         tests: avoid more large file warnings
14340         * tests/test-fflush.c: Avoid warning about ftell use.
14341         * tests/test-fseek.c: Avoid warning about fseek use.
14342
14343 2010-01-10  Bruno Haible  <bruno@clisp.org>
14344
14345         nproc: Work better on Linux when /proc and /sys are not mounted.
14346         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
14347         as lower bound when, on glibc/Linux systems,
14348         sysconf (_SC_NPROCESSORS_CONF) returns 1.
14349         Suggested by Pádraig Brady <P@draigbrady.com>.
14350         Reported by Dmitry V. Levin <ldv@altlinux.org>.
14351
14352         nproc: Refactor.
14353         * lib/nproc.c (num_processors_via_affinity_mask): New function,
14354         extracted from num_processors.
14355         (num_processors): Call it.
14356
14357 2010-01-11  Jim Meyering  <meyering@redhat.com>
14358
14359         utimecmp: avoid new warning from upcoming gcc-4.5.0
14360         * lib/utimecmp.c (BILLION): Define using #define rather than an
14361         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
14362
14363 2010-01-11  Eric Blake  <ebb9@byu.net>
14364
14365         math: add portability warnings for classification macros
14366         * modules/math (Depends-on): Add warn-on-use.
14367         (Makefile.am): Provide new substitutions.
14368         * m4/math_h.m4 (gl_MATH_H): Require inline.
14369         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
14370         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
14371         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
14372         implement warnings.
14373
14374         unistd: warn on use of environ without module
14375         * modules/unistd (Depends-on): Add warn-on-use.
14376         (Makefile.am): Provide new substitutions.
14377         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
14378         * lib/unistd.in.h (environ): Wrap with a warning helper function.
14379
14380         stdio: warn on suspicious uses
14381         * modules/stdio (Depends-on): Add warn-on-use.
14382         (Makefile.am): Provide new substitutions.
14383         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
14384         fseeko.
14385         * lib/stdio.in.h (gets): Always warn on use.
14386         (fseek, ftell): Adjust when warnings are issued, and honor
14387         _GL_NO_LARGE_FILES as a way to silence the warning.
14388         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
14389         any warning about large file offsets.
14390         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
14391         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
14392         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
14393         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
14394         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
14395         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
14396         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
14397         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
14398
14399         warn-on-use: new module
14400         * modules/warn-on-use: New file.
14401         * build-aux/warn-on-use.h: Likewise.
14402         * m4/warn-on-use.m4: Likewise.
14403         * MODULES.html.sh (Support for building): Mention it.
14404
14405 2010-01-10  Bruno Haible  <bruno@clisp.org>
14406
14407         Tests for module 'unistr/u32-strdup'.
14408         * modules/unistr/u32-strdup-tests: New file.
14409         * tests/unistr/test-u32-strdup.c: New file.
14410
14411         Tests for module 'unistr/u16-strdup'.
14412         * modules/unistr/u16-strdup-tests: New file.
14413         * tests/unistr/test-u16-strdup.c: New file.
14414
14415         Tests for module 'unistr/u8-strdup'.
14416         * modules/unistr/u8-strdup-tests: New file.
14417         * tests/unistr/test-u8-strdup.c: New file.
14418         * tests/unistr/test-strdup.h: New file.
14419
14420         Tests for module 'unistr/u32-strncmp'.
14421         * modules/unistr/u32-strncmp-tests: New file.
14422         * tests/unistr/test-u32-strncmp.c: New file.
14423
14424         Tests for module 'unistr/u16-strncmp'.
14425         * modules/unistr/u16-strncmp-tests: New file.
14426         * tests/unistr/test-u16-strncmp.c: New file.
14427
14428         Tests for module 'unistr/u8-strncmp'.
14429         * modules/unistr/u8-strncmp-tests: New file.
14430         * tests/unistr/test-u8-strncmp.c: New file.
14431         * tests/unistr/test-strncmp.h: New file.
14432
14433         Tests for module 'unistr/u32-strcoll'.
14434         * modules/unistr/u32-strcoll-tests: New file.
14435         * tests/unistr/test-u32-strcoll.c: New file.
14436
14437         Tests for module 'unistr/u16-strcoll'.
14438         * modules/unistr/u16-strcoll-tests: New file.
14439         * tests/unistr/test-u16-strcoll.c: New file.
14440
14441         Tests for module 'unistr/u8-strcoll'.
14442         * modules/unistr/u8-strcoll-tests: New file.
14443         * tests/unistr/test-u8-strcoll.c: New file.
14444
14445         Tests for module 'unistr/u32-strcmp'.
14446         * modules/unistr/u32-strcmp-tests: New file.
14447         * tests/unistr/test-u32-strcmp.c: New file.
14448         * tests/unistr/test-u32-strcmp.h: New file.
14449
14450         Tests for module 'unistr/u16-strcmp'.
14451         * modules/unistr/u16-strcmp-tests: New file.
14452         * tests/unistr/test-u16-strcmp.c: New file.
14453         * tests/unistr/test-u16-strcmp.h: New file.
14454
14455         Tests for module 'unistr/u8-strcmp'.
14456         * modules/unistr/u8-strcmp-tests: New file.
14457         * tests/unistr/test-u8-strcmp.c: New file.
14458         * tests/unistr/test-u8-strcmp.h: New file.
14459         * tests/unistr/test-strcmp.h: New file.
14460
14461         Tests for module 'unistr/u32-strncat'.
14462         * modules/unistr/u32-strncat-tests: New file.
14463         * tests/unistr/test-u32-strncat.c: New file.
14464
14465         Tests for module 'unistr/u16-strncat'.
14466         * modules/unistr/u16-strncat-tests: New file.
14467         * tests/unistr/test-u16-strncat.c: New file.
14468
14469         Tests for module 'unistr/u8-strncat'.
14470         * modules/unistr/u8-strncat-tests: New file.
14471         * tests/unistr/test-u8-strncat.c: New file.
14472         * tests/unistr/test-strncat.h: New file.
14473
14474         Tests for module 'unistr/u32-strcat'.
14475         * modules/unistr/u32-strcat-tests: New file.
14476         * tests/unistr/test-u32-strcat.c: New file.
14477
14478         Tests for module 'unistr/u16-strcat'.
14479         * modules/unistr/u16-strcat-tests: New file.
14480         * tests/unistr/test-u16-strcat.c: New file.
14481
14482         Tests for module 'unistr/u8-strcat'.
14483         * modules/unistr/u8-strcat-tests: New file.
14484         * tests/unistr/test-u8-strcat.c: New file.
14485         * tests/unistr/test-strcat.h: New file.
14486
14487         Tests for module 'unistr/u32-stpncpy'.
14488         * modules/unistr/u32-stpncpy-tests: New file.
14489         * tests/unistr/test-u32-stpncpy.c: New file.
14490
14491         Tests for module 'unistr/u16-stpncpy'.
14492         * modules/unistr/u16-stpncpy-tests: New file.
14493         * tests/unistr/test-u16-stpncpy.c: New file.
14494
14495         Tests for module 'unistr/u8-stpncpy'.
14496         * modules/unistr/u8-stpncpy-tests: New file.
14497         * tests/unistr/test-u8-stpncpy.c: New file.
14498         * tests/unistr/test-stpncpy.h: New file.
14499
14500         Tests for module 'unistr/u32-strncpy'.
14501         * modules/unistr/u32-strncpy-tests: New file.
14502         * tests/unistr/test-u32-strncpy.c: New file.
14503
14504         Tests for module 'unistr/u16-strncpy'.
14505         * modules/unistr/u16-strncpy-tests: New file.
14506         * tests/unistr/test-u16-strncpy.c: New file.
14507
14508         Tests for module 'unistr/u8-strncpy'.
14509         * modules/unistr/u8-strncpy-tests: New file.
14510         * tests/unistr/test-u8-strncpy.c: New file.
14511         * tests/unistr/test-strncpy.h: New file.
14512
14513         Tests for module 'unistr/u32-stpcpy'.
14514         * modules/unistr/u32-stpcpy-tests: New file.
14515         * tests/unistr/test-u32-stpcpy.c: New file.
14516
14517         Tests for module 'unistr/u16-stpcpy'.
14518         * modules/unistr/u16-stpcpy-tests: New file.
14519         * tests/unistr/test-u16-stpcpy.c: New file.
14520
14521         Tests for module 'unistr/u8-stpcpy'.
14522         * modules/unistr/u8-stpcpy-tests: New file.
14523         * tests/unistr/test-u8-stpcpy.c: New file.
14524         * tests/unistr/test-stpcpy.h: New file.
14525
14526         Tests for module 'unistr/u32-strcpy'.
14527         * modules/unistr/u32-strcpy-tests: New file.
14528         * tests/unistr/test-u32-strcpy.c: New file.
14529
14530         Tests for module 'unistr/u16-strcpy'.
14531         * modules/unistr/u16-strcpy-tests: New file.
14532         * tests/unistr/test-u16-strcpy.c: New file.
14533
14534         Tests for module 'unistr/u8-strcpy'.
14535         * modules/unistr/u8-strcpy-tests: New file.
14536         * tests/unistr/test-u8-strcpy.c: New file.
14537         * tests/unistr/test-strcpy.h: New file.
14538
14539         Tests for module 'unistr/u32-strnlen'.
14540         * modules/unistr/u32-strnlen-tests: New file.
14541         * tests/unistr/test-u32-strnlen.c: New file.
14542
14543         Tests for module 'unistr/u16-strnlen'.
14544         * modules/unistr/u16-strnlen-tests: New file.
14545         * tests/unistr/test-u16-strnlen.c: New file.
14546
14547         Tests for module 'unistr/u8-strnlen'.
14548         * modules/unistr/u8-strnlen-tests: New file.
14549         * tests/unistr/test-u8-strnlen.c: New file.
14550         * tests/unistr/test-strnlen.h: New file.
14551
14552         Tests for module 'unistr/u32-strlen'.
14553         * modules/unistr/u32-strlen-tests: New file.
14554         * tests/unistr/test-u32-strlen.c: New file.
14555
14556         Tests for module 'unistr/u16-strlen'.
14557         * modules/unistr/u16-strlen-tests: New file.
14558         * tests/unistr/test-u16-strlen.c: New file.
14559
14560         Tests for module 'unistr/u8-strlen'.
14561         * modules/unistr/u8-strlen-tests: New file.
14562         * tests/unistr/test-u8-strlen.c: New file.
14563
14564         Tests for module 'unistr/u32-prev'.
14565         * modules/unistr/u32-prev-tests: New file.
14566         * tests/unistr/test-u32-prev.c: New file.
14567
14568         Tests for module 'unistr/u16-prev'.
14569         * modules/unistr/u16-prev-tests: New file.
14570         * tests/unistr/test-u16-prev.c: New file.
14571
14572         Tests for module 'unistr/u8-prev'.
14573         * modules/unistr/u8-prev-tests: New file.
14574         * tests/unistr/test-u8-prev.c: New file.
14575
14576         Tests for module 'unistr/u32-next'.
14577         * modules/unistr/u32-next-tests: New file.
14578         * tests/unistr/test-u32-next.c: New file.
14579
14580         Tests for module 'unistr/u16-next'.
14581         * modules/unistr/u16-next-tests: New file.
14582         * tests/unistr/test-u16-next.c: New file.
14583
14584         Tests for module 'unistr/u8-next'.
14585         * modules/unistr/u8-next-tests: New file.
14586         * tests/unistr/test-u8-next.c: New file.
14587
14588         Tests for module 'unistr/u32-strmbtouc'.
14589         * modules/unistr/u32-strmbtouc-tests: New file.
14590         * tests/unistr/test-u32-strmbtouc.c: New file.
14591
14592         Tests for module 'unistr/u16-strmbtouc'.
14593         * modules/unistr/u16-strmbtouc-tests: New file.
14594         * tests/unistr/test-u16-strmbtouc.c: New file.
14595
14596         Tests for module 'unistr/u8-strmbtouc'.
14597         * modules/unistr/u8-strmbtouc-tests: New file.
14598         * tests/unistr/test-u8-strmbtouc.c: New file.
14599
14600         Tests for module 'unistr/u32-strmblen'.
14601         * modules/unistr/u32-strmblen-tests: New file.
14602         * tests/unistr/test-u32-strmblen.c: New file.
14603
14604         Tests for module 'unistr/u16-strmblen'.
14605         * modules/unistr/u16-strmblen-tests: New file.
14606         * tests/unistr/test-u16-strmblen.c: New file.
14607
14608         Tests for module 'unistr/u8-strmblen'.
14609         * modules/unistr/u8-strmblen-tests: New file.
14610         * tests/unistr/test-u8-strmblen.c: New file.
14611
14612         Tests for module 'unistr/u32-cpy-alloc'.
14613         * modules/unistr/u32-cpy-alloc-tests: New file.
14614         * tests/unistr/test-u32-cpy-alloc.c: New file.
14615
14616         Tests for module 'unistr/u16-cpy-alloc'.
14617         * modules/unistr/u16-cpy-alloc-tests: New file.
14618         * tests/unistr/test-u16-cpy-alloc.c: New file.
14619
14620         Tests for module 'unistr/u8-cpy-alloc'.
14621         * modules/unistr/u8-cpy-alloc-tests: New file.
14622         * tests/unistr/test-u8-cpy-alloc.c: New file.
14623         * tests/unistr/test-cpy-alloc.h: New file.
14624
14625         Tests for module 'unistr/u32-mbsnlen'.
14626         * modules/unistr/u32-mbsnlen-tests: New file.
14627         * tests/unistr/test-u32-mbsnlen.c: New file.
14628
14629         Tests for module 'unistr/u16-mbsnlen'.
14630         * modules/unistr/u16-mbsnlen-tests: New file.
14631         * tests/unistr/test-u16-mbsnlen.c: New file.
14632
14633         Tests for module 'unistr/u8-mbsnlen'.
14634         * modules/unistr/u8-mbsnlen-tests: New file.
14635         * tests/unistr/test-u8-mbsnlen.c: New file.
14636
14637         Tests for module 'unistr/u32-chr'.
14638         * modules/unistr/u32-chr-tests: New file.
14639         * tests/unistr/test-u32-chr.c: New file.
14640
14641         Tests for module 'unistr/u16-chr'.
14642         * modules/unistr/u16-chr-tests: New file.
14643         * tests/unistr/test-u16-chr.c: New file.
14644
14645         Tests for module 'unistr/u8-chr'.
14646         * modules/unistr/u8-chr-tests: New file.
14647         * tests/unistr/test-u8-chr.c: New file.
14648         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
14649
14650         Tests for module 'unistr/u32-cmp2'.
14651         * modules/unistr/u32-cmp2-tests: New file.
14652         * tests/unistr/test-u32-cmp2.c: New file.
14653
14654         Tests for module 'unistr/u16-cmp2'.
14655         * modules/unistr/u16-cmp2-tests: New file.
14656         * tests/unistr/test-u16-cmp2.c: New file.
14657
14658         Tests for module 'unistr/u8-cmp2'.
14659         * modules/unistr/u8-cmp2-tests: New file.
14660         * tests/unistr/test-u8-cmp2.c: New file.
14661         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
14662
14663         Tests for module 'unistr/u32-cmp'.
14664         * modules/unistr/u32-cmp-tests: New file.
14665         * tests/unistr/test-u32-cmp.c: New file.
14666
14667         Tests for module 'unistr/u16-cmp'.
14668         * modules/unistr/u16-cmp-tests: New file.
14669         * tests/unistr/test-u16-cmp.c: New file.
14670
14671         Tests for module 'unistr/u8-cmp'.
14672         * modules/unistr/u8-cmp-tests: New file.
14673         * tests/unistr/test-u8-cmp.c: New file.
14674         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
14675
14676         Tests for module 'unistr/u32-set'.
14677         * modules/unistr/u32-set-tests: New file.
14678         * tests/unistr/test-u32-set.c: New file.
14679
14680         Tests for module 'unistr/u16-set'.
14681         * modules/unistr/u16-set-tests: New file.
14682         * tests/unistr/test-u16-set.c: New file.
14683
14684         Tests for module 'unistr/u8-set'.
14685         * modules/unistr/u8-set-tests: New file.
14686         * tests/unistr/test-u8-set.c: New file.
14687         * tests/unistr/test-set.h: New file.
14688
14689         Tests for module 'unistr/u32-move'.
14690         * modules/unistr/u32-move-tests: New file.
14691         * tests/unistr/test-u32-move.c: New file.
14692
14693         Tests for module 'unistr/u16-move'.
14694         * modules/unistr/u16-move-tests: New file.
14695         * tests/unistr/test-u16-move.c: New file.
14696
14697         Tests for module 'unistr/u8-move'.
14698         * modules/unistr/u8-move-tests: New file.
14699         * tests/unistr/test-u8-move.c: New file.
14700         * tests/unistr/test-move.h: New file.
14701
14702         Tests for module 'unistr/u32-cpy'.
14703         * modules/unistr/u32-cpy-tests: New file.
14704         * tests/unistr/test-u32-cpy.c: New file.
14705
14706         Tests for module 'unistr/u16-cpy'.
14707         * modules/unistr/u16-cpy-tests: New file.
14708         * tests/unistr/test-u16-cpy.c: New file.
14709
14710         Tests for module 'unistr/u8-cpy'.
14711         * modules/unistr/u8-cpy-tests: New file.
14712         * tests/unistr/test-u8-cpy.c: New file.
14713         * tests/unistr/test-cpy.h: New file.
14714
14715 2010-01-09  Bruno Haible  <bruno@clisp.org>
14716
14717         Tests for module 'unistr/u32-uctomb'.
14718         * modules/unistr/u32-uctomb-tests: New file.
14719         * tests/unistr/test-u32-uctomb.c: New file.
14720
14721         Tests for module 'unistr/u16-uctomb'.
14722         * modules/unistr/u16-uctomb-tests: New file.
14723         * tests/unistr/test-u16-uctomb.c: New file.
14724
14725         Tests for module 'unistr/u8-uctomb'.
14726         * modules/unistr/u8-uctomb-tests: New file.
14727         * tests/unistr/test-u8-uctomb.c: New file.
14728
14729         Tests for module 'unistr/u32-mbtoucr'.
14730         * modules/unistr/u32-mbtoucr-tests: New file.
14731         * tests/unistr/test-u32-mbtoucr.c: New file.
14732
14733         Tests for module 'unistr/u16-mbtoucr'.
14734         * modules/unistr/u16-mbtoucr-tests: New file.
14735         * tests/unistr/test-u16-mbtoucr.c: New file.
14736
14737         Tests for module 'unistr/u8-mbtoucr'.
14738         * modules/unistr/u8-mbtoucr-tests: New file.
14739         * tests/unistr/test-u8-mbtoucr.c: New file.
14740
14741         Tests for module 'unistr/u32-mbtouc'.
14742         * modules/unistr/u32-mbtouc-tests: New file.
14743         * tests/unistr/test-u32-mbtouc.c: New file.
14744
14745         Tests for module 'unistr/u16-mbtouc'.
14746         * modules/unistr/u16-mbtouc-tests: New file.
14747         * tests/unistr/test-u16-mbtouc.c: New file.
14748
14749         Tests for module 'unistr/u8-mbtouc'.
14750         * modules/unistr/u8-mbtouc-tests: New file.
14751         * tests/unistr/test-u8-mbtouc.c: New file.
14752
14753         Tests for module 'unistr/u32-mbtouc-unsafe'.
14754         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14755         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14756         * tests/unistr/test-u32-mbtouc.h: New file.
14757
14758         Tests for module 'unistr/u16-mbtouc-unsafe'.
14759         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14760         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14761         * tests/unistr/test-u16-mbtouc.h: New file.
14762
14763         Tests for module 'unistr/u8-mbtouc-unsafe'.
14764         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14765         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14766         * tests/unistr/test-u8-mbtouc.h: New file.
14767
14768         Tests for module 'unistr/u32-mblen'.
14769         * modules/unistr/u32-mblen-tests: New file.
14770         * tests/unistr/test-u32-mblen.c: New file.
14771
14772         Tests for module 'unistr/u16-mblen'.
14773         * modules/unistr/u16-mblen-tests: New file.
14774         * tests/unistr/test-u16-mblen.c: New file.
14775
14776         Tests for module 'unistr/u8-mblen'.
14777         * modules/unistr/u8-mblen-tests: New file.
14778         * tests/unistr/test-u8-mblen.c: New file.
14779
14780         Tests for module 'unistr/u32-to-u16'.
14781         * modules/unistr/u32-to-u16-tests: New file.
14782         * tests/unistr/test-u32-to-u16.c: New file.
14783
14784         Tests for module 'unistr/u32-to-u8'.
14785         * modules/unistr/u32-to-u8-tests: New file.
14786         * tests/unistr/test-u32-to-u8.c: New file.
14787
14788         Tests for module 'unistr/u16-to-u32'.
14789         * modules/unistr/u16-to-u32-tests: New file.
14790         * tests/unistr/test-u16-to-u32.c: New file.
14791
14792         Tests for module 'unistr/u16-to-u8'.
14793         * modules/unistr/u16-to-u8-tests: New file.
14794         * tests/unistr/test-u16-to-u8.c: New file.
14795
14796         Tests for module 'unistr/u8-to-u32'.
14797         * modules/unistr/u8-to-u32-tests: New file.
14798         * tests/unistr/test-u8-to-u32.c: New file.
14799
14800         Tests for module 'unistr/u8-to-u16'.
14801         * modules/unistr/u8-to-u16-tests: New file.
14802         * tests/unistr/test-u8-to-u16.c: New file.
14803
14804         Tests for module 'unistr/u32-check'.
14805         * modules/unistr/u32-check-tests: New file.
14806         * tests/unistr/test-u32-check.c: New file.
14807
14808         Tests for module 'unistr/u16-check'.
14809         * modules/unistr/u16-check-tests: New file.
14810         * tests/unistr/test-u16-check.c: New file.
14811
14812         Tests for module 'unistr/u8-check'.
14813         * modules/unistr/u8-check-tests: New file.
14814         * tests/unistr/test-u8-check.c: New file.
14815
14816         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14817         (category_equals): New function.
14818         (main): Add more tests.
14819         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14820
14821         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14822
14823 2010-01-10  Bruno Haible  <bruno@clisp.org>
14824
14825         unistr/u*-strcoll: Try harder to distinguish different strings.
14826         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14827         compare s1 and s2 to see if they are different.
14828
14829 2010-01-10  Bruno Haible  <bruno@clisp.org>
14830
14831         unistr/u*-stpncpy: Fix the return value.
14832         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14833         description of the return value consistent with stpncpy in glibc.
14834         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14835         written non-NUL unit.
14836
14837 2010-01-10  Bruno Haible  <bruno@clisp.org>
14838
14839         unistr/u*-next: Add missing dependencies.
14840         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14841         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14842         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14843
14844 2010-01-10  Bruno Haible  <bruno@clisp.org>
14845
14846         unistr/u8-mbsnlen: Fix return value for incomplete character.
14847         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14848         u8_mblen.
14849         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14850         Remove unistr/u8-mblen.
14851         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14852         u16_mblen.
14853         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14854         Remove unistr/u16-mblen.
14855
14856 2010-01-10  Bruno Haible  <bruno@clisp.org>
14857
14858         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14859         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14860         Reported by Brian Gough <bjg@gnu.org> and
14861         Chris Clayton <chris2553@googlemail.com> via
14862         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14863
14864 2010-01-09  Bruno Haible  <bruno@clisp.org>
14865
14866         unistr/u16-to-u32: Reject invalid input.
14867         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14868         u16_mbtouc.
14869         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14870         Remove unistr/u16-mbtouc.
14871
14872         unistr/u16-to-u8: Reject invalid input.
14873         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14874         u16_mbtouc.
14875         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14876         Remove unistr/u16-mbtouc.
14877
14878         unistr/u8-to-u32: Reject invalid input.
14879         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14880         u8_mbtouc.
14881         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14882         Remove unistr/u8-mbtouc.
14883
14884         unistr/u8-to-u16: Reject invalid input.
14885         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14886         u8_mbtouc.
14887         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14888         Remove unistr/u8-mbtouc.
14889
14890 2010-01-09  Bruno Haible  <bruno@clisp.org>
14891
14892         Tests for module 'getlogin'.
14893         * modules/getlogin-tests: New file.
14894         * tests/test-getlogin.c: New file.
14895
14896         New module 'getlogin'.
14897         * lib/unistd.in.h (getlogin): New declaration.
14898         * lib/getlogin.c: New file.
14899         * m4/getlogin.m4: New file.
14900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14901         HAVE_GETLOGIN.
14902         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14903         HAVE_GETLOGIN.
14904         * modules/getlogin: New file.
14905         * doc/posix-functions/getlogin.texi: Mention the new module.
14906         Reported by John W. Eaton <jwe@gnu.org>.
14907
14908 2010-01-09  Bruno Haible  <bruno@clisp.org>
14909
14910         getlogin_r: Support for native Windows.
14911         * lib/getlogin_r.c: Include <windows.h>
14912         (getlogin_r): Implement for native Windows.
14913         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14914         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14915         via John W. Eaton <jwe@gnu.org>.
14916
14917 2010-01-09  Bruno Haible  <bruno@clisp.org>
14918
14919         getlogin_r: Small fixes.
14920         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14921         succeeds.
14922         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14923         before testing whether getlogin_r is declared. No need to set
14924         HAVE_DECL_GETLOGIN_R to 1.
14925         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14926
14927 2010-01-09  Bruno Haible  <bruno@clisp.org>
14928
14929         * lib/unistd.in.h (getlogin_r): Add comment.
14930
14931 2010-01-09  Bruno Haible  <bruno@clisp.org>
14932
14933         Tests for module 'getlogin_r'.
14934         * modules/getlogin_r-tests: New file.
14935         * tests/test-getlogin_r.c: New file.
14936
14937 2010-01-09  Jim Meyering  <meyering@redhat.com>
14938
14939         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14940         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14941         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14942
14943 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14944
14945         * lib/dup2.c (rpl_dup2): Improve comment.
14946
14947 2010-01-08  Eric Blake  <ebb9@byu.net>
14948
14949         maint.mk: allow packages to add makefile @@ exceptions
14950         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14951         (sc_makefile_check): Rename...
14952         (sc_makefile_at_at_check): ...to this, and use hook.
14953
14954         dup2: work around mingw bug
14955         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14956         Reported by Simon Josefsson.
14957
14958 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14959
14960         glob: Fix C++ compilation.
14961         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14962         C++.
14963
14964 2010-01-07  Bruno Haible  <bruno@clisp.org>
14965
14966         Fix indentation of wctype.in.h, broken since 2007-01-06.
14967         * lib/wctype.in.h: Fix indentation of preprocessor directives.
14968
14969 2010-01-07  Bruno Haible  <bruno@clisp.org>
14970
14971         mbslen: Avoid collision with system function.
14972         * lib/string.in.h [MirBSD]: Include <wchar.h>.
14973         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
14974         * m4/mbslen.m4: New file.
14975         * modules/mbslen (Files): Add it.
14976         (configure.ac): Invoke gl_MBSLEN.
14977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
14978         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
14979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
14980         via Ian Beckwith <ianb@erislabs.net>.
14981
14982 2010-01-07  Bruno Haible  <bruno@clisp.org>
14983
14984         dirent: Document the last fix.
14985         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
14986
14987 2010-01-07  Bruno Haible  <bruno@clisp.org>
14988
14989         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
14990         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
14991         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
14992         va_list are defined.
14993         * doc/posix-headers/stdio.texi: Document the bug of missing types.
14994         Reported by Eric Blake.
14995
14996 2010-01-07  Bruno Haible  <bruno@clisp.org>
14997
14998         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
14999         * modules/xlist (Depends-on): Add 'list',
15000         * modules/xoset (Depends-on): Add 'oset'.
15001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15002
15003 2010-01-07  Bruno Haible  <bruno@clisp.org>
15004
15005         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
15006         * doc/posix-functions/strncasecmp.texi: Likewise.
15007
15008 2010-01-07  Bruno Haible  <bruno@clisp.org>
15009
15010         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
15011
15012 2010-01-07  John W. Eaton  <jwe@octave.org>
15013
15014         wctype: allow C++ use
15015         * lib/wctype.in.h: Add extern "C" block for C++.
15016
15017 2010-01-06  Eric Blake  <ebb9@byu.net>
15018
15019         maint.mk: detect incorrect GFDL usage
15020         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
15021
15022 2010-01-06  Jim Meyering  <meyering@redhat.com>
15023         and Eric Blake  <ebb9@byu.net>
15024
15025         maint.mk: ignore multi-line copyright in NEWS
15026         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
15027
15028 2010-01-06  Eric Blake  <ebb9@byu.net>
15029
15030         select: add missing dependency
15031         * modules/select-tests (Depends-on): Move sockets dependency...
15032         * modules/select (Depends-on): ...here.
15033         Reported by Ian Beckwith.
15034
15035         doc: regenerate INSTALL
15036         * doc/INSTALL: Reflect recent autoconf update.
15037         * doc/INSTALL.ISO: Likewise.
15038         * doc/INSTALL.UTF-8: Likewise.
15039
15040         pread: fix compilation on glibc
15041         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
15042         Reported by Ralf Wildenhues.
15043
15044         dirent: fix test failure
15045         * lib/dirent.in.h (includes): Guarantee ino_t.
15046         Reported by Ralf Wildenhues.
15047
15048 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
15049
15050         linkat, renameat: avoid bad free
15051         * lib/at-func2.c (at_func2): Fix typo.
15052         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
15053
15054 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15055
15056         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
15057         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
15058         to avoid failure of symlink test later.
15059
15060 2010-01-06  Eric Blake  <ebb9@byu.net>
15061
15062         stdio, unistd: guarantee ssize_t
15063         * lib/unistd.in.h (includes): Ensure that types required by POSIX
15064         2008 are exposed when needed.
15065         * lib/stdio.in.h (includes): Likewise.
15066         Reported by Ralf Wildenhues.
15067
15068 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
15069
15070         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
15071         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
15072         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
15073
15074 2010-01-06  Jim Meyering  <meyering@redhat.com>
15075
15076         readtokens: this module *does* require xalloc.h
15077         It uses only functions that were omitted by the old syntax-check rule.
15078         * lib/readtokens.c: Include "xalloc.h" once again.
15079         * modules/readtokens (Depends-on): Add xalloc.
15080         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
15081
15082 2010-01-05  Eric Blake  <ebb9@byu.net>
15083
15084         maint: support 'make announcement' from a VPATH build
15085         * top/maint.mk (announcement): Look for correct NEWS file.
15086
15087 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
15088
15089         utimens (fdutimens): ignore a negative FD, per contract
15090         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
15091         when we have a valid file descriptor.  Otherwise, using a brand
15092         new glibc (with just-patched futimens that now fails with EBADF)
15093         would cause this function to fail with ENOSYS.
15094         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
15095         See also http://bugzilla.redhat.com/552320.
15096
15097 2010-01-05  Eric Blake  <ebb9@byu.net>
15098
15099         strcase: document what it provides
15100         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
15101         gnulib module.
15102         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
15103         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
15104
15105 2010-01-05  Jim Meyering  <meyering@redhat.com>
15106
15107         maint: remove useless inclusions of "xalloc.h"
15108         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
15109         * lib/readtokens.c: Likewise.
15110         * lib/same.c: Likewise.
15111         * modules/getloadavg (Depends-on): Remove xalloc.
15112         * modules/readtokens: Likewise.
15113         * modules/same: Likewise.
15114
15115         maint.mk: include 4 more function names in alloca.h-checking regexp
15116         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
15117         regexp.  Before, we would give a false-positive (saying alloca.h
15118         is included unnecessarily) when the only uses involved omitted symbols.
15119
15120         xalloc.h: use consistent formatting
15121         * lib/xalloc.h: Move declarations to start in the first column.
15122
15123 2010-01-05  Eric Blake  <ebb9@byu.net>
15124
15125         mkdir: avoid xalloc
15126         * lib/mkdir.c (includes): Drop unused header.
15127         Reported by John W. Eaton.
15128
15129 2010-01-04  Jim Meyering  <meyering@redhat.com>
15130
15131         nl_langinfo: avoid configure-time syntax error
15132         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
15133         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
15134         the empty string.  Don't let that provoke a shell syntax error.
15135
15136         regcomp, regexec, fnmatch: avoid array bounds read error
15137         * lib/regcomp.c (build_equiv_class): From glibc:
15138         Use only the low 24 bits of a findidx return value as an index
15139         into the weights array.  Patch by Ulrich Drepper:
15140         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
15141         * lib/regexec.c (check_node_accept_bytes): Likewise.
15142         * lib/fnmatch_loop.c (FCT): Likewise.
15143
15144         regcomp: skip collseq lookup when there are no rules
15145         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
15146         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
15147
15148         regcomp: recognize ill-formed { } expressions
15149         * lib/regcomp.c (parse_dup_op): From glibc:
15150         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
15151
15152         regcomp: fix typo in comment
15153         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
15154         s/satisfy/satisfies/.
15155
15156         regcomp: sync from glibc: remove dead store
15157         * lib/regcomp.c (duplicate_node_closure): Remove useless
15158         search_duplicated_node call and dead store.
15159
15160         regcomp: sync from glibc; always use nl_langinfo
15161         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
15162         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
15163         * modules/regex (Depends-on): Add nl_langinfo.
15164
15165 2010-01-04  Eric Blake  <ebb9@byu.net>
15166
15167         fdopendir: fix configure test
15168         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
15169
15170 2010-01-01  Bruno Haible  <bruno@clisp.org>
15171
15172         wchar: Remove unused configure check.
15173         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
15174
15175 2010-01-01  Eric Blake  <ebb9@byu.net>
15176
15177         headers: make check of system header explicit
15178         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
15179         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
15180         ourselves.
15181         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15182         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15183         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15184         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
15185         internals.
15186         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
15187         missing.
15188         Suggested by Bruno Haible.
15189
15190 2010-01-01  Jim Meyering  <meyering@redhat.com>
15191
15192         ChangeLog: tweak to eliminate unnecessary copyright line
15193         * ChangeLog: Remove a copyright line that was mistakenly updated
15194         by today's update-copyright run.  Reported by Eric Blake.
15195
15196         test-update-copyright: don't let envvar setting cause test failure
15197         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15198
15199 2010-01-01  Bruno Haible  <bruno@clisp.org>
15200
15201         localename: Avoid gcc warning.
15202         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
15203         function if it is not used.
15204
15205 2010-01-01  Jim Meyering  <meyering@redhat.com>
15206
15207         update nearly all FSF copyright year lists to include 2010
15208         Use the same procedure as for 2009, outlined in
15209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
15210
15211         version-etc: set COPYRIGHT_YEAR to 2010
15212         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
15213
15214 2009-12-31  Eric Blake  <ebb9@byu.net>
15215
15216         doc: correct availability of cygwin 1.5.x getopt
15217         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
15218         variables.
15219         * doc/posix-functions/opterr.texi (opterr): Likewise.
15220         * doc/posix-functions/optind.texi (optind): Likewise.
15221         * doc/posix-functions/optopt.texi (optopt): Likewise.
15222         * doc/posix-functions/tzname.texi (tzname): Likewise.
15223
15224         openat: update maintainer
15225         * modules/openat (Maintainer): Add myself.
15226
15227         utimens: avoid shadowing warning
15228         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
15229         buffers into one, to avoid shadowing, as well as avoiding a
15230         redundant stat.
15231         Reported by Jim Meyering.
15232
15233         test-dup2: avoid compiler warning
15234         * tests/test-dup2.c (is_inheritable): Only define if used.
15235
15236 2010-01-01  Bruno Haible  <bruno@clisp.org>
15237
15238         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
15239         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
15240         defined, use wctomb instead of wcrtomb.
15241
15242 2010-01-01  Bruno Haible  <bruno@clisp.org>
15243
15244         iconv: Reject native Solaris iconv.
15245         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
15246         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
15247
15248 2009-12-31  Bruno Haible  <bruno@clisp.org>
15249
15250         * tests/test-signal.c (main): Remove test of 'SIG'.
15251
15252 2009-12-31  Bruno Haible  <bruno@clisp.org>
15253
15254         spawn: Fix incomplete fix.
15255         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15256         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15257         warnings for GNULIB_POSIXCHECK again.
15258         Reported by Eric Blake.
15259
15260 2009-12-31  Bruno Haible  <bruno@clisp.org>
15261
15262         Avoid namespace pollution on glibc systems.
15263         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
15264         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
15265         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
15266         glibc systems.
15267
15268 2009-12-31  Bruno Haible  <bruno@clisp.org>
15269
15270         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
15271         (gl_REPLACE_WCHAR_H): Turn into a no-op.
15272         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
15273         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15274         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15275         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15276         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15277
15278 2009-12-31  Bruno Haible  <bruno@clisp.org>
15279
15280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15281         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
15282         afterwards.
15283
15284 2009-12-31  Bruno Haible  <bruno@clisp.org>
15285
15286         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
15287         SYS_UTSNAME_H.
15288
15289 2009-12-31  Bruno Haible  <bruno@clisp.org>
15290
15291         spawn: Fix misapplied patch.
15292         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15293         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15294         warnings for GNULIB_POSIXCHECK.
15295
15296 2009-12-31  Bruno Haible  <bruno@clisp.org>
15297
15298         times: Update after sys_times changed.
15299         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
15300         * modules/times (Files): Add it.
15301         (configure.ac): Invoke gl_FUNC_TIMES.
15302
15303 2009-12-31  Bruno Haible  <bruno@clisp.org>
15304
15305         Use AC_C_INLINE where necessary.
15306         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
15307         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
15308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15309         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
15310         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15311         * m4/mbiter.m4 (gl_MBITER): Likewise.
15312         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15313         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15314         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
15315         * modules/u64 (configure.ac): Likewise.
15316
15317 2009-12-31  Bruno Haible  <bruno@clisp.org>
15318
15319         Use AC_C_INLINE instead of module 'inline' where possible.
15320         * modules/inline (Description): Clarify purpose.
15321         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
15322         * modules/count-one-bits (Depends-on): Remove inline.
15323         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
15324         * modules/openat (Depends-on): Remove inline.
15325         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
15326         instead of depending on module 'inline'.
15327         * modules/filevercmp (Depends-on, configure.ac): Likewise.
15328         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
15329         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
15330         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
15331         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
15332         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
15333         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
15334         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
15335         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
15336         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
15337         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
15338         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
15339         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
15340         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
15341         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
15342         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
15343         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
15344         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
15345         Likewise.
15346         * modules/unictype/property-ascii-hex-digit (Depends-on,
15347         configure.ac): Likewise.
15348         * modules/unictype/property-bidi-arabic-digit (Depends-on,
15349         configure.ac): Likewise.
15350         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
15351         configure.ac): Likewise.
15352         * modules/unictype/property-bidi-block-separator (Depends-on,
15353         configure.ac): Likewise.
15354         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
15355         configure.ac): Likewise.
15356         * modules/unictype/property-bidi-common-separator (Depends-on,
15357         configure.ac): Likewise.
15358         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
15359         Likewise.
15360         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
15361         configure.ac): Likewise.
15362         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
15363         configure.ac): Likewise.
15364         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
15365         configure.ac): Likewise.
15366         * modules/unictype/property-bidi-european-digit (Depends-on,
15367         configure.ac): Likewise.
15368         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
15369         configure.ac): Likewise.
15370         * modules/unictype/property-bidi-left-to-right (Depends-on,
15371         configure.ac): Likewise.
15372         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
15373         configure.ac): Likewise.
15374         * modules/unictype/property-bidi-other-neutral (Depends-on,
15375         configure.ac): Likewise.
15376         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
15377         Likewise.
15378         * modules/unictype/property-bidi-segment-separator (Depends-on,
15379         configure.ac): Likewise.
15380         * modules/unictype/property-bidi-whitespace (Depends-on,
15381         configure.ac): Likewise.
15382         * modules/unictype/property-combining (Depends-on, configure.ac):
15383         Likewise.
15384         * modules/unictype/property-composite (Depends-on, configure.ac):
15385         Likewise.
15386         * modules/unictype/property-currency-symbol (Depends-on,
15387         configure.ac): Likewise.
15388         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
15389         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
15390         Likewise.
15391         * modules/unictype/property-default-ignorable-code-point (Depends-on,
15392         configure.ac): Likewise.
15393         * modules/unictype/property-deprecated (Depends-on, configure.ac):
15394         Likewise.
15395         * modules/unictype/property-diacritic (Depends-on, configure.ac):
15396         Likewise.
15397         * modules/unictype/property-extender (Depends-on, configure.ac):
15398         Likewise.
15399         * modules/unictype/property-format-control (Depends-on, configure.ac):
15400         Likewise.
15401         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
15402         Likewise.
15403         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
15404         Likewise.
15405         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
15406         Likewise.
15407         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
15408         Likewise.
15409         * modules/unictype/property-hyphen (Depends-on, configure.ac):
15410         Likewise.
15411         * modules/unictype/property-id-continue (Depends-on, configure.ac):
15412         Likewise.
15413         * modules/unictype/property-id-start (Depends-on, configure.ac):
15414         Likewise.
15415         * modules/unictype/property-ideographic (Depends-on, configure.ac):
15416         Likewise.
15417         * modules/unictype/property-ids-binary-operator (Depends-on,
15418         configure.ac): Likewise.
15419         * modules/unictype/property-ids-trinary-operator (Depends-on,
15420         configure.ac): Likewise.
15421         * modules/unictype/property-ignorable-control (Depends-on,
15422         configure.ac): Likewise.
15423         * modules/unictype/property-iso-control (Depends-on, configure.ac):
15424         Likewise.
15425         * modules/unictype/property-join-control (Depends-on, configure.ac):
15426         Likewise.
15427         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
15428         Likewise.
15429         * modules/unictype/property-line-separator (Depends-on, configure.ac):
15430         Likewise.
15431         * modules/unictype/property-logical-order-exception (Depends-on,
15432         configure.ac): Likewise.
15433         * modules/unictype/property-lowercase (Depends-on, configure.ac):
15434         Likewise.
15435         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
15436         * modules/unictype/property-non-break (Depends-on, configure.ac):
15437         Likewise.
15438         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
15439         Likewise.
15440         * modules/unictype/property-numeric (Depends-on, configure.ac):
15441         Likewise.
15442         * modules/unictype/property-other-alphabetic (Depends-on,
15443         configure.ac): Likewise.
15444         * modules/unictype/property-other-default-ignorable-code-point
15445         (Depends-on, configure.ac): Likewise.
15446         * modules/unictype/property-other-grapheme-extend (Depends-on,
15447         configure.ac): Likewise.
15448         * modules/unictype/property-other-id-continue (Depends-on,
15449         configure.ac): Likewise.
15450         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
15451         Likewise.
15452         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
15453         Likewise.
15454         * modules/unictype/property-other-math (Depends-on, configure.ac):
15455         Likewise.
15456         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
15457         Likewise.
15458         * modules/unictype/property-paired-punctuation (Depends-on,
15459         configure.ac): Likewise.
15460         * modules/unictype/property-paragraph-separator (Depends-on,
15461         configure.ac): Likewise.
15462         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
15463         Likewise.
15464         * modules/unictype/property-pattern-white-space (Depends-on,
15465         configure.ac): Likewise.
15466         * modules/unictype/property-private-use (Depends-on, configure.ac):
15467         Likewise.
15468         * modules/unictype/property-punctuation (Depends-on, configure.ac):
15469         Likewise.
15470         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
15471         Likewise.
15472         * modules/unictype/property-radical (Depends-on, configure.ac):
15473         Likewise.
15474         * modules/unictype/property-sentence-terminal (Depends-on,
15475         configure.ac): Likewise.
15476         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
15477         Likewise.
15478         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
15479         * modules/unictype/property-terminal-punctuation (Depends-on,
15480         configure.ac): Likewise.
15481         * modules/unictype/property-titlecase (Depends-on, configure.ac):
15482         Likewise.
15483         * modules/unictype/property-unassigned-code-value (Depends-on,
15484         configure.ac): Likewise.
15485         * modules/unictype/property-unified-ideograph (Depends-on,
15486         configure.ac): Likewise.
15487         * modules/unictype/property-uppercase (Depends-on, configure.ac):
15488         Likewise.
15489         * modules/unictype/property-variation-selector (Depends-on,
15490         configure.ac): Likewise.
15491         * modules/unictype/property-white-space (Depends-on, configure.ac):
15492         Likewise.
15493         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
15494         Likewise.
15495         * modules/unictype/property-xid-start (Depends-on, configure.ac):
15496         Likewise.
15497         * modules/unictype/property-zero-width (Depends-on, configure.ac):
15498         Likewise.
15499         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
15500         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
15501         Likewise.
15502
15503 2009-12-31  Bruno Haible  <bruno@clisp.org>
15504
15505         Remove unnecessary AC_C_INLINE invocation.
15506         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
15507         since 2009-08-21.
15508
15509 2009-12-31  Jim Meyering  <meyering@redhat.com>
15510
15511         maint.mk: don't require explicit gpg_key_ID in cfg.mk
15512         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
15513         With this change, we can all remove the gpg_key_ID = ... definition
15514         from our respective cfg.mk files.
15515
15516         maint.mk: create announcement template in ~/, not in /tmp
15517         * top/maint.mk (emit_upload_commands): Adjust.
15518         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
15519         Remove temporary file, .ci-msg.
15520
15521 2009-12-31  Eric Blake  <ebb9@byu.net>
15522
15523         link-warning: always build headers with link warnings
15524         * modules/arpa_inet (Makefile.am): Always build replacement
15525         header.
15526         * modules/ctype (Makefile.am): Likewise.
15527         * modules/dirent (Makefile.am): Likewise.
15528         * modules/inttypes (Makefile.am): Likewise.
15529         * modules/langinfo (Makefile.am): Likewise.
15530         * modules/locale (Makefile.am): Likewise.
15531         * modules/spawn (Makefile.am): Likewise.
15532         * modules/sys_file (Makefile.am): Likewise.
15533         * modules/sys_ioctl (Makefile.am): Likewise.
15534         * modules/sys_select (Makefile.am): Likewise.
15535         * modules/sys_socket (Makefile.am): Likewise.
15536         * modules/sys_times (Makefile.am): Likewise.
15537         * modules/sys_utsname (Makefile.am): Likewise.
15538         * modules/sys_wait (Makefile.am): Likewise.
15539         * modules/wchar (Makefile.am): Likewise.
15540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
15541         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
15542         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
15543         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
15544         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
15545         Likewise.
15546         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15547         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15548         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
15549         Likewise.
15550         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
15551         Likewise.
15552         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15553         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
15554         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
15555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15556         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15558         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15559         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
15560         (gl_WCHAR_H_DEFAULTS): Likewise.
15561
15562 2009-12-31  Eric Blake  <ebb9@byu.net>
15563
15564         signal, spawn: use link warnings
15565         * lib/signal.in.h (sigset_t): Make unconditional.
15566         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
15567         (sigpending, sigprocmask, sigaction): Add link warnings.
15568         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
15569         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
15570         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
15571         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
15572         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
15573         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
15574         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
15575         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
15576         (posix_spawn_file_actions_destroy)
15577         (posix_spawn_file_actions_addopen)
15578         (posix_spawn_file_actions_addclose)
15579         (posix_spawn_file_actions_adddup2): Likewise.
15580         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
15581         * tests/test-signal.c (main): Enhance test.
15582
15583         spawn: improve wrapper support
15584         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
15585         (gl_SPAWN_H_DEFAULTS): New defaults.
15586         * modules/spawn (Makefile.am): Substitute them.
15587         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
15588         Only declare if missing or broken.
15589
15590         sys_times, sys_utsname: use include_next
15591         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
15592         header.
15593         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
15594         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15595         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15596         * modules/sys_times (Depends-on): Add include_next.
15597         (Makefile.am): Substitute additional values.
15598         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15599         * lib/sys_times.in.h (includes): Include native header, if
15600         available.
15601         * lib/sys_utsname.in.h (includes): Likewise.
15602         * tests/test-sys_times.c (main): Enhance test.
15603
15604         fdutimensat: revert prior patch
15605         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
15606         utimens.h.
15607         Reported by Bruno Haible.
15608
15609 2009-12-30  Eric Blake  <ebb9@byu.net>
15610
15611         sys_wait: drop link-warning dependency
15612         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
15613         link-warning efforts.
15614         * lib/sys_wait.in.h: Likewise.
15615
15616         fdutimensat: remove bogus dependency
15617         * modules/fdutimensat (Depends-on): Drop inline.
15618
15619         unistd: fix typo
15620         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
15621
15622 2009-12-30  Bruno Haible  <bruno@clisp.org>
15623
15624         Fix compilation error with Solaris cc.
15625         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
15626         * lib/unicase/u16-is-invariant.c: Likewise.
15627         * lib/unicase/u32-is-invariant.c: Likewise.
15628         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15629
15630 2009-12-30  Bruno Haible  <bruno@clisp.org>
15631
15632         Fix test crash.
15633         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
15634         locales.
15635         Reported by Simon Josefsson <simon@josefsson.org>.
15636
15637 2009-12-30  Bruno Haible  <bruno@clisp.org>
15638
15639         Fix compilation error on most platforms.
15640         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
15641         Reported by Simon Josefsson <simon@josefsson.org>
15642         and Nelson H. F. Beebe <beebe@math.utah.edu>.
15643
15644 2009-12-30  Eric Blake  <ebb9@byu.net>
15645
15646         futimens, utimensat: work around ntfs-3g bug
15647         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
15648         a ctime bug is present, and expand workaround to cover ntfs-3g.
15649         * lib/utimens.c (fdutimens, lutimens): Likewise.
15650         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
15651         (validate_timespec): Adjust return value.
15652         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
15653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15654         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
15655
15656 2009-12-29  Eric Blake  <ebb9@byu.net>
15657
15658         link-warning: make usage consistent
15659         * modules/ctype (Depends-on): Add link-warning.
15660         (Makefile.am): Update rules accordingly.
15661         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15662         * modules/locale (Depends-on, Makefile.am): Likewise.
15663         * modules/sys_file (Makefile.am): Likewise.
15664         * modules/getopt-posix (Makefile.am): Delete unused link warning
15665         efforts.
15666         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
15667         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
15668         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
15669         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
15670
15671         stdio: remove unused variables
15672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
15673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
15674         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15675
15676         tests: test more substitute headers
15677         * modules/ctype-tests: New file.
15678         * modules/dirent-tests: Likewise.
15679         * modules/spawn-tests: Likewise.
15680         * modules/sys_file-tests: Likewise.
15681         * modules/sys_ioctl-tests: Likewise.
15682         * modules/sys_wait-tests: Likewise.
15683         * tests/test-ctype.c: Likewise.
15684         * tests/test-dirent.c: Likewise.
15685         * tests/test-spawn.c: Likewise.
15686         * tests/test-sys_file.c: Likewise.
15687         * tests/test-sys_ioctl.c: Likewise.
15688         * tests/test-sys_wait.c: Likewise.
15689         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
15690         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
15691         whether or not flock is in use.
15692
15693         tests: remove License section from module
15694         * modules/arpa_inet-tests: Remove unneeded section.
15695         * modules/byteswap-tests: Likewise.
15696         * modules/ceilf-tests: Likewise.
15697         * modules/ceill-tests: Likewise.
15698         * modules/crypto/des-tests: Likewise.
15699         * modules/crypto/gc-arcfour-tests: Likewise.
15700         * modules/crypto/gc-arctwo-tests: Likewise.
15701         * modules/crypto/gc-des-tests: Likewise.
15702         * modules/crypto/gc-hmac-md5-tests: Likewise.
15703         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15704         * modules/crypto/gc-md2-tests: Likewise.
15705         * modules/crypto/gc-md4-tests: Likewise.
15706         * modules/crypto/gc-md5-tests: Likewise.
15707         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15708         * modules/crypto/gc-rijndael-tests: Likewise.
15709         * modules/crypto/gc-sha1-tests: Likewise.
15710         * modules/crypto/gc-tests: Likewise.
15711         * modules/crypto/md2-tests: Likewise.
15712         * modules/crypto/md4-tests: Likewise.
15713         * modules/fcntl-h-tests: Likewise.
15714         * modules/floorf-tests: Likewise.
15715         * modules/floorl-tests: Likewise.
15716         * modules/frexp-nolibm-tests: Likewise.
15717         * modules/frexp-tests: Likewise.
15718         * modules/frexpl-nolibm-tests: Likewise.
15719         * modules/frexpl-tests: Likewise.
15720         * modules/getaddrinfo-tests: Likewise.
15721         * modules/inttypes-tests: Likewise.
15722         * modules/isfinite-tests: Likewise.
15723         * modules/isinf-tests: Likewise.
15724         * modules/ldexpl-tests: Likewise.
15725         * modules/locale-tests: Likewise.
15726         * modules/math-tests: Likewise.
15727         * modules/netdb-tests: Likewise.
15728         * modules/netinet_in-tests: Likewise.
15729         * modules/printf-frexp-tests: Likewise.
15730         * modules/printf-frexpl-tests: Likewise.
15731         * modules/priv-set-tests: Likewise.
15732         * modules/random_r-tests: Likewise.
15733         * modules/round-tests: Likewise.
15734         * modules/roundf-tests: Likewise.
15735         * modules/roundl-tests: Likewise.
15736         * modules/search-tests: Likewise.
15737         * modules/select-tests: Likewise.
15738         * modules/signal-tests: Likewise.
15739         * modules/stdbool-tests: Likewise.
15740         * modules/stddef-tests: Likewise.
15741         * modules/stdint-tests: Likewise.
15742         * modules/stdio-tests: Likewise.
15743         * modules/stdlib-tests: Likewise.
15744         * modules/string-tests: Likewise.
15745         * modules/strings-tests: Likewise.
15746         * modules/sys_select-tests: Likewise.
15747         * modules/sys_socket-tests: Likewise.
15748         * modules/sys_stat-tests: Likewise.
15749         * modules/sys_time-tests: Likewise.
15750         * modules/sys_utsname-tests: Likewise.
15751         * modules/sysexits-tests: Likewise.
15752         * modules/time-tests: Likewise.
15753         * modules/trunc-tests: Likewise.
15754         * modules/truncf-tests: Likewise.
15755         * modules/truncl-tests: Likewise.
15756         * modules/tsearch-tests: Likewise.
15757         * modules/unistd-tests: Likewise.
15758         * modules/wchar-tests: Likewise.
15759         * modules/wctype-tests: Likewise.
15760
15761         tests: fix license on several tests
15762         * tests/test-des.c: Update to GPLv3+.
15763         * tests/test-flock.c: Likewise.
15764         * tests/test-fsync.c: Likewise.
15765         * tests/test-futimens.h: Likewise.
15766         * tests/test-gc-arcfour.c: Likewise.
15767         * tests/test-gc-arctwo.c: Likewise.
15768         * tests/test-gc-des.c: Likewise.
15769         * tests/test-gc-hmac-md5.c: Likewise.
15770         * tests/test-gc-hmac-sha1.c: Likewise.
15771         * tests/test-gc-md2.c: Likewise.
15772         * tests/test-gc-md4.c: Likewise.
15773         * tests/test-gc-md5.c: Likewise.
15774         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15775         * tests/test-gc-rijndael.c: Likewise.
15776         * tests/test-gc-sha1.c: Likewise.
15777         * tests/test-gc.c: Likewise.
15778         * tests/test-getcwd.c: Likewise.
15779         * tests/test-link.c: Likewise.
15780         * tests/test-link.h: Likewise.
15781         * tests/test-lutimens.h: Likewise.
15782         * tests/test-md2.c: Likewise.
15783         * tests/test-md4.c: Likewise.
15784         * tests/test-mkdir.h: Likewise.
15785         * tests/test-rename.c: Likewise.
15786         * tests/test-rename.h: Likewise.
15787         * tests/test-safe-alloc.c: Likewise.
15788         * tests/test-utimens-common.h: Likewise.
15789         * tests/test-utimens.h: Likewise.
15790
15791         maint: sync license texts
15792         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15793         * doc/gpl-3.0.texi: Revert copyright year update.
15794         * doc/lgpl-3.0.texi: Likewise.
15795
15796 2009-12-29  Jim Meyering  <meyering@redhat.com>
15797
15798         update nearly all FSF copyright year lists to include 2009
15799         The files named by the following are exempted:
15800             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15801               test -f "$dst" && { echo "$dst"; continue; }
15802               test -d "$dst" || continue
15803               echo "$dst"/$(basename "$src")
15804             done > exempt
15805             git ls-files tests/unictype >> exempt
15806         In the remaining files, convert to all-interval notation if
15807         - there is already at least one year interval like 2000-2003
15808         - the file is maintained by me
15809         - the file is in lib/uni*/, where that style already prevails
15810         Otherwise, use update-copyright's default.
15811
15812 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15813         and Eric Blake  <ebb9@byu.net>
15814
15815         tests: don't require debug system() to pass
15816         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15817         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15818         * tests/test-unlink.h (test_unlink_func): Likewise.
15819         * tests/test-fstatat.c (main): ...into callers.
15820         * tests/test-lstat.c (main): Likewise.
15821         * tests/test-rmdir.c (main): Likewise.
15822         * tests/test-unlink.c (main): Likewise.
15823         * tests/test-unlinkat.c (main): Likewise.
15824         * tests/test-areadlink-with-size.c (main): Don't require a
15825         debug-only system call to pass, aiding cross-testing to mingw.
15826         * tests/test-areadlink.c (main): Likewise.
15827         * tests/test-areadlinkat-with-size.c (main): Likewise.
15828         * tests/test-areadlinkat.c (main): Likewise.
15829         * tests/test-canonicalize-lgpl.c (main): Likewise.
15830         * tests/test-canonicalize.c (main): Likewise.
15831         * tests/test-chown.c (main): Likewise.
15832         * tests/test-fchownat.c (main): Likewise.
15833         * tests/test-lchown.c (main): Likewise.
15834         * tests/test-fdutimensat.c (main): Likewise.
15835         * tests/test-futimens.c (main): Likewise.
15836         * tests/test-link.c (main): Likewise.
15837         * tests/test-linkat.c (main): Likewise.
15838         * tests/test-mkdir.c (main): Likewise.
15839         * tests/test-mkdirat.c (main): Likewise.
15840         * tests/test-mkfifo.c (main): Likewise.
15841         * tests/test-mkfifoat.c (main): Likewise.
15842         * tests/test-mknod.c (main): Likewise.
15843         * tests/test-readlink.c (main): Likewise.
15844         * tests/test-remove.c (main): Likewise.
15845         * tests/test-rename.c (main): Likewise.
15846         * tests/test-renameat.c (main): Likewise.
15847         * tests/test-symlink.c (main): Likewise.
15848         * tests/test-symlinkat.c (main): Likewise.
15849         * tests/test-utimens.c (main): Likewise.
15850         * tests/test-utimensat.c (main): Likewise.
15851
15852 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15853
15854         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15855         on $(UNUSED_PARAMETER_H) to avoid build failure.
15856
15857 2009-12-28  Jim Meyering  <meyering@redhat.com>
15858
15859         update-copyright: you may specify a max. line length other than 72
15860         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15861
15862         maint: use consistent FSF copyright line syntax
15863         * lib/posixtm.c: Add missing comma in FSF copyright line.
15864         * lib/posixtm.h: Likewise.
15865         * lib/getugroups.c: Add missing ", Inc.".
15866
15867         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15868         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15869         FSF copyright line.  Remove trailing blanks.
15870
15871 2009-12-28  Eric Blake  <ebb9@byu.net>
15872
15873         test-dup2: reduce dependencies
15874         * modules/cloexec (Configure.ac): Set witness.
15875         * modules/dup2-tests (Depends-on): Drop cloexec.
15876         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15877         not present.
15878         Suggested by Bruno Haible.
15879
15880 2009-12-26  Bruno Haible  <bruno@clisp.org>
15881
15882         Remove an unneeded dependency.
15883         * modules/fseterr (Depends-on): Remove dup2.
15884
15885 2009-12-26  Eric Blake  <ebb9@byu.net>
15886
15887         tests: use macros.h in more places
15888         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15889         (ASSERT_STREAM): Provide default of stderr.
15890         * tests/test-dirent-safer.c: Include macros.h, using alternate
15891         stream for assertions.
15892         * tests/test-dup-safer.c: Likewise.
15893         * tests/test-freopen-safer.c: Likewise.
15894         * tests/test-getopt.c: Likewise.
15895         * tests/test-openat-safer.c: Likewise.
15896         * tests/test-pipe.c: Likewise.
15897         * tests/test-popen-safer.c: Likewise.
15898         * modules/dirent-safer-tests (Files): Include macros.h.
15899         * modules/unistd-safer-tests (Files): Likewise.
15900         * modules/freopen-safer-tests (Files): Likewise.
15901         * modules/getopt-posix-tests (Files): Likewise.
15902         * modules/openat-safer-tests (Files): Likewise.
15903         * modules/pipe-tests (Files): Likewise.
15904
15905 2009-12-26  Bruno Haible  <bruno@clisp.org>
15906
15907         javacomp: Portability fix.
15908         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15909         that it also works on Solaris.
15910
15911 2009-12-26  Bruno Haible  <bruno@clisp.org>
15912
15913         localename: Fix storage allocation of gl_locale_name_thread's result.
15914         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15915         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15916         all platforms that have 'uselocale'.
15917         (gl_locale_name_thread_unsafe): New function, extracted from
15918         gl_locale_name_thread.
15919         (gl_locale_name_thread): Call struniq on all platforms that have
15920         'uselocale'.
15921         * tests/test-localename.c (test_locale_name_thread): Check that the
15922         resulting strings are permanently allocated.
15923         * modules/localename-tests (Depends-on): Add strdup.
15924
15925 2009-12-26  Bruno Haible  <bruno@clisp.org>
15926
15927         * tests/test-localename.c (categories): Fill in the strings.
15928
15929 2009-12-26  Jim Meyering  <meyering@redhat.com>
15930
15931         isdir: complete the removal of m4/isdir.m4
15932         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15933
15934         isdir: clean up, since at least grep still uses it
15935         * lib/isdir.c: Include "isdir.h".
15936         (S_ISDIR): Remove now-unneeded definition.
15937         * modules/isdir (Files): Add lib/isdir.h.
15938         * lib/isdir.h: New file, with declaration.
15939         * m4/isdir.m4: Remove file -- unneeded.
15940
15941 2009-12-25  Bruno Haible  <bruno@clisp.org>
15942
15943         selinux-h: Make generated .h files standalone.
15944         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15945         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15946         * lib/se-selinux.in.h: Likewise.
15947         * modules/selinux-h (Depends-on): Add unused-parameter.
15948         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15949         selinux/selinux.h and selinux/context.h.
15950         Suggested by Eric Blake.
15951
15952 2009-12-25  Bruno Haible  <bruno@clisp.org>
15953
15954         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15955         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15956         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15957         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15958         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15959
15960 2009-12-24  Bruno Haible  <bruno@clisp.org>
15961
15962         openat: Fix warning.
15963         * lib/openat-proc.c: Include <unistd.h>.
15964
15965 2009-12-24  Bruno Haible  <bruno@clisp.org>
15966
15967         New module 'unused-parameter'.
15968         * build-aux/unused-parameter.h: New file, extracted from earlier
15969         gnulib-common.m4.
15970         * modules/unused-parameter: New file.
15971         * lib/unistr.h: Include unused-parameter.h.
15972         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
15973         _GL_UNUSED.
15974         * modules/unistr/base (Depends-on): Add unused-parameter.
15975
15976 2009-12-24  Bruno Haible  <bruno@clisp.org>
15977
15978         Add missing dependencies to 'extensions' module.
15979         * m4/extensions.m4: Add comment.
15980         * modules/accept4 (Depends-on): Add extensions.
15981         * modules/dup3 (Depends-on): Likewise.
15982         * modules/fcntl (Depends-on): Likewise.
15983         * modules/futimens (Depends-on): Likewise.
15984         * modules/mknod (Depends-on): Likewise.
15985         * modules/pipe2 (Depends-on): Likewise.
15986         * modules/stat-time (Depends-on): Likewise.
15987         * modules/strcasestr-simple (Depends-on): Likewise.
15988         * modules/strsignal (Depends-on): Likewise.
15989         * modules/utimensat (Depends-on): Likewise.
15990         * modules/localcharset (Depends-on): Likewise. Needed because of
15991         gl_FCNTL_O_FLAGS.
15992         * modules/wcrtomb (Depends-on): Likewise. Needed because of
15993         AC_TYPE_MBSTATE_T.
15994         * modules/wcsnrtombs (Depends-on): Likewise.
15995         * modules/wcsrtombs (Depends-on): Likewise.
15996
15997 2009-12-24  Bruno Haible  <bruno@clisp.org>
15998
15999         binary-io: Avoid gcc warning due to SET_BINARY.
16000         * lib/binary-io.h (SET_BINARY): Cast the result to void.
16001         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
16002
16003 2009-12-24  Bruno Haible  <bruno@clisp.org>
16004
16005         Avoid future namespace pollution on glibc systems.
16006         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
16007         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
16008         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
16009         glibc systems.
16010
16011 2009-12-24  Bruno Haible  <bruno@clisp.org>
16012
16013         Refactor common macros used in tests.
16014         * tests/macros.h: New file.
16015         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
16016         and/or <stdlib.h>, if appropriate.
16017         (ASSERT, SIZEOF): Remove macros.
16018         * tests/test-areadlink-with-size.c: Likewise.
16019         * tests/test-areadlinkat.c: Likewise.
16020         * tests/test-areadlinkat-with-size.c: Likewise.
16021         * tests/test-argmatch.c: Likewise.
16022         * tests/test-argv-iter.c: Likewise.
16023         * tests/test-array-mergesort.c: Likewise.
16024         * tests/test-array_list.c: Likewise.
16025         * tests/test-array_oset.c: Likewise.
16026         * tests/test-avltree_list.c: Likewise.
16027         * tests/test-avltree_oset.c: Likewise.
16028         * tests/test-avltreehash_list.c: Likewise.
16029         * tests/test-base64.c: Likewise.
16030         * tests/test-binary-io.c: Likewise.
16031         * tests/test-bitrotate.c: Likewise.
16032         * tests/test-btowc.c: Likewise.
16033         * tests/test-byteswap.c: Likewise.
16034         * tests/test-c-ctype.c: Likewise.
16035         * tests/test-c-stack.c: Likewise.
16036         * tests/test-c-strcasecmp.c: Likewise.
16037         * tests/test-c-strcasestr.c: Likewise.
16038         * tests/test-c-strncasecmp.c: Likewise.
16039         * tests/test-c-strstr.c: Likewise.
16040         * tests/test-canonicalize-lgpl.c: Likewise.
16041         * tests/test-canonicalize.c: Likewise.
16042         * tests/test-carray_list.c: Likewise.
16043         * tests/test-ceilf1.c: Likewise.
16044         * tests/test-ceilf2.c: Likewise.
16045         * tests/test-ceill.c: Likewise.
16046         * tests/test-chown.c: Likewise.
16047         * tests/test-cloexec.c: Likewise.
16048         * tests/test-copy-acl.c: Likewise.
16049         * tests/test-copy-file.c: Likewise.
16050         * tests/test-count-one-bits.c: Likewise.
16051         * tests/test-dprintf-posix.c: Likewise.
16052         * tests/test-dup2.c: Likewise.
16053         * tests/test-dup3.c: Likewise.
16054         * tests/test-duplocale.c: Likewise.
16055         * tests/test-fbufmode.c: Likewise.
16056         * tests/test-fchdir.c: Likewise.
16057         * tests/test-fchownat.c: Likewise.
16058         * tests/test-fcntl-safer.c: Likewise.
16059         * tests/test-fcntl.c: Likewise.
16060         * tests/test-fdopendir.c: Likewise.
16061         * tests/test-fdutimensat.c: Likewise.
16062         * tests/test-fflush2.c: Likewise.
16063         * tests/test-file-has-acl.c: Likewise.
16064         * tests/test-filevercmp.c: Likewise.
16065         * tests/test-flock.c: Likewise.
16066         * tests/test-floorf1.c: Likewise.
16067         * tests/test-floorf2.c: Likewise.
16068         * tests/test-floorl.c: Likewise.
16069         * tests/test-fnmatch.c: Likewise.
16070         * tests/test-fopen.h: Likewise.
16071         * tests/test-fpending.c: Likewise.
16072         * tests/test-fprintf-posix.c: Likewise.
16073         * tests/test-fpurge.c: Likewise.
16074         * tests/test-freadable.c: Likewise.
16075         * tests/test-freadahead.c: Likewise.
16076         * tests/test-freading.c: Likewise.
16077         * tests/test-freadptr.c: Likewise.
16078         * tests/test-freadptr2.c: Likewise.
16079         * tests/test-freadseek.c: Likewise.
16080         * tests/test-freopen.c: Likewise.
16081         * tests/test-frexp.c: Likewise.
16082         * tests/test-frexpl.c: Likewise.
16083         * tests/test-fseek.c: Likewise.
16084         * tests/test-fseeko.c: Likewise.
16085         * tests/test-fstatat.c: Likewise.
16086         * tests/test-fstrcmp.c: Likewise.
16087         * tests/test-fsync.c: Likewise.
16088         * tests/test-ftell.c: Likewise.
16089         * tests/test-ftello.c: Likewise.
16090         * tests/test-func.c: Likewise.
16091         * tests/test-futimens.c: Likewise.
16092         * tests/test-fwritable.c: Likewise.
16093         * tests/test-fwriting.c: Likewise.
16094         * tests/test-getcwd.c: Likewise.
16095         * tests/test-getdate.c: Likewise.
16096         * tests/test-getdelim.c: Likewise.
16097         * tests/test-getdtablesize.c: Likewise.
16098         * tests/test-getgroups.c: Likewise.
16099         * tests/test-getline.c: Likewise.
16100         * tests/test-getndelim2.c: Likewise.
16101         * tests/test-glob.c: Likewise.
16102         * tests/test-hash.c: Likewise.
16103         * tests/test-i-ring.c: Likewise.
16104         * tests/test-iconv-utf.c: Likewise.
16105         * tests/test-iconv.c: Likewise.
16106         * tests/test-idpriv-drop.c: Likewise.
16107         * tests/test-idpriv-droptemp.c: Likewise.
16108         * tests/test-inet_ntop.c: Likewise.
16109         * tests/test-inet_pton.c: Likewise.
16110         * tests/test-isblank.c: Likewise.
16111         * tests/test-isfinite.c: Likewise.
16112         * tests/test-isinf.c: Likewise.
16113         * tests/test-isnan.c: Likewise.
16114         * tests/test-isnand.h: Likewise.
16115         * tests/test-isnanf.h: Likewise.
16116         * tests/test-isnanl.h: Likewise.
16117         * tests/test-lchown.c: Likewise.
16118         * tests/test-ldexpl.c: Likewise.
16119         * tests/test-link.c: Likewise.
16120         * tests/test-linkat.c: Likewise.
16121         * tests/test-linked_list.c: Likewise.
16122         * tests/test-linkedhash_list.c: Likewise.
16123         * tests/test-localename.c: Likewise.
16124         * tests/test-lseek.c: Likewise.
16125         * tests/test-lstat.c: Likewise.
16126         * tests/test-mbmemcasecmp.c: Likewise.
16127         * tests/test-mbmemcasecoll.c: Likewise.
16128         * tests/test-mbrtowc.c: Likewise.
16129         * tests/test-mbscasecmp.c: Likewise.
16130         * tests/test-mbscasestr1.c: Likewise.
16131         * tests/test-mbscasestr2.c: Likewise.
16132         * tests/test-mbscasestr3.c: Likewise.
16133         * tests/test-mbscasestr4.c: Likewise.
16134         * tests/test-mbschr.c: Likewise.
16135         * tests/test-mbscspn.c: Likewise.
16136         * tests/test-mbsinit.c: Likewise.
16137         * tests/test-mbsncasecmp.c: Likewise.
16138         * tests/test-mbsnrtowcs.c: Likewise.
16139         * tests/test-mbspbrk.c: Likewise.
16140         * tests/test-mbspcasecmp.c: Likewise.
16141         * tests/test-mbsrchr.c: Likewise.
16142         * tests/test-mbsrtowcs.c: Likewise.
16143         * tests/test-mbsspn.c: Likewise.
16144         * tests/test-mbsstr1.c: Likewise.
16145         * tests/test-mbsstr2.c: Likewise.
16146         * tests/test-mbsstr3.c: Likewise.
16147         * tests/test-memchr.c: Likewise.
16148         * tests/test-memchr2.c: Likewise.
16149         * tests/test-memcmp.c: Likewise.
16150         * tests/test-memmem.c: Likewise.
16151         * tests/test-memrchr.c: Likewise.
16152         * tests/test-mkdir.c: Likewise.
16153         * tests/test-mkdirat.c: Likewise.
16154         * tests/test-mkfifo.c: Likewise.
16155         * tests/test-mkfifoat.c: Likewise.
16156         * tests/test-mknod.c: Likewise.
16157         * tests/test-nanosleep.c: Likewise.
16158         * tests/test-nl_langinfo.c: Likewise.
16159         * tests/test-obstack-printf.c: Likewise.
16160         * tests/test-open.c: Likewise.
16161         * tests/test-openat.c: Likewise.
16162         * tests/test-pipe-filter-gi1.c: Likewise.
16163         * tests/test-pipe-filter-gi2-main.c: Likewise.
16164         * tests/test-pipe-filter-ii1.c: Likewise.
16165         * tests/test-pipe-filter-ii2-main.c: Likewise.
16166         * tests/test-pipe2.c: Likewise.
16167         * tests/test-popen.h: Likewise.
16168         * tests/test-posixtm.c: Likewise.
16169         * tests/test-pread.c: Likewise.
16170         * tests/test-printf-frexp.c: Likewise.
16171         * tests/test-printf-frexpl.c: Likewise.
16172         * tests/test-printf-posix.c: Likewise.
16173         * tests/test-priv-set.c: Likewise.
16174         * tests/test-quotearg.c: Likewise.
16175         * tests/test-random_r.c: Likewise.
16176         * tests/test-rawmemchr.c: Likewise.
16177         * tests/test-rbtree_list.c: Likewise.
16178         * tests/test-rbtree_oset.c: Likewise.
16179         * tests/test-rbtreehash_list.c: Likewise.
16180         * tests/test-readlink.c: Likewise.
16181         * tests/test-remove.c: Likewise.
16182         * tests/test-rename.c: Likewise.
16183         * tests/test-renameat.c: Likewise.
16184         * tests/test-rmdir.c: Likewise.
16185         * tests/test-round1.c: Likewise.
16186         * tests/test-roundf1.c: Likewise.
16187         * tests/test-roundl.c: Likewise.
16188         * tests/test-safe-alloc.c: Likewise.
16189         * tests/test-sameacls.c: Likewise.
16190         * tests/test-set-mode-acl.c: Likewise.
16191         * tests/test-setenv.c: Likewise.
16192         * tests/test-sigaction.c: Likewise.
16193         * tests/test-signbit.c: Likewise.
16194         * tests/test-sleep.c: Likewise.
16195         * tests/test-snprintf-posix.c: Likewise.
16196         * tests/test-snprintf.c: Likewise.
16197         * tests/test-sprintf-posix.c: Likewise.
16198         * tests/test-stat-time.c: Likewise.
16199         * tests/test-stat.c: Likewise.
16200         * tests/test-strcasestr.c: Likewise.
16201         * tests/test-strchrnul.c: Likewise.
16202         * tests/test-strerror.c: Likewise.
16203         * tests/test-striconv.c: Likewise.
16204         * tests/test-striconveh.c: Likewise.
16205         * tests/test-striconveha.c: Likewise.
16206         * tests/test-strsignal.c: Likewise.
16207         * tests/test-strstr.c: Likewise.
16208         * tests/test-strtod.c: Likewise.
16209         * tests/test-strverscmp.c: Likewise.
16210         * tests/test-symlink.c: Likewise.
16211         * tests/test-symlinkat.c: Likewise.
16212         * tests/test-trunc1.c: Likewise.
16213         * tests/test-trunc2.c: Likewise.
16214         * tests/test-truncf1.c: Likewise.
16215         * tests/test-truncf2.c: Likewise.
16216         * tests/test-truncl.c: Likewise.
16217         * tests/test-uname.c: Likewise.
16218         * tests/test-unlink.c: Likewise.
16219         * tests/test-unlinkat.c: Likewise.
16220         * tests/test-unsetenv.c: Likewise.
16221         * tests/test-usleep.c: Likewise.
16222         * tests/test-utimens.c: Likewise.
16223         * tests/test-utimensat.c: Likewise.
16224         * tests/test-vasnprintf-posix.c: Likewise.
16225         * tests/test-vasnprintf-posix2.c: Likewise.
16226         * tests/test-vasnprintf.c: Likewise.
16227         * tests/test-vasprintf-posix.c: Likewise.
16228         * tests/test-vasprintf.c: Likewise.
16229         * tests/test-vdprintf-posix.c: Likewise.
16230         * tests/test-vfprintf-posix.c: Likewise.
16231         * tests/test-vprintf-posix.c: Likewise.
16232         * tests/test-vsnprintf-posix.c: Likewise.
16233         * tests/test-vsnprintf.c: Likewise.
16234         * tests/test-vsprintf-posix.c: Likewise.
16235         * tests/test-wcrtomb.c: Likewise.
16236         * tests/test-wcsnrtombs.c: Likewise.
16237         * tests/test-wcsrtombs.c: Likewise.
16238         * tests/test-wctype.c: Likewise.
16239         * tests/test-wcwidth.c: Likewise.
16240         * tests/test-xfprintf-posix.c: Likewise.
16241         * tests/test-xmemdup0.c: Likewise.
16242         * tests/test-xprintf-posix.c: Likewise.
16243         * tests/test-xvasprintf.c: Likewise.
16244         * tests/unicase/test-locale-language.c: Likewise.
16245         * tests/unicase/test-mapping-part1.h: Likewise.
16246         * tests/unicase/test-predicate-part1.h: Likewise.
16247         * tests/unicase/test-u8-casecmp.c: Likewise.
16248         * tests/unicase/test-u8-casecoll.c: Likewise.
16249         * tests/unicase/test-u8-casefold.c: Likewise.
16250         * tests/unicase/test-u8-is-cased.c: Likewise.
16251         * tests/unicase/test-u8-is-casefolded.c: Likewise.
16252         * tests/unicase/test-u8-is-lowercase.c: Likewise.
16253         * tests/unicase/test-u8-is-titlecase.c: Likewise.
16254         * tests/unicase/test-u8-is-uppercase.c: Likewise.
16255         * tests/unicase/test-u8-tolower.c: Likewise.
16256         * tests/unicase/test-u8-totitle.c: Likewise.
16257         * tests/unicase/test-u8-toupper.c: Likewise.
16258         * tests/unicase/test-u16-casecmp.c: Likewise.
16259         * tests/unicase/test-u16-casecoll.c: Likewise.
16260         * tests/unicase/test-u16-casefold.c: Likewise.
16261         * tests/unicase/test-u16-is-cased.c: Likewise.
16262         * tests/unicase/test-u16-is-casefolded.c: Likewise.
16263         * tests/unicase/test-u16-is-lowercase.c: Likewise.
16264         * tests/unicase/test-u16-is-titlecase.c: Likewise.
16265         * tests/unicase/test-u16-is-uppercase.c: Likewise.
16266         * tests/unicase/test-u16-tolower.c: Likewise.
16267         * tests/unicase/test-u16-totitle.c: Likewise.
16268         * tests/unicase/test-u16-toupper.c: Likewise.
16269         * tests/unicase/test-u32-casecmp.c: Likewise.
16270         * tests/unicase/test-u32-casecoll.c: Likewise.
16271         * tests/unicase/test-u32-casefold.c: Likewise.
16272         * tests/unicase/test-u32-is-cased.c: Likewise.
16273         * tests/unicase/test-u32-is-casefolded.c: Likewise.
16274         * tests/unicase/test-u32-is-lowercase.c: Likewise.
16275         * tests/unicase/test-u32-is-titlecase.c: Likewise.
16276         * tests/unicase/test-u32-is-uppercase.c: Likewise.
16277         * tests/unicase/test-u32-tolower.c: Likewise.
16278         * tests/unicase/test-u32-totitle.c: Likewise.
16279         * tests/unicase/test-u32-toupper.c: Likewise.
16280         * tests/unicase/test-ulc-casecmp.c: Likewise.
16281         * tests/unicase/test-ulc-casecoll.c: Likewise.
16282         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16283         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16284         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16285         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16286         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16287         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16288         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16289         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16290         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16291         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16292         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16293         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16294         * tests/unictype/test-bidi_byname.c: Likewise.
16295         * tests/unictype/test-bidi_name.c: Likewise.
16296         * tests/unictype/test-bidi_of.c: Likewise.
16297         * tests/unictype/test-bidi_test.c: Likewise.
16298         * tests/unictype/test-block_list.c: Likewise.
16299         * tests/unictype/test-block_of.c: Likewise.
16300         * tests/unictype/test-block_test.c: Likewise.
16301         * tests/unictype/test-categ_and.c: Likewise.
16302         * tests/unictype/test-categ_and_not.c: Likewise.
16303         * tests/unictype/test-categ_byname.c: Likewise.
16304         * tests/unictype/test-categ_name.c: Likewise.
16305         * tests/unictype/test-categ_none.c: Likewise.
16306         * tests/unictype/test-categ_of.c: Likewise.
16307         * tests/unictype/test-categ_or.c: Likewise.
16308         * tests/unictype/test-categ_test_withtable.c: Likewise.
16309         * tests/unictype/test-combining.c: Likewise.
16310         * tests/unictype/test-decdigit.c: Likewise.
16311         * tests/unictype/test-digit.c: Likewise.
16312         * tests/unictype/test-mirror.c: Likewise.
16313         * tests/unictype/test-numeric.c: Likewise.
16314         * tests/unictype/test-pr_byname.c: Likewise.
16315         * tests/unictype/test-pr_test.c: Likewise.
16316         * tests/unictype/test-predicate-part1.h: Likewise.
16317         * tests/unictype/test-scripts.c: Likewise.
16318         * tests/unictype/test-sy_c_ident.c: Likewise.
16319         * tests/unictype/test-sy_java_ident.c: Likewise.
16320         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
16321         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
16322         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
16323         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
16324         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
16325         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
16326         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
16327         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
16328         * tests/uninorm/test-canonical-decomposition.c: Likewise.
16329         * tests/uninorm/test-compat-decomposition.c: Likewise.
16330         * tests/uninorm/test-composition.c: Likewise.
16331         * tests/uninorm/test-decomposing-form.c: Likewise.
16332         * tests/uninorm/test-decomposition.c: Likewise.
16333         * tests/uninorm/test-u8-nfc.c: Likewise.
16334         * tests/uninorm/test-u8-nfd.c: Likewise.
16335         * tests/uninorm/test-u8-nfkc.c: Likewise.
16336         * tests/uninorm/test-u8-nfkd.c: Likewise.
16337         * tests/uninorm/test-u8-normcmp.c: Likewise.
16338         * tests/uninorm/test-u8-normcoll.c: Likewise.
16339         * tests/uninorm/test-u16-nfc.c: Likewise.
16340         * tests/uninorm/test-u16-nfd.c: Likewise.
16341         * tests/uninorm/test-u16-nfkc.c: Likewise.
16342         * tests/uninorm/test-u16-nfkd.c: Likewise.
16343         * tests/uninorm/test-u16-normcmp.c: Likewise.
16344         * tests/uninorm/test-u16-normcoll.c: Likewise.
16345         * tests/uninorm/test-u32-nfc.c: Likewise.
16346         * tests/uninorm/test-u32-nfd.c: Likewise.
16347         * tests/uninorm/test-u32-nfkc.c: Likewise.
16348         * tests/uninorm/test-u32-nfkd.c: Likewise.
16349         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16350         * tests/uninorm/test-u32-normcmp.c: Likewise.
16351         * tests/uninorm/test-u32-normcoll.c: Likewise.
16352         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
16353         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16354         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16355         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16356         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16357         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16358         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16359         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16360         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16361         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16362         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16363         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16364         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16365         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16366         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16367         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16368         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16369         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16370         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16371         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16372         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16373         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16374         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16375         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16376         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16377         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16378         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16379         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16380         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16381         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
16382         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
16383         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
16384         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
16385         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16386         * tests/uniwidth/test-u8-width.c: Likewise.
16387         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16388         * tests/uniwidth/test-u16-width.c: Likewise.
16389         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16390         * tests/uniwidth/test-u32-width.c: Likewise.
16391         * tests/uniwidth/test-uc_width.c: Likewise.
16392         * tests/uniwidth/test-uc_width2.c: Likewise.
16393         * modules/acl-tests (Files): Add tests/macros.h.
16394         * modules/areadlink-tests (Files): Likewise.
16395         * modules/areadlink-with-size-tests (Files): Likewise.
16396         * modules/areadlinkat-tests (Files): Likewise.
16397         * modules/areadlinkat-with-size-tests (Files): Likewise.
16398         * modules/argmatch-tests (Files): Likewise.
16399         * modules/argv-iter-tests (Files): Likewise.
16400         * modules/array-list-tests (Files): Likewise.
16401         * modules/array-mergesort-tests (Files): Likewise.
16402         * modules/array-oset-tests (Files): Likewise.
16403         * modules/avltree-list-tests (Files): Likewise.
16404         * modules/avltree-oset-tests (Files): Likewise.
16405         * modules/avltreehash-list-tests (Files): Likewise.
16406         * modules/base64-tests (Files): Likewise.
16407         * modules/binary-io-tests (Files): Likewise.
16408         * modules/bitrotate-tests (Files): Likewise.
16409         * modules/btowc-tests (Files): Likewise.
16410         * modules/byteswap-tests (Files): Likewise.
16411         * modules/c-ctype-tests (Files): Likewise.
16412         * modules/c-stack-tests (Files): Likewise.
16413         * modules/c-strcase-tests (Files): Likewise.
16414         * modules/c-strcasestr-tests (Files): Likewise.
16415         * modules/c-strstr-tests (Files): Likewise.
16416         * modules/canonicalize-lgpl-tests (Files): Likewise.
16417         * modules/canonicalize-tests (Files): Likewise.
16418         * modules/carray-list-tests (Files): Likewise.
16419         * modules/ceilf-tests (Files): Likewise.
16420         * modules/ceill-tests (Files): Likewise.
16421         * modules/chown-tests (Files): Likewise.
16422         * modules/cloexec-tests (Files): Likewise.
16423         * modules/copy-file-tests (Files): Likewise.
16424         * modules/count-one-bits-tests (Files): Likewise.
16425         * modules/dprintf-posix-tests (Files): Likewise.
16426         * modules/dup2-tests (Files): Likewise.
16427         * modules/dup3-tests (Files): Likewise.
16428         * modules/duplocale-tests (Files): Likewise.
16429         * modules/fbufmode-tests (Files): Likewise.
16430         * modules/fchdir-tests (Files): Likewise.
16431         * modules/fcntl-safer-tests (Files): Likewise.
16432         * modules/fcntl-tests (Files): Likewise.
16433         * modules/fdopendir-tests (Files): Likewise.
16434         * modules/fdutimensat-tests (Files): Likewise.
16435         * modules/fflush-tests (Files): Likewise.
16436         * modules/filevercmp-tests (Files): Likewise.
16437         * modules/flock-tests (Files): Likewise.
16438         * modules/floorf-tests (Files): Likewise.
16439         * modules/floorl-tests (Files): Likewise.
16440         * modules/fnmatch-tests (Files): Likewise.
16441         * modules/fopen-safer-tests (Files): Likewise.
16442         * modules/fopen-tests (Files): Likewise.
16443         * modules/fpending-tests (Files): Likewise.
16444         * modules/fprintf-posix-tests (Files): Likewise.
16445         * modules/fpurge-tests (Files): Likewise.
16446         * modules/freadable-tests (Files): Likewise.
16447         * modules/freadahead-tests (Files): Likewise.
16448         * modules/freading-tests (Files): Likewise.
16449         * modules/freadptr-tests (Files): Likewise.
16450         * modules/freadseek-tests (Files): Likewise.
16451         * modules/freopen-tests (Files): Likewise.
16452         * modules/frexp-nolibm-tests (Files): Likewise.
16453         * modules/frexp-tests (Files): Likewise.
16454         * modules/frexpl-nolibm-tests (Files): Likewise.
16455         * modules/frexpl-tests (Files): Likewise.
16456         * modules/fseek-tests (Files): Likewise.
16457         * modules/fseeko-tests (Files): Likewise.
16458         * modules/fstrcmp-tests (Files): Likewise.
16459         * modules/fsync-tests (Files): Likewise.
16460         * modules/ftell-tests (Files): Likewise.
16461         * modules/ftello-tests (Files): Likewise.
16462         * modules/func-tests (Files): Likewise.
16463         * modules/futimens-tests (Files): Likewise.
16464         * modules/fwritable-tests (Files): Likewise.
16465         * modules/fwriting-tests (Files): Likewise.
16466         * modules/getcwd-tests (Files): Likewise.
16467         * modules/getdate-tests (Files): Likewise.
16468         * modules/getdelim-tests (Files): Likewise.
16469         * modules/getdtablesize-tests (Files): Likewise.
16470         * modules/getgroups-tests (Files): Likewise.
16471         * modules/getline-tests (Files): Likewise.
16472         * modules/getndelim2-tests (Files): Likewise.
16473         * modules/glob-tests (Files): Likewise.
16474         * modules/hash-tests (Files): Likewise.
16475         * modules/i-ring-tests (Files): Likewise.
16476         * modules/iconv-tests (Files): Likewise.
16477         * modules/iconv_open-utf-tests (Files): Likewise.
16478         * modules/idpriv-drop-tests (Files): Likewise.
16479         * modules/idpriv-droptemp-tests (Files): Likewise.
16480         * modules/inet_ntop-tests (Files): Likewise.
16481         * modules/inet_pton-tests (Files): Likewise.
16482         * modules/isblank-tests (Files): Likewise.
16483         * modules/isfinite-tests (Files): Likewise.
16484         * modules/isinf-tests (Files): Likewise.
16485         * modules/isnan-tests (Files): Likewise.
16486         * modules/isnand-nolibm-tests (Files): Likewise.
16487         * modules/isnand-tests (Files): Likewise.
16488         * modules/isnanf-nolibm-tests (Files): Likewise.
16489         * modules/isnanf-tests (Files): Likewise.
16490         * modules/isnanl-nolibm-tests (Files): Likewise.
16491         * modules/isnanl-tests (Files): Likewise.
16492         * modules/lchown-tests (Files): Likewise.
16493         * modules/ldexpl-tests (Files): Likewise.
16494         * modules/link-tests (Files): Likewise.
16495         * modules/linkat-tests (Files): Likewise.
16496         * modules/linked-list-tests (Files): Likewise.
16497         * modules/linkedhash-list-tests (Files): Likewise.
16498         * modules/localename-tests (Files): Likewise.
16499         * modules/lseek-tests (Files): Likewise.
16500         * modules/lstat-tests (Files): Likewise.
16501         * modules/mbmemcasecmp-tests (Files): Likewise.
16502         * modules/mbmemcasecoll-tests (Files): Likewise.
16503         * modules/mbrtowc-tests (Files): Likewise.
16504         * modules/mbscasecmp-tests (Files): Likewise.
16505         * modules/mbscasestr-tests (Files): Likewise.
16506         * modules/mbschr-tests (Files): Likewise.
16507         * modules/mbscspn-tests (Files): Likewise.
16508         * modules/mbsinit-tests (Files): Likewise.
16509         * modules/mbsncasecmp-tests (Files): Likewise.
16510         * modules/mbsnrtowcs-tests (Files): Likewise.
16511         * modules/mbspbrk-tests (Files): Likewise.
16512         * modules/mbspcasecmp-tests (Files): Likewise.
16513         * modules/mbsrchr-tests (Files): Likewise.
16514         * modules/mbsrtowcs-tests (Files): Likewise.
16515         * modules/mbsspn-tests (Files): Likewise.
16516         * modules/mbsstr-tests (Files): Likewise.
16517         * modules/memchr-tests (Files): Likewise.
16518         * modules/memchr2-tests (Files): Likewise.
16519         * modules/memcmp-tests (Files): Likewise.
16520         * modules/memmem-tests (Files): Likewise.
16521         * modules/memrchr-tests (Files): Likewise.
16522         * modules/mkdir-tests (Files): Likewise.
16523         * modules/mkfifo-tests (Files): Likewise.
16524         * modules/mkfifoat-tests (Files): Likewise.
16525         * modules/mknod-tests (Files): Likewise.
16526         * modules/nanosleep-tests (Files): Likewise.
16527         * modules/nl_langinfo-tests (Files): Likewise.
16528         * modules/obstack-printf-tests (Files): Likewise.
16529         * modules/open-tests (Files): Likewise.
16530         * modules/openat-tests (Files): Likewise.
16531         * modules/pipe-filter-gi-tests (Files): Likewise.
16532         * modules/pipe-filter-ii-tests (Files): Likewise.
16533         * modules/pipe2-tests (Files): Likewise.
16534         * modules/popen-safer-tests (Files): Likewise.
16535         * modules/popen-tests (Files): Likewise.
16536         * modules/posixtm-tests (Files): Likewise.
16537         * modules/pread-tests (Files): Likewise.
16538         * modules/printf-frexp-tests (Files): Likewise.
16539         * modules/printf-frexpl-tests (Files): Likewise.
16540         * modules/printf-posix-tests (Files): Likewise.
16541         * modules/priv-set-tests (Files): Likewise.
16542         * modules/quotearg-tests (Files): Likewise.
16543         * modules/random_r-tests (Files): Likewise.
16544         * modules/rawmemchr-tests (Files): Likewise.
16545         * modules/rbtree-list-tests (Files): Likewise.
16546         * modules/rbtree-oset-tests (Files): Likewise.
16547         * modules/rbtreehash-list-tests (Files): Likewise.
16548         * modules/readlink-tests (Files): Likewise.
16549         * modules/remove-tests (Files): Likewise.
16550         * modules/rename-tests (Files): Likewise.
16551         * modules/renameat-tests (Files): Likewise.
16552         * modules/rmdir-tests (Files): Likewise.
16553         * modules/round-tests (Files): Likewise.
16554         * modules/roundf-tests (Files): Likewise.
16555         * modules/roundl-tests (Files): Likewise.
16556         * modules/safe-alloc-tests (Files): Likewise.
16557         * modules/setenv-tests (Files): Likewise.
16558         * modules/sigaction-tests (Files): Likewise.
16559         * modules/signbit-tests (Files): Likewise.
16560         * modules/sleep-tests (Files): Likewise.
16561         * modules/snprintf-posix-tests (Files): Likewise.
16562         * modules/snprintf-tests (Files): Likewise.
16563         * modules/sprintf-posix-tests (Files): Likewise.
16564         * modules/stat-tests (Files): Likewise.
16565         * modules/stat-time-tests (Files): Likewise.
16566         * modules/strcasestr-tests (Files): Likewise.
16567         * modules/strchrnul-tests (Files): Likewise.
16568         * modules/strerror-tests (Files): Likewise.
16569         * modules/striconv-tests (Files): Likewise.
16570         * modules/striconveh-tests (Files): Likewise.
16571         * modules/striconveha-tests (Files): Likewise.
16572         * modules/strsignal-tests (Files): Likewise.
16573         * modules/strstr-tests (Files): Likewise.
16574         * modules/strtod-tests (Files): Likewise.
16575         * modules/strverscmp-tests (Files): Likewise.
16576         * modules/symlink-tests (Files): Likewise.
16577         * modules/symlinkat-tests (Files): Likewise.
16578         * modules/trunc-tests (Files): Likewise.
16579         * modules/truncf-tests (Files): Likewise.
16580         * modules/truncl-tests (Files): Likewise.
16581         * modules/uname-tests (Files): Likewise.
16582         * modules/unicase/cased-tests (Files): Likewise.
16583         * modules/unicase/ignorable-tests (Files): Likewise.
16584         * modules/unicase/locale-language-tests (Files): Likewise.
16585         * modules/unicase/tolower-tests (Files): Likewise.
16586         * modules/unicase/totitle-tests (Files): Likewise.
16587         * modules/unicase/toupper-tests (Files): Likewise.
16588         * modules/unicase/u8-casecmp-tests (Files): Likewise.
16589         * modules/unicase/u8-casecoll-tests (Files): Likewise.
16590         * modules/unicase/u8-casefold-tests (Files): Likewise.
16591         * modules/unicase/u8-is-cased-tests (Files): Likewise.
16592         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
16593         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
16594         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
16595         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
16596         * modules/unicase/u8-tolower-tests (Files): Likewise.
16597         * modules/unicase/u8-totitle-tests (Files): Likewise.
16598         * modules/unicase/u8-toupper-tests (Files): Likewise.
16599         * modules/unicase/u16-casecmp-tests (Files): Likewise.
16600         * modules/unicase/u16-casecoll-tests (Files): Likewise.
16601         * modules/unicase/u16-casefold-tests (Files): Likewise.
16602         * modules/unicase/u16-is-cased-tests (Files): Likewise.
16603         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
16604         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
16605         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
16606         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
16607         * modules/unicase/u16-tolower-tests (Files): Likewise.
16608         * modules/unicase/u16-totitle-tests (Files): Likewise.
16609         * modules/unicase/u16-toupper-tests (Files): Likewise.
16610         * modules/unicase/u32-casecmp-tests (Files): Likewise.
16611         * modules/unicase/u32-casecoll-tests (Files): Likewise.
16612         * modules/unicase/u32-casefold-tests (Files): Likewise.
16613         * modules/unicase/u32-is-cased-tests (Files): Likewise.
16614         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
16615         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
16616         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
16617         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
16618         * modules/unicase/u32-tolower-tests (Files): Likewise.
16619         * modules/unicase/u32-totitle-tests (Files): Likewise.
16620         * modules/unicase/u32-toupper-tests (Files): Likewise.
16621         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
16622         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
16623         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
16624         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
16625         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
16626         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
16627         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
16628         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
16629         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
16630         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
16631         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
16632         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
16633         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
16634         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
16635         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
16636         * modules/unictype/bidicategory-name-tests (Files): Likewise.
16637         * modules/unictype/bidicategory-of-tests (Files): Likewise.
16638         * modules/unictype/bidicategory-test-tests (Files): Likewise.
16639         * modules/unictype/block-list-tests (Files): Likewise.
16640         * modules/unictype/block-of-tests (Files): Likewise.
16641         * modules/unictype/block-test-tests (Files): Likewise.
16642         * modules/unictype/category-C-tests (Files): Likewise.
16643         * modules/unictype/category-Cc-tests (Files): Likewise.
16644         * modules/unictype/category-Cf-tests (Files): Likewise.
16645         * modules/unictype/category-Cn-tests (Files): Likewise.
16646         * modules/unictype/category-Co-tests (Files): Likewise.
16647         * modules/unictype/category-Cs-tests (Files): Likewise.
16648         * modules/unictype/category-L-tests (Files): Likewise.
16649         * modules/unictype/category-Ll-tests (Files): Likewise.
16650         * modules/unictype/category-Lm-tests (Files): Likewise.
16651         * modules/unictype/category-Lo-tests (Files): Likewise.
16652         * modules/unictype/category-Lt-tests (Files): Likewise.
16653         * modules/unictype/category-Lu-tests (Files): Likewise.
16654         * modules/unictype/category-M-tests (Files): Likewise.
16655         * modules/unictype/category-Mc-tests (Files): Likewise.
16656         * modules/unictype/category-Me-tests (Files): Likewise.
16657         * modules/unictype/category-Mn-tests (Files): Likewise.
16658         * modules/unictype/category-N-tests (Files): Likewise.
16659         * modules/unictype/category-Nd-tests (Files): Likewise.
16660         * modules/unictype/category-Nl-tests (Files): Likewise.
16661         * modules/unictype/category-No-tests (Files): Likewise.
16662         * modules/unictype/category-P-tests (Files): Likewise.
16663         * modules/unictype/category-Pc-tests (Files): Likewise.
16664         * modules/unictype/category-Pd-tests (Files): Likewise.
16665         * modules/unictype/category-Pe-tests (Files): Likewise.
16666         * modules/unictype/category-Pf-tests (Files): Likewise.
16667         * modules/unictype/category-Pi-tests (Files): Likewise.
16668         * modules/unictype/category-Po-tests (Files): Likewise.
16669         * modules/unictype/category-Ps-tests (Files): Likewise.
16670         * modules/unictype/category-S-tests (Files): Likewise.
16671         * modules/unictype/category-Sc-tests (Files): Likewise.
16672         * modules/unictype/category-Sk-tests (Files): Likewise.
16673         * modules/unictype/category-Sm-tests (Files): Likewise.
16674         * modules/unictype/category-So-tests (Files): Likewise.
16675         * modules/unictype/category-Z-tests (Files): Likewise.
16676         * modules/unictype/category-Zl-tests (Files): Likewise.
16677         * modules/unictype/category-Zp-tests (Files): Likewise.
16678         * modules/unictype/category-Zs-tests (Files): Likewise.
16679         * modules/unictype/category-and-not-tests (Files): Likewise.
16680         * modules/unictype/category-and-tests (Files): Likewise.
16681         * modules/unictype/category-byname-tests (Files): Likewise.
16682         * modules/unictype/category-name-tests (Files): Likewise.
16683         * modules/unictype/category-none-tests (Files): Likewise.
16684         * modules/unictype/category-of-tests (Files): Likewise.
16685         * modules/unictype/category-or-tests (Files): Likewise.
16686         * modules/unictype/category-test-withtable-tests (Files): Likewise.
16687         * modules/unictype/combining-class-tests (Files): Likewise.
16688         * modules/unictype/ctype-alnum-tests (Files): Likewise.
16689         * modules/unictype/ctype-alpha-tests (Files): Likewise.
16690         * modules/unictype/ctype-blank-tests (Files): Likewise.
16691         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
16692         * modules/unictype/ctype-digit-tests (Files): Likewise.
16693         * modules/unictype/ctype-graph-tests (Files): Likewise.
16694         * modules/unictype/ctype-lower-tests (Files): Likewise.
16695         * modules/unictype/ctype-print-tests (Files): Likewise.
16696         * modules/unictype/ctype-punct-tests (Files): Likewise.
16697         * modules/unictype/ctype-space-tests (Files): Likewise.
16698         * modules/unictype/ctype-upper-tests (Files): Likewise.
16699         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
16700         * modules/unictype/decimal-digit-tests (Files): Likewise.
16701         * modules/unictype/digit-tests (Files): Likewise.
16702         * modules/unictype/mirror-tests (Files): Likewise.
16703         * modules/unictype/numeric-tests (Files): Likewise.
16704         * modules/unictype/property-alphabetic-tests (Files): Likewise.
16705         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
16706         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
16707         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
16708         Likewise.
16709         * modules/unictype/property-bidi-block-separator-tests (Files):
16710         Likewise.
16711         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16712         Likewise.
16713         * modules/unictype/property-bidi-common-separator-tests (Files):
16714         Likewise.
16715         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16716         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16717         Likewise.
16718         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16719         Likewise.
16720         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16721         Likewise.
16722         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16723         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16724         Likewise.
16725         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16726         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16727         Likewise.
16728         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16729         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16730         * modules/unictype/property-bidi-segment-separator-tests (Files):
16731         Likewise.
16732         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16733         * modules/unictype/property-byname-tests (Files): Likewise.
16734         * modules/unictype/property-combining-tests (Files): Likewise.
16735         * modules/unictype/property-composite-tests (Files): Likewise.
16736         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16737         * modules/unictype/property-dash-tests (Files): Likewise.
16738         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16739         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16740         Likewise.
16741         * modules/unictype/property-deprecated-tests (Files): Likewise.
16742         * modules/unictype/property-diacritic-tests (Files): Likewise.
16743         * modules/unictype/property-extender-tests (Files): Likewise.
16744         * modules/unictype/property-format-control-tests (Files): Likewise.
16745         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16746         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16747         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16748         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16749         * modules/unictype/property-hyphen-tests (Files): Likewise.
16750         * modules/unictype/property-id-continue-tests (Files): Likewise.
16751         * modules/unictype/property-id-start-tests (Files): Likewise.
16752         * modules/unictype/property-ideographic-tests (Files): Likewise.
16753         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16754         * modules/unictype/property-ids-trinary-operator-tests (Files):
16755         Likewise.
16756         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16757         * modules/unictype/property-iso-control-tests (Files): Likewise.
16758         * modules/unictype/property-join-control-tests (Files): Likewise.
16759         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16760         * modules/unictype/property-line-separator-tests (Files): Likewise.
16761         * modules/unictype/property-logical-order-exception-tests (Files):
16762         Likewise.
16763         * modules/unictype/property-lowercase-tests (Files): Likewise.
16764         * modules/unictype/property-math-tests (Files): Likewise.
16765         * modules/unictype/property-non-break-tests (Files): Likewise.
16766         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16767         * modules/unictype/property-numeric-tests (Files): Likewise.
16768         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16769         * modules/unictype/property-other-default-ignorable-code-point-tests
16770         (Files): Likewise.
16771         * modules/unictype/property-other-grapheme-extend-tests (Files):
16772         Likewise.
16773         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16774         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16775         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16776         * modules/unictype/property-other-math-tests (Files): Likewise.
16777         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16778         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16779         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16780         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16781         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16782         * modules/unictype/property-private-use-tests (Files): Likewise.
16783         * modules/unictype/property-punctuation-tests (Files): Likewise.
16784         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16785         * modules/unictype/property-radical-tests (Files): Likewise.
16786         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16787         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16788         * modules/unictype/property-space-tests (Files): Likewise.
16789         * modules/unictype/property-terminal-punctuation-tests (Files):
16790         Likewise.
16791         * modules/unictype/property-test-tests (Files): Likewise.
16792         * modules/unictype/property-titlecase-tests (Files): Likewise.
16793         * modules/unictype/property-unassigned-code-value-tests (Files):
16794         Likewise.
16795         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16796         * modules/unictype/property-uppercase-tests (Files): Likewise.
16797         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16798         * modules/unictype/property-white-space-tests (Files): Likewise.
16799         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16800         * modules/unictype/property-xid-start-tests (Files): Likewise.
16801         * modules/unictype/property-zero-width-tests (Files): Likewise.
16802         * modules/unictype/scripts-tests (Files): Likewise.
16803         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16804         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16805         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16806         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16807         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16808         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16809         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16810         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16811         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16812         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16813         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16814         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16815         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16816         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16817         * modules/uninorm/composition-tests (Files): Likewise.
16818         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16819         * modules/uninorm/decomposition-tests (Files): Likewise.
16820         * modules/uninorm/filter-tests (Files): Likewise.
16821         * modules/uninorm/nfc-tests (Files): Likewise.
16822         * modules/uninorm/nfd-tests (Files): Likewise.
16823         * modules/uninorm/nfkc-tests (Files): Likewise.
16824         * modules/uninorm/nfkd-tests (Files): Likewise.
16825         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16826         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16827         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16828         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16829         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16830         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16831         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16832         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16833         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16834         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16835         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16836         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16837         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16838         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16839         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16840         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16841         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16842         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16843         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16844         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16845         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16846         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16847         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16848         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16849         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16850         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16851         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16852         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16853         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16854         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16855         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16856         * modules/uniwidth/u8-width-tests (Files): Likewise.
16857         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16858         * modules/uniwidth/u16-width-tests (Files): Likewise.
16859         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16860         * modules/uniwidth/u32-width-tests (Files): Likewise.
16861         * modules/uniwidth/width-tests (Files): Likewise.
16862         * modules/unlink-tests (Files): Likewise.
16863         * modules/unsetenv-tests (Files): Likewise.
16864         * modules/usleep-tests (Files): Likewise.
16865         * modules/utimens-tests (Files): Likewise.
16866         * modules/utimensat-tests (Files): Likewise.
16867         * modules/vasnprintf-posix-tests (Files): Likewise.
16868         * modules/vasnprintf-tests (Files): Likewise.
16869         * modules/vasprintf-posix-tests (Files): Likewise.
16870         * modules/vasprintf-tests (Files): Likewise.
16871         * modules/vdprintf-posix-tests (Files): Likewise.
16872         * modules/vfprintf-posix-tests (Files): Likewise.
16873         * modules/vprintf-posix-tests (Files): Likewise.
16874         * modules/vsnprintf-posix-tests (Files): Likewise.
16875         * modules/vsnprintf-tests (Files): Likewise.
16876         * modules/vsprintf-posix-tests (Files): Likewise.
16877         * modules/wcrtomb-tests (Files): Likewise.
16878         * modules/wcsnrtombs-tests (Files): Likewise.
16879         * modules/wcsrtombs-tests (Files): Likewise.
16880         * modules/wctype-tests (Files): Likewise.
16881         * modules/wcwidth-tests (Files): Likewise.
16882         * modules/xmemdup0-tests (Files): Likewise.
16883         * modules/xprintf-posix-tests (Files): Likewise.
16884         * modules/xvasprintf-tests (Files): Likewise.
16885
16886 2009-12-24  Eric Blake  <ebb9@byu.net>
16887
16888         test-nanosleep: fix typo
16889         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16890         patch.
16891         Reported by Bruno Haible.
16892
16893 2009-12-24  Bruno Haible  <bruno@clisp.org>
16894
16895         Reduce namespace pollution on glibc systems.
16896         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16897         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16898         systems.
16899         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16900         <getopt.h> on glibc systems.
16901         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16902         systems.
16903         * lib/fcntl.c: Include <unistd.h> here instead.
16904
16905 2009-12-24  Bruno Haible  <bruno@clisp.org>
16906
16907         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16908
16909 2009-12-24  Eric Blake  <ebb9@byu.net>
16910
16911         tests: add signature checks
16912         * tests/signature.h (SIGNATURE_CHECK): New file.
16913         * modules/atexit-tests (Files): Use it.
16914         * modules/btowc-tests (Files): Likewise.
16915         * modules/canonicalize-lgpl-tests (Files): Likewise.
16916         * modules/ceilf-tests (Files): Likewise.
16917         * modules/ceill-tests (Files): Likewise.
16918         * modules/chown-tests (Files): Likewise.
16919         * modules/dprintf-posix-tests (Files): Likewise.
16920         * modules/dup2-tests (Files): Likewise.
16921         * modules/dup3-tests (Files): Likewise.
16922         * modules/duplocale-tests (Files): Likewise.
16923         * modules/fchdir-tests (Files): Likewise.
16924         * modules/fcntl-tests (Files): Likewise.
16925         * modules/fdopendir-tests (Files): Likewise.
16926         * modules/fflush-tests (Files): Likewise.
16927         * modules/flock-tests (Files): Likewise.
16928         * modules/floorf-tests (Files): Likewise.
16929         * modules/floorl-tests (Files): Likewise.
16930         * modules/fnmatch-tests (Files): Likewise.
16931         * modules/fopen-tests (Files): Likewise.
16932         * modules/fprintf-posix-tests (Files): Likewise.
16933         * modules/freopen-tests (Files): Likewise.
16934         * modules/frexp-nolibm-tests (Files): Likewise.
16935         * modules/frexp-tests (Files): Likewise.
16936         * modules/frexpl-nolibm-tests (Files): Likewise.
16937         * modules/frexpl-tests (Files): Likewise.
16938         * modules/fseek-tests (Files): Likewise.
16939         * modules/fseeko-tests (Files): Likewise.
16940         * modules/fsync-tests (Files): Likewise.
16941         * modules/ftell-tests (Files): Likewise.
16942         * modules/ftello-tests (Files): Likewise.
16943         * modules/futimens-tests (Files): Likewise.
16944         * modules/getaddrinfo-tests (Files): Likewise.
16945         * modules/getcwd-tests (Files): Likewise.
16946         * modules/getdelim-tests (Files): Likewise.
16947         * modules/getdtablesize-tests (Files): Likewise.
16948         * modules/getgroups-tests (Files): Likewise.
16949         * modules/gethostname-tests (Files): Likewise.
16950         * modules/getline-tests (Files): Likewise.
16951         * modules/getopt-posix-tests (Files): Likewise.
16952         * modules/gettimeofday-tests (Files): Likewise.
16953         * modules/glob-tests (Files): Likewise.
16954         * modules/iconv-tests (Files): Likewise.
16955         * modules/inet_ntop-tests (Files): Likewise.
16956         * modules/inet_pton-tests (Files): Likewise.
16957         * modules/isblank-tests (Files): Likewise.
16958         * modules/lchown-tests (Files): Likewise.
16959         * modules/ldexpl-tests (Files): Likewise.
16960         * modules/link-tests (Files): Likewise.
16961         * modules/linkat-tests (Files): Likewise.
16962         * modules/lseek-tests (Files): Likewise.
16963         * modules/lstat-tests (Files): Likewise.
16964         * modules/mbrtowc-tests (Files): Likewise.
16965         * modules/mbsinit-tests (Files): Likewise.
16966         * modules/mbsnrtowcs-tests (Files): Likewise.
16967         * modules/mbsrtowcs-tests (Files): Likewise.
16968         * modules/memchr-tests (Files): Likewise.
16969         * modules/memcmp-tests (Files): Likewise.
16970         * modules/memmem-tests (Files): Likewise.
16971         * modules/memrchr-tests (Files): Likewise.
16972         * modules/mkdir-tests (Files): Likewise.
16973         * modules/mkfifo-tests (Files): Likewise.
16974         * modules/mkfifoat-tests (Files): Likewise.
16975         * modules/mknod-tests (Files): Likewise.
16976         * modules/nanosleep-tests (Files): Likewise.
16977         * modules/nl_langinfo-tests (Files): Likewise.
16978         * modules/obstack-printf-tests (Files): Likewise.
16979         * modules/open-tests (Files): Likewise.
16980         * modules/openat-tests (Files): Likewise.
16981         * modules/perror-tests (Files): Likewise.
16982         * modules/pipe2-tests (Files): Likewise.
16983         * modules/poll-tests (Files): Likewise.
16984         * modules/popen-tests (Files): Likewise.
16985         * modules/posix_spawn-tests (Files): Likewise.
16986         * modules/posix_spawnp-tests (Files): Likewise.
16987         * modules/pread-tests (Files): Likewise.
16988         * modules/printf-posix-tests (Files): Likewise.
16989         * modules/pty-tests (Files): Likewise.
16990         * modules/random_r-tests (Files): Likewise.
16991         * modules/rawmemchr-tests (Files): Likewise.
16992         * modules/readlink-tests (Files): Likewise.
16993         * modules/remove-tests (Files): Likewise.
16994         * modules/rename-tests (Files): Likewise.
16995         * modules/renameat-tests (Files): Likewise.
16996         * modules/rmdir-tests (Files): Likewise.
16997         * modules/round-tests (Files): Likewise.
16998         * modules/roundf-tests (Files): Likewise.
16999         * modules/roundl-tests (Files): Likewise.
17000         * modules/select-tests (Files): Likewise.
17001         * modules/setenv-tests (Files): Likewise.
17002         * modules/sigaction-tests (Files): Likewise.
17003         * modules/sleep-tests (Files): Likewise.
17004         * modules/snprintf-posix-tests (Files): Likewise.
17005         * modules/snprintf-tests (Files): Likewise.
17006         * modules/sprintf-posix-tests (Files): Likewise.
17007         * modules/stat-tests (Files): Likewise.
17008         * modules/strcasestr-tests (Files): Likewise.
17009         * modules/strchrnul-tests (Files): Likewise.
17010         * modules/strerror-tests (Files): Likewise.
17011         * modules/strsignal-tests (Files): Likewise.
17012         * modules/strstr-tests (Files): Likewise.
17013         * modules/strtod-tests (Files): Likewise.
17014         * modules/strverscmp-tests (Files): Likewise.
17015         * modules/symlink-tests (Files): Likewise.
17016         * modules/symlinkat-tests (Files): Likewise.
17017         * modules/times-tests (Files): Likewise.
17018         * modules/trunc-tests (Files): Likewise.
17019         * modules/truncf-tests (Files): Likewise.
17020         * modules/truncl-tests (Files): Likewise.
17021         * modules/tsearch-tests (Files): Likewise.
17022         * modules/uname-tests (Files): Likewise.
17023         * modules/unlink-tests (Files): Likewise.
17024         * modules/unsetenv-tests (Files): Likewise.
17025         * modules/usleep-tests (Files): Likewise.
17026         * modules/utimensat-tests (Files): Likewise.
17027         * modules/vasprintf-tests (Files): Likewise.
17028         * modules/vdprintf-posix-tests (Files): Likewise.
17029         * modules/vfprintf-posix-tests (Files): Likewise.
17030         * modules/vprintf-posix-tests (Files): Likewise.
17031         * modules/vsnprintf-posix-tests (Files): Likewise.
17032         * modules/vsnprintf-tests (Files): Likewise.
17033         * modules/vsprintf-posix-tests (Files): Likewise.
17034         * modules/wcrtomb-tests (Files): Likewise.
17035         * modules/wcsnrtombs-tests (Files): Likewise.
17036         * modules/wcsrtombs-tests (Files): Likewise.
17037         * modules/wcwidth-tests (Files): Likewise.
17038         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
17039         * tests/test-isinf.c (isinf): Likewise.
17040         * tests/test-isnan.c (isnan): Likewise.
17041         * tests/test-signbit.c (signbit): Likewise.
17042         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
17043         declaration, either as macro or with correct signature.
17044         (select): Ensure function under test is declared with correct
17045         signature in correct header.
17046         * tests/test-atexit.c (atexit): Likewise.
17047         * tests/test-btowc.c (btowc): Likewise.
17048         * tests/test-canonicalize-lgpl.c (realpath)
17049         (canonicalize_file_name): Likewise.
17050         * tests/test-ceilf1.c (ceilf): Likewise.
17051         * tests/test-ceill.c (ceill): Likewise.
17052         * tests/test-chown.c (chown): Likewise.
17053         * tests/test-dprintf-posix.c (dprintf): Likewise.
17054         * tests/test-dup2.c (dup2): Likewise.
17055         * tests/test-dup3.c (dup3): Likewise.
17056         * tests/test-duplocale.c (duplocale): Likewise.
17057         * tests/test-fchdir.c (fchdir): Likewise.
17058         * tests/test-fchownat.c (fchownat): Likewise.
17059         * tests/test-fcntl.c (fcntl): Likewise.
17060         * tests/test-fdopendir.c (fdopendir): Likewise.
17061         * tests/test-fflush.c (fflush): Likewise.
17062         * tests/test-flock.c (flock): Likewise.
17063         * tests/test-floorf1.c (floorf): Likewise.
17064         * tests/test-floorl.c (floorl): Likewise.
17065         * tests/test-fnmatch.c (fnmatch): Likewise.
17066         * tests/test-fopen.c (fopen): Likewise.
17067         * tests/test-fprintf-posix.c (fprintf): Likewise.
17068         * tests/test-freopen.c (freopen): Likewise.
17069         * tests/test-frexp.c (frexp): Likewise.
17070         * tests/test-frexpl.c (frexpl): Likewise.
17071         * tests/test-fseek.c (fseek): Likewise.
17072         * tests/test-fseeko.c (fseeko): Likewise.
17073         * tests/test-fstatat.c (fstatat): Likewise.
17074         * tests/test-fsync.c (fsync): Likewise.
17075         * tests/test-ftell.c (ftell): Likewise.
17076         * tests/test-ftello.c (ftello): Likewise.
17077         * tests/test-futimens.c (futimens): Likewise.
17078         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
17079         (gai_strerror): Likewise.
17080         * tests/test-getcwd.c (getcwd): Likewise.
17081         * tests/test-getdelim.c (getdelim): Likewise.
17082         * tests/test-getdtablesize.c (getdtablesize): Likewise.
17083         * tests/test-getgroups.c (getgroups): Likewise.
17084         * tests/test-gethostname.c (gethostname): Likewise.
17085         * tests/test-getline.c (getline): Likewise.
17086         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
17087         Likewise.
17088         * tests/test-gettimeofday.c (gettimeofday): Likewise.
17089         * tests/test-glob.c (glob, globfree): Likewise.
17090         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
17091         * tests/test-inet_ntop.c (inet_ntop): Likewise.
17092         * tests/test-inet_pton.c (inet_pton): Likewise.
17093         * tests/test-isblank.c (isblank): Likewise.
17094         * tests/test-lchown.c (lchown): Likewise.
17095         * tests/test-ldexpl.c (ldexpl): Likewise.
17096         * tests/test-link.c (link): Likewise.
17097         * tests/test-linkat.c (linkat): Likewise.
17098         * tests/test-lseek.c (lseek): Likewise.
17099         * tests/test-lstat.c (lstat): Likewise.
17100         * tests/test-mbrtowc.c (mbrtowc): Likewise.
17101         * tests/test-mbsinit.c (mbsinit): Likewise.
17102         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
17103         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
17104         * tests/test-memchr.c (memchr): Likewise.
17105         * tests/test-memcmp.c (memcmp): Likewise.
17106         * tests/test-memmem.c (memmem): Likewise.
17107         * tests/test-memrchr.c (memrchr): Likewise.
17108         * tests/test-mkdir.c (mkdir): Likewise.
17109         * tests/test-mkdirat.c (mkdirat): Likewise.
17110         * tests/test-mkfifo.c (mkfifo): Likewise.
17111         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
17112         * tests/test-mknod.c (mknod): Likewise.
17113         * tests/test-nanosleep.c (nanosleep): Likewise.
17114         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
17115         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
17116         Likewise.
17117         * tests/test-open.c (open): Likewise.
17118         * tests/test-openat.c (openat): Likewise.
17119         * tests/test-perror.c (perror): Likewise.
17120         * tests/test-pipe2.c (pipe2): Likewise.
17121         * tests/test-poll.c (poll): Likewise.
17122         * tests/test-popen.c (popen, pclose): Likewise.
17123         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
17124         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
17125         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
17126         (posix_spawn_file_actions_destroy)
17127         (posix_spawn_file_actions_addclose)
17128         (posix_spawn_file_actions_addopen)
17129         (posix_spawn_file_actions_adddup2): Likewise.
17130         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
17131         * tests/test-pread.c (pread): Likewise.
17132         * tests/test-printf-posix.c (printf): Likewise.
17133         * tests/test-pty.c (openpty, forkpty): Likewise.
17134         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
17135         (random_r): Likewise.
17136         * tests/test-rawmemchr.c (rawmemchr): Likewise.
17137         * tests/test-readlink.c (readlink): Likewise.
17138         * tests/test-remove.c (remove): Likewise.
17139         * tests/test-rename.c (rename): Likewise.
17140         * tests/test-renameat.c (renameat): Likewise.
17141         * tests/test-rmdir.c (rmdir): Likewise.
17142         * tests/test-round1.c (round): Likewise.
17143         * tests/test-roundf1.c (roundf): Likewise.
17144         * tests/test-roundl.c (roundl): Likewise.
17145         * tests/test-setenv.c (setenv): Likewise.
17146         * tests/test-sigaction.c (sigaction): Likewise.
17147         * tests/test-sleep.c (sleep): Likewise.
17148         * tests/test-snprintf.c (snprintf): Likewise.
17149         * tests/test-sprintf-posix.c (sprintf): Likewise.
17150         * tests/test-stat.c (stat): Likewise.
17151         * tests/test-stpncpy.c (stpncpy): Likewise.
17152         * tests/test-strcasestr.c (strcasestr): Likewise.
17153         * tests/test-strchrnul.c (strchrnul): Likewise.
17154         * tests/test-strerror.c (strerror): Likewise.
17155         * tests/test-strsignal.c (strsignal): Likewise.
17156         * tests/test-strstr.c (strstr): Likewise.
17157         * tests/test-strtod.c (strtod): Likewise.
17158         * tests/test-strverscmp.c (strverscmp): Likewise.
17159         * tests/test-symlink.c (symlink): Likewise.
17160         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
17161         * tests/test-times.c (times): Likewise.
17162         * tests/test-trunc1.c (trunc): Likewise.
17163         * tests/test-truncf1.c (truncf): Likewise.
17164         * tests/test-truncl.c (truncl): Likewise.
17165         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
17166         Likewise.
17167         * tests/test-uname.c (uname): Likewise.
17168         * tests/test-unlink.c (unlink): Likewise.
17169         * tests/test-unlinkat.c (unlinkat): Likewise.
17170         * tests/test-unsetenv.c (unsetenv): Likewise.
17171         * tests/test-usleep.c (usleep): Likewise.
17172         * tests/test-utimensat.c (utimensat): Likewise.
17173         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
17174         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
17175         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
17176         * tests/test-vprintf-posix.c (vprintf): Likewise.
17177         * tests/test-vsnprintf.c (vsnprintf): Likewise.
17178         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
17179         * tests/test-wcrtomb.c (wcrtomb): Likewise.
17180         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
17181         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
17182         * tests/test-wcwidth.c (wcwidth): Likewise.
17183
17184         build: pull in conditional headers during GNULIB_POSIXCHECK
17185         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
17186         definitions from any conditionally-included headers.
17187         * lib/stdlib.in.h (includes): Likewise.
17188         * lib/unistd.in.h (includes): Likewise.
17189
17190 2009-12-24  Bruno Haible  <bruno@clisp.org>
17191
17192         * tests/test-argv-iter.c: Include header file being tested immediately
17193         after config.h.
17194         * tests/test-base64.c: Likewise.
17195         * tests/test-flock.c: Likewise.
17196         * tests/test-fsync.c: Likewise.
17197         * tests/test-getdate.c: Likewise.
17198         * tests/test-getndelim2.c: Likewise.
17199         * tests/test-isfinite.c: Likewise.
17200         * tests/test-isinf.c: Likewise.
17201         * tests/test-strerror.c: Likewise.
17202         * tests/test-strsignal.c: Likewise.
17203
17204 2009-12-23  Eric Blake  <ebb9@byu.net>
17205
17206         unistd: work around cygwin bug
17207         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
17208         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
17209         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17210
17211 2009-12-23  Bruno Haible  <bruno@clisp.org>
17212
17213         localename: More tests.
17214         * tests/test-localename.c (SIZEOF): New macro.
17215         (categories): New variable.
17216         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
17217         test_locale_name_default): Add test w.r.t. thread locale.
17218         (test_locale_name_thread): New function.
17219         (main): Invoke it.
17220
17221         localename: Make aware of thread locale.
17222         * lib/localename.h (gl_locale_name_thread): New declaration.
17223         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
17224         behaviour with respect to thread locale.
17225         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
17226         <langinfo.h>, glthread/lock.h.
17227         (SIZE_BITS): New macro.
17228         (string_hash): New function.
17229         (struct hash_node): New type.
17230         (HASH_TABLE_SIZE): New macro.
17231         (struniq_hash_table, struniq_lock): New variables.
17232         (struniq): New function.
17233         (gl_locale_name_thread): New function.
17234         (gl_locale_name): Invoke it.
17235         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
17236         * modules/localename (Depends-on): Add lock.
17237         Reported by Mike Gran <spk121@yahoo.com>.
17238
17239 2009-12-23  Eric Blake  <ebb9@byu.net>
17240
17241         va-args: new module
17242         * modules/va-args: New file.
17243         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
17244         * MODULES.html.sh (Core language properties): Mention it.
17245
17246         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
17247         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
17248         named alias for __attribute__((__unused__)).
17249         * lib/chown.c: Update client.
17250         * lib/fchmodat.c: Likewise.
17251         * lib/fts.c: Likewise.
17252         * lib/getdate.y: Likewise.
17253         * lib/getgroups.c: Likewise.
17254         * lib/getopt.c: Likewise.
17255         * lib/getugroups.c: Likewise.
17256         * lib/mkdir.c: Likewise.
17257         * lib/mkfifo.c: Likewise.
17258         * lib/mkfifoat.c: Likewise.
17259         * lib/mknod.c: Likewise.
17260         * lib/mknodat.c: Likewise.
17261         * lib/readlink.c: Likewise.
17262         * lib/se-context.in.h: Likewise.
17263         * lib/se-selinux.in.h: Likewise.
17264         * lib/sockets.c: Likewise.
17265         * lib/symlink.c: Likewise.
17266         * lib/symlinkat.c: Likewise.
17267         * lib/unicodeio.c: Likewise.
17268         * lib/unistr.h: Likewise.
17269         * tests/test-areadlink.c: Likewise.
17270         * tests/test-areadlinkat.c: Likewise.
17271         * tests/test-filenamecat.c: Likewise.
17272         * tests/test-fseeko.c: Likewise.
17273         * tests/test-ftello.c: Likewise.
17274         * tests/test-getdate.c: Likewise.
17275         * tests/test-getgroups.c: Likewise.
17276         * tests/test-gethostname.c: Likewise.
17277         * tests/test-quotearg.c: Likewise.
17278         * tests/test-version-etc.c: Likewise.
17279         * tests/test-xalloc-die.c: Likewise.
17280         * tests/test-xfprintf-posix.c: Likewise.
17281         * tests/test-xprintf-posix.c: Likewise.
17282         * tests/test-xvasprintf.c: Likewise.
17283
17284         tests: avoid compiler warnings
17285         * tests/test-fcntl.c (main): Delete unused parameters.
17286         * tests/test-freopen-safer.c (main): Likewise.
17287         * tests/test-xalloc-die.c (main): Mark unused parameters.
17288         * tests/test-fseeko.c (main): Likewise.
17289         * tests/test-ftello.c (main): Likewise.
17290         * tests/test-nanosleep.c (main): Avoid declaration warning.
17291         * tests/test-sleep.c (main): Likewise.
17292         * tests/test-unsetenv.c (main): Silence warning about string
17293         literal.
17294         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17295
17296 2009-12-23  Bruno Haible  <bruno@clisp.org>
17297
17298         * tests/test-localename.c (test_locale_name): New function, extracted
17299         from main. Also test mixed situations.
17300         (test_locale_name_posix, test_locale_name_environ,
17301         test_locale_name_default): New functions.
17302         (main): Invoke them all.
17303         * modules/localename-tests (configure.ac): Test for newlocale.
17304
17305 2009-12-23  Bruno Haible  <bruno@clisp.org>
17306
17307         unistd: Ensure getcwd gets declared before being overridden.
17308         * lib/unistd.in.h: Conditionally include <io.h>.
17309
17310 2009-12-22  Bruno Haible  <bruno@clisp.org>
17311
17312         wchar: Diagnose broken combination of glibc and gcc versions and flags.
17313         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
17314         (gl_WCHAR_H): Invoke it.
17315         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
17316         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
17317         Reported by Karl Berry <karl@freefriends.org>.
17318
17319 2009-12-22  Eric Blake  <ebb9@byu.net>
17320
17321         math, unistd: avoid redundant includes
17322         * lib/math.in.h (isnan): No need to re-include <math.h>.
17323         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
17324
17325         getsubopt: work around cygwin bug
17326         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
17327         avoid conflicting with system getsubopt.
17328         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
17329         bug.
17330
17331         getopt: synchronize from glibc
17332         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
17333         parameter order.  Adjust all callers.
17334         (_getopt_internal_r, main): Adjust quoting in error messages.
17335         Drop considerations for outdated POSIX 1003.2 error message.
17336         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
17337         callers.
17338         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
17339
17340         test-getopt: test stderr behavior
17341         * modules/getopt-posix-tests (Depends-on): Add dup2.
17342         * tests/test-getopt.c (ASSERT): Avoid stderr.
17343         (main): Move stderr to a temporary file.
17344         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
17345         Instead, add parameter to inform caller if output occurred.
17346         (test_getopt): Adjust all existing tests to expect silence, and
17347         add new tests of leading ":".
17348         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17349         glibc shortcomings with leading "-:" or "+:" in optstring.
17350         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17351         Likewise.
17352         * doc/posix-functions/getopt.texi (getopt): Likewise.
17353
17354         test-getopt: enhance test
17355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
17356         supports optind=0.
17357         * tests/test-getopt.c (OPTIND_MIN): Move...
17358         * tests/test-getopt.h (OPTIND_MIN): ...here.
17359         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
17360         Require that optind=0 works, since modern BSD supports it in
17361         addition to optreset, and since coreutils expects it.
17362         (test_getopt_long_only): New test.
17363         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17364         glibc shortcomings with 'W;', and enforcement of optind=0.
17365         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17366         Likewise.
17367
17368 2009-12-21  Bruno Haible  <bruno@clisp.org>
17369
17370         localename: Improvements for MacOS X and Cygwin.
17371         * lib/localename.h (gl_locale_name_environ): New declaration.
17372         * lib/localename.c (gl_locale_name_environ): New function, extracted from
17373         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
17374         (gl_locale_name_posix): Invoke it.
17375         (gl_locale_name_default): Add comments. Use Windows native API also on
17376         Cygwin.
17377
17378 2009-12-21  Bruno Haible  <bruno@clisp.org>
17379
17380         Update list of Win32 locale ids.
17381         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
17382         (LANG_SAMI): Renamed from LANG_SAAMI.
17383         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
17384         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
17385         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
17386         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
17387         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
17388         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
17389         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
17390         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
17391         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
17392         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
17393         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
17394         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
17395         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
17396         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
17397         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
17398         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
17399         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
17400         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
17401         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
17402         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
17403         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
17404         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
17405         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
17406         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
17407         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
17408         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
17409         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
17410         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
17411         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
17412         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
17413         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
17414         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
17415         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
17416         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
17417         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
17418         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
17419         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
17420         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
17421         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
17422         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
17423         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
17424         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
17425         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
17426         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
17427         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
17428         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
17429         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
17430         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
17431         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
17432         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
17433         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
17434         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
17435         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
17436         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
17437         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
17438         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
17439         Add more languages and countries for Sami, Sorbian. Add more countries
17440         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
17441         for Pashto. Change country for Syriac, Tswana.
17442
17443 2009-12-21  Eric Blake  <ebb9@byu.net>
17444
17445         test-utimens: avoid spurious failure
17446         * tests/test-chown.h (nap): Factor...
17447         * tests/nap.h: ...into new file.
17448         * tests/test-lchown.h (nap): Avoid duplication.
17449         * tests/test-utimens-common.h (nap): Use shared implementation,
17450         necessary on file systems with 1-second resolution.
17451         * modules/chown-tests (Files): Include new file.
17452         * modules/fdutimensat-tests (Files): Likewise.
17453         * modules/futimens-tests (Files): Likewise.
17454         * modules/lchown-tests (Files): Likewise.
17455         * modules/openat-tests (Files): Likewise.
17456         * modules/utimens-tests (Files): Likewise.
17457         * modules/utimensat-tests (Files): Likewise.
17458
17459 2009-12-19  Eric Blake  <ebb9@byu.net>
17460
17461         futimens, utimensat: work around Linux bug
17462         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
17463         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17464         * lib/utimensat.c (rpl_utimensat): Work around it.
17465         * lib/futimens.c (rpl_futimens): Adjust comment.
17466
17467         utimens: work around Linux ctime bug
17468         * lib/utimens.c (detect_ctime_bug): New helper function.
17469         (update_timespec): Differentiate between workaround needed for
17470         this bug vs. what is needed for systems that lack utimensat.
17471         (fdutimens, lutimens): Work around bug.
17472
17473         utimens: check for ctime update
17474         * tests/test-utimens-common.h (check_ctime): Define.
17475         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
17476         * tests/test-futimens.h (test_futimens): Likewise.
17477         * tests/test-lutimens.h (test_lutimens): Likewise.
17478         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17479         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17480
17481 2009-12-19  Bruno Haible  <bruno@clisp.org>
17482
17483         dprintf-posix: Check against memory leak fixed on 2009-12-15.
17484         * tests/test-dprintf-posix2.sh: New file.
17485         * tests/test-dprintf-posix2.c: New file.
17486         * modules/dprintf-posix-tests (Files): Add them.
17487         (configure.ac): Check for getrlimit and setrlimit.
17488         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17489
17490 2009-12-19  Bruno Haible  <bruno@clisp.org>
17491
17492         fprintf-posix: Check against memory leak fixed on 2009-12-15.
17493         * tests/test-fprintf-posix3.sh: New file.
17494         * tests/test-fprintf-posix3.c: New file.
17495         * modules/fprintf-posix-tests (Files): Add them.
17496         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17497
17498 2009-12-19  Eric Blake  <ebb9@byu.net>
17499
17500         dirfd: fix prototype
17501         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
17502         * lib/dirfd.c (dirfd): Likewise.
17503
17504         canonicalize: reduce memory usage
17505         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
17506         allocation to size.
17507         Reported by Solar Designer <solar@openwall.com>.
17508
17509 2009-12-19  Bruno Haible  <bruno@clisp.org>
17510
17511         New module attribute 'Applicability'.
17512         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
17513         * gnulib-tool: New option --extract-applicability.
17514         (func_usage): Document it.
17515         (sed_extract_prog): Recognize it.
17516         (func_get_applicability): New function.
17517         (func_import): Generalize handling of 'link-warning' module.
17518         * modules/link-warning (Applicability): New section.
17519         * modules/arg-nonnull (Applicability): New section.
17520         Repoted by Simon Josefsson <simon@josefsson.org>.
17521
17522 2009-12-19  Bruno Haible  <bruno@clisp.org>
17523
17524         fflush: tweak
17525         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
17526         * lib/fseeko.c (rpl_fseeko): Likewise.
17527
17528 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
17529
17530         * lib/gl_list.h: Fix typo in comment.
17531
17532 2009-12-16  Eric Blake  <ebb9@byu.net>
17533
17534         fcntl: use to simplify other modules
17535         * modules/cloexec (Depends-on): Add fcntl.
17536         * modules/fchdir (Depends-on): Likewise.
17537         * modules/fd-safer-flag (Depends-on): Likewise.
17538         * modules/unistd-safer (Depends-on): Likewise.
17539         * modules/dup3 (configure.ac): Set module indicator.
17540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
17541         missing.
17542         * lib/fchdir.c (_gl_register_dup): Fix comment.
17543         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
17544         * lib/dup-safer.c (dup_safer): Likewise.
17545         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
17546         * lib/dup3.c (dup3): Likewise.
17547         * tests/test-fchdir.c (main): Enhance test.
17548         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
17549
17550         fcntl: port portions of fcntl to mingw
17551         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
17552         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
17553         replacement for mingw.
17554         * modules/fcntl (Description): Update.
17555         (Depends-on): Add dup2.
17556         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
17557         * modules/fcntl-h (Makefile.am): Substitute it.
17558         * lib/fcntl.in.h (fcntl): Update declaration.
17559         (F_DUPFD, F_GETFD): New macros, when needed.
17560         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17561         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
17562         * tests/test-fcntl.c (check_flags, main): Enhance test for items
17563         we now guarantee.
17564
17565         fcntl: work around cygwin bug in F_DUPFD
17566         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
17567         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
17568         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
17569         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
17570         * doc/posix-functions/fcntl.texi (fcntl): Document it.
17571
17572         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
17573         * modules/fcntl (Files): List new files.
17574         (configure.ac): Run a test.
17575         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
17576         * lib/fcntl.c (rpl_fcntl): Likewise.
17577         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
17578         (gl_FCNTL_H): Always replace fcntl.h.
17579         * modules/fcntl-h (Makefile.am): Substitute witnesses.
17580         * lib/fcntl.in.h (fcntl): Declare replacement.
17581         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
17582         needed, plus a witness.
17583         * doc/posix-functions/fcntl.texi (fcntl): Document this.
17584         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17585         * tests/test-fcntl.c: New file.
17586         * modules/fcntl-tests: Likewise.
17587
17588         binary-io: avoid potential compilation warning
17589         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
17590         directives.
17591
17592         fflush: avoid compilation error on NetBSD
17593         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
17594         between off_t and fpos_t, since the latter is sometimes a struct.
17595         * lib/fseeko.c (rpl_fseeko): Likewise.
17596         Reported by Alexander Nasonov <alnsn@yandex.ru>.
17597
17598 2009-12-15  Eric Blake  <ebb9@byu.net>
17599
17600         fcntl-h, stdio, sys_ioctl: fix declarations
17601         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
17602         function must not take arguments.
17603         * lib/sys_ioctl.in.h (ioctl): Likewise.
17604         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
17605         (open): Add a link warning.
17606
17607 2009-12-15  Jim Meyering  <meyering@redhat.com>
17608
17609         areadlink, areadlink-with-size: relax license to LGPLv2+
17610         * modules/areadlink (License): Relax to LGPLv2+.
17611         * modules/areadlink-with-size (License): Likewise.
17612
17613 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
17614             Bruno Haible  <bruno@clisp.org>
17615
17616         *printf: Fix memory leak.
17617         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
17618         * lib/vfprintf.c (vfprintf): Likewise.
17619         * lib/dprintf.c (dprintf): Likewise.
17620         * lib/vdprintf.c (vdprintf): Likewise.
17621
17622 2009-12-14  Eric Blake  <ebb9@byu.net>
17623
17624         accept4: adjust module dependencies
17625         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
17626
17627         utimens: one more try at avoiding compiler warning
17628         * lib/utimens.c (lutimens): Lower scope of result.
17629
17630 2009-12-13  Bruno Haible  <bruno@clisp.org>
17631
17632         Move the malloc checking from module 'list' to new module 'xlist'.
17633         * modules/xlist: New file.
17634         * lib/gl_xlist.h: New file.
17635         * lib/gl_xlist.c: New file.
17636         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
17637         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
17638         gl_list_add_last, gl_list_add_before, gl_list_add_after,
17639         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
17640         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
17641         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
17642         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
17643         gl_sortedlist_nx_add): New declarations.
17644         (struct gl_list_implementation): Rename and change methods accordingly.
17645         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
17646         (gl_list_nx_create): Renamed from gl_list_create.
17647         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17648         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17649         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17650         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17651         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17652         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17653         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17654         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17655         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
17656         gl_list_create_empty.
17657         (gl_list_nx_create): Renamed from gl_list_create.
17658         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17659         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17660         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17661         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17662         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17663         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17664         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17665         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17666         * lib/gl_array_list.c: Don't include xalloc.h.
17667         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
17668         NULL upon out-of-memory.
17669         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
17670         out-of-memory.
17671         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
17672         Change return type to 'int'.
17673         (gl_array_nx_set_at): Renamed from gl_array_set_at.
17674         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17675         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
17676         upon out-of-memory.
17677         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
17678         upon out-of-memory.
17679         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
17680         upon out-of-memory.
17681         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
17682         upon out-of-memory.
17683         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
17684         out-of-memory.
17685         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
17686         Update.
17687         (gl_array_list_implementation): Update.
17688         * lib/gl_carray_list.c: Don't include xalloc.h.
17689         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
17690         Return NULL upon out-of-memory.
17691         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
17692         out-of-memory.
17693         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
17694         Change return type to 'int'.
17695         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
17696         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17697         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
17698         upon out-of-memory.
17699         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
17700         upon out-of-memory.
17701         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
17702         out-of-memory.
17703         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
17704         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
17705         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
17706         Update.
17707         (gl_carray_list_implementation): Update.
17708         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17709         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17710         gl_linked_create_empty. Return NULL upon out-of-memory.
17711         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17712         out-of-memory.
17713         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17714         Change return type to 'int'. Return -1 upon out-of-memory.
17715         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17716         out-of-memory.
17717         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17718         upon out-of-memory.
17719         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17720         upon out-of-memory.
17721         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17722         NULL upon out-of-memory.
17723         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17724         upon out-of-memory.
17725         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17726         out-of-memory.
17727         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17728         Update.
17729         * lib/gl_linked_list.c: Don't include xalloc.h.
17730         (gl_linked_list_implementation): Update.
17731         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17732         (add_to_bucket): Change return type to 'int'.
17733         (gl_linkedhash_list_implementation): Update.
17734         * lib/gl_anytree_list1.h (free_subtree): New function.
17735         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17736         gl_tree_create_empty. Return NULL upon out-of-memory.
17737         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17738         Change return type to 'int'. Return -1 upon out-of-memory.
17739         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17740         out-of-memory.
17741         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17742         (gl_tree_remove_node): New function, moved here from
17743         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17744         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17745         Update.
17746         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17747         malloc, not xmalloc. Return NULL upon out-of-memory.
17748         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17749         out-of-memory.
17750         (gl_tree_remove_node_from_tree): New function, extracted from
17751         gl_tree_remove_node.
17752         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17753         upon out-of-memory.
17754         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17755         out-of-memory.
17756         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17757         upon out-of-memory.
17758         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17759         upon out-of-memory.
17760         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17761         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17762         not xmalloc. Return NULL upon out-of-memory.
17763         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17764         out-of-memory.
17765         (gl_tree_remove_node_from_tree): New function, extracted from
17766         gl_tree_remove_node.
17767         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17768         upon out-of-memory.
17769         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17770         out-of-memory.
17771         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17772         upon out-of-memory.
17773         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17774         upon out-of-memory.
17775         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17776         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17777         gl_anytree_list1.h before gl_anyavltree_list2.h.
17778         (gl_avltree_list_implementation): Update.
17779         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17780         gl_anytree_list1.h before gl_anyavltree_list2.h.
17781         (gl_rbtree_list_implementation): Update.
17782         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17783         Change return type to 'int'. Return -1 upon out-of-memory. Use
17784         __builtin_expect.
17785         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17786         (gl_avltreehash_list_implementation): Update.
17787         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17788         (gl_rbtreehash_list_implementation): Update.
17789         * modules/array-list (Depends-on): Remove xalloc.
17790         * modules/carray-list (Depends-on): Likewise.
17791         * modules/linked-list (Depends-on): Likewise.
17792         * modules/linkedhash-list (Depends-on): Likewise.
17793         * modules/avltree-list (Depends-on): Likewise.
17794         * modules/rbtree-list (Depends-on): Likewise.
17795         * modules/avltreehash-list (Depends-on): Likewise.
17796         * modules/rbtreehash-list (Depends-on): Likewise.
17797
17798         * modules/xsublist: New file.
17799         * lib/gl_xsublist.h: New file.
17800         * lib/gl_xsublist.c: New file.
17801         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17802         (gl_sublist_nx_create): New declaration.
17803         * lib/gl_sublist.c: Don't include xalloc.h.
17804         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17805         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17806         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17807         Change return type to 'int'. Return -1 upon out-of-memory.
17808         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17809         upon out-of-memory.
17810         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17811         NULL upon out-of-memory.
17812         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17813         upon out-of-memory.
17814         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17815         NULL upon out-of-memory.
17816         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17817         NULL upon out-of-memory.
17818         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17819         upon out-of-memory.
17820         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17821         (gl_sublist_list_implementation): Update.
17822         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17823         upon out-of-memory.
17824         * modules/sublist (Depends-on): Remove xalloc.
17825
17826         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17827         * tests/test-carray_list.c: Likewise.
17828         * tests/test-linked_list.c: Likewise.
17829         * tests/test-linkedhash_list.c: Likewise.
17830         * tests/test-avltree_list.c: Likewise.
17831         * tests/test-rbtree_list.c: Likewise.
17832         * tests/test-avltreehash_list.c: Likewise.
17833         * tests/test-rbtreehash_list.c: Likewise.
17834         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17835         * modules/carray-list-tests (Makefile.am): Likewise.
17836         * modules/linked-list-tests (Makefile.am): Likewise.
17837         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17838         * modules/avltree-list-tests (Makefile.am): Likewise.
17839         * modules/rbtree-list-tests (Makefile.am): Likewise.
17840         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17841         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17842
17843         * NEWS: Mention the changes.
17844
17845         * lib/clean-temp.c: Include gl_xlist.h.
17846         * modules/clean-temp (Depends-on): Add xlist.
17847
17848         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17849         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17850
17851         * tests/test-array_oset.c: Include gl_xlist.h.
17852         * modules/array-oset-tests (Depends-on): Add xlist.
17853
17854         Reported by José E. Marchesi <jemarch@gnu.org>.
17855
17856 2009-12-13  Bruno Haible  <bruno@clisp.org>
17857
17858         Move the malloc checking from module 'oset' to new module 'xoset'.
17859         * modules/xoset: New file.
17860         * lib/gl_xoset.h: New file.
17861         * lib/gl_xoset.c: New file.
17862         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17863         declarations.
17864         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17865         (struct gl_oset_implementation): Rename and change methods accordingly.
17866         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17867         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17868         'int'. Mark as __warn_unused_result__.
17869         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17870         gl_oset_create_empty.
17871         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17872         'int'.
17873         * lib/gl_array_oset.c: Don't include xalloc.h.
17874         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17875         malloc, not xmalloc.
17876         (grow): Change return type to 'int'. Don't call xalloc_die.
17877         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17878         to 'int'.
17879         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17880         'int'.
17881         (gl_array_oset_implementation): Update.
17882         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17883         gl_tree_create_empty.
17884         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17885         'int'.
17886         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17887         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17888         xmalloc.
17889         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17890         not xmalloc.
17891         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17892         xmalloc.
17893         (gl_avltree_oset_implementation): Update.
17894         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17895         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17896         xmalloc.
17897         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17898         not xmalloc.
17899         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17900         xmalloc.
17901         (gl_rbtree_oset_implementation): Update.
17902         * modules/array-oset (Depends-on): Remove xalloc.
17903         * modules/avltree-oset (Depends-on): Likewise.
17904         * modules/rbtree-oset (Depends-on): Likewise.
17905         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17906         * tests/test-avltree_oset.c: Likewise.
17907         * tests/test-rbtree_oset.c: Likewise.
17908         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17909         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17910         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17911         * NEWS: Mention the change.
17912
17913 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17914
17915         maint.mk: allow a project to override release-prep commands
17916         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17917         commands into a new rule.
17918         (release-prep): New rule.
17919         (release-prep-hook): New overridable variable.
17920
17921 2009-12-13  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17924
17925 2009-12-13  Jim Meyering  <meyering@redhat.com>
17926
17927         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17928         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17929
17930 2009-12-12  Bruno Haible  <bruno@clisp.org>
17931
17932         duplocale: Tweak.
17933         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17934
17935 2009-12-12  Karl Berry  <karl@gnu.org>
17936
17937         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17938
17939 2009-12-12  Bruno Haible  <bruno@clisp.org>
17940
17941         * m4/po.m4: Undo incorrect untabification.
17942
17943 2009-12-12  Bruno Haible  <bruno@clisp.org>
17944
17945         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17946         * modules/c-strtod (Depends-on): Add locale.
17947         * modules/c-strtold (Depends-on): Likewise.
17948
17949 2009-12-12  Bruno Haible  <bruno@clisp.org>
17950
17951         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17952
17953 2009-12-11  Eric Blake  <ebb9@byu.net>
17954
17955         setenv: relax requirement in light of POSIX ruling
17956         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17957         not NULL.
17958         * tests/test-setenv.c (main): Relax test.
17959         * tests/test-unsetenv.c (main): Likewise.
17960         * doc/posix-functions/setenv.texi (setenv): Document this.
17961         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17962
17963 2009-12-11  Bruno Haible  <bruno@clisp.org>
17964
17965         New module 'fd-safer-flag'.
17966         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17967         * lib/dup-safer.c (dup_safer_flag): Remove function.
17968         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
17969         * lib/fd-safer.c (fd_safer_flag): Remove function.
17970         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
17971         * modules/cloexec (configure.ac): Drop indicator macro.
17972         * modules/fd-safer-flag: New file.
17973         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
17974         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
17975         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
17976
17977 2009-12-11  Bruno Haible  <bruno@clisp.org>
17978
17979         Tests for module 'nl_langinfo'.
17980         * modules/nl_langinfo-tests: New file.
17981         * tests/test-nl_langinfo.sh: New file.
17982         * tests/test-nl_langinfo.c: New file.
17983
17984         New module 'nl_langinfo'.
17985         * lib/nl_langinfo.c: New file.
17986         * m4/nl_langinfo.m4: New file.
17987         * modules/nl_langinfo: New file.
17988         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
17989
17990 2009-12-11  Bruno Haible  <bruno@clisp.org>
17991
17992         Tests for module 'langinfo'.
17993         * modules/langinfo-tests: New file.
17994         * tests/test-langinfo.c: New file.
17995
17996         New module 'langinfo'.
17997         * lib/langinfo.in.h: New file.
17998         * m4/langinfo_h.m4: New file.
17999         * modules/langinfo: New file.
18000         * doc/posix-headers/langinfo.texi: Mention the new module.
18001
18002 2009-12-11  Bruno Haible  <bruno@clisp.org>
18003
18004         * lib/config.charset: Untabify.
18005
18006 2009-12-11  Bruno Haible  <bruno@clisp.org>
18007
18008         * modules/unistd-safer (configure.ac): Drop indicator macro.
18009
18010 2009-12-11  Bruno Haible  <bruno@clisp.org>
18011
18012         Move pipe2-safer code to its own file.
18013         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
18014         * lib/pipe-safer.c (pipe2_safer): Remove function.
18015         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
18016         (Makefile.am): Add it to lib_SOURCES.
18017
18018 2009-12-10  Bruno Haible  <bruno@clisp.org>
18019
18020         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
18021
18022 2009-12-10  Bruno Haible  <bruno@clisp.org>
18023
18024         Declare which arguments expect non-NULL values, for GCC and clang.
18025         * build-aux/arg-nonnull.h: New file.
18026         * modules/arg-nonnull: New file.
18027         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
18028         (inet_ntop, inet_pton): Use it.
18029         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
18030         (closedir, dirfd, opendir, scandir, alphasort): Use it.
18031         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
18032         (open, openat): Use it.
18033         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
18034         (fnmatch): Use it.
18035         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
18036         (getopt, getopt_long, getopt_long_only): Use it.
18037         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
18038         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
18039         Use it.
18040         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
18041         (iconv_open): Use it.
18042         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
18043         (strtoimax, strtoumax): Use it.
18044         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
18045         (duplocale): Use it.
18046         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
18047         (frexp, frexpl): Use it.
18048         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
18049         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
18050         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
18051         (tsearch, tfind, tdelete, twalk): Use it.
18052         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
18053         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18054         sigpending): Use it.
18055         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
18056         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18057         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18058         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18059         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18060         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18061         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18062         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18063         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18064         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18065         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18066         Use it.
18067         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
18068         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
18069         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
18070         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
18071         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
18072         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
18073         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
18074         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
18075         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
18076         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
18077         strtoull, unsetenv): Use it.
18078         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
18079         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18080         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18081         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18082         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18083         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
18084         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
18085         (strcasecmp, strncasecmp): Use it.
18086         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
18087         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
18088         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
18089         rpl_setsockopt): Use it.
18090         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
18091         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
18092         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
18093         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
18094         (gettimeofday): Use it.
18095         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
18096         (times): Use it.
18097         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
18098         (uname): Use it.
18099         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
18100         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
18101         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
18102         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
18103         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
18104         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
18105         unlinkat, write): Use it.
18106         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
18107         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
18108         * lib/argv-iter.h: Include arg-nonnull.h.
18109         (_ATTRIBUTE_NONNULL_): Remove macro.
18110         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
18111         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
18112         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
18113         optimization.
18114         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
18115         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
18116         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
18117         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
18118         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
18119         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
18120         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
18121         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
18122         * modules/arpa_inet (Depends-on): Add arg-nonnull.
18123         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
18124         * modules/dirent (Depends-on): Add arg-nonnull.
18125         (Makefile.am): Insert arg-nonnull.h into dirent.h.
18126         * modules/fcntl-h (Depends-on): Add arg-nonnull.
18127         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
18128         * modules/fnmatch (Depends-on): Add arg-nonnull.
18129         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
18130         * modules/getopt-posix (Depends-on): Add arg-nonnull.
18131         (Makefile.am): Insert arg-nonnull.h into getopt.h.
18132         * modules/glob (Depends-on): Add arg-nonnull.
18133         (Makefile.am): Insert arg-nonnull.h into glob.h.
18134         * modules/iconv_open (Depends-on): Add arg-nonnull.
18135         (Makefile.am): Insert arg-nonnull.h into iconv.h.
18136         * modules/inttypes (Depends-on): Add arg-nonnull.
18137         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
18138         * modules/locale (Depends-on): Add arg-nonnull.
18139         (Makefile.am): Insert arg-nonnull.h into locale.h.
18140         * modules/math (Depends-on): Add arg-nonnull.
18141         (Makefile.am): Insert arg-nonnull.h into math.h.
18142         * modules/netdb (Depends-on): Add arg-nonnull.
18143         (Makefile.am): Insert arg-nonnull.h into netdb.h.
18144         * modules/search (Depends-on): Add arg-nonnull.
18145         (Makefile.am): Insert arg-nonnull.h into search.h.
18146         * modules/signal (Depends-on): Add arg-nonnull.
18147         (Makefile.am): Insert arg-nonnull.h into signal.h.
18148         * modules/spawn (Depends-on): Add arg-nonnull.
18149         (Makefile.am): Insert arg-nonnull.h into spawn.h.
18150         * modules/stdio (Depends-on): Add arg-nonnull.
18151         (Makefile.am): Insert arg-nonnull.h into stdio.h.
18152         * modules/stdlib (Depends-on): Add arg-nonnull.
18153         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
18154         * modules/string (Depends-on): Add arg-nonnull.
18155         (Makefile.am): Insert arg-nonnull.h into string.h.
18156         * modules/strings (Depends-on): Add arg-nonnull.
18157         (Makefile.am): Insert arg-nonnull.h into strings.h.
18158         * modules/sys_socket (Depends-on): Add arg-nonnull.
18159         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
18160         * modules/sys_stat (Depends-on): Add arg-nonnull.
18161         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
18162         * modules/sys_time (Depends-on): Add arg-nonnull.
18163         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
18164         * modules/sys_times (Depends-on): Add arg-nonnull.
18165         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
18166         * modules/sys_utsname (Depends-on): Add arg-nonnull.
18167         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
18168         * modules/time (Depends-on): Add arg-nonnull.
18169         (Makefile.am): Insert arg-nonnull.h into time.h.
18170         * modules/unistd (Depends-on): Add arg-nonnull.
18171         (Makefile.am): Insert arg-nonnull.h into unistd.h.
18172         * modules/wchar (Depends-on): Add arg-nonnull.
18173         (Makefile.am): Insert arg-nonnull.h into wchar.h.
18174         * modules/argv-iter (Depends-on): Add arg-nonnull.
18175         * tests/test-canonicalize.c (null_ptr): New function.
18176         (main): Use it.
18177         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
18178         (main): Use it.
18179         * tests/test-memmem.c (null_ptr): New function.
18180         (main): Use it.
18181         Reported by Jim Meyering.
18182
18183 2009-12-10  Bruno Haible  <bruno@clisp.org>
18184
18185         Use spaces for indentation, not tabs.
18186         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18187         * m4/*.m4: Untabify.
18188         * build-aux/*.h: Untabify.
18189         * tests/**/*.[hc]: Untabify.
18190         * README: New section "Indent with spaces, not TABs", based on
18191         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
18192         * NEWS: Mention the change.
18193
18194 2009-12-10  Bruno Haible  <bruno@clisp.org>
18195
18196         pty test: Fix link error.
18197         * modules/pty-tests (Makefile.am): Add the default LDADD value to
18198         test_pty_LDADD.
18199
18200 2009-12-07  Simon Josefsson  <simon@josefsson.org>
18201
18202         * modules/pty: New file.
18203         * modules/pty-tests: New file.
18204         * m4/pty.m4: New file.
18205         * tests/test-pty.c: New file.
18206         * doc/glibc-headers/pty.texi: Modified.
18207         * doc/glibc-functions/forkpty.texi: Modified.
18208         * doc/glibc-functions/openpty.texi: Modified.
18209
18210 2009-12-10  Bruno Haible  <bruno@clisp.org>
18211
18212         Avoid syntax error in C++ mode.
18213         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
18214
18215 2009-12-10  Bruno Haible  <bruno@clisp.org>
18216
18217         Use sed with option -e.
18218         * gnulib-tool (func_version, func_emit_copyright_notice,
18219         func_emit_initmacro_end, func_import, func_create_testdir): Pass
18220         option -e to sed.
18221         * modules/link-warning (Makefile.am): Likewise.
18222
18223 2009-12-10  Jim Meyering  <meyering@redhat.com>
18224
18225         mgetgroups: do not write bytes beyond end of malloc'd buffer
18226         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
18227         username, we call getgroups with a one-element-shorter buffer,
18228         but still told it the length was original, max_n_groups.
18229
18230 2009-12-09  Eric Blake  <ebb9@byu.net>
18231
18232         cloexec: relax license
18233         * modules/cloexec (Maintainer): Add myself.
18234         (License): Use LGPL, not GPL.
18235
18236         link-warning: optimize generation
18237         * modules/link-warning (Makefile.am): Reduce process usage.
18238
18239 2009-12-09  Bruno Haible  <bruno@clisp.org>
18240
18241         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
18242         workaround was added on 2009-11-17.
18243
18244 2009-12-09  Jim Meyering  <meyering@redhat.com>
18245             Bruno Haible  <bruno@clisp.org>
18246
18247         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
18248         * modules/link-warning (Makefile.am): Make the comment-removing sed
18249         command more robust in the face of bootstrap-prepended comment lines.
18250
18251 2009-12-09  Bruno Haible  <bruno@clisp.org>
18252
18253         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
18254         most one group.
18255
18256 2009-12-09  Simon Josefsson <simon@josefsson.org>
18257             Bruno Haible  <bruno@clisp.org>
18258
18259         * build-aux/link-warning.h: Add copyright notice.
18260         * modules/link-warning (Makefile.am): Generate link-warning.h from
18261         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
18262         * NEWS: Mention change in link-warning module.
18263         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
18264         * modules/dirent (Makefile.am): Add dependency to dirent.h.
18265         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
18266         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
18267         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
18268         * modules/math (Makefile.am): Add dependency to math.h.
18269         * modules/search (Makefile.am): Add dependency to search.h.
18270         * modules/signal (Makefile.am): Add dependency to signal.h.
18271         * modules/spawn (Makefile.am): Add dependency to spawn.h.
18272         * modules/stdio (Makefile.am): Add dependency to stdio.h.
18273         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
18274         * modules/string (Makefile.am): Add dependency to string.h.
18275         * modules/strings (Makefile.am): Add dependency to strings.h.
18276         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
18277         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
18278         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
18279         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
18280         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
18281         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
18282         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
18283         * modules/unistd (Makefile.am): Add dependency to unistd.h.
18284         * modules/wchar (Makefile.am): Add dependency to wchar.h.
18285
18286 2009-12-09  Bruno Haible  <bruno@clisp.org>
18287
18288         fchdir: Optimize away rpl_fstat when possible.
18289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
18290         REPLACE_OPEN_DIRECTORY.
18291         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
18292
18293 2009-12-09  Bruno Haible  <bruno@clisp.org>
18294
18295         * lib/fchdir.c: Update comment.
18296
18297 2009-12-09  Bruno Haible  <bruno@clisp.org>
18298
18299         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
18300
18301 2009-12-08  Eric Blake  <ebb9@byu.net>
18302
18303         fchdir: avoid memory leak on re-registration.
18304         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
18305
18306 2009-12-08  Jim Meyering  <meyering@redhat.com>
18307
18308         init.sh: avoid Solaris 10 /bin/sh portability problem
18309         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
18310         sourced script:
18311           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
18312           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
18313           bar
18314         tests/init.sh relied on that, accepting a --set-path=DIR argument,
18315         and two tests used that idiom.
18316         * tests/init.sh: Update suggested usage comments.
18317         (path_prepend_): New function, to be used in place
18318         of the --src-path=DIR option.
18319         (setup_): Move PATH-prepending code into path_prepend_.
18320         * tests/test-pread.sh: Adapt to new usage.
18321         * tests/test-xalloc-die.sh: Likewise.
18322
18323 2009-12-08  Simon Josefsson  <simon@josefsson.org>
18324
18325         * doc/gnulib.texi (Glibc pty.h): Add.
18326         * doc/glibc-functions/forkpty.texi: Add.
18327         * doc/glibc-functions/openpty.texi: Add.
18328         Suggested by Bruno Haible.
18329
18330 2009-12-08  Eric Blake  <ebb9@byu.net>
18331
18332         fchdir: fix logic bugs
18333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
18334         * tests/test-fchdir.c (main): Enhance test.
18335         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
18336         is in use.
18337
18338         dup2: fix logic bugs
18339         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
18340         REPLACE_DUP2 to decide when rpl_dup2 is needed.
18341         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
18342         exists.
18343         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
18344
18345 2009-12-07  Eric Blake  <ebb9@byu.net>
18346
18347         unlink: fix m4 detection
18348         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
18349
18350         unistd-safer: add unit test
18351         * modules/unistd-safer-tests: New file.
18352         * tests/test-dup-safer.c: Likewise.
18353         * tests/test-cloexec.c (setmode): Avoid compiler warning.
18354         * tests/test-dup2.c (setmode): Likewise.
18355         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
18356
18357         cloexec: preserve text vs. binary across dup_cloexec
18358         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
18359         mode.
18360         * modules/dup2-tests (Depends-on): Add binary-io.
18361         * modules/cloexec-tests (Depends-on): Likewise.
18362         * tests/test-dup2.c (setmode, is_mode): New helpers.
18363         (main): Add tests that translation mode is preserved.
18364         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
18365         Reported by Bruno Haible.
18366
18367         mgetgroups: reduce duplicate listings
18368         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
18369         resulting array.
18370         * tests/test-chown.h (test_chown): Simplify client.
18371         * tests/test-lchown.h (test_lchown): Likewise.
18372
18373 2009-12-06  Bruno Haible  <bruno@clisp.org>
18374
18375         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
18376         value.
18377
18378 2009-12-06  Bruno Haible  <bruno@clisp.org>
18379
18380         * lib/progname.c: Include stdio.h, stdlib.h.
18381         (set_program_name): Reject a NULL argument.
18382
18383 2009-12-05  Eric Blake  <ebb9@byu.net>
18384
18385         pipe2-safer: new module
18386         * modules/pipe2-safer: New file.
18387         * lib/unistd-safer.h (pipe2_safer): New prototype.
18388         * lib/unistd--.h (pipe2): New wrapper.
18389         * lib/pipe-safer.c (pipe2_safer): New function.
18390         * modules/pipe (Depends-on): Add pipe2-safer.
18391         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
18392
18393         stdlib-safer: preserve cloexec flag for mkostemp[s]
18394         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
18395         fd_safer_flag.
18396
18397         unistd-safer: allow preservation of cloexec status via flag
18398         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
18399         prototypes.
18400         * lib/dup-safer.c (dup_safer_flag): New function.
18401         * lib/fd-safer.c (fd_safer_flag): Likewise.
18402         * modules/cloexec (configure.ac): Set witness.
18403
18404         test-dup2: enhance test
18405         * modules/dup2-tests (Depends-on): Add cloexec.
18406         * tests/test-dup2.c (main): Enhance test.
18407
18408         cloexec: add dup_cloexec
18409         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
18410         header and comments.
18411         * lib/cloexec.c (set_cloexec_flag): Add comments.
18412         (dup_cloexec): New function, with mingw implementation borrowed
18413         from...
18414         * lib/w32spawn.h (dup_noinherit): ...here.
18415         * modules/execute (Depends-on): Add cloexec.
18416         * modules/pipe (Depends-on): Likewise.
18417         * modules/cloexec (Depends-on): Add dup2.
18418         * modules/cloexec-tests (Files): New file.
18419         * tests/test-cloexec.c: Likewise.
18420
18421         test-xalloc-die: fix test for mingw
18422         * modules/xalloc-die-tests (Files): Add tests/init.sh.
18423         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
18424         directory and .exe suffix off argv[0] output.
18425
18426         test-fseeko: fix test for mingw
18427         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
18428         than undefining fseek, so test will pass on mingw.
18429
18430 2009-12-05  Bruno Haible  <bruno@clisp.org>
18431
18432         * lib/progname.h (set_program_name): Clarify specification.
18433         * lib/progname.c (set_program_name): Likewise.
18434         Reported by Jim Meyering.
18435
18436 2009-12-05  Jim Meyering  <meyering@redhat.com>
18437
18438         maint.mk: backslash-escape parens in default regexp
18439         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
18440         backslash-escape the literal parentheses.
18441
18442         maint.mk: news-date-check: use grep -E
18443         * top/maint.mk (today): Define a Make variable, not a...
18444         (news-date-check): ...shell variable.
18445         (news-date-regexp): Use the Make variable.
18446         Use grep's -E option.  Change the failing diagnostic to mention
18447         the variable, $(news-date-regexp).
18448
18449 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
18450
18451         maintainer-makefile: allow customization of NEWS entry format
18452         * top/maint.mk (news-date-regexp): New overridable variable.
18453         (news-date-check): Use it.
18454
18455 2009-12-04  Eric Blake  <ebb9@byu.net>
18456
18457         mgetgroups: add xgetgroups, and avoid ENOSYS failures
18458         * lib/mgetgroups.h (xgetgroups): New prototype.
18459         * lib/mgetgroups.c (xgetgroups): New wrapper.
18460         (mgetgroups): Handle ENOSYS.
18461         * modules/mgetgroups (Depends-on): Add realloc.
18462         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
18463
18464         mgetgroups: avoid argument promotion issues with -1
18465         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
18466         for invalid gid_t.
18467         * tests/test-chown.h (getegid, test_chown): Likewise.
18468         * tests/test-lchown.h (getegid, test_lchown): Likewise.
18469
18470 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
18471
18472         exclude: Fix header file problems.
18473         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
18474
18475 2009-12-01  Jim Meyering  <meyering@redhat.com>
18476
18477         fts: fts_open: do not let an empty string cause immediate failure
18478         This is required in support of GNU rm, for which the command
18479         "rm A '' B" must process and remove both A and B, in spite of
18480         the empty string argument.
18481         * lib/fts.c (fts_open): Do not let the presence of an empty string
18482         cause fts_open to fail immediately.  Most fts-using tools must be
18483         able to process all arguments, in order, and can be expected to
18484         diagnose such arguments themselves.
18485
18486 2009-11-30  Eric Blake  <ebb9@byu.net>
18487
18488         utimens: fix compilation error
18489         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
18490         Declare variable at right scope.
18491
18492 2009-11-29  Jim Meyering  <meyering@redhat.com>
18493
18494         bootstrap: handle perl-5.11's changed --version output
18495         * build-aux/bootstrap (get_version): Handle perl separately,
18496         since perl-5.11's --version output is different.
18497
18498 2009-11-28  Jim Meyering  <meyering@redhat.com>
18499
18500         userspec: depend on the inttostr module, too
18501         * modules/userspec (Depends-on): Add inttostr.
18502
18503         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
18504         * lib/userspec.c (parse_with_separator): Do not accept a user ID
18505         number of MAXUID when it evaluates to (uid_t) -1.
18506         Likewise for group ID.  Reported by Matt McCutchen in
18507         <http://savannah.gnu.org/bugs/?28113>
18508
18509         userspec: reformat to use spaces, not TABs
18510         * lib/userspec.c: Expand TABs to spaces.
18511         Add Emacs' "indent-tabs-mode: nil" hint.
18512
18513 2009-11-27  Eric Blake  <ebb9@byu.net>
18514
18515         getopt-gnu: flush out another BSD bug
18516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
18517         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
18518         flush out BSD bug.
18519         * tests/test-getopt.h (test_getopt): End lists with NULL.
18520         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18521         (test_getopt_long_posix): Enhance test.
18522         * modules/getopt-posix-tests (Depends-on): Add stdbool.
18523         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
18524         getopt-gnu.
18525         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18526         Likewise.
18527
18528 2009-11-27  Simon Josefsson  <simon@josefsson.org>
18529
18530         * modules/idpriv-droptemp-tests (Notice): Fix text.
18531
18532 2009-11-27  Jim Meyering  <meyering@redhat.com>
18533
18534         test-xalloc-die: avoid spurious failure due to libtool argv difference
18535         In a libtool-enabled project, this test would fail due to a difference
18536         in the emitted program name, e.g.,
18537         -test-xalloc-die: memory exhausted
18538         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
18539         Use program to avoid that.
18540         * modules/xalloc-die-tests (Depends-on): Add progname.
18541         * tests/test-xalloc-die.c: Include progname.h".
18542         (program_name): Remove decl.
18543         (main): Call set_program_name.
18544         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
18545
18546 2009-11-26  Richard Jones  <rjones@redhat.com>
18547
18548         w32sock: leave win32 error in place.
18549         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
18550
18551 2009-11-26  Eric Blake  <ebb9@byu.net>
18552
18553         init.sh: suggest to use skip_ and fail_ functions in comments
18554         * tests/init.sh: Add a sentence.
18555
18556 2009-11-25  Bruno Haible  <bruno@clisp.org>
18557
18558         init.sh: add documentation in comments
18559         * tests/init.sh: Add some developer and user documentation.
18560
18561 2009-11-26  Jim Meyering  <meyering@redhat.com>
18562
18563         init.sh: accommodate even those who specify bogus srcdir manually
18564         * tests/init.sh: Normally, srcdir is guaranteed by automake and
18565         configure-time tests to be sanitized, so that there is no need to
18566         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
18567         (with no double quotes) suffices.  However, since tests may be
18568         invoked manually, and since you may explicitly set srcdir to the
18569         name of a directory containing spaces, do quote its uses here.
18570         * tests/test-pread.sh: Likewise.
18571         Suggested by Bruno Haible.
18572
18573         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
18574         * tests/test-pread.sh: Write no data into the pipe, because
18575         test-pread actually reads none.  This avoids a diagnostic,
18576         "bash: echo: write error: Broken pipe", that arises in the unusual
18577         event something is ignoring SIGPIPE, and might be interpreted
18578         as some sort of failure.  Reported by Bruno Haible.
18579
18580 2009-11-25  Jim Meyering  <meyering@redhat.com>
18581
18582         test-pread: cover failure with ESPIPE and EINVAL
18583         * tests/test-pread.c (main): Test for failure, too.
18584         * tests/test-pread.sh: Invoke with stdin on a pipe.
18585         Suggested by Eric Blake.
18586
18587         pread: improvement and fix
18588         * modules/pread (Depends-on): Depend on lseek, for portability to
18589         e.g., mingw.  Suggested by Eric Blake.
18590         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
18591
18592         unistd.in.h: correct declaration of pread
18593         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
18594         Reported by Richard W.M. Jones.
18595
18596         test-pread.sh: distribute the test script
18597         * modules/pread-tests (Files): Include test-pread.sh.
18598
18599         test-pread.sh: clean up
18600         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
18601         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
18602         That is unnecessary, since it's always ".".
18603         Suggestion from Eric Blake.
18604
18605         test-pread.sh: make executable
18606         * tests/test-pread.sh: Set executable bit.
18607         Reported by Eric Blake.
18608
18609         correct typo in test-pread.sh
18610         * tests/test-pread.sh: Add #! line.
18611
18612         test pread
18613         * tests/test-pread.c: New file.
18614         * tests/test-pread.sh: Likewise.
18615         * modules/pread-tests: Likewise.
18616
18617         pread: new module
18618         * modules/pread: New file.
18619         * lib/unistd.in.h (pread): Define/declare.
18620         * lib/pread.c (pread): New file.
18621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
18622         * modules/unistd (Makefile.am): Substitute witnesses.
18623         * doc/posix-functions/pread.texi (pread): Update.
18624         * MODULES.html.sh: Add pread.
18625
18626 2009-11-25  Jim Meyering  <meyering@redhat.com>
18627
18628         tests/init.sh: new file to be used via most *.sh tests
18629         * tests/init.sh: New file.
18630
18631 2009-11-25  Eric Blake  <ebb9@byu.net>
18632
18633         utimens: work around older Linux failure with symlinks
18634         * lib/utimens.c (lutimensat_works_really): New variable.
18635         (fdutimens, lutimens): Use it to manage kernels that support
18636         nanosecond times on files, but not on symlinks.
18637         Reported by OndÅ™ej Vašík.
18638
18639         utimes: fix configure grammar
18640         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
18641
18642 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
18643
18644         regex: Fix fastmap for multibyte character ranges.
18645         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
18646         characters when a multibyte character range is included.
18647
18648 2009-11-22  Andy Wingo  <wingo@pobox.com>
18649
18650         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
18651         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
18652
18653 2009-11-24  Bruno Haible  <bruno@clisp.org>
18654
18655         doc: Most *_l functions exist in MacOS X 10.5.
18656         * doc/posix-functions/duplocale.texi: Update platforms list.
18657         * doc/posix-functions/freelocale.texi: Likewise.
18658         * doc/posix-functions/newlocale.texi: Likewise.
18659         * doc/posix-functions/uselocale.texi: Likewise.
18660         * doc/posix-functions/isalnum_l.texi: Likewise.
18661         * doc/posix-functions/isalpha_l.texi: Likewise.
18662         * doc/posix-functions/isblank_l.texi: Likewise.
18663         * doc/posix-functions/iscntrl_l.texi: Likewise.
18664         * doc/posix-functions/isdigit_l.texi: Likewise.
18665         * doc/posix-functions/isgraph_l.texi: Likewise.
18666         * doc/posix-functions/islower_l.texi: Likewise.
18667         * doc/posix-functions/isprint_l.texi: Likewise.
18668         * doc/posix-functions/ispunct_l.texi: Likewise.
18669         * doc/posix-functions/isspace_l.texi: Likewise.
18670         * doc/posix-functions/isupper_l.texi: Likewise.
18671         * doc/posix-functions/iswalnum_l.texi: Likewise.
18672         * doc/posix-functions/iswalpha_l.texi: Likewise.
18673         * doc/posix-functions/iswblank_l.texi: Likewise.
18674         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18675         * doc/posix-functions/iswctype_l.texi: Likewise.
18676         * doc/posix-functions/iswdigit_l.texi: Likewise.
18677         * doc/posix-functions/iswgraph_l.texi: Likewise.
18678         * doc/posix-functions/iswlower_l.texi: Likewise.
18679         * doc/posix-functions/iswprint_l.texi: Likewise.
18680         * doc/posix-functions/iswpunct_l.texi: Likewise.
18681         * doc/posix-functions/iswspace_l.texi: Likewise.
18682         * doc/posix-functions/iswupper_l.texi: Likewise.
18683         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18684         * doc/posix-functions/isxdigit_l.texi: Likewise.
18685         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
18686         * doc/posix-functions/strcasecmp_l.texi: Likewise.
18687         * doc/posix-functions/strcoll_l.texi: Likewise.
18688         * doc/posix-functions/strfmon_l.texi: Likewise.
18689         * doc/posix-functions/strftime_l.texi: Likewise.
18690         * doc/posix-functions/strncasecmp_l.texi: Likewise.
18691         * doc/posix-functions/strxfrm_l.texi: Likewise.
18692         * doc/posix-functions/tolower_l.texi: Likewise.
18693         * doc/posix-functions/toupper_l.texi: Likewise.
18694         * doc/posix-functions/towctrans_l.texi: Likewise.
18695         * doc/posix-functions/towlower_l.texi: Likewise.
18696         * doc/posix-functions/towupper_l.texi: Likewise.
18697         * doc/posix-functions/wcscoll_l.texi: Likewise.
18698         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18699         * doc/posix-functions/wctrans_l.texi: Likewise.
18700         * doc/posix-functions/wctype_l.texi: Likewise.
18701         * doc/glibc-functions/strptime_l.texi: Likewise.
18702         * doc/glibc-functions/strtod_l.texi: Likewise.
18703         * doc/glibc-functions/strtof_l.texi: Likewise.
18704         * doc/glibc-functions/strtol_l.texi: Likewise.
18705         * doc/glibc-functions/strtold_l.texi: Likewise.
18706         * doc/glibc-functions/strtoll_l.texi: Likewise.
18707         * doc/glibc-functions/strtoul_l.texi: Likewise.
18708         * doc/glibc-functions/strtoull_l.texi: Likewise.
18709         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18710         * doc/glibc-functions/wcstod_l.texi: Likewise.
18711         * doc/glibc-functions/wcstof_l.texi: Likewise.
18712         * doc/glibc-functions/wcstol_l.texi: Likewise.
18713         * doc/glibc-functions/wcstold_l.texi: Likewise.
18714         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18715         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18716         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18717
18718 2009-11-24  Bruno Haible  <bruno@clisp.org>
18719
18720         duplocale: Fix logic bug.
18721         * lib/duplocale.c: Don't include <langinfo.h>.
18722         (_NL_LOCALE_NAME): Remove macro.
18723         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18724         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18725
18726 2009-11-23  Jim Meyering  <meyering@redhat.com>
18727
18728         test-update-copyright: don't hard-code /usr/bin/perl
18729         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18730         perl to print the current year.  Gilles Espinasse reported that
18731         the replaced use of perl was hard-coded as /usr/bin/perl.
18732
18733 2009-11-23  Bruno Haible  <bruno@clisp.org>
18734
18735         duplocale: Add support for glibc 2.3.x.
18736         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18737
18738 2009-11-22  Bruno Haible  <bruno@clisp.org>
18739
18740         vasnprintf: Tiny optimization.
18741         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18742         MacOS X.
18743
18744 2009-11-22  Bruno Haible  <bruno@clisp.org>
18745
18746         Tests for module 'duplocale'.
18747         * modules/duplocale-tests: New file.
18748         * tests/test-duplocale.c: New file.
18749
18750         New module 'duplocale'.
18751         * m4/duplocale.m4: New file.
18752         * lib/locale.in.h (duplocale): New declaration.
18753         * lib/duplocale.c: New file.
18754         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18755         gl_LOCALE_H_DEFAULTS): New macros.
18756         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18757         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18758         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18759         REPLACE_DUPLOCALE.
18760         * modules/duplocale: New file.
18761         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18762
18763 2009-11-22  Bruno Haible  <bruno@clisp.org>
18764
18765         * modules/locale-tests (configure.ac): Test for newlocale function.
18766         * tests/test-locale.c: When the system has extended locale functions,
18767         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18768
18769         locale: Make locale_t available when possible.
18770         * lib/locale.in.h: Include <xlocale.h> when it exists.
18771         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18772         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18773         * modules/locale (Depends-on): Add extensions.
18774         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18775         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18776
18777 2009-11-22  Bruno Haible  <bruno@clisp.org>
18778
18779         Add comments.
18780         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18781         invocation.
18782         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18783         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18784         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18785
18786 2009-11-22  Bruno Haible  <bruno@clisp.org>
18787
18788         error: account for the possibility of freopen (stdout).
18789         * lib/error.c: Include <unistd.h>.
18790         (flush_stdout): New function, extracted from error and error_at_line.
18791         Determine stdout's fd dynamically.
18792         (error, error_at_line): Invoke flush_stdout.
18793         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18794         * modules/error (Depends-on): Add unistd.
18795
18796 2009-11-22  Bruno Haible  <bruno@clisp.org>
18797
18798         diffseq: Add comment.
18799         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18800
18801 2009-11-22  Jim Meyering  <meyering@redhat.com>
18802
18803         c-stack: avoid defining an unused static function
18804         * lib/c-stack.c (find_stack_direction): Do not define this function
18805         when it will not be used.
18806
18807         diffseq: avoid spurious gcc warnings
18808         * lib/diffseq.h (IF_LINT2): Define.
18809         (compareseq): Use it to initialize two members of "part".
18810         This avoids two used-uninitialized warnings.
18811
18812 2009-11-21  Jim Meyering  <meyering@redhat.com>
18813
18814         c-stack: avoid "ignoring return value of `write'" warning
18815         * lib/c-stack.c: Include "ignore-value.h".
18816         (die): Explicitly ignore each write return value.
18817         * modules/c-stack (Depends-on): Add ignore-value.
18818
18819 2009-11-21  Bruno Haible  <bruno@clisp.org>
18820
18821         diffseq: reduce scope of variable 'best'.
18822         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18823         variable, earlier used for two different purposes.
18824
18825 2009-11-21  Jim Meyering  <meyering@redhat.com>
18826
18827         diffseq: remove useless assignment to "best"
18828         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18829         assignment.  At that point "best" is already guaranteed to be zero.
18830
18831 2009-11-20  Eric Blake  <ebb9@byu.net>
18832
18833         build: mention ftp redirector in release announcements
18834         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18835         values that used to come from cfg.mk; mention FTP redirect URL.
18836         * build-aux/announce-gen: Mention the mirror list.
18837         Suggested by Karl Berry.
18838
18839         nanosleep: improve port to mingw
18840         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18842         LIB_NANOSLEEP, but only when needed.
18843         * modules/select (Link): Document LIBSOCKET.
18844         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18845         enough.
18846
18847         nanosleep: work around cygwin bug
18848         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18849         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18850         bug.
18851         (getnow): Delete, not needed.
18852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18853         LIB_CLOCK_GETTIME.
18854         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18855         clock-time, gettime.
18856         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18857         bug.
18858         * modules/nanosleep-tests: New test.
18859         * tests/test-nanosleep.c: New file.
18860
18861         sleep: work around cygwin bug
18862         * lib/sleep.c (rpl_sleep): Work around the bug.
18863         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18864         (gl_PREREQ_SLEEP): Delete unused macro.
18865         * modules/sleep (Depends-on): Add verify.
18866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18867         * modules/unistd (Makefile.am): Substitute witness.
18868         * lib/unistd.in.h (sleep): Update prototype.
18869         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18870         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18871         * modules/sleep-tests (Depends-on): Check for alarm.
18872
18873 2009-11-20  Jim Meyering  <meyering@redhat.com>
18874
18875         maint.mk: improve sc_prohibit_magic_number_exit
18876         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18877         so it does not match uses like System.exit(1).
18878         Add comments showing how to correct all offenders.
18879
18880 2009-11-19  Eric Blake  <ebb9@byu.net>
18881
18882         xalloc-die-tests: add missing library
18883         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18884
18885         test-xvasprintf: silence compiler warnings
18886         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18887         empty string from gcc.
18888
18889 2009-11-19  Jim Meyering  <meyering@redhat.com>
18890
18891         xfreopen: new module, from coreutils
18892         * modules/xfreopen: New module.
18893         * lib/xfreopen.c: New file.
18894         * lib/xfreopen.h: New file.
18895         * MODULES.html.sh (File stream based Input/Output"): Add it.
18896
18897 2009-11-19  Eric Blake  <ebb9@byu.net>
18898
18899         manywarnings: depend on warnings
18900         * modules/manywarnings (Depends-on): Add warnings.
18901
18902         build: avoid compiler warnings
18903         * lib/select.c (rpl_select): Delete unused variable.
18904         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18905
18906 2009-11-18  Eric Blake  <ebb9@byu.net>
18907
18908         tests: avoid false negative with --with-packager
18909         * tests/test-version-etc.sh: Discard packager information.
18910         * tests/test-argp-version-etc-1.sh: Likewise.
18911         Reported by Mike Frysinger.
18912
18913         utimens: fix regression on Solaris
18914         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18915         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18916         can only change fd timestamps via futimesat.  Instead, use an
18917         additional witness macro to avoid BSD bug.
18918         Reported by Jim Meyering.
18919
18920 2009-11-17  Eric Blake  <ebb9@byu.net>
18921
18922         usleep: use it to simplify tests
18923         * modules/stat-time-tests (Depends-on): Add usleep.
18924         (configure.ac): Drop usleep check.
18925         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18926         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18927         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18928         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18929         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18930         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18931         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18932         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18933         Likewise.
18934         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18935         * tests/test-lchown.h (nap): Likewise.
18936         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18937         * tests/test-stat-time.c (nap): Likewise.
18938         * tests/test-utimens-common.h (nap): Update comments.
18939
18940         usleep: new module
18941         * modules/usleep: New file.
18942         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18943         * lib/usleep.c (usleep): Likewise.
18944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18945         * modules/unistd (Makefile.am): Substitute witnesses.
18946         * lib/unistd.in.h (usleep): Add declaration.
18947         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18948         * MODULES.html.sh (Date and time): Likewise.
18949         * modules/usleep-tests (Depends-on): New test.
18950         * tests/test-usleep.c: New file.
18951
18952         chown: work around OpenBSD bug
18953         * lib/chown.c (rpl_chown): Work around the bug.
18954         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18955         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18956         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18957         * modules/chown (Depends-on): Add stdbool.
18958         * modules/lchown (Depends-on): Likewise.
18959         * doc/posix-functions/chown.texi (chown): Document the bug.
18960         * doc/posix-functions/lchown.texi (lchown): Likewise.
18961         * tests/test-lchown.h (test_chown): Relax test.
18962
18963         mkstemp: avoid conflict with C++ keyword template
18964         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18965         * lib/mkostemp.c (mkostemp): Likewise.
18966         * lib/mkostemps.c (mkostemps): Likewise.
18967         * lib/mkstemp.c (mkstemp): Likewise.
18968         * lib/mkstemps.c (mkstemps): Likewise.
18969
18970         xalloc-die-tests: optimize
18971         * tests/test-xalloc-die.sh: Reduce number of processes.
18972
18973 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18974
18975         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
18976         patch from ludo@gnu.org (Ludovic Courtès).
18977
18978 2009-11-17  Jim Meyering  <meyering@redhat.com>
18979
18980         version-etc: use proper license string
18981         * modules/version-etc (License): Use LGPL, not LGPLv3+.
18982         * modules/version-etc-fsf: Likewise.
18983
18984 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18985
18986         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
18987         printed to stdout.  Deal with EOL differences.
18988
18989 2009-11-17  Eric Blake  <ebb9@byu.net>
18990
18991         unsetenv: work around Solaris bug
18992         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
18993         * lib/unsetenv.c (rpl_unsetenv): Work around it.
18994         Reported by Jim Meyering.
18995
18996         vasnprintf: avoid compiler warnings
18997         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
18998         variables.
18999         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
19000
19001 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19002
19003         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
19004         settings since xalloc-die is no longer the self test,
19005         xalloc-die.sh is.
19006
19007 2009-11-17  Jim Meyering  <meyering@redhat.com>
19008
19009         test-xalloc-die.sh: make the code agree with the commit log
19010         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
19011         at the end, just in case you happen to have a test-xalloc-die
19012         program in some other PATH directory.
19013
19014         test-xalloc-die.sh: fix a portability bug
19015         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
19016         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
19017         Otherwise, argv[0] (as often seen in diagnostics) would be too
19018         system-dependent, sometimes with, and sometimes without the leading "./".
19019
19020         version-etc-fsf: relax license to LGPLv3+
19021         * modules/version-etc-fsf (License): Relax license.
19022
19023 2009-11-16  Eric Blake  <ebb9@byu.net>
19024
19025         xalloc-die-tests: avoid printing null pointer
19026         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
19027         shell script.
19028         * tests/test-xalloc-die.c (program_name): Declare.
19029         * tests/test-xalloc-die.sh (tmpfiles): New file.
19030
19031         setenv, unsetenv: work around various bugs
19032         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
19033         (setenv) [HAVE_SETENV]: Work around bugs.
19034         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
19035         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
19036         for bugs.
19037         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
19038         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
19039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
19040         * modules/stdlib (Makefile.am): Update substitutions.
19041         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
19042         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
19043         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19044         * modules/setenv-tests: New test.
19045         * modules/unsetenv-tests: Likewise.
19046         * tests/test-setenv.c: New file.
19047         * tests/test-unsetenv.c: Likewise.
19048
19049 2009-11-16  Jim Meyering  <meyering@redhat.com>
19050
19051         version-etc: relax license to LGPLv3+
19052         * modules/version-etc (License): Relax license.
19053
19054         better AC_REQUIRE expanded-before-required-warning avoidance
19055         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
19056         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
19057         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
19058         which is no longer needed.
19059
19060 2009-11-16  Eric Blake  <ebb9@byu.net>
19061
19062         test-freading: clean up temporary file
19063         * tests/test-freading.c (main): Remove file on success, and use
19064         ASSERT more liberally.
19065         Reported by Jim Meyering.
19066
19067 2009-11-16  Jim Meyering  <meyering@redhat.com>
19068
19069         avoid new AC_REQUIRE expanded-before-required warnings
19070         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
19071         merely using it.
19072         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
19073         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
19074
19075 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19076
19077         * tests/test-xalloc-die.c: New file.
19078         * modules/xalloc-die-tests: New file.
19079         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
19080         XFAIL_TESTS so it can be appended by modules.
19081
19082 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19083
19084         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
19085         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
19086
19087 2009-11-14  Eric Blake  <ebb9@byu.net>
19088
19089         fnmatch: avoid compiler warning
19090         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
19091         to silence compiler warning about mismatch signedness in ?:.
19092         Reported by Robert Millan.
19093
19094         intprops: add double-inclusion guard
19095         * lib/intprops.h: Allow idempotent includes.
19096         Suggested by Bruce Korb.
19097
19098         openat: detect Solaris fchownat bug
19099         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
19100         penalizing glibc chownat when only lchownat is broken.
19101         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
19102         trailing slash bugs.
19103         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
19104         * modules/openat-tests (Files): Include more files.
19105         (Depends-on): Add mgetgroups, sleep, stat-time.
19106         (configure.ac): Add additional checks.
19107         (Makefile.am): Build new test.
19108         * tests/test-fchownat.c: New file.
19109
19110         lchown: detect Solaris and FreeBSD bug
19111         * lib/lchown.c (rpl_lchown): Work around bug.
19112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
19113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19114         * modules/unistd (Makefile.am): Populate it.
19115         * lib/unistd.in.h (lchown): Update declaration.
19116         * doc/posix-functions/lchown.texi (lchown): Document the bug.
19117         * modules/lchown-tests: New file.
19118         * tests/test-lchown.h (test_lchown): Likewise.
19119         * tests/test-lchown.c (main): Likewise.
19120
19121         chown: detect Solaris and FreeBSD bug
19122         * lib/chown.c (rpl_chown): Work around bug.
19123         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
19124         (gl_PREREQ_CHOWN): Delete.
19125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19126         * modules/unistd (Makefile.am): Populate it.
19127         * lib/unistd.in.h (chown): Update declaration.
19128         * lib/lchown.c (chown): Update client.
19129         * modules/lchown (Depends-on): Add lstat.
19130         * doc/posix-functions/chown.texi (chown): Document the bug.
19131         * doc/posix-functions/getgroups.texi (getgroups): Document
19132         getgroups pitfall.
19133         * modules/chown-tests: New file.
19134         * tests/test-chown.h (test_chown): Likewise.
19135         * tests/test-chown.c (main): Likewise.
19136
19137 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
19138
19139         gnulib-tool: correctly detect absence of m4 directories
19140         * gnulib-tool: Avoid extra newline on data passed to wc -l.
19141
19142 2009-11-14  Jim Meyering  <meyering@redhat.com>
19143
19144         maint.mk: Prohibit inclusion of "xalloc.h" without use.
19145         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19146
19147 2009-11-14  John W. Eaton  <jwe@gnu.org>
19148
19149         strftime.h: wrap funtion declaration in extern "C" block
19150         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
19151
19152 2009-11-13  Eric Blake  <ebb9@byu.net>
19153
19154         getgroups: avoid compiler warning
19155         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
19156
19157         getgroups: work around FreeBSD bug
19158         * lib/getgroups.c (rpl_getgroups): Work around the bug.
19159         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
19160         * doc/posix-functions/getgroups.texi (getgroups): Document it.
19161         * tests/test-getgroups.c (main): Fix buffer overrun.
19162
19163         getgroups: avoid compilation failure
19164         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
19165         * modules/getgroups (Depends-on): Add stdint.
19166
19167 2009-11-13  Jim Meyering  <meyering@redhat.com>
19168
19169         test-getgroups: avoid compilation failure
19170         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
19171
19172 2009-11-13  Eric Blake  <ebb9@byu.net>
19173
19174         mgetgroups: new module, taken from coreutils
19175         * modules/mgetgroups: New file.
19176         * lib/mgetgroups.h: Likewise.
19177         * lib/mgetgroups.c (mgetgroups): Likewise.
19178         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
19179         * MODULES.html.sh (Users and groups): Mention it.
19180
19181         getgroups: don't expose GETGROUPS_T to user
19182         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
19183         an element at a time if GETGROUPS_T is wrong size.
19184         * lib/getugroups.h (getugroups): Change signature.
19185         * lib/unistd.in.h (getgroups): Likewise.
19186         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
19187         signature needs fixing.
19188         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
19189         AC_TYPE_GETGROUPS.
19190         * modules/group-member (Depends-on): Add getgroups.
19191         * lib/group-member.c (group_info, get_group_info): Use gid_t.
19192         (group_member): Rely on getgroups replacement.
19193         * lib/getugroups.c (getugroups): Use gid_t.
19194         * tests/test-getgroups.c (main): Likewise.
19195         * NEWS: Mention the signature change.
19196         * doc/posix-functions/getgroups.texi (getgroups): Mention the
19197         problem with signature.
19198         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
19199         GETGROUPS_T is still useful for setgroups.
19200
19201         getgroups, getugroups: provide stubs for mingw
19202         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
19203         * lib/getugroups.c (getugroups): Likewise.
19204         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
19205         function.  Modernize replacement scheme.
19206         (gl_PREREQ_GETGROUPS): Delete.
19207         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
19208         * modules/getgroups (configure.ac): Declare witness.
19209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19210         * modules/unistd (Depends-on): Substitute witness.
19211         * lib/unistd.in.h (getgroups): Declare replacement.
19212
19213         getgroups: avoid calling exit
19214         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
19215         drop xalloc.
19216         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
19217         dependencies.
19218         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
19219         exiting, in the rare case of malloc failure.
19220
19221         getgroups: fix logic error
19222         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
19223         has more than 20 groups.
19224         * modules/getgroups-tests: New test.
19225         * tests/test-getgroups.c: New file.
19226
19227 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19228
19229         * tests/test-base64.c: Improve.
19230
19231 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19232
19233         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
19234         Blake <ebb9@byu.net>.
19235
19236 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19237
19238         * tests/test-xvasprintf.c: Add %s%s related checks.
19239
19240 2009-11-12  Eric Blake  <ebb9@byu.net>
19241
19242         version-etc: match standards.texi style
19243         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
19244         and use <> only for URLs.
19245
19246 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
19247
19248         fts: do not fail on a submount during traversal
19249         * lib/fts.c (fts_build): Read the stat info again after opening
19250         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
19251         Original report at http://bugzilla.redhat.com/501848.
19252
19253 2009-11-12  Jim Meyering  <meyering@redhat.com>
19254
19255         bootstrap: sync from coreutils
19256         * build-aux/bootstrap (bootstrap_epilogue): New function.
19257         Use git_modules_config in one more place.  This make bootstrap's
19258         --gnulib-srcdir option more useful for testing.
19259
19260         bootstrap: generalize autoheader check
19261         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
19262         AC_CONFIG_HEADERS.
19263
19264 2009-11-11  Eric Blake  <ebb9@byu.net>
19265
19266         mkfifoat: use new modules for Solaris and BSD bugs
19267         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
19268         * lib/mkfifoat.c (mknodat): Split...
19269         * lib/mknodat.c (mknodat): ...into new file.
19270         * modules/mkfifoat (Files): Ship new file.
19271         (Depends-on): Add mkfifo, mknod.
19272         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
19273         (Depends-on): Add symlink.
19274         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
19275         redundant with test_mkfifo.h.
19276         (do_mkfifoat, do_mknodat): New helpers.
19277
19278         mknod: new module
19279         * modules/mknod: New file.
19280         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19281         * lib/mknod.c (mknod): Likewise.
19282         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19283         defaults.
19284         * modules/sys_stat (Makefile.am): Substitute them.
19285         * lib/sys_stat.in.h (mknod): Declare replacement.
19286         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19287         Document it.
19288         * doc/posix-functions/mknod.texi (mknod): Likewise.
19289         * modules/mknod-tests: New test.
19290         * tests/test-mknod.c: Likewise.
19291
19292         mkfifo: new module
19293         * modules/mkfifo: New file.
19294         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19295         * lib/mkfifo.c (mkfifo): Likewise.
19296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19297         defaults.
19298         * modules/sys_stat (Makefile.am): Substitute them.
19299         * lib/sys_stat.in.h (mkfifo): Declare replacement.
19300         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19301         Document it.
19302         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
19303         * modules/mkfifo-tests: New test.
19304         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
19305         from test-mkfifoat.c.
19306         * tests/test-mkfifo.c: New file.
19307
19308         readlink: detect FreeBSD bug
19309         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
19310         slash on symlink.
19311         * doc/posix-functions/readlink.texi (readlink): Document the bug.
19312         * tests/test-readlink.h (test_readlink): Enhance test.
19313
19314         symlink: detect FreeBSD bug
19315         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
19316         slash on symlink.
19317         * doc/posix-functions/symlink.texi (symlink): Document the bug.
19318         * tests/test-symlink.h (test_symlink): Enhance test.
19319
19320 2009-11-10  Eric Blake  <ebb9@byu.net>
19321
19322         link: detect FreeBSD bug
19323         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
19324         symlink.
19325         * doc/posix-functions/link.texi (link): Document the bug.
19326         * tests/test-link.h (test_link): Enhance test.
19327         * tests/test-linkat.c (main): Update caller.
19328
19329         unlink, remove: detect FreeBSD bug
19330         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
19331         slash on symlink.
19332         * doc/posix-functions/unlink.texi (unlink): Document the bug.
19333         * doc/posix-functions/remove.texi (remove): Likewise.
19334         * tests/test-unlink.h (test_unlink): Enhance test.
19335         * tests/test-remove.c (main): Likewise.
19336
19337 2009-11-09  Eric Blake  <ebb9@byu.net>
19338
19339         rename: detect FreeBSD bug
19340         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
19341         slash on symlink.
19342         * modules/renameat-tests (Depends-on): Add filenamecat.
19343         * tests/test-rename.h (test_rename): Allow one more errno.
19344         * tests/test-renameat.c (main): Likewise.
19345         * doc/posix-functions/rename.texi (rename): Document the bug.
19346
19347         open: detect FreeBSD bug
19348         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
19349         symlink.
19350         * doc/posix-functions/open.texi (open): Document the bug.
19351         * doc/posix-functions/utimes.texi (utimes): Likewise.
19352         * tests/test-open.h (test_open): Add parameters, and test symlink
19353         handling.
19354         * tests/test-open.c (main): Adjust caller.
19355         * tests/test-fcntl-safer.c (main): Likewise.
19356         * modules/open-tests (Depends-on): Add stdbool, symlink.
19357         * modules/fcntl-safer-tests (Depends-on): Likewise.
19358         * tests/test-openat.c (main): Add test-open tests.
19359
19360         stat: detect FreeBSD bug
19361         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
19362         symlink.
19363         * doc/posix-functions/stat.texi (stat): Document the bug.
19364         * tests/test-stat.h (test_stat_func): Add argument.
19365         * tests/test-stat.c (main): Adjust caller.
19366         * tests/test-fstatat.c (main): Likewise.
19367         * modules/stat-tests (Depends-on): Add stdbool, symlink.
19368         Reported by Jim Meyering.
19369
19370 2009-11-09  James Youngman  <jay@gnu.org>
19371
19372         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
19373         * lib/strftime.c: Correct placement of #include "ignore-value.h".
19374
19375 2009-11-08  Jim Meyering  <meyering@redhat.com>
19376
19377         utimens: remove invalid futimesat call
19378         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
19379         It used the file descriptor of the target file as the DIR_FD
19380         parameter and NULL as the file name.  That caused failure with
19381         errno == EFAULT on FreeBSD-8.0-rc2
19382
19383 2009-11-07  Eric Blake  <ebb9@byu.net>
19384
19385         fflush, freadseek: use fseeko, not fseek
19386         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19387         (clear_ungetc_buffer): Avoid potential problems on large files.
19388         * lib/freadseek.c (freadseek): Likewise.
19389         * modules/freadseek (Depends-on): Add fseeko.
19390         * modules/fseek (configure.ac): Set a witness.
19391         * tests/test-fflush.c (main): Use fseeko.
19392         * tests/test-fpurge.c (fseek): Disable link warning.
19393         * tests/test-freadable.c (fseek): Likewise.
19394         * tests/test-freading.c (fseek): Likewise.
19395         * tests/test-fseeko.c (fseek): Likewise.
19396         * tests/test-ftell.c (fseek): Likewise.
19397         * tests/test-ftello.c (fseek): Likewise.
19398         * tests/test-fwritable.c (fseek): Likewise.
19399         * tests/test-fwriting.c (fseek): Likewise.
19400
19401 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19402
19403         * modules/memchr (Depends-on): Drop getpagesize dependency.
19404
19405 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19406
19407         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
19408         Reported by Ludovic Courtès.
19409         * build-aux/pmccabe2html: Improve example usage.
19410         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
19411
19412 2009-11-06  Jim Meyering  <meyering@redhat.com>
19413
19414         do-release-commit-and-tag: New module.
19415         Automate the release-commit and tag process.
19416         * build-aux/do-release-commit-and-tag: New script, from coreutils.
19417         * modules/do-release-commit-and-tag: New file.
19418         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19419
19420 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19421
19422         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
19423         because test-select.c uses inet_pton.
19424
19425 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19426
19427         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
19428         GETADDRINFO_LIB.  Bump serial number.
19429         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
19430         Suggested by Eric Blake <ebb9@byu.net>.
19431
19432 2009-11-05  Eric Blake  <ebb9@byu.net>
19433
19434         strtod: detect darwin bug
19435         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
19436         Reported by Leo Davis.
19437
19438         freopen-safer: new module
19439         * modules/freopen-safer: New module.
19440         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
19441         * lib/freopen-safer.c (freopen_safer): New file.
19442         * lib/stdio-safer.h (freopen_safer): New declaration.
19443         * lib/stdio--.h (freopen): New override.
19444         * MODULES.html.sh (File stream based Input/Output): Mention it.
19445         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
19446         freopen-safer module.
19447         * doc/posix-functions/stderr.texi (stderr): Likewise.
19448         * doc/posix-functions/stdin.texi (stdin): Likewise.
19449         * doc/posix-functions/stdout.texi (stdout): Likewise.
19450         * modules/freopen-safer-tests: New test.
19451         * tests/test-reopen-safer.c: New file.
19452
19453 2009-11-05  Jim Meyering  <meyering@redhat.com>
19454
19455         maint.mk: Prohibit inclusion of "close-stream.h" without use.
19456         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19457
19458 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19459
19460         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
19461
19462 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19463
19464         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
19465
19466 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19467
19468         Fix link error.
19469         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19470         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19471
19472 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19473
19474         * tests/test-func.c: Also test value of __func__.
19475
19476 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19477
19478         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
19479         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
19480
19481 2009-11-05  Bruno Haible  <bruno@clisp.org>
19482
19483         Fix link error.
19484         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19485         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19486         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
19487
19488 2009-11-05  Bruno Haible  <bruno@clisp.org>
19489
19490         Tests for module 'inet_pton'.
19491         * modules/inet_pton-tests: New file.
19492         * tests/test-inet_pton.c: New file.
19493
19494 2009-11-05  Bruno Haible  <bruno@clisp.org>
19495
19496         Tests for module 'inet_ntop'.
19497         * modules/inet_ntop-tests: New file.
19498         * tests/test-inet_ntop.c: New file.
19499
19500 2009-11-04  Eric Blake  <ebb9@byu.net>
19501
19502         stdlib-safer: wrap all mkstemp variants
19503         * modules/mkostemp (configure.ac): Set witness.
19504         * modules/mkostemps (configure.ac): Likewise.
19505         * modules/mkstemps (configure.ac): Likewise.
19506         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
19507         (mkstemps_safer): Wrap more functions.
19508         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
19509         wrapping.
19510         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
19511         (mkstemps_safer): Implement the wrappers.
19512
19513         mkstemps, mkostemps: new modules
19514         * modules/mkostemps: New module.
19515         * modules/mkstemps: Likewise.
19516         * lib/mkostemps.c (mkostemps): New file.
19517         * lib/mkstemps.c (mkstemps): Likewise.
19518         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
19519         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
19520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
19521         * modules/stdlib (Makefile.am): Substitute them.
19522         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
19523         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
19524         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19525         * doc/gnulib.texi (Glibc stdlib.h): Include them.
19526         * MODULES.html.sh (File system functions): Mention them.
19527
19528         tempname: resync from glibc
19529         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
19530         same values for __GT_FILE as glibc.  Abort even when assertions
19531         are disabled.
19532         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
19533         match its value otherwise.  Allow idempotent inclusion.
19534         * lib/mkdtemp.c (mkdtemp): Adjust caller.
19535         * lib/mkostemp.c (mkostemp): Likewise.
19536         * lib/mkstemp.c (mkstemp): Likewise.
19537         * lib/tmpfile.c (tmpfile): Likewise.
19538         * NEWS: Document this.
19539
19540         utimens: fix use of futimens on older Linux
19541         * lib/utimens.c (fdutimens): Use updated, rather than original,
19542         timespec to avoid bug in older Linux kernel.
19543         Reported by Simon Josefsson.
19544
19545 2009-11-04  Bruno Haible  <bruno@clisp.org>
19546
19547         Make num_processors more flexible and consistent.
19548         * lib/nproc.h (enum nproc_query): New type.
19549         (num_processors): Add a 'query' argument.
19550         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
19551         (num_processors): Add a 'query' argument. Test the value of the
19552         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
19553         mingw, count the number of CPUs available for the current process.
19554         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
19555         Check for sched_getaffinity and sched_getaffinity_np.
19556         * modules/nproc (Depends-on): Add c-ctype, extensions.
19557         * NEWS: Mention the change.
19558
19559 2009-11-03  Bruno Haible  <bruno@clisp.org>
19560
19561         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
19562
19563 2009-11-03  Jim Meyering  <meyering@redhat.com>
19564
19565         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
19566         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
19567         if it is defined.
19568
19569 2009-11-02  Eric Blake  <ebb9@byu.net>
19570
19571         mktime, timegm: share common declaration
19572         * lib/mktime-internal.h: New file.
19573         * lib/mktime.c: Use it rather than open-coding a declaration.
19574         * lib/timegm.c: Likewise.
19575         * modules/mktime (Files): Ship it.
19576         * modules/timegm (Files): Likewise.
19577         Suggested by Bruno Haible.
19578
19579         test-update-copyright: update test to match script changes
19580         * tests/test-update-copyright.sh: Avoid hard-coding perl
19581         location.  Don't update *.bak created by earlier runs.
19582
19583 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19584             Simon Josefsson  <simon@josefsson.org>
19585             Bruno Haible  <bruno@clisp.org>
19586
19587         Fix link error on Solaris 8.
19588         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
19589         also in libnsl. Define also INET_PTON_LIB.
19590         * modules/inet_pton (Link): New section.
19591
19592 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19593             Bruno Haible  <bruno@clisp.org>
19594
19595         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
19596         * modules/inet_ntop (Link): New section.
19597         Reported by Boyan Kasarov <bkasarov@gmail.com>.
19598
19599 2009-11-02  Eric Blake  <ebb9@byu.net>
19600
19601         maint: avoid compiler warnings in m4 macros
19602         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
19603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
19604
19605 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19606
19607         * m4/pmccabe2html.m4: Remove file.
19608         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
19609         function.  Change maintainer.
19610         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
19611         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
19612         Courtès).
19613
19614 2009-10-31  Eric Blake  <ebb9@byu.net>
19615
19616         fseeko: fix m4 regression
19617         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
19618         regression from 2009-10-27.
19619         Reported by Ralf Wildenhues.
19620
19621 2009-10-31  Jim Meyering  <meyering@redhat.com>
19622
19623         inttostr: aesthetics and improved (compile-time) safety
19624         Define inttype_is_signed rather than inttype_is_unsigned,
19625         since the sole use is via "#if inttype_is_signed".
19626         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
19627         inttype_is_unsigned.
19628         * lib/offtostr.c (inttype_is_signed): Likewise.
19629         * lib/uinttostr.c (inttype_is_signed): Likewise.
19630         * lib/umaxtostr.c (inttype_is_signed): Likewise.
19631         * lib/inttostr.c (inttostr): Use verify to cross-check the
19632         inttype_is_signed value and the signedness of the actual type.
19633         * modules/inttostr (Depends-on): Add verify.
19634
19635 2009-10-30  Eric Blake  <ebb9@byu.net>
19636
19637         build: avoid compiler warnings
19638         * lib/fchmodat.c (lchmod): Mark unused variables.
19639         * lib/getopt.c (_getopt_initialize): Likewise.
19640         * lib/mktime.c (__mktime_internal): Provide prototype.
19641         * lib/inttostr.c (inttostr): Avoid compiler warning even with
19642         older gcc that do not understand #pragma GCC diagnostic.
19643         * lib/uinttostr.c (inttype_is_unsigned): Define.
19644         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
19645
19646 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19647
19648         stat: fix compilation on AIX
19649         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
19650         only see struct stat64.
19651
19652 2009-10-30  Eric Blake  <ebb9@byu.net>
19653
19654         exclude: make more robust
19655         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
19656         rather than masking a coding bug.
19657         Suggested by Bruno Haible.
19658
19659 2009-10-30  Jim Meyering  <meyering@redhat.com>
19660
19661         perl scripts: remove #!/usr/bin/perl in favor of more portable...
19662         Rather than putting #!/usr/bin/perl on the first line,
19663         start with a variant of what's recommended by "man perlrun" that
19664         invokes the first "perl" program from your shell's search path.
19665         * build-aux/gitlog-to-changelog: Replace #!... as above.
19666         Add a "Local Variables" perl mode setting.
19667         Prompted by a patch from Ludovic Courtès.
19668         Improved by Eric Blake.
19669         * build-aux/useless-if-before-free: Likewise.
19670         * build-aux/announce-gen: Likewise.
19671         * build-aux/update-copyright: Likewise.
19672
19673 2009-10-29  Eric Blake  <ebb9@byu.net>
19674
19675         filenamecat-lgpl: adjust clients
19676         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
19677         filenamecat.
19678         * modules/renameat (Depends-on): Likewise.
19679
19680         filenamecat: split into filenamecat-lgpl
19681         * modules/filenamecat-lgpl: New module.
19682         * modules/filenamecat (Files): Move library-safe files into
19683         filenamecat-lgpl.
19684         (Depends-on): Add filenamecat-lgpl.
19685         (configure.ac): Declare witness.
19686         * lib/filenamecat.h (file_name_concat): Only declare when using
19687         GPL module.
19688         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
19689         Move...
19690         * lib/filenamecat-lgpl.c: ...into new file.
19691         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
19692         (gl_FILE_NAME_CONCAT): Use it.
19693         * MODULES.html.sh (File system functions): Mention new module.
19694
19695         argp: avoid memory leak
19696         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
19697         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
19698         base_name, since the latter malloc()s and can call exit().
19699         Leak introduced 2006-07-03.
19700
19701         dirname-lgpl: adjust clients that don't need full dirname
19702         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
19703         * modules/filenamecat (Depends-on): Likewise.
19704         * modules/linkat (Depends-on): Likewise.
19705         * modules/mkancesdirs (Depends-on): Likewise.
19706         * modules/mkdir (Depends-on): Likewise.
19707         * modules/openat (Depends-on): Likewise.
19708         * modules/savewd (Depends-on): Likewise.
19709         * modules/rename (Depends-on): Likewise.
19710         (License): Relax license.
19711         * modules/mkdir-tests (Depends-on): Drop progname.
19712         (Makefile.am): Delete unneeded LDADD.
19713         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19714
19715         dirname: split into dirname-lgpl
19716         * modules/dirname-lgpl: New module.
19717         * modules/dirname (Files): Move library-safe files into
19718         dirname-lgpl.
19719         (Depends-on): Add dirname-lgpl.
19720         (configure.ac): Declare witness.
19721         * modules/double-slash-root (License): Relax license.
19722         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19723         module.
19724         * lib/dirname.c (dir_len, mdir_name): Move...
19725         * lib/dirname-lgpl.c: ...into new file.
19726         * lib/basename.c (last_component, base_len): Move...
19727         * lib/basename-lgpl.c: ...into new file.
19728         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19729         (gl_DIRNAME): Use it.
19730         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19731         Mention new module.
19732         * modules/dirname-tests (Depends-on): Add progname.
19733         * tests/test-dirname.c (program_name): Delete.
19734
19735         mkdir: make safe for libraries
19736         * modules/mkdir (Depends-on): Drop xalloc.
19737         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19738         exit.
19739
19740         tests: avoid some compiler warnings
19741         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19742         literals.
19743         * tests/test-memchr.c (main): Avoid type mismatch.
19744         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19745         * tests/test-base64.c (main): Likewise.
19746         * tests/test-getdelim.c (main): Likewise.
19747         * tests/test-gethostname.c (main): Likewise.
19748         * tests/test-getline.c (main): Likewise.
19749         * tests/test-netinet_in.c (main): Likewise.
19750         * tests/test-select.c (open_server_socket, main): Likewise.
19751         * tests/test-select-stdin.c (main): Likewise.
19752         * tests/test-sockets.c (main): Likewise.
19753         * tests/test-strsignal.c (main): Likewise.
19754         * tests/test-sys_select.c (main): Likewise.
19755         * tests/test-sys_socket.c (main): Likewise.
19756         * tests/test-u64.c (main): Likewise.
19757         * tests/test-xfprintf-posix.c (main): Likewise.
19758         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19759
19760         sockets: avoid compiler warning
19761         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19762
19763         maint: detect usage(1) and other suspicious exits
19764         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19765
19766 2009-10-29  Jim Meyering  <meyering@redhat.com>
19767
19768         timespec: long-to-int truncation could make timespec_cmp malfunction
19769         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19770         a multiple of 2^32 nanoseconds as no difference.
19771
19772 2009-10-28  Jim Meyering  <meyering@redhat.com>
19773
19774         fprintftime: wrap macro code argument in "do {...} while(0)"
19775         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19776         cpy macro must be a statement that can be followed by a semicolon.
19777         Now that the else clause contains a comment and is hence longer
19778         than one line, I require curly braces.  That in turn requires
19779         that we wrap this code block in the standard do...while(0).
19780
19781         fprintftime: remove stray semicolon from previous change
19782         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19783
19784         fprintftime: avoid a warning about ignored fwrite return value
19785         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19786         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19787         that is unsafe.
19788         * modules/fprintftime (Depends-on): Add ignore-value.
19789
19790         exclude: avoid an unwarranted warning
19791         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19792
19793 2009-10-27  Eric Blake  <ebb9@byu.net>
19794
19795         fseek: avoid compilation failure when fflush is replaced
19796         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19797         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19798         module is in use.
19799         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19800         module is not in use; since REPLACE_FSEEK worked otherwise.
19801         (GNULIB_FTELLO): Likewise for ftell.
19802         Reported by Ian Beckwith and others.
19803
19804 2009-10-27  Bruno Haible  <bruno@clisp.org>
19805
19806         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19807         Reported by Jim Meyering.
19808
19809 2009-10-27  Jim Meyering  <jim@meyering.net>
19810             Bruno Haible  <bruno@clisp.org>
19811
19812         Avoid warning despite dropping the return value of fwrite.
19813         * lib/unicodeio.c: Include ignore-value.h.
19814         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19815         * modules/unicodeio (Depends-on): Add ignore-value.
19816
19817 2009-10-26  Eric Blake  <ebb9@byu.net>
19818
19819         areadlinkat: fix fallback path
19820         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19821         pointer and zero.
19822
19823 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19824
19825         Use a better IO block size for modern systems
19826         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19827         * lib/md2.c: Likewise.
19828         * lib/md4.c: Likewise.
19829         * lib/md5.c: Likewise.
19830         * lib/sha1.c: Likewise.
19831         * lib/sha256.c: Likewise.
19832         * lib/sha512.c: Likewise.
19833
19834 2009-10-22  Eric Blake  <ebb9@byu.net>
19835
19836         tests: avoid several compiler warnings
19837         * tests/test-getcwd.c (main): Avoid buffer underflow.
19838         * tests/test-getdate.c (main): String literals are not safe with
19839         putenv, so use setenv.  Declare unused argument.
19840         * modules/getdate-tests (Depends-on): Add setenv.
19841         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19842         problems with string literals in char *.
19843         * tests/test-hash.c (main): Avoid shadowing declaration.
19844         (insert_new): Treat string literals as char const *.
19845         * tests/test-getopt.h (test_getopt): Likewise.
19846         (getopt_loop): Alter types to minimize casting elsewhere.
19847         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19848         (test_getopt_long_posix): Likewise.
19849         (do_getopt_long): Add wrapper to minimize casting.
19850         * tests/test-atexit.c (clear_temp_file): Use void.
19851         * tests/test-areadlink-with-size.c (main): Declare unused
19852         arguments.
19853         * tests/test-areadlink.c (main): Likewise.
19854         * tests/test-areadlinkat-with-size.c (main): Likewise.
19855         * tests/test-areadlinkat.c (main): Likewise.
19856         * tests/test-canonicalize-lgpl.c (main): Likewise.
19857         * tests/test-canonicalize.c (main): Likewise.
19858         * tests/test-dirent-safer.c (main): Likewise.
19859         * tests/test-dirname.c (main): Likewise.
19860         * tests/test-dup2.c (main): Likewise.
19861         * tests/test-fchdir.c (main): Likewise.
19862         * tests/test-fcntl-h.c (main): Likewise.
19863         * tests/test-fcntl-safer.c (main): Likewise.
19864         * tests/test-fdopendir.c (main): Likewise.
19865         * tests/test-fdutimensat.c (main): Likewise.
19866         * tests/test-fflush.c (main): Likewise.
19867         * tests/test-filenamecat.c (main): Likewise.
19868         * tests/test-filevercmp.c (main): Likewise.
19869         * tests/test-fopen-safer.c (main): Likewise.
19870         * tests/test-fopen.c (main): Likewise.
19871         * tests/test-fpending.c (main): Likewise.
19872         * tests/test-fpurge.c (main): Likewise.
19873         * tests/test-freading.c (main): Likewise.
19874         * tests/test-fstatat.c (main): Likewise.
19875         * tests/test-fsync.c (main): Likewise.
19876         * tests/test-futimens.c (main): Likewise.
19877         * tests/test-getndelim2.c (main): Likewise.
19878         * tests/test-gettimeofday.c (main): Likewise.
19879         * tests/test-getopt.c (main): Likewise.
19880         * tests/test-i-ring.c (main): Likewise.
19881         * tests/test-inttypes.c (main): Likewise.
19882         * tests/test-link.c (main): Likewise.
19883         * tests/test-lstat.c (main): Likewise.
19884         * tests/test-math.c (main): Likewise.
19885         * tests/test-md5.c (main): Likewise.
19886         * tests/test-memchr2.c (main): Likewise.
19887         * tests/test-memrchr.c (main): Likewise.
19888         * tests/test-mkdir.c (main): Likewise.
19889         * tests/test-mkdirat.c (main): Likewise.
19890         * tests/test-mkfifoat.c (main): Likewise.
19891         * tests/test-open.c (main): Likewise.
19892         * tests/test-openat-safer.c (main): Likewise.
19893         * tests/test-openat.c (main): Likewise.
19894         * tests/test-quotearg.c (main): Likewise.
19895         * tests/test-rawmemchr.c (main): Likewise.
19896         * tests/test-readlink.c (main): Likewise.
19897         * tests/test-remove.c (main): Likewise.
19898         * tests/test-rename.c (main): Likewise.
19899         * tests/test-renameat.c (main): Likewise.
19900         * tests/test-rmdir.c (main): Likewise.
19901         * tests/test-sha1.c (main): Likewise.
19902         * tests/test-signal.c (main): Likewise.
19903         * tests/test-sigaction.c (main): Likewise.
19904         * tests/test-stat.c (main): Likewise.
19905         * tests/test-stat-time.c (main): Likewise.
19906         * tests/test-stddef.c (main): Likewise.
19907         * tests/test-stdint.c (main): Likewise.
19908         * tests/test-stdio.c (main): Likewise.
19909         * tests/test-stdlib.c (main): Likewise.
19910         * tests/test-strchrnul.c (main): Likewise.
19911         * tests/test-strerror.c (main): Likewise.
19912         * tests/test-string.c (main): Likewise.
19913         * tests/test-strtod.c (main): Likewise.
19914         * tests/test-strverscmp.c (main): Likewise.
19915         * tests/test-symlink.c (main): Likewise.
19916         * tests/test-symlinkat.c (main): Likewise.
19917         * tests/test-sys_stat.c (main): Likewise.
19918         * tests/test-sys_time.c (main): Likewise.
19919         * tests/test-time.c (main): Likewise.
19920         * tests/test-unistd.c (main): Likewise.
19921         * tests/test-unlink.c (main): Likewise.
19922         * tests/test-unlinkat.c (main): Likewise.
19923         * tests/test-utimens.c (main): Likewise.
19924         * tests/test-utimensat.c (main): Likewise.
19925         * tests/test-version-etc.c (main): Likewise.
19926         * tests/test-wchar.c (main): Likewise.
19927         * tests/test-wctype.c (main): Likewise.
19928         * tests/test-xprintf-posix.c (main): Likewise.
19929         * tests/test-posixtm.c (main): Likewise.
19930         (STREQ): Delete unused macro.
19931         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19932         shadowed variables.
19933         * tests/test-memchr.c (main): Likewise.
19934
19935 2009-10-21  Eric Blake  <ebb9@byu.net>
19936
19937         areadlinkat: avoid failure on older glibc
19938         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19939         rather than mis-comparing 0 against FUNC_RESULT of char*.
19940
19941 2009-10-21  Bruno Haible  <bruno@clisp.org>
19942
19943         * modules/stpncpy (License): Relicense under LGPLv2+.
19944         Reported by David Lutterkort <lutter@redhat.com>.
19945
19946 2009-10-20  Eric Blake  <ebb9@byu.net>
19947
19948         utimensat: work around Solaris 9 bug
19949         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19950         has trailing slash bugs.
19951         * tests/test-lutimens.h (test_lutimens): Enhance test.
19952         * tests/test-utimens.h (test_utimens): Likewise.
19953         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19954         * doc/posix-functions/utimes.texi (utimes): Likewise.
19955         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19956         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19957         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19958         * doc/posix-functions/futimens.texi (futimens): Likewise.
19959
19960         fdutimensat: new module
19961         * modules/fdutimensat: New file.
19962         * lib/fdutimensat.c (fdutimensat): Likewise.
19963         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19964         * MODULES.html.sh (File system functions): Mention module.
19965         * modules/fdutimensat-tests: New test.
19966         * tests/test-fdutimensat.c: Likewise.
19967
19968         doc: regenerate INSTALL
19969         * doc/INSTALL: Reflect recent autoconf update.
19970         * doc/INSTALL.ISO: Likewise.
19971         * doc/INSTALL.UTF-8: Likewise.
19972
19973 2009-10-20  Pádraig Brady  <P@draigBrady.com>
19974
19975         acl: warn if ACL support is not detected
19976         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
19977
19978 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
19979
19980         * lib/nproc.h: Add extern "C" block for C++.
19981
19982 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
19983             Bruno Haible  <bruno@clisp.org>
19984
19985         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
19986         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
19987         * doc/posix-functions/isalpha.texi: Likewise.
19988         * doc/posix-functions/isblank.texi: Likewise.
19989         * doc/posix-functions/iscntrl.texi: Likewise.
19990         * doc/posix-functions/isdigit.texi: Likewise.
19991         * doc/posix-functions/isgraph.texi: Likewise.
19992         * doc/posix-functions/islower.texi: Likewise.
19993         * doc/posix-functions/isprint.texi: Likewise.
19994         * doc/posix-functions/ispunct.texi: Likewise.
19995         * doc/posix-functions/isspace.texi: Likewise.
19996         * doc/posix-functions/isupper.texi: Likewise.
19997         * doc/posix-functions/isxdigit.texi: Likewise.
19998
19999 2009-10-18  Bruno Haible  <bruno@clisp.org>
20000
20001         Tests for module 'isblank'.
20002         * modules/isblank-tests: New file.
20003         * tests/test-isblank.c: New file.
20004
20005         New module 'isblank'.
20006         * lib/isblank.c: New file.
20007         * m4/isblank.m4: New file.
20008         * modules/isblank: New file.
20009         * doc/posix-functions/isblank.texi: Mention the new module.
20010
20011 2009-10-18  Bruno Haible  <bruno@clisp.org>
20012
20013         New module 'ctype'.
20014         * lib/ctype.in.h: New file.
20015         * m4/ctype.m4: New file.
20016         * modules/ctype: New file.
20017         * doc/posix-headers/ctype.texi: Mention the new module.
20018
20019 2009-10-18  Jim Meyering  <meyering@redhat.com>
20020
20021         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
20022         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
20023         right after its initialization, rather than farther down.
20024         Keeping these in close proximity makes it easier to ensure
20025         that each such variable is initialized.  E.g.,
20026
20027             LIB_CLOCK_GETTIME=
20028             AC_SUBST([LIB_CLOCK_GETTIME])
20029
20030         This change also increments these serial numbers.
20031         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
20032         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20034
20035 2009-10-18  Bruno Haible  <bruno@clisp.org>
20036
20037         Don't let environment variables perturb build.
20038         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
20039         (gl_PREREQ_GETHRXTIME): ... not here.
20040
20041 2009-10-18  Bruno Haible  <bruno@clisp.org>
20042
20043         Avoid symlink attack in localcharset module.
20044         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
20045         (O_NOFOLLOW): Define fallback.
20046         (get_charset_aliases): Don't open the file if it is a symbolic link.
20047         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
20048         gl_FCNTL_H.
20049         (gl_FCNTL_H): Require it.
20050         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
20051         * modules/localcharset (Files): Add m4/fcntl_h.m4.
20052         Reported by Fergal Glynn <fglynn@veracode.com>.
20053
20054 2009-10-18  Bruno Haible  <bruno@clisp.org>
20055
20056         Implement nproc for mingw.
20057         * lib/nproc.c: Include <windows.h>
20058         (num_processors): On native Windows platforms, try GetSystemInfo.
20059
20060 2009-10-18  Bruno Haible  <bruno@clisp.org>
20061
20062         Implement nproc for IRIX.
20063         * lib/nproc.c: Include <sys/sysmp.h>.
20064         (num_processors): On IRIX systems, try sysmp.
20065         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
20066
20067 2009-10-18  Bruno Haible  <bruno@clisp.org>
20068
20069         Implement nproc for HP-UX.
20070         * lib/nproc.c: Include <sys/pstat.h>
20071         (num_processors): On HP-UX systems, try pstat_getdynamic.
20072         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
20073         pstat_getdynamic.
20074
20075 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
20076             Bruno Haible  <bruno@clisp.org>
20077
20078         Implement nproc for NetBSD, OpenBSD.
20079         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
20080         (ARRAY_SIZE): New macro.
20081         (num_processors): On BSD systems, try sysctl of HW_NCPU.
20082         * m4/nproc.m4: New file.
20083         * modules/nproc (Files): Add m4/nproc.m4.
20084         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
20085         (Makefile.am): Instead, augment lib_SOURCES.
20086
20087 2009-10-18  Bruno Haible  <bruno@clisp.org>
20088
20089         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
20090         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
20091         sys/param.h.
20092
20093 2009-10-16  Eric Blake  <ebb9@byu.net>
20094
20095         utimensat: new module
20096         * modules/utimensat: New file.
20097         * lib/utimensat.c (utimensat): Likewise.
20098         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20099         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
20100         so we can work around Linux bugs.
20101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20102         * modules/sys_stat (Makefile.am): Substitute them.
20103         * lib/sys_stat.in.h (utimensat): Declare it.
20104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20105         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20106         * modules/utimensat-tests: New test.
20107         * tests/test-utimensat.c: Likewise.
20108
20109         utimens: let lutimens work on non-symlinks
20110         * lib/utimens.c (lutimens): Fall back to utimens rather than
20111         failing with ENOSYS, when file is not a symlink.
20112         (utimens): Reduce redirection.
20113         * tests/test-lutimens.h (test_lutimens): Update test to cover
20114         non-symlinks.
20115         * tests/test-utimens.h (test_utimens): Update test to cover
20116         symlinks.
20117         * tests/test-utimens.c (main): Update caller.
20118
20119         utimens: cache whether utimensat syscall works
20120         * lib/utimens.c (utimensat_works_really): New cache variable.
20121         (fdutimens, lutimens): Use it to avoid failing syscall.
20122
20123         test-stat-time, test-utimens: improve portability
20124         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
20125         ext4 on alpha, and for cygwin.
20126         * tests/test-utimens-common.h: New file.
20127         (nap): Factor delays into single function.
20128         * tests/test-lutimens.h (test_lutimens): Use new header.
20129         * tests/test-futimens.h (test_futimens): Likewise.
20130         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
20131         timestamps to occur from same machine, as was done previously for
20132         test_utimens.
20133         * modules/utimens-tests (Files): Ship new file.
20134         * modules/futimens-tests (Files): Likewise.
20135         Reported in part by Jim Meyering.
20136
20137         sys_stat: sort replacement declarations
20138         * lib/sys_stat.in.h: Sort declarations.
20139         * lib/futimens.c (futimens): Fix typo.
20140
20141 2009-10-15  Jim Meyering  <meyering@redhat.com>
20142
20143         don't let environment settings perturb build
20144         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
20145         could cause a configure-time and/or build-time malfunction.
20146         Typically, a configure-time function-in-library test is performed
20147         via code like this:
20148
20149           LIB_VAR=
20150           AC_SUBST([LIB_VAR])
20151           prefix_saved_LIBS=$LIBS
20152             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
20153                        [test "$ac_cv_search_FUNC" = "none required" ||
20154                         LIB_VAR=$ac_cv_search_FUNC])
20155           LIBS=$prefix_saved_LIBS
20156
20157         However, in each of the files affected by this change, the LIB_VAR=
20158         initialization was omitted.  Thus, when set in the environment, its
20159         value would propagate into generated Makefiles when FUNC is not found
20160         in LIB_NAME.
20161         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
20162         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20164
20165 2009-10-14  Eric Blake  <ebb9@byu.net>
20166
20167         fchdir: avoid infinite recursion in mingw
20168         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
20169         recursing.
20170
20171         test-stat-time: port to mingw
20172         * tests/test-stat-time.c (force_unlink): Return a value.
20173         (test_ctime) [W32]: Fix compilation error.
20174         (nap): Don't call usleep with too large an argument.  Use
20175         force_unlink.
20176         * doc/pastposix-functions/usleep.texi (usleep): Document the
20177         portability issue.
20178
20179 2009-10-13  Jim Meyering  <meyering@redhat.com>
20180
20181         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
20182         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
20183         * modules/pipe-filter-ii: Likewise.
20184         * modules/sys_socket-tests: Likewise.
20185         * modules/tsearch-tests: Likewise.
20186         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
20187         (check): Depend on it.
20188
20189 2009-10-12  Eric Blake  <ebb9@byu.net>
20190
20191         utimens-tests: port to NFS file systems
20192         * tests/test-utimens.h (test_utimens): Refactor utimecmp
20193         comparisons to avoid spurious failures from timestamp drift
20194         between NFS machines.
20195
20196 2009-10-12  Eric Blake  <ebb9@byu.net>
20197
20198         stat-time-tests: minor cleanups
20199         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
20200         * tests/test-stat-time.c (nap): Separate assignment from call.
20201         Suggested by Paolo Bonzini and Bruno Haible.
20202
20203         sys_stat: guarantee struct timespec
20204         * lib/sys_stat.in.h (includes): Always include <time.h>
20205         * modules/sys_stat (Depends-on): Add time.
20206         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
20207         mode_t permission values.
20208         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
20209         get at subsecond timestamps.
20210
20211 2009-10-10  Eric Blake  <ebb9@byu.net>
20212
20213         futimens: new module
20214         * modules/futimens: New file.
20215         * lib/futimens.c (futimens): Likewise.
20216         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20217         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
20218         we can work around Linux bugs.
20219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20220         * modules/sys_stat (Makefile.am): Substitute them.
20221         * lib/sys_stat.in.h (futimens): Declare it.
20222         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20223         * doc/posix-functions/futimens.texi (futimens): Likewise.
20224         * modules/futimens-tests: New test.
20225         * tests/test-futimens.c: Likewise.
20226
20227         utimens: introduce fdutimens
20228         * lib/utimens.h (fdutimens): New prototype.
20229         * lib/utimens.c (gl_futimens): Move guts...
20230         (fdutimens): ...to new interface.
20231         * tests/test-utimens.c (do_fdutimens): Use it.
20232
20233         utimens: add UTIME_NOW and UTIME_OMIT support
20234         * lib/utimens.c (validate_timespec, update_timespec): New helper
20235         functions.
20236         (gl_futimens, lutimens): Use them.
20237         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
20238         stdbool, sys_stat.
20239         (Link): Mention resulting library dependency.
20240         * modules/utimecmp (Link): Likewise.
20241         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
20242         (Makefile.am): Pick up library dependency.
20243         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
20244         definition.
20245         * tests/test-sys_stat.c: Test the definitions.
20246         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
20247         * NEWS: Document library dependency.
20248
20249         utimecmp: support symlink timestamps
20250         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
20251         hashing when possible.  Use pathconf when available.
20252         (SYSCALL_RESOLUTION): Recognize tighter resolution.
20253         * modules/utimecmp (Depends-on): Add lstat.
20254
20255         utimens: add lutimens interface
20256         * lib/utimens.c (lutimens): New function.
20257         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
20258         * lib/utimens.h (lutimens): Declare new interface.
20259         * tests/test-utimens.c (main): Enhance test.
20260         * tests/test-lutimens.h (test_lutimens): New file.
20261         * modules/utimens-tests (Files): Distribute it.
20262         (Depends-on): Add symlink.
20263         (configure.ac): Check for usleep.
20264
20265         utimens: validate futimens usage
20266         * lib/utimens.c (gl_futimens): Require valid fd up front, using
20267         fewer syscalls on failure later on.  Avoid compiler warning on
20268         mingw.
20269         * modules/utimens (Depends-on): Add dup2.
20270
20271         utimens: add test
20272         * modules/utimens-tests: New test.
20273         * tests/test-utimens.h: New file.
20274         * tests/test-futimens.h: Likewise.
20275         * tests/test-utimens.c: Likewise.
20276
20277         doc: mention timestamp portability issues
20278         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
20279         instead.
20280         * doc/posix-functions/utime.texi (utime): Likewise.
20281         * doc/posix-functions/utimes.texi (utimes): Likewise.
20282         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
20283         instead.
20284         * doc/posix-functions/futimens.texi (futimens): Mention utimens
20285         module.
20286         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20287         Mention weakness with symlink timestamps.
20288         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
20289         to utimensat/futimens instead.
20290         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
20291
20292         test-dup2: enhance test
20293         * tests/test-dup2.c (main): Also check AT_FDCWD.
20294
20295         test-stat-time: avoid more spurious failures
20296         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
20297         xfs; and avoid race if the two timestamps cross quantization edge.
20298
20299         relocatable: prefer 'file system' over 'filesystem'
20300         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
20301         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
20302         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
20303         * doc/relocatable.texi (Enabling Relocatability): Likewise.
20304         * lib/relocatable.c (compute_curr_prefix): Likewise.
20305
20306 2009-10-10  Jim Meyering  <meyering@redhat.com>
20307
20308         stat-time-tests: check for the usleep function
20309         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
20310
20311 2009-10-10  Bruno Haible  <bruno@clisp.org>
20312
20313         * modules/xnanosleep: Put the Link section after the Include section.
20314
20315 2009-10-09  Eric Blake  <ebb9@byu.net>
20316
20317         dup2: work around FreeBSD 6.1 bug
20318         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
20319         * doc/posix-functions/dup2.texi (dup2): Document it.
20320         Reported by Nelson H. F. Beebe and Jim Meyering.
20321
20322         test-stat-time: port to buggy NFS clients
20323         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
20324         (test_ctime): Also skip test if mtime and ctime are skewed.
20325
20326         maint: prefer 'file system' over 'filesystem'
20327         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20328         * doc/posix-functions/lstat.texi (lstat): Likewise.
20329         * lib/file-has-acl.c (file_has_acl): Likewise.
20330         * lib/fwriteerror.c [TEST]: Likewise.
20331         * tests/test-areadlink.h (test_areadlink): Likewise.
20332         * tests/test-areadlinkat-with-size.c (main): Likewise.
20333         * tests/test-areadlinkat.c (main): Likewise.
20334         * tests/test-canonicalize-lgpl.c (main): Likewise.
20335         * tests/test-canonicalize.c (main): Likewise.
20336         * tests/test-fstatat.c (main): Likewise.
20337         * tests/test-linkat.c (main): Likewise.
20338         * tests/test-lstat.h (test_lstat_func): Likewise.
20339         * tests/test-mkdir.h (test_mkdir): Likewise.
20340         * tests/test-readlink.h (test_readlink): Likewise.
20341         * tests/test-remove.c (main): Likewise.
20342         * tests/test-rename.h (test_rename): Likewise.
20343         * tests/test-renameat.c (main): Likewise.
20344         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20345         * tests/test-symlink.h (test_symlink): Likewise.
20346         * tests/test-symlinkat.c (main): Likewise.
20347         * tests/test-unlink.h (test_unlink_func): Likewise.
20348         * tests/test-unlinkat.c (main): Likewise.
20349
20350         maint: make realtime library usage explicit
20351         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
20352         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
20353         * modules/settime (Link): Likewise.
20354         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
20355
20356         test-stat-time: speed up execution
20357         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
20358         warning on mingw.
20359         (nap): New helper function.
20360         (prepare_test): Use it to reduce sleep time.
20361         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
20362         execution.
20363         * modules/stat-time-tests (configure.ac): Check for usleep.
20364
20365 2009-10-09  Jim Meyering  <meyering@redhat.com>
20366
20367         selinux-h: always use getfilecon wrappers
20368         * lib/getfilecon.c: New file.
20369         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
20370         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
20371         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
20372         (fgetfilecon): Provide a stub.
20373         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
20374         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
20375         file unconditionally.
20376         When <selinux/selinux.h> is found, arrange to use wrappers.
20377         * modules/selinux-h (Files): Add getfilecon.c.
20378         (Makefile.am): Substitute include-next-related bits
20379         into the now-always-generated selinux/selinux.h file.
20380         * doc/glibc-functions/lgetfilecon.texi: New file.
20381         * doc/glibc-functions/fgetfilecon.texi: New file.
20382         * doc/glibc-functions/getfilecon.texi: New file.
20383         * doc/glibc-functions/getfilecon-desc.texi: New file.
20384         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
20385         which to pull in the new files.
20386         * MODULES.html.sh (Misc): Add selinux-h.
20387
20388 2009-10-08  Jim Meyering  <meyering@redhat.com>
20389
20390         unistd: fix comment typo
20391         * lib/unistd.in.h (euidaccess): Fix a comment typo.
20392
20393 2009-10-08  Eric Blake  <ebb9@byu.net>
20394
20395         areadlink: use SIZE_MAX consistently
20396         * modules/areadlink (Depends-on): Add stdint.
20397         * modules/areadlink-with-size (Depends-on): Likewise.
20398         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
20399         gives NULL; drop sys/types, since unistd gives size_t; and add
20400         stdint for SIZE_MAX.
20401         (SIZE_MAX): Rely on headers.
20402         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
20403         and add stdint.
20404         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
20405         (SIZE_MAX): Likewise.
20406         (INITIAL_BUF_SIZE): Turn into enum.
20407         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
20408
20409 2009-10-08  Jim Meyering  <meyering@redhat.com>
20410
20411         areadlinkat: avoid compilation failure
20412         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
20413         Fix typo in comment.
20414
20415 2009-10-07  Eric Blake  <ebb9@byu.net>
20416
20417         areadlinkat-with-size: new module
20418         * modules/areadlinkat-with-size: New module.
20419         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
20420         * lib/areadlink.h (areadlinkat): Declare it.
20421         * MODULES.html.sh (File system functions): Mention it.
20422         * modules/areadlinkat-with-size-tests: New test.
20423         * tests/test-areadlinkat-with-size.c: New file.
20424
20425         xreadlinkat: new module
20426         * modules/xreadlinkat: New module.
20427         * lib/xreadlinkat.c (xreadlinkat): New file.
20428         * lib/xreadlink.h (xreadlinkat): Declare it.
20429         * MODULES.html.sh (File system functions): Mention it.
20430
20431         areadlinkat: new module
20432         * lib/at-func.c (FUNC_FAIL): New define.
20433         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
20434         * modules/areadlinkat: New module.
20435         * lib/linkat.c (areadlinkat): Move...
20436         * lib/areadlinkat.c (areadlinkat): ...to new file.
20437         * lib/areadlink.h (areadlinkat): Declare it.
20438         * modules/linkat (Depends-on): Add areadlinkat.
20439         * MODULES.html.sh (File system functions): Mention it.
20440         * modules/areadlinkat-tests: New test.
20441         * tests/test-areadlinkat.c: New file.
20442
20443         areadlink, areadlink-with-size: add tests
20444         * modules/areadlink-tests: New test.
20445         * modules/areadlink-with-size-tests: Likewise.
20446         * tests/test-areadlink.h: New file.
20447         * tests/test-areadlink.c: Likewise.
20448         * tests/test-areadlink-with-size.c: Likewise.
20449
20450         maint: minor cleanups
20451         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
20452         _UNUSED_PARAMETER_ instead.
20453         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
20454         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
20455         * modules/linkat-tests (Files): Distribute test-link.h.
20456
20457         openat, utimens: whitespace cleanup
20458         * lib/openat.c: Prefer space throughout, rather than mix of 8
20459         spaces vs. tabs.
20460         * lib/at-func.c: Likewise.
20461         * lib/utimens.c: Likewise.
20462
20463         openat: avoid using wrong fd
20464         * lib/openat.c (openat_permissive): Reject user's fd if saving the
20465         working directory chooses same fd.
20466         * lib/at-func.c (AT_FUNC_NAME): Likewise.
20467
20468         mkdir, mkdirat: fix cygwin 1.5.x bug
20469         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
20470         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
20471         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
20472         bug.
20473         (gl_PREREQ_MKDIR): Delete unused macro.
20474         * modules/mkdir (Files): Track file rename.
20475         (configure.ac): Update macro name.
20476         * modules/openat (Depends-on): Add mkdir.
20477         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
20478
20479         mkdir, mkdirat: add tests
20480         * modules/mkdir-tests: New test.
20481         * tests/test-mkdir.h: New file.
20482         * tests/test-mkdir.c: Likewise.
20483         * tests/test-mkdirat.c: Likewise.
20484         * modules/openat-tests (Files): Add new files.
20485         (Makefile.am): Run new test.
20486
20487 2009-10-06  Eric Blake  <ebb9@byu.net>
20488
20489         doc: tweak *at function documentation
20490         * doc/posix-functions/faccessat.texi (faccessat): Mention
20491         known issue with replacement.
20492         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
20493         * doc/posix-functions/linkat.texi (linkat): Likewise.
20494         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20495         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20496         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20497         * doc/posix-functions/renameat.texi (renameat): Likewise.
20498         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20499
20500         openat: fix GNU/Hurd bug in unlinkat
20501         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
20502         broken.
20503         * doc/posix-functions/unlink.texi (unlink): Document this.
20504         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
20505
20506         fdopendir: fix GNU/Hurd bug
20507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
20508         allowing non-directory fds.
20509         * lib/fdopendir.c (rpl_fdopendir): Work around it.
20510         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20511         * modules/dirent (Makefile.am): Substitute it.
20512         * lib/dirent.in.h (fdopendir): Declare replacement.
20513         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
20514         * tests/test-fdopendir.c (main): Test something other than
20515         /dev/null, since on Hurd that behaves like a directory.
20516
20517         test-symlink: port to GNU/Hurd
20518         * tests/test-symlink.h (test_symlink): Relax expected errno.
20519
20520         doc: tweak more cygwin information
20521         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
20522         now compatible with glibc.
20523         * doc/posix-functions/getopt.texi (getopt): Likewise.
20524
20525         getopt-gnu: add another test
20526         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
20527         guarantee behavior relied on by m4.
20528         * tests/test-getopt.c (main): Use it.
20529         * modules/getopt-posix-tests (Depends-on): Add setenv.
20530         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
20531
20532         getopt: fix compilation on darwin
20533         * lib/getopt.in.h (includes): Leave breadcrumbs during system
20534         include.
20535         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
20536         Reported by Ludovic Courtès.
20537
20538 2009-10-06  Bruno Haible  <bruno@clisp.org>
20539
20540         * modules/size_max (Description): Discourage its use.
20541         Reported by Simon Josefsson.
20542
20543 2009-10-06  Jim Meyering  <meyering@redhat.com>
20544
20545         linkat: avoid compilation failure
20546         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
20547
20548 2009-10-05  Eric Blake  <ebb9@byu.net>
20549
20550         linkat: support Linux 2.6.17
20551         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
20552         linkat on Linux, but allow cache variable override.
20553         * lib/linkat.c (rpl_linkat): Define override.
20554         * modules/linkat (Depends-on): Add symlinkat.
20555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
20556         * modules/unistd (Makefile.am): Substitute it.
20557         * lib/unistd.in.h (linkat): Declare replacement.
20558         Reported by Pádraig Brady.
20559
20560         quotearg: port test to systems with C.UTF-8 locale
20561         * tests/test-quotearg.c (struct result_strings): Add another
20562         member, differentiating between C.ASCII and C.UTF-8 handling.
20563         (compare_strings): Add parameter.
20564         (main): Adjust all callers.
20565
20566         getopt: avoid clash with FreeBSD _getopt_internal
20567         * lib/getopt.in.h (_getopt_internal): Override the name.
20568         * lib/getopt_int.h (includes): Pick up any overrides.
20569         Reported by Reuben Thomas.
20570
20571         hash: allow C89 compilation
20572         * lib/hash.c (check_tuning): Move declaration before statement.
20573         Reported by Reuben Thomas.
20574
20575 2009-10-05  Karl Berry  <karl@gnu.org>
20576
20577         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
20578
20579 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
20580             Bruno Haible  <bruno@clisp.org>
20581
20582         * lib/uname.c (uname): Use a table-driven algorithm to compute
20583         Windows NT versions.
20584
20585 2009-10-04  Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
20588         program_invocation_short_name.
20589         * modules/progname (configure.ac): Test for presence of
20590         program_invocation_short_name.
20591         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20592
20593 2009-10-04  Bruno Haible  <bruno@clisp.org>
20594
20595         * lib/progname.c (set_program_name): Fix comment.
20596         Reported by Jim Meyering.
20597
20598 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20599             Bruno Haible  <bruno@clisp.org>
20600
20601         * lib/uname.c: Include <string.h>.
20602         (uname): Do only one call to GetVersionEx in the common case.
20603
20604 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20605             Bruno Haible  <bruno@clisp.org>
20606
20607         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
20608         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
20609         (uname): Add support for Windows CE and various non-x86 CPU types.
20610
20611 2009-10-03  Bruno Haible  <bruno@clisp.org>
20612
20613         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
20614         invocation to tests/configure.ac.
20615         Reported by Ian Beckwith <ianb@erislabs.net>.
20616
20617 2009-10-02  Eric Blake  <ebb9@byu.net>
20618
20619         fchdir: avoid compiler warning
20620         * lib/fchdir.c (canonicalize_file_name)
20621         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
20622
20623         test-open: support mingw errno values
20624         * tests/test-open.h (test_open): Relax test.
20625         * tests/test-fopen.h (test_fopen): Likewise.
20626         * tests/test-openat-safer.c (main): Likewise.
20627
20628         open: fix opening directory on mingw
20629         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
20630
20631         test-open: on GNU/Hurd, /dev/null is a directory
20632         * tests/test-fopen.h (main): Rename...
20633         (test_fopen): ...to this.  Use a guaranteed non-directory when
20634         confirming open behavior on trailing slash.
20635         * tests/test-openat-safer.c (main): Likewise.
20636         * tests/test-open.h (main): Likewise....
20637         (test_open): ...to this.
20638         * tests/test-fopen.c (main): Adjust caller.
20639         * tests/test-fopen-safer.c (main): Likewise.
20640         * tests/test-open.c (main): Likewise.
20641         * tests/test-fcntl-safer.c (main): Likewise.
20642         Reported by Samuel Thibault.
20643
20644         rename, fchdir: don't ignore chdir failure
20645         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
20646         * lib/rename.c (rpl_rename) [W32]: Likewise.
20647         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
20648         an empty destination directory if source cannot be renamed,
20649         although there is still possibility for failure.
20650         * doc/posix-functions/rename.texi (rename): Document the race.
20651         Reported by Jim Meyering.
20652
20653         maint: cleanup whitespace in recent commits
20654         * lib/rename.c (rpl_rename): Remove tabs.
20655         * tests/test-link.h (test_link): Likewise.
20656         * lib/fchdir.c (get_name): Likewise.
20657         Reported by Jim Meyering.
20658
20659 2009-10-02  Ben Pfaff  <blp@gnu.org>
20660
20661         relocatable-prog-wrapper: Add missing dependency on
20662         double-slash-root.
20663         * modules/relocatable-prog-wrapper: Add dependency.
20664         Reported by Ian Beckwith <ianb@erislabs.net>.
20665
20666 2009-10-02  Eric Blake  <ebb9@byu.net>
20667
20668         renameat: fix Solaris bugs
20669         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
20670         needed fixing.
20671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
20672         * modules/stdio (Makefile.am): Substitute it.
20673         * lib/stdio.in.h (renameat): Declare replacement.
20674         * lib/renameat.c (rpl_renameat): Implement fix.
20675
20676         renameat: new module
20677         * modules/renameat: New file.
20678         * lib/renameat.c (renameat): Likewise.
20679         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
20680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20681         * modules/stdio (Makefile.am): Substitute them.
20682         * lib/stdio.in.h (renameat): Declare it.
20683         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20684         * doc/posix-functions/renameat.texi (renameat): Likewise.
20685         * modules/renameat-tests: New test.
20686         * tests/test-renameat.c: Likewise.
20687
20688         rename: fix mingw bugs
20689         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
20690         directory overwrite bugs.
20691
20692         rename: fix another cygwin 1.5 bug
20693         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
20694         checks.
20695         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
20696         unnecessary cygwin workarounds.  Also work around bug with moving
20697         full directory onto an empty one.
20698         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
20699
20700         rename-dest-slash: merge into rename module
20701         * modules/rename-dest-slash (Status): Mark obsolete.
20702         (Depends-on): Add rename.
20703         (Files): Let rename do it all.
20704         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
20705         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
20706         * m4/rename-dest-slash.m4: ...so this file can be deleted.
20707         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
20708         * lib/rename.c (rpl_rename): Update comments.
20709
20710         rename: fix cygwin 1.5.x bugs
20711         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20712         * lib/rename.c (rpl_rename): Work around them.
20713         * modules/rename (Depends-on): Add same-inode.
20714
20715         rename: fix Solaris 10 bug
20716         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20717         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20718         was the only bug.
20719
20720         rename: fix Solaris 9 bug
20721         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20722         on non-directory.  Avoid calling exit.
20723         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20724         strdup.
20725         * modules/rename-tests (Depends-on): Drop lstat.
20726         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20727         (gl_PREREQ_RENAME): Delete unused macro.
20728
20729         rename-dest-slash: fix NetBSD bug
20730         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20731         links.
20732         * modules/rename-dest-slash (Depends-on): Add same-inode.
20733
20734         rename-tests: new test, exposes several platform bugs
20735         * modules/rename-tests: New file.
20736         * tests/test-rename.h: Likewise.
20737         * tests/test-rename.c: Likewise.
20738         * doc/posix-functions/rename.texi (rename): Improve documentation,
20739         including bugs that will eventually be fixed in gnulib.
20740
20741 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20742
20743         * lib/uname.c: Include <stdlib.h>
20744         (uname): Assume version info is available.
20745
20746 2009-10-02  Jim Meyering  <meyering@redhat.com>
20747
20748         gnu-web-doc-update: correct --help output
20749         * build-aux/gnu-web-doc-update: Make --help output relevant.
20750
20751         gnu-web-doc-update: add standard options
20752         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20753
20754         gnu-web-doc-update: New module.
20755         Use this script to automatically update the on-line web documentation
20756         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20757         * modules/gnu-web-doc-update: New file, from coreutils.
20758         * build-aux/gnu-web-doc-update: New script.
20759
20760 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20761
20762         link: LoadLibrary is not needed.
20763         * lib/link.c: Use GetModuleHandle.
20764
20765 2009-10-01  Eric Blake  <ebb9@byu.net>
20766
20767         getopt: bump serial number
20768         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20769         change.
20770
20771         tests: tighten link, rmdir, and remove tests
20772         * tests/test-link.h (includes): No need to use <config.h> here.
20773         Clean up if directory hard link was created, otherwise test for
20774         trailing '.'.
20775         * tests/test-linkat.c (main): Simplify.
20776         * tests/test-remove.c (main): Enhance test for trailing '.'.
20777         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20778
20779 2009-10-01  Jim Meyering  <meyering@redhat.com>
20780
20781         maint.mk: requiring "make major" was annoying, for a "minor" release.
20782         What is intended is "stable", to contrast with alpha and beta,
20783         so require "make stable", not "make major".
20784         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20785         (get_tool_versions): Likewise.
20786         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20787
20788 2009-09-30  Ben Pfaff  <blp@gnu.org>
20789
20790         Fix broken build of replacement for Windows tmpfile().
20791         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20792         flags argument added along with the 'mkostemp' module.
20793
20794 2009-09-28  Bruno Haible  <bruno@clisp.org>
20795
20796         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20797         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20798         to 'remove_elt'.
20799         (gl_list_remove): Update.
20800         * lib/gl_list.c (gl_list_remove): Update.
20801         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20802         to 'remove_elt'.
20803         (gl_oset_remove): Update.
20804         * lib/gl_list.c (gl_oset_remove): Update.
20805         Reported by Eric Blake.
20806
20807 2009-09-28  Eric Blake  <ebb9@byu.net>
20808
20809         doc: mention yet more cygwin 1.7 status
20810         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20811         cygwin.
20812         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20813         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20814
20815         argp: fix test failure
20816         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20817         that are not upper-case.  Pass correct range to tolower.
20818
20819 2009-09-27  Jim Meyering  <meyering@redhat.com>
20820
20821         test-yesno: work around sparc-dash here-document infelicity
20822         Without this change, the literal \177 byte in a here document
20823         would make dash 0.5.5.1-3 access uninitialized memory.
20824         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20825         Instead, use a marker, "@", and filter through tr to create the desired
20826         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20827
20828 2009-09-27  Bruno Haible  <bruno@clisp.org>
20829
20830         Disable untested support for new flavours of ACLs on AIX.
20831         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20832         progress.
20833         * lib/set-mode-acl.c (qset_acl): Likewise.
20834
20835 2008-12-07  Bruno Haible  <bruno@clisp.org>
20836
20837         Add support for new flavours of ACLs on AIX. (Untested.)
20838         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20839         (file_has_acl): Add support for newer AIX.
20840         * lib/set-mode-acl.c (qset_acl): Likewise.
20841         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20842         Rainer Tammer <tammer@tammer.net>.
20843
20844 2009-09-26  Eric Blake  <ebb9@byu.net>
20845
20846         argp: fix compilation of getopt
20847         * lib/getopt.in.h (includes): Use different guard than glibc.
20848         Reported by Sergey Poznyakoff.
20849
20850         doc: mention more cygwin 1.7 status
20851         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20852         bug.
20853         * doc/posix-functions/execl.texi (execl): Likewise.
20854         * doc/posix-functions/execle.texi (execle): Likewise.
20855         * doc/posix-functions/execlp.texi (execlp): Likewise.
20856         * doc/posix-functions/execv.texi (execv): Likewise.
20857         * doc/posix-functions/execve.texi (execve): Likewise.
20858         * doc/posix-functions/execvp.texi (execvp): Likewise.
20859         * doc/glibc-functions/canonicalize_file_name.texi
20860         (canonicalize_file_name): Cygwin 1.7 now provides this.
20861         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20862         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20863         on AT_SYMLINK_NOFOLLOW.
20864
20865 2009-09-24  Eric Blake  <ebb9@byu.net>
20866
20867         test-linkat: make test more robust
20868         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20869
20870         getopt: fix inclusion guards for cygwin
20871         * modules/getopt-posix (Depends-on): Add include-next.
20872         (Makefile.am): Substitute more items in replacement header.
20873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20874         <getopt.h>.
20875         * lib/getopt.in.h (includes): Use split inclusion guard, and
20876         prefer <getopt.h> over include <unistd.h> when one is present.
20877         (option): Also override name of 'struct option'.
20878
20879         same-inode: revert prior change; it is not yet ready
20880         * NEWS: Undo mention of this change.
20881         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20882         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20883         * lib/cycle-check.c (cycle_check): Likewise.
20884         * lib/same.c (same_name): Likewise.
20885         * lib/at-func2.c (at_func2): Likewise.
20886
20887 2009-09-23  Eric Blake  <ebb9@byu.net>
20888
20889         linkat: new module
20890         * modules/linkat: New file.
20891         * lib/at-func2.c (at_func2): Likewise.
20892         * lib/linkat.c (linkat): Likewise.
20893         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20894         * lib/openat-priv.h (at_func2): Add declaration.
20895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20896         * modules/unistd (Makefile.am): Substitute them.
20897         * lib/unistd.in.h (linkat): Declare it.
20898         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20899         * doc/posix-functions/linkat.texi (linkat): Likewise.
20900         * doc/posix-functions/link.texi (link): Tweak wording.
20901         * tests/test-link.c (main): Move guts...
20902         * tests/test-link.h (test_link): ...into new file.
20903         * modules/linkat-tests: New test.
20904         * tests/test-linkat.c: Likewise.
20905         * modules/link-tests (Files): Ship new file.
20906         (Depends-on): Add stdbool.
20907
20908         dirname: add library-safe mdir_name
20909         * lib/dirname.h (mdir_name): New prototype.
20910         * lib/dirname.c (dir_name): Move guts...
20911         (mdir_name): ...to new function that avoids xalloc_die.
20912
20913         fchdir: another mingw fix
20914         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20915         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20916         on mingw (where it has not yet been ported), and make it optional
20917         elsewhere.
20918         (_gl_register_fd): Use it.
20919
20920         same-inode: make SAME_INODE tri-state, to port to mingw
20921         * NEWS: Mention this change.
20922         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20923         st_ino always being 0.
20924         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20925         * lib/cycle-check.c (cycle_check): Likewise.
20926         * lib/same.c (same_name): Likewise.
20927
20928         lstat: avoid mingw compilation error
20929         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20930         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20931         lstat ourselves.
20932         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20933         was adequate.
20934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20935         the checks for lstat.
20936         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20937
20938         link: fix test failure on Solaris 9
20939         * lib/link.c (rpl_link): Don't assume link will catch bogus
20940         trailing slash on source.
20941
20942         test-symlinkat: enhance test
20943         * tests/test-readlink.c (main): Move guts...
20944         * tests/test-readlink.h (test_readlink): ...into new file.
20945         * tests/test-symlink.c (main): Move guts...
20946         * tests/test-symlink.h (test_symlink): ...into new file.
20947         * tests/test-symlinkat.c (main): Use new files for further
20948         coverage.
20949         (do_symlink, do_readlink): New helper functions.
20950         * modules/symlink-tests (Files): Ship new file.
20951         (Depends-on): Add stdbool.
20952         * modules/readlink-tests (Files): Ship new file.
20953         (Depends-on): Add stdbool.
20954         * modules/symlinkat-tests (Files): Use new files.
20955
20956 2009-09-23  Eric Blake  <ebb9@byu.net>
20957
20958         readlink: document portability issue with symlink length
20959         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20960         systems have bogus st_size on symlinks, and mention the
20961         areadlink-with-size module.
20962         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20963         * doc/posix-functions/readlink.texi (readlink): Mention the
20964         areadlink module, and ERANGE failure.
20965         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20966         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20967
20968         readlink: fix Solaris 9 bug with trailing slash
20969         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
20970         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
20971         * doc/posix-functions/readlink.texi (readlink): Document this.
20972         * modules/readlink-tests: New test.
20973         * tests/test-readlink.c: Likewise.
20974
20975         readlink: fix cygwin 1.5.x bug with return type
20976         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
20977         * lib/unistd.in.h (readlink): Use ssize_t.
20978         * lib/readlink.c (readlink): Likewise.
20979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20980         * modules/unistd (Makefile.am): Substitute it.
20981         * lib/unistd.in.h (readlink): Declare replacement.
20982         * doc/posix-functions/readlink.texi (readlink): Document this.
20983
20984         symlink: use throughout gnulib
20985         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
20986         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
20987         symlink is not used.
20988         * modules/symlinkat (Depends-on): Add symlink.
20989         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20990         * modules/canonicalize-tests (Depends-on): Likewise.
20991         * modules/lstat-tests (Depends-on): Likewise.
20992         * modules/openat-tests (Depends-on): Likewise.
20993         * modules/remove-tests (Depends-on): Likewise.
20994         * modules/rmdir-tests (Depends-on): Likewise.
20995         * modules/unlink-tests (Depends-on): Likewise.
20996         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
20997         * tests/test-canonicalize.c (symlink): Likewise.
20998         * tests/test-fstatat.c (symlink): Likewise.
20999         * tests/test-lstat.c (symlink): Likewise.
21000         * tests/test-remove.c (symlink): Likewise.
21001         * tests/test-rmdir.c (symlink): Likewise.
21002         * tests/test-unlink.c (symlink): Likewise.
21003         * tests/test-unlinkat.c (symlink): Likewise.
21004
21005         symlink: new module, for Solaris 9 bug
21006         * modules/symlink: New file.
21007         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21008         * lib/symlink.c: Likewise.
21009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21010         * modules/unistd (Makefile.am): Substitute them.
21011         * lib/unistd.in.h (symlink): Declare replacement.
21012         * MODULES.html.sh (File system functions): Mention it.
21013         * doc/posix-functions/symlink.texi (symlink): Likewise.
21014         * modules/symlink-tests: New test.
21015         * tests/test-symlink.c: Likewise.
21016
21017 2009-09-23  Bruno Haible  <bruno@clisp.org>
21018
21019         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
21020         when needed.
21021         Test case: gnulib-tool --import --with-tests atexit inttypes.
21022         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
21023
21024 2009-09-23  Bruno Haible  <bruno@clisp.org>
21025
21026         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
21027         subcommand, not in a subshell.
21028
21029 2009-09-22  Eric Blake  <ebb9@byu.net>
21030
21031         unistd: sort replacement declarations
21032         * lib/unistd.in.h: Sort declarations.
21033
21034         open, openat: minor optimization
21035         * lib/open.c (open): If open succeeded, len is non-zero.
21036         * lib/openat.c (rpl_openat): Likewise.
21037
21038         link-follow: ensure correct result
21039         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
21040         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
21041         distinguish between possible failures.
21042
21043 2009-09-21  Eric Blake  <ebb9@byu.net>
21044
21045         fts: avoid compiler warning
21046         * lib/fts.c (dirent_inode_sort_may_be_useful)
21047         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
21048
21049 2009-09-19  Bruno Haible  <bruno@clisp.org>
21050
21051         * lib/progreloc.c (canonicalize_file_name): New declaration.
21052
21053 2009-09-19  Eric Blake  <ebb9@byu.net>
21054
21055         link: fix quoting
21056         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
21057
21058         openat: fix openat bugs on Solaris 9
21059         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
21060         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
21061         * modules/openat (Depends-on): Add open.
21062         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
21063         * modules/fcntl-h (Makefile.am): Substitute it.
21064         * lib/fcntl.in.h (openat): Declare replacement.
21065         * doc/posix-functions/openat.texi (openat): Document this.
21066
21067         openat: move fstatat and unlinkat into correct files
21068         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
21069         compiled.
21070         * lib/openat.c (fstatat, unlinkat): Move...
21071         * lib/fstatat.c (fstatat): ...into correct files.
21072         * lib/unlinkat.c (unlinkat): Likewise.
21073
21074         openat: fix unlinkat bugs on Solaris 9
21075         * lib/unlinkat.c (unlinkat): New file.
21076         * modules/openat (Depends-on): Add unlink.
21077         (Files): Distribute it.
21078         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
21079         trailing slash behavior is broken.
21080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21081         * modules/unistd (Makefile.am): Substitute it.
21082         * lib/unistd.in.h (unlinkat): Declare replacement.
21083         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
21084
21085         openat: fix fstatat bugs on Solaris 9
21086         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
21087         stat.
21088         * doc/posix-functions/fstatat.texi (fstatat): Document this.
21089
21090         test-unlinkat: enhance test, to expose Solaris 9 bug
21091         * tests/test-unlink.c (main): Factor guts...
21092         * tests/test-unlink.h (test_rmdir_func): ...into new file.
21093         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
21094         * tests/test-rmdir.c (main): Adjust caller.
21095         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
21096         (unlinker): New helper function.
21097         (rmdirat): Enhance check.
21098         * modules/rmdir-tests (Depends-on): Add stdbool.
21099         * modules/unlink-tests (Depends-on): Likewise.
21100         (Files): Add test-unlink.h.
21101         * modules/openat-tests (Files): Likewise.
21102         (Depends-on): Add unlinkdir.
21103
21104         test-fstatat: new test, to expose Solaris 9 bugs
21105         * tests/test-stat.c (main): Factor guts...
21106         * tests/test-stat.h (test_stat_func): ...into new file.
21107         * tests/test-lstat.c (main): Factor guts...
21108         * tests/test-lstat.h (test_lstat_func): ...into new file.
21109         * tests/test-fstatat.c: New file.
21110         * modules/stat-tests (Files): Add test-stat.h.
21111         * modules/lstat-tests (Files): Add test-lstat.h.
21112         (Depends-on): Add stdbool.
21113         * modules/openat-tests (Depends-on): Add pathmax.
21114         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
21115         (Makefile.am): Run new test.
21116
21117         remove: new module, for mingw and Solaris 9 bugs
21118         * modules/remove: New file.
21119         * lib/remove.c: Likewise.
21120         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
21121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21122         * modules/stdio (Makefile.am): Use them.
21123         * lib/stdio.in.h (remove): Declare replacement.
21124         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21125         * doc/posix-functions/remove.texi (remove): Likewise.
21126         * modules/remove-tests: New test.
21127         * tests/test-remove.c: Likewise.
21128
21129         unlink: new module, for Solaris 9 bug
21130         * modules/unlink: New file.
21131         * lib/unlink.c: Likewise.
21132         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21134         * modules/unistd (Makefile.am): Use them.
21135         * lib/unistd.in.h (stat): Declare replacement.
21136         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21137         * doc/posix-functions/unlink.texi (unlink): Likewise.
21138         * modules/unlink-tests: New test.
21139         * tests/test-unlink.c: Likewise.
21140
21141         lstat: fix Solaris 9 bug
21142         * lib/lstat.c (lstat): Also check for trailing slash on
21143         non-symlink, non-directories.  Use stat module to simplify logic.
21144         * doc/posix-functions/lstat.texi (lstat): Document it.
21145         * modules/lstat-tests (Depends-on): Add errno, same-inode.
21146         (configure.ac): Check for symlink.
21147         * tests/test-lstat.c (main): Add more tests.
21148
21149         stat: add as dependency to other modules
21150         * modules/chown (Depends-on): Add stat.
21151         * modules/euidaccess (Depends-on): Likewise.
21152         * modules/fchdir (Depends-on): Likewise.
21153         * modules/isdir (Depends-on): Likewise.
21154         * modules/link (Depends-on): Likewise.
21155         * modules/lstat (Depends-on): Likewise.
21156         * modules/mkdir-p (Depends-on): Likewise.
21157         * modules/modechange (Depends-on): Likewise.
21158         * modules/open (Depends-on): Likewise.
21159         * modules/readlink (Depends-on): Likewise.
21160         * modules/same (Depends-on): Likewise.
21161
21162         stat: fix Solaris 9 bug
21163         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
21164         slash.
21165         * lib/stat.c (rpl_stat): Work around it.
21166         * doc/posix-functions/stat.texi (stat): Update documentation.
21167
21168         stat: new module, for mingw bug
21169         * modules/stat: New file.
21170         * lib/stat.c: Likewise.
21171         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21173         * modules/sys_stat (Makefile.am): Use them.
21174         * lib/sys_stat.in.h (stat): Declare replacement.
21175         * lib/openat.c (fstatat): Deal with lstat and stat being function
21176         macros.
21177         * modules/openat (Depends-on): Add inline.
21178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21179         * doc/posix-functions/stat.texi (stat): Likewise.
21180         * modules/stat-tests: New test.
21181         * tests/test-stat.c: Likewise.
21182
21183 2009-09-19  Jim Meyering  <meyering@redhat.com>
21184
21185         syntax-check: detect unnecessary inclusion of canonicalize.h
21186         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
21187
21188 2009-09-19  Eric Blake  <ebb9@byu.net>
21189
21190         canonicalize-lgpl: adjust clients to use correct header
21191         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21192         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
21193         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
21194         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
21195         * lib/progreloc.c (includes): Likewise.
21196
21197 2009-09-19  Jim Meyering  <meyering@redhat.com>
21198
21199         test-posixtm.c: correct a comment
21200         * tests/test-posixtm.c: Correct first-line comment.
21201         Spotted by Eric Blake.
21202
21203 2009-09-16  Jim Meyering  <meyering@redhat.com>
21204
21205         posixtm-tests: make T const-correct; add a test case
21206         * tests/test-posixtm.c (T): Declare const.
21207         Add a test for -(2^31+1).
21208         Remove useless can-succeed-only-in-2002 test.
21209
21210         posixtm-tests: adjust the sole failing test
21211         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
21212         expected output matches what mktime now produces.  Cross-checked via
21213         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
21214
21215         posixtm: move #ifdef'd tests into a new module
21216         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
21217         * tests/test-posixtm.c: ... this new file.
21218         * modules/posixtm-tests: New module.
21219
21220 2009-09-19  Eric Blake  <ebb9@byu.net>
21221
21222         openat: simplify use of at-func.c
21223         * lib/at-func.c (includes): Include prerequisites here, to
21224         simplify requirements on client files.
21225         * lib/openat-priv.h: Add double-inclusion guard.
21226         * lib/faccessat.c (includes): Simplify.
21227         * lib/fchmodat.c (includes): Likewise.
21228         * lib/fchownat.c (includes): Likewise.
21229         * lib/mkdirat.c (includes): Likewise.
21230         * lib/mkfifoat.c (includes): Likewise.
21231         * lib/symlinkat.c (includes): Likewise.
21232
21233         openat: allow return of fd 0
21234         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
21235         * modules/save-cwd (Depends-on): Replace fcntl-safer with
21236         unistd-safer.
21237         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
21238         <fcntl.h>; this module does not leak fds.
21239         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
21240         must be allowed to return 0, leaving openat_safer to add the
21241         safety.
21242         (openat_permissive): Avoid writing to just-opened fd 2 if
21243         restoring the current directory fails.
21244         * lib/openat-die.c (openat_restore_fail): Add comment.
21245         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
21246         (save_cwd): Guarantee safe fd, but without use of open_safer.
21247         * tests/test-openat.c: New test.
21248         * modules/openat-tests (Files, Makefile.am): Distribute and build
21249         new file.
21250
21251         relocatable-prog-wrapper: fix build
21252         * modules/relocatable-prog-wrapper (Files): Update name of
21253         canonicalize m4 file, broken on 2009-09-17.
21254         Reported by emad hajjar <aleppos@hotmail.com>.
21255
21256 2009-09-19  Bruno Haible  <bruno@clisp.org>
21257
21258         * lib/safe-alloc.h: Use the standard header with GPL copyright.
21259         * lib/safe-alloc.c: Likewise.
21260         Reported by Ian Beckwith <ianb@erislabs.net>.
21261
21262 2009-09-18  Bruno Haible  <bruno@clisp.org>
21263
21264         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
21265         Reported by <erobles@sensacd.com.mx>.
21266
21267 2009-09-17  Eric Blake  <ebb9@byu.net>
21268
21269         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
21270         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
21271         slashes when checking if last component is missing.
21272         * tests/test-canonicalize.c (main): Test this.
21273
21274         canonicalize, canonicalize-lgpl: honor // if distinct from /
21275         * modules/canonicalize (Files): Add double-slash-root.m4.
21276         * modules/canonicalize-lgpl (Files): Likewise.
21277         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21278         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
21279         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
21280         fallback definition.
21281         (canonicalize_filename_mode): Use it to protect //.
21282         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
21283         (__realpath): Likewise.
21284         * tests/test-canonicalize.c (main): Test this.
21285         * tests/test-canonicalize-lgpl.c (main): Likewise.
21286         * modules/canonicalize-tests (Depends-on): Add same-inode.
21287         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21288
21289         canonicalize-lgpl: fix glibc bug with trailing slash
21290         * m4/canonicalize-lgpl.m4: Move contents...
21291         * m4/canonicalize.m4: ...here.
21292         (gl_CANONICALIZE_LGPL): Factor realpath check...
21293         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
21294         glibc 2.3.5 bug, fixed 2005-04-27.
21295         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
21296         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
21297         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
21298         * modules/canonicalize-lgpl (Files): Manage file rename.
21299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21300         * modules/stdlib (Makefile.am): Substitute witness.
21301         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
21302         is needed.
21303         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
21304         replacement is required.
21305         * lib/canonicalize.c (canonicalize_file_name): Likewise.
21306         * doc/glibc-functions/canonicalize_file_name.texi
21307         (canonicalize_file_name): Document this.
21308         * doc/posix-functions/realpath.texi (realpath): Likewise.
21309
21310         canonicalize-lgpl: reject non-directory with trailing slash
21311         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
21312         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
21313         catches failures in glibc 2.3.5.
21314         * tests/test-canonicalize.c (main): Likewise.
21315
21316         canonicalize-lgpl: use native realpath if it works
21317         * lib/canonicalize-lgpl.c (realpath): Guard with
21318         FUNC_REALPATH_WORKS.
21319         * lib/stdlib.in.h (realpath): Make declaration optional based on
21320         HAVE_REALPATH.
21321         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
21322         native realpath works.
21323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21324         * modules/stdlib (Makefile.am): Substitute witness.
21325
21326         canonicalize, canonicalize-lgpl: use <stdlib.h>
21327         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
21328         (Include): Mention <stdlib.h>.
21329         (configure.ac): Mention functions we provide.
21330         * modules/canonicalize (configure.ac): Likewise.
21331         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
21332         realpath if canonicalize_file_name is missing.
21333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
21334         * modules/stdlib (Makefile.am): Substitute witnesses.
21335         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
21336         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
21337         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
21338         * NEWS: Document this.
21339         * doc/glibc-functions/canonicalize_file_name.texi
21340         (canonicalize_file_name): Likewise.
21341         * doc/posix-functions/realpath.texi (realpath): Likewise.
21342         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
21343
21344         test-canonicalize: consolidate into single C program
21345         * tests/test-canonicalize.sh: Delete; move setup into...
21346         * tests/test-canonicalize.c (main): ...the program, making it
21347         easier to run in debugger.  Add some tests.
21348         * modules/canonicalize-tests (Files): Remove unused file.
21349         (Depends-on): Add progname.
21350         (configure.ac, Makefile.am): Simplify.
21351
21352         test-canonicalize-lgpl: consolidate into single C program
21353         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
21354         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
21355         easier to run in debugger.  Add some tests.
21356         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
21357         (configure.ac, Makefile.am): Simplify.
21358
21359         canonicalize: avoid resolvepath
21360         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
21361         unnecessary checks.
21362         * lib/canonicalize.c (includes): Simplify.
21363         (canonicalize_file_name): Drop resolvepath implementation.
21364         * modules/canonicalize (Depends-on): Drop filenamecat.
21365
21366         canonicalize: don't lose errno
21367         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
21368         over calls to free.
21369
21370         canonicalize: simplify errno handling
21371         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
21372         assignment.
21373
21374         canonicalize, canonicalize-lgpl: update module dependencies
21375         * modules/canonicalize (Depends-on): Add extensions, lstat,
21376         pathmax, stdlib.
21377         (Files): Drop pathmax.h.
21378         (configure.ac): Adjust macro name.
21379         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
21380         lstat, stdlib, sys_stat.
21381         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
21382         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
21383         extensions.
21384         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
21385         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
21386         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
21387         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
21388         declaration, if available.
21389         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
21390         we can rely on the readlink module.
21391         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
21392         (includes): Use <unistd.h> unconditionally.
21393
21394 2009-09-17  Eric Blake  <ebb9@byu.net>
21395
21396         maint: make Include sections of modules consistent
21397         * modules/alloca: Use only header name; no need to list #include.
21398         * modules/alloca-opt: Likewise.
21399         * modules/arpa_inet: Likewise.
21400         * modules/canon-host: Likewise.
21401         * modules/configmake: Likewise.
21402         * modules/dirent: Likewise.
21403         * modules/eealloc: Likewise.
21404         * modules/environ: Likewise.
21405         * modules/fchdir: Likewise.
21406         * modules/fcntl: Likewise.
21407         * modules/fcntl-h: Likewise.
21408         * modules/gethrxtime: Likewise.
21409         * modules/gettime: Likewise.
21410         * modules/ignore-value: Likewise.
21411         * modules/inet_ntop: Likewise.
21412         * modules/inet_pton: Likewise.
21413         * modules/inttypes: Likewise.
21414         * modules/isnand-nolibm: Likewise.
21415         * modules/isnanf-nolibm: Likewise.
21416         * modules/mbchar: Likewise.
21417         * modules/mbfile: Likewise.
21418         * modules/mbiter: Likewise.
21419         * modules/mbuiter: Likewise.
21420         * modules/netdb: Likewise.
21421         * modules/netinet_in: Likewise.
21422         * modules/nproc: Likewise.
21423         * modules/pagealign_alloc: Likewise.
21424         * modules/poll: Likewise.
21425         * modules/printf-frexp: Likewise.
21426         * modules/pthread: Likewise.
21427         * modules/putenv: Likewise.
21428         * modules/random_r: Likewise.
21429         * modules/relocatable-prog: Likewise.
21430         * modules/search: Likewise.
21431         * modules/select: Likewise.
21432         * modules/selinux-h: Likewise.
21433         * modules/settime: Likewise.
21434         * modules/signal: Likewise.
21435         * modules/size_max: Likewise.
21436         * modules/socklen: Likewise.
21437         * modules/ssize_t: Likewise.
21438         * modules/stdarg: Likewise.
21439         * modules/stdbool: Likewise.
21440         * modules/stddef: Likewise.
21441         * modules/stdint: Likewise.
21442         * modules/stdio: Likewise.
21443         * modules/stdlib: Likewise.
21444         * modules/string: Likewise.
21445         * modules/strings: Likewise.
21446         * modules/sys_file: Likewise.
21447         * modules/sys_ioctl: Likewise.
21448         * modules/sys_select: Likewise.
21449         * modules/sys_socket: Likewise.
21450         * modules/sys_stat: Likewise.
21451         * modules/sys_time: Likewise.
21452         * modules/sys_times: Likewise.
21453         * modules/sys_utsname: Likewise.
21454         * modules/sys_wait: Likewise.
21455         * modules/sysexits: Likewise.
21456         * modules/time: Likewise.
21457         * modules/times: Likewise.
21458         * modules/tmpfile: Likewise.
21459         * modules/trim: Likewise.
21460         * modules/unistd: Likewise.
21461         * modules/wchar: Likewise.
21462         * modules/wctype: Likewise.
21463
21464 2009-09-17  Bruno Haible  <bruno@clisp.org>
21465
21466         Make getdate.y compile on QNX and NetBSD 5 / i386.
21467         * m4/getdate.m4 (gl_GETDATE): Conditionally define
21468         TIME_T_FITS_IN_LONG_INT.
21469         * lib/getdate.y (long_time_t): New type.
21470         (relative_time): Change type of 'seconds' field to long_time_t.
21471         (get_date): Update types of local variables. Check against overflow
21472         during conversion from long_time_t to time_t.
21473         Reported by Matt Kraai <kraai@ftbfs.org>
21474         and Hasso Tepper <hasso@netbsd.org>.
21475
21476 2009-09-17  Bruno Haible  <bruno@clisp.org>
21477
21478         * modules/COPYING: Update copyright years.
21479         * modules/README: Likeiwse.
21480         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
21481         Reported by Ian Beckwith <ianb@erislabs.net>.
21482
21483 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21484
21485         * users.txt: Update references for gnuit package.
21486
21487 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21488
21489         * m4/getdelim.m4: Fix typo in copyright line.
21490
21491 2009-09-17  Bruno Haible  <bruno@clisp.org>
21492
21493         * lib/atoll.c: Use the standard header with GPL copyright.
21494         * lib/argz.in.h: Likewise.
21495         * lib/glob.c: Likewise.
21496         * lib/glob-libc.h: Likewise.
21497         * lib/random_r.c: Likewise.
21498         * lib/siglist.h: Likewise.
21499         * lib/strsignal.c: Likewise.
21500         Reported by Ian Beckwith <ianb@erislabs.net>.
21501
21502 2009-09-17  Eric Blake  <ebb9@byu.net>
21503
21504         rmdir: ensure correct dependency order
21505         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
21506
21507 2009-09-17  Bruno Haible  <bruno@clisp.org>
21508
21509         Disable assertion that fails on NetBSD 5 / i386.
21510         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
21511         Reported by Sam Steingold <sds@gnu.org>
21512         and Hasso Tepper <hasso@netbsd.org>.
21513
21514 2009-09-16  Eric Blake  <ebb9@byu.net>
21515
21516         unlinkdir: port to mingw
21517         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
21518         on which no one can unlink a directory.
21519
21520         stdlib: sort witness names
21521         * modules/stdlib (Makefile.am): Sort replacements.
21522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
21523         * lib/stdlib.in.h: Likewise.
21524
21525         parse-duration-tests: avoid link failure
21526         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
21527         LIBINTL.
21528         Reported by Tom G. Christensen.
21529
21530         openat-tests: ensure unlinkat behaves like rmdir
21531         * tests/test-rmdir.c (main): Factor guts...
21532         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
21533         * modules/rmdir-tests (Files): Ship new file.
21534         * modules/openat-tests: New test.
21535         * tests/test-unlinkat.c: Likewise.
21536
21537         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
21538         * modules/rmdir-errno (Status, Notice): Now obsolete.
21539
21540         rmdir: work around cygwin 1.5.x and mingw bugs
21541         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
21542         * lib/rmdir.c (rmdir): Work around it.
21543         * modules/rmdir (Status, Notice): No longer obsolete.
21544         (Files): Add dos.m4.
21545         (Depends-on): Add unistd.
21546         (configure.ac): Set witnesses.
21547         (License): Relax to LGPLv2+.
21548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
21549         * modules/unistd (Makefile.am): Substitute witnesses.
21550         * lib/unistd.in.h (rmdir): Declare replacement.
21551         * doc/posix-functions/rmdir.texi (rmdir): Document this.
21552         * modules/rmdir-tests: New tests.
21553         * tests/test-rmdir.c: Likewise.
21554
21555 2009-09-15  Eric Blake  <ebb9@byu.net>
21556
21557         fchdir: improve use of replacement functions
21558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
21559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
21560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
21561         REPLACE_CLOSEDIR.
21562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
21563         * modules/sys_stat (Makefile.am): Substitute correct witness.
21564         * modules/dirent (Makefile.am): Likewise.
21565         * modules/unistd (Makefile.am): Likewise.
21566         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
21567         * lib/unistd.in.h (dup): Likewise.
21568         * lib/sys_stat.in.h (fstat): Likewise.
21569
21570         maint: ignore gnulib-tool temp files
21571         * .gitignore: Ignore files created during gnulib-tool --test.
21572
21573 2009-09-13  Jim Meyering  <meyering@redhat.com>
21574
21575         posixtm: don't reject a time that specify "60" as the number of seconds
21576         * lib/posixtm.c (posixtime): The code to reject invalid dates
21577         would also reject a time specified with the .60 suffix.
21578         But POSIX allows that, in order to accommodate leap seconds.
21579         So don't reject it.
21580         (main): Adjust tests accordingly.
21581         * modules/posixtm (Depends-on): Add stpcpy.
21582
21583 2009-09-11  Jim Meyering  <meyering@redhat.com>
21584
21585         announce-gen: include [$release_type] in emitted Subject:
21586         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
21587         e.g., [stable] in the emitted Subject: line.
21588
21589 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21590
21591         Remove obsolete macros from several modules.
21592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
21593         obsolete Autoconf macros with their modern counterparts.
21594         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
21595         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
21596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21597         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
21599         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21601         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21602         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21603         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
21604         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21606         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
21607         * m4/sockets.m4 (gl_SOCKETS): Likewise.
21608         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
21609         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
21610         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21611         * m4/time_r.m4 (gl_TIME_R): Likewise.
21612         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21613         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
21614         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21615
21616         Fix copyright header in build-aux scripts.
21617         * build-aux/git-version-gen: Fix copyright header to match GPLv3
21618         recommendation.
21619         * build-aux/ncftpput-ftp: Likewise.
21620         * build-aux/update-copyright: Likewise.
21621
21622 2009-09-09  Eric Blake  <ebb9@byu.net>
21623
21624         test-link: allow Linux choice of errno
21625         * tests/test-link.c (main): Relax test for alternate error.
21626
21627         strndup: fix improper m4 caching
21628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
21629         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
21630         (gl_PREREQ_STRNDUP): Delete.
21631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
21632         * modules/string (Makefile.am): Substitute it.
21633         * lib/string.in.h (strndup): Modernize prototype.
21634
21635         getcwd: port to mingw
21636         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
21637         different from the POSIX assumptions made throughout the getcwd
21638         module; fortunately, the mingw getcwd does not need replacement.
21639         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
21640         * modules/getcwd-tests: New test.
21641         * tests/test-getcwd.c: Likewise.
21642
21643         link: fix platform bugs
21644         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
21645         * lib/link.c (link): Work around them.  Fix related mingw bug.
21646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
21647         * modules/unistd (Makefile.am): Substitute it.
21648         * lib/unistd.in.h (link): Declare replacement.
21649         * doc/posix-functions/link.texi (link): Document this.
21650         * modules/link (Depends-on): Add strdup-posix, sys_stat.
21651
21652         test-link: consolidate into single C program, test more cases
21653         * tests/test-link.sh: Delete.
21654         * tests/test-link.c: Test more error conditions.  Exposes bugs on
21655         at least Cygwin and Solaris.
21656         * modules/link-tests (Files): Remove unused file.
21657         (Depends-on): Add errno, sys_stat.
21658         (Makefile.am): Simplify.
21659
21660 2009-09-08  Bruno Haible  <bruno@clisp.org>
21661
21662         Work around towlower, towupper bug on mingw.
21663         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
21664         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
21665         * doc/posix-functions/towlower.texi: Mention the mingw bug.
21666         * doc/posix-functions/towupper.texi: Likewise.
21667         Reported by Eric Blake.
21668
21669 2009-09-08  Jim Meyering  <meyering@redhat.com>
21670
21671         build: don't try to run autoheader if we don't use it
21672         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
21673         is not used in configure.ac.
21674
21675 2009-09-08  Eric Blake  <ebb9@byu.net>
21676
21677         euidaccess: fix compilation error
21678         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
21679
21680         rawmemchr: relax license
21681         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
21682         okay.
21683         Reported by Jim Meyering.
21684
21685         mkfifoat: new module
21686         * modules/mkfifoat: New file.
21687         * lib/mkfifoat.c: Likewise.
21688         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21690         * modules/sys_stat (Makefile.am): Use them.
21691         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
21692         * MODULES.html.sh (File system functions): Mention module.
21693         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21694         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21695         * modules/mkfifoat-tests: New test.
21696         * tests/test-mkfifoat.c: Likewise.
21697
21698         strchrnul: relax license
21699         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
21700         okay.
21701         Reported by Jim Meyering.
21702
21703 2009-09-08  Eric Blake  <ebb9@byu.net>
21704
21705         fstatat: fix compilation on Solaris
21706         * lib/fstatat.c (includes): Add fcntl.h.
21707         Reported by Pádraig Brady.
21708
21709 2009-09-07  Eric Blake  <ebb9@byu.net>
21710
21711         rename: modernize replacement
21712         * modules/rename (Depends-on): Add stdio.
21713         (configure.ac): Declare witness.
21714         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21715         stdio take care of replacement.
21716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21717         * modules/stdio (Makefile.am): Substitute them.
21718         * lib/stdio.in.h (rename): Declare replacement.
21719         * lib/rename.c (includes): Allow cross-compilation to non-windows
21720         machines.
21721         * doc/posix-functions/rename.texi (rename): Improve
21722         documentation.
21723
21724         stdio: sort witness names
21725         * modules/stdio (Makefile.am): Sort replacements.
21726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21727         * lib/stdio.in.h: Likewise.
21728
21729         getcwd: minor cleanups
21730         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21731         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21732
21733         openat: provide more convenience names
21734         * modules/faccessat (configure.ac): Add C witness.
21735         * lib/unistd.in.h (readlinkat): Fix typo.
21736         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21737         convenience wrappers.
21738         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21739         wrappers in syntax checks.
21740
21741 2009-09-06  Eric Blake  <ebb9@byu.net>
21742
21743         doc: fix comments in recent patches
21744         * lib/faccessat.c: Mention correct function.
21745         * lib/fchmodat.c: Likewise.
21746         * lib/fchownat.c: Likewise.
21747         * lib/symlinkat.c: Likewise.
21748         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21749         constants.
21750
21751         faccessat, symlinkat: continue cleanup of previous patch
21752         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21753         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21754         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21756         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21757         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21758         set.
21759
21760 2009-09-06  Bruno Haible  <bruno@clisp.org>
21761
21762         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21763         (fstatat): Declare if GNULIB_FSTATAT is set.
21764         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21765         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21766         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21767         * modules/fcntl-h (Files): Remove m4/openat.m4.
21768         * modules/sys_stat (Files): Remove m4/openat.m4.
21769         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21770         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21771         * modules/unistd (Files): Remove m4/openat.m4.
21772         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21773         GNULIB_OPENAT.
21774         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21775         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21777         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21778         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21779         gl_OPENAT_DEFAULTS.
21780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21781         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21782         Don't require gl_OPENAT_DEFAULTS.
21783         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21784         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21785         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21786         (gl_OPENAT_DEFAULTS): Remove macro.
21787
21788 2009-09-06  Bruno Haible  <bruno@clisp.org>
21789
21790         * modules/openat (configure.ac): Remove unneeded witness.
21791
21792 2009-09-06  Bruno Haible  <bruno@clisp.org>
21793
21794         Set errno to ENOSYS when a function is entirely unsupported.
21795         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21796         EOPNOTSUPP.
21797         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21798         * modules/chown (Depends-on): Remove errno.
21799
21800 2009-09-06  Bruno Haible  <bruno@clisp.org>
21801
21802         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21803
21804 2009-09-06  Bruno Haible  <bruno@clisp.org>
21805
21806         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21807
21808 2009-09-06  Ben Pfaff  <blp@gnu.org>
21809             Bruno Haible  <bruno@clisp.org>
21810
21811         Work around a glibc bug in strtok_r.
21812         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21813         Undefine if UNDEFINE_STRTOK_R is set.
21814         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21816         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21818         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21819         UNDEFINE_STRTOK_R.
21820         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21821
21822 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21823
21824         exclude: minor fix
21825         * lib/exclude.c: Include wctype.h
21826
21827 2009-09-06  Akim Demaille  <demaille@gostai.com>
21828
21829         bootstrap: improve error message
21830         * build-aux/bootstrap (find_tool): Upon failure, report the list
21831         of candidates.
21832         Honor the initial value of the envvar.
21833
21834 2009-09-05  Eric Blake  <ebb9@byu.net>
21835
21836         symlinkat: new module
21837         * modules/symlinkat: New file.
21838         * lib/symlinkat.c: Likewise.
21839         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21841         * modules/unistd (Makefile.am): Use them.
21842         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21843         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21844         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21845         * MODULES.html.sh (File system functions): Mention module.
21846         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21847         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21848         * modules/symlinkat-tests: New test.
21849         * tests/test-symlinkat.c: Likewise.
21850
21851         test-openat-safer: add more checks
21852         * tests/test-openat-safer.c (main): Check more code paths.
21853
21854 2009-09-05  Jim Meyering  <meyering@redhat.com>
21855
21856         syntax-check: detect unnecessary inclusion of openat.h
21857         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21858
21859 2009-09-05  Bruno Haible  <bruno@clisp.org>
21860
21861         Support towlower, towupper.
21862         * doc/posix-functions/towlower.texi: Mention module wctype.
21863         * doc/posix-functions/towupper.texi: Likewise.
21864         * lib/wctype.in.h (towlower, towupper): New functions.
21865         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21866         (ASSERT): New macro.
21867         (e): New variable.
21868         (main): Test also towlower, towupper. Test WEOF argument.
21869         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21870
21871 2009-09-05  Bruno Haible  <bruno@clisp.org>
21872
21873         Fix conversion behaviour when the input is invalid.
21874         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21875         mark occurring in first pass of indirect conversion.
21876         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21877         input.
21878         Found by clang's static analyzer.
21879
21880 2009-09-05  Bruno Haible  <bruno@clisp.org>
21881
21882         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21883         where direct conversion is possible.
21884
21885 2009-09-04  Eric Blake  <ebb9@byu.net>
21886
21887         openat: fail with ENOENT on empty name
21888         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21889         buffer.
21890
21891         link-follow: fix logic bug in prior patch
21892         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21893         reversed sense of yes and no in prior patch.  Avoid confusing
21894         compilation failure with desired semantics.
21895
21896         link-follow: accomodate mingw and cross-compilation
21897         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21898         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21899         cross-compilation results to -1, to make linkat easier to
21900         implement when cross-compiling.  Trivially support mingw.
21901         * modules/link-follow (configure.ac): Call new name.
21902         * NEWS: Mention this.
21903
21904 2009-09-03  Eric Blake  <ebb9@byu.net>
21905
21906         faccessat: compile replacement
21907         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21908         needed.
21909
21910         fts: fix compilation error
21911         * lib/fts.c (includes): Re-add "openat.h", for
21912         openat_needs_fchdir.
21913
21914         faccessat: new module
21915         * modules/faccessat: New file.
21916         * lib/faccessat.c: Likewise.
21917         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21919         * modules/unistd (Makefile.am): Use it.
21920         * lib/unistd.in.h (faccessat): Declare it.
21921         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21922         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21923         * MODULES.html.sh (File system functions): Mention it.
21924         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21925         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21926
21927         euidaccess: prefer POSIX over non-standard implementation
21928         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21929         * lib/euidaccess.c (euidaccess): Use it if available.
21930
21931         openat: make template easier to use
21932         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21933         AT_FUNC_F2 to be undefined.
21934         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21935         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21936         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21937         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21938         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21939         Likewise.
21940         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21941         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21942         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21943         Likewise.
21944
21945         openat: declare in POSIX headers
21946         * NEWS: Mention this.
21947         * modules/openat (configure.ac): Declare witnesses.
21948         (Depends-on): Add fcntl-h, sys_stat, unistd.
21949         (Include): Mention correct headers.
21950         * modules/fcntl-h (Depends-on): Add link-warning.
21951         (Files): Add openat.m4.
21952         (Makefile.am): Substitute witnesses.
21953         * modules/sys_stat (Files, Makefile.am): Likewise.
21954         * modules/unistd (Files, Makefile.am): Likewise.
21955         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21956         (gl_OPENAT_DEFAULTS): New macro.
21957         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21960         (SYS_STAT_H): Remove unused variable.
21961         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21962         * lib/fcntl--.h (includes): Remove unneeded header.
21963         * lib/openat-safer.c (includes): Likewise.
21964         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21965         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21966         appropriate headers.
21967         (__OPENAT_PREFIX): Delete.
21968         * lib/fcntl.in.h (openat): Provide declaration.
21969         (AT_FDCWD): Fix Solaris bug.
21970         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
21971         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
21972         * lib/fchmodat.c (includes):  Adjust to find declaration.
21973         * lib/fchownat.c (includes): Likewise.
21974         * lib/mkdirat.c (includes): Likewise.
21975         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
21976         still visible.
21977
21978 2009-09-02  Eric Blake  <ebb9@byu.net>
21979
21980         errno: use consistently
21981         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
21982         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
21983         * lib/canonicalize.c (ELOOP): Likewise.
21984         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
21985         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
21986         * lib/lchown.c (EOPNOTSUPP): Likewise.
21987         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
21988         * lib/savewd.c (ESTALE): Likewise.
21989         * lib/settime.c (ENOSYS): Likewise.
21990         * lib/utimens.c (ENOSYS): Likewise.
21991         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
21992         * lib/chdir-safer.c (ELOOP): Likewise.
21993         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
21994         * modules/c-stack (Depends-on): Add errno.
21995         * modules/canonicalize (Depends-on): Likewise.
21996         * modules/chdir-safer (Depends-on): Likewise.
21997         * modules/fdopendir (Depends-on): Likewise.
21998         * modules/inet_ntop (Depends-on): Likewise.
21999         * modules/inet_pton (Depends-on): Likewise.
22000         * modules/lchown (Depends-on): Likewise.
22001         * modules/openat (Depends-on): Likewise.
22002         * modules/savewd (Depends-on): Likewise.
22003         * modules/settime (Depends-on): Likewise.
22004         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
22005
22006         fts: avoid leaking fds
22007         * modules/fts (Depends-on): Add cloexec.
22008         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
22009         flag.
22010
22011         fts: make directory fds more robust
22012         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
22013         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
22014
22015         backupfile, chdir-long, fts, savedir: make safer
22016         * lib/backupfile.c (includes): Use "dirent--.h", since
22017         numbered_backup can write to stderr during readdir.
22018         * lib/savedir.c (includes): Likewise.
22019         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
22020         emulation can write to stderr on failure.
22021         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
22022         * lib/getcwd.c: Document why opendir_safer is unused.
22023         * lib/glob.c: Likewise.
22024         * lib/scandir.c: Likewise.
22025         * lib/openat-proc.c: Likewise, for open_safer.
22026         * modules/backupfile (Depends-on): Add dirent-safer.
22027         * modules/savedir (Depends-on): Likewise.
22028         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
22029         * modules/chdir-long (Depends-on): Add openat-safer.
22030
22031         openat-safer: new module
22032         * modules/openat-safer: New file.
22033         * lib/openat-safer.c: Likewise.
22034         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
22035         * lib/fcntl-safer.h (openat_safer): Declare.
22036         * lib/fcntl--.h (openat): Override.
22037         * MODULES.html.sh (File descriptor based I/O): Mention it.
22038         * lib/openat.h: Add double-inclusion guards.
22039         * lib/openat.c (includes): Only include "fcntl-safer.h", not
22040         "fcntl--.h", so we can implement openat.
22041         * modules/openat-safer-tests: New test.
22042         * tests/test-openat-safer.c: New file.
22043
22044         dirent-safer: new module
22045         * modules/dirent-safer: New file.
22046         * lib/dirent--.h: Likewise.
22047         * lib/dirent-safer.h: Likewise.
22048         * lib/opendir-safer.c: Likewise.
22049         * m4/dirent-safer.m4: Likewise.
22050         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
22051         * modules/dirent-safer-tests: New test.
22052         * tests/test-dirent-safer.c: New file.
22053         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
22054
22055         fdopendir: optimize on mingw
22056         * lib/unistd.in.h (_gl_directory_name): New prototype.
22057         * lib/fchdir.c (_gl_directory_name): Implement it.
22058         (fchdir): Use it to simplify implementation.
22059         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
22060         fchdir, when available, to avoid calling [f]chdir().
22061
22062         fdopendir: split into its own module
22063         * lib/openat.c (fdopendir): Move...
22064         * lib/fdopendir.c: ...into new file.
22065         * modules/fdopendir: New module.
22066         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
22067         * modules/openat (Depends-on): Add fdopendir.
22068         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
22069         fdopendir here.
22070         * modules/savedir (Depends-on): Only need fdopendir, not full
22071         openat.
22072         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
22073         * lib/openat.h (fdopendir): Drop prototype.
22074         * lib/dirent.in.h (fdopendir): Provide prototype.
22075         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
22076         * modules/dirent (Makefile.am): Substitute them.
22077         * MODULES.html.sh (File system functions): Mention it.
22078         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
22079         * modules/fdopendir-tests: New file.
22080         * tests/test-fdopendir.c: Likewise.
22081
22082         fchdir: use more consistent macro convention
22083         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
22084         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
22085         REPLACE_FCHDIR, rather than relying on config.h macros.
22086         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
22087         inside a single make-time REPLACE_FCHDIR block, rather than using
22088         the config.h FCHDIR_REPLACEMENT.
22089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
22090         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
22091         Manage fstat replacement.
22092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
22093         REPLACE_FCHDIR.
22094         * modules/sys_stat (Files): Add m4/unistd_h.m4.
22095         (Makefile.am): Substitute REPLACE_FCHDIR.
22096         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
22097         FCHDIR_REPLACEMENT.
22098         * lib/dup-safer.c (dup_safer): Likewise.
22099         * lib/dup2.c (rpl_dup2): Likewise.
22100         * lib/dup3.c (rpl_dup3): Likewise.
22101         * lib/open.c (rpl_open): Likewise.
22102
22103         fchdir: simplify error handling, and support dup3
22104         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
22105         stdbool, malloc-posix, realloc-posix.
22106         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
22107         (ensure_dirs_slot): Return false on allocation failure.
22108         (rpl_dup2): Delete.
22109         (_gl_register_dup): New function.
22110         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
22111         (_gl_register_fd): Close fd on allocation failure.
22112         * lib/fcntl.in.h (_gl_register_fd): Update signature.
22113         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
22114         prototype.
22115         (rpl_dup2_fchdir): Delete prototype.
22116         * lib/open.c (open): Update caller.
22117         * lib/dup2.c (dup2): Track fchdir metadata.
22118         * lib/dup3.c (dup3): Likewise.
22119         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
22120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
22121
22122 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22123
22124         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
22125         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
22126         don't pass arguments to AC_OUTPUT.
22127
22128 2009-09-02  Bruno Haible  <bruno@clisp.org>
22129
22130         * modules/mkdtemp (License): Relicense under LGPLv2+.
22131         Reported by Paolo Bonzini.
22132
22133 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22134
22135         Replace uses of obsolete autoconf macros in Jim's modules.
22136         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
22137         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
22138         can evoke a warning from autoconf when run with -Wobsolete
22139         enabled.  They were declared obsolete for good reasons (see
22140         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
22141         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
22142         should not continue using the deprecated macros.
22143         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
22144         obsolete Autoconf macros with modern counterparts.
22145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22146         * m4/dos.m4 (gl_AC_DOS): Likewise.
22147         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
22148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22149         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
22150         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
22151         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
22152         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22153         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
22154         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
22155         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22156         Likewise.
22157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22158         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22159         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
22160         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
22161         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
22162         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22163
22164 2009-09-01  Eric Blake  <ebb9@byu.net>
22165
22166         fchdir: fix off-by-one bug in previous patch
22167         * lib/fchdir.c (rpl_fstat): Use correct bounds.
22168         (_gl_unregister_fd): Delete useless if.
22169
22170 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
22171
22172         maint.mk: sort the list of syntax-check rules
22173         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
22174         easier to get a sense of progress when the rules are run sequentially
22175         and take a long time.
22176
22177 2009-09-01  Simon Josefsson  <simon@josefsson.org>
22178
22179         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
22180         * modules/netinet_in: Likewise.
22181         * modules/sys_file: Likewise.
22182         * modules/sys_ioctl: Likewise.
22183         * modules/sys_select: Likewise.
22184         * modules/sys_socket: Likewise.
22185         * modules/sys_stat: Likewise.
22186         * modules/sys_time: Likewise.
22187         * modules/sys_times: Likewise.
22188         * modules/sys_utsname: Likewise.
22189         * modules/sys_wait: Likewise.
22190
22191 2009-09-01  Jim Meyering  <meyering@redhat.com>
22192
22193         fts: help ensure that return values are not ignored
22194         * lib/fts_.h (__GNUC_PREREQ): Define.
22195         (__attribute_warn_unused_result__): Define.
22196         (fts_children, fts_close, fts_open, fts_read): Declare with
22197         __attribute_warn_unused_result__.
22198
22199         fts: fts_close now fails also when closing a dir file descriptor fails
22200         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
22201         and propagate to caller, along with errno.
22202
22203         announce-gen: correct formatting in --help output
22204         * build-aux/announce-gen (usage): Move the one-line description in
22205         --help output "up", to where it belongs, just after Usage:.
22206
22207 2009-08-31  Eric Blake  <ebb9@byu.net>
22208
22209         fchdir: port to mingw
22210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
22211         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
22212         opened, then use a substitute.
22213         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
22214         replacement.
22215         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
22216         (_gl_register_fd): No need to check stat if open already filters
22217         all directories.
22218         (fchdir): Fix error condition to match POSIX.
22219         * modules/fchdir (Depends-on): Add sys_stat.
22220         * doc/posix-functions/open.texi (open): Document the limitation.
22221         * modules/fchdir-tests: New file.
22222         * tests/test-fchdir.c: Likewise.
22223
22224         canonicalize: allow cross-testing from cygwin to mingw
22225         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
22226         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
22227         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
22228         Likewise.
22229         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
22230         target does not support symlinks.
22231         * tests/test-canonicalize-lgpl.sh: Likewise.
22232
22233         chown: avoid compilation warning on mingw
22234         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
22235         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
22236         mingw.
22237         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22238         * modules/chown (Depends-on): Add errno.
22239
22240 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22241
22242         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
22243         command.
22244
22245 2009-08-31  Jim Meyering  <meyering@redhat.com>
22246
22247         canonicalize: remove useless initialization
22248         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
22249         initialization of local, "end".
22250
22251 2009-08-30  Bruno Haible  <bruno@clisp.org>
22252
22253         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
22254         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
22255         ENOSYS.
22256
22257 2009-08-30  Bruno Haible  <bruno@clisp.org>
22258
22259         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
22260         /usr/xpg4/bin/tr when it exists.
22261         * tests/test-pipe-filter-gi1.sh: Likewise.
22262
22263 2009-08-30  Bruno Haible  <bruno@clisp.org>
22264
22265         Work around deficient /usr/bin/id program on Solaris.
22266         * tests/test-file-has-acl.sh (ID): New variable.
22267         * tests/test-set-mode-acl.sh (ID): Likewise.
22268         * tests/test-copy-acl.sh (ID): Likewise.
22269         * tests/test-copy-file.sh (ID): Likewise.
22270
22271 2009-08-30  Bruno Haible  <bruno@clisp.org>
22272
22273         New module 'xstriconveh'.
22274         * lib/xstriconveh.h: New file.
22275         * lib/xstriconveh.c: New file.
22276         * modules/xstriconveh: New file.
22277
22278 2009-08-30  Bruno Haible  <bruno@clisp.org>
22279
22280         Make it easier to use mem_cd_iconveh.
22281         * lib/striconveh.h (iconveh_t): New type.
22282         (iconveh_open, iconveh_close): New declarations.
22283         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22284         with a single 'const iconveh_t *' argument.
22285         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
22286         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22287         with a single 'const iconveh_t *' argument.
22288         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
22289         * tests/test-striconveh.c (main): Update.
22290         * NEWS: Mention the change.
22291
22292 2009-08-30  Bruno Haible  <bruno@clisp.org>
22293
22294         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
22295         problem.
22296
22297 2009-08-30  Bruno Haible  <bruno@clisp.org>
22298
22299         Work around iconv_open problem on Solaris.
22300         * lib/iconv_open-solaris.gperf: New file.
22301         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
22302         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
22303         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
22304         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
22305         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
22306         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
22307
22308 2009-08-29  Jim Meyering  <meyering@redhat.com>
22309
22310         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
22311         * top/maint.mk (cvs-check): Remove target; it was just an alias
22312         to the better-named vc-diff-check.
22313         (maintainer-distcheck): Remove rule.  It was used only from
22314         the (alpha/beta/major) target, and all of its commands but one
22315         were coreutils-specific.
22316         (vc-dist): Remove rule.
22317         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
22318         Run vc-diff-check, not vc-dist.
22319         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
22320
22321 2009-08-27  Bruno Haible  <bruno@clisp.org>
22322
22323         * tests/test-bitrotate.c (main): Remove test that uses a shift count
22324         of 0.
22325
22326 2009-08-27  Bruno Haible  <bruno@clisp.org>
22327
22328         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
22329         compilers.
22330         * doc/func.texi: Document the SunPRO C bug.
22331
22332 2009-08-27  Bruno Haible  <bruno@clisp.org>
22333
22334         Fix link error on Solaris.
22335         * tests/test-parse-duration.c (xstrdup): Remove function.
22336
22337 2009-08-26  Pádraig Brady  <P@draigbrady.com>
22338
22339         ignore-value: handle pointer types, too
22340         * lib/ignore-value.h (__attribute__): Remove definition.
22341         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
22342         of a more concise and more-often effective "(void) i" statement.
22343         (ignore_ptr): New function to suppress warnings from functions that
22344         return pointers, and to make it explicit that one function doesn't
22345         handle all cases.
22346
22347 2009-08-25  Bruno Haible  <bruno@clisp.org>
22348
22349         dup2: work around a Linux bug.
22350         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
22351         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
22352         * doc/posix-functions/dup2.texi: Mention the Linux bug.
22353         Reported by Simon Josefsson.
22354
22355 2009-08-25  Jim Meyering  <meyering@redhat.com>
22356
22357         libguestfs uses gnulib
22358         * users.txt: Add libguestfs.
22359
22360 2009-08-24  Eric Blake  <ebb9@byu.net>
22361
22362         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
22363         * lib/pipe2.c (includes): Add binary-io.h.
22364         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
22365
22366 2009-08-24  Bruno Haible  <bruno@clisp.org>
22367
22368         Tolerate declared but missing accept4 syscall.
22369         * lib/accept4.c (accept4): Invoke original accept4 function first, if
22370         available.
22371         * lib/sys_socket.in.h (accept4): If the function is already present,
22372         override it.
22373         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
22374         * modules/accept4 (Makefile.am): Compile accept4.c always.
22375         Reported by Paolo Bonzini and Eric Blake.
22376
22377 2009-08-23  Bruno Haible  <bruno@clisp.org>
22378
22379         New module 'accept4'.
22380         * lib/sys_socket.in.h (accept4): New declaration.
22381         * lib/accept4.c: New file.
22382         * m4/accept4.m4: New file.
22383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22384         GNULIB_ACCEPT4, HAVE_ACCEPT4.
22385         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
22386         HAVE_ACCEPT4.
22387         * modules/accept4: New file.
22388         * doc/glibc-functions/accept4.texi: Mention the new module.
22389
22390 2009-08-24  Jim Meyering  <meyering@redhat.com>
22391
22392         progname: also set global program_invocation_name, when possible
22393         Before this change, a libtool-enabled program that calls glibc's
22394         error function would report the program name as
22395         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
22396         * modules/progname (configure.ac): Check for a declaration of
22397         program_invocation_name.
22398         * lib/progname.c:  Include <errno.h>.
22399         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
22400         Set program_invocation_name.
22401
22402 2009-08-23  Bruno Haible  <bruno@clisp.org>
22403
22404         * lib/dup3.c: Include <string.h>.
22405
22406 2009-08-23  Bruno Haible  <bruno@clisp.org>
22407
22408         * lib/dup3.c (dup3): Test only once whether the system actually exists.
22409         * lib/pipe2.c (pipe2): Likewise.
22410         Suggested by Eric Blake.
22411
22412 2009-08-23  Bruno Haible  <bruno@clisp.org>
22413
22414         Tolerate declared but missing dup3 syscall.
22415         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
22416         * lib/unistd.in.h (dup3): If the function is already present,
22417         override it.
22418         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
22419         * modules/dup3 (Makefile.am): Compile dup3.c always.
22420         Reported by Paolo Bonzini.
22421
22422 2009-08-23  Bruno Haible  <bruno@clisp.org>
22423
22424         Tolerate declared but missing pipe2 syscall.
22425         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
22426         available.
22427         * lib/unistd.in.h (pipe2): If the function is already present,
22428         override it.
22429         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
22430         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
22431         Reported by Paolo Bonzini.
22432
22433 2009-08-23  Bruno Haible  <bruno@clisp.org>
22434
22435         * lib/pipe2.c (pipe2): Move #ifs inside function.
22436
22437 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22438
22439         quotearg: document limitations of quote_these_too
22440         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
22441         those limitations are created.
22442         * lib/quotearg.h (set_char_quoting): Document that digits and
22443         letters that are special after backslash are not permitted.
22444         (quotearg_char): Cross-reference set_char_quoting documentation.
22445
22446 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
22447
22448         quotearg: implement custom_quoting_style
22449         * lib/quotearg.c: (struct quoting_options): Add left_quote and
22450         right_quote fields.
22451         (set_custom_quoting): New public function.
22452         (quotearg_buffer_restyled): Add left_quote and right_quote
22453         arguments, handle them very much like locale quoting, and update
22454         all uses.
22455         (quotearg_n_custom): New public function.
22456         (quotearg_n_custom_mem): New public function.
22457         (quotearg_custom): New public function.
22458         (quotearg_custom_mem): New public function.
22459         * lib/quotearg.h: Prototype and document new public functions.
22460         (enum quoting_style): For escape_quoting_style and
22461         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
22462         ignored even though they're otherwise like c_quoting_style.
22463         Add custom_quoting_style member and document with comparison to
22464         clocale_quoting_style.
22465         * tests/test-quotearg.c (custom_quotes): New array.
22466         (custom_results): New array.
22467         (main): Extend to test custom quoting.
22468
22469 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22470
22471         quotearg: fix right quote escaping when it's in quote_these_too
22472         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
22473         quote, be sure to prepend only one backslash.
22474         * tests/test-quotearg.c (use_quote_double_quotes): New function.
22475         (main): Test it.
22476
22477 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22478
22479         quotearg-tests: test escaping of embedded locale quotes
22480         * tests/test-quotearg.c (struct result_strings): Add member for
22481         new input.
22482         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
22483         (inputs): Add new input.
22484         (results_g): Add expected results.
22485         (flag_results): Likewise.
22486         (locale_results): Likewise.
22487         (compare_strings): Check those.
22488
22489 2009-08-23  Bruno Haible  <bruno@clisp.org>
22490
22491         Tests for module 'dup3'.
22492         * modules/dup3-tests: New file.
22493         * tests/test-dup3.c: New file.
22494
22495         New module 'dup3'.
22496         * lib/unistd.in.h (dup3): New declaration.
22497         * lib/dup3.c: New file.
22498         * m4/dup3.m4: New file.
22499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
22500         HAVE_DUP3.
22501         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
22502         * modules/dup3: New file.
22503         * doc/glibc-functions/dup3.texi: Mention the new module.
22504
22505 2009-08-23  Bruno Haible  <bruno@clisp.org>
22506
22507         Tweak the dup2 test.
22508         * tests/test-dup2.c (main): Create the test file empty. Verify that an
22509         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
22510         the test file is still empty. Fix argument order of lseek.
22511
22512 2009-08-23  Bruno Haible  <bruno@clisp.org>
22513
22514         Avoid test link errors when the modules getopt-gnu, gettext are used.
22515         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
22516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22517
22518 2009-08-23  Bruno Haible  <bruno@clisp.org>
22519
22520         Fix getdtablesize() on mingw.
22521         * lib/getdtablesize.c (getdtablesize): Implement differently.
22522         * lib/unistd.in.h (getdtablesize): Improve comment.
22523
22524 2009-08-23  Bruno Haible  <bruno@clisp.org>
22525
22526         New module 'mkostemp'.
22527         Based on Ulrich Drepper's 2007-08-10 change in glibc.
22528         * lib/stdlib.in.h (mksotemp): New declaration.
22529         * lib/mkostemp.c: New file, from glibc with modifications.
22530         * lib/tempname.h (GT_FILE): Remove outdated comment.
22531         (gen_tempname): Add flags argument.
22532         * lib/tempname.c (__GT_BIGFILE): Remove macro.
22533         (__GT_FILE): Map to 1.
22534         (small_open, large_open): Remove macros.
22535         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
22536         * lib/mkstemp.c (mkstemp): Update.
22537         * lib/mkdtemp.c (mkdtemp): Likewise.
22538         * m4/mkostemp.m4: New file.
22539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
22540         HAVE_MKOSTEMP.
22541         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
22542         HAVE_MKOSTEMP.
22543         * modules/mkostemp: New file, based on modules/mkstemp.
22544         * doc/glibc-functions/mkostemp.texi: Mention the new module.
22545         * NEWS: Mention the change.
22546
22547 2009-08-23  Bruno Haible  <bruno@clisp.org>
22548
22549         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
22550         Reported by Eric Blake.
22551
22552 2009-08-23  Bruno Haible  <bruno@clisp.org>
22553
22554         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
22555         Reported by Eric Blake.
22556
22557 2009-08-23  Bruno Haible  <bruno@clisp.org>
22558
22559         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
22560         * modules/pipe2 (Depends-on): Likewise.
22561
22562 2009-08-23  Eric Blake  <ebb9@byu.net>
22563
22564         fcntl-h: add O_TTY_INIT support
22565         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
22566         * tests/test-fcntl-h.c (o): Test it.
22567         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22568
22569         fcntl-h: rename from fcntl, in preparation for fcntl(2)
22570         * modules/fcntl: Move <fcntl.h> header replacement...
22571         * modules/fcntl-h: ...to new name, so as not to collide with
22572         like-named function.
22573         * tests/test-fcntl.c: Rename...
22574         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
22575         * modules/fcntl-tests: Rename...
22576         * modules/fcntl-h-tests: ...to this.  Update test file name.
22577         * modules/chdir-long (Depends-on): Update clients.
22578         * modules/chdir-safer (Depends-on): Likewise.
22579         * modules/fcntl-safer (Depends-on): Likewise.
22580         * modules/fts (Depends-on): Likewise.
22581         * modules/mkancesdirs (Depends-on): Likewise.
22582         * modules/mkdir-p (Depends-on): Likewise.
22583         * modules/open (Depends-on): Likewise.
22584         * modules/savewd (Depends-on): Likewise.
22585         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
22586         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22587
22588 2009-08-22  Bruno Haible  <bruno@clisp.org>
22589
22590         * modules/binary-io (License): Relicense under LGPL.
22591         * modules/pipe2 (License): Likewise.
22592
22593 2009-08-22  Bruno Haible  <bruno@clisp.org>
22594
22595         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
22596         return value.
22597         * lib/pipe-filter-gi.c (filter_init): Likewise.
22598         Reported by Eric Blake.
22599
22600 2009-08-22  Bruno Haible  <bruno@clisp.org>
22601
22602         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
22603         * modules/pipe (Depends-on): Add pipe2.
22604
22605 2009-08-22  Bruno Haible  <bruno@clisp.org>
22606
22607         Tests for module 'pipe2'.
22608         * modules/pipe2-tests: New file.
22609         * tests/test-pipe2.c: New file.
22610
22611         New module 'pipe2'.
22612         * lib/unistd.in.h (pipe2): New declaration.
22613         * lib/pipe2.c: New file.
22614         * m4/pipe2.m4: New file.
22615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
22616         HAVE_PIPE2.
22617         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
22618         * modules/pipe2: New file.
22619         * doc/glibc-functions/pipe2.texi: Mention the new module.
22620
22621 2009-08-22  Bruno Haible  <bruno@clisp.org>
22622
22623         Reference some new glibc functions.
22624         * doc/glibc-functions/accept4.texi: New file.
22625         * doc/glibc-functions/dup3.texi: New file.
22626         * doc/glibc-functions/mkostemp.texi: New file.
22627         * doc/glibc-functions/pipe2.texi: New file.
22628         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
22629         (Glibc sys/socket.h): Refer to accept4.
22630         (Glibc unistd.h): Refer to dup3, pipe2.
22631         Reported by Eric Blake.
22632
22633 2009-08-22  Jim Meyering  <meyering@redhat.com>
22634             Bruno Haible  <bruno@clisp.org>
22635
22636         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
22637         This makes it so packages using automake-1.11's silent-rules option
22638         can print e.g., a single "GEN    configmake.h" line, rather than
22639         the 30+ statements that perform the job.  If you want to see the
22640         actual commands, you can still run "make V=1".
22641         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
22642         so that make output is abbreviated when those variables are defined
22643         appropriately.
22644         * modules/argz: Likewise.
22645         * modules/arpa_inet: Likewise.
22646         * modules/byteswap: Likewise.
22647         * modules/configmake: Likewise.
22648         * modules/dirent: Likewise.
22649         * modules/errno: Likewise.
22650         * modules/fcntl: Likewise.
22651         * modules/float: Likewise.
22652         * modules/fnmatch: Likewise.
22653         * modules/getopt-posix: Likewise.
22654         * modules/glob: Likewise.
22655         * modules/iconv_open: Likewise.
22656         * modules/inttypes: Likewise.
22657         * modules/localcharset: Likewise.
22658         * modules/locale: Likewise.
22659         * modules/math: Likewise.
22660         * modules/netdb: Likewise.
22661         * modules/netinet_in: Likewise.
22662         * modules/poll: Likewise.
22663         * modules/posix_spawnp-tests: Likewise.
22664         * modules/sched: Likewise.
22665         * modules/search: Likewise.
22666         * modules/selinux-h: Likewise.
22667         * modules/signal: Likewise.
22668         * modules/spawn: Likewise.
22669         * modules/stdarg: Likewise.
22670         * modules/stdbool: Likewise.
22671         * modules/stddef: Likewise.
22672         * modules/stdint: Likewise.
22673         * modules/stdio: Likewise.
22674         * modules/stdlib: Likewise.
22675         * modules/string: Likewise.
22676         * modules/strings: Likewise.
22677         * modules/sys_file: Likewise.
22678         * modules/sys_ioctl: Likewise.
22679         * modules/sys_select: Likewise.
22680         * modules/sys_socket: Likewise.
22681         * modules/sys_stat: Likewise.
22682         * modules/sys_time: Likewise.
22683         * modules/sys_times: Likewise.
22684         * modules/sys_utsname: Likewise.
22685         * modules/sys_wait: Likewise.
22686         * modules/sysexits: Likewise.
22687         * modules/time: Likewise.
22688         * modules/unistd: Likewise.
22689         * modules/wchar: Likewise.
22690         * modules/wctype: Likewise.
22691
22692 2009-08-22  Jim Meyering  <meyering@redhat.com>
22693
22694         announce-gen: detect write failure
22695         * build-aux/announce-gen: Add Coda at end.
22696         Remove equivalent-but-more-verbose block at top.
22697
22698 2009-08-19  Akim Demaille  <demaille@gostai.com>
22699
22700         bootstrap: --help to stdout.
22701         * bootstrap (usage): Don't send --help to stderr.
22702         Use a here doc instead of a long string.
22703
22704 2009-08-21  Eric Blake  <ebb9@byu.net>
22705
22706         test-popen-safer: split from test-popen
22707         * tests/test-popen.c (main): Move...
22708         * tests/test-popen.h: ...into new file.
22709         * tests/test-popen-safer2.c: New file.
22710         * modules/popen-tests (Files): Add test-popen.h.
22711         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22712         Suggested by Bruno Haible.
22713
22714         test-fcntl-safer: split from test-open
22715         * tests/test-open.c (main): Move...
22716         * tests/test-open.h: ...into new file.
22717         * tests/test-fcntl-safer.c: New file.
22718         * modules/open-tests (Files): Add test-open.h.
22719         * modules/fcntl-safer-tests: New file.
22720         Suggested by Bruno Haible.
22721
22722         test-fopen-safer: split from test-fopen
22723         * tests/test-fopen.c (main): Move...
22724         * tests/test-fopen.h: ...into new file.
22725         * tests/test-fopen-safer.c: New file.
22726         * modules/fopen-tests (Files): Add test-fopen.h.
22727         * modules/fopen-safer-tests: New file.
22728         Suggested by Bruno Haible.
22729
22730 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22731
22732         popen-safer: test O_CLOEXEC at run-time.
22733         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22734
22735 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22736
22737         fcntl: move more flags to the header
22738         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22739         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22740         * lib/fcntl.in.h: Do both things here.
22741
22742 2009-08-21  Jim Meyering  <meyering@redhat.com>
22743
22744         consistently remove $@-t before redirecting to it
22745         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22746         * modules/alloca-opt: Likewise.
22747         * modules/byteswap: Likewise.
22748         * modules/fnmatch: Likewise.
22749         * modules/getopt-posix: Likewise.
22750         * modules/glob: Likewise.
22751         * modules/poll: Likewise.
22752         * modules/posix_spawnp-tests: Likewise.
22753         * modules/sys_socket: Likewise.
22754         * modules/sysexits: Likewise.
22755
22756 2009-08-21  Eric Blake  <ebb9@byu.net>
22757
22758         popen: simplify access to original popen
22759         * lib/popen.c (rpl_popen): No need to worry about popen being a
22760         macro.
22761         Reported by Bruno Haible.
22762
22763 2009-08-20  Eric Blake  <ebb9@byu.net>
22764
22765         build: avoid some compiler warnings
22766         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22767         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22768         type.
22769         (new_exclude_segment, excluded_file_pattern_p)
22770         (excluded_file_name_p): Reduce scope.
22771         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22772         old-style declaration.
22773
22774 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22775
22776         * tests/test-exclude1.sh: Handle Windows EOL.
22777         * tests/test-exclude2.sh: Likewise.
22778         * tests/test-exclude3.sh: Likewise.
22779         * tests/test-exclude4.sh: Likewise.
22780         * tests/test-exclude5.sh: Likewise.
22781         * tests/test-exclude6.sh: Likewise.
22782         * tests/test-exclude7.sh: Likewise.
22783
22784 2009-08-19  Akim Demaille  <demaille@gostai.com>
22785
22786         bootstrap: find sha1sum when named gsha1sum.
22787         * bootstrap (find_tool): New.
22788         ($SHA1SUM): New.
22789         Use it.
22790
22791 2009-08-20  Jim Meyering  <meyering@redhat.com>
22792
22793         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22794         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22795         expression that converts "." in a file name to "\." in the resulting
22796         regexp.  Start with a dummy statement, so that prior shell variable
22797         definitions are expanded portably.  Reported by Simon Josefsson.
22798
22799 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22800
22801         Fix polling for writeability of a screen buffer.
22802         * lib/poll.c: Distinguish input and screen buffers for the
22803         Win32 implementation.
22804         * lib/select.c: Likewise.
22805
22806 2009-08-19  Eric Blake  <ebb9@byu.net>
22807
22808         popen-safer: prevent popen from clobbering std descriptors
22809         * modules/popen-safer: New file.
22810         * lib/popen-safer.c: Likewise.
22811         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22812         * lib/stdio--.h (popen): Provide override.
22813         * lib/stdio-safer.h (popen_safer): Provide declaration.
22814         * tests/test-popen.c (includes): Partially test this.
22815         * modules/popen-safer-tests: New file, for more tests.
22816         * tests/test-popen-safer.c: Likewise.
22817         * MODULES.html.sh (file stream based Input/Output): Mention it.
22818
22819         tests: test some of the *-safer modules
22820         * modules/fopen-safer (Depends-on): Add fopen.
22821         * modules/fcntl-safer (Depends-on): Add fcntl.
22822         * modules/stdlib-safer (Depends-on): Add stdlib.
22823         (configure.ac): Set indicator.
22824         * modules/unistd-safer (configure.ac): Likewise.
22825         * modules/tmpfile-safer (configure.ac): Likewise.
22826         (Depends-on): Add tmpfile.
22827         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22828         active.
22829         * tests/test-fopen.c (includes): Test safer versions when they are
22830         in use.
22831         * tests/test-open.c (includes): Likewise.
22832
22833         popen: fix cygwin 1.5 bug when stdin closed
22834         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22835         * modules/popen: New file.
22836         * modules/popen-tests: Likewise.
22837         * tests/test-popen.c: Likewise.
22838         * m4/popen.m4: Likewise.
22839         * lib/popen.c: Likewise.
22840         * lib/stdio.in.h (popen): New declaration.
22841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22842         * modules/stdio (Makefile.am): Likewise.
22843         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22844
22845 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22846
22847         maint.mk: give full control over update-copyright exclusions
22848         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22849         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22850         (update-copyright): Don't force inclusion of top-level
22851         ChangeLog.  Don't force exclusion of all COPYING files, but make
22852         them the default exclusion instead.
22853
22854 2009-08-16  Bruno Haible  <bruno@clisp.org>
22855
22856         Fix test failures on Solaris 10.
22857         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22858         tests when Solaris iconv() is used.
22859         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22860         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22861         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22862         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22863         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22864
22865 2009-08-16  Bruno Haible  <bruno@clisp.org>
22866
22867         Fix test failures on Solaris 10.
22868         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22869         'tr' program and pass it as first argument.
22870         * tests/test-pipe-filter-gi1.sh: Likewise.
22871         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22872         program as first argument.
22873         * tests/test-pipe-filter-gi1.c (main): Likewise.
22874
22875 2009-08-16  Eric Blake  <ebb9@byu.net>
22876
22877         fpurge: fix previous commits
22878         * modules/fpurge (Makefile.am): Make replacement conditional,
22879         partially reverting 2007-04-29 change; missed in previous
22880         attempt.
22881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22882         is missing.
22883
22884 2009-08-16  Bruno Haible  <bruno@clisp.org>
22885
22886         Clarify fpurge's effect on the file position.
22887         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22888         * tests/test-fpurge.c (main): Make a second pass for checking the file
22889         position.
22890
22891 2009-08-16  Bruno Haible  <bruno@clisp.org>
22892
22893         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22894         declaration of fpurge is missing.
22895         * tests/test-fpurge.c (main): Check that the file has not more contents
22896         than expected. Close the file before removing it.
22897
22898 2009-08-15  Eric Blake  <ebb9@byu.net>
22899
22900         fpurge: don't wrap working cygwin implementation
22901         * lib/fpurge.c (fpurge): Fix comment typo.
22902         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22903         1.7 to avoid replacement.
22904         * tests/test-fpurge.c (main): Enhance test.
22905
22906 2009-08-15  Eric Blake  <ebb9@byu.net>
22907         and Jim Meyering  <meyering@redhat.com>
22908
22909         test-update-copyright: skip if perl is insufficient
22910         * tests/test-update-copyright.sh: Failure to run maintainer tool
22911         should not cause testsuite failure on cygwin 1.5.
22912
22913 2009-08-14  Eric Blake  <ebb9@byu.net>
22914
22915         doc: mention more functions added in cygwin 1.7.0
22916         * doc/posix-headers/limits.texi (limits.h): Update for recent
22917         cygwin additions.
22918         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22919         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22920         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22921         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22922         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22923
22924 2009-08-14  Eric Blake  <ebb9@byu.net>
22925
22926         maint.mk: simplify update-copyright rule
22927         * top/maint.mk (update-copyright-local): Delete, and document how
22928         to do it in cfg.mk instead.
22929         (update-copyright-exclude-regexp): Delete, and document how to do
22930         it in .x-update-copyright instead.
22931         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22932         exclude ChangeLog.
22933
22934 2009-08-14  Bruno Haible  <bruno@clisp.org>
22935
22936         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22937
22938 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22939
22940         maint.mk: support update-copyright-env
22941         * top/maint.mk (update-copyright-env): Define place-holder.
22942         (update-copyright): Expand $(update-copyright-env) before
22943         invoking update-copyright.
22944
22945 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22946
22947         update-copyright: implement forced reformatting
22948         * build-aux/update-copyright: Implement and document
22949         UPDATE_COPYRIGHT_FORCE.
22950         * tests/test-update-copyright.sh: Test it.
22951
22952 2009-08-14  Eric Blake  <ebb9@byu.net>
22953         and Bruno Haible  <bruno@clisp.org>
22954
22955         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22956         * tests/test-locale.c: Revert previous patch related to NULL.
22957         * tests/test-stdio.c: Likewise.
22958         * tests/test-stdlib.c: Likewise.
22959         * tests/test-string.c: Likewise.
22960         * tests/test-unistd.c: Likewise.
22961         * modules/time-tests (Depends-on): Add verify.
22962         * modules/wchar-tests (Depends-on): Likewise.
22963         * tests/test-time.c: Test for NULL compliance.
22964         * tests/test-wchar.c: Likewise.
22965         * modules/locale (Depends-on): Add stddef.
22966         * modules/stdio (Depends-on): Likewise.
22967         * modules/stdlib (Depends-on): Likewise.
22968         * modules/string (Depends-on): Likewise.
22969         * modules/time (Depends-on): Likewise.
22970         * modules/unistd (Depends-on): Likewise.
22971         * modules/wchar (Depends-on): Likewise.
22972         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
22973         * lib/stdlib.in.h (includes): Likewise.
22974         * lib/string.in.h (includes): Likewise.
22975         * lib/time.in.h (includes): Likewise.
22976         * lib/unistd.in.h (includes): Likewise.
22977         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
22978         replaced.
22979         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22980         * m4/stddef_h.m4: New file.
22981         * modules/stddef: Likewise.
22982         * lib/stddef.in.h: Likewise.
22983         * modules/stddef-tests: Likewise.
22984         * tests/test-stddef.c: Likewise.
22985         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
22986         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
22987         * doc/posix-headers/locale.texi (locale.h): Likewise.
22988         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
22989         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22990         * doc/posix-headers/string.texi (string.h): Likewise.
22991         * doc/posix-headers/time.texi (time.h): Likewise.
22992         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
22993         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
22994
22995 2009-08-14  Eric Blake  <ebb9@byu.net>
22996
22997         doc: improve git diff of texinfo files
22998         * .gitattributes: Add rule for *.texi files, with hint on how to
22999         use it.
23000         Copied from m4, and based on a report by Bruno Haible.
23001
23002 2009-08-14  Bruno Haible  <bruno@clisp.org>
23003
23004         Disable multithread support by default on Cygwin 1.5.x for real.
23005         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
23006
23007 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23008
23009         update-copyright: much ado about intervals
23010         * build-aux/update-copyright: Implement and document
23011         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
23012         of copyright year intervals.
23013         Also, document UPDATE_COPYRIGHT_YEAR.
23014         * tests/test-update-copyright.sh: Test it.
23015
23016         update-copyright: convert 2-digit to 4-digit years
23017         * build-aux/update-copyright: Implement and document.
23018         * tests/test-update-copyright.sh: Update.
23019
23020 2009-08-14  Jim Meyering  <meyering@redhat.com>
23021
23022         test-exclude: avoid coreutils "make check" failure
23023         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
23024         just as in test-argmatch.c.
23025
23026 2009-08-13  Eric Blake  <ebb9@byu.net>
23027
23028         test-dup2: fix bad assumption
23029         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
23030         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
23031
23032         test-version-etc: fix CRLF portability issue
23033         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
23034         recognize \r.
23035         * tests/test-argp-version-etc-1.sh: Likewise.
23036
23037         getopt: update client modules
23038         * modules/argp (Depends-on): Use getopt-gnu.
23039         * modules/git-merge-changelog (Depends-on): Likewise.
23040         * modules/long-options (Depends-on): Likewise.
23041         * modules/xstrtol (Depends-on): Likewise.
23042
23043 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23044
23045         * tests/test-version-etc.sh: Don't fail on different
23046         project/version.  Don't fail on CRLF differences.  Rewrite to use
23047         multiple -e instead of multiple sed forks, suggested by Eric Blake
23048         <ebb9@byu.net>.
23049         * tests/test-argp-version-etc-1.sh: Likewise.
23050
23051 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23052
23053         * tests/test-version-etc.sh: Don't fail on different
23054         project/version.
23055
23056 2009-08-12  Bruno Haible  <bruno@clisp.org>
23057
23058         Tests for modules 'getopt-posix', 'getopt-gnu'.
23059         * modules/getopt-posix-tests: New file.
23060         * tests/test-getopt.c: New file.
23061         * tests/test-getopt.h: New file.
23062         * tests/test-getopt_long.h: New file.
23063
23064         New modules 'getopt-posix', 'getopt-gnu'.
23065         * modules/getopt-gnu: New file, renamed from modules/getopt.
23066         * modules/getopt-posix: New file.
23067         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
23068         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
23069         (gl_GETOPT): Remove macro.
23070         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
23071         Disable the test against BSD systems that declare optreset. Test
23072         against mingw bug. Test against lack of support of optional arguments
23073         on many platforms.
23074         * doc/glibc-headers/getopt.texi: Update module name and list of
23075         relevant platforms.
23076         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
23077         'getopt-gnu' and more portability problems.
23078         * NEWS: Mention the changes.
23079
23080 2009-08-12  Bruno Haible  <bruno@clisp.org>
23081
23082         Ensure that optarg etc. get declared by <unistd.h>.
23083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
23084         AC_USE_SYSTEM_EXTENSIONS.
23085         * modules/getopt (Depends-on): Add 'extensions'.
23086
23087 2009-08-12  Bruno Haible  <bruno@clisp.org>
23088
23089         Avoid test link errors.
23090         * modules/pipe-filter-ii-tests (Makefile.am): Define
23091         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
23092         * modules/pipe-filter-gi-tests (Makefile.am): Define
23093         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
23094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23095
23096 2009-08-12  Bruno Haible  <bruno@clisp.org>
23097
23098         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
23099         gl_GETOPT_SUBSTITUTE before.
23100         (gl_GETOPT): Use it.
23101         * m4/argp.m4 (gl_ARGP): Update.
23102         Reported by Sergey Poznyakoff.
23103
23104         * m4/getopt.m4: Reorder macros.
23105         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
23106         (gl_GETOPT_SUBSTITUTE): Remove macro.
23107
23108 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23109
23110         Minor improvement in gitlog-to-changelog
23111
23112         * build-aux/gitlog-to-changelog: New option `--format' makes
23113         output format string configurable.
23114
23115 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23116
23117         Optimize exclude: use hash tables for non-wildcard patterns.
23118
23119         * lib/exclude.c: Include hash.h and mbuiter.h
23120         (struct exclude_pattern, exclude_segment): New data types.
23121         (struct exclude): Rewrite.
23122         (fnmatch_pattern_has_wildcards): New function.
23123         (new_exclude_segment, free_exclude_segment): New functions.
23124         (excluded_file_pattern_p, excluded_file_name_p): New functions.
23125         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
23126         * lib/exclude.h (is_fnmatch_pattern): New prototype.
23127         * modules/exclude: Depend on hash and mbuiter.
23128
23129         * modules/exclude-tests: New file.
23130         * tests/test-exclude.c: New file.
23131         * tests/test-exclude1.sh: New file.
23132         * tests/test-exclude2.sh: New file.
23133         * tests/test-exclude3.sh: New file.
23134         * tests/test-exclude4.sh: New file.
23135         * tests/test-exclude5.sh: New file.
23136         * tests/test-exclude6.sh: New file.
23137         * tests/test-exclude7.sh: New file.
23138
23139 2009-08-12  Bruno Haible  <bruno@clisp.org>
23140
23141         Ensure that getopt() gets declared by <unistd.h>.
23142         * lib/unistd.in.h: Conditionally include getopt.h.
23143         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
23144         Set GNULIB_UNISTD_H_GETOPT.
23145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23146         GNULIB_UNISTD_H_GETOPT.
23147         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
23148
23149 2009-08-12  Bruno Haible  <bruno@clisp.org>
23150
23151         Clarify logic.
23152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
23153         gl_replace_getopt instead of GETOPT_H.
23154
23155 2009-08-12  Bruno Haible  <bruno@clisp.org>
23156
23157         * m4/getopt.m4: Add comments.
23158
23159 2009-08-12  Bruno Haible  <bruno@clisp.org>
23160
23161         Disable multithread support by default on Cygwin 1.5.x.
23162         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
23163         set gl_use_threads=no if not specified otherwise.
23164
23165 2009-08-11  Bruno Haible  <bruno@clisp.org>
23166
23167         Avoid compilation error on NetBSD 5.0.
23168         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
23169         * tests/test-stdio.c: Likewise.
23170         * tests/test-stdlib.c: Likewise.
23171         * tests/test-string.c: Likewise.
23172         * tests/test-unistd.c: Likewise.
23173         Reported by Greg Troxel <gdt@ir.bbn.com>
23174         at <https://savannah.gnu.org/support/?106973>.
23175
23176 2009-08-11  Bruno Haible  <bruno@clisp.org>
23177
23178         * modules/dup2-tests (Depends-on): Remove close.
23179
23180         Undo 2009-07-19 commit.
23181         * modules/acl-tests (Depends-on): Remove close.
23182         * modules/binary-io-tests (Depends-on): Likewise.
23183         * modules/closein-tests (Depends-on): Likewise.
23184         * modules/flock-tests (Depends-on): Likewise.
23185         * modules/fsync-tests (Depends-on): Likewise.
23186         * modules/lseek-tests (Depends-on): Likewise.
23187         * modules/pipe-tests (Depends-on): Likewise.
23188         * modules/posix_spawn-tests (Depends-on): Likewise.
23189         * modules/posix_spawnp-tests (Depends-on): Likewise.
23190         * modules/stat-time-tests (Depends-on): Likewise.
23191         * modules/yesno-tests (Depends-on): Likewise.
23192
23193 2009-08-10  Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
23196
23197 2009-08-10  Bruno Haible  <bruno@clisp.org>
23198
23199         Fix a gcc warning.
23200         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
23201
23202 2009-08-10  Bruno Haible  <bruno@clisp.org>
23203
23204         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
23205         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
23206         not only the first time.
23207         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
23208         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
23209         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
23210         is 1, not only the the first time.
23211
23212 2009-08-10  Bruno Haible  <bruno@clisp.org>
23213
23214         Make it possible to use module 'gethostname' without module 'close'.
23215         * lib/unistd.in.h (close): Evoke a link error only if
23216         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23218         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23219         * modules/unistd (Makefile.am): Substitute
23220         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23221         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
23222         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23224         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23225         * modules/sys_ioctl (Makefile.am): Substitute
23226         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23227         * modules/socket (configure.ac): On native Windows, set
23228         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
23229         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23230         Reported by Sam Steingold <sds@gnu.org>.
23231
23232 2009-08-10  Bruno Haible  <bruno@clisp.org>
23233
23234         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
23235         * modules/ioctl (configure.ac): Likewise.
23236
23237 2009-08-10  Bruno Haible  <bruno@clisp.org>
23238
23239         Avoid collision between gnulib wrapper and libintl wrapper.
23240         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
23241         already defined in intl/printf.c.
23242         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
23243         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
23244
23245 2009-08-09  Bruno Haible  <bruno@clisp.org>
23246
23247         Make <sys/select.h> really self-contained, also on Solaris 10.
23248         * lib/sys_select.in.h: Include <string.h>.
23249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
23250         Solaris 10 problem.
23251         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
23252         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
23253         Reported by Jim Meyering.
23254
23255 2009-08-09  Bruno Haible  <bruno@clisp.org>
23256
23257         Avoid warnings from 'aclocal' that are due to a use of macro name
23258         AM_XGETTEXT_OPTION that is not defined in automake.
23259         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
23260         automake.
23261         * modules/error (configure.ac): Likewise.
23262         * modules/propername (configure.ac): Likewise.
23263         * modules/vasprintf (configure.ac): Likewise.
23264         * modules/verror (configure.ac): Likewise.
23265         * modules/xprintf (configure.ac): Likewise.
23266         * modules/xvasprintf (configure.ac): Likewise.
23267
23268 2009-08-08  Bruno Haible  <bruno@clisp.org>
23269
23270         Avoid compilation error in C++ mode.
23271         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
23272         Reported by Sam Steingold <sds@gnu.org>.
23273
23274 2009-08-08  Bruno Haible  <bruno@clisp.org>
23275
23276         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
23277         for the various Unix platforms.
23278         * doc/posix-headers/limits.texi: Update platforms list regarding
23279         HOST_NAME_MAX.
23280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23281
23282 2009-08-07  Jim Meyering  <meyering@redhat.com>
23283
23284         selinux-at: fix typo in a comment
23285         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
23286         Spotted by Paolo Bonzini.
23287
23288         selinux-at: remove redundant m4 code, add documentation
23289         * modules/selinux-at (configure.ac): Remove redundant code.
23290         LIB_SELINUX is already set via the dependent module, selinux-h.
23291         (Include): Add quotes around selinux-at.h.
23292         * lib/selinux-at.h: Add documentation.
23293         Reported by Bruno Haible in
23294         http://marc.info/?l=gnulib-bug&m=124958988300749
23295
23296 2009-08-07  Bruno Haible  <bruno@clisp.org>
23297
23298         Avoid link error on MacOS X 10.3 and 10.4.
23299         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
23300         on non-ELF systems.
23301         * lib/argp-pv.c (argp_program_version): Likewise.
23302         Reported by Simon Josefsson.
23303
23304 2009-08-07  Simon Josefsson  <simon@josefsson.org>
23305
23306         * tests/test-version-etc.sh: Use $EXEEXT.
23307
23308 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
23309
23310         update-copyright: update documentation to point to maint.mk
23311         * build-aux/update-copyright: Here.
23312
23313 2009-08-06  Jim Meyering  <meyering@redhat.com>
23314
23315         maint.mk: support update-copyright-local
23316         * top/maint.mk (update-copyright-local): Define place-holder.
23317         (update-copyright): Depend on $(update-copyright-local).
23318
23319 2009-08-06  Jim Meyering  <meyering@redhat.com>
23320
23321         selinux-at: new module
23322         Initially written for coreutils, this module will soon be
23323         used by findutils, too.
23324         * MODULES.html.sh [Misc]: Add selinux-at.
23325         * lib/selinux-at.h: New file, from coreutils.
23326         * lib/selinux-at.c: Likewise.
23327         * modules/selinux-at: Likewise.
23328         (License): Change from LGPL to GPL, since it depends
23329         on the GPL'd openat module.
23330
23331         doc: update README
23332         * README: Remove references to cogito.
23333         Remove cvs-repo-updating instructions from 2007.
23334         Don't imply that CVS is better if you have limited disk space.
23335
23336 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23337
23338         update-copyright: support C-style comments
23339         * build-aux/update-copyright: Implement and document.
23340         * tests/test-update-copyright.sh: Test.
23341
23342 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23343
23344         update-copyright: support omitted "(C)"
23345         * build-aux/update-copyright: Implement and document.  Also,
23346         allow variable whitespace before "(C)".
23347         * tests/test-update-copyright.sh: Test.
23348
23349 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23350
23351         update-copyright: don't trip on non-FSF copyright statements
23352         * build-aux/update-copyright: Fix so that the first correctly
23353         formatted FSF copyright statement is recognized no matter what
23354         appears before it.  Update documentation.
23355         * tests/test-update-copyright.sh: Test that.
23356
23357 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23358
23359         update-copyright: clean up code a little
23360         * build-aux/update-copyright: Append "_re" to the name of any
23361         variable holding a regular expression.
23362         Replace "old" and "new" with "stmt" in variable names.
23363         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
23364         handled correctly.
23365         Format code more consistently.
23366
23367 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23368
23369         update-copyright-tests: improve portability
23370         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
23371         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
23372
23373 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23374
23375         update-copyright: support @copyright{} and &copy;
23376         * build-aux/update-copyright: Implement and document.
23377         * tests/test-update-copyright.sh: Test.
23378
23379 2009-08-04  Jim Meyering  <meyering@redhat.com>
23380
23381         update-copyright-tests: correctly test EOL=\r\n handling
23382         * tests/test-update-copyright.sh: Put \r at the end of some lines
23383         for the dos-eol tests.  Based on a patch by Joel E. Denny.
23384
23385         maint.mk: make update-copyright exclusion list more configurable
23386         * top/maint.mk (update-copyright): Default to excluding COPYING,
23387         but allow an override, in case someone does want to update that file.
23388
23389         maint.mk: don't update copyright date in COPYING
23390         * top/maint.mk (update-copyright): Exclude COPYING.
23391
23392         maint.mk: add a copyright-updating rule
23393         * top/maint.mk (update-copyright): New rule.
23394         Derived from coreutils/Makefile.am.
23395
23396         update-copyright: rename some variables
23397         * build-aux/update-copyright: Rename a few variables for clarity.
23398         Tweak syntax.  List Joel E. Denny as coauthor.
23399
23400 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23401
23402         update-copyright: fix bug for 2-digit last year and add tests
23403         * build-aux/update-copyright: Fix bug.
23404         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
23405         specified.
23406         * modules/update-copyright-tests: New
23407         * tests/test-update-copyright.sh: New.
23408
23409 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23410
23411         update-copyright: handle leading tabs in line prefix
23412         * build-aux/update-copyright: Count leading tabs as 8 spaces
23413         when computing margin.  This helps with the formatting of
23414         ChangeLogs, for example.
23415         Fix documentation a little.
23416
23417 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23418
23419         update-copyright: support EOL=\r\n
23420         * build-aux/update-copyright: Implement that.
23421
23422 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23423
23424         update-copyright: automatically format copyright statements
23425         * build-aux/update-copyright: Implement that.
23426         Also, be a little more predictable and safer by always failing
23427         when the full copyright format is not perfectly recognized as an
23428         unbroken whole.  Discussed at
23429         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
23430         Rewrite documentation.
23431
23432 2009-08-03  Bruno Haible  <bruno@clisp.org>
23433
23434         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
23435
23436 2009-08-02  Bruno Haible  <bruno@clisp.org>
23437
23438         Tests for module 'uname'.
23439         * modules/uname-tests: New file.
23440         * tests/test-uname.c: New file.
23441
23442         New module 'uname'.
23443         * lib/uname.c: New file.
23444         * m4/uname.m4: New file.
23445         * modules/uname: New file.
23446         * doc/posix-functions/uname.texi: Mention the new module.
23447
23448 2009-08-02  Bruno Haible  <bruno@clisp.org>
23449
23450         Tests for module 'sys_utsname'.
23451         * modules/sys_utsname-tests: New file.
23452         * tests/test-sys_utsname.c: New file.
23453
23454         New module 'sys_utsname'.
23455         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
23456         * m4/sys_utsname_h.m4: New file.
23457         * modules/sys_utsname: New file.
23458         * doc/posix-headers/sys_utsname.texi: Mention the new module.
23459
23460 2009-08-02  Bruno Haible  <bruno@clisp.org>
23461
23462         Implicitly initialize the sockets library.
23463         * lib/gethostname.c: Include sockets.h.
23464         (rpl_gethostname): Invoke gl_sockets_startup.
23465         * lib/socket.c: Include sockets.h.
23466         (rpl_socket): Invoke gl_sockets_startup.
23467         * modules/gethostname (Depends-on): Add sockets.
23468         * modules/socket (Depends-on): Likewise.
23469         * tests/test-poll.c: Don't include sockets.h.
23470         (main): Don't invoke gl_sockets_startup.
23471         * tests/test-select.c: Don't include sockets.h.
23472         (main): Don't invoke gl_sockets_startup.
23473
23474 2009-08-02  Bruno Haible  <bruno@clisp.org>
23475
23476         Allow multiple calls to gl_sockets_startup.
23477         * lib/sockets.c (initialized_sockets_version): New variable.
23478         (gl_sockets_startup): Do nothing if already called for this or a higher
23479         version.
23480         (gl_sockets_cleanup): Reset initialized_sockets_version.
23481
23482 2009-08-03  Simon Josefsson  <simon@josefsson.org>
23483
23484         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
23485         different project/version.
23486
23487 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
23488             Bruno Haible  <bruno@clisp.org>
23489
23490         Tests for module 'pipe-filter-gi'.
23491         * modules/pipe-filter-gi-tests: New file.
23492         * tests/test-pipe-filter-gi1.sh: New file.
23493         * tests/test-pipe-filter-gi1.c: New file.
23494         * tests/test-pipe-filter-gi2.sh: New file.
23495         * tests/test-pipe-filter-gi2-main.c: New file.
23496         * tests/test-pipe-filter-gi2-child.c: New file.
23497
23498         New module 'pipe-filter-gi'.
23499         * lib/pipe-filter-gi.c: New file.
23500         * modules/pipe-filter-gi: New file.
23501
23502 2009-08-02  Bruno Haible  <bruno@clisp.org>
23503             Paolo Bonzini  <bonzini@gnu.org>
23504
23505         Tests for module 'pipe-filter-ii'.
23506         * modules/pipe-filter-ii-tests: New file.
23507         * tests/test-pipe-filter-ii1.sh: New file.
23508         * tests/test-pipe-filter-ii1.c: New file.
23509         * tests/test-pipe-filter-ii2.sh: New file.
23510         * tests/test-pipe-filter-ii2-main.c: New file.
23511         * tests/test-pipe-filter-ii2-child.c: New file.
23512
23513         New module 'pipe-filter-ii'.
23514         * lib/pipe-filter.h: New file.
23515         * lib/pipe-filter-ii.c: New file.
23516         * lib/pipe-filter-aux.h: New file.
23517         * modules/pipe-filter-ii: New file.
23518
23519 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23520
23521         * lib/gc-libgcrypt.c: Change copyright to FSF.
23522         * lib/gc-gnulib.c: Likewise.
23523
23524 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
23525
23526         * lib/gethostname.c: Include limits.h.
23527
23528 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23529             Bruno Haible  <bruno@clisp.org>
23530
23531         Ensure HOST_NAME_MAX as part of the gethostname module.
23532         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
23533         define also HOST_NAME_MAX.
23534         * tests/test-gethostname.c: Include <limits.h>.
23535         (main): Check also HOST_NAME_MAX.
23536         * doc/posix-headers/limits.texi: Document the mingw problem.
23537
23538 2009-08-02  Bruno Haible  <bruno@clisp.org>
23539
23540         * lib/gethostname.c (gethostname): Fix handling of large len argument.
23541         Add comments.
23542
23543 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23544
23545         * lib/gethostname.c: Add Windows wrapper.
23546         * m4/gethostname.m4: Look for gethostname in -lws2_32.
23547         * modules/gethostname: Depend on sys_socket & errno, for also
23548         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
23549         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
23550
23551 2009-07-31  Jim Meyering  <meyering@redhat.com>
23552
23553         getloadavg: fix symbol name in comment
23554         * lib/getloadavg.c: Correct a typo I introduced when adding
23555         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
23556         Matt Kraai spotted the problem.
23557
23558 2009-07-29  Matt Kraai  <mkraai@beckman.com>
23559
23560         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
23561         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
23562         code also if ! defined N_NAME_POINTER.
23563         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
23564         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
23565         but the n_name member is a 12-byte array.
23566
23567 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
23568
23569         update-copyright: generalize comment handling
23570         * build-aux/update-copyright: Handle copyright statements
23571         within more comment styles.
23572         Document usage.
23573         Report any file with an external copyright holder or parse failure.
23574
23575 2009-07-29  Jim Meyering  <meyering@redhat.com>
23576
23577         mktime: correct setting of REPLACE_MKTIME
23578         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
23579
23580         update-copyright: new module
23581         * modules/update-copyright: New file.
23582         * build-aux/update-copyright: New file.
23583         * MODULES.html.sh (maint+release support): Add update-copyright.
23584
23585 2009-07-27  Bruno Haible  <bruno@clisp.org>
23586
23587         Fix compilation error when <ctime> is used and mktime is replaced.
23588         * lib/time.in.h (mktime): New declaration.
23589         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
23590         REPLACE_MKTIME instead of defining mktime in config.h.
23591         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
23592         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
23593         Reported by Ross McFarland <rwmcfa1@neces.com>.
23594
23595 2009-07-27  Bruno Haible  <bruno@clisp.org>
23596
23597         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
23598         Reported by Matt Kraai <mkraai@beckman.com>.
23599
23600 2009-07-25  Jim Meyering  <meyering@redhat.com>
23601
23602         maint.mk: avoid warnings about missing files
23603         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
23604         diagnostic when .prev-version does not exist.
23605         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
23606         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
23607         nonexistent cfg.mk.
23608         Suggestions from Simon Josefsson.
23609
23610 2009-07-25  Bruno Haible  <bruno@clisp.org>
23611
23612         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
23613         defined as macros. Needed on QNX 6.4.1.
23614         Reported by Matt Kraai <mkraai@beckman.com>.
23615
23616 2009-07-23  Jim Meyering  <meyering@redhat.com>
23617
23618         maint.mk: invoke "make dist" with a working value of XZ_OPT
23619         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
23620
23621 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
23622
23623         Make fseeko.c compile on QNX.
23624         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
23625
23626 2009-07-22  Peter Simons  <simons@cryp.to>
23627
23628         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
23629         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
23630         * lib/md4.h: Likewise.
23631         * lib/md5.h: Likewise.
23632         * lib/sha1.h: Likewise.
23633         * lib/sha256.h: Likewise.
23634         * lib/sha512.h: Likewise.
23635
23636         tests-sha1: don't assign literal string to 'char *' variable
23637         * tests/test-sha1.c (main): Declare locals with "const" to match
23638         attributes of the right hand side.
23639
23640 2009-07-21  Eric Blake  <ebb9@byu.net>
23641
23642         dup2: fix more mingw problems
23643         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
23644         fd to itself.
23645         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23646         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
23647         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
23648         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
23649         care of mingw bugs.
23650
23651 2009-07-21  Jim Meyering  <meyering@redhat.com>
23652
23653         vc-list-files: avoid failure when /bin/sh is dash
23654         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
23655         On some Debian based systems, /bin/sh is a symlink to dash, and running
23656         this command would omit the "/" following each 'tests' prefix:
23657           dash -x build-aux/vc-list-files -C . tests
23658         That is because bash and dash work differently:
23659           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
23660           bash ok
23661           dash odd
23662
23663 2009-07-21  Eric Blake  <ebb9@byu.net>
23664
23665         dup2-tests: test previous patch
23666         * modules/dup2-tests: New file.
23667         * tests/test-dup2.c: Likewise.
23668         * tests/test-open.c (main): Avoid unspecified behavior.
23669         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
23670         test.
23671
23672         dup2: work around mingw and cygwin 1.5 bug
23673         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
23674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23675         * modules/unistd (Makefile.am): Substitute it.
23676         * lib/unistd.in.h (dup2): Declare the replacement.
23677         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
23678         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
23679         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
23680         * modules/execute (Depends-on): Add dup2.
23681         * modules/fseterr (Depends-on): Likewise.
23682         * modules/pipe (Depends-on): Likewise.
23683         * modules/posix_spawn-internal (Depends-on): Likewise.
23684
23685 2009-07-21  Bruno Haible  <bruno@clisp.org>
23686
23687         * modules/.gitattributes: New file.
23688
23689 2009-07-20  Bruno Haible  <bruno@clisp.org>
23690
23691         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
23692         (main): Use it.
23693
23694 2009-07-20  Eric Blake  <ebb9@byu.net>
23695
23696         test-pipe: make a bit more robust.
23697         * tests/test-pipe.c (myerr): Allow error messages regardless of
23698         what we do to stderr.
23699         (test_pipe): Rearrange to avoid deadlock.
23700         (child_main): Try a larger read, to ensure we avoided deadlock.
23701         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
23702         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
23703         if misused.
23704
23705 2009-07-19  Jim Meyering  <meyering@redhat.com>
23706
23707         fts: avoid false-positive cycle-detection
23708         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23709         for each new command line argument.
23710
23711 2009-07-19  Bruno Haible  <bruno@clisp.org>
23712
23713         Fix build error on mingw with the modules sys_select and unistd.
23714         * modules/acl-tests (Depends-on): Add close.
23715         * modules/binary-io-tests (Depends-on): Likewise.
23716         * modules/closein-tests (Depends-on): Likewise.
23717         * modules/flock-tests (Depends-on): Likewise.
23718         * modules/fsync-tests (Depends-on): Likewise.
23719         * modules/lseek-tests (Depends-on): Likewise.
23720         * modules/pipe-tests (Depends-on): Likewise.
23721         * modules/posix_spawn-tests (Depends-on): Likewise.
23722         * modules/posix_spawnp-tests (Depends-on): Likewise.
23723         * modules/stat-time-tests (Depends-on): Likewise.
23724         * modules/yesno-tests (Depends-on): Likewise.
23725
23726 2009-07-19  Bruno Haible  <bruno@clisp.org>
23727
23728         Unify conditionals.
23729         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23730         macros, not at the compiler macros.
23731         * lib/pipe.c: Likewise.
23732         * lib/execute.c: Likewise.
23733         * lib/spawni.c: Likewise.
23734
23735 2009-07-19  Bruno Haible  <bruno@clisp.org>
23736
23737         Fix handling of closed stdin/stdout/stderr on mingw.
23738         * lib/w32spawn.h: Include unistd.h.
23739         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23740         file descriptor with O_NOINHERIT flag.
23741         (fd_safer_noinherit): New function, based on fd-safer.c.
23742         (dup_safer_noinherit): New function, based on dup-safer.c.
23743         (undup_safer_noinherit): New function.
23744         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23745         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23746         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23747         instead of fd_safer.
23748         * tests/test-pipe.c: Include <windows.h>.
23749         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23750
23751         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23752         from main.
23753         (test_pipe): Pass an extra argument for disambiguation.
23754         (main): Invoke parent_main or child_main.
23755
23756         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23757         consistently.
23758
23759 2009-07-18  Eric Blake  <ebb9@byu.net>
23760
23761         test-pipe: fix mingw build
23762         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23763
23764 2009-07-18  Bruno Haible  <bruno@clisp.org>
23765
23766         * modules/pipe-tests (Makefile.am): Fix typo.
23767
23768 2009-07-18  Eric Blake  <ebb9@byu.net>
23769
23770         error: fix mingw build
23771         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23772         Reported by Bruno Haible.
23773
23774         error: avoid undefined use of stdout
23775         * lib/error.c (error, error_at_line): Check that fd 1 is open
23776         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23777         is handling faults and the close_stdout module wants to report the
23778         detection of closed stdout as an error.
23779
23780 2009-07-17  Eric Blake  <ebb9@byu.net>
23781
23782         pipe: be robust in face of closed fds
23783         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23784         should cause child to misbehave.
23785         * modules/pipe-tests: New module.
23786         * tests/test-pipe.c: New file.
23787         * tests/test-pipe.sh: New file.
23788         Reported by Akim Demaille.
23789
23790 2009-07-14  Bruno Haible  <bruno@clisp.org>
23791
23792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23793         Reported by anonymous kc.
23794
23795 2009-07-07  Jim Meyering  <meyering@redhat.com>
23796
23797         maint.mk: don't look for translatable strings in *.m4 or *.mk
23798         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23799         when searching for translatable strings.
23800
23801 2009-07-05  Jim Meyering  <meyering@redhat.com>
23802
23803         remove superfluous parentheses in STREQ definition
23804         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23805         * lib/getugroups.c (STREQ): Likewise.
23806         * lib/fnmatch.c (STREQ): Likewise.
23807         Spotted by Bruno Haible.
23808
23809 2009-07-04  Jim Meyering  <meyering@redhat.com>
23810
23811         argv-iter: new module
23812         * MODULES.html.sh: Add argv-iter.
23813         * lib/argv-iter.c, lib/argv-iter.h: New files.
23814         * modules/argv-iter: New file.
23815         * modules/argv-iter-tests: New file.
23816         * tests/test-argv-iter.c: Test it.
23817
23818 2009-07-04  Bruno Haible  <bruno@clisp.org>
23819
23820         Fix assertion.
23821         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23822         contains more exact copies of a given entry than file2, leave the extra
23823         copies unpaired rather than aborting.
23824         Reported by Eric Blake.
23825
23826 2009-07-02  Bruno Haible  <bruno@clisp.org>
23827
23828         Speedup git-merge-changelog for git cherry-pick.
23829         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23830         (entries_mapping_get): New function, extracted from compute_mapping.
23831         (entries_mapping_reverse_get): New function.
23832         (compute_mapping): Add a 'full' argument. Return the result in a
23833         'struct entries_mapping'.
23834         (main): Update. Access the mappings through entries_mapping_get.
23835         Reported by Eric Blake.
23836
23837 2009-07-02  Bruno Haible  <bruno@clisp.org>
23838
23839         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23840         best_i.
23841
23842 2009-07-02  Bruno Haible  <bruno@clisp.org>
23843
23844         Speed up approximate search for matching ChangeLog entries.
23845         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23846         argument. Call fstrcmp_bounded instead of fstrcmp.
23847         (compute_mapping, try_split_merged_entry, main): Update callers.
23848
23849 2009-07-02  Bruno Haible  <bruno@clisp.org>
23850
23851         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23852
23853 2009-06-30  Bruno Haible  <bruno@clisp.org>
23854
23855         Reduce the number of uc_is_cased calls.
23856         * lib/unicase.h (casing_suffix_context_t): Add
23857         'first_char_except_ignorable' field.
23858         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23859         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23860         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23861         Update initializer.
23862         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23863         case-ignorable characters.
23864         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23865         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23866         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23867         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23868         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23869
23870 2009-06-30  Bruno Haible  <bruno@clisp.org>
23871
23872         Tests for module 'unicase/ignorable'.
23873         * modules/unicase/ignorable-tests: New file.
23874         * tests/unicase/test-ignorable.c: New file, generated by
23875         gen-uni-tables.
23876
23877         Tests for module 'unicase/cased'.
23878         * modules/unicase/cased-tests: New file.
23879         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23880         * tests/unicase/test-predicate-part1.h: New file, derived from
23881         tests/unictype/test-predicate-part1.h.
23882         * tests/unicase/test-predicate-part2.h: New file, same as
23883         tests/unictype/test-predicate-part2.h.
23884
23885         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23886         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23887         (output_casing_properties): New function.
23888         (main): Call it.
23889         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23890         * lib/unicase/cased.c: Include unictype/bitmap.h.
23891         (uc_is_cased): Define through a bitmap lookup.
23892         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23893         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23894         (uc_is_case_ignorable): Define through a bitmap lookup.
23895         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23896         lib/unictype/bitmap.h.
23897         (Depends-on): Add inline. Clean up.
23898         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23899         lib/unictype/bitmap.h.
23900         (Depends-on): Add inline. Clean up.
23901         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23902         recognition.
23903         * tests/unicase/test-u16-tolower.c (main): Likewise.
23904         * tests/unicase/test-u32-tolower.c (main): Likewise.
23905
23906 2009-06-30  Bruno Haible  <bruno@clisp.org>
23907
23908         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23909         * lib/unicase/u16-casemap.c: Likewise.
23910         * lib/unicase/u32-casemap.c: Likewise.
23911
23912 2009-06-29  Bruno Haible  <bruno@clisp.org>
23913
23914         Define u32_casefold as a wrapper around u32_ct_casefold.
23915         * lib/unicase/u32-casefold.c: Update.
23916         * modules/unicase/u32-casefold (Depends-on): Add
23917         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23918         unicase/empty-suffix-context. Clean up.
23919
23920         Define u16_casefold as a wrapper around u16_ct_casefold.
23921         * lib/unicase/u16-casefold.c: Update.
23922         * modules/unicase/u16-casefold (Depends-on): Add
23923         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23924         unicase/empty-suffix-context. Clean up.
23925
23926         Define u8_casefold as a wrapper around u8_ct_casefold.
23927         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23928         * lib/unicase/u8-casefold.c: Update.
23929         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23930         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23931
23932         Define u32_totitle as a wrapper around u32_ct_totitle.
23933         * lib/unicase/u32-totitle.c: Update.
23934         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23935         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23936
23937         Define u16_totitle as a wrapper around u16_ct_totitle.
23938         * lib/unicase/u16-totitle.c: Update.
23939         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23940         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23941
23942         Define u8_totitle as a wrapper around u8_ct_totitle.
23943         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23944         functions.
23945         (FUNC): Delegate to U_CT_TOTITLE.
23946         * lib/unicase/u8-totitle.c: Update.
23947         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23948         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23949
23950         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23951         invocation.
23952         * modules/unicase/u32-tolower (Depends-on): Add
23953         unicase/empty-prefix-context, unicase/empty-suffix-context.
23954
23955         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23956         invocation.
23957         * modules/unicase/u16-tolower (Depends-on): Add
23958         unicase/empty-prefix-context, unicase/empty-suffix-context.
23959
23960         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23961         * modules/unicase/u8-tolower (Depends-on): Add
23962         unicase/empty-prefix-context, unicase/empty-suffix-context.
23963
23964         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23965         invocation.
23966         * modules/unicase/u32-toupper (Depends-on): Add
23967         unicase/empty-prefix-context, unicase/empty-suffix-context.
23968
23969         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
23970         invocation.
23971         * modules/unicase/u16-toupper (Depends-on): Add
23972         unicase/empty-prefix-context, unicase/empty-suffix-context.
23973
23974         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
23975         * modules/unicase/u8-toupper (Depends-on): Add
23976         unicase/empty-prefix-context, unicase/empty-suffix-context.
23977
23978         New module 'unicase/u32-ct-casefold'.
23979         * lib/unicase/u32-ct-casefold.c: New file.
23980         * modules/unicase/u32-ct-casefold: New file.
23981
23982         New module 'unicase/u16-ct-casefold'.
23983         * lib/unicase/u16-ct-casefold.c: New file.
23984         * modules/unicase/u16-ct-casefold: New file.
23985
23986         New module 'unicase/u8-ct-casefold'.
23987         * lib/unicase/u8-ct-casefold.c: New file.
23988         * lib/unicase/u-ct-casefold.h: New file, derived from
23989         lib/unicase/u-casefold.h.
23990         * modules/unicase/u8-ct-casefold: New file.
23991
23992         New module 'unicase/u32-ct-totitle'.
23993         * lib/unicase/u32-ct-totitle.c: New file.
23994         * modules/unicase/u32-ct-totitle: New file.
23995
23996         New module 'unicase/u16-ct-totitle'.
23997         * lib/unicase/u16-ct-totitle.c: New file.
23998         * modules/unicase/u16-ct-totitle: New file.
23999
24000         New module 'unicase/u8-ct-totitle'.
24001         * lib/unicase/u8-ct-totitle.c: New file.
24002         * lib/unicase/u-ct-totitle.h: New file, derived from
24003         lib/unicase/u-totitle.h.
24004         * modules/unicase/u8-ct-totitle: New file.
24005
24006         New module 'unicase/u32-ct-tolower'.
24007         * lib/unicase/u32-ct-tolower.c: New file.
24008         * modules/unicase/u32-ct-tolower: New file.
24009
24010         New module 'unicase/u16-ct-tolower'.
24011         * lib/unicase/u16-ct-tolower.c: New file.
24012         * modules/unicase/u16-ct-tolower: New file.
24013
24014         New module 'unicase/u8-ct-tolower'.
24015         * lib/unicase/u8-ct-tolower.c: New file.
24016         * modules/unicase/u8-ct-tolower: New file.
24017
24018         New module 'unicase/u32-ct-toupper'.
24019         * lib/unicase/u32-ct-toupper.c: New file.
24020         * modules/unicase/u32-ct-toupper: New file.
24021
24022         New module 'unicase/u16-ct-toupper'.
24023         * lib/unicase/u16-ct-toupper.c: New file.
24024         * modules/unicase/u16-ct-toupper: New file.
24025
24026         New module 'unicase/u8-ct-toupper'.
24027         * lib/unicase/u8-ct-toupper.c: New file.
24028         * modules/unicase/u8-ct-toupper: New file.
24029
24030         Add context arguments to u*_casemap functions.
24031         * lib/unicase/unicasemap.h: Include unicase.h.
24032         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
24033         suffix_context arguments.
24034         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
24035         functions.
24036         (FUNC): Add prefix_context and suffix_context arguments. Use
24037         uc_is_cased and uc_is_case_ignorable.
24038         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
24039         * lib/unicase/u16-casemap.c: Likewise.
24040         * lib/unicase/u32-casemap.c: Likewise.
24041         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
24042         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24043         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
24044         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24045         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
24046         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24047
24048         New module 'unicase/u32-suffix-context'.
24049         * lib/unicase/u32-suffix-context.c: New file.
24050         * modules/unicase/u32-suffix-context: New file.
24051
24052         New module 'unicase/u16-suffix-context'.
24053         * lib/unicase/u16-suffix-context.c: New file.
24054         * modules/unicase/u16-suffix-context: New file.
24055
24056         New module 'unicase/u8-suffix-context'.
24057         * lib/unicase/u8-suffix-context.c: New file.
24058         * lib/unicase/u-suffix-context.h: New file.
24059         * modules/unicase/u8-suffix-context: New file.
24060
24061         New module 'unicase/empty-suffix-context'.
24062         * lib/unicase/empty-suffix-context.c: New file.
24063         * modules/unicase/empty-suffix-context: New file.
24064
24065         New module 'unicase/u32-prefix-context'.
24066         * lib/unicase/u32-prefix-context.c: New file.
24067         * modules/unicase/u32-prefix-context: New file.
24068
24069         New module 'unicase/u16-prefix-context'.
24070         * lib/unicase/u16-prefix-context.c: New file.
24071         * modules/unicase/u16-prefix-context: New file.
24072
24073         New module 'unicase/u8-prefix-context'.
24074         * lib/unicase/u8-prefix-context.c: New file.
24075         * lib/unicase/u-prefix-context.h: New file.
24076         * lib/unicase/context.h: New file.
24077         * modules/unicase/u8-prefix-context: New file.
24078
24079         New module 'unicase/empty-prefix-context'.
24080         * lib/unicase/empty-prefix-context.c: New file.
24081         * modules/unicase/empty-prefix-context: New file.
24082
24083         New module 'unicase/ignorable'.
24084         * lib/unicase/ignorable.c: New file.
24085         * modules/unicase/ignorable: New file.
24086
24087         New module 'unicase/cased'.
24088         * lib/unicase/caseprop.h: New file.
24089         * lib/unicase/cased.c: New file.
24090         * modules/unicase/cased: New file.
24091
24092         New functions for case mapping of substrings.
24093         * lib/unicase.h (casing_prefix_context_t): New type.
24094         (unicase_empty_prefix_context): New variable.
24095         (u8_casing_prefix_context, u16_casing_prefix_context,
24096         u32_casing_prefix_context, u8_casing_prefixes_context,
24097         u16_casing_prefixes_context, u32_casing_prefixes_context): New
24098         declarations.
24099         (casing_suffix_context_t): New type.
24100         (unicase_empty_suffix_context): New variable.
24101         (u8_casing_suffix_context, u16_casing_suffix_context,
24102         u32_casing_suffix_context, u8_casing_suffixes_context,
24103         u16_casing_suffixes_context, u32_casing_suffixes_context,
24104         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
24105         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
24106         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
24107         declarations.
24108
24109 2009-06-28  Jim Meyering  <meyering@redhat.com>
24110
24111         boostrap: indent only with spaces
24112         * build-aux/bootstrap: Indent only with spaces, never TABs.
24113
24114         bootstrap: split long lines
24115         * build-aux/bootstrap: Keep line length < 80.
24116
24117         bootstrap: sync from coreutils
24118         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
24119         just as autoreconf does.  Verify a list of prerequisite
24120         package-name,version-number pairs if defined in bootstrap.conf.
24121         Refer to README-prereq, if prerequisites are not satisfied.
24122
24123 2009-06-27  Eric Blake  <ebb9@byu.net>
24124
24125         tests: add test for bogus NULL definition
24126         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
24127         * tests/test-stdlib.c: Likewise.
24128         * tests/test-string.c: Likewise.
24129         * tests/test-locale.c: Likewise.
24130         * tests/test-unistd.c: Likewise.
24131         * modules/stdio-tests (Depends-on): Add verify.
24132         * modules/stdlib-tests (Depends-on): Likewise.
24133         * modules/string-tests (Depends-on): Likewise.
24134         * modules/locale-tests (Depends-on): Likewise.
24135         * modules/unistd-tests (Depends-on): Likewise.
24136
24137 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
24138
24139         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
24140         self-explaining comment.
24141         * m4/selinux-selinux-h: Update serial.
24142         (gl_LIBSELINUX): New macro, adding a warning for missing development
24143         packages to code extracted from...
24144         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
24145         Add warning for missing development packages here, too.
24146
24147 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
24148
24149         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
24150
24151 2009-06-25  Eric Blake  <ebb9@byu.net>
24152
24153         version-etc: fix regression
24154         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
24155         gcc.
24156         (version_etc): Use it, to catch bugs with trailing NULL.
24157         * lib/version-etc.c (version_etc_arn): Delete unused argument.
24158         (version_etc_va): Fix logic bug.
24159         * modules/version-etc-tests: Add test.
24160         * tests/test-version-etc.c: New file.
24161         * tests/test-version-etc.sh: Likewise.
24162
24163 2009-06-25  Sam Steingold  <sds@gnu.org>
24164
24165         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
24166         mbtowc declaration.
24167
24168 2009-06-25  Eric Blake  <ebb9@byu.net>
24169
24170         fpurge: migrate into <stdio.h>
24171         * lib/fpurge.h: Delete...
24172         * lib/stdio.in.h (fpurge): ...and declare here, instead.
24173         * lib/fpurge.c (fpurge): Change declaring header.
24174         * modules/fpurge (Files): Drop deleted file.
24175         (Depends-on): Add stdio.
24176         (configure.ac): Set witness.
24177         * modules/stdio (Makefile.am): Support fpurge macros.
24178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24179         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
24180         * lib/fflush.c: Update client.
24181         * tests/test-fpurge.c: Likewise.
24182         * NEWS: Mention the change.
24183
24184 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24185
24186         * lib/argp-version-etc.c (program_authors): Add const
24187         qualifier.
24188         * lib/version-etc.c: Fix typos in the comments.
24189         * modules/argp-version-etc: Depends on version-etc.
24190
24191 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24192
24193         argp-version-etc: new module.
24194
24195         * lib/argp-version-etc.c: New file.
24196         * lib/argp-version-etc.h: New file.
24197         * modules/argp-version-etc: New file.
24198         * modules/argp-version-etc-tests: New file.
24199         * tests/test-argp-version-etc.c: New test.
24200         * tests/test-argp-version-etc-1.sh: New test.
24201
24202 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24203
24204         Provide additional interfaces and documentation for version-etc
24205         module.
24206
24207         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
24208         interfaces.
24209         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
24210         prototypes.
24211
24212 2009-06-24  Bruno Haible  <bruno@clisp.org>
24213
24214         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
24215         HAVE_LIB${NAME} macro.
24216         Reported by Sam Steingold <sds@gnu.org>.
24217
24218 2009-06-23  Simon Josefsson  <simon@josefsson.org>
24219
24220         * modules/hash-tests (test_hash_LDADD): Link to libintl when
24221         needed.
24222
24223 2009-06-21  Bruno Haible  <bruno@clisp.org>
24224
24225         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
24226         work.
24227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
24228         together with LIB${NAME}, LTLIB${NAME}.
24229         Reported by Sam Steingold <sds@gnu.org>.
24230
24231 2009-06-20  Jim Meyering  <meyering@redhat.com>
24232
24233         tests: make sc_require_test_exit_idiom more generic
24234         * top/maint.mk (Exit_witness_file): New overridable variable.
24235         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
24236         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
24237
24238 2009-06-19  Jim Meyering  <meyering@redhat.com>
24239
24240         hash: reverse order of src/dst parameters in an internal interface
24241         * lib/hash.c (transfer_entries): Reverse order of parameters to
24242         put DST before SRC.  Adjust callers.
24243
24244         tests: test-hash: avoid wholesale duplication
24245         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
24246         Instead, use a loop and add a single conditional.
24247
24248         tests: test-hash: allow seed selection via a command line argument
24249         * tests/test-hash.c (get_seed): New function.
24250         (main): Use it.
24251
24252 2009-06-19  Eric Blake  <ebb9@byu.net>
24253
24254         hash: avoid memory leak on allocation failure
24255         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
24256         failure.  Factor repeated algorithm...
24257         (transfer_entries): ...into new helper routine.
24258         (hash_delete): React to hash_rehash return value.
24259
24260         hash: reduce memory pressure in hash_rehash no-op case
24261         * lib/hash.c (next_prime): Avoid overflow.
24262         (hash_initialize): Factor bucket size computation...
24263         (compute_bucket_size): ...into new helper function.
24264         (hash_rehash): Use new function and open coding to reduce memory
24265         pressure, and avoid a memory leak in USE_OBSTACK code.
24266         Reported by Jim Meyering.
24267
24268 2009-06-18  Eric Blake  <ebb9@byu.net>
24269
24270         hash: make rotation more obvious
24271         * modules/hash (Depends-on): Add bitrotate and stdint.
24272         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
24273         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
24274         (SIZE_MAX): Rely on headers for definition.
24275         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
24276         (raw_hasher): Use rotr_sz.
24277         Suggested by Jim Meyering.
24278
24279         hash: fix memory leak in last patch
24280         * lib/hash.c (hash_rehash): Avoid memory leak.
24281
24282         hash: avoid no-op rehashing
24283         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
24284
24285         hash: provide default callback functions
24286         * lib/hash.c (raw_hasher, raw_comparator): New functions.
24287         (hash_initialize): Use them as defaults.
24288         * tests/test-hash.c (main): Test this.
24289
24290         hash: minor optimization
24291         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
24292         when possible.
24293         (hash_initialize): Document this promise.
24294         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
24295         * tests/test-hash.c (hash_compare_strings): Test this.
24296
24297 2009-06-18  Bruno Haible  <bruno@clisp.org>
24298
24299         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
24300         going to be replaced anyway.
24301
24302 2009-06-18  Bruno Haible  <bruno@clisp.org>
24303
24304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
24305         in one place.
24306         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
24307         be replaced anyway.
24308
24309 2009-06-18  Eric Blake  <ebb9@byu.net>
24310
24311         hash: check for resize before insertion
24312         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
24313         threshold before insertion, so that a pathological hash_rehash
24314         that fills every bucket can still trigger another rehash.
24315
24316 2009-06-18  Jim Meyering  <meyering@redhat.com>
24317
24318         hash-tests: add a loop around the small tests
24319         * tests/test-hash.c (main): Repeat small tests with selected
24320         small initial table sizes.
24321
24322 2009-06-17  Eric Blake  <ebb9@byu.net>
24323
24324         hash: minor cleanups
24325         * lib/hash.h (hash_entry): Make opaque, by moving...
24326         * lib/hash.c (hash_entry): ...here.
24327         (hash_insert): Clarify restrictions on what can be inserted.
24328         (hash_get_next): Clarify when it is safe to remove an element
24329         during traversal.
24330         (check_tuning): Skip verification when tuning is known safe.
24331         (hash_initialize): Clarify restrictions on tuning.
24332
24333 2009-06-17  Jim Meyering  <jim@meyering.net>
24334         and Eric Blake  <ebb9@byu.net>
24335
24336         hash-tests: new module
24337         * modules/hash-tests: New file.
24338         * tests/test-hash.c: New file.
24339
24340 2009-06-17  Eric Blake  <ebb9@byu.net>
24341
24342         strstr-simple: document new module
24343         * MODULES.html.sh: Document new module.
24344
24345         strstr, strcasestr: replace on platforms with broken memchr
24346         * modules/strstr: Split into...
24347         * modules/strstr-simple: ...new module that does not care about
24348         performance, but does care about glibc bug.
24349         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
24350         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
24351         if platform memchr is broken, per Debian bug 521737.
24352         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
24353         memchr.
24354         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
24355         * doc/posix-functions/strstr.texi (strstr): Document the fix.
24356         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24357         * modules/mountlist (Depends-on): Add strstr-simple.
24358         * modules/gen-uni-tables (Depends-on): Likewise.
24359         * modules/argz (Depends-on): Add strstr.
24360
24361 2009-06-17  Bruno Haible  <bruno@clisp.org>
24362
24363         * modules/posix_spawn-internal (Depends-on): Add errno.
24364
24365 2009-06-17  Bruno Haible  <bruno@clisp.org>
24366
24367         Define missing ESTALE on Interix 3.5.
24368         * lib/errno.in.h (ESTALE): Assign a value if missing.
24369         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
24370         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
24371         missing.
24372         * doc/posix-headers/errno.texi: Mention the Interix bug.
24373         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
24374
24375 2009-06-15  Eric Blake  <ebb9@byu.net>
24376
24377         memchr, memchr2: add valgrind exception
24378         * lib/memchr.valgrind: New file.
24379         * lib/memchr2.valgrind: New file.
24380         * modules/memchr (Files): Distribute valgrind file.
24381         * modules/memchr2 (Files): Likewise.
24382
24383         docs: memchr is no longer obsolete
24384         * MODULES.html.sh: Move memchr from obsolete to string.h section.
24385         * lib/string.in.h (memchr): Simplify logic.
24386
24387 2009-06-14  Jim Meyering  <meyering@redhat.com>
24388
24389         link-follow: fix the "checking..." message to not mention trailing slash
24390         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
24391         never considered trailing slashes.
24392
24393 2009-06-14  Bruno Haible  <bruno@clisp.org>
24394
24395         * m4/memchr.m4: Mention also the bug on IA-64.
24396         * doc/posix-functions/memchr.texi: Likewise.
24397
24398 2009-06-12  Eric Blake  <ebb9@byu.net>
24399
24400         memchr: detect broken x86_64 and alpha implementations
24401         * modules/memchr-tests (Depends-on): Move mmap detection...
24402         * modules/memchr (Depends-on): ...here.
24403         (configure.ac): Set indicator.
24404         * lib/string.in.h (memchr): Declare replacement.
24405         * modules/string (Makefile.am): Trigger replacement.
24406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24407         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
24408         bugs.
24409         * doc/posix-functions/memchr.texi (memchr): Document the bug.
24410         * modules/getpagesize (License): Relax license.
24411
24412 2009-06-11  Bruno Haible  <bruno@clisp.org>
24413
24414         * lib/idpriv.h: Add more references.
24415
24416 2009-06-08  Bruno Haible  <bruno@clisp.org>
24417
24418         Tests for module 'idpriv-droptemp'.
24419         * modules/idpriv-droptemp-tests: New file.
24420         * tests/test-idpriv-droptemp.sh: New file.
24421         * tests/test-idpriv-droptemp.su.sh: New file.
24422         * tests/test-idpriv-droptemp.c: New file.
24423
24424         New module 'idpriv-droptemp'.
24425         * lib/idpriv-droptemp.c: New file.
24426         * modules/idpriv-droptemp: New file.
24427
24428 2009-06-08  Bruno Haible  <bruno@clisp.org>
24429
24430         Tests for module 'idpriv-drop'.
24431         * modules/idpriv-drop-tests: New file.
24432         * tests/test-idpriv-drop.sh: New file.
24433         * tests/test-idpriv-drop.su.sh: New file.
24434         * tests/test-idpriv-drop.c: New file.
24435
24436         New module 'idpriv-drop'.
24437         * lib/idpriv.h: New file.
24438         * lib-idpriv-drop.c: New file.
24439         * m4/idpriv.m4: New file.
24440         * modules/idpriv-drop: New file.
24441
24442 2009-06-08  Bruno Haible  <bruno@clisp.org>
24443
24444         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
24445         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24446         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24447         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24448         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24449         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24450         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24451
24452 2009-06-08  Eric Blake  <ebb9@byu.net>
24453
24454         test-strstr: use memory fence, when possible
24455         * tests/test-strstr.c (main): Use memory fence, in order to be
24456         more likely to trigger Debian bug 521737.
24457         * modules/strstr-tests (Files): Pull in additional files.
24458
24459         memchr: no longer obsolete, for wider field testing
24460         * modules/memchr (Status, Notice): Delete, this module is no
24461         longer obsolete.
24462         * modules/vasnprintf (Depends-on): Add memchr.
24463
24464 2009-06-07  Jim Meyering  <meyering@redhat.com>
24465
24466         hash: declare some functions with the warn_unused_result attribute
24467         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
24468
24469 2009-06-07  Bruno Haible  <bruno@clisp.org>
24470
24471         * tests/test-alignof.c: Don't test int64_t if it does not exist.
24472         Reported by Eric Blake.
24473
24474 2009-06-06  Eric Blake  <ebb9@byu.net>
24475
24476         test-alignof: fix typo with long double
24477         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
24478         compiler error.
24479
24480 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
24481
24482         Escape non-texinfo { and }s.
24483         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
24484         markup error.
24485
24486 2009-06-04  Jim Meyering  <meyering@redhat.com>
24487
24488         gitlog-to-changelog: don't infloop on an empty commit log
24489         * build-aux/gitlog-to-changelog: Warn about an empty log message.
24490         Reported by Boris Petersen <transacid@centerim.org>.
24491
24492 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
24493
24494         version-etc: extend for packagers
24495         Add three new configure options, intended for packagers:
24496           --with-packager="packager name"
24497           --with-packager-version="packager-specific version"
24498           --with-packager-bug-reports="packager bug reporting"
24499         An example with coreutils:
24500           $ ./configure \
24501             --with-packager=Gentoo \
24502             --with-packager-bug-report=http://bugs.gentoo.org/ \
24503             --with-packager-version="patchset 1.6"
24504           $ ./src/ls --version | head -n2
24505           ls (GNU coreutils) 7.1-dirty
24506           Packaged by Gentoo (patchset 1.6)
24507         Note that the bug reporting info via --help doesn't show up because
24508         coreutils uses its own custom emit_bug_reporting_address() implementation
24509         in src/system.h.  If it didn't, it'd look like:
24510           $ ./src/ls --help | tail -n4
24511           Report bugs to <bug-coreutils@gnu.org>.
24512           Report Gentoo bugs to <http://bugs.gentoo.org/>.
24513           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
24514           General help using GNU software: <http://www.gnu.org/gethelp/>.
24515         * lib/version-etc.c: Print new information, if provided.
24516         * m4/version-etc.m4: New file.
24517         * modules/version-etc (Files): Add m4/version-etc.m4.
24518         (configure.ac): Add gl_VERSION_ETC.
24519
24520 2009-05-31  Bruno Haible  <bruno@clisp.org>
24521
24522         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
24523         and 'int64_t'.
24524         * modules/alignof-tests (Dependencies): Add stdint.
24525         Reported by Eric Blake.
24526
24527 2009-05-31  Bruno Haible  <bruno@clisp.org>
24528
24529         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
24530         restriction due to compiler bugs.
24531         Reported by Eric Blake.
24532
24533 2009-05-31  Simon Josefsson  <simon@josefsson.org>
24534             Bruno Haible  <bruno@clisp.org>
24535
24536         Fix test-alignof failure.
24537         * lib/alignof.h (alignof_slot): New macro.
24538         (alignof_type): New macro, with the same semantics as the previous
24539         'alignof'.
24540         (alignof): Alias to alignof_slot.
24541         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
24542         check that the results are usable as constant expressions.
24543
24544 2009-05-31  Bruno Haible  <bruno@clisp.org>
24545
24546         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
24547         * tests/test-memchr.c (main): Check that memchr does not read past the
24548         first occurrence of the byte.
24549         * tests/test-strstr.c (main): Update comment.
24550         Suggested by Eric Blake.
24551
24552 2009-05-30  Bruno Haible  <bruno@clisp.org>
24553
24554         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
24555         detail how to use dumpbin.
24556         Reported by David Byron <dbyron@dbyron.com>.
24557
24558 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24559
24560         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
24561
24562 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24563
24564         * m4/manywarnings.m4: Add GCC 4.4 warnings.
24565
24566 2009-05-28  Bruno Haible  <bruno@clisp.org>
24567
24568         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
24569         build-aux/ files.
24570
24571 2009-05-28  Simon Josefsson  <simon@josefsson.org>
24572
24573         * gnulib-tool (func_import): Transform license on build-aux/ files too.
24574
24575 2009-05-27  Simon Josefsson  <simon@josefsson.org>
24576
24577         * gnulib-tool (sed_transform_main_lib_file)
24578         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
24579         regexps.
24580
24581 2009-05-26  Simon Josefsson  <simon@josefsson.org>
24582
24583         * tests/test-strstr.c: Add another self-test.
24584         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
24585         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
24586
24587 2009-05-23  Bruno Haible  <bruno@clisp.org>
24588
24589         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
24590         change.
24591
24592 2009-05-21  Bruno Haible  <bruno@clisp.org>
24593
24594         Simplify use of mode_t varargs.
24595         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
24596         uses 'mode_t' or 'int'.
24597         * lib/openat.c (openat): Likewise.
24598         * lib/open-safer.c (open_safer): Likewise.
24599         * m4/mode_t.m4: New file.
24600         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
24601         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
24602         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
24603         * modules/open (Files): Add m4/mode_t.m4.
24604         * modules/openat (Files): Likewise.
24605         * modules/fcntl-safer (Files): Likewise.
24606         Suggested by Eric Blake.
24607
24608 2009-05-21  Pádraig Brady  <P@draigbrady.com>
24609
24610         * doc/glibc-functions/fallocate.texi: New file.
24611         * doc/gnulib.texi: Include it.
24612
24613 2009-05-21  Eric Blake  <ebb9@byu.net>
24614             Bruno Haible  <bruno@clisp.org>
24615
24616         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
24617         invocations.
24618         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24619
24620 2009-05-21  Eric Blake  <ebb9@byu.net>
24621             Bruno Haible  <bruno@clisp.org>
24622
24623         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
24624         include_next. Fix of 2008-11-20 commit.
24625         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
24626         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
24627         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
24628         NEXT_MATH_H.
24629         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
24630         instead of NEXT_MATH_H.
24631
24632 2009-05-21  Bruno Haible  <bruno@clisp.org>
24633
24634         Avoid redefinition warnings for SIZE_MAX.
24635         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
24636         Reported by Simon Josefsson.
24637
24638 2009-05-21  Bruno Haible  <bruno@clisp.org>
24639
24640         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
24641         AC_CACHE_VAL.
24642
24643 2009-05-20  Bruno Haible  <bruno@clisp.org>
24644
24645         Make zeroptr.h work on mingw.
24646         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
24647         mprotect.
24648         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
24649         * modules/memchr2-tests (configure.ac): Likewise.
24650         * modules/memcmp-tests (configure.ac): Likewise.
24651         * modules/memmem-tests (configure.ac): Likewise.
24652         * modules/memrchr-tests (configure.ac): Likewise.
24653         Reported by Simon Josefsson.
24654
24655 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24656
24657         * tests/test-glob.c: Include string.h for strcmp prototype.
24658
24659 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24660
24661         * modules/getdelim (Depends-on): Add explicit stdint, although it
24662         was implicitly already pulled in via realloc-posix.
24663         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
24664
24665 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24666
24667         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
24668         G. Christensen" <tgc@jupiterrise.com>.
24669         * m4/sys_socket_h.m4: Check for sa_family_t.
24670         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
24671         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
24672         * tests/test-sys_socket.c: Check that sa_family_t works.
24673
24674 2009-05-18  Eric Blake  <ebb9@byu.net>
24675
24676         maint.mk: allow gnulib_dir in VPATH build
24677         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
24678
24679 2009-05-15  Jim Meyering  <meyering@redhat.com>
24680
24681         maint.mk: Give gnulib_dir a default definition.
24682         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
24683         Thus, most packages no longer need to specify this variable in cfg.mk
24684
24685 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
24686
24687         rename.m4: fix typos that would make non-mingw cross-configure fail
24688         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
24689
24690 2009-05-13  Eric Blake  <ebb9@byu.net>
24691
24692         mmap-anon: avoid out-of-order autoconf expansion
24693         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
24694         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
24695         * modules/memchr-tests (Depends-on): Add extensions.
24696         * modules/memchr2-tests (Depends-on): Add extensions.
24697         * modules/memcmp-tests (Depends-on): Add extensions.
24698         * modules/memmem-tests (Depends-on): Add extensions.
24699         * modules/memrchr-tests (Depends-on): Add extensions.
24700
24701 2009-05-13  Bruno Haible  <bruno@clisp.org>
24702
24703         Make some tests ISO C 99 compliant.
24704         * tests/zerosize-ptr.h: New file.
24705         * tests/test-memchr.c: Include zerosize-ptr.h.
24706         (main): Use a zero-size object pointer instead of NULL.
24707         * tests/test-memchr2.c: Include zerosize-ptr.h.
24708         (main): Use a zero-size object pointer instead of NULL.
24709         * tests/test-memcmp.c: Include zerosize-ptr.h.
24710         (main): Use a zero-size object pointer instead of NULL.
24711         * tests/test-memmem.c: Include zerosize-ptr.h.
24712         (main): Use a zero-size object pointer instead of NULL.
24713         * tests/test-memrchr.c: Include zerosize-ptr.h.
24714         (main): Use a zero-size object pointer instead of NULL.
24715         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24716         m4/mmap-anon.m4.
24717         (Depends-on): Add getpagesize.
24718         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24719         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24720         m4/mmap-anon.m4.
24721         (Depends-on): Add getpagesize.
24722         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24723         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24724         m4/mmap-anon.m4.
24725         (Depends-on): Add getpagesize.
24726         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24727         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24728         m4/mmap-anon.m4.
24729         (Depends-on): Add getpagesize.
24730         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24731         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24732         m4/mmap-anon.m4.
24733         (Depends-on): Add getpagesize.
24734         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24735
24736 2009-05-12  Bruno Haible  <bruno@clisp.org>
24737
24738         Tests for module 'alignof'.
24739         * modules/alignof-tests: New file.
24740         * tests/test-alignof.c: New file.
24741
24742 2009-05-12  Bruno Haible  <bruno@clisp.org>
24743
24744         Fix alignof macro.
24745         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24746         vendor compilers that are always correct.
24747
24748 2009-05-12  Bruno Haible  <bruno@clisp.org>
24749
24750         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24751         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24752         not whether its fully works.
24753
24754 2009-05-12  Bruno Haible  <bruno@clisp.org>
24755
24756         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24757
24758 2009-05-12  Jim Meyering  <meyering@redhat.com>
24759
24760         * top/maint.mk: Adjust backslash alignment.
24761
24762 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24763
24764         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24765
24766 2009-05-11  Eric Blake  <ebb9@byu.net>
24767
24768         argp: avoid undefined behavior
24769         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24770         macros.
24771
24772 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24773
24774         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24775         user.name to prevent git commit from complaining.
24776
24777 2009-05-10  Bruno Haible  <bruno@clisp.org>
24778
24779         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24780         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24781         it rewrites every file name only once.
24782         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24783
24784 2009-05-08  Bruno Haible  <bruno@clisp.org>
24785
24786         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24787         instead of 'max'.
24788
24789 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24790
24791         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24792         sockaddr_storage test.
24793
24794 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24795
24796         * modules/sys_socket (Makefile.am): Substitute
24797         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24798         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24799         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24800         * tests/test-sys_socket.c: Check sockaddr_storage.
24801
24802 2009-05-08  Bruno Haible  <bruno@clisp.org>
24803
24804         New module 'alignof'.
24805         * lib/alignof.h: New file.
24806         * modules/alignof: New file.
24807
24808 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24809             Bruno Haible  <bruno@clisp.org>
24810
24811         Fix test-file-has-acl on FreeBSD.
24812         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24813         mask is implicitly added.
24814         * tests/test-file-has-acl.c: Include <signal.h>.
24815         (main): Terminate the test after 5 seconds.
24816         * modules/acl-tests (configure.ac): Check for alarm function.
24817
24818 2009-05-04  Bruno Haible  <bruno@clisp.org>
24819
24820         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24821         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24822         * modules/errno (configure.ac): Drop AC_REQUIRE.
24823         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24824         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24825
24826 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24827
24828         * modules/glob-tests: New module.
24829         * tests/test-glob.c: Add.
24830
24831 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24832
24833         * modules/fnmatch-tests: New module.
24834         * tests/test-fnmatch.c: Add.
24835
24836 2009-05-04  Eric Blake  <ebb9@byu.net>
24837
24838         maint: make the new no-submodule-changes rule VPATH-safe
24839         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24840
24841 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24842             Bruno Haible  <bruno@clisp.org>
24843
24844         acl: Fix infinite loop on FreeBSD.
24845         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24846         of return value from acl_get_entry.
24847         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24848         Likewise.
24849
24850 2009-05-03  Bruno Haible  <bruno@clisp.org>
24851
24852         * lib/acl-internal.h (acl_entries): Clarify return value.
24853         * lib/acl_entries.c (acl_entries): Likewise.
24854
24855 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24856
24857         Bug fix in acl module.
24858         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24859
24860 2009-05-03  Bruno Haible  <bruno@clisp.org>
24861
24862         Create gperf-generated file in the source dir, not in the build dir.
24863         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24864         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24865         * modules/unicase/locale-language (unicase/locale-languages.h):
24866         Likewise.
24867         * modules/unicase/special-casing (unicase/special-casing-table.h):
24868         Likewise.
24869         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24870         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24871         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24872         Reported by Ralf Wildenhues.
24873
24874 2009-05-03  Bruno Haible  <bruno@clisp.org>
24875
24876         * modules/fnmatch (Description, configure.ac): Taken from
24877         fnmatch-posix.
24878         * modules/fnmatch-posix: Turn into a symbolic reference to the
24879         'fnmatch' module, and deprecate.
24880         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24881
24882 2009-05-03  Bruno Haible  <bruno@clisp.org>
24883
24884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24885         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24886         Reported by Ralf Wildenhues.
24887
24888 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24889
24890         * m4/fnmatch.m4: Fix fnmatch re-define.
24891
24892 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24893
24894         priv-set: new module and tests; adapt write-any-file
24895         * lib/priv-set.c: New file.
24896         * lib/priv-set.h: New file.
24897         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24898         * lib/write-any-file.c: Simplify by using priv-set module.
24899         * m4/priv-set.m4: New file.
24900         * modules/priv-set: New file.
24901         * modules/unlinkdir: Add dependency on priv-set module.
24902         * modules/write-any-file: Likewise.
24903
24904         Tests for module 'priv-set'.
24905         * modules/priv-set-tests: New file.
24906         * tests/test-priv-set.c: New file.
24907
24908 2009-05-03  Jim Meyering  <meyering@redhat.com>
24909             Bruno Haible  <bruno@clisp.org>
24910
24911         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24912         use the converted UTF-8 variant of the name instead.
24913
24914 2009-05-03  Jim Meyering  <meyering@redhat.com>
24915
24916         tests: tighten some getdate tests
24917         * tests/test-getdate.c (main): Tighten tests: require equality,
24918         not just greater than.  Set TZ envvar to UTC0.
24919
24920 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24921
24922         getdate: correctly interpret "next monday" when run on a Monday
24923         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24924         that e.g., "next tues" (when run on a tuesday) results in a date
24925         that is one week in the future, and not today's date.
24926         I.e., add a week when the wday is the same as the current one.
24927         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24928         and earlier by Martin Bernreuther and Jan Minář.
24929         * tests/test-getdate.c (main): Check that "next DAY" is always in
24930         the future and that "last DAY" is always in the past.
24931
24932 2009-05-02  Jim Meyering  <meyering@redhat.com>
24933
24934         build: ensure that a release build fails when a submodule is unclean
24935         * top/maint.mk (no-submodule-changes): New rule.
24936         (alpha beta major): Depend on it.
24937
24938 2009-05-02  Bruno Haible  <bruno@clisp.org>
24939
24940         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24941         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24942         shell variable gl_fnmatch_required to detect which variant is
24943         requested.
24944         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24945         gl_FUNC_FNMATCH_POSIX.
24946         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24947         exclude fnmatch-posix.
24948
24949 2009-05-02  Bruno Haible  <bruno@clisp.org>
24950
24951         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24952         * modules/mbsrtowcs (License): Change to LGPLv2+.
24953         * modules/strnlen1 (License): Likewise.
24954         Reported by Simon Josefsson.
24955
24956 2009-05-02  Bruno Haible  <bruno@clisp.org>
24957
24958         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24959         "cross".
24960         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24961         gnulib-tool was called with option --source-base=lib.
24962
24963 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24964
24965         Use automake *-local hooks without commands, for extensibility.
24966         * modules/localcharset (Makefile.am): Rename install-exec-local
24967         rule to install-exec-localcharset, and make it a prerequisite of
24968         install-exec-local.  Likewise, rename the uninstall-local rule to
24969         uninstall-localcharset, and make it a prerequisite of the former.
24970
24971 2009-05-01  Bruno Haible  <bruno@clisp.org>
24972
24973         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
24974         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24975         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
24976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
24977         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
24978         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24979         m4/locale-zh.m4, m4/codeset.m4.
24980
24981         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24982         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
24983         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24984         m4/locale-zh.m4.
24985
24986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
24987         REPLACE_WCRTOMB if mbstate_t must be replaced.
24988         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
24989         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
24990
24991 2009-05-01  Bruno Haible  <bruno@clisp.org>
24992
24993         Avoid compiler warnings when redefining macros defined by <libintl.h>.
24994         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
24995         dngettext, dcngettext, textdomain, bindtextdomain,
24996         bind_textdomain_codeset): Undefine before redefining.
24997
24998 2009-04-30  Bruno Haible  <bruno@clisp.org>
24999
25000         Fix bug introduced on 2009-04-25.
25001         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
25002         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
25003         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
25004         is defined.
25005         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
25006         is defined.
25007         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
25008         is defined.
25009         Reported by Elbert_Pol <elbert.pol@gmail.com>.
25010
25011 2009-04-28  Bruno Haible  <bruno@clisp.org>
25012
25013         Comment tweaks.
25014         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
25015         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
25016         * lib/unicase.h (u*_casexfrm): Likewise.
25017         Reported by Paolo Bonzini.
25018
25019 2009-04-28  Bruno Haible  <bruno@clisp.org>
25020
25021         Fix a compilation error.
25022         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
25023         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25024         Reported by Jim Meyering.
25025
25026 2009-04-27  Bruno Haible  <bruno@clisp.org>
25027
25028         New module 'libunistring'.
25029         * modules/libunistring: New file.
25030         * m4/libunistring.m4: New file.
25031         * MODULES.html.sh (Unicode string functions): Add it.
25032
25033 2009-04-27  Eric Blake  <ebb9@byu.net>
25034
25035         maint.mk: allow package-specific header to provide <config.h>
25036         * top/maint.mk (sc_require_config_h): New variable.
25037         (sc_require_config_h, sc_require_config_h_first): Use it.
25038
25039 2009-04-27  Simon Josefsson  <simon@josefsson.org>
25040
25041         * top/maint.mk (sc_avoid_if_before_free): Except
25042         useless-if-before-free script.
25043
25044 2009-04-27  Eric Blake  <ebb9@byu.net>
25045
25046         maintainer-makefile: depend on all required helper scripts
25047         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
25048         useless-if-before-free.
25049         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
25050         version, rather than assuming gnulib checkout is available.
25051         Reported by Simen Josefsson.
25052
25053 2009-04-26  Bruno Haible  <bruno@clisp.org>
25054
25055         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
25056         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
25057         "../" or "..".
25058
25059 2009-04-26  Bruno Haible  <bruno@clisp.org>
25060
25061         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
25062         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
25063         AC_LIB_HAVE_LINKFLAGS.
25064
25065 2009-04-26  Bruno Haible  <bruno@clisp.org>
25066
25067         Simplify calling convention of u*_conv_from_encoding.
25068         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
25069         u32_conv_from_encoding): Expect a resultbuf argument and return the
25070         result directly as a pointer.
25071         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
25072         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
25073         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
25074         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
25075         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
25076         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25077         Update.
25078         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
25079         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
25080         * lib/vasnprintf.c (VASNPRINTF): Update.
25081         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
25082         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
25083         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
25084         * NEWS: Mention the change.
25085
25086 2009-04-26  Bruno Haible  <bruno@clisp.org>
25087
25088         Simplify calling convention of u*_conv_to_encoding.
25089         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25090         u32_conv_to_encoding): Expect a resultbuf argument and return the
25091         result directly as a pointer.
25092         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25093         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
25094         freeing scaled_offsets if mem_iconveha failed.
25095         * lib/unicase/u-casexfrm.h (FUNC): Update.
25096         * lib/uninorm/u-normxfrm.h (FUNC): Update.
25097         * lib/vasnprintf.c (VASNPRINTF): Update.
25098         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
25099         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
25100         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
25101         * NEWS: Mention the change.
25102
25103 2009-04-26  Bruno Haible  <bruno@clisp.org>
25104
25105         Avoid test failures on AIX and OSF/1.
25106         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
25107         malloc(0).
25108         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25109         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25110         Likewise.
25111         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
25112         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
25113         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
25114         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
25115         * doc/posix-functions/malloc.texi: Document the portability problem
25116         related to malloc(0).
25117
25118 2009-04-26  Bruno Haible  <bruno@clisp.org>
25119
25120         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
25121         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
25122         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
25123
25124 2009-04-25  Bruno Haible  <bruno@clisp.org>
25125
25126         Avoid link error when creating a namespace clean library.
25127         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
25128         as macro with arguments if already defined as an alias.
25129         * lib/signbitf.c (gl_signbitf): Don't undefine.
25130         * lib/signbitd.c (gl_signbitd): Don't undefine.
25131         * lib/signbitl.c (gl_signbitl): Don't undefine.
25132
25133 2009-04-25  Jim Meyering  <meyering@redhat.com>
25134
25135         vc-list-files: fix another quoting bug
25136         * build-aux/vc-list-files: Avoid sed backslash expansion
25137         of pathological directory names.
25138
25139 2009-04-25  Eric Blake  <ebb9@byu.net>
25140
25141         vc-list-files: fix shell quoting error
25142         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
25143         timestamp.
25144
25145 2009-04-25  Jim Meyering  <meyering@redhat.com>
25146
25147         vc-list-files: restore lost functionality with subdir argument
25148         * build-aux/vc-list-files: When given a non-"." sub-directory
25149         argument, substitute the $dir/ prefix back onto each resulting name.
25150         Otherwise, coreutils' root_tests check would fail.
25151
25152 2009-04-24  Eric Blake  <ebb9@byu.net>
25153
25154         vc-list-files: ignore git symlinks
25155         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
25156         than ls-files, to ignore git symlinks.
25157
25158         maint.mk: import improvements from m4
25159         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
25160         (move_if_change): Delete unused macro.
25161         (news-date-check, vc-diff-check): Support VPATH builds.
25162         (announcement): Likewise.  Split --bootstrap-tools list...
25163         (boostrap-tools): ...into separate list, which can be overridden
25164         in cfg.mk.
25165         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
25166         requiring dependency on useless-if-before-free module.
25167         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
25168         Support VPATH builds.
25169
25170 2009-04-24  Jim Meyering  <meyering@redhat.com>
25171
25172         maint.mk: remove coreutils-specific rules and variables
25173         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
25174         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
25175         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
25176
25177         maint.mk: remove obsolete rule
25178         * top/maint.mk (rel-check): Remove rule.
25179         (WGET, WGETFLAGS): Remove now-unused variables.
25180
25181 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25182
25183         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
25184         consistency.
25185
25186         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
25187         '$(PATH_SEPARATOR)' instead of ':'.
25188
25189 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25190
25191         * lib/getopt1.c (main): Use 'const' for static array.
25192
25193 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25194
25195         * top/maint.mk: Sync with coreutils.
25196         * NEWS: Explain incompatibilities.
25197
25198 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25199             Bruno Haible  <bruno@clisp.org>
25200
25201         Fix cross-compilation results.
25202         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
25203         statement, as third argument of AC_TRY_RUN.
25204         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25205         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25206         Likewise.
25207         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25208         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25209         Likewise.
25210         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25211         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
25212         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
25213
25214 2009-04-20  Bruno Haible  <bruno@clisp.org>
25215
25216         Avoid test failure on mingw.
25217         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
25218
25219 2009-04-20  Bruno Haible  <bruno@clisp.org>
25220
25221         Avoid compilation error on mingw.
25222         * modules/localename-tests (Depends-on): Add locale.
25223
25224 2009-04-19  Bruno Haible  <bruno@clisp.org>
25225
25226         Support for building a shared library on Windows platforms.
25227         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
25228         (main): Test the presence of UNINORM_NFC here.
25229         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
25230         (main): Test the presence of UNINORM_NFD here.
25231         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
25232         (main): Test the presence of UNINORM_NFKC here.
25233         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
25234         (main): Test the presence of UNINORM_NFKD here.
25235
25236 2009-04-19  Bruno Haible  <bruno@clisp.org>
25237
25238         Avoid a compiler warning.
25239         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
25240         Change type of variable 'sequence'.
25241
25242 2009-04-19  Bruno Haible  <bruno@clisp.org>
25243
25244         * modules/configmake (Makefile.am): When the contents of configmake.h
25245         does not change, arrange to preserve its modification time.
25246
25247 2009-04-17  Simon Josefsson  <simon@josefsson.org>
25248
25249         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
25250         gettext domain.
25251
25252 2009-04-16  Jim Meyering  <meyering@redhat.com>
25253
25254         useless-if-before-free: improve conversion code
25255         * build-aux/useless-if-before-free: Adjust code-in-comment to match
25256         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
25257
25258 2009-04-14  Bruno Haible  <bruno@clisp.org>
25259
25260         * modules/fcntl (Depends-on): Add extensions.
25261         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
25262
25263 2009-04-12  Ben Pfaff  <blp@gnu.org>
25264
25265         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
25266         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
25267
25268 2009-03-20  Ben Pfaff  <blp@gnu.org>
25269
25270         Make rename replace existing destinations on Windows.
25271         * m4/rename.m4: Add test for Mingw.
25272         * lib/rename.c: Add rename replacement that uses MoveFileEx with
25273         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
25274         * doc/posix-functions/rename.texi: Document.
25275
25276 2009-04-10  Bruno Haible  <bruno@clisp.org>
25277
25278         New include file "iconveh.h".
25279         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
25280         * lib/striconveh.h: Include it.
25281         (enum iconv_ilseq_handler): Remove definition.
25282         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
25283         striconveh.h.
25284         * lib/striconveha.c: Include striconveh.h.
25285         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
25286         * modules/striconveh (Files): Add lib/iconveh.h.
25287         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
25288         lib/striconveh.h.
25289
25290 2009-04-10  Bruno Haible  <bruno@clisp.org>
25291
25292         * lib/uniconv.h: Update comment.
25293
25294 2009-04-10  Bruno Haible  <bruno@clisp.org>
25295
25296         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
25297         always.
25298         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25299         * lib/unistr/u16-mbtouc-aux.c: Likewise.
25300         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25301         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
25302         "unistring-notinline.h", so that the function gets defined always.
25303         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25304         * lib/unistr/u8-uctomb.c: Likewise.
25305         * lib/unistr/u16-mbtouc.c: Likewise.
25306         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25307         * lib/unistr/u16-uctomb.c: Likewise.
25308         * lib/unistr/u32-mbtouc.c: Likewise.
25309         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25310         * lib/unistr/u32-uctomb.c: Likewise.
25311
25312 2009-04-10  Bruno Haible  <bruno@clisp.org>
25313
25314         Mark 'utime' obsolete.
25315         * modules/utime (Status, Notice): New sections.
25316         Suggested by Jim Meyering.
25317
25318         Fix cross-compile guess for utime test.
25319         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
25320         autoconf.
25321         * doc/posix-functions/utime.texi: Give more precisions.
25322         Reported by Jan <ipif@ymail.com>.
25323
25324 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
25325
25326         filevercmp: correct today's change
25327         * lib/filevercmp.c: Also handle coreutils' test inputs.
25328         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
25329
25330         Fix regression in 'filevercmp' module. Thanks Sven Joachim
25331         for reporting it.
25332         * lib/filevercmp.c: Special handle for "", "." and "..".
25333         * tests/test-filevercmp.c: Enlarge the set suite.
25334
25335 2009-04-07  Jim Meyering  <meyering@redhat.com>
25336
25337         useless-if-before-free: show how to remove braced useless free, too
25338         * build-aux/useless-if-before-free: still only in a comment, though.
25339
25340 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
25341
25342         maint.mk: import changes to syntax-check macros from coreutils
25343         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
25344         Use them in the relevant macros.
25345
25346 2009-04-06  Bruno Haible  <bruno@clisp.org>
25347
25348         Fix unportable use of bit-fields.
25349         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
25350         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
25351         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
25352
25353 2009-04-06  Bruno Haible  <bruno@clisp.org>
25354
25355         Avoid test failures on AIX and OSF/1.
25356         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
25357         that malloc(0) = NULL.
25358         * tests/unicase/test-u8-tolower.c (check): Likewise.
25359         * tests/unicase/test-u8-totitle.c (check): Likewise.
25360         * tests/unicase/test-u8-toupper.c (check): Likewise.
25361         * tests/unicase/test-u16-casefold.c (check): Likewise.
25362         * tests/unicase/test-u16-tolower.c (check): Likewise.
25363         * tests/unicase/test-u16-totitle.c (check): Likewise.
25364         * tests/unicase/test-u16-toupper.c (check): Likewise.
25365         * tests/unicase/test-u32-casefold.c (check): Likewise.
25366         * tests/unicase/test-u32-tolower.c (check): Likewise.
25367         * tests/unicase/test-u32-totitle.c (check): Likewise.
25368         * tests/unicase/test-u32-toupper.c (check): Likewise.
25369         * tests/uninorm/test-u8-nfc.c (check): Likewise.
25370         * tests/uninorm/test-u8-nfd.c (check): Likewise.
25371         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
25372         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
25373         * tests/uninorm/test-u16-nfc.c (check): Likewise.
25374         * tests/uninorm/test-u16-nfd.c (check): Likewise.
25375         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
25376         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
25377         * tests/uninorm/test-u32-nfc.c (check): Likewise.
25378         * tests/uninorm/test-u32-nfd.c (check): Likewise.
25379         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
25380         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
25381
25382 2009-04-05  Bruno Haible  <bruno@clisp.org>
25383
25384         Work around an autoconf limitation.
25385         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
25386         comment line if it would be longer than 3 KB.
25387
25388 2009-04-05  Bruno Haible  <bruno@clisp.org>
25389
25390         Avoid test failure with libiconv-1.13.
25391         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
25392         of the expected test results.
25393
25394 2009-04-05  Bruno Haible  <bruno@clisp.org>
25395
25396         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
25397         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
25398         that it should be installed.
25399
25400 2009-04-05  Bruno Haible  <bruno@clisp.org>
25401
25402         * gnulib-tool: New option --copy-file.
25403         (func_usage): Document it.
25404         (func_dest_tmpfilename): Moved out of func_import.
25405         (func_add_file, func_update_file): New functions, extracted from
25406         func_import.
25407         (func_import): Update.
25408
25409 2009-04-05  Karl Berry  <karl@gnu.org>
25410
25411         * README: prominently mention gnulib-tool.
25412         Rearrange sections so getting the code is near the top.
25413
25414 2009-04-05  Bruno Haible  <bruno@clisp.org>
25415
25416         * lib/unicase.h: Mention u*_cmp2.
25417         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25418         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
25419         * lib/unicase/ulc-casecmp.c: Likewise.
25420         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
25421         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
25422         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
25423         unistr/u8-cmp.
25424         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
25425         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
25426         unistr/u16-cmp.
25427         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
25428         unistr/u32-cmp.
25429
25430         * lib/uninorm.h: Mention u*_cmp2.
25431         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25432         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
25433         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
25434         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
25435         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
25436         unistr/u8-cmp.
25437         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
25438         unistr/u16-cmp.
25439         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
25440         unistr/u32-cmp.
25441
25442         New module 'unistr/u32-cmp2'.
25443         * lib/unistr/u32-cmp2.c: New file.
25444         * modules/unistr/u32-cmp2: New file.
25445
25446         New module 'unistr/u16-cmp2'.
25447         * lib/unistr/u16-cmp2.c: New file.
25448         * modules/unistr/u16-cmp2: New file.
25449
25450         New module 'unistr/u8-cmp2'.
25451         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
25452         * lib/unistr/u8-cmp2.c: New file.
25453         * lib/unistr/u-cmp2.h: New file.
25454         * modules/unistr/u8-cmp2: New file.
25455
25456 2009-04-05  Bruno Haible  <bruno@clisp.org>
25457
25458         * lib/unictype.h (uc_property_is_valid): New macro.
25459         * tests/unictype/test-pr_byname.c (main): Use it.
25460
25461         * lib/unistr.h: Doc fixes.
25462         * lib/uniconv.h: Doc fixes.
25463         * lib/unictype.h: Doc fixes.
25464
25465 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25466
25467         Port coreutils 7.2 to Solaris 8.
25468
25469         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
25470         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
25471         for Solaris 8.  This is a bit of a hack, as it means it's the
25472         caller's responsibility to add -lnsl if needed, but most likely it
25473         won't be needed since only getaddrinfo uses this and getaddrinfo
25474         isn't needed on Solaris 8.
25475
25476         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
25477         problem to Solaris 8 encountered with coreutils 7.2, which
25478         resulted in a message "fnmatch.c:292: warning: passing argument 4
25479         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
25480         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
25481
25482 2009-04-03  Simon Josefsson  <simon@josefsson.org>
25483
25484         * m4/ld-version-script.m4: Add FIXME comment.
25485
25486 2009-04-02  Simon Josefsson  <simon@josefsson.org>
25487
25488         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
25489         SOVERSION variable.
25490
25491 2009-04-02  Bruno Haible  <bruno@clisp.org>
25492
25493         * Makefile (info, html, dvi, pdf): Combine the rules.
25494         Suggested by Jim Meyering.
25495
25496 2009-04-01  Bruno Haible  <bruno@clisp.org>
25497
25498         * Makefile (info, html, dvi, pdf): New targets.
25499         Reported by Reuben Thomas <rrt@sc3d.org>.
25500
25501 2009-04-01  Bruno Haible  <bruno@clisp.org>
25502
25503         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
25504         can be put into PATH.
25505         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
25506
25507 2009-04-01  Bruno Haible  <bruno@clisp.org>
25508
25509         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
25510
25511 2009-04-01  Bruno Haible  <bruno@clisp.org>
25512
25513         Rename module 'visibility'.
25514         * modules/lib-symbol-visibility: Renamed from modules/visibility.
25515         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
25516         * doc/gnulib.texi: Update.
25517         * MODULES.html.sh (Misc): Update.
25518         * NEWS: Mention the change.
25519
25520 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25521
25522         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
25523         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
25524         Eric Blake <ebb9@byu.net> for review.
25525         * MODULES.html.sh: Add lib-msvc-compat.
25526         * doc/gnulib.texi: Link to new section.
25527         * m4/ld-output-def.m4: New file.
25528         * doc/ld-output-def.texi: New file.
25529
25530 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25531
25532         Rename ld-version-script to lib-symbol-versions.  Suggested by
25533         Bruno Haible <bruno@clisp.org>.
25534         * modules/ld-version-script: Renamed to lib-symbol-versions.
25535         * doc/ld-version-script.texi: Fix module name.
25536         * MODULES.html.sh: Add lib-symbol-versions.
25537
25538 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25539
25540         * modules/u64-tests: New file.
25541         * tests/test-u64.c: New file.
25542
25543 2009-03-04  Simon Josefsson  <simon@josefsson.org>
25544
25545         * MODULES.html.sh: Mention u64.
25546         * modules/u64: New module.
25547         * modules/crypto/sha512: Depend on u64 module instead of providing
25548         u64.h.
25549
25550 2009-03-27  Eric Blake  <ebb9@byu.net>
25551
25552         test-strerror: make debugging EAI_SYSTEM easier
25553         * modules/getaddrinfo-tests (Depends-on): Add strerror.
25554         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
25555         failure was EAI_SYSTEM.
25556
25557 2009-03-25  Bruno Haible  <bruno@clisp.org>
25558
25559         Fix a problem with --enable-relocatable on Solaris 7.
25560         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
25561         since 2008-02-24.
25562
25563 2009-03-25  Eric Blake  <ebb9@byu.net>
25564
25565         test-sockets: avoid gcc warning
25566         * tests/test-sockets.c (main): Silence compiler warning.
25567
25568 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25569
25570         New modules nproc, pthread, contributed by Glen Lenker.
25571
25572         * MODULES.html.sh: Add pthread, nproc.
25573         * lib/nproc.c: New file.
25574         * lib/nproc.h: New file.
25575         * lib/pthread.in.h: New file.
25576         * m4/pthread.m4: New file.
25577         * modules/nproc: New file.
25578         * modules/pthread: New file.
25579
25580 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25581
25582         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
25583         New variable.
25584
25585 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
25586
25587         filevercmp: handle simple~ and numbered.~3~ backup suffixes
25588         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
25589         * tests/test-filevercmp.c: Add tests for backup suffixes.
25590
25591 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25592
25593         * modules/stdlib (Depends-on): Add stdint, needed when defining
25594         struct random_data on, for example, HP-UX 10.20.  Reported by
25595         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25596
25597 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25598
25599         * lib/readline.c (readline): Call fflush on stdout after printing
25600         prompt.
25601
25602 2009-03-20  Bruno Haible  <bruno@clisp.org>
25603
25604         Remove dependency from 'close' module to -lws2_32 on native Windows.
25605         * lib/close-hook.h: New file.
25606         * lib/close-hook.c: New file.
25607         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
25608         w32sock.h.
25609         (_gl_close_fd_maybe_socket): Remove function.
25610         (rpl_close): Invoke execute_all_close_hooks instead of
25611         _gl_close_fd_maybe_socket.
25612         * lib/sockets.c: Include close-hook.h, w32sock.h.
25613         (close_fd_maybe_socket): New function, essentially from lib/close.c.
25614         (close_sockets_hook): New variable.
25615         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
25616         (gl_sockets_cleanup): Unregister it.
25617         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
25618         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
25619         * modules/close-hook: New file.
25620         * modules/close (Files): Remove lib/w32sock.h.
25621         (Depends-on): Add close-hook.
25622         (Link): Remove section.
25623         * modules/sockets (Files): Add lib/w32sock.h.
25624         (Depends-on): Add close-hook.
25625         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25626         invocation.
25627         * NEWS: Mention that LIB_CLOSE is gone.
25628
25629 2009-03-23  Eric Blake  <ebb9@byu.net>
25630
25631         signal-tests: test previous patch
25632         * tests/test-signal.c: New file.
25633         * modules/signal-tests: Likewise.
25634
25635         signal.h: always support 'volatile sig_atomic_t'
25636         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
25637         (gl_SIGNAL_H_DEFAULTS): Add a default.
25638         * modules/signal (Makefile.am): Substitute if needed.
25639         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
25640         users can blindly add volatile.
25641         * doc/posix-headers/signal.texi (signal.h): Document it.
25642         Reported by Matthew Woehlke.
25643
25644 2009-03-23  Jim Meyering  <meyering@redhat.com>
25645
25646         pathmax: PATH_MAX: use pathconf only when available
25647         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
25648         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
25649         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
25650         This avoids a link failure in a PSP cross-compilation environment
25651         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
25652
25653         * lib/vasnprintf.c (divide): Fix typo in comment.
25654
25655 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25656
25657         * gnulib-tool (func_filter_filelist): Fix comment.
25658
25659 2009-03-20  Bruno Haible  <bruno@clisp.org>
25660
25661         Make sockets.h self-contained.
25662         * lib/sockets.c: Include sockets.h first.
25663         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
25664
25665 2009-03-19  Eric Blake  <ebb9@byu.net>
25666
25667         doc: mention more functions added in cygwin 1.7.0
25668         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
25669         addition.
25670         * doc/posix-functions/log2f.texi: Likewise.
25671
25672 2009-03-19  Jim Meyering  <meyering@redhat.com>
25673
25674         fsusage: avoid syntax error due to statement-before-declaration
25675         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
25676         after all declarations.  Reported by Matthew Woehlke in
25677         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
25678
25679 2009-03-18  Eric Blake  <ebb9@byu.net>
25680
25681         build-aux/compile: sync from automake
25682         * build-aux/compile: New file, from automake.
25683         * config/srclist.txt: Mention build-aux/compile.
25684
25685 2009-03-17  Bruno Haible  <bruno@clisp.org>
25686
25687         * lib/git-merge-changelog.c: Fix typo in comment.
25688         Reported by Reuben Thomas <rrt@sc3d.org>.
25689
25690 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
25691
25692         * m4/regex.m4: update and improve help for
25693         --without-included-regex.
25694
25695 2009-03-17  Simon Josefsson  <simon@josefsson.org>
25696
25697         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
25698         failure on missing include files.
25699
25700 2009-03-17  Eric Blake  <ebb9@byu.net>
25701
25702         doc: mention more functions added in cygwin 1.7.0
25703         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
25704         addition.
25705         * doc/posix-functions/fwscanf.texi: Likewise.
25706         * doc/posix-functions/swprintf.texi: Likewise.
25707         * doc/posix-functions/swscanf.texi: Likewise.
25708         * doc/posix-functions/vfwprintf.texi: Likewise.
25709         * doc/posix-functions/vfwscanf.texi: Likewise.
25710         * doc/posix-functions/vswprintf.texi: Likewise.
25711         * doc/posix-functions/vswscanf.texi: Likewise.
25712         * doc/posix-functions/vwprintf.texi: Likewise.
25713         * doc/posix-functions/vwscanf.texi: Likewise.
25714         * doc/posix-functions/wcscasecmp.texi: Likewise.
25715         * doc/posix-functions/wcsdup.texi: Likewise.
25716         * doc/posix-functions/wcsftime.texi: Likewise.
25717         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25718         * doc/posix-functions/wprintf.texi: Likewise.
25719         * doc/posix-functions/wscanf.texi: Likewise.
25720         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25721
25722 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25723
25724         maint.mk: really add $(AM_MAKEFLAGS)
25725         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25726         was inadvertently omitted in the last commit.
25727         Spotted by Bruno Haible.
25728
25729         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25730         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25731         $(AM_MAKEFLAGS)' rather than plain `make'.
25732
25733         gnulib-tool: execute $MAKE not make
25734         * gnulib-tool: Default $MAKE to 'make'.
25735         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25736         than make.  Initialize $MAKE in the do-autobuild script.
25737
25738         gnulib-tool: use $MAKE not make in generated files
25739         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25740         make, in generated files.  Initialize $MAKE in the do-autobuild
25741         script.
25742
25743         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25744
25745         GNUmakefile: disable parallelism only for multiple, recursive targets
25746         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25747         additions in the Makefile.
25748         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25749         by Automake.
25750         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25751         are listed on the command line and at least one of them is
25752         listed in $(ALL_RECURSIVE_TARGETS).
25753
25754 2009-03-14  Bruno Haible  <bruno@clisp.org>
25755
25756         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25757         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25758         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25759         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25760         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25761         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25762         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25763         unistr/u8-uctomb.
25764         * modules/unistr/u8-strchr (Depends-on): Likewise.
25765         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25766         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25767         unistr/u16-uctomb.
25768         * modules/unistr/u16-strchr (Depends-on): Likewise.
25769         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25770
25771 2009-03-12  Bruno Haible  <bruno@clisp.org>
25772
25773         Work around select() bug on Interix 3.5.
25774         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25775         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25776         * m4/select.m4: New file.
25777         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25778         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25779         * modules/select (Files): Add m4/select.m4.
25780         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25781         * modules/nanosleep (Depends-on): Add select.
25782         * modules/poll (Depends-on): Likewise.
25783         * doc/posix-functions/select.texi: Mention the Interix bug.
25784         Reported by Markus Duft <mduft@gentoo.org>.
25785
25786         * lib/select.c: Renamed from lib/winsock-select.c.
25787         * modules/select (Files): Add lib/select.c, remove
25788         lib/winsock-select.c.
25789         (configure.ac): Update.
25790
25791 2009-03-12  Jim Meyering  <meyering@redhat.com>
25792
25793         avoid gcc warnings about unused macro definitions
25794         * lib/readtokens.c (STREQ): Remove unused definition.
25795         * lib/xmalloc.c (SIZE_MAX): Likewise.
25796         * lib/openat-die.c (N_): Likewise.
25797         * lib/mountlist.c (SIZE_MAX): Remove definition.
25798         Instead, include <stdint.h>.
25799         * lib/readutmp.c: Likewise.
25800         * modules/readutmp (Depends-on): Add stdint.
25801         * modules/mountlist (Depends-on): Add stdint.
25802         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25803
25804 2009-03-10  Bruno Haible  <bruno@clisp.org>
25805
25806         Tests for module 'mbmemcasecoll'.
25807         * modules/mbmemcasecoll-tests: New file.
25808         * tests/test-mbmemcasecoll1.sh: New file.
25809         * tests/test-mbmemcasecoll2.sh: New file.
25810         * tests/test-mbmemcasecoll3.sh: New file.
25811         * tests/test-mbmemcasecoll.c: New file.
25812
25813         New module 'mbmemcasecoll'.
25814         * lib/mbmemcasecoll.h: New file.
25815         * lib/mbmemcasecoll.c: New file.
25816         * modules/mbmemcasecoll: New file.
25817
25818         * tests/test-mbmemcasecmp.h: New file, extracted from
25819         tests/test-mbmemcasecmp.c.
25820         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25821         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25822         (main): Update.
25823         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25824
25825 2009-03-09  Bruno Haible  <bruno@clisp.org>
25826
25827         Tests for module 'mbmemcasecmp'.
25828         * modules/mbmemcasecmp-tests: New file.
25829         * tests/test-mbmemcasecmp1.sh: New file.
25830         * tests/test-mbmemcasecmp2.sh: New file.
25831         * tests/test-mbmemcasecmp3.sh: New file.
25832         * tests/test-mbmemcasecmp.c: New file.
25833
25834         New module 'mbmemcasecmp'.
25835         * lib/mbmemcasecmp.h: New file.
25836         * lib/mbmemcasecmp.c: New file.
25837         * modules/mbmemcasecmp: New file.
25838
25839 2009-03-09  Bruno Haible  <bruno@clisp.org>
25840
25841         Tests for module 'unicase/ulc-casecoll'.
25842         * modules/unicase/ulc-casecoll-tests: New file.
25843         * tests/unicase/test-ulc-casecoll1.sh: New file.
25844         * tests/unicase/test-ulc-casecoll2.sh: New file.
25845         * tests/unicase/test-ulc-casecoll.c: New file.
25846
25847         New module 'unicase/ulc-casecoll'.
25848         * lib/unicase.h (ulc_casecoll): New declaration.
25849         * lib/unicase/ulc-casecoll.c: New file.
25850         * modules/unicase/ulc-casecoll: New file.
25851
25852         New module 'unicase/ulc-casexfrm'.
25853         * lib/unicase.h (ulc_casexfrm): New declaration.
25854         * lib/unicase/ulc-casexfrm.c: New file.
25855         * modules/unicase/ulc-casexfrm: New file.
25856
25857 2009-03-09  Bruno Haible  <bruno@clisp.org>
25858
25859         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25860         invocations.
25861
25862         * m4/mbscasecmp.m4: Remove file.
25863         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25864         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25865
25866         * m4/mbscasestr.m4: Remove file.
25867         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25868         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25869
25870         * m4/mbschr.m4: Remove file.
25871         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25872         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25873
25874         * m4/mbscspn.m4: Remove file.
25875         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25876         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25877
25878         * m4/mbslen.m4: Remove file.
25879         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25880         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25881
25882         * m4/mbsncasecmp.m4: Remove file.
25883         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25884         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25885
25886         * m4/mbsnlen.m4: Remove file.
25887         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25888         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25889
25890         * m4/mbspbrk.m4: Remove file.
25891         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25892         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25893
25894         * m4/mbspcasecmp.m4: Remove file.
25895         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25896         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25897
25898         * m4/mbsrchr.m4: Remove file.
25899         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25900         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25901
25902         * m4/mbssep.m4: Remove file.
25903         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25904         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25905
25906         * m4/mbsspn.m4: Remove file.
25907         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25908         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25909
25910         * m4/mbsstr.m4: Remove file.
25911         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25912         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25913
25914         * m4/mbstok_r.m4: Remove file.
25915         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25916         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25917
25918         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25919
25920         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25921         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25922
25923         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25924
25925 2009-03-08  Bruno Haible  <bruno@clisp.org>
25926
25927         Tests for module 'unicase/ulc-casecmp'.
25928         * modules/unicase/ulc-casecmp-tests: New file.
25929         * tests/unicase/test-ulc-casecmp1.sh: New file.
25930         * tests/unicase/test-ulc-casecmp2.sh: New file.
25931         * tests/unicase/test-ulc-casecmp.c: New file.
25932
25933         New module 'unicase/ulc-casecmp'.
25934         * lib/unicase.h (ulc_casecmp): New declaration.
25935         * lib/unicase/ulc-casecmp.c: New file.
25936         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25937         'const SRC_UNIT *'.
25938         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25939         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25940         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25941         * modules/unicase/ulc-casecmp: New file.
25942
25943         Tests for module 'unicase/u32-is-cased'.
25944         * modules/unicase/u32-is-cased-tests: New file.
25945         * tests/unicase/test-u32-is-cased.c: New file.
25946
25947         Tests for module 'unicase/u16-is-cased'.
25948         * modules/unicase/u16-is-cased-tests: New file.
25949         * tests/unicase/test-u16-is-cased.c: New file.
25950
25951         Tests for module 'unicase/u8-is-cased'.
25952         * modules/unicase/u8-is-cased-tests: New file.
25953         * tests/unicase/test-u8-is-cased.c: New file.
25954         * tests/unicase/test-is-cased.h: New file.
25955
25956         New module 'unicase/u32-is-cased'.
25957         * lib/unicase/u32-is-cased.c: New file.
25958         * modules/unicase/u32-is-cased: New file.
25959
25960         New module 'unicase/u16-is-cased'.
25961         * lib/unicase/u16-is-cased.c: New file.
25962         * modules/unicase/u16-is-cased: New file.
25963
25964         New module 'unicase/u8-is-cased'.
25965         * lib/unicase/u8-is-cased.c: New file.
25966         * lib/unicase/u-is-cased.h: New file.
25967         * modules/unicase/u8-is-cased: New file.
25968
25969         Tests for module 'unicase/u32-is-casefolded'.
25970         * modules/unicase/u32-is-casefolded-tests: New file.
25971         * tests/unicase/test-u32-is-casefolded.c: New file.
25972
25973         Tests for module 'unicase/u16-is-casefolded'.
25974         * modules/unicase/u16-is-casefolded-tests: New file.
25975         * tests/unicase/test-u16-is-casefolded.c: New file.
25976
25977         Tests for module 'unicase/u8-is-casefolded'.
25978         * modules/unicase/u8-is-casefolded-tests: New file.
25979         * tests/unicase/test-u8-is-casefolded.c: New file.
25980         * tests/unicase/test-is-casefolded.h: New file.
25981
25982         New module 'unicase/u32-is-casefolded'.
25983         * lib/unicase/u32-is-casefolded.c: New file.
25984         * modules/unicase/u32-is-casefolded: New file.
25985
25986         New module 'unicase/u16-is-casefolded'.
25987         * lib/unicase/u16-is-casefolded.c: New file.
25988         * modules/unicase/u16-is-casefolded: New file.
25989
25990         New module 'unicase/u8-is-casefolded'.
25991         * lib/unicase/u8-is-casefolded.c: New file.
25992         * modules/unicase/u8-is-casefolded: New file.
25993
25994         Tests for module 'unicase/u32-is-titlecase'.
25995         * modules/unicase/u32-is-titlecase-tests: New file.
25996         * tests/unicase/test-u32-is-titlecase.c: New file.
25997
25998         Tests for module 'unicase/u16-is-titlecase'.
25999         * modules/unicase/u16-is-titlecase-tests: New file.
26000         * tests/unicase/test-u16-is-titlecase.c: New file.
26001
26002         Tests for module 'unicase/u8-is-titlecase'.
26003         * modules/unicase/u8-is-titlecase-tests: New file.
26004         * tests/unicase/test-u8-is-titlecase.c: New file.
26005         * tests/unicase/test-is-titlecase.h: New file.
26006
26007         New module 'unicase/u32-is-titlecase'.
26008         * lib/unicase/u32-is-titlecase.c: New file.
26009         * modules/unicase/u32-is-titlecase: New file.
26010
26011         New module 'unicase/u16-is-titlecase'.
26012         * lib/unicase/u16-is-titlecase.c: New file.
26013         * modules/unicase/u16-is-titlecase: New file.
26014
26015         New module 'unicase/u8-is-titlecase'.
26016         * lib/unicase/u8-is-titlecase.c: New file.
26017         * modules/unicase/u8-is-titlecase: New file.
26018
26019         Tests for module 'unicase/u32-is-lowercase'.
26020         * modules/unicase/u32-is-lowercase-tests: New file.
26021         * tests/unicase/test-u32-is-lowercase.c: New file.
26022
26023         Tests for module 'unicase/u16-is-lowercase'.
26024         * modules/unicase/u16-is-lowercase-tests: New file.
26025         * tests/unicase/test-u16-is-lowercase.c: New file.
26026
26027         Tests for module 'unicase/u8-is-lowercase'.
26028         * modules/unicase/u8-is-lowercase-tests: New file.
26029         * tests/unicase/test-u8-is-lowercase.c: New file.
26030         * tests/unicase/test-is-lowercase.h: New file.
26031
26032         New module 'unicase/u32-is-lowercase'.
26033         * lib/unicase/u32-is-lowercase.c: New file.
26034         * modules/unicase/u32-is-lowercase: New file.
26035
26036         New module 'unicase/u16-is-lowercase'.
26037         * lib/unicase/u16-is-lowercase.c: New file.
26038         * modules/unicase/u16-is-lowercase: New file.
26039
26040         New module 'unicase/u8-is-lowercase'.
26041         * lib/unicase/u8-is-lowercase.c: New file.
26042         * modules/unicase/u8-is-lowercase: New file.
26043
26044         Tests for module 'unicase/u32-is-uppercase'.
26045         * modules/unicase/u32-is-uppercase-tests: New file.
26046         * tests/unicase/test-u32-is-uppercase.c: New file.
26047
26048         Tests for module 'unicase/u16-is-uppercase'.
26049         * modules/unicase/u16-is-uppercase-tests: New file.
26050         * tests/unicase/test-u16-is-uppercase.c: New file.
26051
26052         Tests for module 'unicase/u8-is-uppercase'.
26053         * modules/unicase/u8-is-uppercase-tests: New file.
26054         * tests/unicase/test-u8-is-uppercase.c: New file.
26055         * tests/unicase/test-is-uppercase.h: New file.
26056
26057         New module 'unicase/u32-is-uppercase'.
26058         * lib/unicase/u32-is-uppercase.c: New file.
26059         * modules/unicase/u32-is-uppercase: New file.
26060
26061         New module 'unicase/u16-is-uppercase'.
26062         * lib/unicase/u16-is-uppercase.c: New file.
26063         * modules/unicase/u16-is-uppercase: New file.
26064
26065         New module 'unicase/u8-is-uppercase'.
26066         * lib/unicase/u8-is-uppercase.c: New file.
26067         * modules/unicase/u8-is-uppercase: New file.
26068
26069         New module 'unicase/u32-is-invariant'.
26070         * lib/unicase/u32-is-invariant.c: New file.
26071         * modules/unicase/u32-is-invariant: New file.
26072
26073         New module 'unicase/u16-is-invariant'.
26074         * lib/unicase/u16-is-invariant.c: New file.
26075         * modules/unicase/u16-is-invariant: New file.
26076
26077         New module 'unicase/u8-is-invariant'.
26078         * lib/unicase/u8-is-invariant.c: New file.
26079         * lib/unicase/invariant.h: New file.
26080         * lib/unicase/u-is-invariant.h: New file.
26081         * modules/unicase/u8-is-invariant: New file.
26082
26083         Tests for module 'unicase/u32-casecoll'.
26084         * modules/unicase/u32-casecoll-tests: New file.
26085         * tests/unicase/test-u32-casecoll.c: New file.
26086
26087         Tests for module 'unicase/u16-casecoll'.
26088         * modules/unicase/u16-casecoll-tests: New file.
26089         * tests/unicase/test-u16-casecoll.c: New file.
26090
26091         Tests for module 'unicase/u8-casecoll'.
26092         * modules/unicase/u8-casecoll-tests: New file.
26093         * tests/unicase/test-u8-casecoll.c: New file.
26094
26095         New module 'unicase/u32-casecoll'.
26096         * lib/unicase/u32-casecoll.c: New file.
26097         * modules/unicase/u32-casecoll: New file.
26098
26099         New module 'unicase/u16-casecoll'.
26100         * lib/unicase/u16-casecoll.c: New file.
26101         * modules/unicase/u16-casecoll: New file.
26102
26103         New module 'unicase/u8-casecoll'.
26104         * lib/unicase/u8-casecoll.c: New file.
26105         * lib/unicase/u-casecoll.h: New file.
26106         * modules/unicase/u8-casecoll: New file.
26107
26108         New module 'unicase/u32-casexfrm'.
26109         * lib/unicase/u32-casexfrm.c: New file.
26110         * modules/unicase/u32-casexfrm: New file.
26111
26112         New module 'unicase/u16-casexfrm'.
26113         * lib/unicase/u16-casexfrm.c: New file.
26114         * modules/unicase/u16-casexfrm: New file.
26115
26116         New module 'unicase/u8-casexfrm'.
26117         * lib/unicase/u8-casexfrm.c: New file.
26118         * lib/unicase/u-casexfrm.h: New file.
26119         * modules/unicase/u8-casexfrm: New file.
26120
26121         Tests for module 'unicase/u32-casecmp'.
26122         * modules/unicase/u32-casecmp-tests: New file.
26123         * tests/unicase/test-u32-casecmp.c: New file.
26124
26125         Tests for module 'unicase/u16-casecmp'.
26126         * modules/unicase/u16-casecmp-tests: New file.
26127         * tests/unicase/test-u16-casecmp.c: New file.
26128
26129         Tests for module 'unicase/u8-casecmp'.
26130         * modules/unicase/u8-casecmp-tests: New file.
26131         * tests/unicase/test-u8-casecmp.c: New file.
26132         * tests/unicase/test-casecmp.h: New file.
26133
26134         New module 'unicase/u32-casecmp'.
26135         * lib/unicase/u32-casecmp.c: New file.
26136         * modules/unicase/u32-casecmp: New file.
26137
26138         New module 'unicase/u16-casecmp'.
26139         * lib/unicase/u16-casecmp.c: New file.
26140         * modules/unicase/u16-casecmp: New file.
26141
26142         New module 'unicase/u8-casecmp'.
26143         * lib/unicase/u8-casecmp.c: New file.
26144         * lib/unicase/u-casecmp.h: New file.
26145         * modules/unicase/u8-casecmp: New file.
26146
26147         Tests for module 'unicase/u32-casefold'.
26148         * modules/unicase/u32-casefold-tests: New file.
26149         * tests/unicase/test-u32-casefold.c: New file.
26150
26151         Tests for module 'unicase/u16-casefold'.
26152         * modules/unicase/u16-casefold-tests: New file.
26153         * tests/unicase/test-u16-casefold.c: New file.
26154
26155         Tests for module 'unicase/u8-casefold'.
26156         * modules/unicase/u8-casefold-tests: New file.
26157         * tests/unicase/test-u8-casefold.c: New file.
26158
26159         New module 'unicase/u32-casefold'.
26160         * lib/unicase/u32-casefold.c: New file.
26161         * modules/unicase/u32-casefold: New file.
26162
26163         New module 'unicase/u16-casefold'.
26164         * lib/unicase/u16-casefold.c: New file.
26165         * modules/unicase/u16-casefold: New file.
26166
26167         New module 'unicase/u8-casefold'.
26168         * lib/unicase/u8-casefold.c: New file.
26169         * lib/unicase/u-casefold.h: New file.
26170         * modules/unicase/u8-casefold: New file.
26171
26172         New module 'unicase/tocasefold'.
26173         * lib/unicase/casefold.h: New file.
26174         * lib/unicase/tocasefold.c: New file.
26175         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
26176         * modules/unicase/tocasefold: New file.
26177
26178         Tests for module 'unicase/u32-totitle'.
26179         * modules/unicase/u32-totitle-tests: New file.
26180         * tests/unicase/test-u32-totitle.c: New file.
26181
26182         Tests for module 'unicase/u16-totitle'.
26183         * modules/unicase/u16-totitle-tests: New file.
26184         * tests/unicase/test-u16-totitle.c: New file.
26185
26186         Tests for module 'unicase/u8-totitle'.
26187         * modules/unicase/u8-totitle-tests: New file.
26188         * tests/unicase/test-u8-totitle.c: New file.
26189
26190         New module 'unicase/u32-totitle'.
26191         * lib/unicase/u32-totitle.c: New file.
26192         * modules/unicase/u32-totitle: New file.
26193
26194         New module 'unicase/u16-totitle'.
26195         * lib/unicase/u16-totitle.c: New file.
26196         * modules/unicase/u16-totitle: New file.
26197
26198         New module 'unicase/u8-totitle'.
26199         * lib/unicase/u8-totitle.c: New file.
26200         * lib/unicase/u-totitle.h: New file.
26201         * modules/unicase/u8-totitle: New file.
26202
26203         Tests for module 'unicase/u32-tolower'.
26204         * modules/unicase/u32-tolower-tests: New file.
26205         * tests/unicase/test-u32-tolower.c: New file.
26206
26207         Tests for module 'unicase/u16-tolower'.
26208         * modules/unicase/u16-tolower-tests: New file.
26209         * tests/unicase/test-u16-tolower.c: New file.
26210
26211         Tests for module 'unicase/u8-tolower'.
26212         * modules/unicase/u8-tolower-tests: New file.
26213         * tests/unicase/test-u8-tolower.c: New file.
26214
26215         New module 'unicase/u32-tolower'.
26216         * lib/unicase/u32-tolower.c: New file.
26217         * modules/unicase/u32-tolower: New file.
26218
26219         New module 'unicase/u16-tolower'.
26220         * lib/unicase/u16-tolower.c: New file.
26221         * modules/unicase/u16-tolower: New file.
26222
26223         New module 'unicase/u8-tolower'.
26224         * lib/unicase/u8-tolower.c: New file.
26225         * modules/unicase/u8-tolower: New file.
26226
26227         Tests for module 'unicase/u32-toupper'.
26228         * modules/unicase/u32-toupper-tests: New file.
26229         * tests/unicase/test-u32-toupper.c: New file.
26230
26231         Tests for module 'unicase/u16-toupper'.
26232         * modules/unicase/u16-toupper-tests: New file.
26233         * tests/unicase/test-u16-toupper.c: New file.
26234
26235         Tests for module 'unicase/u8-toupper'.
26236         * modules/unicase/u8-toupper-tests: New file.
26237         * tests/unicase/test-u8-toupper.c: New file.
26238
26239         New module 'unicase/u32-toupper'.
26240         * lib/unicase/u32-toupper.c: New file.
26241         * modules/unicase/u32-toupper: New file.
26242
26243         New module 'unicase/u16-toupper'.
26244         * lib/unicase/u16-toupper.c: New file.
26245         * modules/unicase/u16-toupper: New file.
26246
26247         New module 'unicase/u8-toupper'.
26248         * lib/unicase/u8-toupper.c: New file.
26249         * modules/unicase/u8-toupper: New file.
26250
26251         New module 'unicase/u32-casemap'.
26252         * lib/unicase/u32-casemap.c: New file.
26253         * modules/unicase/u32-casemap: New file.
26254
26255         New module 'unicase/u16-casemap'.
26256         * lib/unicase/u16-casemap.c: New file.
26257         * modules/unicase/u16-casemap: New file.
26258
26259         New module 'unicase/u8-casemap'.
26260         * lib/unicase/unicasemap.h: New file.
26261         * lib/unicase/u8-casemap.c: New file.
26262         * lib/unicase/u-casemap.h: New file.
26263         * modules/unicase/u8-casemap: New file.
26264
26265         New module 'unicase/special-casing'.
26266         * lib/unicase/special-casing.h: New file.
26267         * lib/unicase/special-casing.c: New file.
26268         * lib/unicase/special-casing-table.gperf: New file, generated by
26269         gen-uni-tables.c.
26270         * modules/unicase/special-casing: New file.
26271
26272         Tests for module 'unicase/locale-language'.
26273         * modules/unicase/locale-language-tests: New file.
26274         * tests/unicase/test-locale-language.sh: New file.
26275         * tests/unicase/test-locale-language.c: New file.
26276
26277         New module 'unicase/locale-language'.
26278         * lib/unicase/locale-language.c: New file.
26279         * lib/unicase/locale-languages.gperf: New file.
26280         * modules/unicase/locale-language: New file.
26281
26282         Generate more tables for case conversion and case folding.
26283         * lib/gen-uni-tables.c (SCC_*): New enum items.
26284         (struct special_casing_rule): New type.
26285         (casing_rules, num_casing_rules, allocated_casing_rules): New
26286         variables.
26287         (add_casing_rule, fill_casing_rules): New functions.
26288         (struct casefold_rule): New type.
26289         (casefolding_rules, num_casefolding_rules,
26290         allocated_casefolding_rules): New variables.
26291         (fill_casefolding_rules): New function.
26292         (unicode_casefold): New variable.
26293         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
26294         sort_casing_rules, output_casing_rules): New functions.
26295         (main): Accept to more arguments: SpecialCasing.txt and
26296         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
26297         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
26298         Output mapping for casefolding.
26299
26300         * lib/unicase.h: Include stdbool.h, uninorm.h.
26301         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
26302         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
26303         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
26304         arguments.
26305         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
26306         resultp arguments.
26307         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
26308         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
26309         resultp arguments.
26310         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
26311         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
26312         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
26313         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
26314         declarations.
26315         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
26316
26317 2009-03-08  Bruno Haible  <bruno@clisp.org>
26318
26319         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26320         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
26321         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
26322         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26323
26324 2009-03-07  Bruno Haible  <bruno@clisp.org>
26325
26326         Adjust u*_normcmp, u*_normcoll API.
26327         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26328         u16_normcoll, u32_normcoll): Change failure conventions.
26329         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
26330         errno and return -1.
26331         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26332
26333 2009-03-07  Bruno Haible  <bruno@clisp.org>
26334
26335         Tests for module 'uninorm/u32-normcoll'.
26336         * modules/uninorm/u32-normcoll-tests: New file.
26337         * tests/uninorm/test-u32-normcoll.c: New file.
26338
26339         Tests for module 'uninorm/u16-normcoll'.
26340         * modules/uninorm/u16-normcoll-tests: New file.
26341         * tests/uninorm/test-u16-normcoll.c: New file.
26342
26343         Tests for module 'uninorm/u8-normcoll'.
26344         * modules/uninorm/u8-normcoll-tests: New file.
26345         * tests/uninorm/test-u8-normcoll.c: New file.
26346
26347 2009-03-07  Bruno Haible  <bruno@clisp.org>
26348
26349         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
26350         tests/uninorm/test-u32-normcmp.c.
26351         * tests/uninorm/test-u32-normcmp.c: Include it.
26352         (test_nonascii): New function, extracted from main. Add some more
26353         tests.
26354         (main): Invoke test_ascii and test_nonascii.
26355         * modules/uninorm/u32-normcmp-tests (Files): Add
26356         tests/uninorm/test-u32-normcmp.h.
26357         (Depends-on): Remove uninorm/u32-normcmp.
26358
26359         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
26360         tests/uninorm/test-u16-normcmp.c.
26361         * tests/uninorm/test-u16-normcmp.c: Include it.
26362         (test_nonascii): New function, extracted from main. Add some more
26363         tests.
26364         (main): Invoke test_ascii and test_nonascii.
26365         * modules/uninorm/u16-normcmp-tests (Files): Add
26366         tests/uninorm/test-u16-normcmp.h.
26367         (Depends-on): Remove uninorm/u16-normcmp.
26368
26369         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
26370         tests/uninorm/test-u8-normcmp.c.
26371         * tests/uninorm/test-u8-normcmp.c: Include it.
26372         (test_nonascii): New function, extracted from main. Add some more
26373         tests.
26374         (main): Invoke test_ascii and test_nonascii.
26375         * modules/uninorm/u8-normcmp-tests (Files): Add
26376         tests/uninorm/test-u8-normcmp.h.
26377         (Depends-on): Remove uninorm/u8-normcmp.
26378
26379 2009-03-07  Bruno Haible  <bruno@clisp.org>
26380
26381         New module 'uninorm/u32-normcoll'.
26382         * lib/uninorm/u32-normcoll.c: New file.
26383         * modules/uninorm/u32-normcoll: New file.
26384
26385         New module 'uninorm/u16-normcoll'.
26386         * lib/uninorm/u16-normcoll.c: New file.
26387         * modules/uninorm/u16-normcoll: New file.
26388
26389         New module 'uninorm/u8-normcoll'.
26390         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
26391         declarations.
26392         * lib/uninorm/u8-normcoll.c: New file.
26393         * lib/uninorm/u-normcoll.h: New file.
26394         * modules/uninorm/u8-normcoll: New file.
26395
26396         New module 'uninorm/u32-normxfrm'.
26397         * lib/uninorm/u32-normxfrm.c: New file.
26398         * modules/uninorm/u32-normxfrm: New file.
26399
26400         New module 'uninorm/u16-normxfrm'.
26401         * lib/uninorm/u16-normxfrm.c: New file.
26402         * modules/uninorm/u16-normxfrm: New file.
26403
26404         New module 'uninorm/u8-normxfrm'.
26405         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
26406         declarations.
26407         * lib/uninorm/u8-normxfrm.c: New file.
26408         * lib/uninorm/u-normxfrm.h: New file.
26409         * modules/uninorm/u8-normxfrm: New file.
26410
26411 2009-03-07  Bruno Haible  <bruno@clisp.org>
26412
26413         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
26414         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
26415         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
26416
26417 2009-03-07  Bruno Haible  <bruno@clisp.org>
26418
26419         New module 'memxfrm'.
26420         * lib/memxfrm.h: New file.
26421         * lib/memxfrm.c: New file.
26422         * modules/memxfrm: New file.
26423
26424 2009-03-07  Bruno Haible  <bruno@clisp.org>
26425
26426         New module 'memcmp2'.
26427         * lib/memcmp2.h: New file.
26428         * lib/memcmp2.c: New file.
26429         * modules/memcmp2: New file.
26430
26431 2009-03-07  Bruno Haible  <bruno@clisp.org>
26432
26433         Tests for module 'uninorm/decomposing-form'.
26434         * modules/uninorm/decomposing-form-tests: New file.
26435         * tests/uninorm/test-decomposing-form.c: New file.
26436
26437         New module 'uninorm/decomposing-form'.
26438         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
26439         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
26440         Add 'decomposing_variant' field.
26441         * lib/uninorm/decomposing-form.c: New file.
26442         * lib/uninorm/nfc.c (uninorm_nfc): Update.
26443         * lib/uninorm/nfd.c (uninorm_nfd): Update.
26444         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
26445         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
26446         * modules/uninorm/decomposing-form: New file.
26447         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
26448         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
26449
26450 2009-03-07  Bruno Haible  <bruno@clisp.org>
26451
26452         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
26453         strings.
26454
26455 2009-03-06  Bruno Haible  <bruno@clisp.org>
26456
26457         Tests for module 'uninorm/u32-normcmp'.
26458         * tests/uninorm/test-u32-normcmp.c: New file.
26459         * modules/uninorm/u32-normcmp-tests: New file.
26460
26461         Tests for module 'uninorm/u16-normcmp'.
26462         * tests/uninorm/test-u16-normcmp.c: New file.
26463         * modules/uninorm/u16-normcmp-tests: New file.
26464
26465         Tests for module 'uninorm/u8-normcmp'.
26466         * tests/uninorm/test-u8-normcmp.c: New file.
26467         * modules/uninorm/u8-normcmp-tests: New file.
26468
26469         New module 'uninorm/u32-normcmp'.
26470         * lib/uninorm/u32-normcmp.c: New file.
26471         * modules/uninorm/u32-normcmp: New file.
26472
26473         New module 'uninorm/u16-normcmp'.
26474         * lib/uninorm/u16-normcmp.c: New file.
26475         * modules/uninorm/u16-normcmp: New file.
26476
26477         New module 'uninorm/u8-normcmp'.
26478         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
26479         declarations.
26480         * lib/uninorm/u8-normcmp.c: New file.
26481         * lib/uninorm/u-normcmp.h: New file.
26482         * modules/uninorm/u8-normcmp: New file.
26483
26484 2009-03-06  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
26487         Reported by Eric Blake.
26488
26489 2009-03-06  Eric Blake  <ebb9@byu.net>
26490             Bruno Haible  <bruno@clisp.org>
26491
26492         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
26493         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
26494         condition.
26495         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26496         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
26497         condition.
26498         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26499
26500 2009-03-06  Eric Blake  <ebb9@byu.net>
26501
26502         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
26503         to avoid compiler warnings.
26504         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
26505
26506 2009-03-05  Bruno Haible  <bruno@clisp.org>
26507
26508         * tests/test-ftell.c (main): Disable test beyond end of file on
26509         FreeMiNT.
26510         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26511
26512 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
26513
26514         * lib/filevercmp.c: Move hidden files up in ordering.
26515         * tests/test-filevercmp.c: Add tests for hidden files.
26516
26517 2009-03-04  Bruno Haible  <bruno@clisp.org>
26518
26519         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
26520         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
26521         AM_CFLAGS.
26522         Reported by Simon Josefsson.
26523
26524 2009-03-03  Bruno Haible  <bruno@clisp.org>
26525
26526         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
26527         Reported by Simon Josefsson.
26528
26529         * doc/ld-version-script.texi: Update node reference.
26530
26531 2009-03-03  Bruno Haible  <bruno@clisp.org>
26532
26533         * modules/visibility (License): Change to 'unlimited'.
26534         Suggested by Simon Josefsson.
26535
26536 2009-03-03  Jim Meyering  <meyering@redhat.com>
26537
26538         unlinkdir: cannot_unlink_dir may modify process state
26539         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
26540         it's neither thread-safe nor appropriate for use in a library.
26541
26542 2009-03-03  Eric Blake  <ebb9@byu.net>
26543
26544         test-closein: silence test under Darwin
26545         * tests/test-closein.sh: Ignore stderr from cat, since we don't
26546         care if it dies from EPIPE or EBADF.
26547
26548 2009-03-03  Bruno Haible  <bruno@clisp.org>
26549
26550         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
26551         earlier.
26552         * doc/visibility.texi: Fix @node and @section.
26553
26554 2009-03-03  Simon Josefsson  <simon@josefsson.org>
26555
26556         * doc/gnulib.texi: Link to sections for ld version script and
26557         visibility.
26558         * doc/visibility.texi: Add @node and @section.
26559         * modules/ld-version-script: New module.
26560         * m4/ld-version-script.m4: New file.
26561         * doc/ld-version-script.texi: New file.
26562
26563 2009-03-02  David Lutterkort  <lutter@redhat.com>
26564
26565         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
26566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26567
26568 2009-03-02  Bruno Haible  <bruno@clisp.org>
26569
26570         * doc/visibility.texi: Mention libtool's -export-symbols option.
26571
26572 2009-03-02  Jim Meyering  <meyering@redhat.com>
26573
26574         announce-gen: new option: --no-print-checksums
26575         * build-aux/announce-gen (usage): Describe it.
26576         (print_checksums): Print a newline here, not in the [*] footnote.
26577         (main): Honor it.
26578
26579 2009-03-01  Bruno Haible  <bruno@clisp.org>
26580
26581         Use socklen_t in the native Windows replacements prototypes.
26582         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
26583         instead of 'int'.
26584         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26585         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26586         * modules/getsockopt (Depends-on): Add socklen.
26587         * modules/setsockopt (Depends-on): Add socklen.
26588
26589 2009-03-01  Bruno Haible  <bruno@clisp.org>
26590
26591         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
26592         least 4.2.
26593
26594 2009-03-01  Eric Blake  <ebb9@byu.net>
26595             Bruno Haible  <bruno@clisp.org>
26596
26597         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
26598         error messages.
26599         * lib/wait-process.c (wait_subprocess): Omit error message about
26600         deadly signal sent to the child of termsigp != NULL.
26601
26602 2009-03-01  Eric Blake  <ebb9@byu.net>
26603
26604         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
26605
26606 2009-03-01  Bruno Haible  <bruno@clisp.org>
26607
26608         Avoid a gcc warning.
26609         * tests/test-sched.c (b): Make global.
26610         Reported by Eric Blake.
26611
26612 2009-01-19  Martin Lambers  <marlam@marlam.de>
26613
26614         Provide POSIX semantics for socket timeout options on W32.
26615         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
26616         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
26617         * modules/setsockopt: Depend on sys_time module for struct timeval.
26618         * modules/getsockopt: Depend on sys_time module for struct timeval.
26619
26620 2009-03-01  Simon Josefsson  <simon@josefsson.org>
26621
26622         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
26623         __USE_GNU, for consistency with netdb.in.h.
26624         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26625
26626 2009-03-01  Bruno Haible  <bruno@clisp.org>
26627
26628         More support for FreeMiNT.
26629         * lib/fseeko.c (rpl_fseeko): Complete last commit.
26630         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26631
26632 2009-03-01  Bruno Haible  <bruno@clisp.org>
26633
26634         More support for FreeMiNT.
26635         * lib/fpurge.c (fpurge): Correct last commit.
26636         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26637
26638 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26639
26640         Fix unportable awk script in vc-list-files.
26641         * build-aux/vc-list-files: In the replacement awk script, use
26642         substr with a second argument of 1, not zero.
26643         Report by Simon Josefsson.
26644
26645 2009-02-28  Bruno Haible  <bruno@clisp.org>
26646
26647         More support for FreeMiNT.
26648         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
26649         to FreeMiNT today.
26650         * lib/fwriting.c (fwriting): Likewise.
26651         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
26652
26653 2009-02-28  Bruno Haible  <bruno@clisp.org>
26654
26655         * tests/test-freadseek.c (main): Disable test beyond end of file on
26656         FreeMiNT.
26657         * tests/test-ftello.c (main): Likewise.
26658         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26659
26660 2009-02-28  Bruno Haible  <bruno@clisp.org>
26661
26662         Add tentative support for FreeMiNT.
26663         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
26664         * lib/fpurge.c (fpurge): Likewise.
26665         * lib/freadable.c (freadable): Likewise.
26666         * lib/freading.c (freading): Likewise.
26667         * lib/freadptr.c (freadptr): Likewise.
26668         * lib/freadseek.c (freadptrinc): Likewise.
26669         * lib/fseeko.c (rpl_fseeko): Likewise.
26670         * lib/fseterr.c (fseterr): Likewise.
26671         * lib/fwritable.c (fwritable): Likewise.
26672         * lib/fwriting.c (fwriting): Likewise.
26673         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
26674         Hourihane.
26675         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26676
26677 2009-02-28  Bruno Haible  <bruno@clisp.org>
26678
26679         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
26680         SIGCHLD.
26681         Reported by Jim Meyering.
26682
26683 2009-02-28  Bruno Haible  <bruno@clisp.org>
26684
26685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
26686         Mention the results of these tests on various platforms.
26687         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
26688         order.
26689         * doc/posix-functions/printf.texi: Likewise.
26690         * doc/posix-functions/snprintf.texi: Likewise.
26691         * doc/posix-functions/sprintf.texi: Likewise.
26692         * doc/posix-functions/vfprintf.texi: Likewise.
26693         * doc/posix-functions/vprintf.texi: Likewise.
26694         * doc/posix-functions/vsnprintf.texi: Likewise.
26695         * doc/posix-functions/vsprintf.texi: Likewise.
26696         * doc/glibc-functions/obstack_printf.texi: Likewise.
26697         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26698
26699 2009-02-28  Bruno Haible  <bruno@clisp.org>
26700
26701         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
26702         Reported by Loïc Minier <lool@dooz.org>.
26703
26704 2009-02-27  Bruno Haible  <bruno@clisp.org>
26705
26706         * gnulib-tool (func_import): Make the sed expression used to create the
26707         sed script for updating the .gitignore file POSIX compliant.
26708         Reported by Eric Blake.
26709
26710 2009-02-27  Bruno Haible  <bruno@clisp.org>
26711
26712         * gnulib-tool (sed): Don't alias as "sed --posix".
26713         Reported by Eric Blake.
26714
26715 2009-02-27  Bruno Haible  <bruno@clisp.org>
26716
26717         Avoid test link errors.
26718         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26719         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26720         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26721         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26723
26724 2009-02-27  Bruno Haible  <bruno@clisp.org>
26725
26726         Avoid spurious "(cached)" in configure output.
26727         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26728         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26729         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26730         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26731         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26732         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26733         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26734         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26735         Reported by Eric Blake.
26736
26737 2009-02-27  Eric Blake  <ebb9@byu.net>
26738
26739         printf: fix regression in previous patch
26740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26741
26742 2009-02-27  Bruno Haible  <bruno@clisp.org>
26743
26744         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26745         value.
26746         * lib/stdint.in.h: Likewise.
26747         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26748
26749 2009-02-27  Eric Blake  <ebb9@byu.net>
26750
26751         doc: mention more functions added in cygwin 1.7.0
26752         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26753         addition.
26754         * doc/posix-functions/open_wmemstream.texi: Likewise.
26755         * doc/posix-functions/wcsnlen.texi: Likewise.
26756         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26757         * doc/posix-functions/wcstod.texi: Likewise.
26758         * doc/posix-functions/wcstof.texi: Likewise.
26759         * doc/posix-functions/wcstoimax.texi: Likewise.
26760         * doc/posix-functions/wcstok.texi: Likewise.
26761         * doc/posix-functions/wcstoumax.texi: Likewise.
26762
26763         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26764         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26765         * doc/posix-functions/fprintf.texi: Update.
26766         * doc/posix-functions/printf.texi: Update.
26767         * doc/posix-functions/snprintf.texi: Update.
26768         * doc/posix-functions/sprintf.texi: Update.
26769         * doc/posix-functions/vfprintf.texi: Update.
26770         * doc/posix-functions/vprintf.texi: Update.
26771         * doc/posix-functions/vsnprintf.texi: Update.
26772         * doc/posix-functions/vsprintf.texi: Update.
26773         * doc/glibc-functions/obstack_printf.texi: Update.
26774         * doc/glibc-functions/obstack_vprintf.texi: Update.
26775
26776 2009-02-26  Eric Blake  <ebb9@byu.net>
26777
26778         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26779         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26780         compilation bug by using runtime conversion.
26781         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26782         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26783         * modules/ceill-tests (Files): Use nan.h.
26784         * modules/floorl-tests (Files): Likewise.
26785         * modules/frexpl-tests (Files): Likewise.
26786         * modules/isnanl-tests (Files): Likewise.
26787         * modules/ldexpl-tests (Files): Likewise.
26788         * modules/roundl-tests (Files): Likewise.
26789         * modules/truncl-tests (Files): Likewise.
26790         * tests/test-ceill.c (main): Use a working NaN.
26791         * tests/test-floorl.c (main): Likewise.
26792         * tests/test-frexpl.c (main): Likewise.
26793         * tests/test-isnan.c (test_long_double): Likewise.
26794         * tests/test-isnanl.h (main): Likewise.
26795         * tests/test-ldexpl.h (main): Likewise.
26796         * tests/test-roundl.h (main): Likewise.
26797         * tests/test-truncl.h (main): Likewise.
26798         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26799
26800 2009-02-26  Eric Blake  <ebb9@byu.net>
26801             Bruno Haible  <bruno@clisp.org>
26802
26803         Work around a *printf bug with %ls on Solaris.
26804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26805         precision is specified, sprintf stops converting the wide string
26806         argument when the number of bytes that have been produced by this
26807         conversion equals or exceeds the precision.
26808         * doc/posix-functions/fprintf.texi: Update.
26809         * doc/posix-functions/printf.texi: Update.
26810         * doc/posix-functions/snprintf.texi: Update.
26811         * doc/posix-functions/sprintf.texi: Update.
26812         * doc/posix-functions/vfprintf.texi: Update.
26813         * doc/posix-functions/vprintf.texi: Update.
26814         * doc/posix-functions/vsnprintf.texi: Update.
26815         * doc/posix-functions/vsprintf.texi: Update.
26816         * doc/glibc-functions/obstack_printf.texi: Update.
26817         * doc/glibc-functions/obstack_vprintf.texi: Update.
26818
26819 2009-02-26  Eric Blake  <ebb9@byu.net>
26820
26821         stdlib: favor compiler check of random.h
26822         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26823         to avoid an ObjC random.h installed by Swarm.
26824
26825 2009-02-26  Bruno Haible  <bruno@clisp.org>
26826
26827         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26828         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26829         Reported by Gary V. Vaughan <gary@gnu.org>.
26830
26831 2009-02-26  Bruno Haible  <bruno@clisp.org>
26832
26833         Fix *printf behaviour regarding the %ls directive.
26834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26835         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26836         NEED_PRINTF_DIRECTIVE_LS.
26837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26838         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26840         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26841         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26842         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26843         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26848         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26852         * doc/posix-functions/fprintf.texi: Update.
26853         * doc/posix-functions/printf.texi: Update.
26854         * doc/posix-functions/snprintf.texi: Update.
26855         * doc/posix-functions/sprintf.texi: Update.
26856         * doc/posix-functions/vfprintf.texi: Update.
26857         * doc/posix-functions/vprintf.texi: Update.
26858         * doc/posix-functions/vsnprintf.texi: Update.
26859         * doc/posix-functions/vsprintf.texi: Update.
26860         * doc/glibc-functions/obstack_printf.texi: Update.
26861         * doc/glibc-functions/obstack_vprintf.texi: Update.
26862         Reported by Eric Blake.
26863
26864 2009-02-25  Bruno Haible  <bruno@clisp.org>
26865
26866         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26867         with known value.
26868         Reported by Gary V. Vaughan <gary@gnu.org>.
26869
26870 2009-02-25  Bruno Haible  <bruno@clisp.org>
26871
26872         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26873         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26874         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26875         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26876         Reported by Gary V. Vaughan <gary@gnu.org>.
26877
26878 2009-02-25  Bruno Haible  <bruno@clisp.org>
26879
26880         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26881         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26882         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26883         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26884         Reported by Gary V. Vaughan <gary@gnu.org>.
26885
26886 2009-02-25  Eric Blake  <ebb9@byu.net>
26887
26888         tests: skip fseek/ftell tests if ungetc is broken
26889         * m4/ungetc.m4: New file.
26890         * modules/fseek-tests: Split test, so ungetc dependency is
26891         separate from rest of test.
26892         * modules/fseeko-tests: Likewise.
26893         * modules/ftell-tests: Likewise.
26894         * modules/ftello-tests: Likewise.
26895         * tests/test-fseek.c (main): Isolate ungetc dependency.
26896         * tests/test-fseeko.c (main): Likewise.
26897         * tests/test-ftell.c (main): Likewise.
26898         * tests/test-ftello.c (main): Likewise.
26899         * tests/test-fseek2.sh: New file.
26900         * tests/test-fseeko2.sh: Likewise.
26901         * tests/test-ftell2.sh: Likewise.
26902         * tests/test-ftello2.sh: Likewise.
26903
26904 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26905
26906         test-getaddrinfo: fix usage of skip return code 77
26907         * tests/test-gettaddrinfo.c: Return skip code 77 only
26908         for first occurance of skip (4x77 is not 77)
26909
26910 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26911
26912         strtod: avoid C99 decl-after-statement
26913         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26914
26915 2009-02-24  Eric Blake  <ebb9@byu.net>
26916
26917         strtod: detect HP-UX 11.31 bug
26918         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26919         Reported by Gary V. Vaughan.
26920
26921 2009-02-23  Bruno Haible  <bruno@clisp.org>
26922
26923         Fix invalid read past end of memory block.
26924         * lib/vasnprintf.c (DCHAR_SET): Define.
26925         (local_wcslen): Define only when needed.
26926         (local_strnlen, local_wcsnlen): New functions.
26927         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26928         directives that involve a conversion ourselves.
26929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26930         wcsnlen, mbrtowc, wcrtomb.
26931         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26932         * tests/test-vasprintf-posix.c (test_function): Likewise.
26933         * tests/test-snprintf-posix.h (test_function): Likewise.
26934         * tests/test-sprintf-posix.h (test_function): Likewise.
26935         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26936
26937 2009-02-22  Bruno Haible  <bruno@clisp.org>
26938
26939         Implement new clarified decomposition of Hangul syllables.
26940         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26941         of type LTV, return only a pairwise decomposition.
26942         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26943         Likewise.
26944         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26945         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26946         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26947
26948 2009-02-22  Bruno Haible  <bruno@clisp.org>
26949
26950         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26951         zero-length results and shrink excess allocated memory.
26952         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26953         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26954         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26955         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26956         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26957         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26958         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26959         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26960         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26961         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26962         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26963         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26964
26965 2009-02-21  Bruno Haible  <bruno@clisp.org>
26966
26967         * doc/gnulib.texi: Include safe-alloc.texi earlier.
26968         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
26969         spaces after a period. Put a space between a macro name and its
26970         argument list. Trivial rewordings.
26971         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
26972         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26973         (main): Return 0 explicitly.
26974
26975 2009-02-21  Bruno Haible  <bruno@clisp.org>
26976
26977         Tests for module 'uninorm/filter'.
26978         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
26979         * modules/uninorm/filter-tests: New file.
26980
26981         New module 'uninorm/filter'.
26982         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
26983         uninorm_filter_flush, uninorm_filter_free): New declarations.
26984         * lib/uninorm/uninorm-filter.c: New file.
26985         * modules/uninorm/filter: New file.
26986
26987 2009-02-21  Bruno Haible  <bruno@clisp.org>
26988
26989         Tests for module 'uninorm/nfkc'.
26990         * tests/uninorm/test-nfkc.c: New file.
26991         * tests/uninorm/test-u8-nfkc.c: New file.
26992         * tests/uninorm/test-u16-nfkc.c: New file.
26993         * tests/uninorm/test-u32-nfkc.c: New file.
26994         * tests/uninorm/test-u32-nfkc-big.sh: New file.
26995         * tests/uninorm/test-u32-nfkc-big.c: New file.
26996         * modules/uninorm/nfkc-tests: New file.
26997
26998         New module 'uninorm/nfkc'.
26999         * lib/uninorm/nfkc.c: New file.
27000         * modules/uninorm/nfkc: New file.
27001
27002         Tests for module 'uninorm/nfkd'.
27003         * tests/uninorm/test-nfkd.c: New file.
27004         * tests/uninorm/test-u8-nfkd.c: New file.
27005         * tests/uninorm/test-u16-nfkd.c: New file.
27006         * tests/uninorm/test-u32-nfkd.c: New file.
27007         * tests/uninorm/test-u32-nfkd-big.sh: New file.
27008         * tests/uninorm/test-u32-nfkd-big.c: New file.
27009         * modules/uninorm/nfkd-tests: New file.
27010
27011         New module 'uninorm/nfkd'.
27012         * lib/uninorm/nfkd.c: New file.
27013         * modules/uninorm/nfkd: New file.
27014
27015         Tests for module 'uninorm/nfc'.
27016         * tests/uninorm/test-nfc.c: New file.
27017         * tests/uninorm/test-u8-nfc.c: New file.
27018         * tests/uninorm/test-u16-nfc.c: New file.
27019         * tests/uninorm/test-u32-nfc.c: New file.
27020         * tests/uninorm/test-u32-nfc-big.sh: New file.
27021         * tests/uninorm/test-u32-nfc-big.c: New file.
27022         * modules/uninorm/nfc-tests: New file.
27023
27024         New module 'uninorm/nfc'.
27025         * lib/uninorm/nfc.c: New file.
27026         * modules/uninorm/nfc: New file.
27027
27028         Tests for module 'uninorm/nfd'.
27029         * tests/uninorm/test-nfd.c: New file.
27030         * tests/uninorm/test-u8-nfd.c: New file.
27031         * tests/uninorm/test-u16-nfd.c: New file.
27032         * tests/uninorm/test-u32-nfd.c: New file.
27033         * tests/uninorm/test-u32-nfd-big.sh: New file.
27034         * tests/uninorm/test-u32-nfd-big.c: New file.
27035         * tests/uninorm/test-u32-normalize-big.h: New file.
27036         * tests/uninorm/test-u32-normalize-big.c: New file.
27037         * tests/uninorm/NormalizationTest.txt: New file, created from
27038         Unicode 5.1.0 NormalizationTest.txt.
27039         * modules/uninorm/nfd-tests: New file.
27040
27041         New module 'uninorm/nfd'.
27042         * lib/uninorm/nfd.c: New file.
27043         * modules/uninorm/nfd: New file.
27044
27045         New module 'uninorm/u32-normalize'.
27046         * lib/uninorm/u32-normalize.c: New file.
27047         * modules/uninorm/u32-normalize: New file.
27048
27049         New module 'uninorm/u16-normalize'.
27050         * lib/uninorm/u16-normalize.c: New file.
27051         * modules/uninorm/u16-normalize: New file.
27052
27053         New module 'uninorm/u8-normalize'.
27054         * lib/uninorm/u8-normalize.c: New file.
27055         * lib/uninorm/normalize-internal.h: New file.
27056         * lib/uninorm/u-normalize-internal.h: New file.
27057         * modules/uninorm/u8-normalize: New file.
27058
27059         New module 'uninorm/decompose-internal'.
27060         * lib/uninorm/decompose-internal.c: New file.
27061         * modules/uninorm/decompose-internal: New file.
27062
27063         Tests for module 'uninorm/composition'.
27064         * tests/uninorm/test-composition.c: New file.
27065         * modules/uninorm/composition-tests: New file.
27066
27067         New module 'uninorm/composition'.
27068         * lib/uninorm/composition.c: New file.
27069         * lib/uninorm/composition-table.gperf: New file, generated by
27070         gen-uni-tables.
27071         * modules/uninorm/composition: New file.
27072
27073         Tests for module 'uninorm/compat-decomposition'.
27074         * tests/uninorm/test-compat-decomposition.c: New file.
27075         * modules/uninorm/compat-decomposition-tests: New file.
27076
27077         New module 'uninorm/compat-decomposition'.
27078         * lib/uninorm/decompose-internal.h: New file.
27079         * lib/uninorm/compat-decomposition.c: New file.
27080         * modules/uninorm/compat-decomposition: New file.
27081
27082         Tests for module 'uninorm/canonical-decomposition'.
27083         * tests/uninorm/test-canonical-decomposition.c: New file.
27084         * modules/uninorm/canonical-decomposition-tests: New file.
27085
27086         New module 'uninorm/canonical-decomposition'.
27087         * lib/uninorm/canonical-decomposition.c: New file.
27088         * modules/uninorm/canonical-decomposition: New file.
27089
27090         Tests for module 'uninorm/decomposition'.
27091         * tests/uninorm/test-decomposition.c: New file.
27092         * modules/uninorm/decomposition-tests: New file.
27093
27094         New module 'uninorm/decomposition'.
27095         * lib/uninorm/decomposition.c: New file.
27096         * modules/uninorm/decomposition: New file.
27097
27098         New module 'uninorm/decomposition-table'.
27099         * lib/uninorm/decomposition-table.h: New file.
27100         * lib/uninorm/decomposition-table.c: New file.
27101         * lib/uninorm/decomposition-table1.h: New file, generated by
27102         gen-uni-tables.
27103         * lib/uninorm/decomposition-table2.h: New file, generated by
27104         gen-uni-tables.
27105         * modules/uninorm/decomposition-table: New file.
27106
27107         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
27108         (UC_DECOMP_*): New enumeration items.
27109         (get_decomposition): New function.
27110         (struct decomp_table): New type.
27111         (output_decomposition, output_decomposition_tables): New functions.
27112         (unicode_composition_exclusions): New variable.
27113         (fill_composition_exclusions, debug_output_composition_tables): New
27114         functions.
27115         (main): Accept one more argument. Invoke fill_composition_exclusions.
27116         Output decomposition and composition tables.
27117
27118         New module 'uninorm/base'.
27119         * lib/uninorm.h: New file.
27120         * lib/unictype.h: Update comment.
27121         * modules/uninorm/base: New file.
27122
27123 2009-02-21  David Lutterkort  <lutter@redhat.com>
27124
27125         Tests for module 'safe-alloc'.
27126         * tests/test-safe-alloc.c: New file.
27127         * modules/safe-alloc-tests: New file.
27128
27129         New module 'safe-alloc'.
27130         * lib/safe-alloc.h: New file.
27131         * lib/safe-alloc.c: New file.
27132         * m4/safe-alloc.m4: New file.
27133         * modules/safe-alloc: New file.
27134         * doc/safe-alloc.texi: New file.
27135         * doc/gnulib.texi: Include it.
27136         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27137         safe-alloc.
27138
27139 2009-02-18  Bruno Haible  <bruno@clisp.org>
27140
27141         Fix link error on non-glibc systems.
27142         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
27143         variable.
27144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27145
27146 2009-02-18  Jim Meyering  <meyering@redhat.com>
27147
27148         fts: avoid used-uninitialized error due to recent change
27149         * lib/fts.c (fts_read): Guard uses of the new member,
27150         parent->fts_n_dirs_remaining, since it's not relevant for
27151         the parent of a directory specified on the command-line.
27152
27153 2009-02-17  James Youngman  <jay@gnu.org>
27154             Bruno Haible  <bruno@clisp.org>
27155
27156         * m4/include_next.m4: Reformulate comment.
27157
27158 2009-02-16  Jim Meyering  <meyering@redhat.com>
27159
27160         fts: add #if guards so that the fts_lgpl module still builds
27161         * lib/fts.c: Guard just-added hash-table-using parts with
27162         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
27163         Reported by Simon Josefsson.
27164
27165 2009-02-15  Bruno Haible  <bruno@clisp.org>
27166
27167         * modules/array-mergesort-tests: New file.
27168         * tests/test-array-mergesort.c: New file.
27169
27170         New module 'array-mergesort'.
27171         * modules/array-mergesort: New file.
27172         * lib/array-mergesort.h: New file.
27173
27174 2009-02-15  Bruno Haible  <bruno@clisp.org>
27175
27176         Fix 2009-02-07 commit.
27177         * lib/gen-uni-tables.c (output_predicate, output_category,
27178         output_combclass, output_bidi_category, output_decimal_digit,
27179         output_digit, output_numeric, output_mirror, output_scripts,
27180         output_ident_category, output_simple_mapping): Fix format directives.
27181         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
27182
27183 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
27184
27185         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
27186         fixes are available from IBM.
27187
27188 2009-02-13  Jim Meyering  <meyering@redhat.com>
27189
27190         fts: arrange not to stat non-directories in more cases
27191         This makes GNU find (when it doesn't need to stat each file)
27192         *much* more efficient at traversing reiserfs file systems.
27193         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
27194         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
27195         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
27196         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
27197         (leaf_optimization_applies): New function.
27198         (LCO_hash, LCO_compare): New helper functions.
27199         (link_count_optimize_ok): New function.
27200         (fts_stat): Initialize new member (if dir).
27201         (fts_read): Decrement parent's fts_n_dirs_remaining count if
27202         we've just stat'ed a directory.  Skip the stat call when possible.
27203         ---
27204         Note this AFS-related exchange:
27205         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
27206         and note find's pioctl call in find/fstype.c.
27207         But that is necessary only if you want to enable the
27208         optimization for AFS, and for now, I don't.
27209
27210         fts: move a function definition "up" (no semantic change)
27211         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
27212         "up" to precede upcoming use of a related function.
27213
27214 2009-02-11  Jim Meyering  <meyering@redhat.com>
27215
27216         fts: correct internal computation of nlinks (optimization-related)
27217         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
27218         whether the current entry is a directory, so don't test it.
27219
27220 2009-02-10  Bruno Haible  <bruno@clisp.org>
27221
27222         Tests for module 'uniwbrk/ulc-wordbreaks'.
27223         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
27224         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
27225         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
27226
27227         Tests for module 'uniwbrk/u32-wordbreaks'.
27228         * modules/uniwbrk/u32-wordbreaks-tests: New file.
27229         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
27230
27231         Tests for module 'uniwbrk/u16-wordbreaks'.
27232         * modules/uniwbrk/u16-wordbreaks-tests: New file.
27233         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
27234
27235         Tests for module 'uniwbrk/u8-wordbreaks'.
27236         * modules/uniwbrk/u8-wordbreaks-tests: New file.
27237         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
27238
27239 2009-02-10  Bruno Haible  <bruno@clisp.org>
27240
27241         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
27242         property.
27243         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
27244         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
27245         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
27246
27247 2009-02-10  Simon Josefsson  <simon@josefsson.org>
27248
27249         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
27250         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
27251
27252 2009-02-10  Bruno Haible  <bruno@clisp.org>
27253
27254         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
27255         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
27256         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
27257         * lib/unilbrk/u8-possible-linebreaks.c: Update.
27258         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
27259         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
27260
27261 2009-02-09  Simon Josefsson  <simon@josefsson.org>
27262
27263         * lib/sockets.h (gl_fd_to_handle): New function.
27264
27265         * tests/test-sockets.c: Call gl_fd_to_handle.
27266
27267 2009-02-09  Bruno Haible  <bruno@clisp.org>
27268
27269         * doc/havelib.texi: Document the conventions on bi-arch systems.
27270
27271 2009-02-08  Bruno Haible  <bruno@clisp.org>
27272
27273         Document the AC_LIB_LINKFLAGS macro.
27274         * doc/havelib.texi: New file, mostly written on 2005-05-24.
27275         * doc/gnulib.texi: Include it.
27276
27277 2009-02-08  Bruno Haible  <bruno@clisp.org>
27278
27279         Fix wrong order of sections, compared to TOC.
27280         * doc/gnulib.texi: Include relocatable-maint.texi after the
27281         "Regular expressions" node, not before.
27282
27283 2009-02-08  Bruno Haible  <bruno@clisp.org>
27284
27285         Tests for module 'unicase/totitle'.
27286         * modules/unicase/totitle-tests: New file.
27287
27288         Tests for module 'unicase/tolower'.
27289         * modules/unicase/tolower-tests: New file.
27290
27291         Tests for module 'unicase/toupper'.
27292         * modules/unicase/toupper-tests: New file.
27293         * tests/unicase/test-mapping-part1.h: New file.
27294         * tests/unicase/test-mapping-part2.h: New file.
27295
27296         New module 'unicase/totitle'.
27297         * modules/unicase/totitle: New file.
27298         * lib/unicase/totitle.c: New file.
27299
27300         New module 'unicase/tolower'.
27301         * modules/unicase/tolower: New file.
27302         * lib/unicase/tolower.c: New file.
27303
27304         New module 'unicase/toupper'.
27305         * modules/unicase/toupper: New file.
27306         * lib/unicase/toupper.c: New file.
27307         * lib/unicase/simple-mapping.h: New file.
27308
27309         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
27310         (mapping_table): New structure.
27311         (output_simple_mapping): New function.
27312         (main): Invoke output_simple_mapping_test and output_simple_mapping.
27313         * modules/gen-uni-tables (Description): Update.
27314         * lib/unicase/toupper.h: New file, automatically generated by
27315         gen-uni-tables.
27316         * lib/unicase/tolower.h: New file, automatically generated by
27317         gen-uni-tables.
27318         * lib/unicase/totitle.h: New file, automatically generated by
27319         gen-uni-tables.
27320         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
27321         gen-uni-tables.
27322         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
27323         gen-uni-tables.
27324         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
27325         gen-uni-tables.
27326
27327         New module 'unicase/base'.
27328         * modules/unicase/base: New file.
27329         * lib/unicase.h: New file.
27330
27331 2009-02-08  Bruno Haible  <bruno@clisp.org>
27332
27333         New module 'uniwbrk/ulc-wordbreaks'.
27334         * modules/uniwbrk/ulc-wordbreaks: New file.
27335         * lib/uniwbrk/ulc-wordbreaks.c: New file.
27336
27337         New module 'uniwbrk/u32-wordbreaks'.
27338         * modules/uniwbrk/u32-wordbreaks: New file.
27339         * lib/uniwbrk/u32-wordbreaks.c: New file.
27340
27341         New module 'uniwbrk/u16-wordbreaks'.
27342         * modules/uniwbrk/u16-wordbreaks: New file.
27343         * lib/uniwbrk/u16-wordbreaks.c: New file.
27344
27345         New module 'uniwbrk/u8-wordbreaks'.
27346         * modules/uniwbrk/u8-wordbreaks: New file.
27347         * lib/uniwbrk/u8-wordbreaks.c: New file.
27348         * lib/uniwbrk/u-wordbreaks.h: New file.
27349
27350         New module 'uniwbrk/table'.
27351         * modules/uniwbrk/table: New file.
27352         * lib/uniwbrk/wbrktable.h: New file.
27353         * lib/uniwbrk/wbrktable.c: New file.
27354
27355         New module 'uniwbrk/wordbreak-property'.
27356         * modules/uniwbrk/wordbreak-property: New file.
27357         * lib/uniwbrk/wordbreak-property.c: New file.
27358
27359         * lib/gen-uni-tables.c (WBP_*): New enum items.
27360         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
27361         (unicode_org_wbp): New variable.
27362         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
27363         New functions.
27364         (wbp_table): New structure.
27365         (output_wbp, output_wbrk_tables): New functions.
27366         (main): Accept additional argument. Invoke fill_org_wbp,
27367         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
27368         output_wbrk_tables.
27369         * modules/gen-uni-tables (Description): Update.
27370         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
27371         gen-uni-tables.
27372
27373         New module 'uniwbrk/base'.
27374         * modules/uniwbrk/base: New file.
27375         * lib/uniwbrk.h: New file.
27376
27377 2009-02-08  Bruno Haible  <bruno@clisp.org>
27378
27379         Update to Unicode 5.1.0.
27380         * lib/gen-uni-tables.c (is_property_alphabetic): Include
27381         U+2185..U+2188.
27382         (is_property_default_ignorable_code_point): Don't include characters
27383         of category Cc or Cs and not-a-characters.
27384         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
27385         U+0D79, U+109E, U+109F, U+A60C.
27386         * lib/unictype/bidi_of.h: Regenerated.
27387         * lib/unictype/blocks.h: Regenerated.
27388         * lib/unictype/categ_C.h: Regenerated.
27389         * lib/unictype/categ_Cf.h: Regenerated.
27390         * lib/unictype/categ_Cn.h: Regenerated.
27391         * lib/unictype/categ_L.h: Regenerated.
27392         * lib/unictype/categ_Ll.h: Regenerated.
27393         * lib/unictype/categ_Lm.h: Regenerated.
27394         * lib/unictype/categ_Lo.h: Regenerated.
27395         * lib/unictype/categ_Lu.h: Regenerated.
27396         * lib/unictype/categ_M.h: Regenerated.
27397         * lib/unictype/categ_Mc.h: Regenerated.
27398         * lib/unictype/categ_Me.h: Regenerated.
27399         * lib/unictype/categ_Mn.h: Regenerated.
27400         * lib/unictype/categ_N.h: Regenerated.
27401         * lib/unictype/categ_Nd.h: Regenerated.
27402         * lib/unictype/categ_Nl.h: Regenerated.
27403         * lib/unictype/categ_No.h: Regenerated.
27404         * lib/unictype/categ_P.h: Regenerated.
27405         * lib/unictype/categ_Pd.h: Regenerated.
27406         * lib/unictype/categ_Pe.h: Regenerated.
27407         * lib/unictype/categ_Pf.h: Regenerated.
27408         * lib/unictype/categ_Pi.h: Regenerated.
27409         * lib/unictype/categ_Po.h: Regenerated.
27410         * lib/unictype/categ_Ps.h: Regenerated.
27411         * lib/unictype/categ_S.h: Regenerated.
27412         * lib/unictype/categ_Sk.h: Regenerated.
27413         * lib/unictype/categ_Sm.h: Regenerated.
27414         * lib/unictype/categ_So.h: Regenerated.
27415         * lib/unictype/categ_of.h: Regenerated.
27416         * lib/unictype/combining.h: Regenerated.
27417         * lib/unictype/ctype_alnum.h: Regenerated.
27418         * lib/unictype/ctype_alpha.h: Regenerated.
27419         * lib/unictype/ctype_graph.h: Regenerated.
27420         * lib/unictype/ctype_lower.h: Regenerated.
27421         * lib/unictype/ctype_print.h: Regenerated.
27422         * lib/unictype/ctype_punct.h: Regenerated.
27423         * lib/unictype/ctype_upper.h: Regenerated.
27424         * lib/unictype/decdigit.h: Regenerated.
27425         * lib/unictype/digit.h: Regenerated.
27426         * lib/unictype/mirror.h: Regenerated.
27427         * lib/unictype/numeric.h: Regenerated.
27428         * lib/unictype/pr_alphabetic.h: Regenerated.
27429         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
27430         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
27431         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
27432         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
27433         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
27434         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
27435         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
27436         * lib/unictype/pr_combining.h: Regenerated.
27437         * lib/unictype/pr_dash.h: Regenerated.
27438         * lib/unictype/pr_decimal_digit.h: Regenerated.
27439         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
27440         * lib/unictype/pr_deprecated.h: Regenerated.
27441         * lib/unictype/pr_diacritic.h: Regenerated.
27442         * lib/unictype/pr_extender.h: Regenerated.
27443         * lib/unictype/pr_format_control.h: Regenerated.
27444         * lib/unictype/pr_grapheme_base.h: Regenerated.
27445         * lib/unictype/pr_grapheme_extend.h: Regenerated.
27446         * lib/unictype/pr_grapheme_link.h: Regenerated.
27447         * lib/unictype/pr_id_continue.h: Regenerated.
27448         * lib/unictype/pr_id_start.h: Regenerated.
27449         * lib/unictype/pr_ideographic.h: Regenerated.
27450         * lib/unictype/pr_ignorable_control.h: Regenerated.
27451         * lib/unictype/pr_lowercase.h: Regenerated.
27452         * lib/unictype/pr_math.h: Regenerated.
27453         * lib/unictype/pr_numeric.h: Regenerated.
27454         * lib/unictype/pr_other_alphabetic.h: Regenerated.
27455         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
27456         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
27457         * lib/unictype/pr_other_id_continue.h: Regenerated.
27458         * lib/unictype/pr_other_lowercase.h: Regenerated.
27459         * lib/unictype/pr_other_math.h: Regenerated.
27460         * lib/unictype/pr_punctuation.h: Regenerated.
27461         * lib/unictype/pr_sentence_terminal.h: Regenerated.
27462         * lib/unictype/pr_soft_dotted.h: Regenerated.
27463         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
27464         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
27465         * lib/unictype/pr_unified_ideograph.h: Regenerated.
27466         * lib/unictype/pr_uppercase.h: Regenerated.
27467         * lib/unictype/pr_xid_continue.h: Regenerated.
27468         * lib/unictype/pr_xid_start.h: Regenerated.
27469         * lib/unictype/pr_zero_width.h: Regenerated.
27470         * lib/unictype/scripts.h: Regenerated.
27471         * lib/unictype/scripts_byname.gperf: Regenerated.
27472         * lib/unictype/sy_java_ident.h: Regenerated.
27473         * lib/unilbrk/lbrkprop1.h: Regenerated.
27474         * lib/unilbrk/lbrkprop2.h: Regenerated.
27475         * tests/unictype/test-categ_C.c: Regenerated.
27476         * tests/unictype/test-categ_Cf.c: Regenerated.
27477         * tests/unictype/test-categ_Cn.c: Regenerated.
27478         * tests/unictype/test-categ_L.c: Regenerated.
27479         * tests/unictype/test-categ_Ll.c: Regenerated.
27480         * tests/unictype/test-categ_Lm.c: Regenerated.
27481         * tests/unictype/test-categ_Lo.c: Regenerated.
27482         * tests/unictype/test-categ_Lu.c: Regenerated.
27483         * tests/unictype/test-categ_M.c: Regenerated.
27484         * tests/unictype/test-categ_Mc.c: Regenerated.
27485         * tests/unictype/test-categ_Me.c: Regenerated.
27486         * tests/unictype/test-categ_Mn.c: Regenerated.
27487         * tests/unictype/test-categ_N.c: Regenerated.
27488         * tests/unictype/test-categ_Nd.c: Regenerated.
27489         * tests/unictype/test-categ_Nl.c: Regenerated.
27490         * tests/unictype/test-categ_No.c: Regenerated.
27491         * tests/unictype/test-categ_P.c: Regenerated.
27492         * tests/unictype/test-categ_Pd.c: Regenerated.
27493         * tests/unictype/test-categ_Pe.c: Regenerated.
27494         * tests/unictype/test-categ_Pf.c: Regenerated.
27495         * tests/unictype/test-categ_Pi.c: Regenerated.
27496         * tests/unictype/test-categ_Po.c: Regenerated.
27497         * tests/unictype/test-categ_Ps.c: Regenerated.
27498         * tests/unictype/test-categ_S.c: Regenerated.
27499         * tests/unictype/test-categ_Sk.c: Regenerated.
27500         * tests/unictype/test-categ_Sm.c: Regenerated.
27501         * tests/unictype/test-categ_So.c: Regenerated.
27502         * tests/unictype/test-ctype_alnum.c: Regenerated.
27503         * tests/unictype/test-ctype_alpha.c: Regenerated.
27504         * tests/unictype/test-ctype_graph.c: Regenerated.
27505         * tests/unictype/test-ctype_lower.c: Regenerated.
27506         * tests/unictype/test-ctype_print.c: Regenerated.
27507         * tests/unictype/test-ctype_punct.c: Regenerated.
27508         * tests/unictype/test-ctype_upper.c: Regenerated.
27509         * tests/unictype/test-decdigit.h: Regenerated.
27510         * tests/unictype/test-digit.h: Regenerated.
27511         * tests/unictype/test-numeric.h: Regenerated.
27512         * tests/unictype/test-pr_alphabetic.c: Regenerated.
27513         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
27514         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
27515         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
27516         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
27517         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
27518         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
27519         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
27520         * tests/unictype/test-pr_combining.c: Regenerated.
27521         * tests/unictype/test-pr_dash.c: Regenerated.
27522         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
27523         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
27524         * tests/unictype/test-pr_deprecated.c: Regenerated.
27525         * tests/unictype/test-pr_diacritic.c: Regenerated.
27526         * tests/unictype/test-pr_extender.c: Regenerated.
27527         * tests/unictype/test-pr_format_control.c: Regenerated.
27528         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
27529         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
27530         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
27531         * tests/unictype/test-pr_id_continue.c: Regenerated.
27532         * tests/unictype/test-pr_id_start.c: Regenerated.
27533         * tests/unictype/test-pr_ideographic.c: Regenerated.
27534         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
27535         * tests/unictype/test-pr_lowercase.c: Regenerated.
27536         * tests/unictype/test-pr_math.c: Regenerated.
27537         * tests/unictype/test-pr_numeric.c: Regenerated.
27538         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
27539         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
27540         Regenerated.
27541         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
27542         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
27543         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
27544         * tests/unictype/test-pr_other_math.c: Regenerated.
27545         * tests/unictype/test-pr_punctuation.c: Regenerated.
27546         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
27547         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
27548         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
27549         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
27550         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
27551         * tests/unictype/test-pr_uppercase.c: Regenerated.
27552         * tests/unictype/test-pr_xid_continue.c: Regenerated.
27553         * tests/unictype/test-pr_xid_start.c: Regenerated.
27554         * tests/unictype/test-pr_zero_width.c: Regenerated.
27555
27556         Update to Unicode 5.1.0.
27557         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
27558         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
27559         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
27560         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
27561         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
27562         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
27563         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
27564         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
27565         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
27566         (nonspacing_table_ind): Update.
27567         * tests/uniwidth/test-uc_width2.sh: Update expected result.
27568
27569         Update to Unicode 5.1.0.
27570         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
27571         code transform.
27572         * lib/uniname/uniname.c (unicode_character_name,
27573         unicode_name_character): Add the range 0x1Fxxx to the code transform.
27574         * lib/uniname/uninames.h: Regenerated.
27575         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
27576
27577 2009-02-07  Bruno Haible  <bruno@clisp.org>
27578
27579         Merge gen-ctype and gen-lbrk into a single program.
27580         * lib/gen-uni-tables.c: New file, incorporating
27581         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
27582         Add directory prefixes to the names of the generated files.
27583         * lib/unictype/gen-ctype.c: Remove file.
27584         * lib/unilbrk/gen-lbrk.c: Remove file.
27585         * modules/gen-uni-tables: New file.
27586         * modules/unictype/gen-ctype: Remove file.
27587         * modules/unilbrk/gen-lbrk: Remove file.
27588
27589 2009-02-07  Bruno Haible  <bruno@clisp.org>
27590
27591         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
27592
27593         New module 'unistr/u32-strcoll'.
27594         * modules/unistr/u32-strcoll: New file.
27595         * lib/unistr/u32-strcoll.c: New file.
27596
27597         New module 'unistr/u16-strcoll'.
27598         * modules/unistr/u16-strcoll: New file.
27599         * lib/unistr/u16-strcoll.c: New file.
27600
27601         New module 'unistr/u8-strcoll'.
27602         * modules/unistr/u8-strcoll: New file.
27603         * lib/unistr/u8-strcoll.c: New file.
27604         * lib/unistr/u-strcoll.h: New file.
27605
27606 2009-02-07  Bruno Haible  <bruno@clisp.org>
27607
27608         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
27609         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27610         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27611         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
27612         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
27613         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
27614
27615 2009-02-07  Bruno Haible  <bruno@clisp.org>
27616
27617         Make 64-bit clean.
27618         * lib/unictype/gen-ctype.c (output_predicate, output_category,
27619         output_combclass, output_bidi_category, output_decimal_digit,
27620         output_digit, output_numeric, output_mirror, output_scripts,
27621         output_ident_category): Use proper width specifier in format strings.
27622
27623 2009-02-07  Bruno Haible  <bruno@clisp.org>
27624
27625         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
27626         failure behaviour.
27627
27628 2009-02-07  Jim Meyering  <meyering@redhat.com>
27629
27630         regex: avoid compilation failure with upcoming gcc-4.4
27631         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
27632         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
27633         "... error: integer overflow in preprocessor expression".
27634
27635 2009-02-05  Ben Pfaff  <blp@gnu.org>
27636
27637         Fix link errors on Windows when close module is used.
27638         * modules/close: Add $(LIB_CLOSE) to Link section.
27639         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
27640         $(LIB_CLOSE) on Windows.
27641
27642 2009-02-05  Jim Meyering  <meyering@redhat.com>
27643
27644         still avoid unused-parameter warnings, but do it cleanly
27645         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
27646         (get_fs_usage): Cast to void instead.
27647         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
27648         (dev_from_mount_options, read_file_system_list): Cast to void.
27649         Prompted by Bruno Haible.
27650
27651 2009-02-04  Jim Meyering  <meyering@redhat.com>
27652
27653         fsusage.c: correct copyright year
27654         * lib/fsusage.c: Reflect year in which the change is pushed into
27655
27656         avoid misc. warnings
27657         * lib/fsusage.c (UNUSED_PARAM): Define.
27658         (get_fs_usage): Mark parameter "disk" as unused.
27659         * lib/getugroups.c (getgrent): Use "void" in prototype.
27660         * lib/mountlist.c: Mark unused parameters.
27661         (read_file_system_list): Declare a local with "const".
27662         * lib/nanosleep.c (getnow): Declare static.
27663         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
27664
27665         dirfd: set errno upon failure
27666         * lib/dirfd.c: Include <errno.h>.
27667         Set errno to ENOTSUP when returning -1.
27668         * modules/dirfd (Depends-on): Add errno.
27669         Suggested by John Kodis <kodis@comcast.net>.
27670
27671 2009-02-01  Bruno Haible  <bruno@clisp.org>
27672
27673         Don't assume sizeof (long) >= sizeof (void *).
27674         * lib/memcmp.c: Include stdint.h.
27675         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
27676         srcp2 to 'const byte *'.
27677         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
27678         types to uintptr_t.
27679         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
27680         * modules/memcmp (Depends-on): Add stdint.
27681         Reported by Ozkan Sezer <sezeroz@gmail.com>.
27682
27683 2009-01-30  Eric Blake  <ebb9@byu.net>
27684
27685         fix more require-before-expand issues
27686         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
27687         expand, AC_PROG_AWK.
27688         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
27689
27690 2009-01-28  Eric Blake  <ebb9@byu.net>
27691
27692         version-etc: use consistent URL formatting
27693         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
27694         Improve formatting.  Use fputs for string without %.
27695
27696 2009-01-28  Jim Meyering  <meyering@redhat.com>
27697
27698         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
27699         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
27700         "underquoted definition of NAME" from autoconf-2.59.
27701
27702 2009-01-28  Bruno Haible  <bruno@clisp.org>
27703
27704         * doc/gnulib.texi: Add "Obsolete modules" to index.
27705
27706 2009-01-28  Jim Meyering  <meyering@redhat.com>
27707
27708         useless-if-before-free: recognize more variants
27709         * build-aux/useless-if-before-free: Also recognize e.g.,
27710         if (NULL != p) free (p);
27711
27712 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27713
27714         test-getaddrinfo: skip (don't fail) this test when there's no network
27715         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27716         on the presumption that it means you lack network access.
27717
27718 2009-01-26  Jim Meyering  <meyering@redhat.com>
27719
27720         fflush: avoid warnings on modern systems
27721         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27722         pos and result, into scopes where they're used.
27723
27724 2009-01-26  Eric Blake  <ebb9@byu.net>
27725
27726         Silence warning reintroduced by recent extensions patch.
27727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27728         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27729         autoconf.
27730
27731         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27732         * m4/00gnulib.m4: New file.
27733         * gnulib-tool (func_get_filelist): Always use it.
27734         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27735         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27736
27737 2009-01-25  Bruno Haible  <bruno@clisp.org>
27738
27739         Make test-quotearg work on MacOS X and AIX.
27740         * tests/test-quotearg.sh: New file.
27741         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27742         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27743         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27744         include <libintl.h>.
27745         (fake_locale): Remove variable.
27746         (gettext, dgettext, dcgettext): Remove functions.
27747         (main): Instead of setting a fake locale, set a real locale. Call
27748         textdomain and bindtextdomain.
27749         * modules/quotearg-tests (Files): Add the new files.
27750         (Depends-on): Add gettext, setenv, unsetenv.
27751         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27752         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27753         Augment TESTS_ENVIRONMENT.
27754
27755 2009-01-25  Bruno Haible  <bruno@clisp.org>
27756
27757         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27758         fr_FR.ISO8859-1 locale on MacOS X.
27759         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27760         ja_JP.eucJP locale on MacOS X.
27761         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27762         zh_CN.GB18030 locale on MacOS X.
27763
27764 2009-01-25  Bruno Haible  <bruno@clisp.org>
27765
27766         Avoid link errors on MacOS X 10.3.
27767         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27768         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27769
27770 2009-01-25  Bruno Haible  <bruno@clisp.org>
27771
27772         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27773         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27774         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27775         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27776         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27777         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27778         posix_spawnattr_init, posix_spawnattr_setsigmask,
27779         posix_spawnattr_setflags, posix_spawnattr_destroy.
27780
27781         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27782         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27783         * modules/execute (Files): Remove m4/posix_spawn.m4.
27784         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27785         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27786         posix_spawnattr_init, posix_spawnattr_setsigmask,
27787         posix_spawnattr_setflags, posix_spawnattr_destroy.
27788
27789 2009-01-25  Bruno Haible  <bruno@clisp.org>
27790
27791         * lib/glthread/threadlib.c: Include <stdlib.h>.
27792
27793 2009-01-25  Bruno Haible  <bruno@clisp.org>
27794
27795         * lib/glthread/threadlib.c (dummy): New declaration.
27796
27797 2009-01-25  Bruno Haible  <bruno@clisp.org>
27798
27799         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27800         multibyte characters also for the GB18030 encoding. Don't crash when
27801         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27802
27803 2009-01-25  Bruno Haible  <bruno@clisp.org>
27804
27805         Avoid redefining 'struct random_data' on OSF/1 5.1.
27806         * lib/stdlib.in.h: Include <random.h> if it exists.
27807         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27808         HAVE_RANDOM_H. Include <random.h> when testing whether
27809         'struct random_data' exists.
27810         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27811
27812 2009-01-25  Bruno Haible  <bruno@clisp.org>
27813
27814         Don't install charset.alias on MacOS X >= 10.3.
27815         * lib/localcharset.c (DARWIN7): New macro.
27816         (get_charset_aliases): Hardcode the result for Darwin7.
27817         * modules/localcharset (install-exec-local): Don't install
27818         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27819
27820 2009-01-25  Bruno Haible  <bruno@clisp.org>
27821
27822         Don't install charset.alias on mingw and Cygwin.
27823         * modules/localcharset (install-exec-local): Don't install
27824         charset.alias on mingw and Cygwin, if the file does not yet exist.
27825         The result for these platforms is hardcoded in localcharset.c.
27826
27827 2009-01-25  Bruno Haible  <bruno@clisp.org>
27828
27829         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27831         before requiring AC_USE_SYSTEM_EXTENSIONS.
27832
27833 2009-01-25  Jim Meyering  <meyering@redhat.com>
27834
27835         c-strtod: avoid warnings
27836         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27837         "assignment discards qualifiers from pointer target type" warnings.
27838
27839 2009-01-24  Bruno Haible  <bruno@clisp.org>
27840
27841         Add support for non-UTF-8 locales on MacOS X.
27842         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27843         canonical encodings. For Darwin 7 and newer, don't map traditional
27844         encodings to UTF-8.
27845         Reported by Vincent Lefevre <vincent@vinc17.org>
27846         at <http://savannah.gnu.org/bugs/?25235>.
27847
27848 2009-01-24  Bruno Haible  <bruno@clisp.org>
27849
27850         * doc/gnulib.texi (Obsolete modules): New section.
27851         Reported by Mike Frysinger <vapier@gentoo.org>.
27852
27853 2009-01-24  Bruno Haible  <bruno@clisp.org>
27854
27855         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27856         (%.dvi): New rule.
27857
27858 2009-01-24  Bruno Haible  <bruno@clisp.org>
27859
27860         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27861         Reported by Eric Blake.
27862
27863 2009-01-24  Bruno Haible  <bruno@clisp.org>
27864
27865         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27866         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27867         Reported by Gary V. Vaughan <gary@gnu.org>.
27868
27869 2009-01-24  Bruno Haible  <bruno@clisp.org>
27870
27871         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27872
27873 2009-01-23  Bruno Haible  <bruno@clisp.org>
27874
27875         Make c-strtod, c-strtold usable in libraries.
27876         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27877         (C_STRTOD): Call strdup instead of xstrdup.
27878         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27879         * modules/c-strtold (Depends-on): Likewise.
27880         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27881         * NEWS: Mention the change.
27882         Reported by Michael Gold <mgold@ncf.ca>.
27883
27884 2009-01-23  Jim Meyering  <meyering@redhat.com>
27885
27886         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27887         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27888         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27889
27890 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27891
27892         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27893         GNU CoreUtils.
27894         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27895         * modules/version-etc (Description): Update.
27896
27897 2009-01-22  Bruno Haible  <bruno@clisp.org>
27898
27899         Cache the C locale object.
27900         * lib/c-strtod.c (c_locale_cache): New variable.
27901         (c_locale): New function.
27902         (C_STRTOD): Use it, and don't call freelocale.
27903         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27904         Suggested by Paolo Bonzini.
27905
27906 2009-01-21  Bruno Haible  <bruno@clisp.org>
27907
27908         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27909         conditions other than overflow.
27910
27911 2009-01-21  Bruno Haible  <bruno@clisp.org>
27912
27913         * lib/c-strtod.c: Include errno.h.
27914         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27915         value from STRTOD_L and STRTOD.
27916
27917 2009-01-21  Bruno Haible  <bruno@clisp.org>
27918         and Jim Meyering  <meyering@redhat.com>
27919
27920         nanosleep: skip configure test (fail it) for apple universal builds
27921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27922         universal builds, assume that nanosleep does not work.
27923         * modules/nanosleep (Depends-on): Add multiarch.
27924
27925         mktime: skip configure test (fail it) for apple universal builds
27926         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27927         universal builds, assume that mktime does not work.
27928         * modules/mktime (Depends-on): Add multiarch.
27929
27930 2009-01-21  Eric Blake  <ebb9@byu.net>
27931
27932         multiarch: avoid expand-before-require warning
27933         * modules/multiarch (configure.ac): Require, rather than expand,
27934         gl_MULTIARCH.
27935         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27936         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27937         enforce that all clients require it.  Partial reversion of
27938         2008-12-29 patch.
27939
27940         error: avoid expand-before-require warning
27941         * modules/errno (configure.ac): Require, rather than expand,
27942         gl_HEADER_ERRNO_H.
27943         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27944         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27945         enforce that all clients require it.
27946
27947         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27948         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27949         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27950         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27951
27952 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27953
27954         Revert:
27955         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27956
27957         regex: do not depend on obsolete modules.
27958         * modules/regex: Remove memcmp and memmove.
27959
27960 2009-01-20  Bruno Haible  <bruno@clisp.org>
27961
27962         Make the 'link' module link on Windows NT 4.
27963         * lib/link.c (_WIN32_WINNT): Don't define.
27964         (CreateHardLinkFuncType): New type.
27965         (CreateHardLinkFunc, initialized): New variables.
27966         (initialize): New function.
27967         (link): Invoke CreateHardLink indirectly through the function pointer.
27968
27969 2009-01-20  Bruno Haible  <bruno@clisp.org>
27970
27971         Fix compilation failure on mingw.
27972         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
27973
27974 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
27975
27976         * doc/c-strtod.texi: Mention a couple of restrictions.
27977
27978 2009-01-20  Jim Meyering  <meyering@redhat.com>
27979
27980         gettimeofday: move more declarations out of functions
27981         * lib/gettimeofday.c: Move extern declarations of tzset and
27982         gmtime out of containing functions.  Prompted by Bruno Haible.
27983
27984 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27985
27986         regex: do not depend on obsolete modules.
27987         * modules/regex: Remove memcmp and memmove.
27988
27989 2009-01-19  Bruno Haible  <bruno@clisp.org>
27990
27991         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27992         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
27993         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27994         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
27995         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
27996
27997 2009-01-19  Bruno Haible  <bruno@clisp.org>
27998
27999         * tests/test-link.c: Include <errno.h>.
28000         (main): Exit with code 77 when a hard link cannot be created due to
28001         the file system.
28002         * tests/test-link.sh: Skip test when a hard link cannot be created due
28003         to the file system.
28004         Suggested by Eric Blake.
28005
28006 2009-01-19  Martin Lambers  <marlam@marlam.de>
28007
28008         * modules/link-tests: New file.
28009         * tests/test-link.sh: New file.
28010         * tests/test-link.c: New file.
28011
28012 2009-01-19  Eric Blake  <ebb9@byu.net>
28013
28014         doc: mention another function added in cygwin 1.7.0
28015         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
28016         Another new function in cygwin 1.7.
28017
28018 2009-01-19  Bruno Haible  <bruno@clisp.org>
28019
28020         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28021         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
28022         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
28023         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28024         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28025         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28026         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28027         * m4/md4.m4 (gl_MD4): Likewise.
28028         * m4/md5.m4 (gl_MD5): Likewise.
28029         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
28030         * m4/sha1.m4 (gl_SHA1): Likewise.
28031         * m4/sha256.m4 (gl_SHA256): Likewise.
28032         * m4/sha512.m4 (gl_SHA512): Likewise.
28033
28034 2009-01-19  Bruno Haible  <bruno@clisp.org>
28035
28036         * modules/uniname/uniname-tests (Depends-on): Add progname.
28037         * tests/uniname/test-uninames.c: Include progname.h.
28038         (main): Call set_program_name.
28039
28040         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
28041         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
28042         (main): Call set_program_name.
28043
28044         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
28045         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
28046         (main): Call set_program_name.
28047
28048         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
28049         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
28050         (main): Call set_program_name.
28051
28052         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
28053         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
28054         (main): Call set_program_name.
28055
28056         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
28057         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
28058         (main): Call set_program_name.
28059
28060         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
28061         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
28062         (main): Call set_program_name.
28063
28064         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
28065         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
28066         (main): Call set_program_name.
28067
28068         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
28069         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
28070         (main): Call set_program_name.
28071
28072 2009-01-19  Eric Blake  <ebb9@byu.net>
28073
28074         test-unistd: test previous patch
28075         * tests/test-unistd.c: Test *_FILENO macros.
28076
28077         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
28078         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28079         Guarantee a definition.
28080         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
28081         * modules/unistd-safer (Depends-on): Add dependency on unistd.
28082         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
28083         * lib/dup-safer.c (STDERR_FILENO): Likewise.
28084         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28085         Likewise.
28086         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
28087         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
28088         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28089         Likewise.
28090         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
28091         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
28092         (STDERR_FILENO): Likewise.
28093         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
28094         (STDERR_FILENO): Likewise.
28095         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
28096         (STDERR_FILENO): Likewise.
28097         Reported by Elbert Pol.
28098
28099 2009-01-19  Eric Blake  <ebb9@byu.net>
28100
28101         doc: mention more functions added in cygwin 1.7.0
28102         * doc/posix-functions/abort.texi (abort): Update wording related
28103         to cygwin.
28104         * doc/posix-functions/daylight.texi (daylight): Likewise.
28105         * doc/posix-functions/optarg.texi (optarg): Likewise.
28106         * doc/posix-functions/optarg.texi (opterr): Likewise.
28107         * doc/posix-functions/optarg.texi (optind): Likewise.
28108         * doc/posix-functions/optarg.texi (optopt): Likewise.
28109         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
28110         worked in 1.5.x, and was withdrawn in 1.7.
28111         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
28112         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
28113         cygwin versions.
28114         * doc/posix-functions/perror.texi (perror): Likewise.
28115         * doc/posix-functions/printf.texi (printf): Likewise.
28116         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
28117         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
28118         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
28119         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
28120         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28121         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
28122         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28123         Likewise.
28124         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28125         Likewise.
28126         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
28127         this function.
28128         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
28129         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
28130         Likewise.
28131         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
28132         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
28133         * doc/posix-functions/confstr.texi (confstr): Likewise.
28134         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
28135         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
28136         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
28137         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
28138         * doc/posix-functions/fputws.texi (fputws): Likewise.
28139         * doc/posix-functions/fwide.texi (fwide): Likewise.
28140         * doc/posix-functions/getwc.texi (getwc): Likewise.
28141         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
28142         * doc/posix-functions/putwc.texi (putwc): Likewise.
28143         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
28144         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
28145         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
28146         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
28147         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
28148         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
28149         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
28150         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
28151         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
28152         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
28153         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
28154
28155 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28156
28157         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
28158         * lib/ioctl.c: Include <sys/ioctl.h>.
28159
28160 2009-01-19  Simon Josefsson  <simon@josefsson.org>
28161
28162         * modules/getdate-tests (Depends-on): Add progname.
28163         * tests/test-getdate.c: Use progname module, to avoid link errors
28164         on non-glibc systems.
28165
28166 2009-01-18  Simon Josefsson  <simon@josefsson.org>
28167
28168         * modules/filenamecat-tests (Depends-on): Add progname.
28169         * modules/fstrcmp-tests (Depends-on): Likewise.
28170
28171         * tests/test-filenamecat.c: Use progname module, to avoid link
28172         errors on non-glibc systems.
28173         * tests/test-fstrcmp.c: Likewise.
28174
28175 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28176
28177         gettimeofday: avoid warning: nested extern declaration of 'localtime'
28178         * lib/gettimeofday.c: Move extern declaration out of function.
28179
28180 2009-01-18  Bruno Haible  <bruno@clisp.org>
28181
28182         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
28183         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
28184         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
28185
28186 2009-01-18  Bruno Haible  <bruno@clisp.org>
28187
28188         * lib/strftime.c (MEMPCPY): Remove unused macro.
28189         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
28190
28191 2009-01-18  Martin Lambers  <marlam@marlam.de>
28192
28193         New module 'link'.
28194         * lib/unistd.in.h (link): New declaration.
28195         * lib/link.c: New file.
28196         * m4/link.m4: New file.
28197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
28198         HAVE_LINK.
28199         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
28200         * modules/link: New file.
28201         * doc/posix-functions/link.texi: Mention the new module.
28202
28203 2009-01-18  Bruno Haible  <bruno@clisp.org>
28204
28205         * tests/test-avltree_list.c (main): Call set_program_name.
28206         * tests/test-avltree_oset.c (main): Likewise.
28207         * tests/test-obstack-printf.c: Include progname.h.
28208         (main): Call set_program_name.
28209         * tests/test-quotearg.c: Include progname.h.
28210         (main): Call set_program_name.
28211         * tests/test-xmemdup0.c: Include progname.h.
28212         (main): Call set_program_name.
28213
28214 2009-01-18  Bruno Haible  <bruno@clisp.org>
28215
28216         New module 'alphasort'.
28217         * lib/dirent.in.h (alphasort): New declaration.
28218         * lib/alphasort.c: New file, from glibc with modifications.
28219         * m4/alphasort.m4: New file.
28220         * modules/alphasort: New file.
28221         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
28222         HAVE_ALPHASORT.
28223         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
28224         HAVE_ALPHASORT.
28225         * doc/posix-functions/alphasort.texi: Mention the new module and the
28226         portability problems.
28227
28228 2009-01-18  Bruno Haible  <bruno@clisp.org>
28229
28230         New module 'scandir'.
28231         * lib/dirent.in.h (scandir): New declaration.
28232         * lib/scandir.c: New file, from glibc with modifications.
28233         * m4/scandir.m4: New file.
28234         * modules/scandir: New file.
28235         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
28236         HAVE_SCANDIR.
28237         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
28238         HAVE_SCANDIR.
28239         * doc/posix-functions/scandir.texi: Mention the new module and the
28240         portability problems.
28241
28242 2009-01-17  Bruno Haible  <bruno@clisp.org>
28243
28244         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
28245         Update documentation.
28246         (func_remove_suffix): Escape all dots in the suffix. Update
28247         documentation.
28248         (func_filter_filelist): Update documentation.
28249         Reported by Ralf Wildenhues.
28250
28251 2009-01-17  Bruno Haible  <bruno@clisp.org>
28252
28253         * modules/dprintf-posix-tests: New file.
28254         * tests/test-dprintf-posix.sh: New file.
28255         * tests/test-dprintf-posix.c: New file.
28256
28257         New modules 'dprintf', 'dprintf-posix'.
28258         * lib/stdio.in.h (dprintf): New declaration.
28259         * lib/dprintf.c: New file.
28260         * m4/dprintf.m4: New file.
28261         * m4/dprintf-posix.m4: New file.
28262         * modules/dprintf: New file.
28263         * modules/dprintf-posix: New file.
28264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
28265         HAVE_DPRINTF, REPLACE_DPRINTF.
28266         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
28267         HAVE_DPRINTF, REPLACE_DPRINTF.
28268         * doc/posix-functions/dprintf.texi: Mention the new modules.
28269
28270 2009-01-17  Bruno Haible  <bruno@clisp.org>
28271
28272         * modules/vdprintf-posix-tests: New file.
28273         * tests/test-vdprintf-posix.sh: New file.
28274         * tests/test-vdprintf-posix.c: New file.
28275
28276         New modules 'vdprintf', 'vdprintf-posix'.
28277         * lib/stdio.in.h (vdprintf): New declaration.
28278         * lib/vdprintf.c: New file.
28279         * m4/vdprintf.m4: New file.
28280         * m4/vdprintf-posix.m4: New file.
28281         * modules/vdprintf: New file.
28282         * modules/vdprintf-posix: New file.
28283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
28284         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28285         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
28286         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28287         * doc/posix-functions/vdprintf.texi: Mention the new modules.
28288
28289 2009-01-17  Bruno Haible  <bruno@clisp.org>
28290
28291         Fix replacement of fopen on mingw.
28292         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
28293         mingw.
28294
28295 2009-01-17  Bruno Haible  <bruno@clisp.org>
28296
28297         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
28298         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
28299
28300 2009-01-17  Bruno Haible  <bruno@clisp.org>
28301
28302         Avoid test-fflush2.sh failure on mingw.
28303         * tests/test-fflush2.c: Include binary-io.h.
28304         (main): Put standard input into binary mode.
28305         * modules/fflush-tests (Depends-on): Add binary-io.
28306
28307 2009-01-17  Bruno Haible  <bruno@clisp.org>
28308
28309         * lib/wchar.in.h: In another particular situation, include only the
28310         system's <wchar.h> file.
28311         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
28312         Reported by Albert Chin-A-Young <china@thewrittenword.com>
28313         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
28314
28315 2009-01-17  Bruno Haible  <bruno@clisp.org>
28316
28317         Support for stripping executables in --enable-relocatable.
28318         * build-aux/install-reloc: Expect one more argument, or an environment
28319         variable RELOC_STRIP_PROG. If set, strip the destination program and
28320         its wrapper.
28321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
28322         RELOC_STRIP_PROG.
28323         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
28324         to set RELOCATABLE_STRIP.
28325         * NEWS: Mention the new Makefile requirement.
28326
28327 2009-01-17  Bruno Haible  <bruno@clisp.org>
28328
28329         * build-aux/install-reloc: Remove debugging information left over by
28330         C compiler on MacOS X.
28331
28332 2009-01-17  Bruno Haible  <bruno@clisp.org>
28333
28334         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
28335         * lib/progreloc.c (find_executable): Fix type of pointer passed to
28336         _NSGetExecutablePath.
28337
28338 2009-01-16  Jim Meyering  <meyering@redhat.com>
28339
28340         strerror: avoid warnings about discarding "const"
28341         * lib/strerror.c (rpl_strerror): Instead of returning a const
28342         string from each and every "case", use a variable, and add a single
28343         cast after the switch.
28344
28345 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
28346
28347         * lib/arpa_inet.in.h: Add extern "C" block for C++.
28348
28349 2009-01-16  Bruno Haible  <bruno@clisp.org>
28350
28351         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
28352         array initializer syntax that also works in C++ mode.
28353         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28354
28355 2009-01-16  Jim Meyering  <meyering@redhat.com>
28356
28357         poll: suppress a warning
28358         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
28359         to ignore "...unsigned expression < 0 is always false" warnings.
28360
28361 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
28362
28363         poll: remove declarations of unused variables
28364         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
28365         sockbuf and optlen.
28366
28367 2009-01-15  Bruno Haible  <bruno@clisp.org>
28368
28369         Make fflush-after-ungetc POSIX compliant on BSD systems.
28370         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
28371         (clear_ungetc_buffer): Implement also for other systems.
28372         (rpl_fflush): On glibc systems, invoke
28373         clear_ungetc_buffer_preserving_position. Otherwise, invoke
28374         clear_ungetc_buffer after fetching the stream's position, not before.
28375
28376 2009-01-15  Bruno Haible  <bruno@clisp.org>
28377
28378         Make fflush-after-ungetc POSIX compliant on glibc systems.
28379         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
28380         after ungetc.
28381         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
28382         (rpl_fflush): On glibc systems, simply call the system's fflush
28383         function after clearing the ungetc buffer.
28384         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
28385         Instead, lseek only to the end of file, then use the system's fseeko
28386         for the rest. On glibc systems, reset the EOF indicator bit.
28387
28388 2009-01-15  Jim Meyering  <meyering@redhat.com>
28389
28390         openmp.m4: revert quote-adding change, for portability to older autoconf
28391         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
28392         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
28393         Simon Josefsson noticed the problem when using autoconf-2.61.
28394
28395 2009-01-15  Bruno Haible  <bruno@clisp.org>
28396
28397         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
28398         * tests/test-fflush2.c (ASSERT): Always fail.
28399         (main): Add two tests for fflush() after ungetc(), taking into account
28400         the Austin Group's clarification.
28401         Suggested by Eric Blake.
28402
28403 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
28404
28405         mktime.m4: remove K&R-style function prototypes
28406         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
28407         for the Sun C++ compiler.
28408
28409 2009-01-14  Bruno Haible  <bruno@clisp.org>
28410
28411         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
28412         while including <wchar.h>.
28413         * lib/wchar.in.h: In two particular situations on HP-UX, include only
28414         the system's <wchar.h> file.
28415         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28416
28417 2009-01-14  Bruno Haible  <bruno@clisp.org>
28418
28419         * m4/csharp.m4: Don't mention gettext on the serial number line.
28420         * m4/csharpexec.m4: Likewise.
28421         * m4/eaccess.m4: Likewise.
28422         * m4/javaexec.m4: Likewise.
28423         * m4/sig_atomic_t.m4: Likewise.
28424         * m4/tmpdir.m4: Likewise.
28425         * m4/intldir.m4: Bump gettext version.
28426         * m4/lib-ld.m4: Likewise.
28427
28428 2009-01-14  Bruno Haible  <bruno@clisp.org>
28429
28430         * lib/progname.c (set_program_name): Add more comments.
28431         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28432
28433 2009-01-14  Simon Josefsson  <simon@josefsson.org>
28434
28435         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
28436         were sys/stat.h does not define it.
28437
28438 2009-01-14  Jim Meyering  <meyering@redhat.com>
28439
28440         many *.m4 files: improve m4 quoting
28441         99% of this change was performed by running the following commands:
28442         git ls-files | grep '\.m4$' | xargs perl -pi \
28443           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
28444           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28445           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28446           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
28447         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
28448         The remainder were to add Copyright dates, increment serial numbers,
28449         undo some changes in comments, exclude m4/intl.m4, and add quotes
28450         around the "1" in ",1" where the unusual spacing prohibited the
28451         above regexps from doing the job.  For more details, see
28452         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
28453         * m4/acl.m4: Modified.
28454         * m4/afs.m4: Likewise.
28455         * m4/alloca.m4: Likewise.
28456         * m4/argp.m4: Likewise.
28457         * m4/argz.m4: Likewise.
28458         * m4/atexit.m4: Likewise.
28459         * m4/bison-i18n.m4: Likewise.
28460         * m4/bison.m4: Likewise.
28461         * m4/byteswap.m4: Likewise.
28462         * m4/c-stack.m4: Likewise.
28463         * m4/c-strtod.m4: Likewise.
28464         * m4/calloc.m4: Likewise.
28465         * m4/canonicalize-lgpl.m4: Likewise.
28466         * m4/chown.m4: Likewise.
28467         * m4/clock_time.m4: Likewise.
28468         * m4/codeset.m4: Likewise.
28469         * m4/copy-file.m4: Likewise.
28470         * m4/csharp.m4: Likewise.
28471         * m4/csharpcomp.m4: Likewise.
28472         * m4/csharpexec.m4: Likewise.
28473         * m4/d-ino.m4: Likewise.
28474         * m4/d-type.m4: Likewise.
28475         * m4/dirfd.m4: Likewise.
28476         * m4/double-slash-root.m4: Likewise.
28477         * m4/eaccess.m4: Likewise.
28478         * m4/eealloc.m4: Likewise.
28479         * m4/environ.m4: Likewise.
28480         * m4/errno_h.m4: Likewise.
28481         * m4/euidaccess.m4: Likewise.
28482         * m4/execute.m4: Likewise.
28483         * m4/fatal-signal.m4: Likewise.
28484         * m4/fchdir.m4: Likewise.
28485         * m4/fcntl_h.m4: Likewise.
28486         * m4/fileblocks.m4: Likewise.
28487         * m4/filenamecat.m4: Likewise.
28488         * m4/findprog.m4: Likewise.
28489         * m4/flexmember.m4: Likewise.
28490         * m4/fnmatch.m4: Likewise.
28491         * m4/fopen.m4: Likewise.
28492         * m4/fpending.m4: Likewise.
28493         * m4/fprintf-posix.m4: Likewise.
28494         * m4/free.m4: Likewise.
28495         * m4/frexp.m4: Likewise.
28496         * m4/frexpl.m4: Likewise.
28497         * m4/fsusage.m4: Likewise.
28498         * m4/ftruncate.m4: Likewise.
28499         * m4/gc-camellia.m4: Likewise.
28500         * m4/gc-random.m4: Likewise.
28501         * m4/gc.m4: Likewise.
28502         * m4/getaddrinfo.m4: Likewise.
28503         * m4/getcwd-abort-bug.m4: Likewise.
28504         * m4/getcwd-path-max.m4: Likewise.
28505         * m4/getdate.m4: Likewise.
28506         * m4/getdomainname.m4: Likewise.
28507         * m4/getgroups.m4: Likewise.
28508         * m4/gethostname.m4: Likewise.
28509         * m4/gethrxtime.m4: Likewise.
28510         * m4/getline.m4: Likewise.
28511         * m4/getloadavg.m4: Likewise.
28512         * m4/getndelim2.m4: Likewise.
28513         * m4/getpass.m4: Likewise.
28514         * m4/gettext.m4: Likewise.
28515         * m4/gettime.m4: Likewise.
28516         * m4/gettimeofday.m4: Likewise.
28517         * m4/gnulib-common.m4: Likewise.
28518         * m4/group-member.m4: Likewise.
28519         * m4/host-os.m4: Likewise.
28520         * m4/iconv.m4: Likewise.
28521         * m4/iconv_open.m4: Likewise.
28522         * m4/inet_ntop.m4: Likewise.
28523         * m4/inet_pton.m4: Likewise.
28524         * m4/inline.m4: Likewise.
28525         * m4/intldir.m4: Likewise.
28526         * m4/intlmacosx.m4: Likewise.
28527         * m4/intmax.m4: Likewise.
28528         * m4/intmax_t.m4: Likewise.
28529         * m4/inttypes.m4: Likewise.
28530         * m4/inttypes_h.m4: Likewise.
28531         * m4/inttypes-pri.m4: Likewise.
28532         * m4/isapipe.m4: Likewise.
28533         * m4/isnand.m4: Likewise.
28534         * m4/isnanf.m4: Likewise.
28535         * m4/isnanl.m4: Likewise.
28536         * m4/javacomp.m4: Likewise.
28537         * m4/javaexec.m4: Likewise.
28538         * m4/jm-winsz1.m4: Likewise.
28539         * m4/jm-winsz2.m4: Likewise.
28540         * m4/lchown.m4: Likewise.
28541         * m4/lcmessage.m4: Likewise.
28542         * m4/ldexpl.m4: Likewise.
28543         * m4/lib-ld.m4: Likewise.
28544         * m4/lib-link.m4: Likewise.
28545         * m4/libsigsegv.m4: Likewise.
28546         * m4/link-follow.m4: Likewise.
28547         * m4/localcharset.m4: Likewise.
28548         * m4/locale-fr.m4: Likewise.
28549         * m4/locale-ja.m4: Likewise.
28550         * m4/locale-tr.m4: Likewise.
28551         * m4/locale-zh.m4: Likewise.
28552         * m4/lock.m4: Likewise.
28553         * m4/longlong.m4: Likewise.
28554         * m4/ls-mntd-fs.m4: Likewise.
28555         * m4/lstat.m4: Likewise.
28556         * m4/malloc.m4: Likewise.
28557         * m4/mathl.m4: Likewise.
28558         * m4/mbrtowc.m4: Likewise.
28559         * m4/mbstate_t.m4: Likewise.
28560         * m4/mbswidth.m4: Likewise.
28561         * m4/memchr.m4: Likewise.
28562         * m4/memcmp.m4: Likewise.
28563         * m4/memcpy.m4: Likewise.
28564         * m4/memmem.m4: Likewise.
28565         * m4/memmove.m4: Likewise.
28566         * m4/mempcpy.m4: Likewise.
28567         * m4/memrchr.m4: Likewise.
28568         * m4/memset.m4: Likewise.
28569         * m4/minmax.m4: Likewise.
28570         * m4/mkdir-slash.m4: Likewise.
28571         * m4/mkdtemp.m4: Likewise.
28572         * m4/mktime.m4: Likewise.
28573         * m4/mmap-anon.m4: Likewise.
28574         * m4/mountlist.m4: Likewise.
28575         * m4/nanosleep.m4: Likewise.
28576         * m4/nls.m4: Likewise.
28577         * m4/nocrash.m4: Likewise.
28578         * m4/open.m4: Likewise.
28579         * m4/openat.m4: Likewise.
28580         * m4/openmp.m4: Likewise.
28581         * m4/pathmax.m4: Likewise.
28582         * m4/perl.m4: Likewise.
28583         * m4/physmem.m4: Likewise.
28584         * m4/pipe.m4: Likewise.
28585         * m4/po.m4: Likewise.
28586         * m4/poll.m4: Likewise.
28587         * m4/posixtm.m4: Likewise.
28588         * m4/posixver.m4: Likewise.
28589         * m4/printf-frexp.m4: Likewise.
28590         * m4/printf-frexpl.m4: Likewise.
28591         * m4/printf-posix.m4: Likewise.
28592         * m4/printf-posix-rpl.m4: Likewise.
28593         * m4/printf.m4: Likewise.
28594         * m4/progtest.m4: Likewise.
28595         * m4/putenv.m4: Likewise.
28596         * m4/readline.m4: Likewise.
28597         * m4/readlink.m4: Likewise.
28598         * m4/readutmp.m4: Likewise.
28599         * m4/realloc.m4: Likewise.
28600         * m4/regex.m4: Likewise.
28601         * m4/relocatable.m4: Likewise.
28602         * m4/relocatable-lib.m4: Likewise.
28603         * m4/rename-dest-slash.m4: Likewise.
28604         * m4/rename.m4: Likewise.
28605         * m4/rmdir-errno.m4: Likewise.
28606         * m4/rmdir.m4: Likewise.
28607         * m4/roundf.m4: Likewise.
28608         * m4/roundl.m4: Likewise.
28609         * m4/rpmatch.m4: Likewise.
28610         * m4/save-cwd.m4: Likewise.
28611         * m4/selinux-selinux-h.m4: Likewise.
28612         * m4/setenv.m4: Likewise.
28613         * m4/settime.m4: Likewise.
28614         * m4/sig2str.m4: Likewise.
28615         * m4/sig_atomic_t.m4: Likewise.
28616         * m4/signalblocking.m4: Likewise.
28617         * m4/signbit.m4: Likewise.
28618         * m4/sigpipe.m4: Likewise.
28619         * m4/sockets.m4: Likewise.
28620         * m4/sockpfaf.m4: Likewise.
28621         * m4/st_dm_mode.m4: Likewise.
28622         * m4/stat-time.m4: Likewise.
28623         * m4/stdbool.m4: Likewise.
28624         * m4/stdint.m4: Likewise.
28625         * m4/stdint_h.m4: Likewise.
28626         * m4/stpcpy.m4: Likewise.
28627         * m4/stpncpy.m4: Likewise.
28628         * m4/strcase.m4: Likewise.
28629         * m4/strchrnul.m4: Likewise.
28630         * m4/strcspn.m4: Likewise.
28631         * m4/strdup.m4: Likewise.
28632         * m4/strftime.m4: Likewise.
28633         * m4/strndup.m4: Likewise.
28634         * m4/strnlen.m4: Likewise.
28635         * m4/strpbrk.m4: Likewise.
28636         * m4/strptime.m4: Likewise.
28637         * m4/strsep.m4: Likewise.
28638         * m4/strtod.m4: Likewise.
28639         * m4/strtoimax.m4: Likewise.
28640         * m4/strtok_r.m4: Likewise.
28641         * m4/strtol.m4: Likewise.
28642         * m4/strtoll.m4: Likewise.
28643         * m4/strtoul.m4: Likewise.
28644         * m4/strtoull.m4: Likewise.
28645         * m4/strtoumax.m4: Likewise.
28646         * m4/strverscmp.m4: Likewise.
28647         * m4/threadlib.m4: Likewise.
28648         * m4/timegm.m4: Likewise.
28649         * m4/tm_gmtoff.m4: Likewise.
28650         * m4/tmpdir.m4: Likewise.
28651         * m4/tmpfile.m4: Likewise.
28652         * m4/tzset.m4: Likewise.
28653         * m4/uintmax_t.m4: Likewise.
28654         * m4/unlinkdir.m4: Likewise.
28655         * m4/unlocked-io.m4: Likewise.
28656         * m4/uptime.m4: Likewise.
28657         * m4/userspec.m4: Likewise.
28658         * m4/utimbuf.m4: Likewise.
28659         * m4/utime.m4: Likewise.
28660         * m4/utimes-null.m4: Likewise.
28661         * m4/utimes.m4: Likewise.
28662         * m4/vararrays.m4: Likewise.
28663         * m4/vasnprintf.m4: Likewise.
28664         * m4/vfprintf-posix.m4: Likewise.
28665         * m4/vprintf-posix.m4: Likewise.
28666         * m4/wait-process.m4: Likewise.
28667         * m4/wchar_t.m4: Likewise.
28668         * m4/wint_t.m4: Likewise.
28669         * m4/write-any-file.m4: Likewise.
28670         * m4/yield.m4: Likewise.
28671
28672 2009-01-13  Bruno Haible  <bruno@clisp.org>
28673
28674         Avoid test-copy-file.sh failures when ACL support insufficient.
28675         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
28676         TESTS_ENVIRONMENT.
28677         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
28678         Reported by Jim Meyering.
28679
28680 2009-01-13  Bruno Haible  <bruno@clisp.org>
28681
28682         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
28683         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
28684         * modules/unistdio/u8-printf-parse (Files): Likewise.
28685         * modules/unistdio/u32-printf-parse (Files): Likewise.
28686         * modules/unistdio/ulc-printf-parse (Files): Likewise.
28687
28688 2009-01-13  Simon Josefsson  <simon@josefsson.org>
28689
28690         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
28691         and m4/inttypes_h.m4 too.
28692
28693 2009-01-12  Eric Blake  <ebb9@byu.net>
28694
28695         tests: IRIX 6.2 cc can't compile -0.0 into .data
28696         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
28697         rather than at compile-time.
28698         * tests/test-floorl.c (minus_zero): Likewise.
28699         * tests/test-frexpl.c (minus_zero): Likewise.
28700         * tests/test-isnan.c (minus_zerol): Likewise.
28701         * tests/test-isnanl.h (minus_zero): Likewise.
28702         * tests/test-ldexpl.c (minus_zero): Likewise.
28703         * tests/test-roundl.c (minus_zero): Likewise.
28704         * tests/test-signbit.c (minus_zerol): Likewise.
28705         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28706         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28707         * tests/test-truncl.c (minus_zero): Likewise.
28708         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28709         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28710         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28711
28712 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28713
28714         regex: fix glibc bug 9697
28715         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28716         handling.
28717
28718 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28719
28720         regex: fix glibc bug 697
28721         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28722         being NULL also if there are no backreferences.
28723
28724 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28725
28726         regex: merge glibc changes
28727         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28728         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28729         re_string_skip_chars, re_string_reconstruct): Likewise.
28730         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28731
28732 2009-01-07  Jim Meyering  <meyering@redhat.com>
28733
28734         poll: filter through cppi
28735         * lib/poll.c: Indent cpp directives to reflect nesting.
28736
28737 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28738
28739         poll: don't return uninitialized
28740         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28741
28742 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28743
28744         avoid compile failure on AIX 6.1
28745         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28746         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28747
28748 2009-01-04  Jim Meyering  <meyering@redhat.com>
28749
28750         remove duplicate inclusion of <stdio.h>
28751         * tests/test-fprintf-posix.c: Likewise.
28752         * tests/test-printf-posix.c: Likewise.
28753         * tests/test-snprintf-posix.c: Likewise.
28754         * tests/test-sprintf-posix.c: Likewise.
28755         * tests/test-vasprintf-posix.c: Likewise.
28756         * tests/test-vfprintf-posix.c: Likewise.
28757         * tests/test-vprintf-posix.c: Likewise.
28758         * tests/test-vsnprintf-posix.c: Likewise.
28759         * tests/test-vsprintf-posix.c: Likewise.
28760
28761 2009-01-03  Jim Meyering  <meyering@redhat.com>
28762
28763         gnulib-tool: fix sed-based filtering
28764         * gnulib-tool (func_filter_filelist): Remove extra backslash
28765         in sed_fff_filter definition.
28766
28767 2009-01-02  Jim Meyering  <meyering@redhat.com>
28768
28769         strftime: avoid compilation failure on Solaris 2.6
28770         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28771         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28772         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28773         be available.  Reported by Tom G. Christensen.  Details in
28774         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28775
28776 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28777             Bruno Haible  <bruno@clisp.org>
28778
28779         Speed up gnulib-tool by doing more string processing through shell
28780         built-ins.
28781         * gnulib-tool (fast_func_append): New variable.
28782         (func_remove_prefix, func_remove_suffix): New functions.
28783         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28784         (func_filter_filelist): New function.
28785         (func_get_dependencies): Use func_remove_suffix instead of sed.
28786         (func_get_automake_snippet): Use func_filter_filelist instead of a
28787         subshell and sed invocation.
28788
28789 2009-01-01  Bruno Haible  <bruno@clisp.org>
28790
28791         Fix a security bug.
28792         * gnulib-tool (func_import, import, update): Don't allow the characters
28793         '"', '$', '`', '\' in macro arguments that become part of commands that
28794         are evaluated.
28795
28796 2009-01-01  Bruno Haible  <bruno@clisp.org>
28797
28798         * gnulib-tool (func_reset_sigpipe): Add more comments.
28799
28800 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28801
28802         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28803         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28804         already know the answer.
28805
28806 2009-01-01  Jim Meyering  <meyering@redhat.com>
28807
28808         * lib/version-etc.c (version_etc_va): Update copyright year.
28809
28810 2008-12-30  Bruno Haible  <bruno@clisp.org>
28811
28812         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28813         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28814         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28815
28816 2008-12-29  Eric Blake  <ebb9@byu.net>
28817
28818         multiarch: avoid autoconf AC_REQUIRE bug
28819         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28820         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28821         2.63 and older.
28822         Reported by Bruno Haible, and analyzed in
28823         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28824
28825 2008-12-29  Bruno Haible  <bruno@clisp.org>
28826
28827         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28828         files in subdirectories correctly.
28829         Reported by Ralf Wildenhues.
28830
28831 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28832
28833         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28834         rather than 'join FILE -', for Solaris join.
28835
28836 2008-12-29  Bruno Haible  <bruno@clisp.org>
28837
28838         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28839         quoting.
28840         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28841         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28842         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28843         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28844         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28845         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28846         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28847         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28848         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28849         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28850         * m4/nls.m4 (AM_NLS): Likewise.
28851         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28852         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28853         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28854         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28855         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28856         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28857         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28858         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28859         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28860         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28861         * m4/xsize.m4 (gl_XSIZE): Likewise.
28862         Suggested by Jim Meyering.
28863
28864 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28865
28866         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28867         * lib/parse-duration.c: use a switch instead of cascading if's.
28868
28869 2008-12-29  Eric Blake  <ebb9@byu.net>
28870
28871         wchar.h: supply WEOF on Irix 5.3
28872         * lib/wchar.in.h (wint_t): Also supply WEOF.
28873         * lib/wctype.in.h (wint_t): Likewise.
28874         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28875         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28876         Reported by Tom G. Christensen.
28877
28878 2008-12-26  Bruno Haible  <bruno@clisp.org>
28879
28880         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28881         i486, i586, i686.
28882
28883 2008-12-26  Bruno Haible  <bruno@clisp.org>
28884
28885         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28886
28887 2008-12-26  Bruno Haible  <bruno@clisp.org>
28888
28889         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28890         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28891         not __STDC_CONSTANT_MACROS.
28892         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28893
28894 2008-12-25  Bruno Haible  <bruno@clisp.org>
28895
28896         Add support for universal builds to vasnprintf.
28897         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28898         universal builds, guess no.
28899         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28900         * modules/vasprintf-posix (Depends-on): Likewise.
28901         * modules/fprintf-posix (Depends-on): Likewise.
28902         * modules/vfprintf-posix (Depends-on): Likewise.
28903         * modules/snprintf-posix (Depends-on): Likewise.
28904         * modules/vsnprintf-posix (Depends-on): Likewise.
28905         * modules/sprintf-posix (Depends-on): Likewise.
28906         * modules/vsprintf-posix (Depends-on): Likewise.
28907         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28908         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28910         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28911         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28912         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28913         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28914
28915         Add support for universal builds to <inttypes.h>.
28916         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28917         _SCNu64_PREFIX): In Apple
28918         universal builds, define directly, using _LP64.
28919         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28920         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28921         * modules/inttypes (Depends-on): Add multiarch.
28922         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28923
28924         Add support for universal builds to <stdint.h>.
28925         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28926         universal builds, define directly, using _LP64.
28927         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28928         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28929         and size_t.
28930         * modules/stdint (Depends-on): Add multiarch.
28931         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28932
28933         New module 'multiarch'.
28934         * modules/multiarch: New file.
28935         * m4/multiarch.m4: New file.
28936
28937 2008-12-25  Bruno Haible  <bruno@clisp.org>
28938
28939         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28940
28941 2008-12-25  Bruno Haible  <bruno@clisp.org>
28942
28943         * modules/btowc (License): Relicense under LGPLv2+.
28944         * modules/mbsinit (License): Likewise.
28945         * modules/mbrtowc (License): Likewise.
28946         * modules/wcrtomb (License): Likewise.
28947         * modules/streq (License): Likewise.
28948         Reported by David Lutterkort <lutter@redhat.com>.
28949
28950 2008-12-23  Bruno Haible  <bruno@clisp.org>
28951
28952         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28953
28954 2008-12-23  Bruno Haible  <bruno@clisp.org>
28955
28956         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28958         GETADDRINFO_LIB, not in LIBS.
28959         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28960         * modules/canon-host (Link): Likewise.
28961         * NEWS: Mention the change.
28962         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28963         GETADDRINFO_LIB.
28964
28965 2008-12-22  Bruno Haible  <bruno@clisp.org>
28966
28967         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
28968         * doc/posix-functions/iswalpha_l.texi: Likewise.
28969         * doc/posix-functions/iswblank_l.texi: Likewise.
28970         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28971         * doc/posix-functions/iswctype_l.texi: Likewise.
28972         * doc/posix-functions/iswdigit_l.texi: Likewise.
28973         * doc/posix-functions/iswgraph_l.texi: Likewise.
28974         * doc/posix-functions/iswlower_l.texi: Likewise.
28975         * doc/posix-functions/iswprint_l.texi: Likewise.
28976         * doc/posix-functions/iswpunct_l.texi: Likewise.
28977         * doc/posix-functions/iswspace_l.texi: Likewise.
28978         * doc/posix-functions/iswupper_l.texi: Likewise.
28979         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28980         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
28981         * doc/posix-functions/open_wmemstream.texi: Likewise.
28982         * doc/posix-functions/swscanf.texi: Likewise.
28983         * doc/posix-functions/towctrans_l.texi: Likewise.
28984         * doc/posix-functions/towlower.texi: Likewise.
28985         * doc/posix-functions/towlower_l.texi: Likewise.
28986         * doc/posix-functions/towupper.texi: Likewise.
28987         * doc/posix-functions/towupper_l.texi: Likewise.
28988         * doc/posix-functions/vfwprintf.texi: Likewise.
28989         * doc/posix-functions/vfwscanf.texi: Likewise.
28990         * doc/posix-functions/vswscanf.texi: Likewise.
28991         * doc/posix-functions/vwprintf.texi: Likewise.
28992         * doc/posix-functions/vwscanf.texi: Likewise.
28993         * doc/posix-functions/wcpcpy.texi: Likewise.
28994         * doc/posix-functions/wcpncpy.texi: Likewise.
28995         * doc/posix-functions/wcscasecmp.texi: Likewise.
28996         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
28997         * doc/posix-functions/wcscoll_l.texi: Likewise.
28998         * doc/posix-functions/wcsdup.texi: Likewise.
28999         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29000         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
29001         * doc/posix-functions/wcsnlen.texi: Likewise.
29002         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29003         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29004         * doc/posix-functions/wctrans_l.texi: Likewise.
29005         * doc/posix-functions/wctype_l.texi: Likewise.
29006         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
29007         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
29008         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
29009         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
29010         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
29011         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
29012         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
29013         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
29014         * doc/glibc-functions/wcschrnul.texi: Likewise.
29015         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29016         * doc/glibc-functions/wcstod_l.texi: Likewise.
29017         * doc/glibc-functions/wcstof_l.texi: Likewise.
29018         * doc/glibc-functions/wcstol_l.texi: Likewise.
29019         * doc/glibc-functions/wcstold_l.texi: Likewise.
29020         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29021         * doc/glibc-functions/wcstoq.texi: Likewise.
29022         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29023         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29024         * doc/glibc-functions/wcstouq.texi: Likewise.
29025         * doc/glibc-functions/wmempcpy.texi: Likewise.
29026
29027 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
29028             Eric Blake  <ebb9@byu.net>
29029             Paolo Bonzini  <bonzini@gnu.org>
29030             Bruno Haible  <bruno@clisp.org>
29031
29032         Make c-stack work on Haiku.
29033         * lib/c-stack.c (SA_ONSTACK): Define fallback.
29034         (c_stack_action): Use SA_ONSTACK flag.
29035
29036 2008-12-22  Bruno Haible  <bruno@clisp.org>
29037
29038         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
29039
29040 2008-12-22  Bruno Haible  <bruno@clisp.org>
29041
29042         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
29043         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
29044         being overridden.
29045         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
29046         New macros.
29047         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
29048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
29049         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
29050         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
29051
29052 2008-12-22  Bruno Haible  <bruno@clisp.org>
29053
29054         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
29055         from test code.
29056
29057 2008-12-22  Eric Blake  <ebb9@byu.net>
29058
29059         Avoid gcc warnings on cygwin.
29060         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
29061         Avoid unused variable.
29062         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
29063         Likewise.
29064
29065 2008-12-22  Bruno Haible  <bruno@clisp.org>
29066
29067         Remove HAVE_MBRTOWC conditionals.
29068         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
29069         (mbscasecmp): Assume mbrtowc function.
29070         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
29071         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
29072         * lib/mbschr.c: Include mbuiter.h unconditionally.
29073         (mbschr): Assume mbrtowc function.
29074         * lib/mbscspn.c: Include mbuiter.h unconditionally.
29075         (mbscspn): Assume mbrtowc function.
29076         * lib/mbslen.c: Include mbuiter.h unconditionally.
29077         (mbslen): Assume mbrtowc function.
29078         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
29079         (mbsncasecmp): Assume mbrtowc function.
29080         * lib/mbsnlen.c: Include mbiter.h unconditionally.
29081         (mbsnlen): Assume mbrtowc function.
29082         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
29083         (mbspbrk): Assume mbrtowc function.
29084         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
29085         (mbspcasecmp): Assume mbrtowc function.
29086         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
29087         (mbsrchr): Assume mbrtowc function.
29088         * lib/mbssep.c: Include mbuiter.h unconditionally.
29089         (mbssep): Assume mbrtowc function.
29090         * lib/mbsspn.c: Include mbuiter.h unconditionally.
29091         (mbsspn): Assume mbrtowc function.
29092         * lib/mbsstr.c: Include mbuiter.h unconditionally.
29093         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
29094         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
29095         (mbstok_r): Assume mbrtowc function.
29096         * lib/propername.c: Include mbuiter.h unconditionally.
29097         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
29098         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
29099         (trim2): Assume mbrtowc function.
29100         * lib/mbswidth.c (mbsinit): Remove fallback definition.
29101         (mbsnwidth): Assume mbrtowc function.
29102         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
29103         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
29104         fallback definitions.
29105         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
29106
29107 2008-12-22  Bruno Haible  <bruno@clisp.org>
29108
29109         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
29110
29111 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
29112
29113         * modules/regex: Request emulations for the mb*/wc* functions we need.
29114         * m4/regex.m4: Don't look for those functions here.
29115         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
29116
29117 2008-12-22  Bruno Haible  <bruno@clisp.org>
29118
29119         * modules/fnmatch (Depends-on): Remove duplicated dependency.
29120
29121 2008-12-21  Bruno Haible  <bruno@clisp.org>
29122
29123         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
29124         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
29125         (Include): Remove conditionalization.
29126         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
29127         (Include): Remove conditionalization.
29128         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
29129         (Include): Remove conditionalization.
29130         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
29131         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29132         * NEWS: Mention the change.
29133         Reported by Alan Hourihane <alanh@fairlite.co.uk>
29134         via Sergey Poznyakoff <gray@gnu.org.ua>.
29135
29136 2008-12-21  Bruno Haible  <bruno@clisp.org>
29137
29138         * MODULES.html.sh (Extended multibyte and wide character utilities
29139         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
29140         wcrtomb, wcsrtombs.
29141         (Support for systems lacking POSIX:2008): Add accept, bind, close,
29142         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
29143         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
29144         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
29145
29146 2008-12-21  Bruno Haible  <bruno@clisp.org>
29147
29148         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
29149
29150 2008-12-21  Bruno Haible  <bruno@clisp.org>
29151
29152         * modules/wcsnrtombs-tests: New file.
29153         * tests/test-wcsnrtombs1.sh: New file.
29154         * tests/test-wcsnrtombs2.sh: New file.
29155         * tests/test-wcsnrtombs3.sh: New file.
29156         * tests/test-wcsnrtombs4.sh: New file.
29157         * tests/test-wcsnrtombs.c: New file.
29158
29159         New module 'wcsnrtombs'.
29160         * lib/wchar.in.h (wcsnrtombs): New declaration.
29161         * lib/wcsnrtombs.c: New file.
29162         * lib/wcsrtombs-state.c: New file.
29163         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
29164         (internal_state): Remove variable.
29165         * m4/wcsnrtombs.m4: New file.
29166         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
29167         compilation units.
29168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
29169         HAVE_WCSNRTOMBS.
29170         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
29171         HAVE_WCSNRTOMBS.
29172         * modules/wcsnrtombs: New file.
29173         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
29174         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
29175
29176 2008-12-21  Bruno Haible  <bruno@clisp.org>
29177
29178         * modules/wcsrtombs-tests: New file.
29179         * tests/test-wcsrtombs1.sh: New file.
29180         * tests/test-wcsrtombs2.sh: New file.
29181         * tests/test-wcsrtombs3.sh: New file.
29182         * tests/test-wcsrtombs4.sh: New file.
29183         * tests/test-wcsrtombs.c: New file.
29184
29185         New module 'wcsrtombs'.
29186         * lib/wchar.in.h (wcsrtombs): New declaration.
29187         * lib/wcsrtombs.c: New file.
29188         * m4/wcsrtombs.m4: New file.
29189         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
29190         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29191         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
29192         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29193         * modules/wcsrtombs: New file.
29194         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
29195         bugs.
29196
29197 2008-12-21  Bruno Haible  <bruno@clisp.org>
29198
29199         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
29200         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
29201         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
29202         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
29203         if not correct.
29204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
29205         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
29206         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29207         m4/locale-zh.m4, m4/codeset.m4.
29208         * doc/posix-functions/wcrtomb.texi: Document the bug.
29209
29210 2008-12-21  Bruno Haible  <bruno@clisp.org>
29211
29212         Work around a btowc() bug on IRIX 6.5.
29213         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
29214         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
29215         REPLACE_WTOBC if not.
29216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
29217         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
29218         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
29219
29220 2008-12-21  Bruno Haible  <bruno@clisp.org>
29221
29222         * modules/wcrtomb-tests: New file.
29223         * tests/test-wcrtomb.sh: New file.
29224         * tests/test-wcrtomb.c: New file.
29225
29226         New module 'wcrtomb'.
29227         * lib/wchar.in.h (wcrtomb): New declaration.
29228         * lib/wcrtomb.c: New file.
29229         * m4/wcrtomb.m4: New file.
29230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
29231         HAVE_WCRTOMB.
29232         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
29233         HAVE_WCRTOMB.
29234         * modules/wcrtomb: New file.
29235         * doc/posix-functions/wcrtomb.texi: Mention the new module.
29236
29237 2008-12-21  Bruno Haible  <bruno@clisp.org>
29238
29239         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
29240         * modules/mbsrtowcs (Files): Likewise.
29241         * modules/wctob (Files): Likewise.
29242         * modules/c-strcase-tests (Files): Likewise.
29243         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29244         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29245         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29246         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29247         * modules/vasnprintf-posix-tests (Files): Likewise.
29248
29249 2008-12-21  William Pursell  <bill.pursell@gmail.com>
29250
29251         gitlog-to-changelog: pass all command-line arguments to git-log
29252         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
29253         it is sometimes convenient to filter the commits in various ways.
29254         gitlog-to-changelog only allows --since to specify a start date,
29255         but git-log itself supports many other filtering mechanisms.
29256         At the moment, I want to filter by branch name.  Rather than
29257         adding a --branch option to gitlog-to-changelog, it seems more
29258         flexible to simply pass all options directly to git-log and let
29259         git do the work.  Notice that this effectively makes --since a
29260         redundant option for gitlog-to-changelog, but removing it would
29261         require current usage to change since calls would then require
29262         an additional '--'.
29263
29264 2008-12-21  Bruno Haible  <bruno@clisp.org>
29265
29266         * modules/mbsnrtowcs-tests: New file.
29267         * tests/test-mbsnrtowcs1.sh: New file.
29268         * tests/test-mbsnrtowcs2.sh: New file.
29269         * tests/test-mbsnrtowcs3.sh: New file.
29270         * tests/test-mbsnrtowcs4.sh: New file.
29271         * tests/test-mbsnrtowcs.c: New file.
29272
29273         New module 'mbsnrtowcs'.
29274         * lib/wchar.in.h (mbsnrtowcs): New declaration.
29275         * lib/mbsnrtowcs.c: New file.
29276         * lib/mbsrtowcs-state.c: New file.
29277         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
29278         (internal_state): Remove variable.
29279         * m4/mbsnrtowcs.m4: New file.
29280         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
29281         compilation units.
29282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
29283         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29284         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
29285         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29286         * modules/mbsnrtowcs: New file.
29287         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
29288         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
29289         portability problem.
29290
29291 2008-12-21  Bruno Haible  <bruno@clisp.org>
29292
29293         Work around mbsrtowcs bug.
29294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
29295         (gl_FUNC_MBSRTOWCS): Invoke it.
29296         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29297         m4/locale-zh.m4.
29298         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
29299
29300 2008-12-21  Bruno Haible  <bruno@clisp.org>
29301
29302         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
29303
29304 2008-12-21  Bruno Haible  <bruno@clisp.org>
29305
29306         Update doc for AIX.
29307         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
29308         16-bit wchar_t type.
29309         * doc/posix-functions/btowc.texi: Likewise.
29310         * doc/posix-functions/fgetwc.texi: Likewise.
29311         * doc/posix-functions/fgetws.texi: Likewise.
29312         * doc/posix-functions/fputwc.texi: Likewise.
29313         * doc/posix-functions/fputws.texi: Likewise.
29314         * doc/posix-functions/fwide.texi: Likewise.
29315         * doc/posix-functions/fwprintf.texi: Likewise.
29316         * doc/posix-functions/fwscanf.texi: Likewise.
29317         * doc/posix-functions/getwchar.texi: Likewise.
29318         * doc/posix-functions/getwc.texi: Likewise.
29319         * doc/posix-functions/iswalnum.texi: Likewise.
29320         * doc/posix-functions/iswalpha.texi: Likewise.
29321         * doc/posix-functions/iswblank.texi: Likewise.
29322         * doc/posix-functions/iswcntrl.texi: Likewise.
29323         * doc/posix-functions/iswctype.texi: Likewise.
29324         * doc/posix-functions/iswdigit.texi: Likewise.
29325         * doc/posix-functions/iswgraph.texi: Likewise.
29326         * doc/posix-functions/iswlower.texi: Likewise.
29327         * doc/posix-functions/iswprint.texi: Likewise.
29328         * doc/posix-functions/iswpunct.texi: Likewise.
29329         * doc/posix-functions/iswspace.texi: Likewise.
29330         * doc/posix-functions/iswupper.texi: Likewise.
29331         * doc/posix-functions/iswxdigit.texi: Likewise.
29332         * doc/posix-functions/mbrtowc.texi: Likewise.
29333         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29334         * doc/posix-functions/mbstowcs.texi: Likewise.
29335         * doc/posix-functions/mbtowc.texi: Likewise.
29336         * doc/posix-functions/putwchar.texi: Likewise.
29337         * doc/posix-functions/putwc.texi: Likewise.
29338         * doc/posix-functions/swprintf.texi: Likewise.
29339         * doc/posix-functions/tolower.texi: Likewise.
29340         * doc/posix-functions/toupper.texi: Likewise.
29341         * doc/posix-functions/towctrans.texi: Likewise.
29342         * doc/posix-functions/ungetwc.texi: Likewise.
29343         * doc/posix-functions/vswprintf.texi: Likewise.
29344         * doc/posix-functions/wcrtomb.texi: Likewise.
29345         * doc/posix-functions/wcscat.texi: Likewise.
29346         * doc/posix-functions/wcschr.texi: Likewise.
29347         * doc/posix-functions/wcscmp.texi: Likewise.
29348         * doc/posix-functions/wcscoll.texi: Likewise.
29349         * doc/posix-functions/wcscpy.texi: Likewise.
29350         * doc/posix-functions/wcscspn.texi: Likewise.
29351         * doc/posix-functions/wcsftime.texi: Likewise.
29352         * doc/posix-functions/wcslen.texi: Likewise.
29353         * doc/posix-functions/wcsncat.texi: Likewise.
29354         * doc/posix-functions/wcsncmp.texi: Likewise.
29355         * doc/posix-functions/wcsncpy.texi: Likewise.
29356         * doc/posix-functions/wcspbrk.texi: Likewise.
29357         * doc/posix-functions/wcsrchr.texi: Likewise.
29358         * doc/posix-functions/wcsrtombs.texi: Likewise.
29359         * doc/posix-functions/wcsspn.texi: Likewise.
29360         * doc/posix-functions/wcsstr.texi: Likewise.
29361         * doc/posix-functions/wcstod.texi: Likewise.
29362         * doc/posix-functions/wcstof.texi: Likewise.
29363         * doc/posix-functions/wcstoimax.texi: Likewise.
29364         * doc/posix-functions/wcstok.texi: Likewise.
29365         * doc/posix-functions/wcstold.texi: Likewise.
29366         * doc/posix-functions/wcstoll.texi: Likewise.
29367         * doc/posix-functions/wcstol.texi: Likewise.
29368         * doc/posix-functions/wcstombs.texi: Likewise.
29369         * doc/posix-functions/wcstoull.texi: Likewise.
29370         * doc/posix-functions/wcstoul.texi: Likewise.
29371         * doc/posix-functions/wcstoumax.texi: Likewise.
29372         * doc/posix-functions/wcswidth.texi: Likewise.
29373         * doc/posix-functions/wcsxfrm.texi: Likewise.
29374         * doc/posix-functions/wctob.texi: Likewise.
29375         * doc/posix-functions/wctomb.texi: Likewise.
29376         * doc/posix-functions/wctrans.texi: Likewise.
29377         * doc/posix-functions/wctype.texi: Likewise.
29378         * doc/posix-functions/wcwidth.texi: Likewise.
29379         * doc/posix-functions/wmemchr.texi: Likewise.
29380         * doc/posix-functions/wmemcmp.texi: Likewise.
29381         * doc/posix-functions/wmemcpy.texi: Likewise.
29382         * doc/posix-functions/wmemmove.texi: Likewise.
29383         * doc/posix-functions/wmemset.texi: Likewise.
29384         * doc/posix-functions/wprintf.texi: Likewise.
29385         * doc/posix-functions/wscanf.texi: Likewise.
29386
29387 2008-12-21  Bruno Haible  <bruno@clisp.org>
29388
29389         Update doc for HP-UX 11.11.
29390         * doc/posix-functions/btowc.texi: Clarify that the function is missing
29391         in HP-UX version 11.00, not in all versions of HP-UX 11.
29392         * doc/posix-functions/fwide.texi: Likewise.
29393         * doc/posix-functions/fwprintf.texi: Likewise.
29394         * doc/posix-functions/fwscanf.texi: Likewise.
29395         * doc/posix-functions/inet_ntop.texi: Likewise.
29396         * doc/posix-functions/inet_pton.texi: Likewise.
29397         * doc/posix-functions/mbrlen.texi: Likewise.
29398         * doc/posix-functions/mbrtowc.texi: Likewise.
29399         * doc/posix-functions/mbsinit.texi: Likewise.
29400         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29401         * doc/posix-functions/swprintf.texi: Likewise.
29402         * doc/posix-functions/swscanf.texi: Likewise.
29403         * doc/posix-functions/towctrans.texi: Likewise.
29404         * doc/posix-functions/vfwprintf.texi: Likewise.
29405         * doc/posix-functions/vswprintf.texi: Likewise.
29406         * doc/posix-functions/vwprintf.texi: Likewise.
29407         * doc/posix-functions/wcrtomb.texi: Likewise.
29408         * doc/posix-functions/wcsrtombs.texi: Likewise.
29409         * doc/posix-functions/wcsstr.texi: Likewise.
29410         * doc/posix-functions/wctob.texi: Likewise.
29411         * doc/posix-functions/wctrans.texi: Likewise.
29412         * doc/posix-functions/wmemchr.texi: Likewise.
29413         * doc/posix-functions/wmemcmp.texi: Likewise.
29414         * doc/posix-functions/wmemcpy.texi: Likewise.
29415         * doc/posix-functions/wmemmove.texi: Likewise.
29416         * doc/posix-functions/wmemset.texi: Likewise.
29417         * doc/posix-functions/wprintf.texi: Likewise.
29418         * doc/posix-functions/wscanf.texi: Likewise.
29419
29420 2008-12-21  Bruno Haible  <bruno@clisp.org>
29421
29422         Work around a portability problem.
29423         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
29424         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
29425
29426 2008-12-20  Bruno Haible  <bruno@clisp.org>
29427
29428         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
29429         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
29430         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
29431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
29432         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
29433
29434         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
29435         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
29436         set.
29437         (GNULIB_defined_mbstate_t): New macro.
29438         (mbsinit): Redefine if REPLACE_MBSINIT is set.
29439         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
29440         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
29441         reuses the system's mbrtowc function but works around the bugs.
29442         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
29443         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
29444         macros.
29445         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
29446         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
29447         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
29448         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
29449         REPLACE_MBSINIT if mbsinit needs to be overridden.
29450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
29451         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29452         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
29453         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29454         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29455         m4/locale-zh.m4.
29456         (Depends): Add mbsinit.
29457         * modules/mbsinit (Depends): Add mbrtowc.
29458         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
29459
29460 2008-12-20  Bruno Haible  <bruno@clisp.org>
29461
29462         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
29463         so that there are no conversion errors on AIX.
29464         * tests/test-mbsrtowcs.c (main): LIkewise.
29465
29466 2008-12-20  Bruno Haible  <bruno@clisp.org>
29467
29468         Work around wctob bug on Solaris <= 9.
29469         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
29470         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
29471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
29472         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
29473         * modules/wctob (Files): Add m4/locale-fr.m4.
29474         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
29475
29476 2008-12-20  Bruno Haible  <bruno@clisp.org>
29477
29478         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
29479         /dev/null.
29480         * tests/test-select-in.sh: Likewise.
29481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29482
29483 2008-12-20  Bruno Haible  <bruno@clisp.org>
29484
29485         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
29486         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
29487         Cygwin 1.5.x.
29488
29489 2008-12-20  Bruno Haible  <bruno@clisp.org>
29490
29491         Ensure mbstate_t is defined on HP-UX 11.11.
29492         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
29493         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
29494         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
29495         AC_USE_SYSTEM_EXTENSIONS.
29496         * modules/fnmatch (Depends-on): Add extensions.
29497         * modules/mbrlen (Depends-on): Likewise.
29498         * modules/mbrtowc (Depends-on): Likewise.
29499         * modules/mbsinit (Depends-on): Likewise.
29500         * modules/mbsrtowcs (Depends-on): Likewise.
29501         * modules/mbswidth (Depends-on): Likewise.
29502         * modules/quotearg (Depends-on): Likewise.
29503         * modules/strftime (Depends-on): Likewise.
29504
29505 2008-12-20  Bruno Haible  <bruno@clisp.org>
29506
29507         Ensure wctob is declared on IRIX 6.5.
29508         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
29509         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
29510         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
29511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
29512         of HAVE_WCTOB.
29513         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
29514         HAVE_WCTOB.
29515         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
29516
29517 2008-12-19  Bruno Haible  <bruno@clisp.org>
29518
29519         * modules/mbsrtowcs-tests: New file.
29520         * tests/test-mbsrtowcs1.sh: New file.
29521         * tests/test-mbsrtowcs2.sh: New file.
29522         * tests/test-mbsrtowcs3.sh: New file.
29523         * tests/test-mbsrtowcs4.sh: New file.
29524         * tests/test-mbsrtowcs.c: New file.
29525
29526         New module 'mbsrtowcs'.
29527         * lib/wchar.in.h (mbsrtowcs): New declaration.
29528         * lib/mbsrtowcs.c: New file.
29529         * m4/mbsrtowcs.m4: New file.
29530         * modules/mbsrtowcs: New file.
29531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
29532         HAVE_MBSRTOWCS.
29533         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
29534         HAVE_MBSRTOWCS.
29535         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
29536
29537 2008-12-19  Bruno Haible  <bruno@clisp.org>
29538
29539         New module 'mbrlen'.
29540         * lib/wchar.in.h (mbrlen): New declaration.
29541         * lib/mbrlen.c: New file.
29542         * m4/mbrlen.m4: New file.
29543         * modules/mbrlen: New file.
29544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
29545         HAVE_MBRLEN.
29546         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
29547         HAVE_MBRLEN.
29548         * doc/posix-functions/mbrlen.texi: Document the new module.
29549
29550 2008-12-19  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
29553         * modules/mbrtowc (Depends-on): Add verify.
29554         Suggested by Paul Eggert.
29555
29556 2008-12-18  Bruno Haible  <bruno@clisp.org>
29557
29558         * modules/mbsinit-tests: New file.
29559         * tests/test-mbsinit.sh: New file.
29560         * tests/test-mbsinit.c: New file.
29561
29562 2008-12-18  Bruno Haible  <bruno@clisp.org>
29563
29564         * modules/mbrtowc-tests: New file.
29565         * tests/test-mbrtowc1.sh: New file.
29566         * tests/test-mbrtowc2.sh: New file.
29567         * tests/test-mbrtowc3.sh: New file.
29568         * tests/test-mbrtowc4.sh: New file.
29569         * tests/test-mbrtowc.c: New file.
29570
29571         New module 'mbrtowc'.
29572         * lib/wchar.in.h (mbstate_t): Override when the system does not have
29573         mbsinit and mbrtowc.
29574         (mbrtowc): New declaration.
29575         * lib/mbrtowc.c: New file.
29576         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
29577         * modules/mbrtowc: New file.
29578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
29579         HAVE_MBRTOWC.
29580         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
29581         HAVE_MBRTOWC.
29582         * doc/posix-functions/mbrtowc.texi: Document the new module.
29583
29584 2008-12-18  Bruno Haible  <bruno@clisp.org>
29585
29586         New module 'wctob'.
29587         * lib/wchar.in.h (wctob): New declaration.
29588         * lib/wctob.c: New file.
29589         * m4/wctob.m4: New file.
29590         * modules/wctob: New file.
29591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
29592         HAVE_WCTOB.
29593         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
29594         * doc/posix-functions/wctob.texi: Document the new module.
29595
29596 2008-12-18  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
29599         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
29600
29601 2008-12-18  Simon Josefsson  <simon@josefsson.org>
29602
29603         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
29604         G. Christensen" <tgc@jupiterrise.com>.
29605
29606         * lib/flock.c: Need to include errno.h.  Reported by "Tom
29607         G. Christensen" <tgc@jupiterrise.com>.
29608
29609         * lib/flock.c: Need to include string.h.  Reported by "Tom
29610         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
29611         <ebb9@byu.net>.
29612
29613 2008-12-18  Bruno Haible  <bruno@clisp.org>
29614
29615         * m4/locale-ja.m4: New file, from GNU gettext.
29616
29617 2008-12-17  Bruno Haible  <bruno@clisp.org>
29618
29619         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
29620         Suggested by Eric Blake.
29621
29622 2008-12-17  Bruno Haible  <bruno@clisp.org>
29623
29624         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
29625
29626 2008-12-17  Bruno Haible  <bruno@clisp.org>
29627
29628         * lib/mbsinit.c: Include verify.h. Verify an assumption.
29629         * modules/mbsinit (Depends-on): Add verify.
29630         Suggested by Paul Eggert.
29631
29632 2008-12-17  Bruno Haible  <bruno@clisp.org>
29633
29634         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
29635         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
29636         gl_FUNC_MBRTOWC.
29637         * m4/mbiter.m4 (gl_MBITER): LIkewise.
29638         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
29639         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
29640         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
29641         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
29642         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
29643         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
29644         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
29645         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
29646         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
29647         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
29648         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
29649         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
29650         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
29651         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
29652         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29653         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
29654         * modules/trim (configure.ac): Likewise.
29655
29656 2008-12-17  Bruno Haible  <bruno@clisp.org>
29657
29658         * modules/btowc-tests: New file.
29659         * tests/test-btowc1.sh: New file.
29660         * tests/test-btowc2.sh: New file.
29661         * tests/test-btowc.c: New file.
29662
29663         New module 'btowc'.
29664         * lib/wchar.in.h (btowc): New declaration.
29665         * lib/btowc.c: New file.
29666         * m4/btowc.m4: New file.
29667         * modules/btowc: New file.
29668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
29669         HAVE_BTOWC.
29670         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
29671         * doc/posix-functions/btowc.texi: Document the new module.
29672
29673 2008-12-17  Bruno Haible  <bruno@clisp.org>
29674
29675         New module 'mbsinit'.
29676         * lib/wchar.in.h (mbsinit): New declaration.
29677         * lib/mbsinit.c: New file.
29678         * m4/mbsinit.m4: New file.
29679         * modules/mbsinit: New file.
29680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
29681         HAVE_MBSINIT.
29682         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
29683         HAVE_MBSINIT.
29684         * doc/posix-functions/mbsinit.texi: Document the new module.
29685
29686 2008-12-16  Bruno Haible  <bruno@clisp.org>
29687
29688         * lib/unistd.in.h: Add comment.
29689         * tests/test-environ.c: Don't include <stdlib.h>.
29690
29691 2008-12-16  Bruno Haible  <bruno@clisp.org>
29692
29693         * lib/parse-duration.h (parse_duration): Document return value
29694         convention.
29695         * lib/parse-duration.c: Include specification header first. Add
29696         comments.
29697         (_): Remove macro.
29698         (parse_year_month_day, parse_hour_minute_second): Move side effects
29699         outside of strchr call.
29700         (parse_non_iso8601): Move side effects outside of isspace call.
29701         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
29702         call.
29703
29704 2008-12-16  Bruno Haible  <bruno@clisp.org>
29705
29706         * tests/test-parse-duration.sh: Produce no output when the test
29707         succeeds.
29708
29709 2008-12-16  Bruno Haible  <bruno@clisp.org>
29710
29711         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29712         expressions.
29713
29714 2008-12-15  Bruno Haible  <bruno@clisp.org>
29715
29716         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29717         * doc/glibc-functions/flistxattr.texi: Likewise.
29718         * doc/glibc-functions/fopencookie.texi: Likewise.
29719         * doc/glibc-functions/fremovexattr.texi: Likewise.
29720         * doc/glibc-functions/fsetxattr.texi: Likewise.
29721         * doc/glibc-functions/getxattr.texi: Likewise.
29722         * doc/glibc-functions/lgetxattr.texi: Likewise.
29723         * doc/glibc-functions/listxattr.texi: Likewise.
29724         * doc/glibc-functions/llistxattr.texi: Likewise.
29725         * doc/glibc-functions/lremovexattr.texi: Likewise.
29726         * doc/glibc-functions/lsetxattr.texi: Likewise.
29727         * doc/glibc-functions/removexattr.texi: Likewise.
29728         * doc/glibc-functions/setxattr.texi: Likewise.
29729         * doc/posix-functions/open_memstream.texi: Likewise.
29730
29731 2008-12-15  Eric Blake  <ebb9@byu.net>
29732
29733         Update doc for cygwin 1.7.
29734         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29735         functions.
29736         * doc/posix-functions/fchmodat.texi: Likewise.
29737         * doc/posix-functions/fchownat.texi: Likewise.
29738         * doc/posix-functions/fdopendir.texi: Likewise.
29739         * doc/posix-functions/fmemopen.texi: Likewise.
29740         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29741         * doc/posix-functions/fstatat.texi: Likewise.
29742         * doc/posix-functions/futimens.texi: Likewise.
29743         * doc/posix-functions/gai_strerror.texi: Likewise.
29744         * doc/posix-functions/getaddrinfo.texi: Likewise.
29745         * doc/posix-functions/getnameinfo.texi: Likewise.
29746         * doc/posix-functions/if_freenameindex.texi: Likewise.
29747         * doc/posix-functions/if_indextoname.texi: Likewise.
29748         * doc/posix-functions/if_nameindex.texi: Likewise.
29749         * doc/posix-functions/if_nametoindex.texi: Likewise.
29750         * doc/posix-functions/insque.texi: Likewise.
29751         * doc/posix-functions/linkat.texi: Likewise.
29752         * doc/posix-functions/llrint.texi: Likewise.
29753         * doc/posix-functions/llrintf.texi: Likewise.
29754         * doc/posix-functions/llrintl.texi: Likewise.
29755         * doc/posix-functions/lockf.texi: Likewise.
29756         * doc/posix-functions/lrintl.texi: Likewise.
29757         * doc/posix-functions/mkdirat.texi: Likewise.
29758         * doc/posix-functions/mkfifoat.texi: Likewise.
29759         * doc/posix-functions/mknodat.texi: Likewise.
29760         * doc/posix-functions/mq_close.texi: Likewise.
29761         * doc/posix-functions/mq_getattr.texi: Likewise.
29762         * doc/posix-functions/mq_notify.texi: Likewise.
29763         * doc/posix-functions/mq_open.texi: Likewise.
29764         * doc/posix-functions/mq_receive.texi: Likewise.
29765         * doc/posix-functions/mq_send.texi: Likewise.
29766         * doc/posix-functions/mq_setattr.texi: Likewise.
29767         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29768         * doc/posix-functions/mq_timedsend.texi: Likewise.
29769         * doc/posix-functions/mq_unlink.texi: Likewise.
29770         * doc/posix-functions/open_memstream.texi: Likewise.
29771         * doc/posix-functions/openat.texi: Likewise.
29772         * doc/posix-functions/posix_fadvise.texi: Likewise.
29773         * doc/posix-functions/posix_fallocate.texi: Likewise.
29774         * doc/posix-functions/posix_madvise.texi: Likewise.
29775         * doc/posix-functions/posix_memalign.texi: Likewise.
29776         * doc/posix-functions/posix_openpt.texi: Likewise.
29777         * doc/posix-functions/readlinkat.texi: Likewise.
29778         * doc/posix-functions/remque.texi: Likewise.
29779         * doc/posix-functions/renameat.texi: Likewise.
29780         * doc/posix-functions/rintl.texi: Likewise.
29781         * doc/posix-functions/sem_unlink.texi: Likewise.
29782         * doc/posix-functions/shm_open.texi: Likewise.
29783         * doc/posix-functions/shm_unlink.texi: Likewise.
29784         * doc/posix-functions/signgam.texi: Likewise.
29785         * doc/posix-functions/sigset.texi: Likewise.
29786         * doc/posix-functions/stpcpy.texi: Likewise.
29787         * doc/posix-functions/stpncpy.texi: Likewise.
29788         * doc/posix-functions/strerror.texi: Likewise.
29789         * doc/posix-functions/strtod.texi: Likewise.
29790         * doc/posix-functions/symlinkat.texi: Likewise.
29791         * doc/posix-functions/unlinkat.texi: Likewise.
29792         * doc/posix-functions/utimensat.texi: Likewise.
29793         * doc/glibc-functions/bindresvport.texi: Likewise.
29794         * doc/glibc-functions/dn_expand.texi: Likewise.
29795         * doc/glibc-functions/exp10.texi: Likewise.
29796         * doc/glibc-functions/exp10f.texi: Likewise.
29797         * doc/glibc-functions/fgetxattr.texi: Likewise.
29798         * doc/glibc-functions/flistxattr.texi: Likewise.
29799         * doc/glibc-functions/fopencookie.texi: Likewise.
29800         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29801         * doc/glibc-functions/fremovexattr.texi: Likewise.
29802         * doc/glibc-functions/fsetxattr.texi: Likewise.
29803         * doc/glibc-functions/getifaddrs.texi: Likewise.
29804         * doc/glibc-functions/getxattr.texi: Likewise.
29805         * doc/glibc-functions/lgetxattr.texi: Likewise.
29806         * doc/glibc-functions/listxattr.texi: Likewise.
29807         * doc/glibc-functions/llistxattr.texi: Likewise.
29808         * doc/glibc-functions/lremovexattr.texi: Likewise.
29809         * doc/glibc-functions/lsetxattr.texi: Likewise.
29810         * doc/glibc-functions/pow10.texi: Likewise.
29811         * doc/glibc-functions/pow10f.texi: Likewise.
29812         * doc/glibc-functions/rcmd_af.texi: Likewise.
29813         * doc/glibc-functions/removexattr.texi: Likewise.
29814         * doc/glibc-functions/res_init.texi: Likewise.
29815         * doc/glibc-functions/res_mkquery.texi: Likewise.
29816         * doc/glibc-functions/res_query.texi: Likewise.
29817         * doc/glibc-functions/res_querydomain.texi: Likewise.
29818         * doc/glibc-functions/res_send.texi: Likewise.
29819         * doc/glibc-functions/rresvport_af.texi: Likewise.
29820         * doc/glibc-functions/setxattr.texi: Likewise.
29821         * doc/glibc-functions/strcasestr.texi: Likewise.
29822
29823 2008-12-15  Bruno Haible  <bruno@clisp.org>
29824
29825         Fix compilation error on OSF/1 4.0.
29826         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29827         <sys/time.h>, simply delegate to the system header.
29828         Reported by Daniel Richard G. <oss@teragram.com>.
29829
29830 2008-12-15  Bruno Haible  <bruno@clisp.org>
29831
29832         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29833         * doc/posix-functions/fchmodat.texi: Likewise.
29834         * doc/posix-functions/fchownat.texi: Likewise.
29835         * doc/posix-functions/fdopendir.texi: Likewise.
29836         * doc/posix-functions/fstatat.texi: Likewise.
29837         * doc/posix-functions/mkdirat.texi: Likewise.
29838         * doc/posix-functions/unlinkat.texi: Likewise.
29839
29840 2008-12-14  Bruno Haible  <bruno@clisp.org>
29841
29842         Update doc for POSIX:2008.
29843         * doc/posix-functions/faccessat.texi: New file.
29844         * doc/posix-functions/fchmodat.texi: New file.
29845         * doc/posix-functions/fchownat.texi: New file.
29846         * doc/posix-functions/fdopendir.texi: New file.
29847         * doc/posix-functions/fstatat.texi: New file.
29848         * doc/posix-functions/futimens.texi: New file.
29849         * doc/posix-functions/linkat.texi: New file.
29850         * doc/posix-functions/mkdirat.texi: New file.
29851         * doc/posix-functions/mkfifoat.texi: New file.
29852         * doc/posix-functions/mknodat.texi: New file.
29853         * doc/posix-functions/open_wmemstream.texi: New file.
29854         * doc/posix-functions/openat.texi: New file.
29855         * doc/posix-functions/psiginfo.texi: New file.
29856         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29857         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29858         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29859         * doc/posix-functions/readlinkat.texi: New file.
29860         * doc/posix-functions/renameat.texi: New file.
29861         * doc/posix-functions/strerror_l.texi: New file.
29862         * doc/posix-functions/symlinkat.texi: New file.
29863         * doc/posix-functions/unlinkat.texi: New file.
29864         * doc/posix-functions/utimensat.texi: New file.
29865         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29866
29867 2008-12-14  Bruno Haible  <bruno@clisp.org>
29868
29869         Update doc for POSIX:2008.
29870         * doc/posix-functions/alphasort.texi: Renamed from
29871         doc/glibc-functions/alphasort.texi.
29872         * doc/posix-functions/dirfd.texi: Renamed from
29873         doc/glibc-functions/dirfd.texi.
29874         * doc/posix-functions/dprintf.texi: Renamed from
29875         doc/glibc-functions/dprintf.texi.
29876         * doc/posix-functions/duplocale.texi: Renamed from
29877         doc/glibc-functions/duplocale.texi.
29878         * doc/posix-functions/fexecve.texi: Renamed from
29879         doc/glibc-functions/fexecve.texi.
29880         * doc/posix-functions/fmemopen.texi: Renamed from
29881         doc/glibc-functions/fmemopen.texi.
29882         * doc/posix-functions/freelocale.texi: Renamed from
29883         doc/glibc-functions/freelocale.texi.
29884         * doc/posix-functions/getdate_err.texi: Renamed from
29885         doc/glibc-functions/getdate_err.texi.
29886         * doc/posix-functions/isalnum_l.texi: Renamed from
29887         doc/glibc-functions/isalnum_l.texi.
29888         * doc/posix-functions/isalpha_l.texi: Renamed from
29889         doc/glibc-functions/isalpha_l.texi.
29890         * doc/posix-functions/isblank_l.texi: Renamed from
29891         doc/glibc-functions/isblank_l.texi.
29892         * doc/posix-functions/iscntrl_l.texi: Renamed from
29893         doc/glibc-functions/iscntrl_l.texi.
29894         * doc/posix-functions/isdigit_l.texi: Renamed from
29895         doc/glibc-functions/isdigit_l.texi.
29896         * doc/posix-functions/isgraph_l.texi: Renamed from
29897         doc/glibc-functions/isgraph_l.texi.
29898         * doc/posix-functions/islower_l.texi: Renamed from
29899         doc/glibc-functions/islower_l.texi.
29900         * doc/posix-functions/isprint_l.texi: Renamed from
29901         doc/glibc-functions/isprint_l.texi.
29902         * doc/posix-functions/ispunct_l.texi: Renamed from
29903         doc/glibc-functions/ispunct_l.texi.
29904         * doc/posix-functions/isspace_l.texi: Renamed from
29905         doc/glibc-functions/isspace_l.texi.
29906         * doc/posix-functions/isupper_l.texi: Renamed from
29907         doc/glibc-functions/isupper_l.texi.
29908         * doc/posix-functions/iswalnum_l.texi: Renamed from
29909         doc/glibc-functions/iswalnum_l.texi.
29910         * doc/posix-functions/iswalpha_l.texi: Renamed from
29911         doc/glibc-functions/iswalpha_l.texi.
29912         * doc/posix-functions/iswblank_l.texi: Renamed from
29913         doc/glibc-functions/iswblank_l.texi.
29914         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29915         doc/glibc-functions/iswcntrl_l.texi.
29916         * doc/posix-functions/iswctype_l.texi: Renamed from
29917         doc/glibc-functions/iswctype_l.texi.
29918         * doc/posix-functions/iswdigit_l.texi: Renamed from
29919         doc/glibc-functions/iswdigit_l.texi.
29920         * doc/posix-functions/iswgraph_l.texi: Renamed from
29921         doc/glibc-functions/iswgraph_l.texi.
29922         * doc/posix-functions/iswlower_l.texi: Renamed from
29923         doc/glibc-functions/iswlower_l.texi.
29924         * doc/posix-functions/iswprint_l.texi: Renamed from
29925         doc/glibc-functions/iswprint_l.texi.
29926         * doc/posix-functions/iswpunct_l.texi: Renamed from
29927         doc/glibc-functions/iswpunct_l.texi.
29928         * doc/posix-functions/iswspace_l.texi: Renamed from
29929         doc/glibc-functions/iswspace_l.texi.
29930         * doc/posix-functions/iswupper_l.texi: Renamed from
29931         doc/glibc-functions/iswupper_l.texi.
29932         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29933         doc/glibc-functions/iswxdigit_l.texi.
29934         * doc/posix-functions/isxdigit_l.texi: Renamed from
29935         doc/glibc-functions/isxdigit_l.texi.
29936         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29937         doc/glibc-functions/mbsnrtowcs.texi.
29938         * doc/posix-functions/mkdtemp.texi: Renamed from
29939         doc/glibc-functions/mkdtemp.texi.
29940         * doc/posix-functions/newlocale.texi: Renamed from
29941         doc/glibc-functions/newlocale.texi.
29942         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29943         doc/glibc-functions/nl_langinfo_l.texi.
29944         * doc/posix-functions/open_memstream.texi: Renamed from
29945         doc/glibc-functions/open_memstream.texi.
29946         * doc/posix-functions/opterr.texi: Renamed from
29947         doc/glibc-functions/opterr.texi.
29948         * doc/posix-functions/optind.texi: Renamed from
29949         doc/glibc-functions/optind.texi.
29950         * doc/posix-functions/optopt.texi: Renamed from
29951         doc/glibc-functions/optopt.texi.
29952         * doc/posix-functions/psignal.texi: Renamed from
29953         doc/glibc-functions/psignal.texi.
29954         * doc/posix-functions/scandir.texi: Renamed from
29955         doc/glibc-functions/scandir.texi.
29956         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29957         doc/glibc-functions/sched_get_priority_min.texi.
29958         * doc/posix-functions/signgam.texi: Renamed from
29959         doc/glibc-functions/signgam.texi.
29960         * doc/posix-functions/stpcpy.texi: Renamed from
29961         doc/glibc-functions/stpcpy.texi.
29962         * doc/posix-functions/stpncpy.texi: Renamed from
29963         doc/glibc-functions/stpncpy.texi.
29964         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29965         doc/glibc-functions/strcasecmp_l.texi.
29966         * doc/posix-functions/strcoll_l.texi: Renamed from
29967         doc/glibc-functions/strcoll_l.texi.
29968         * doc/posix-functions/strfmon_l.texi: Renamed from
29969         doc/glibc-functions/strfmon_l.texi.
29970         * doc/posix-functions/strftime_l.texi: Renamed from
29971         doc/glibc-functions/strftime_l.texi.
29972         * doc/posix-functions/strncasecmp_l.texi: Renamed from
29973         doc/glibc-functions/strncasecmp_l.texi.
29974         * doc/posix-functions/strndup.texi: Renamed from
29975         doc/glibc-functions/strndup.texi.
29976         * doc/posix-functions/strnlen.texi: Renamed from
29977         doc/glibc-functions/strnlen.texi.
29978         * doc/posix-functions/strsignal.texi: Renamed from
29979         doc/glibc-functions/strsignal.texi.
29980         * doc/posix-functions/strxfrm_l.texi: Renamed from
29981         doc/glibc-functions/strxfrm_l.texi.
29982         * doc/posix-functions/timer_gettime.texi: Renamed from
29983         doc/glibc-functions/timer_gettime.texi.
29984         * doc/posix-functions/tolower_l.texi: Renamed from
29985         doc/glibc-functions/tolower_l.texi.
29986         * doc/posix-functions/toupper_l.texi: Renamed from
29987         doc/glibc-functions/toupper_l.texi.
29988         * doc/posix-functions/towctrans_l.texi: Renamed from
29989         doc/glibc-functions/towctrans_l.texi.
29990         * doc/posix-functions/towlower_l.texi: Renamed from
29991         doc/glibc-functions/towlower_l.texi.
29992         * doc/posix-functions/towupper_l.texi: Renamed from
29993         doc/glibc-functions/towupper_l.texi.
29994         * doc/posix-functions/uselocale.texi: Renamed from
29995         doc/glibc-functions/uselocale.texi.
29996         * doc/posix-functions/vdprintf.texi: Renamed from
29997         doc/glibc-functions/vdprintf.texi.
29998         * doc/posix-functions/wcpcpy.texi:
29999         Renamed from doc/glibc-functions/wcpcpy.texi.
30000         * doc/posix-functions/wcpncpy.texi: Renamed from
30001         doc/glibc-functions/wcpncpy.texi.
30002         * doc/posix-functions/wcscasecmp.texi: Renamed from
30003         doc/glibc-functions/wcscasecmp.texi.
30004         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
30005         doc/glibc-functions/wcscasecmp_l.texi.
30006         * doc/posix-functions/wcscoll_l.texi: Renamed from
30007         doc/glibc-functions/wcscoll_l.texi.
30008         * doc/posix-functions/wcsdup.texi: Renamed from
30009         doc/glibc-functions/wcsdup.texi.
30010         * doc/posix-functions/wcsncasecmp.texi: Renamed from
30011         doc/glibc-functions/wcsncasecmp.texi.
30012         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
30013         doc/glibc-functions/wcsncasecmp_l.texi.
30014         * doc/posix-functions/wcsnlen.texi: Renamed from
30015         doc/glibc-functions/wcsnlen.texi.
30016         * doc/posix-functions/wcsnrtombs.texi: Renamed from
30017         doc/glibc-functions/wcsnrtombs.texi.
30018         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
30019         doc/glibc-functions/wcsxfrm_l.texi.
30020         * doc/posix-functions/wctrans_l.texi: Renamed from
30021         doc/glibc-functions/wctrans_l.texi.
30022         * doc/posix-functions/wctype_l.texi: Renamed from
30023         doc/glibc-functions/wctype_l.texi.
30024         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30025         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
30026         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
30027         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
30028         these subsections.
30029         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
30030         Remove sections.
30031
30032 2008-12-14  Bruno Haible  <bruno@clisp.org>
30033
30034         Update doc for POSIX:2008.
30035         * doc/posix-functions/*.texi: Update URL of POSIX specification.
30036
30037 2008-12-14  Bruno Haible  <bruno@clisp.org>
30038
30039         Update doc for POSIX:2008.
30040         * doc/pastposix-functions/bcmp.texi: Renamed from
30041         doc/posix-functions/bcmp.texi.
30042         * doc/pastposix-functions/bcopy.texi: Renamed from
30043         doc/posix-functions/bcopy.texi.
30044         * doc/pastposix-functions/bsd_signal.texi: Renamed from
30045         doc/posix-functions/bsd_signal.texi.
30046         * doc/pastposix-functions/bzero.texi: Renamed from
30047         doc/posix-functions/bzero.texi.
30048         * doc/pastposix-functions/ecvt.texi: Renamed from
30049         doc/posix-functions/ecvt.texi.
30050         * doc/pastposix-functions/fcvt.texi: Renamed from
30051         doc/posix-functions/fcvt.texi.
30052         * doc/pastposix-functions/ftime.texi: Renamed from
30053         doc/posix-functions/ftime.texi.
30054         * doc/pastposix-functions/gcvt.texi: Renamed from
30055         doc/posix-functions/gcvt.texi.
30056         * doc/pastposix-functions/getcontext.texi: Renamed from
30057         doc/posix-functions/getcontext.texi.
30058         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
30059         doc/posix-functions/gethostbyaddr.texi.
30060         * doc/pastposix-functions/gethostbyname.texi: Renamed from
30061         doc/posix-functions/gethostbyname.texi.
30062         * doc/pastposix-functions/getwd.texi: Renamed from
30063         doc/posix-functions/getwd.texi.
30064         * doc/pastposix-functions/h_errno.texi: Renamed from
30065         doc/posix-functions/h_errno.texi.
30066         * doc/pastposix-functions/index.texi: Renamed from
30067         doc/posix-functions/index.texi.
30068         * doc/pastposix-functions/makecontext.texi: Renamed from
30069         doc/posix-functions/makecontext.texi.
30070         * doc/pastposix-functions/mktemp.texi: Renamed from
30071         doc/posix-functions/mktemp.texi.
30072         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
30073         doc/posix-functions/pthread_attr_getstackaddr.texi.
30074         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
30075         doc/posix-functions/pthread_attr_setstackaddr.texi.
30076         * doc/pastposix-functions/rindex.texi: Renamed from
30077         doc/posix-functions/rindex.texi.
30078         * doc/pastposix-functions/scalb.texi: Renamed from
30079         doc/posix-functions/scalb.texi.
30080         * doc/pastposix-functions/setcontext.texi: Renamed from
30081         doc/posix-functions/setcontext.texi.
30082         * doc/pastposix-functions/swapcontext.texi: Renamed from
30083         doc/posix-functions/swapcontext.texi.
30084         * doc/pastposix-functions/ualarm.texi: Renamed from
30085         doc/posix-functions/ualarm.texi.
30086         * doc/pastposix-functions/usleep.texi: Renamed from
30087         doc/posix-functions/usleep.texi.
30088         * doc/pastposix-functions/vfork.texi: Renamed from
30089         doc/posix-functions/vfork.texi.
30090         * doc/pastposix-functions/wcswcs.texi: Renamed from
30091         doc/posix-functions/wcswcs.texi.
30092         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
30093         (Function Substitutes): Update.
30094
30095 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30096
30097         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
30098         m4/strerror.m4.
30099
30100 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30101             Bruno Haible  <bruno@clisp.org>
30102
30103         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
30104
30105 2008-12-13  Bruno Haible  <bruno@clisp.org>
30106
30107         * modules/strtoull (Depends-on): Remove unistd.
30108
30109 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30110
30111         * modules/strtoull (Depends-on): Add stdlib.
30112
30113 2008-12-11  Simon Josefsson  <simon@josefsson.org>
30114
30115         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
30116
30117 2008-12-10  Jim Meyering  <meyering@redhat.com>
30118
30119         gl_ASSERT: don't say assertions are disabled when they're not
30120         * m4/assert.m4 (gl_ASSERT): Do not make configure report
30121         "checking whether to enable assertions... no", when they are in
30122         fact enabled.  This is solely a bug in the output of configure.
30123         In spite of saying "no", NDEBUG was not defined in that case.
30124         Also, as noted by Eric Blake, leave assertions enabled upon
30125         --enable-assert=INVALID.
30126
30127 2008-12-10  Bruno Haible  <bruno@clisp.org>
30128
30129         Change MODULES.html to refer to POSIX:2008 where possible.
30130         * MODULES.html.sh (POSIX2008_URL): New variable.
30131         (posix_headers): Remove sys/timeb, ucontext.
30132         (posix2001_headers): New variable.
30133         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
30134         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
30135         index, makecontext, mktemp, pthread_attr_getstackaddr,
30136         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
30137         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
30138         (posix2001_functions): New variable.
30139         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
30140         otherwise.
30141
30142 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30143
30144         add missing include to parse-duration.c
30145         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
30146         * modules/parse-duration (Depends-on): Add xalloc.
30147
30148         fix sed script reading maint.mk
30149         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
30150         (syntax-check-rules): Use it.
30151
30152 2008-12-09  Bruno Haible  <bruno@clisp.org>
30153
30154         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
30155         MacOS X 10.4/PowerPC.
30156         Reported by Simon Josefsson.
30157
30158 2008-12-08  Jim Meyering  <meyering@redhat.com>
30159
30160         work around mingw's lack of some S_IF definitions
30161         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
30162         Reported by Simon Josefsson.
30163
30164 2008-12-08  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
30167         applied to variables. Needed on MacOS X 10.4/PowerPC.
30168         Reported by Simon Josefsson.
30169
30170 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
30171         and Eric Blake  <ebb9@byu.net>
30172
30173         assert: honor --enable-assert
30174         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
30175         order to honor --enable-assert, rather than treating it as a
30176         synonym for --disable-assert.
30177
30178 2008-12-08  Jim Meyering  <meyering@redhat.com>
30179
30180         * lib/posixtm.c: Remove now-useless declaration of mktime.
30181
30182         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
30183
30184 2008-12-07  Bruno Haible  <bruno@clisp.org>
30185
30186         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
30187         test_once): Mark functions as static.
30188         * tests/test-tls.c (test_tls): Likewise.
30189
30190 2008-12-07  Bruno Haible  <bruno@clisp.org>
30191
30192         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
30193         iconv_register_autodetect.
30194
30195 2008-12-07  Jim Meyering  <meyering@redhat.com>
30196
30197         posixtm.c: avoid a warning
30198         * lib/posixtm.c (posixtime): Don't initialize tm0.
30199         It's no longer needed to placate gcc4's -Wuninitialized,
30200         and the attempt to placate would elicit a new warning.
30201
30202         unicodeio.c: mark unused parameters
30203         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30204         (fallback_failure_callback): Likewise.
30205
30206 2008-12-07  Bruno Haible  <bruno@clisp.org>
30207
30208         * gnulib-tool (func_create_testdir): When building the tests
30209         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
30210         Reported by Simon Josefsson.
30211
30212 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30213
30214         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
30215
30216 2008-12-06  Bruno Haible  <bruno@clisp.org>
30217
30218         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
30219         Suggested by Eric Blake.
30220
30221 2008-12-06  Bruno Haible  <bruno@clisp.org>
30222
30223         Fix a c-stack test failure on MacOS X.
30224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
30225         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
30226         handler for SIGBUS as well.
30227         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
30228         install a signal handler for SIGBUS as well.
30229         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
30230
30231 2008-12-06  Bruno Haible  <bruno@clisp.org>
30232
30233         Advocacy documentation.
30234         * doc/gnulib-intro.texi (Benefits): New section.
30235         * doc/gnulib.texi: Update.
30236
30237 2008-12-06  Bruno Haible  <bruno@clisp.org>
30238
30239         Document the 'manywarnings' module.
30240         * doc/manywarnings.texi: New file.
30241         * doc/gnulib.texi: Include it.
30242
30243 2008-12-05  Eric Blake  <ebb9@byu.net>
30244
30245         tests: silence some gcc warnings
30246         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
30247         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
30248         type mismatches.
30249
30250 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30251             Bruno Haible  <bruno@clisp.org>
30252
30253         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
30254
30255 2008-11-29  Jim Meyering  <meyering@redhat.com>
30256
30257         unicodeio.c: mark unused parameters
30258         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30259         (fallback_failure_callback): Likewise.
30260
30261         fts: fix a thinko
30262         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
30263         (set_stat_type): Return S_IF*-valued "type" directly.
30264         Prompted by James Youngman's spotting a related bug.
30265         Confirmed by further testing through find.
30266
30267         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
30268         * lib/fts.c (D_TYPE): Define.
30269         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
30270         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
30271         (s_ifmt_shift_bits): New function.
30272         (set_stat_type): New function.
30273         (fts_build): When not calling fts_stat, call set_stat_type
30274         to propagate dirent.d_type info to fts_read caller.
30275         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
30276         fts_statp->st_mode type information may be valid.
30277
30278 2008-11-28  Simon Josefsson  <simon@josefsson.org>
30279
30280         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
30281         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
30282         <sds@gnu.org>.
30283
30284 2008-11-20  Bruno Haible  <bruno@clisp.org>
30285
30286         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
30287         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
30288         INCLUDE_NEXT.
30289         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
30290         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
30291         * modules/math (Makefile.am): Substitute
30292         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
30293         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30294
30295 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30296             Bruno Haible  <bruno@clisp.org>
30297
30298         * lib/stdint.in.h: Define all type macros so that their expansion is
30299         a single typedef'ed token. Fixes a compilation failure in Boost which
30300         does "using ::int8_t;".
30301
30302 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30303
30304         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
30305         gl_MANYWARN_ALL_GCC.
30306         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
30307         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
30308         * modules/manywarnings: New file.
30309         * MODULES.html.sh: Mention manywarnings module.
30310
30311 2008-11-18  Bruno Haible  <bruno@clisp.org>
30312
30313         * doc/gnulib-tool.texi (Unit tests): New section.
30314
30315 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30316
30317         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
30318         paths like 'lib/po/foo.po'.
30319
30320 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30321
30322         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
30323         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
30324
30325 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30326
30327         * m4/warnings.m4: Use CPPFLAGS to really check whether the
30328         parameter works.
30329
30330 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30331
30332         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
30333
30334 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30335
30336         * modules/parse-duration-tests: New file.
30337         * tests/test-parse-duration.sh: New file.
30338         * tests/test-parse-duration.c: New file.
30339
30340         New module 'parse-duration'.
30341         * lib/parse-duration.h: New file.
30342         * lib/parse-duration.c: New file.
30343         * modules/parse-duration: New file.
30344
30345 2008-11-17  Bruno Haible  <bruno@clisp.org>
30346
30347         * tests/test-select-out.sh: Comment out the first pipe test.
30348         Reported by Simon Josefsson.
30349
30350 2008-11-17  Bruno Haible  <bruno@clisp.org>
30351
30352         * modules/getaddrinfo (Depends-on): Add servent, hostent.
30353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
30354         gl_HOSTENT.
30355
30356 2008-11-17  Bruno Haible  <bruno@clisp.org>
30357
30358         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
30359         -lnetwork and -lnet. Needed for Haiku and BeOS.
30360
30361 2008-11-16  Bruno Haible  <bruno@clisp.org>
30362
30363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
30364
30365 2008-11-16  Bruno Haible  <bruno@clisp.org>
30366
30367         Avoid test failure on Haiku.
30368         * tests/test-fsync.c: Include <errno.h>.
30369         (main): Don't require that fsync (0) fails.
30370
30371 2008-11-15  Bruno Haible  <bruno@clisp.org>
30372
30373         New module 'hostent'.
30374         * modules/hostent: New file.
30375         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
30376
30377 2008-11-15  Bruno Haible  <bruno@clisp.org>
30378
30379         New module 'servent'.
30380         * modules/servent: New file.
30381         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
30382
30383 2008-11-15  Bruno Haible  <bruno@clisp.org>
30384
30385         Avoid generating same test program with two different rules.
30386         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
30387         test-frexp to test-frexp-nolibm.
30388         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
30389         test-frexpl to test-frexpl-nolibm.
30390
30391 2008-11-15  Bruno Haible  <bruno@clisp.org>
30392
30393         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
30394         $(FREXPL_LIBM).
30395
30396 2008-11-15  Bruno Haible  <bruno@clisp.org>
30397
30398         * lib/netdb.in.h: Activate the definitions also when the system's
30399         <netdb.h> has 'struct addrinfo'.
30400         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
30401         EAI_OVERFLOW or AI_NUMERICSERV.
30402         * doc/posix-headers/netdb.texi: Document the problem.
30403
30404 2008-11-15  Bruno Haible  <bruno@clisp.org>
30405
30406         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
30407
30408         Make the 'sched' module work on platforms where <sched.h> exists but
30409         is incomplete (such as Haiku).
30410         * lib/sched.in.h; Include the system's <sched.h> if it exists.
30411         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
30412         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
30413         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
30414         HAVE_STRUCT_SCHED_PARAM.
30415         * modules/sched (Depends-on): Add include_next.
30416         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
30417         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
30418         * doc/posix-headers/sched.texi: Document the issue.
30419
30420 2008-11-13  Jim Meyering  <meyering@redhat.com>
30421
30422         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
30423         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
30424         test would fail due to the difference in the Report bugs to ...
30425         line.  The expected address is empty, "<>", while the actual
30426         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
30427
30428 2008-11-12  Bruno Haible  <bruno@clisp.org>
30429
30430         lstat: don't compile lstat.c on systems lacking lstat
30431         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
30432         which don't have lstat; this is handled by lib/sys_stat.in.h already.
30433         Reported by Daniel P. Berrange via Jim Meyering.
30434
30435 2008-11-12  Jim Meyering  <meyering@redhat.com>
30436
30437         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
30438
30439 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30440
30441         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
30442         instead.
30443
30444 2008-11-12  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/unicodeio.c: Include unistr.h.
30447         (utf8_wctomb): Remove function.
30448         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
30449
30450 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30451
30452         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
30453         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
30454         <bruno@clisp.org>.
30455         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
30456
30457 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30458
30459         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
30460         * doc/gnulib.texi: Add section for warnings.
30461
30462 2008-11-11  Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/sockets.h: Add a comment.
30465
30466 2008-11-11  Karl Berry  <karl@gnu.org>
30467
30468         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
30469
30470 2008-11-11  Eric Blake  <ebb9@byu.net>
30471
30472         fdl.texi: avoid git symlinks
30473         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
30474
30475 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30476
30477         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
30478
30479 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30480
30481         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
30482         (gl_WARN_ADD): Substitute $2 if literal.
30483
30484 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30485
30486         * m4/warning.m4: Remove.
30487
30488 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30489
30490         * m4/warnings.m4: Almost complete rewrite. :-)
30491
30492 2008-11-10  Simon Josefsson  <simon@josefsson.org>
30493
30494         * modules/warnings: New module.
30495         * m4/warnings.m4: New file.
30496         * MODULES.html.sh: Mention warnings module.
30497         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
30498         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30499
30500 2008-11-10  Eric Blake  <ebb9@byu.net>
30501
30502         fdl.texi: make a symlink to the latest version
30503         * doc/standards.texi: Revert today's earlier change.
30504         * doc/fdl-1.2.texi: Rename from old fdl.texi...
30505         * doc/fdl.texi: ...and replace this with a symlink to the newer
30506         fdl-1.3.texi.
30507
30508 2008-11-10  Bruno Haible  <bruno@clisp.org>
30509
30510         * tests/test-select-fd.c (main): Accept the result file name as fourth
30511         argument.
30512         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
30513         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
30514
30515 2008-11-10  Bruno Haible  <bruno@clisp.org>
30516
30517         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
30518         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
30519         as autoconf-substituted macros.
30520         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
30521         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
30522         gl_NETDB_H_DEFAULTS. Set these variables.
30523         * modules/netdb (Makefile.am): Substitute these variables.
30524
30525 2008-11-10  Eric Blake  <ebb9@byu.net>
30526
30527         standards.texi: include correct file for FDL 1.3
30528         * doc/standards.texi (GNU Free Documentation License): Change
30529         include file to pull in FDL 1.3, not 1.2.
30530
30531         fdl.texi: revert accidental change to license
30532         * doc/fdl.texi: This is FDL 1.2, not 1.3.
30533
30534 2008-11-10  Bruno Haible  <bruno@clisp.org>
30535
30536         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
30537         cross-compiling guesses also when the native compile gives no result.
30538
30539 2008-11-10  Bruno Haible  <bruno@clisp.org>
30540
30541         * lib/spawni.c (__spawni): Force variable into the stack.
30542
30543 2008-11-10  Bruno Haible  <bruno@clisp.org>
30544
30545         Add support for Haiku.
30546         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
30547         glibc and BeOS, but also on Haiku.
30548         * lib/fpurge.c (fpurge): Likewise.
30549         * lib/freadable.c (freadable): Likewise.
30550         * lib/freadahead.c (freadahead): Likewise.
30551         * lib/freading.c (freading): Likewise.
30552         * lib/freadptr.c (freadptr): Likewise.
30553         * lib/freadseek.c (freadptrinc): Likewise.
30554         * lib/fseeko.c (rpl_fseeko): Likewise.
30555         * lib/fseterr.c (fseterr): Likewise.
30556         * lib/fwritable.c (fwritable): Likewise.
30557         * lib/fwriting.c (fwriting): Likewise.
30558         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
30559
30560 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30561
30562         * lib/config.charset: Treat Haiku like BeOS.
30563
30564 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30565
30566         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
30567         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
30568
30569 2008-11-08  Bruno Haible  <bruno@clisp.org>
30570
30571         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
30572         AC_CACHE_CHECK.
30573
30574 2008-11-08  Bruno Haible  <bruno@clisp.org>
30575
30576         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
30577
30578 2008-11-08  Bruno Haible  <bruno@clisp.org>
30579
30580         * tests/test-select-fd.c: New file.
30581         * tests/test-select-in.sh: New file.
30582         * tests/test-select-out.sh: New file.
30583         * tests/test-select-stdin.c: New file.
30584         * modules/select-tests (Files): Add the new files.
30585         (Depends-on): Add gettimeofday.
30586         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
30587         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
30588         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
30589
30590 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
30591             Bruno Haible  <bruno@clisp.org>
30592
30593         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
30594
30595 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
30596
30597         * build-aux/pmccabe2html: Added support for C++ source files.
30598
30599 2008-11-05  Ben Pfaff  <blp@gnu.org>
30600
30601         Fix lib/close.c build on Windows.
30602         * modules/close (Files): Add lib/w32sock.h.
30603
30604 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
30605
30606         Accept Bison's NEWS format.
30607         * build-aux/announce-gen (print_news_deltas): Tweak
30608         $re_prefix.
30609
30610 2008-11-04  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/random_r (Maintainer): Add glibc.
30613
30614 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30615
30616         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
30617         by karl@freefriends.org (Karl Berry).
30618         * doc/alloca.texi: Likewise.
30619         * doc/c-ctype.texi: Likewise.
30620         * doc/c-strcase.texi: Likewise.
30621         * doc/c-strcaseeq.texi: Likewise.
30622         * doc/c-strcasestr.texi: Likewise.
30623         * doc/c-strstr.texi: Likewise.
30624         * doc/c-strtod.texi: Likewise.
30625         * doc/c-strtold.texi: Likewise.
30626         * doc/ctime.texi: Likewise.
30627         * doc/error.texi: Likewise.
30628         * doc/fdl.texi: Likewise.
30629         * doc/gcd.texi: Likewise.
30630         * doc/getdate.texi: Likewise.
30631         * doc/gnulib-intro.texi: Likewise.
30632         * doc/gnulib-tool.texi: Likewise.
30633         * doc/gnulib.texi: Likewise.
30634         * doc/inet_ntoa.texi: Likewise.
30635         * doc/maintain.texi: Likewise.
30636         * doc/make-stds.texi: Likewise.
30637         * doc/quote.texi: Likewise.
30638         * doc/regexprops-generic.texi: Likewise.
30639         * doc/standards.texi: Likewise.
30640         * doc/verify.texi: Likewise.
30641         * doc/visibility.texi: Likewise.
30642         * doc/gnulib.texi (GNU Free Documentation License): Include
30643         fdl-1.3.texi instead of fdl.texi.
30644
30645 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30646
30647         * doc/fdl-1.3.texi: New file, from
30648         <http://www.gnu.org/licenses/fdl-1.3.texi>.
30649         * modules/fdl-1.3: Add.
30650         * MODULES.html.sh: Add fdl-1.3.
30651
30652 2008-11-03  Bruno Haible  <bruno@clisp.org>
30653
30654         Make determination of absolute name of header file work with AIX xlc.
30655         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
30656         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
30657         preprocessing.
30658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30659         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30660
30661 2008-11-03  Simon Josefsson  <simon@josefsson.org>
30662
30663         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
30664         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
30665         <ludo@gnu.org>.
30666
30667 2008-11-02  Bruno Haible  <bruno@clisp.org>
30668
30669         Mark 'strpbrk' obsolete.
30670         * modules/strpbrk (Status, Notice): New sections.
30671         * modules/strtok_r (Depends-on): Add strpbrk.
30672
30673 2008-11-02  Bruno Haible  <bruno@clisp.org>
30674
30675         Mark 'strdup' obsolete.
30676         * modules/strdup (Status, Notice): New sections.
30677         * modules/findprog (Depends-on): Add strdup.
30678         * modules/getaddrinfo (Depends-on): Likewise.
30679         * modules/localename (Depends-on): Likewise.
30680         * modules/relocatable-lib (Depends-on): Likewise.
30681         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
30682         * modules/relocatable-prog (Depends-on): Likewise.
30683         * modules/trim (Depends-on): Likewise.
30684         * modules/unictype/gen-ctype (Depends-on): Likewise.
30685         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30686
30687 2008-11-02  Bruno Haible  <bruno@clisp.org>
30688
30689         Mark 'strcspn' obsolete.
30690         * modules/strcspn (Status, Notice): New sections.
30691
30692 2008-11-02  Bruno Haible  <bruno@clisp.org>
30693
30694         Mark 'rmdir' obsolete.
30695         * modules/rmdir (Status, Notice): New sections.
30696         * modules/clean-temp (Depends-on): Add rmdir.
30697         * modules/openat (Depends-on): Likewise.
30698
30699 2008-11-02  Bruno Haible  <bruno@clisp.org>
30700
30701         Mark 'raise' obsolete.
30702         * modules/raise (Status, Notice): New sections.
30703         (Include): Specify <signal.h>.
30704         * modules/stdio (Depends-on): Add raise.
30705         * modules/write (Depends-on): Likewise.
30706
30707 2008-11-02  Bruno Haible  <bruno@clisp.org>
30708
30709         Mark 'memset' obsolete.
30710         * modules/memset (Status, Notice): New sections.
30711
30712 2008-11-02  Bruno Haible  <bruno@clisp.org>
30713
30714         Mark 'memmove' obsolete.
30715         * modules/memmove (Status, Notice): New sections.
30716         * modules/argp (Depends-on): Add memmove.
30717         * modules/argz (Depends-on): Likewise.
30718         * modules/canonicalize (Depends-on): Likewise.
30719         * modules/canonicalize-lgpl (Depends-on): Likewise.
30720         * modules/fts (Depends-on): Likewise.
30721         * modules/getcwd (Depends-on): Likewise.
30722         * modules/human (Depends-on): Likewise.
30723         * modules/regex (Depends-on): Likewise.
30724         * modules/striconveh (Depends-on): Likewise.
30725         * modules/trim (Depends-on): Likewise.
30726         * modules/unistr/u8-move (Depends-on): Likewise.
30727         * modules/unistr/u16-move (Depends-on): Likewise.
30728         * modules/unistr/u32-move (Depends-on): Likewise.
30729
30730 2008-11-02  Bruno Haible  <bruno@clisp.org>
30731
30732         Mark 'memcpy' obsolete.
30733         * modules/memcpy (Status, Notice): New sections.
30734
30735 2008-11-02  Bruno Haible  <bruno@clisp.org>
30736
30737         Mark 'memcmp' obsolete.
30738         * modules/memcmp (Status, Notice): New sections.
30739         * modules/argmatch (Depends-on): Add memchr.
30740         * modules/backupfile (Depends-on): Likewise.
30741         * modules/c-strcasestr (Depends-on): Likewise.
30742         * modules/crypto/des (Depends-on): Likewise.
30743         * modules/csharpcomp (Depends-on): Likewise.
30744         * modules/fnmatch (Depends-on): Likewise.
30745         * modules/git-merge-changelog (Depends-on): Likewise.
30746         * modules/isnand (Depends-on): Likewise.
30747         * modules/isnand-nolibm (Depends-on): Likewise.
30748         * modules/isnanf (Depends-on): Likewise.
30749         * modules/isnanf-nolibm (Depends-on): Likewise.
30750         * modules/isnanl (Depends-on): Likewise.
30751         * modules/isnanl-nolibm (Depends-on): Likewise.
30752         * modules/mbchar (Depends-on): Likewise.
30753         * modules/memcoll (Depends-on): Likewise.
30754         * modules/quotearg (Depends-on): Likewise.
30755         * modules/regex (Depends-on): Likewise.
30756         * modules/relocatable-prog (Depends-on): Likewise.
30757         * modules/same (Depends-on): Likewise.
30758         * modules/signbit (Depends-on): Likewise.
30759         * modules/strcasestr-simple (Depends-on): Likewise.
30760         * modules/unictype/gen-ctype (Depends-on): Likewise.
30761         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30762         * modules/uniname/uniname (Depends-on): Likewise.
30763         * modules/unistr/u8-cmp (Depends-on): Likewise.
30764
30765 2008-11-02  Bruno Haible  <bruno@clisp.org>
30766
30767         Mark 'memchr' obsolete.
30768         * modules/memchr (Status, Notice): New sections.
30769         * modules/argp (Depends-on): Add memchr.
30770         * modules/base64 (Depends-on): Likewise.
30771         * modules/c-strcasestr (Depends-on): Likewise.
30772         * modules/chdir-long (Depends-on): Likewise.
30773         * modules/fnmatch (Depends-on): Likewise.
30774         * modules/getsubopt (Depends-on): Likewise.
30775         * modules/git-merge-changelog (Depends-on): Likewise.
30776         * modules/glob (Depends-on): Likewise.
30777         * modules/strcasestr-simple (Depends-on): Likewise.
30778         * modules/strnlen (Depends-on): Likewise.
30779
30780 2008-11-02  Bruno Haible  <bruno@clisp.org>
30781
30782         Mark 'atexit' obsolete.
30783         * modules/atexit (Status, Notice): New sections.
30784         * modules/chdir-long (Depends-on): Add atexit.
30785         * modules/wait-process (Depends-on): Likewise.
30786
30787 2008-11-02  Bruno Haible  <bruno@clisp.org>
30788
30789         * gnulib-tool: New option --with-obsolete.
30790         (func_usage): Document it.
30791         (func_modules_transitive_closure): Drop obsolete dependencies if
30792         incobsolete is not true.
30793         (func_import): Read and save the incobsolete variable to the cache.
30794
30795 2008-11-02  Bruno Haible  <bruno@clisp.org>
30796
30797         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30798         * gnulib-tool: New option --extract-status.
30799         (func_usage): Document it.
30800         (sed_extract_prog): Recognize it.
30801         (func_get_status): New function.
30802
30803 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30804
30805         * modules/sockets (License): Change from LGPL to LGPLv2+.
30806
30807 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30808
30809         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30810
30811 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30812
30813         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30814         Mention times and sys_times.
30815         * modules/sys_times, modules/sys_times-tests: New modules.
30816         * modules/times, modules/times-tests: Likewise
30817         * m4/sys_times_h.m4: New file.
30818         * lib/sys_times.in.h: Likewise
30819         * lib/times.c: Likewise.
30820         * tests/test-sys_times.c: Likewise.
30821         * tests/test-times.c: Likewise.
30822         * doc/posix-headers/sys_times.texi: Update.
30823         * doc/posix-functions/times.texi: Update.
30824
30825 2008-10-28  Jim Meyering  <meyering@redhat.com>
30826
30827         * modules/tempname (Depends-on): Add lstat.
30828
30829         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30830
30831 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30832
30833         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30834         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30835         using idiom used elsewhere in gnulib.
30836
30837 2008-10-27  Jim Meyering  <meyering@redhat.com>
30838
30839         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30840
30841 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30842
30843         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30844         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30845         programs.
30846         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30847
30848 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30849
30850         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30851
30852 2008-10-27  Bruno Haible  <bruno@clisp.org>
30853
30854         * tests/test-lstat.c: Include <stdio.h>.
30855
30856 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30857
30858         * modules/lstat-tests: New module.
30859         * tests/test-lstat.c: New file.
30860
30861 2008-10-26  Jim Meyering  <meyering@redhat.com>
30862
30863         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30864
30865 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30866             Bruno Haible  <bruno@clisp.org>
30867
30868         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30869         * modules/configmake (Include): Add a note that the include must come
30870         after all system headers.
30871         * lib/javaversion.c: Include configmake.h after all other includes.
30872
30873 2008-10-26  Bruno Haible  <bruno@clisp.org>
30874
30875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30876         HAVE_STRUCT_RANDOM_DATA to 1.
30877         (gl_STDLIB_H): Simplify.
30878
30879 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30880
30881         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30882         substitute HAVE_STRUCT_RANDOM_DATA.
30883         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30884         random_data.
30885         * modules/stdlib (Makefile.am): Substitute
30886         HAVE_STRUCT_RANDOM_DATA.
30887
30888 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30889
30890         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30891         * doc/gnulib-intro.texi (Copyright): Likewise.
30892
30893 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30894
30895         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30896         findings.
30897
30898 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30899             Bruno Haible  <bruno@clisp.org>
30900
30901         * lib/unistd.in.h: Include <winsock2.h>.
30902         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30903         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30904         Provide dummy declarations.
30905         (gethostname): Override.
30906         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30907         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30908         gl_PREREQ_SYS_H_WINSOCK2.
30909         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30910         * doc/posix-functions/gethostname.texi: More details.
30911
30912 2008-10-25  Bruno Haible  <bruno@clisp.org>
30913
30914         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30915         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30916         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30917
30918         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30919         here ...
30920         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30921         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30922         gl_UNISTD_H_DEFAULTS.
30923
30924 2008-10-25  Eric Blake  <ebb9@byu.net>
30925
30926         signbit: avoid spurious compiler failure
30927         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30928         declarations inside function.
30929
30930 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30931             Bruno Haible  <bruno@clisp.org>
30932
30933         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30934         * modules/random_r (Depends-on): Add stdint.
30935
30936 2008-10-24  Bruno Haible  <bruno@clisp.org>
30937
30938         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30939         Eggert.
30940         * modules/strerror (License): Likewise.
30941
30942 2008-10-24  Jim Meyering  <meyering@redhat.com>
30943
30944         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30945         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30946
30947 2008-10-24  Eric Blake  <ebb9@byu.net>
30948
30949         getgroups: fix compilation when getgroups is available
30950         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30951         but with <config.h> override of getgroups disabled.
30952
30953 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30954
30955         * doc/gnulib.texi (Header files): Add note about C++ problems.
30956         Explained by Bruno Haible <bruno@clisp.org>.
30957
30958 2008-10-23  Bruno Haible  <bruno@clisp.org>
30959
30960         Define a dummy SA_NODEFER macro on Interix.
30961         * lib/signal.in.h (SA_NODEFER): Define fallback.
30962         Reported by Aleksey Cheusov <cheusov@tut.by> via
30963         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30964
30965 2008-10-23  Bruno Haible  <bruno@clisp.org>
30966
30967         * modules/freadahead (License): Change to LGPLv2+.
30968         Suggested by Simon Josefsson.
30969
30970 2008-10-23  Jim Meyering  <meyering@redhat.com>
30971
30972         random_r: new module
30973         * modules/random_r: New file.
30974         * m4/random_r.m4: New file.
30975         * lib/random_r.c: New file, from glibc.
30976         * modules/random_r-tests: New file.
30977         * tests/test-random_r.c: New file.
30978         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
30979          Declare.
30980         (RAND_MAX): Define.
30981         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
30982         * modules/stdlib: Substitute them, too.
30983         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
30984         * doc/glibc-functions/initstate_r.texi: Mention the new module.
30985         * doc/glibc-functions/random_r.texi: Likewise.
30986         * doc/glibc-functions/setstate_r.texi: Likewise.
30987         * doc/glibc-functions/srandom_r.texi: Likewise.
30988         * config/srclist.txt: Mention it.
30989
30990 2008-10-23  David Lutterkort  <lutter@redhat.com>
30991
30992         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
30993         link requirement
30994
30995 2008-10-23  Jim Meyering  <meyering@redhat.com>
30996
30997         selinux-h: mark parameters of stub functions as intentionally unused
30998         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
30999         * lib/se-context.in.h: Likewise.
31000
31001 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31002
31003         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
31004
31005 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31006
31007         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
31008
31009 2008-10-22  Eric Blake  <ebb9@byu.net>
31010
31011         glthread/thread: avoid compiler warning
31012         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
31013         Add unreachable abort to silence compiler.
31014
31015 2008-10-22  Eric Blake  <ebb9@byu.net>
31016
31017         netdb: also supply struct addrinfo for cygwin 1.5.x
31018         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
31019         older cygwin.
31020         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
31021         cygwin.
31022         * doc/posix-headers/netdb.texi (netdb.h): Document this.
31023
31024 2008-10-22  Bruno Haible  <bruno@clisp.org>
31025
31026         * users.txt: Update entry about pspp.
31027
31028 2008-10-21  Bruno Haible  <bruno@clisp.org>
31029
31030         Simplification.
31031         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
31032         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
31033
31034         Simplification.
31035         * lib/ioctl.c (ioctl): Don't undefine.
31036         * lib/socket.c (socket): Don't undefine.
31037
31038         Remove unused module indicator macros.
31039         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
31040         GNULIB_$1 as a C macro.
31041
31042         * doc/posix-functions/close.texi: Undo last change.
31043         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
31044         Windows platforms.
31045
31046 2008-10-21  Bruno Haible  <bruno@clisp.org>
31047
31048         Add gethostname() declaration to <unistd.h>.
31049         * lib/unistd.in.h (gethostname): New declaration.
31050         * lib/gethostname.c: Include <unistd.h>.
31051         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
31052         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
31053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
31054         and HAVE_GETHOSTNAME.
31055         * modules/gethostname (Depends-on): Add unistd.
31056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31057         (Include): Specify <unistd.h>.
31058         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
31059         HAVE_GETHOSTNAME.
31060         * tests/test-gethostname.c: Include <unistd.h> first.
31061
31062 2008-10-21  Bruno Haible  <bruno@clisp.org>
31063
31064         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
31065         * modules/select-tests (Depends-on): Likewise.
31066         Reported by Simon Josefsson.
31067
31068 2008-10-21  Simon Josefsson  <simon@josefsson.org>
31069
31070         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
31071         * lib/accept.c: New file, based on winsock.c.
31072         * lib/bind.c: New file, based on winsock.c.
31073         * lib/connect.c: New file, based on winsock.c.
31074         * lib/getpeername.c: New file, based on winsock.c.
31075         * lib/getsockname.c: New file, based on winsock.c.
31076         * lib/getsockopt.c: New file, based on winsock.c.
31077         * lib/ioctl.c: New file, based on winsock.c.
31078         * lib/listen.c: New file, based on winsock.c.
31079         * lib/recv.c: New file, based on winsock.c.
31080         * lib/recvfrom.c: New file, based on winsock.c.
31081         * lib/send.c: New file, based on winsock.c.
31082         * lib/sendto.c: New file, based on winsock.c.
31083         * lib/setsockopt.c: New file, based on winsock.c.
31084         * lib/shutdown.c: New file, based on winsock.c.
31085         * lib/socket.c: New file, based on winsock.c.
31086         * lib/w32sock.h: New file, based on winsock.c.
31087         * lib/winsock.c: Remove file.
31088         * modules/accept: Likewise.
31089         * modules/bind: Likewise.
31090         * modules/connect: Likewise.
31091         * modules/getpeername: Likewise.
31092         * modules/getsockname: Likewise.
31093         * modules/getsockopt: Likewise.
31094         * modules/ioctl: Likewise.
31095         * modules/listen: Likewise.
31096         * modules/recv: Likewise.
31097         * modules/recvfrom: Likewise.
31098         * modules/send: Likewise.
31099         * modules/sendto: Likewise.
31100         * modules/setsockopt: Likewise.
31101         * modules/shutdown: Likewise.
31102         * modules/socket: Use socket.c instead of winsock.c.
31103         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
31104         * doc/posix-functions/accept.texi: Doc fix.
31105         * doc/posix-functions/bind.texi: Doc fix.
31106         * doc/posix-functions/close.texi: Doc fix.
31107         * doc/posix-functions/connect.texi: Doc fix.
31108         * doc/posix-functions/getpeername.texi: Doc fix.
31109         * doc/posix-functions/getsockname.texi: Doc fix.
31110         * doc/posix-functions/getsockopt.texi: Doc fix.
31111         * doc/posix-functions/ioctl.texi: Doc fix.
31112         * doc/posix-functions/listen.texi: Doc fix.
31113         * doc/posix-functions/recv.texi: Doc fix.
31114         * doc/posix-functions/recvfrom.texi: Doc fix.
31115         * doc/posix-functions/send.texi: Doc fix.
31116         * doc/posix-functions/sendto.texi: Doc fix.
31117         * doc/posix-functions/setsockopt.texi: Doc fix.
31118         * doc/posix-functions/shutdown.texi: Doc fix.
31119         * doc/posix-functions/socket.texi: Doc fix.
31120
31121 2008-10-20  Bruno Haible  <bruno@clisp.org>
31122
31123         Take into account the role of SIGABRT_COMPAT on Windows 2008.
31124         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
31125         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
31126         as an alias for SIGABRT.
31127         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
31128         (sigaction): Map it to SIGABRT.
31129         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
31130
31131 2008-10-20  Bruno Haible  <bruno@clisp.org>
31132
31133         * lib/fts.c: Don't include lstat.h.
31134         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
31135
31136         Move the lstat() declaration to <sys/stat.h>.
31137         * lib/lstat.h: Remove file.
31138         * lib/sys_stat.in.h: Add special invocation convention.
31139         (lstat): New declaration.
31140         * lib/lstat.c (orig_lstat): New function.
31141         (rpl_lstat): Use orig_lstat instead of lstat.
31142         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
31143         AC_C_INLINE. Set REPLACE_LSTAT.
31144         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
31145         and REPLACE_LSTAT.
31146         * modules/lstat (Files): Remove lib/lstat.h.
31147         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31148         (Include): Specify <sys/stat.h> instead of lstat.h.
31149         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
31150         REPLACE_LSTAT.
31151         * NEWS: Mention the change.
31152
31153 2008-10-20  Bruno Haible  <bruno@clisp.org>
31154
31155         * modules/posix_spawn-tests: New file.
31156         * tests/test-posix_spawn3.c: New file.
31157
31158 2008-10-20  Bruno Haible  <bruno@clisp.org>
31159
31160         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
31161         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31162         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
31163         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31164         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
31165
31166 2008-10-20  Bruno Haible  <bruno@clisp.org>
31167
31168         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
31169         of posix_spawn on AIX 5.3.
31170
31171 2008-10-20  Bruno Haible  <bruno@clisp.org>
31172
31173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
31174
31175 2008-10-20  Bruno Haible  <bruno@clisp.org>
31176
31177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
31178         of AC_LANG_PROGRAM.
31179
31180 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31181
31182         * lib/netdb.in.h: Don't define GNU specific constants until they
31183         are supported or needed.  Reported by Bruno Haible
31184         <bruno@clisp.org>.
31185
31186 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31187
31188         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
31189
31190 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31191
31192         * lib/getaddrinfo.h: Remove file.
31193         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
31194         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
31195         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
31196         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
31197         * modules/netdb: Substitute GNULIB_GETADDRINFO.
31198         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
31199         * tests/test-getaddrinfo.c: Likewise.
31200         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
31201         * NEWS: Mention change.
31202
31203 2008-10-19  Bruno Haible  <bruno@clisp.org>
31204
31205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
31206
31207 2008-10-19  Bruno Haible  <bruno@clisp.org>
31208
31209         * lib/wait-process.c: Include simply <sys/wait.h>.
31210         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
31211         WIFSTOPPED): Remove fallback definitions.
31212         * modules/wait-process (Depends-on): Add sys_wait.
31213
31214         New module 'sys_wait'.
31215         * modules/sys_wait: New file.
31216         * lib/sys_wait.in.h: New file, partially copied from
31217         lib/wait-process.c.
31218         * m4/sys_wait_h.m4: New file.
31219         * doc/posix-headers/sys_wait.texi: Mention the new module.
31220
31221 2008-10-19  Bruno Haible  <bruno@clisp.org>
31222
31223         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
31224
31225 2008-10-19  Bruno Haible  <bruno@clisp.org>
31226
31227         Assume that waitpid() fills an 'int' status, not a 'union wait'.
31228         * lib/wait-process.c (WAIT_T): Remove type.
31229         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
31230         (wait_subprocess): Update.
31231
31232 2008-10-19  Bruno Haible  <bruno@clisp.org>
31233
31234         New module 'atoll'.
31235         * modules/atoll: New file.
31236         * lib/stdlib.in.h (atoll): New declaration.
31237         * lib/atoll.c: New file, from glibc with modifications.
31238         * m4/atoll.m4: New file.
31239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
31240         HAVE_ATOLL.
31241         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31242         * doc/posix-functions/atoll.texi: Mention the new module.
31243
31244 2008-10-19  Bruno Haible  <bruno@clisp.org>
31245
31246         Add strtoull() declaration to <stdlib.h>.
31247         * lib/stdlib.in.h (strtoull): New declaration.
31248         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31249         Set HAVE_STRTOULL.
31250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
31251         HAVE_STRTOULL.
31252         * modules/strtoull (Depends-on): Add stdlib.
31253         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31254         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
31255         HAVE_STRTOULL.
31256
31257 2008-10-19  Bruno Haible  <bruno@clisp.org>
31258
31259         Add strtoll() declaration to <stdlib.h>.
31260         * lib/stdlib.in.h (strtoll): New declaration.
31261         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31262         Set HAVE_STRTOLL.
31263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
31264         HAVE_STRTOLL.
31265         * modules/strtoll (Depends-on): Add stdlib.
31266         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31267         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
31268
31269 2008-10-19  Bruno Haible  <bruno@clisp.org>
31270
31271         * modules/bcopy (Depends-on): Add strings.
31272         (Include): Specify <strings.h>.
31273
31274 2008-10-19  Bruno Haible  <bruno@clisp.org>
31275
31276         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
31277
31278 2008-10-19  Bruno Haible  <bruno@clisp.org>
31279
31280         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
31281         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
31282         mingw.
31283
31284 2008-10-19  Bruno Haible  <bruno@clisp.org>
31285
31286         * lib/atanl.c: Don't include isnanl.h.
31287         * lib/cosl.c: Likewise.
31288         * lib/ldexpl.c: Likewise.
31289         * lib/logl.c: Likewise.
31290         * lib/sinl.c: Likewise.
31291         * lib/sqrtl.c: Likewise.
31292         * lib/tanl.c: Likewise.
31293
31294         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
31295         * lib/isnanf.h: Remove file.
31296         * lib/isnand.h: Remove file.
31297         * lib/isnanl.h: Remove file.
31298         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
31299         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
31300         macros.
31301         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
31302         HAVE_ISNANF, don't define it as a C macro.
31303         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
31304         HAVE_ISNAND, don't define it as a C macro.
31305         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
31306         HAVE_ISNANL, don't define it as a C macro.
31307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
31308         HAVE_ISNAN[FDL].
31309         * modules/isnanf (Files): Remove lib/isnanf.h.
31310         (Depends-on): Add math.
31311         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31312         (Include): Specify <math.h> instead of isnanf.h.
31313         * modules/isnand (Files): Remove lib/isnand.h.
31314         (Depends-on): Add math.
31315         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31316         (Include): Specify <math.h> instead of isnand.h.
31317         * modules/isnanl (Files): Remove lib/isnanl.h.
31318         (Depends-on): Add math.
31319         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31320         (Include): Specify <math.h> instead of isnanl.h.
31321         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
31322         HAVE_ISNAN[FDL].
31323         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
31324         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
31325         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
31326         * NEWS: Mention the change.
31327
31328 2008-10-18  Bruno Haible  <bruno@clisp.org>
31329
31330         Add getusershell(), setusershell(), endusershell() declarations to
31331         <unistd.h>.
31332         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
31333         declarations.
31334         * lib/getusershell.c: Include unistd.h.
31335         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
31336         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31337         HAVE_GETUSERSHELL.
31338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
31339         and HAVE_GETUSERSHELL.
31340         * modules/getusershell (Depends-on): Add unistd, extensions.
31341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31342         (Include): Specify <unistd.h>.
31343         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
31344         HAVE_GETUSERSHELL.
31345
31346 2008-10-18  Bruno Haible  <bruno@clisp.org>
31347
31348         Add a getloadavg() declaration to <stdlib.h>.
31349         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
31350         getloadavg declaration.
31351         (getloadavg): New declaration.
31352         * lib/getloadavg.c: Include <stdlib.h> first.
31353         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
31354         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
31355         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
31356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
31357         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31358         * modules/getloadavg (Depends-on): Add stdlib, extensions.
31359         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31360         (Include): Specify <stdlib.h>.
31361         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
31362         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31363
31364 2008-10-18  Bruno Haible  <bruno@clisp.org>
31365
31366         * lib/dirchownmod.c: Don't include lchmod.h.
31367
31368         Move the lchmod() declaration to <sys/stat.h>.
31369         * lib/lchmod.h: Remove file.
31370         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
31371         (lchmod): New declaration, moved here from lib/lchown.h.
31372         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
31373         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
31374         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
31375         and HAVE_LCHMOD.
31376         * modules/lchmod (Files): Remove lib/lchmod.h.
31377         (Depends-on): Add sys_stat, extensions.
31378         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31379         (Include): Specify <sys/stat.h> instead of lchmod.h.
31380         * modules/sys_stat (Depends-on): Add link-warning.
31381         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
31382         definition of GL_LINK_WARNING.
31383         * NEWS: Mention the change.
31384
31385 2008-10-18  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/fchdir.c: Don't include dirfd.h.
31388         * lib/fts.c: Likewise.
31389         * lib/getcwd.c: Likewise.
31390         * lib/glob.c: Likewise.
31391
31392         Move the dirfd() declaration to <dirent.h>.
31393         * lib/dirfd.h: Remove file.
31394         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
31395         (dirfd): New declaration.
31396         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
31397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
31398         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
31399         HAVE_DECL_DIRFD.
31400         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
31401         HAVE_DECL_DIRFD.
31402         * modules/dirfd (Files): Remove lib/dirfd.h.
31403         (Depends-on): Add dirent, extensions.
31404         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
31405         (Include): Specify <dirent.h> instead of dirfd.h.
31406         * modules/dirent (Depends-on): Add link-warning.
31407         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
31408         definition of GL_LINK_WARNING.
31409         * NEWS: Mention the change.
31410
31411 2008-10-18  Bruno Haible  <bruno@clisp.org>
31412
31413         Move the euidaccess() declaration to <unistd.h>.
31414         * lib/euidaccess.h: Remove file.
31415         * lib/unistd.in.h (euidaccess): New declaration.
31416         * lib/euidaccess.c: Don't include euidaccess.h.
31417         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
31418         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
31419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
31420         and HAVE_EUIDACCESS.
31421         * modules/euidaccess (Files): Remove lib/euidaccess.h.
31422         (Depends-on): Add unistd.
31423         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31424         (Include): Specify <unistd.h> instead of euidaccess.h.
31425         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
31426         HAVE_EUIDACCESS.
31427         * NEWS: Mention the change.
31428
31429 2008-10-18  Bruno Haible  <bruno@clisp.org>
31430
31431         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
31432
31433         Move the getdomainname() declaration to <unistd.h>.
31434         * lib/getdomainname.h: Remove file.
31435         * lib/unistd.in.h (getdomainname): New declaration.
31436         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
31437         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
31438         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31439         HAVE_GETDOMAINNAME.
31440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31441         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
31442         * modules/getdomainname (Files): Remove lib/getdomainname.h.
31443         (Depends-on): Add unistd, extensions.
31444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31445         (Includes): Specify <unistd.h> instead of getdomainname.h.
31446         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
31447         HAVE_GETDOMAINNAME.
31448         * NEWS: Mention the change.
31449
31450 2008-10-18  Bruno Haible  <bruno@clisp.org>
31451
31452         * modules/dirent: New file.
31453         * m4/dirent_h.m4: New file.
31454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
31455         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
31456         * modules/fchdir (Files): Remove lib/dirent.in.h.
31457         (Depends-on): Add dirent.
31458         (Makefile.am): Move rules to modules/dirent.
31459         * doc/posix-headers/dirent.texi: Mention the new module.
31460
31461 2008-10-18  Bruno Haible  <bruno@clisp.org>
31462
31463         Avoid -Wunused-parameter warnings in public gnulib header files.
31464         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
31465         macro.
31466         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
31467
31468 2008-10-18  Bruno Haible  <bruno@clisp.org>
31469
31470         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
31471         * doc/glibc-functions/error.texi: Mention the module 'error'.
31472         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
31473         * doc/glibc-functions/getdomainname.texi: Mention the module
31474         'getdomainname'.
31475         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
31476         * doc/glibc-functions/getpagesize.texi: Mention the module
31477         'getpagesize'.
31478         * doc/glibc-functions/getusershell.texi: Mention the module
31479         'getusershell'.
31480         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
31481         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
31482         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
31483         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
31484         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
31485         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
31486         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
31487         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
31488         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
31489         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
31490         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
31491         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
31492         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
31493         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
31494
31495 2008-10-17  Bruno Haible  <bruno@clisp.org>
31496
31497         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
31498         HP-UX and IRIX, use -0.0L.
31499         * tests/test-ceill.c (minus_zero): Likewise.
31500         * tests/test-floorl.c (minus_zero): Likewise.
31501         * tests/test-frexpl.c (minus_zero): Likewise.
31502         * tests/test-isnan.c (minus_zerol): Likewise.
31503         * tests/test-isnanl.h (minus_zero): Likewise.
31504         * tests/test-ldexpl.c (minus_zero): Likewise.
31505         * tests/test-roundl.c (minus_zero): Likewise.
31506         * tests/test-signbit.c (minus_zerol): Likewise.
31507         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31508         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31509         * tests/test-truncl.c (minus_zero): Likewise.
31510         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31511         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31512         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
31513         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31514
31515 2008-10-17  Bruno Haible  <bruno@clisp.org>
31516
31517         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
31518         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
31519         that it gets activated only for gcc >= 3.0.
31520         * lib/dirent.in.h: Likewise.
31521         * lib/errno.in.h: Likewise.
31522         * lib/fcntl.in.h: Likewise.
31523         * lib/float.in.h: Likewise.
31524         * lib/iconv.in.h: Likewise.
31525         * lib/inttypes.in.h: Likewise.
31526         * lib/locale.in.h: Likewise.
31527         * lib/math.in.h: Likewise.
31528         * lib/netdb.in.h: Likewise.
31529         * lib/netinet_in.in.h: Likewise.
31530         * lib/search.in.h: Likewise.
31531         * lib/signal.in.h: Likewise.
31532         * lib/spawn.in.h: Likewise.
31533         * lib/stdarg.in.h: Likewise.
31534         * lib/stdint.in.h: Likewise.
31535         * lib/stdio.in.h: Likewise.
31536         * lib/stdlib.in.h: Likewise.
31537         * lib/string.in.h: Likewise.
31538         * lib/strings.in.h: Likewise.
31539         * lib/sys_file.in.h: Likewise.
31540         * lib/sys_ioctl.in.h: Likewise.
31541         * lib/sys_select.in.h: Likewise.
31542         * lib/sys_socket.in.h: Likewise.
31543         * lib/sys_stat.in.h: Likewise.
31544         * lib/sys_time.in.h: Likewise.
31545         * lib/sysexits.in.h: Likewise.
31546         * lib/time.in.h: Likewise.
31547         * lib/unistd.in.h: Likewise.
31548         * lib/wchar.in.h: Likewise.
31549         * lib/wctype.in.h: Likewise.
31550         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31551
31552 2008-10-17  Jim Meyering  <meyering@redhat.com>
31553
31554         ignore-value: don't depend on inline module
31555         * modules/ignore-value (Depends-on): Remove 'inline'.
31556         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
31557         Suggestion from Bruno Haible.
31558
31559 2008-10-17  Bruno Haible  <bruno@clisp.org>
31560
31561         New implementation of condition variables for Win32.
31562         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
31563         (gl_linked_waitqueue_t): New type.
31564         (gl_cond_t): Use it.
31565         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
31566         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
31567         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
31568         (glthread_cond_init_func, glthread_cond_wait_func,
31569         glthread_cond_timedwait_func, glthread_cond_signal_func,
31570         glthread_cond_broadcast_func, glthread_cond_destroy_func):
31571         Reimplemented on the basis of gl_linked_waitqueue_t.
31572         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
31573         gl_waitqueue_t.
31574         (gl_rwlock_t): Update.
31575         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
31576
31577 2008-10-17  Simon Josefsson  <simon@josefsson.org>
31578
31579         * modules/recvfrom (Depends-on): Add dependency on getpeername.
31580         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31581
31582 2008-10-17  Jim Meyering  <meyering@redhat.com>
31583
31584         ignore-value: new module
31585         * modules/ignore-value: New file.
31586         * lib/ignore-value.h: New file.
31587         * MODULES.html.sh (Compiler warning management): New section,
31588         just for this module.  More to come.
31589
31590 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31591
31592         open-safer.c: avoid 'signed and unsigned in conditional...' warning
31593         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
31594         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
31595
31596 2008-10-16  Jim Meyering  <meyering@redhat.com>
31597
31598         openat-die.c: avoid 'no previous prototype' warning
31599         * lib/openat-die.c: Include "openat.h".
31600         Reported by Reuben Thomas <rrt@sc3d.org>.
31601
31602 2008-10-16  Simon Josefsson  <simon@josefsson.org>
31603
31604         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
31605         * lib/netdb.in.h: Fix typo.
31606         Reported by Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/netdb.in.h: Include sys/socket.h for platforms without
31609         netdb.h, to get structures like hostent on MinGW.
31610         * modules/netdb (Depends-on): Add sys_socket.
31611
31612 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31613
31614         * modules/netdb, modules/netdb-tests: New file.
31615         * m4/netdb_h.m4: New file.
31616         * lib/netdb.in.h: Add, currently just an empty file pending
31617         definitions.
31618         * tests/test-netdb.c: New file.
31619         * doc/posix-headers/netdb.texi: Mention that we replace it if
31620         needed.
31621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31622         netdb.
31623
31624 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31625
31626         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
31627         with code.
31628
31629 2008-10-13  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/glthread/cond.c (glthread_cond_wait_func,
31632         glthread_cond_timedwait_func): Add a comment.
31633
31634 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31635
31636         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
31637         * tests/test-select.c: Likewise,
31638
31639 2008-10-13  Bruno Haible  <bruno@clisp.org>
31640
31641         * lib/glthread/cond.c (glthread_cond_wait_func,
31642         glthread_cond_timedwait_func): Fix variable name.
31643         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31644
31645 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
31646
31647         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
31648         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
31649         struct sockaddr.sa_len.
31650         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
31651
31652 2008-10-13  Simon Josefsson  <simon@josefsson.org>
31653
31654         * build-aux/pmccabe2html: Add css and css_url parameters.
31655
31656 2008-10-12  Bruno Haible  <bruno@clisp.org>
31657
31658         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
31659         calling aclx_get.
31660         Reported by Rainer Tammer <tammer@tammer.net>.
31661
31662 2008-10-12  Bruno Haible  <bruno@clisp.org>
31663
31664         Use msvcrt aware primitives for creation/termination of Win32 threads.
31665         * lib/glthread/thread.c: Include <process.h>.
31666         (glthread_create_func): Use _beginthreadex instead of CreateThread.
31667         (wrapper_func): Update signature.
31668         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
31669
31670 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31671             Bruno Haible  <bruno@clisp.org>
31672
31673         Provide a Win32 implementation of the 'cond' module.
31674         * lib/glthread/cond.h [USE_WIN32]: New implementation.
31675         * lib/glthread/cond.c (glthread_cond_init_func,
31676         glthread_cond_wait_func, glthread_cond_timedwait_func,
31677         glthread_cond_signal_func, glthread_cond_broadcast_func,
31678         glthread_cond_destroy_func) [USE_WIN32]: New functions.
31679         * modules/cond (Dependencies): Add gettimeofday.
31680
31681 2008-10-11  Bruno Haible  <bruno@clisp.org>
31682
31683         Make sleep work on older versions of mingw.
31684         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
31685         only whether it exists.
31686         * doc/posix-functions/sleep.texi: Mention the problem with older
31687         versions of mingw.
31688
31689 2008-10-11  Bruno Haible  <bruno@clisp.org>
31690
31691         New module 'shutdown'.
31692         * modules/shutdown: New file.
31693         * lib/sys_socket.in.h (shutdown): New declaration.
31694         * lib/winsock.c (shutdown): New function.
31695         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31696         GNULIB_SHUTDOWN.
31697         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
31698         * doc/posix-functions/shutdown.texi: Document the new module.
31699
31700 2008-10-11  Jim Meyering  <meyering@redhat.com>
31701
31702         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
31703
31704 2008-10-11  Bruno Haible  <bruno@clisp.org>
31705
31706         New module 'fclose'.
31707         * modules/fclose: New file.
31708         * lib/stdio.in.h (fclose): New declaration.
31709         * lib/fclose.c: New file.
31710         * m4/fclose.m4: New file.
31711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31712         REPLACE_FCLOSE.
31713         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31714         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31715         REPLACE_FCLOSE.
31716         * modules/close (Depends-on): fclose.
31717         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31718
31719 2008-10-11  Bruno Haible  <bruno@clisp.org>
31720
31721         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31722         set errno and don't call _close.
31723
31724 2008-10-10  Bruno Haible  <bruno@clisp.org>
31725
31726         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31727         ACL, not afterwards. Fixes test failure on Cygwin.
31728
31729 2008-10-09  Ben Pfaff  <blp@gnu.org>
31730
31731         * build-aux/announce-gen: Fix gnulib version related part of usage
31732         message.  Die with a useful error message if no tarballs are
31733         found.
31734
31735 2008-10-10  Jim Meyering  <meyering@redhat.com>
31736
31737         bootstrap: use git's --depth=N option only if it's supported
31738         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31739         recognize the --depth option.  Reported by Pádraig Brady.
31740
31741 2008-10-09  Bruno Haible  <bruno@clisp.org>
31742
31743         New module 'ioctl'.
31744         * modules/ioctl: New file.
31745         * lib/sys_socket.in.h (ioctl): Remove declaration.
31746         * lib/winsock.c: Include <sys/ioctl.h>.
31747         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31748         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31749         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31750         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31751         * doc/posix-functions/ioctl.texi: Mention the new module.
31752
31753 2008-10-09  Bruno Haible  <bruno@clisp.org>
31754
31755         New module 'sys_ioctl'.
31756         * lib/sys_ioctl.in.h: New file.
31757         * m4/sys_ioctl_h.m4: New file.
31758         * modules/sys_ioctl: New file.
31759         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31760
31761 2008-10-09  Bruno Haible  <bruno@clisp.org>
31762
31763         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31764         * lib/winsock.c: Include <stdarg.h>.
31765         (rpl_ioctl): Change to second argument 'int' and then varargs.
31766
31767 2008-10-09  Bruno Haible  <bruno@clisp.org>
31768
31769         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31770         when the sys_socket module is present and the system has <winsock2.h>.
31771
31772 2008-10-09  Bruno Haible  <bruno@clisp.org>
31773
31774         * doc/posix-functions/close.texi: Mention module 'close' instead of
31775         module 'sys_socket'.
31776
31777 2008-10-09  Bruno Haible  <bruno@clisp.org>
31778
31779         * doc/glibc-headers/sys_ioctl.texi: New file.
31780         * doc/gnulib.texi: Include it.
31781
31782 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31783             Bruno Haible  <bruno@clisp.org>
31784
31785         Combine the two replacements of 'close'.
31786         * lib/sys_socket.in.h (close): Define to a reminder to include
31787         <unistd.h>.
31788         (_gl_close_fd_maybe_socket): New declaration.
31789         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31790         * lib/winsock.c (close): Remove undefinition.
31791         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31792         needed for the gnulib module 'close'.
31793         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31794         define to an error symbol or to a warning, if suitable.
31795         * lib/close.c: Include <sys/socket.h>.
31796         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31797         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31798         UNISTD_H_HAVE_WINSOCK2_H.
31799         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31801         UNISTD_H_HAVE_WINSOCK2_H.
31802         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31803         (configure.ac): Set a module indicator.
31804         (Makefile.am): Substitute GNULIB_CLOSE.
31805         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31806         * modules/poll-tests (Depends-on): Add close.
31807         * modules/select-tests (Depends-on): Likewise.
31808
31809 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31810             Bruno Haible  <bruno@clisp.org>
31811
31812         New module 'close'.
31813         * modules/close: New file.
31814         * lib/unistd.in.h (close): Move declaration out of the
31815         FCHDIR_REPLACEMENT scope.
31816         (_gl_unregister_fd): New declaration.
31817         * lib/close.c: New file.
31818         * lib/fchdir.c (rpl_close): Remove function.
31819         * m4/close.m4: New file.
31820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31821         close.
31822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31823         REPLACE_CLOSE.
31824         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31825         REPLACE_CLOSE.
31826         * modules/fchdir (Depends-on): Add close.
31827
31828 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31829             Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/fcntl.in.h (open): Simplify conditionals.
31832         (_gl_register_fd): New declaration.
31833         * lib/fchdir.c (rpl_open): Remove function.
31834         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31835         also.
31836         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31838         open.
31839
31840 2008-10-09  Jim Meyering  <meyering@redhat.com>
31841
31842         GNUmakefile: use the more name-space-friendly "_version"
31843         * top/GNUmakefile (_dummy): Update.
31844         (_version): Rename from "version".
31845
31846 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31847             Bruno Haible  <bruno@clisp.org>
31848
31849         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31850         rpl_close.
31851         (_gl_register_fd): New function, extracted from rpl_open.
31852         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31853         (rpl_open, rpl_opendir): Use _gl_register_fd.
31854
31855 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31856
31857         Fix organization of 'open' replacement.
31858         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31859         (gl_FUNC_OPEN): Use it.
31860         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31861
31862 2008-10-08  Bruno Haible  <bruno@clisp.org>
31863
31864         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31865
31866 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31867
31868         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31869         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31870         listen).
31871
31872 2008-10-08  Eric Blake  <ebb9@byu.net>
31873
31874         GNUmakefile: add 'make version' target
31875         * top/GNUmakefile (_curr-ver): Split version update rules...
31876         (version): ...into a target.
31877
31878 2008-10-07  Bruno Haible  <bruno@clisp.org>
31879
31880         Use a more portable replacement expression for -0.0L.
31881         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31882         instead of -0.0L. Fix m4 quotation.
31883
31884         * tests/test-signbit.c: Include <float.h>.
31885         (minus_zero): New variable.
31886         (test_signbitl): Use minus_zero instead of -zero.
31887         * modules/signbit-tests (Depends-on): Add float.
31888
31889         * tests/test-ceill.c: Include <float.h>.
31890         (zero): Remove variable.
31891         (minus_zero): New variable.
31892         (main): Use minus_zero instead of -zero.
31893         * modules/ceill-tests (Depends-on): Add float.
31894
31895         * tests/test-floorl.c: Include <float.h>.
31896         (zero): Remove variable.
31897         (minus_zero): New variable.
31898         (main): Use minus_zero instead of -zero.
31899         * modules/floorl-tests (Depends-on): Add float.
31900
31901         * tests/test-roundl.c: Include <float.h>.
31902         (zero): Remove variable.
31903         (minus_zero): New variable.
31904         (main): Use minus_zero instead of -zero.
31905         * modules/roundl-tests (Depends-on): Add float.
31906
31907         * tests/test-truncl.c: Include <float.h>.
31908         (zero): Remove variable.
31909         (minus_zero): New variable.
31910         (main): Use minus_zero instead of -zero.
31911         * modules/truncl-tests (Depends-on): Add float.
31912
31913         * tests/test-frexpl.c (zero): Remove variable.
31914         (minus_zero): New variable.
31915         (main): Use minus_zero instead of -zero.
31916         * modules/frexpl-tests (Depends-on): Add float.
31917
31918         * tests/test-isnan.c (zerol): Remove variable.
31919         (minus_zerol): New variable.
31920         (test_long_double): Use minus_zerol instead of -zerol.
31921         * modules/isnan-tests (Depends-on): Add float.
31922
31923         * tests/test-isnanl.h (zero): Remove variable.
31924         (minus_zero): New variable.
31925         (main): Use minus_zero instead of -zero.
31926         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31927         * modules/isnanl-tests (Depends-on): Add float.
31928
31929         * tests/test-ldexpl.c (zero): Remove variable.
31930         (minus_zero): New variable.
31931         (main): Use minus_zero instead of -zero.
31932         * modules/ldexpl-tests (Depends-on): Add float.
31933
31934         * tests/test-snprintf-posix.h (zerol): Remove variable.
31935         (minus_zerol): New variable.
31936         (test_function): Use minus_zerol instead of -zerol.
31937         * modules/snprintf-posix-tests (Depends-on): Add float.
31938         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31939
31940         * tests/test-sprintf-posix.h (zerol): Remove variable.
31941         (minus_zerol): New variable.
31942         (test_function): Use minus_zerol instead of -zerol.
31943         * modules/sprintf-posix-tests (Depends-on): Add float.
31944         * modules/vsprintf-posix-tests (Depends-on): Add float.
31945
31946         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31947         (minus_zerol): New variable.
31948         (test_function): Use minus_zerol instead of -zerol.
31949         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31950
31951         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31952         (minus_zerol): New variable.
31953         (test_function): Use minus_zerol instead of -zerol.
31954         * modules/vasprintf-posix-tests (Depends-on): Add float.
31955
31956 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31957
31958         * MODULES.html.sh (Support for building documentation): Mention
31959         pmccabe2html.  Sort entries.
31960
31961         Add pmccabe2html module, from gnupdf.
31962         * build-aux/pmccabe.css: New file.
31963         * build-aux/pmccabe2html: New file.
31964         * m4/pmccabe2html.m4: New file.
31965         * modules/pmccabe2html: New file.
31966
31967 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
31968
31969         flock: new module
31970         * MODULES.html.sh: Add to list of modules.
31971         * lib/flock.c: flock implementation for Windows and Unix systems
31972         which have fcntl.
31973         * doc/glibc-functions/flock.texi: Update documentation.
31974         * lib/sys_file.in.h: <sys/file.h> header file.
31975         * m4/flock.m4: M4 macros.
31976         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
31977         * modules/flock: flock module.
31978         * modules/flock-tests: flock tests module.
31979         * modules/sys_file: sys/file.h module.
31980         * tests/test-flock.c: test suite for flock.
31981
31982 2008-10-06  Jim Meyering  <meyering@redhat.com>
31983
31984         bootstrap: check for LT_INIT more portably still ;-)
31985         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
31986         Spotted by Bruno Haible.
31987
31988 2008-10-06  Eric Blake  <ebb9@byu.net>
31989
31990         test-signbit: avoid tripping Irix cc bug on -0.0L
31991         * tests/test-signbit.c (minus_zerol): Delete, and replace with
31992         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
31993         entire testsuite consistent and avoids an Irix 6.2 bug.
31994
31995 2008-10-05  Bruno Haible  <bruno@clisp.org>
31996             Jim Meyering  <jim@meyering.net>
31997
31998         Add an option for ignoring EPIPE during close_stdout.
31999         * lib/closeout.h: Include <stdbool.h>.
32000         (close_stdout_set_ignore_EPIPE): New declaration.
32001         * lib/closeout.c: Include <stdbool.h>.
32002         (ignore_EPIPE): New variable.
32003         (close_stdout_set_ignore_EPIPE): New function.
32004         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
32005         * lib/close-stream.c (close_stream): Mention the possible EPIPE
32006         failure.
32007         * modules/closeout (Depends-on): Add stdbool.
32008
32009 2008-10-05  Bruno Haible  <bruno@clisp.org>
32010
32011         * modules/accept: New file.
32012         * modules/bind: New file.
32013         * modules/connect: New file.
32014         * modules/getpeername: New file.
32015         * modules/getsockname: New file.
32016         * modules/getsockopt: New file.
32017         * modules/listen: New file.
32018         * modules/recv: New file.
32019         * modules/recvfrom: New file.
32020         * modules/send: New file.
32021         * modules/sendto: New file.
32022         * modules/setsockopt: New file.
32023         * modules/socket: New file.
32024         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
32025         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32026         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
32027         the particular module is requested. Add a link warning when the
32028         particular module is not requested.
32029         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
32030         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
32031         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
32032         the particular module is requested.
32033         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
32034         gl_SYS_SOCKET_H_DEFAULTS): New macros.
32035         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
32036         * modules/sys_socket (Depends-on): Add link-warning.
32037         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
32038         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
32039         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
32040         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
32041         GL_LINK_WARNING.
32042         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
32043         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
32044         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
32045         * doc/posix-functions/getpeername.texi: Mention the new module
32046         'getpeername'.
32047         * doc/posix-functions/getsockname.texi: Mention the new module
32048         'getsockname'.
32049         * doc/posix-functions/getsockopt.texi: Mention the new module
32050         'getsockopt'.
32051         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
32052         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
32053         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
32054         * doc/posix-functions/send.texi: Mention the new module 'send'.
32055         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
32056         * doc/posix-functions/setsockopt.texi: Mention the new module
32057         'setsockopt'.
32058         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
32059         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
32060         listen, connect, accept.
32061         * modules/select-tests (Depends-on): Likewise.
32062
32063 2008-10-05  Bruno Haible  <bruno@clisp.org>
32064
32065         * lib/winsock.c (strerror): Remove unused #undef.
32066         (rpl_close): Remove unused local variable.
32067
32068         * modules/sys_socket (Depends-on); Add errno.
32069
32070 2008-10-05  Bruno Haible  <bruno@clisp.org>
32071
32072         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
32073         (select): Add a link warning when the 'select' module is not used.
32074         * modules/sys_select (Depends-on): Add link-warning.
32075         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
32076         Suggested by Paolo Bonzini.
32077
32078 2008-10-05  Jim Meyering  <meyering@redhat.com>
32079
32080         bootstrap: check for LT_INIT more portably
32081         * build-aux/bootstrap: Avoid using grep -E, since it's not
32082         portable enough.  Suggestion from Bruno Haible.
32083
32084 2008-10-05  Bruno Haible  <bruno@clisp.org>
32085
32086         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
32087         as being fixed by gnulib.
32088
32089 2008-10-05  Bruno Haible  <bruno@clisp.org>
32090
32091         * modules/select-tests: New file, mostly copied from
32092         modules/sys_select-tests.
32093         * tests/test-select.c: New file, mostly copied from
32094         tests/test-sys_select.c.
32095         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
32096         * modules/sys_select-tests (Depends-on): Remove all dependencies.
32097         (Makefile.am): Remove test_sys_select_LDADD.
32098
32099         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
32100         to an undefined symbol, for an error message.
32101         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
32102         (gl_SYS_SELECT_H_DEFAULTS): New macro.
32103         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
32104         winsock-select.c here.
32105         * modules/sys_select (Files): Remove lib/winsock-select.c.
32106         (Depends-on): Remove alloca.
32107         (Makefile.am): Substitute GNULIB_SELECT.
32108         * modules/select: New file.
32109         * doc/posix-functions/select.texi: Update.
32110
32111 2008-10-05  Bruno Haible  <bruno@clisp.org>
32112
32113         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
32114         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
32115         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
32116         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
32117         getdtablesize.
32118         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32119         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32120
32121 2008-10-05  Bruno Haible  <bruno@clisp.org>
32122
32123         * modules/getdtablesize-tests: New file.
32124         * tests/test-getdtablesize.c: New file.
32125
32126         New module 'getdtablesize'.
32127         * lib/unistd.in.h (getdtablesize): New declaration.
32128         * lib/getdtablesize.c: New file.
32129         * m4/getdtablesize.m4: New file.
32130         * modules/getdtablesize: New file.
32131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32132         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
32133         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
32134         HAVE_GETDTABLESIZE.
32135         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
32136
32137 2008-10-05  Bruno Haible  <bruno@clisp.org>
32138
32139         * modules/sched (Makefile.am): Fix typo.
32140         Reported by Simon Josefsson.
32141
32142 2008-10-05  Jim Meyering  <meyering@redhat.com>
32143
32144         bootstrap: check for LT_INIT, too
32145         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
32146         are deprecated.  Suggestion from Ralf Wildenhues.
32147
32148 2008-10-05  Bruno Haible  <bruno@clisp.org>
32149
32150         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
32151         overriding them by ours.
32152         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
32153
32154 2008-10-05  Jim Meyering  <meyering@redhat.com>
32155
32156         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
32157         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
32158         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
32159
32160 2008-10-04  Bruno Haible  <bruno@clisp.org>
32161
32162         * modules/dup2 (License): Change to LGPLv2+.
32163         * modules/sleep (License): Likewise.
32164         * modules/perror (License): Likewise.
32165         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
32166         Blake.
32167         * modules/signal (License): Likewise.
32168         * modules/sigprocmask (License): Likewise.
32169         * modules/raise (License): Change to LGPLv2+, with approval by Jim
32170         Meyering.
32171
32172 2008-10-04  Bruno Haible  <bruno@clisp.org>
32173
32174         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
32175         Reported by Rainer Tammer <tammer@tammer.net>.
32176
32177 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
32178             Bruno Haible  <bruno@clisp.org>
32179
32180         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
32181         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
32182         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
32183
32184 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
32185
32186         filevercmp: new module
32187         * lib/filevercmp.h: New function filevercmp comparing version strings.
32188         * lib/filevercmp.c: Implementation of filevercmp function.
32189         * modules/filevercmp: Module metadata.
32190         * tests/test-filevercmp.c: Unit test for new module.
32191         * modules/filevercmp-tests: Unit test metadata.
32192         * MODULES.html.sh: Add filevercmp module.
32193
32194 2008-10-03  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/c-ctype.h: Add comment.
32197         Reported by Jim Meyering.
32198
32199 2008-10-02  Bruno Haible  <bruno@clisp.org>
32200
32201         * modules/posix_spawn-internal (Depends-on): Add 'open'.
32202
32203 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32204
32205         * build-aux/bootstrap: Allow renaming bootstrap, and change the
32206         name of bootstrap.conf accordingly.
32207
32208 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32209
32210         * build-aux/bootstrap: Install git-merge-changelog configuration
32211         items into .gitconfig if needed.
32212
32213 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32214
32215         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
32216         git repository, and initialize/update it accordingly.
32217
32218 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
32219
32220         * modules/fsync-tests: New file.
32221         * tests/test-fsync.c: New file.
32222
32223         New module 'fsync'.
32224         * lib/fsync.c: New file.
32225         * m4/fsync.m4: New file.
32226         * modules/fsync: New file.
32227         * lib/unistd.in.h (fsync): New declaration.
32228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
32229         GNULIB_FSYNC and HAVE_FSYNC.
32230         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
32231         * MODULES.html.sh (posix_functions): Add fsync.
32232         * doc/posix-functions/fsync.texi: Mention the new module.
32233
32234 2008-10-02  Jim Meyering  <meyering@redhat.com>
32235
32236         fts.c: sync with similar code from coreutils' remove.c
32237         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
32238         Guard also with "#if defined __linux__", since for now at least,
32239         this code is Linux-kernel-specific.
32240
32241 2008-10-02  Jim Meyering  <meyering@redhat.com>
32242
32243         fts: bug fixes
32244         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
32245         Include <sys/vfs.h>, not <sys/statfs.h>.
32246
32247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
32248         Include <sys/vfs.h>, not <sys/statfs.h>.
32249
32250 2008-10-01  Bruno Haible  <bruno@clisp.org>
32251
32252         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
32253         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
32254         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
32255         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
32256         * doc/posix-functions/posix_spawnp.texi: Likewise.
32257         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
32258         whether posix_spawn actually works.
32259         * m4/pipe.m4 (gl_PIPE): Likewise.
32260         * modules/execute (Files): Add m4/posix_spawn.m4.
32261         * modules/pipe (Files): Add m4/posix_spawn.m4.
32262         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
32263
32264 2008-10-01  Jim Meyering  <meyering@redhat.com>
32265
32266         remove trailing spaces
32267         * NEWS: Likewise.
32268         * lib/poll.c (poll): Likewise.
32269         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
32270         * lib/winsock.c (rpl_close): Likewise.
32271         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
32272         * modules/yield: Likewise.
32273         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
32274         * tests/test-sys_select.c (connect_to_socket): Likewise.
32275
32276         fts.c: adjust a new interface to be more generally useful
32277         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
32278         (fts_build): Adjust caller.
32279
32280 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32281
32282         * modules/cond-tests: New file.
32283         * tests/test-cond.c: New file.
32284
32285 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32286             Bruno Haible  <bruno@clisp.org>
32287
32288         * modules/cond (Dependencies): Add errno, time.
32289         * lib/glthread/cond.h: Include <time.h>.
32290         (gl_cond_define, gl_cond_define_initialized): Use the same definition
32291         across platforms.
32292
32293 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32294             Bruno Haible  <bruno@clisp.org>
32295
32296         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
32297
32298 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32299             Bruno Haible  <bruno@clisp.org>
32300
32301         * modules/tls-tests (Depends-on): Add thread, yield.
32302         (configure.ac): Remove all checks.
32303         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
32304         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32305         gl_thread_self): Remove definitions. Include glthread/thread.h and
32306         glthread/yield.h instead.
32307         (test_tls): Pass an additional NULL argument to gl_thread_join.
32308
32309 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32310             Bruno Haible  <bruno@clisp.org>
32311
32312         * modules/lock-tests (Depends-on): Add thread, yield.
32313         (configure.ac): Remove all checks.
32314         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
32315         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32316         gl_thread_self): Remove definitions. Include glthread/thread.h and
32317         glthread/yield.h instead.
32318         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
32319         additional NULL argument to gl_thread_join.
32320
32321 2008-09-30  Bruno Haible  <bruno@clisp.org>
32322
32323         Fix the Win32 implementation of the 'thread' module.
32324         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
32325         pointer type.
32326         (gl_thread_self): Invoke gl_thread_self_func.
32327         (gl_thread_self_func): New declaration.
32328         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
32329         (do_init_self_key, init_self_key): New functions.
32330         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
32331         Remove some fields.
32332         (running_threads, running_lock): Remove variables.
32333         (get_current_thread_handle): New function.
32334         (gl_thread_self_func, wrapper_func, glthread_create_func,
32335         glthread_join_func, gl_thread_exit_func): Largely rewritten and
32336         simplified.
32337
32338 2008-09-30  Bruno Haible  <bruno@clisp.org>
32339
32340         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
32341         files.
32342
32343 2008-09-30  Jim Meyering  <meyering@redhat.com>
32344
32345         fts.m4: correct the test for statfs.f_type
32346         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
32347         when checking for statfs.f_type.
32348
32349 2008-09-15  Simon Josefsson  <simon@josefsson.org>
32350
32351         tests: avoid some compiler warnings
32352         * tests/test-memchr.c (main): Pass NULL indirectly.
32353         * tests/test-getdate.c (main): Remove unused variable 'ret'.
32354
32355 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
32356
32357         getdate.y: disallow countable dayshifts like "4 yesterday ago"
32358         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
32359         exactly specified dayshifts.
32360         (dayshift): New rule.
32361         (rel): Add dayshift.
32362         (relative_time_table) [tomorrow, yesterday, today, now]:
32363         Use tDAY_SHIFT in place of tDAY_UNIT.
32364         * tests/test-getdate.c: Add tests for now-disallowed countable
32365         dayshifts, e.g., "4 yesterday ago".
32366
32367 2008-09-29  Bruno Haible  <bruno@clisp.org>
32368
32369         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
32370         * tests/test-posix_spawn1.in.sh: Renamed from
32371         tests/test-posix_spawn.in.sh.
32372         * tests/test-posix_spawn2.c: New file.
32373         * tests/test-posix_spawn2.in.sh: New file.
32374         * modules/posix_spawnp-tests (Files): Update.
32375         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
32376
32377 2008-09-29  Bruno Haible  <bruno@clisp.org>
32378
32379         Propagate effects of putenv/setenv/unsetenv to child processes.
32380         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
32381         * lib/pipe.c (create_pipe): Likewise.
32382
32383 2008-09-29  Bruno Haible  <bruno@clisp.org>
32384
32385         Enable use of shell scripts as executables in mingw.
32386         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
32387         run the program as a shell script.
32388         * lib/pipe.c (create_pipe): Likewise.
32389         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
32390         resulting array.
32391
32392 2008-09-29  Eric Blake  <ebb9@byu.net>
32393
32394         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
32395
32396 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
32397
32398         * doc/posix-functions/accept.texi: Update mingw problems.
32399         * doc/posix-functions/bind.texi: Update mingw problems.
32400         * doc/posix-functions/close.texi: Update mingw problems.
32401         * doc/posix-functions/connect.texi: Update mingw problems.
32402         * doc/posix-functions/getpeername.texi: Update mingw problems.
32403         * doc/posix-functions/getsockname.texi: Update mingw problems.
32404         * doc/posix-functions/getsockopt.texi: Update mingw problems.
32405         * doc/posix-functions/ioctl.texi: Update mingw problems.
32406         * doc/posix-functions/listen.texi: Update mingw problems.
32407         * doc/posix-functions/recv.texi: Update mingw problems.
32408         * doc/posix-functions/recvfrom.texi: Update mingw problems.
32409         * doc/posix-functions/select.texi: Update mingw problems.
32410         * doc/posix-functions/send.texi: Update mingw problems.
32411         * doc/posix-functions/sendto.texi: Update mingw problems.
32412         * doc/posix-functions/setsockopt.texi: Update mingw problems.
32413         * doc/posix-functions/socket.texi: Update mingw problems.
32414
32415 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
32416             Bruno Haible  <bruno@clisp.org>
32417
32418         * lib/sys_select.in.h: Include sys/time.h.
32419         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
32420         * modules/sys_select: Depend on sys_time.
32421         * tests/test-sys_select.c: Test that sys/select.h defines struct
32422         timeval fully.
32423
32424 2008-09-29  Bruno Haible  <bruno@clisp.org>
32425
32426         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
32427         * lib/sys_select.in.h: Likewise.
32428
32429 2008-09-29  Bruno Haible  <bruno@clisp.org>
32430
32431         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
32432
32433 2008-09-29  Bruno Haible  <bruno@clisp.org>
32434
32435         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
32436         Set LIBSOCKET instead of augmenting LIBS.
32437         * modules/sockets (Link): New section.
32438         * modules/sockets-tests (test_sockets_LDADD): New variable.
32439         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
32440         * modules/poll-tests (test_poll_LDADD): New variable.
32441         * NEWS: Document the change.
32442
32443 2008-09-29  Bruno Haible  <bruno@clisp.org>
32444
32445         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
32446         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
32447         ARPA_INET_H directly.
32448         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32449
32450 2008-09-28  Bruno Haible  <bruno@clisp.org>
32451
32452         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
32453         from gl_HEADER_SYS_SOCKET.
32454         (gl_HEADER_SYS_SOCKET): Invoke it.
32455         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32456
32457 2008-09-28  Bruno Haible  <bruno@clisp.org>
32458
32459         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
32460         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
32461         Needed on OSF/1 4.0.
32462
32463 2008-09-28  Bruno Haible  <bruno@clisp.org>
32464
32465         Override open more carefully.
32466         * lib/open.c (orig_open): New function.
32467         (rpl_open): Use orig_open instead of open.
32468         * lib/fcntl.in.h: Add special invocation convention.
32469         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
32470         (gl_FUNC_OPEN): Invoke it.
32471
32472         Override freopen more carefully.
32473         * lib/freopen.c (orig_freopen): New function.
32474         (rpl_freopen): Use orig_freopen instead of freopen.
32475         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
32476         (gl_FUNC_FREOPEN): Invoke it.
32477
32478         Override fopen more carefully.
32479         * lib/fopen.c (orig_fopen): New function.
32480         (rpl_fopen): Use orig_fopen instead of fopen.
32481         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
32482         (gl_FUNC_FOPEN): Invoke it.
32483         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
32484
32485 2008-09-28  Bruno Haible  <bruno@clisp.org>
32486
32487         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
32488         SIGPIPE.
32489
32490 2008-09-28  Bruno Haible  <bruno@clisp.org>
32491
32492         * tests/test-sigaction.c (handler, main): Disable the check whether
32493         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
32494         glibc systems with LinuxThreads.
32495
32496 2008-09-28  Bruno Haible  <bruno@clisp.org>
32497
32498         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
32499
32500         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
32501         with AIX xlc.
32502         * lib/fcntl.in.h (open): Likewise.
32503         Reported by Rainer Tammer <tammer@tammer.net>.
32504
32505 2008-09-28  Bruno Haible  <bruno@clisp.org>
32506
32507         * modules/posix_spawnp-tests: New file.
32508         * tests/test-posix_spawn.c: New file.
32509         * tests/test-posix_spawn.in.sh: New file.
32510
32511         New module 'posix_spawnp'.
32512         * modules/posix_spawnp: New file.
32513         * lib/spawnp.c: New file, from GNU libc with modifications.
32514         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
32515
32516         New module 'posix_spawn'.
32517         * modules/posix_spawn: New file.
32518         * lib/spawn.c: New file, from GNU libc with modifications.
32519         * doc/posix-functions/posix_spawn.texi: Mention the new module.
32520
32521         New module 'posix_spawnattr_destroy'.
32522         * modules/posix_spawnattr_destroy: New file.
32523         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
32524         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
32525         module.
32526
32527         New module 'posix_spawnattr_setsigmask'.
32528         * modules/posix_spawnattr_setsigmask: New file.
32529         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
32530         modifications.
32531         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
32532         new module.
32533
32534         New module 'posix_spawnattr_getsigmask'.
32535         * modules/posix_spawnattr_getsigmask: New file.
32536         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
32537         modifications.
32538         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
32539         new module.
32540
32541         New module 'posix_spawnattr_setsigdefault'.
32542         * modules/posix_spawnattr_setsigdefault: New file.
32543         * lib/spawnattr_setdefault.c: New file, from GNU libc with
32544         modifications.
32545         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
32546         new module.
32547
32548         New module 'posix_spawnattr_getsigdefault'.
32549         * modules/posix_spawnattr_getsigdefault: New file.
32550         * lib/spawnattr_getdefault.c: New file, from GNU libc with
32551         modifications.
32552         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
32553         new module.
32554
32555         New module 'posix_spawnattr_setschedpolicy'.
32556         * modules/posix_spawnattr_setschedpolicy: New file.
32557         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
32558         modifications.
32559         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
32560         new module.
32561
32562         New module 'posix_spawnattr_getschedpolicy'.
32563         * modules/posix_spawnattr_getschedpolicy: New file.
32564         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
32565         modifications.
32566         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
32567         new module.
32568
32569         New module 'posix_spawnattr_setschedparam'.
32570         * modules/posix_spawnattr_setschedparam: New file.
32571         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
32572         modifications.
32573         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
32574         new module.
32575
32576         New module 'posix_spawnattr_getschedparam'.
32577         * modules/posix_spawnattr_getschedparam: New file.
32578         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
32579         modifications.
32580         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
32581         new module.
32582
32583         New module 'posix_spawnattr_setpgroup'.
32584         * modules/posix_spawnattr_setpgroup: New file.
32585         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
32586         modifications.
32587         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
32588         module.
32589
32590         New module 'posix_spawnattr_getpgroup'.
32591         * modules/posix_spawnattr_getpgroup: New file.
32592         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
32593         modifications.
32594         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
32595         module.
32596
32597         New module 'posix_spawnattr_setflags'.
32598         * modules/posix_spawnattr_setflags: New file.
32599         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
32600         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
32601         module.
32602
32603         New module 'posix_spawnattr_getflags'.
32604         * modules/posix_spawnattr_getflags: New file.
32605         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
32606         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
32607         module.
32608
32609         New module 'posix_spawnattr_init'.
32610         * modules/posix_spawnattr_init: New file.
32611         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
32612         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
32613         module.
32614
32615         New module 'posix_spawn_file_actions_destroy'.
32616         * modules/posix_spawn_file_actions_destroy: New file.
32617         * lib/spawn_faction_destroy.c: New file, from GNU libc with
32618         modifications.
32619         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
32620         the new module.
32621
32622         New module 'posix_spawn_file_actions_addopen'.
32623         * modules/posix_spawn_file_actions_addopen: New file.
32624         * lib/spawn_faction_addopen.c: New file, from GNU libc with
32625         modifications.
32626         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32627         the new module.
32628
32629         New module 'posix_spawn_file_actions_adddup2'.
32630         * modules/posix_spawn_file_actions_adddup2: New file.
32631         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
32632         modifications.
32633         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32634         the new module.
32635
32636         New module 'posix_spawn_file_actions_addclose'.
32637         * modules/posix_spawn_file_actions_addclose: New file.
32638         * lib/spawn_faction_addclose.c: New file, from GNU libc with
32639         modifications.
32640         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32641         the new module.
32642
32643         New module 'posix_spawn_file_actions_init'.
32644         * modules/posix_spawn_file_actions_init: New file.
32645         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
32646         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
32647         new module.
32648
32649         New module 'posix_spawn-internal'.
32650         * modules/posix_spawn-internal: New file.
32651         * lib/spawn_int.h: New file, from GNU libc with modifications.
32652         * lib/spawni.c: New file, from GNU libc with modifications.
32653         * m4/posix_spawn.m4: New file.
32654
32655         New module 'spawn'.
32656         * modules/spawn: New file.
32657         * lib/spawn.in.h: New file, from GNU libc with modifications.
32658         * m4/spawn_h.m4: New file.
32659         * doc/posix-headers/spawn.texi: Mention the new module.
32660
32661 2008-09-28  Bruno Haible  <bruno@clisp.org>
32662
32663         * modules/sched-tests: New file.
32664         * tests/test-sched.c: New file.
32665
32666         New module 'sched'.
32667         * modules/sched: New file.
32668         * lib/sched.in.h: New file.
32669         * m4/sched_h.m4: New file.
32670         * doc/posix-headers/sched.texi: Mention the new module.
32671
32672 2008-09-27  Eric Blake  <ebb9@byu.net>
32673
32674         Fix previous patch, and tweak references to $0.
32675         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
32676         (func_version, func_gnulib_dir): Don't call this program
32677         gnulib-tool.
32678         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
32679         with using $0 in function.
32680         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
32681         (func_fatal_error): Reuse the name the user invoked us with.
32682
32683 2008-09-27  Bruno Haible  <bruno@clisp.org>
32684
32685         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
32686         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
32687         (gl_ICONV_H): Not here.
32688         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32689         instead of assigning ICONV_H directly.
32690
32691         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
32692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
32693         WCHAR_H directly.
32694
32695 2008-09-27  Bruno Haible  <bruno@clisp.org>
32696
32697         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
32698         * modules/arpa_inet (Depends-on): Add link-warning.
32699         (Makefile.am): Insert the definition of GL_LINK-WARNING.
32700         * modules/unistd (Makefile.am): Likewise.
32701
32702 2008-09-26  Bruno Haible  <bruno@clisp.org>
32703
32704         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
32705         variables.
32706         (func_version): Essentially copied from gnulib-tool.
32707         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
32708         func_readlink): Copied from gnulib-tool.
32709
32710 2008-09-26  Bruno Haible  <bruno@clisp.org>
32711
32712         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32713         invoking git-version-gen.
32714
32715 2008-09-26  Bruno Haible  <bruno@clisp.org>
32716
32717         * posix-modules: Update to directory names changed on 2008-01-19.
32718         Remove commas in output before splitting into words. No more need to
32719         avoid 'ftruncate' since 2007-02-19.
32720
32721 2008-09-26  Bruno Haible  <bruno@clisp.org>
32722
32723         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32724
32725 2008-09-26  Bruno Haible  <bruno@clisp.org>
32726
32727         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32728         * modules/fwriteerror (Depends-on): Add errno.
32729
32730 2008-09-26  Bruno Haible  <bruno@clisp.org>
32731
32732         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32733         * tests/test-vc-list-files-cvs.sh: Likewise.
32734
32735 2008-09-26  Bruno Haible  <bruno@clisp.org>
32736
32737         * doc/posix-headers/sys_resource.texi: Reorder items.
32738
32739 2008-09-26  Jim Meyering  <meyering@redhat.com>
32740
32741         fts: tweak inode comparison function
32742         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32743         inode numbers, as documented.
32744
32745         fts: sort dirent entries on inode number before traversing
32746         This avoids a quadratic, seek-related performance penalty when
32747         operating on a directory containing many entries (measurable at 10k;
32748         3.5 hours at 2 million entries with a cold cache) on certain types
32749         of file systems, including ext3 and ext4, but not tmpfs.
32750         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32751         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32752         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32753         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32754         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32755         (fts_build): Set the stat.st_ino member from D_INO.
32756         If it is likely to be useful, sort dirent entries on inode number.
32757
32758         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32759         and the struct statfs.f_type member.
32760         * modules/fts (Depends-on): Add d-ino.
32761
32762 2008-09-26  Bruno Haible  <bruno@clisp.org>
32763
32764         * modules/sigpipe-die (Depends-on): Add sigpipe.
32765
32766         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32767         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32768         and GNULIB_STDIO_H_SIGPIPE are set.
32769         * lib/stdio-write.c: New file.
32770         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32771         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32772         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32773         REPLACE_STDIO_WRITE_FUNCS.
32774         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32775         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32776         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32777         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32778         * modules/stdio (Files): Add lib/stdio-write.c.
32779         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32780         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32781         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32782         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32783         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32784         REPLACE_FPRINTF_POSIX.
32785         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32786         REPLACE_PRINTF_POSIX.
32787         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32788         REPLACE_VFPRINTF_POSIX.
32789         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32790         REPLACE_VPRINTF_POSIX.
32791         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32792         SIGPIPE issue.
32793         * doc/posix-functions/fputc.texi: Likewise.
32794         * doc/posix-functions/fputs.texi: Likewise.
32795         * doc/posix-functions/fwrite.texi: Likewise.
32796         * doc/posix-functions/printf.texi: Likewise.
32797         * doc/posix-functions/putc.texi: Likewise.
32798         * doc/posix-functions/putchar.texi: Likewise.
32799         * doc/posix-functions/puts.texi: Likewise.
32800         * doc/posix-functions/vfprintf.texi: Likewise.
32801         * doc/posix-functions/vprintf.texi: Likewise.
32802
32803         * modules/safe-write (Depends-on): Add write.
32804
32805         * modules/sigpipe-tests: New file.
32806         * tests/test-sigpipe.c: New file.
32807         * tests/test-sigpipe.sh: New file.
32808
32809         * modules/write: New file.
32810         * lib/unistd.in.h: Include <sys/types.h>.
32811         (write): New declaration.
32812         * lib/write.c: New file.
32813         * m4/write.m4: New file.
32814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32815         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32816         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32817         GNULIB_WRITE, REPLACE_WRITE.
32818         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32819         and the SIGPIPE issue.
32820
32821         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32822         (raise): New declaration.
32823         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32824         (ext_signal): New function.
32825         (rpl_raise): New function.
32826         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32827         GNULIB_SIGNAL_H_SIGPIPE.
32828         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32829         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32830
32831         * modules/sigpipe: New file.
32832         * m4/sigpipe.m4: New file.
32833
32834 2008-09-25  Derek Price  <derek@ximbiot.com>
32835             Bruno Haible  <bruno@clisp.org>
32836
32837         * gnulib-tool (func_import): Report all license incompatibilities, not
32838         just the first one.
32839
32840 2008-09-25  Bruno Haible  <bruno@clisp.org>
32841
32842         * gnulib-tool (func_import): When computing the edits, consider not
32843         only the Makefile.ams that exist but also those that will be generated.
32844
32845 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32846
32847         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32848         fixes gnulib-tool --test warning about duplicate dependency.
32849
32850 2008-09-25  Bruno Haible  <bruno@clisp.org>
32851
32852         * gnulib-tool: Don't ask the user to perform edits in the generated
32853         Makefile.ams.
32854         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32855         apply to the Makefile.am being generated.
32856         (func_emit_tests_Makefile_am): Execute edits that apply to the
32857         Makefile.am being generated.
32858         (func_import): Setup list of Makefile.am edits before emitting the
32859         Makefile.ams, not at the end.
32860         (func_create_testdir): Update.
32861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32862
32863 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32864
32865         * gnulib-tool (func_import): Store the --tests-base option in the
32866         comment in gnulib-cache.m4.
32867
32868 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32869
32870         * NEWS: Document increased portability that sys_select now provides.
32871
32872         * lib/sys_select.in.h: Install select wrapper.
32873         * lib/sys_socket.in.h: Use more descriptive name when there is no
32874         select wrapper.
32875         * lib/winsock-select.c: New.
32876         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32877         Require gl_HEADER_SYS_SOCKET.
32878         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32879         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32880         * tests/test-sys_select.c: Add functional tests.
32881
32882 2008-09-24  Eric Blake  <ebb9@byu.net>
32883
32884         open, fopen: close fd leak in last patch
32885         * lib/open.c (rpl_open): Close fd before returning error.
32886         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32887         * doc/posix-functions/open.texi (open): Document that Irix also
32888         has the bug.
32889         * doc/posix-functions/fopen.texi (fopen): Likewise.
32890         Reported by Paolo Bonzini.
32891
32892 2008-09-24  Bruno Haible  <bruno@clisp.org>
32893
32894         Ensure that a filename ending in a slash cannot be used to access a
32895         non-directory.
32896         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32897         to check whether it's really a directory.
32898         * lib/fopen.c: Include fcntl.h, unistd.h.
32899         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32900         and fdopen().
32901         * modules/fopen (Depends-on): Add unistd.
32902         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32903         * tests/test-fopen.c (main): Likewise.
32904         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32905         * doc/posix-functions/fopen.texi: Likewise.
32906         Reported by Eric Blake.
32907
32908 2008-09-23  Eric Blake  <ebb9@byu.net>
32909
32910         c-stack: avoid compiler optimizations when provoking overflow
32911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32912         recursion harder to optimize, to ensure a stack overflow occurs.
32913         * tests/test-c-stack.c (recurse): Likewise.
32914         Borrowed from libsigsegv.
32915
32916         c-stack: work around Irix sigaltstack bug
32917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32918         whether sigaltstack uses wrong end of stack_t (copied in part from
32919         libsigsegv).
32920         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32921         Irix bug, without requiring an over-allocation.
32922         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32923         bug.
32924
32925         fopen: document mingw bug on directories
32926         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32927         not allowing a stream visiting a directory, even though reading
32928         from such a stream is not portable.
32929
32930 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32931
32932         * lib/poll.c: Rewrite.
32933         * modules/poll: Depend on alloca.
32934
32935 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32936
32937         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32938         instead define prototypes for a full set of wrappers.  Ensure
32939         that Cygwin does not use the compatibility code, which is only
32940         for MinGW.
32941         * lib/winsock.c: New.
32942         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32943         * modules/sys_socket: Add lib/winsock.c.
32944
32945         * modules/poll-tests: Add errno and perror.
32946         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32947
32948 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32949
32950         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32951
32952 2008-09-23  Bruno Haible  <bruno@clisp.org>
32953
32954         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32955         * doc/glibc-functions/*: Likewise.
32956
32957 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32958
32959         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32960         success.
32961
32962 2008-09-22  Eric Blake  <ebb9@byu.net>
32963             Bruno Haible  <bruno@clisp.org>
32964
32965         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32966         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32967         supply %A but mishandle pseudo-NaN.
32968         Reported by Simon Josefsson.
32969
32970 2008-09-21  Bruno Haible  <bruno@clisp.org>
32971
32972         * tests/test-lock.c (main): Tweak skip message.
32973         * tests/test-tls.c (main): Likewise.
32974
32975 2008-09-21  Bruno Haible  <bruno@clisp.org>
32976
32977         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
32978         whether 'struct sigaction' has sa_sigaction here...
32979         (gl_PREREQ_SIG_HANDLER_H): ... not here.
32980         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
32981
32982 2008-09-21  Bruno Haible  <bruno@clisp.org>
32983
32984         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
32985         section.
32986         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
32987         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
32988         the new section.
32989         (Support for obsolete systems lacking POSIX:2001): New section.
32990         (String handling <string.h>): Move strdup to the new section.
32991         Suggested by Simon Josefsson and Paolo Bonzini.
32992
32993 2008-09-21  Bruno Haible  <bruno@clisp.org>
32994
32995         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
32996         exponents in %e and %g results on 'long double'. Needed for mingw's
32997         improved *printf functions.
32998         * tests/test-vasprintf-posix.c (test_function): Likewise.
32999         * tests/test-snprintf-posix.h (test_function): Likewise.
33000         * tests/test-sprintf-posix.h (test_function): Likewise.
33001         Reported by Eric Blake.
33002
33003 2008-09-21  Bruno Haible  <bruno@clisp.org>
33004
33005         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
33006         * tests/test-sprintf-posix.h (test_function): Likewise.
33007
33008 2008-09-21  Bruno Haible  <bruno@clisp.org>
33009
33010         * modules/getpass (Depends-on): Add strdup-posix.
33011
33012         New module 'strdup-posix'.
33013         * modules/strdup-posix: New file.
33014         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
33015         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
33016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33017         REPLACE_STRDUP.
33018         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
33019         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
33020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33021         strdup-posix.
33022
33023         * modules/strdup (Depends-on): Remove malloc-posix.
33024
33025 2008-09-20  Bruno Haible  <bruno@clisp.org>
33026
33027         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
33028         Wildenhues.
33029
33030 2008-09-20  Bruno Haible  <bruno@clisp.org>
33031
33032         Ensure that wint_t gets defined on IRIX 5.3.
33033         * lib/wchar.in.h (wint_t): Define if not defined by the system.
33034         * lib/wctype.in.h (wint_t): Likewise.
33035         (__wctype_wint_t): Remove type.
33036         (isw*): Use wint_t instead of __wctype_wint_t.
33037         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
33038         * modules/wchar (Files): Add m4/wint_t.m4.
33039         (Makefile.am): Substitute HAVE_WINT_T.
33040         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
33041         * tests/test-wctype.c: Check that wint_t is defined.
33042         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
33043         * doc/posix-headers/wctype.texi: Likewise.
33044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33045
33046 2008-09-18  Bruno Haible  <bruno@clisp.org>
33047
33048         * gnulib-tool (func_exit): Update comment.
33049
33050 2008-09-18  Simon Josefsson  <simon@josefsson.org>
33051
33052         * modules/getaddrinfo (Depends-on): Remove strdup, this module
33053         assumes strdup exists and does not depend on strdup to return
33054         ENOMEM on out of memory conditions.
33055
33056 2008-09-18  Bruno Haible  <bruno@clisp.org>
33057
33058         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
33059         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
33060         digits for the exponent.
33061
33062 2008-09-18  Jim Meyering  <meyering@redhat.com>
33063             Bruno Haible  <bruno@clisp.org>
33064
33065         * lib/vasnprintf.c (decimal_point_char): Define also if
33066         NEED_PRINTF_INFINITE_LONG_DOUBLE.
33067
33068 2008-09-16  Bruno Haible  <bruno@clisp.org>
33069         and Eric Blake  <ebb9@byu.net>
33070
33071         vasnprintf: support Irix 5.3
33072         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
33073         that mishandle long double infinity.
33074         Reported by Tom G. Christensen.
33075
33076 2008-09-16  Bruno Haible  <bruno@clisp.org>
33077
33078         * doc/glibc-functions/scandir.texi: Mention the function is missing on
33079         Solaris 9.
33080         * doc/glibc-functions/alphasort.texi: Likewise.
33081         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
33082
33083 2008-09-16  Jim Meyering  <meyering@redhat.com>
33084
33085         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
33086         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
33087         a umask modification leak out of a subshell.  Otherwise, the
33088         opensolaris /bin/sh would be accepted and thus cause unwarranted
33089         failures in the coreutils test suite.
33090
33091 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
33092
33093         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
33094         to succeed.
33095
33096 2008-09-16  Jim Meyering  <meyering@redhat.com>
33097
33098         avoid spurious test failure when library is built without ACL support
33099         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
33100         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
33101         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
33102         * tests/test-copy-acl.sh: Likewise.
33103
33104 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33105
33106         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
33107         based on character occurrence counts.
33108
33109 2008-09-15  Eric Blake  <ebb9@byu.net>
33110
33111         tests: avoid some compiler warnings
33112         * tests/test-memchr.c (main): Pass NULL indirectly.
33113         * tests/test-closein.c (main): Avoid unused variable.
33114
33115 2008-09-15  Bruno Haible  <bruno@clisp.org>
33116
33117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
33118         are missing on OpenBSD 4.0 individually.
33119         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33120
33121 2008-09-15  Bruno Haible  <bruno@clisp.org>
33122
33123         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
33124         * doc/posix-functions/strerror.texi: Mention also Cygwin.
33125         * doc/posix-functions/perror.texi: Likewise.
33126         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
33127         is missing.
33128         Reported by Eric Blake.
33129
33130         * lib/errno.in.h: Use replacement values >= 2000.
33131         Reported by Eric Blake.
33132
33133 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33134
33135         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
33136         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
33137         limit.
33138         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
33139         compareseq was aborted.
33140
33141 2008-09-14  Bruno Haible  <bruno@clisp.org>
33142
33143         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
33144         yvec_edit_count.
33145         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
33146         (fstrcmp_bounded): Simplify result computation accordingly.
33147
33148 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33149
33150         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
33151         (fstrcmp): Define in terms of fstrcmp_bounded.
33152         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
33153         lower_bound argument.
33154         Return quickly if the result is certainly < lower_bound.
33155         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
33156
33157 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33158
33159         * lib/diffseq.h (EARLY_ABORT): New macro.
33160         (compareseq): Change return type to bool. Return true when EARLY_ABORT
33161         evaluates to true.
33162
33163 2008-09-14  Bruno Haible  <bruno@clisp.org>
33164
33165         * modules/perror-tests: New file.
33166         * tests/test-perror.sh: New file.
33167         * tests/test-perror.c: New file.
33168
33169         New module 'perror'.
33170         * lib/stdio.in.h (perror): New declaration.
33171         * lib/perror.c: New file.
33172         * m4/perror.m4: New file.
33173         * modules/perror: New file.
33174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
33175         * doc/posix-functions/perror.texi: Mention the perror module.
33176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
33177         REPLACE_PERROR.
33178         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
33179         REPLACE_PERROR.
33180
33181 2008-09-14  Bruno Haible  <bruno@clisp.org>
33182
33183         * modules/stdio (Makefile.am): Reorder to match the order in
33184         lib/stdio.in.h.
33185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33186
33187 2008-09-13  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
33190
33191 2008-09-13  Bruno Haible  <bruno@clisp.org>
33192
33193         Extend strerror to cover the added errno values.
33194         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
33195         (rpl_strerror): Provide error messages for the added errno values and
33196         for the WSA* values.
33197         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
33198         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
33199         strerror.
33200         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
33201         * modules/strerror (Depends-on): Add errno.
33202         * doc/posix-functions/strerror.texi: Document the change.
33203         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
33204         and EOVERFLOW.
33205
33206 2008-09-13  Bruno Haible  <bruno@clisp.org>
33207
33208         * modules/EOVERFLOW: Remove file.
33209         * m4/eoverflow.m4: Remove file.
33210         * modules/EOVERFLOW-tests: Remove file.
33211         * tests/test-EOVERFLOW.c: Remove file.
33212         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
33213         * modules/ftell (Depends-on): Likewise.
33214         * modules/getdelim (Depends-on): Likewise.
33215         * modules/getugroups (Depends-on): Likewise.
33216         * modules/poll (Depends-on): Likewise.
33217         * modules/snprintf (Depends-on): Likewise.
33218         * modules/sprintf-posix (Depends-on): Likewise.
33219         * modules/vasnprintf (Depends-on): Likewise.
33220         * modules/vasprintf (Depends-on): Likewise.
33221         * modules/vfprintf-posix (Depends-on): Likewise.
33222         * modules/vsnprintf (Depends-on): Likewise.
33223         * modules/vsprintf-posix (Depends-on): Likewise.
33224         * modules/xvasprintf (Depends-on): Likewise.
33225         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33226         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
33227         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
33228         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
33229         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33230         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
33231         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
33232         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
33233         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33234         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
33235         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
33236         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
33237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33238         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
33239         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
33240         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
33241         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33242         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
33243         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
33244         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
33245         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33246         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
33247         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
33248         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
33249         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
33250         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33251         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
33252         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
33253         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
33254         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
33255         * MODULES.html.sh: Remove EOVERFLOW.
33256         * NEWS: Mention the change.
33257
33258 2008-09-13  Bruno Haible  <bruno@clisp.org>
33259
33260         * modules/errno-tests: New file.
33261         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
33262
33263         * lib/errno.in.h: New file.
33264         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
33265         * modules/errno: New file.
33266         * doc/posix-headers/errno.texi: Update documentation.
33267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
33268
33269 2008-09-13  Bruno Haible  <bruno@clisp.org>
33270
33271         * tests/test-poll.c: Use #if for native Windows, rather than testing
33272         __MSVCRT__.
33273
33274 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33275             Bruno Haible  <bruno@clisp.org>
33276
33277         * lib/glob.c: Don't include <pwd.h> on native Windows.
33278         (WINDOWS32): New macro.
33279         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
33280
33281 2008-09-13  Bruno Haible  <bruno@clisp.org>
33282
33283         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
33284         (ETIMEDOUT): Remove macro.
33285         (glthread_cond_timedwait_multithreaded): New declaration.
33286         (glthread_cond_timedwait): Use it.
33287         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
33288         (glthread_cond_timedwait_multithreaded): New function.
33289
33290 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33291
33292         * modules/poll-tests: Do not check for io.h.
33293         * tests/test-poll.c: Check for __MSVCRT__ instead.
33294
33295 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33296
33297         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
33298         * modules/poll-tests: Add inet_pton, stdbool, sockets.
33299         * tests/test-poll.c: Use them.  Use _pipe on Windows.
33300
33301 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33302
33303         * modules/poll-tests: New.
33304         * tests/test-poll.c: New.
33305
33306 2008-09-12  Eric Blake  <ebb9@byu.net>
33307
33308         frexp: test for NetBSD failure on -0.0
33309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
33310         not all, bugs from NetBSD 3.0 have been fixed.
33311         * doc/posix-functions/frexp.texi (frexp): Document bug.
33312         Reported by Thomas Klausner.
33313
33314         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
33315         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
33316         literal -0.0.
33317         Reported by Jonathan C. Patschke <jp@centtech.com>.
33318
33319 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33320
33321         * lib/glthread/cond.h: Use dummy implementation also if
33322         USE_WIN32_THREADS.
33323
33324 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33325
33326         * modules/fnmatch-posix (License): Change to LGPLv2+.
33327         * modules/fnmatch-gnu (License): Likewise.
33328
33329 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33330
33331         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
33332
33333 2008-09-11  Jim Meyering  <meyering@redhat.com>
33334
33335         * users.txt: Add gtk-vnc.
33336
33337 2008-09-08  Simon Josefsson  <simon@josefsson.org>
33338
33339         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
33340         rotate amounts.
33341
33342         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
33343         required for 16-bit and 8-bit rotates.
33344         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
33345         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
33346         UINT8_MAX instead of hard-coded constants.
33347         Suggested by Paul Eggert.
33348
33349 2008-09-07  Bruno Haible  <bruno@clisp.org>
33350
33351         * tests/test-striconveh.c (main): Check behaviour when converting from
33352         UTF-7.
33353
33354         Make striconveh work better with stateful encodings.
33355         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
33356         that iconv does not increment the inptr when returning -1/EINVAL.
33357
33358 2008-09-07  Bruno Haible  <bruno@clisp.org>
33359
33360         * build-aux/config.rpath: Update according to libtool-2.2.6.
33361         * build-aux/config.libpath: Likewise.
33362
33363 2008-09-06  Bruno Haible  <bruno@clisp.org>
33364
33365         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
33366         * lib/freadptr.c (freadptr): Likewise.
33367         * lib/freadseek.c (freadptrinc): Likewise.
33368         Reported by Simon Josefsson.
33369
33370 2008-09-06  Bruno Haible  <bruno@clisp.org>
33371
33372         * modules/freadptr (License): Change to LGPLv2+.
33373         * modules/freadseek (License): Likewise.
33374         Suggested by Eric Blake.
33375
33376         * modules/memchr2 (License): Change to LGPLv2+.
33377         Approved by Eric Blake.
33378
33379 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33380             Bruno Haible  <bruno@clisp.org>
33381
33382         Make gnulib-tool work with native 'sed' on AIX.
33383         * gnulib-tool (sed_noop): New variable.
33384         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
33385         func_add_or_update, func_create_testdir): Use it to initialize sed
33386         script variables.
33387         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33388
33389 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
33390             Bruno Haible  <bruno@clisp.org>
33391
33392         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
33393         also works after #include directives.
33394
33395 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
33396
33397         getdate.y: reject an out-of-range timezone value
33398         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
33399         the range [-24...+24].  When specified with only one or two digits,
33400         * tests/test-getdate.c: Tests for the fix.
33401         * doc/getdate.texi: Document this change.
33402
33403 2008-09-03  Bruno Haible  <bruno@clisp.org>
33404
33405         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
33406
33407 2008-09-02  Simon Josefsson  <simon@josefsson.org>
33408
33409         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
33410         <bruce.korb@gmail.com> with ideas from Ben Pfaff
33411         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
33412         Blake <ebb9@byu.net>.
33413
33414         * tests/test-bitrotate.c: Add more test vectors.
33415
33416 2008-09-02  Eric Blake  <ebb9@byu.net>
33417
33418         vasnprintf-posix: handle large precision via %.*d
33419         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
33420         when handling it ourselves.
33421         * tests/test-vasnprintf-posix.c (test_function): Add test.
33422         * tests/test-snprintf-posix.h (test_function): Likewise.
33423         * tests/test-sprintf-posix.h (test_function): Likewise.
33424         * tests/test-vasprintf-posix.c (test_function): Likewise.
33425         Reported by Alain Guibert.
33426
33427 2008-09-01  Eric Blake  <ebb9@byu.net>
33428
33429         c-stack: make configure-time check more robust
33430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
33431         successful sigaction call.
33432         Reported by Tom G. Christensen.
33433
33434 2008-09-01  Bruno Haible  <bruno@clisp.org>
33435
33436         New module 'findprog-lgpl'.
33437         * modules/findprog-lgpl: New file.
33438         * lib/findprog-lgpl.c: New file.
33439         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
33440         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
33441         to decide whether to use strdup or xstrdup, concatenated_filename or
33442         xconcatenated_filename.
33443
33444 2008-09-01  Bruno Haible  <bruno@clisp.org>
33445
33446         Split module 'concat-filename' into 'concat-filename' (LGPL) and
33447         'xconcat-filename' (GPL).
33448         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
33449         (License): Change to LGPLv2+.
33450         * modules/xconcat-filename: New file.
33451         * lib/concat-filename.h (concatenated_filename): Change specification.
33452         (xconcatenated_filename): New declaration.
33453         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
33454         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
33455         memory situations.
33456         * lib/xconcat-filename.c: New file.
33457         * NEWS: Mention the change.
33458         * lib/findprog.c: Include concat-filename.h, not filename.h.
33459         (find_in_path): Use xconcatenated_filename instead of
33460         concatenated_filename.
33461         * lib/javacomp.c: Include concat-filename.h, not filename.h.
33462         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33463         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33464         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33465         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
33466         instead of concatenated_filename.
33467         * lib/javaexec.c: Include concat-filename.h, not filename.h.
33468         (execute_java_class): Use xconcatenated_filename instead of
33469         concatenated_filename.
33470         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
33471         * modules/javacomp (Depends-on): Likewise.
33472         * modules/javaexec (Depends-on): Likewise.
33473
33474 2008-09-01  Bruno Haible  <bruno@clisp.org>
33475
33476         Split module 'filename' into 'filename' and 'concat-filename'.
33477         * modules/filename: Keep only lib/filename.h.
33478         (License): Change to LGPLv2+.
33479         * modules/concat-filename: New file, extracted from modules/filename.
33480         * lib/filename.h (concatenated_filename): Remove declaration.
33481         * lib/concat-filename.h: New file, extracted from lib/filename.h.
33482         * lib/concat-filename.c: Include concat-filename.h.
33483         * NEWS: Mention the change.
33484
33485 2008-09-01  Simon Josefsson  <simon@josefsson.org>
33486
33487         * lib/bitrotate.h (rotl8, rotr8): Add.
33488
33489         * modules/bitrotate (configure.ac): Need
33490         AC_REQUIRE([AC_C_INLINE]).
33491         (Description): Mention stdint.h.  Reported by Bruno Haible
33492         <bruno@clisp.org>.
33493
33494         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
33495         Paolo Bonzini <bonzini@gnu.org>.
33496
33497 2008-08-31  Bruno Haible  <bruno@clisp.org>
33498
33499         Assume Solaris specific bi-arch conventions on Solaris systems.
33500         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
33501         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
33502         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
33503         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
33504         like acl_libdirstem.
33505         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
33506         acl_libdirstem.
33507         * NEWS: Mention the change.
33508         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
33509
33510 2008-08-31  Jim Meyering  <meyering@redhat.com>
33511
33512         * lib/strftime.h: Add comments describing the two added arguments.
33513
33514         remove duplicate #include directives
33515         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
33516         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
33517
33518 2008-08-31  Bruno Haible  <bruno@clisp.org>
33519
33520         New module 'sigpipe-die'.
33521         * modules/sigpipe-die: New file.
33522         * lib/sigpipe-die.h: New file.
33523         * lib/sigpipe-die.c: New file.
33524         * MODULES.html.sh (Signal handling): Add sigpipe-die.
33525
33526 2008-08-31  Bruno Haible  <bruno@clisp.org>
33527
33528         Don't override previously installed signal handlers.
33529         * lib/fatal-signal.c (saved_sigactions): New variable.
33530         (uninstall_handlers): Reset the signal to the saved handler, not
33531         to SIG_DFL (except when ignored).
33532         (install_handlers): Save the previous handlers.
33533
33534 2008-08-30  Bruno Haible  <bruno@clisp.org>
33535
33536         * gnulib-tool (func_reset_sigpipe): New function.
33537         (func_get_automake_snippet, func_modules_transitive_closure,
33538         func_import): Invoke it before a join command that reads from stdin,
33539         to avoid "echo: write error: Broken pipe" error messages on stderr.
33540         Reported by Sam Steingold <sds@gnu.org>.
33541
33542 2008-08-30  Bruno Haible  <bruno@clisp.org>
33543
33544         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
33545         Code copied from m4/open.m4.
33546         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
33547         access and the filename ends in a slash. Code copied from lib/open.c.
33548         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
33549         * tests/test-fopen.c (main): Check against bug with trailing slash.
33550
33551 2008-08-29  Bruno Haible  <bruno@clisp.org>
33552
33553         Avoid some "gcc -pedantic" warnings.
33554         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
33555         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
33556         * lib/dirent.in.h: Likewise.
33557         * lib/fcntl.in.h: Likewise.
33558         * lib/float.in.h: Likewise.
33559         * lib/iconv.in.h: Likewise.
33560         * lib/inttypes.in.h: Likewise.
33561         * lib/locale.in.h: Likewise.
33562         * lib/math.in.h: Likewise.
33563         * lib/netinet_in.in.h: Likewise.
33564         * lib/search.in.h: Likewise.
33565         * lib/signal.in.h: Likewise.
33566         * lib/stdarg.in.h: Likewise.
33567         * lib/stdint.in.h: Likewise.
33568         * lib/stdio.in.h: Likewise.
33569         * lib/stdlib.in.h: Likewise.
33570         * lib/string.in.h: Likewise.
33571         * lib/strings.in.h: Likewise.
33572         * lib/sys_select.in.h: Likewise.
33573         * lib/sys_socket.in.h: Likewise.
33574         * lib/sys_stat.in.h: Likewise.
33575         * lib/sys_time.in.h: Likewise.
33576         * lib/sysexits.in.h: Likewise.
33577         * lib/time.in.h: Likewise.
33578         * lib/unistd.in.h: Likewise.
33579         * lib/wchar.in.h: Likewise.
33580         * lib/wctype.in.h: Likewise.
33581         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
33582         * modules/fchdir (Makefile.am): Likewise.
33583         * modules/fcntl (Makefile.am): Likewise.
33584         * modules/float (Makefile.am): Likewise.
33585         * modules/iconv_open (Makefile.am): Likewise.
33586         * modules/inttypes (Makefile.am): Likewise.
33587         * modules/locale (Makefile.am): Likewise.
33588         * modules/math (Makefile.am): Likewise.
33589         * modules/netinet_in (Makefile.am): Likewise.
33590         * modules/search (Makefile.am): Likewise.
33591         * modules/signal (Makefile.am): Likewise.
33592         * modules/stdarg (Makefile.am): Likewise.
33593         * modules/stdint (Makefile.am): Likewise.
33594         * modules/stdio (Makefile.am): Likewise.
33595         * modules/stdlib (Makefile.am): Likewise.
33596         * modules/string (Makefile.am): Likewise.
33597         * modules/strings (Makefile.am): Likewise.
33598         * modules/sys_select (Makefile.am): Likewise.
33599         * modules/sys_socket (Makefile.am): Likewise.
33600         * modules/sys_stat (Makefile.am): Likewise.
33601         * modules/sys_time (Makefile.am): Likewise.
33602         * modules/sysexits (Makefile.am): Likewise.
33603         * modules/time (Makefile.am): Likewise.
33604         * modules/unistd (Makefile.am): Likewise.
33605         * modules/wchar (Makefile.am): Likewise.
33606         * modules/wctype (Makefile.am): Likewise.
33607         Reported by Reuben Thomas <rrt@sc3d.org>.
33608
33609 2008-08-29  Bruno Haible  <bruno@clisp.org>
33610
33611         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
33612         any more.
33613
33614 2008-08-29  Simon Josefsson  <simon@josefsson.org>
33615
33616         * MODULES.html.sh (Misc): Add bitrotate.
33617
33618         * modules/bitrotate: New file.
33619
33620         * lib/bitrotate.h: New file.
33621
33622         * modules/bitrotate-tests: New file.
33623
33624         * tests/test-bitrotate.c: New file.
33625
33626         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
33627         on the bitrotate module.
33628
33629         * lib/arctwo.c: Use new bitrotate module.
33630
33631 2008-08-29  Jim Meyering  <meyering@redhat.com>
33632
33633         bootstrap: merge changes from coreutils
33634         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
33635         of copied files.  Remove a kludge, now that this is fixed.
33636         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
33637         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
33638         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
33639
33640 2008-08-29  Bruno Haible  <bruno@clisp.org>
33641
33642         * MODULES.html.sh: Remove --cvs-urls option.
33643
33644 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
33645
33646         maint.mk: adjust to file name change
33647         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
33648
33649 2008-08-28  Jim Meyering  <meyering@redhat.com>
33650
33651         * modules/getndelim2 (License): Relicense to LGPLv2+.
33652         Approved by Richard Stallman for the version of 1995, and by
33653         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
33654
33655 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
33656
33657         * lib/getdelim.c (flockfile, funlockfile): Make all of them
33658         dummy if one is not available.  Do not touch them if
33659         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
33660         (getc_maybe_unlocked): New.
33661         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
33662
33663 2008-08-26  Eric Blake  <ebb9@byu.net>
33664
33665         doc/INSTALL: resync from autoconf
33666         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
33667         (INSTALL_PRELUDE): Delete; this is done more efficiently by
33668         moving...
33669         * install.texi [!autoconf]: ...here.  Resync from autoconf.
33670         * INSTALL: Regenerate.
33671         * INSTALL.ISO: New file.
33672         * INSTALL.UTF-8: Likewise.
33673
33674 2008-08-26  Jim Meyering  <meyering@redhat.com>
33675
33676         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
33677         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
33678         these definitions conditional, so that they may be overridden, too.
33679
33680 2008-08-26  Bruno Haible  <bruno@clisp.org>
33681
33682         Generate INSTALL file variants with prettier quotes.
33683         * doc/Makefile (INSTALL_PRELUDE): New macro.
33684         (INSTALL): Use it.
33685         (INSTALL.ISO, INSTALL.UTF-8): New rules.
33686
33687 2008-08-26  Bruno Haible  <bruno@clisp.org>
33688
33689         Run makeinfo in an English locale.
33690         * doc/Makefile (MAKEINFO): New variable.
33691
33692 2008-08-26  Bruno Haible  <bruno@clisp.org>
33693
33694         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
33695         Suggested by Eric Blake.
33696
33697 2008-08-25  Bruno Haible  <bruno@clisp.org>
33698
33699         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
33700
33701 2008-08-25  Eric Blake  <ebb9@byu.net>
33702
33703         c-stack: test that stack overflow can be caught
33704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
33705         that platform allows handling stack overflow; at least OS/2 EMX
33706         has sigaltstack, but crashes before transferring control to
33707         handler on stack overflow.
33708         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33709         check for HAVE_STACK_OVERFLOW_HANDLING.
33710         Reported by Elbert Pol.
33711
33712 2008-08-25  Bruno Haible  <bruno@clisp.org>
33713
33714         * doc/posix-functions/strftime.texi: Fix description of strftime
33715         module.
33716
33717 2008-08-24  Bruno Haible  <bruno@clisp.org>
33718
33719         * tests/uniwidth/test-uc_width2.c: New file.
33720         * tests/uniwidth/test-uc_width2.sh: New file.
33721         * modules/uniwidth/width-tests (Files): Add the new files.
33722         (TESTS): Add uniwidth/test-uc_width2.sh.
33723         (TESTS_ENVIRONMENT): New variable.
33724         (check_PROGRAMS): Add test-uc_width2.
33725         (test_uc_width2_SOURCES): New variable.
33726
33727         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33728         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33729         not 0x00AB.
33730         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33731
33732 2008-08-22  Eric Blake  <ebb9@byu.net>
33733
33734         test-lock, test-tls: mention why a test is skipped
33735         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33736         skipped.
33737         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33738
33739         count-one-bits: relax license
33740         * modules/count-one-bits (License): Relicense to LGPLv2+.
33741         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33742
33743 2008-08-22  Andreas Schwab  <schwab@suse.de>
33744
33745         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33746         Remove spurious space in assignment.
33747
33748 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33749
33750         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33751         Paul Eggert <eggert@CS.UCLA.EDU>.
33752
33753 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33754
33755         * modules/gettext: Add m4/threadlib.m4.
33756
33757 2008-08-19  Eric Blake  <ebb9@byu.net>
33758
33759         test-c-stack: fix compilation failure on FreeBSD 5.0
33760         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33761         headers before <sys/resource.h>.
33762         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33763         the bug.
33764         Reported by Nelson H. F. Beebe.
33765
33766         strverscmp: migrate from "strverscmp.h" to <string.h>
33767         * modules/string (Makefile.am): Add new hooks.
33768         * modules/strverscmp (Files): Remove strverscmp.h.
33769         (Depends-on): Add string.
33770         (configure.ac): Add indicator.
33771         (Include): Mention new header.
33772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33773         defaults.
33774         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33775         results.
33776         * lib/strverscmp.h: Delete.
33777         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33778         * tests/test-strverscmp.c (includes): Adjust client.
33779         * lib/check-version.c (includes): Likewise.
33780         * NEWS: Document the change.
33781
33782         strverscmp: add unit test
33783         * modules/strverscmp-tests: New file.
33784         * tests/test-strverscmp.c: Likewise.
33785
33786 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33787
33788         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33789         regarding Windows crypto stuff, from Mono.
33790
33791 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33792
33793         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33794         if present, for intel RND.  Return error on failures.
33795
33796 2008-08-18  Ben Pfaff  <blp@gnu.org>
33797
33798         gitlog-to-changelog: give better diagnostic for failed pipe-open
33799         * build-aux/gitlog-to-changelog: Improve error message: suggest
33800         that the version of Git may be too old.
33801
33802 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33803
33804         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33805         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33806
33807 2008-08-18  Bruno Haible  <bruno@clisp.org>
33808
33809         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33810         pthread_in_use().
33811
33812 2008-08-18  Bruno Haible  <bruno@clisp.org>
33813
33814         * lib/glthread/threadlib.c: Include <pthread.h>.
33815
33816 2008-08-18  Bruno Haible  <bruno@clisp.org>
33817
33818         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33819         glthread_recursive_lock_* macros.
33820         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33821         Fix syntax error.
33822
33823 2008-08-18  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/glthread/thread.c: Avoid forcing a context switch right after
33826         thread creation.
33827
33828 2008-08-17  Bruno Haible  <bruno@clisp.org>
33829
33830         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33831         * lib/glthread/thread.h: Provide Win32 specific implementation.
33832         * modules/thread (Files): Add lib/glthread/thread.c.
33833         (Depends-on): Add lock.
33834         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33835
33836 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33837
33838         New module 'yield'.
33839         * modules/yield: New file.
33840         * lib/glthread/yield.h: New file.
33841         * m4/yield.m4: New file.
33842         * MODULES.html.sh (Multithreading): Add yield.
33843
33844 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33845
33846         New module 'thread'.
33847         * modules/thread: New file.
33848         * lib/glthread/thread.h: New file.
33849         * m4/thread.m4: New file.
33850         * MODULES.html.sh (Multithreading): Add thread.
33851
33852 2008-08-17  Bruno Haible  <bruno@clisp.org>
33853
33854         * lib/glthread/lock.h: Include <stdlib.h> always.
33855         * lib/glthread/tls.h: Likewise.
33856         * lib/glthread/cond.h: Likewise.
33857
33858 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33859
33860         New module 'cond'.
33861         * modules/cond: New file.
33862         * lib/glthread/cond.h: New file.
33863         * lib/glthread/cond.c: New file.
33864         * m4/cond.m4: New file.
33865         * MODULES.html.sh (Multithreading): Add cond.
33866
33867 2008-08-16  Eric Blake  <ebb9@byu.net>
33868
33869         c-stack: fix regression on Irix 5.3 from 2008-06-21
33870         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33871         sa_sigaction...
33872         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33873         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33874         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33875         * modules/signal (Makefile.am): Use the value.
33876         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33877         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33878         * doc/posix-headers/signal.texi (signal.h): Document this
33879         portability issue.
33880         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33881         Reported by Tom G. Christensen.
33882
33883 2008-08-17  Bruno Haible  <bruno@clisp.org>
33884
33885         New module 'threadlib'.
33886         * modules/threadlib: New file.
33887         * lib/glthread/threadlib.c: New file, extracted from
33888         lib/glthread/lock.c.
33889         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33890         functions.
33891         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33892         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33893         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33894         macros.
33895         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33896         (gl_DISABLE_THREADS): Remove macro.
33897         * modules/lock (Files): Remove build-aux/config.rpath.
33898         (Depends-on): Remove havelib. Add threadlib.
33899         (configure.ac-early): Remove section.
33900         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33901         * modules/tls (Depends-on): Remove lock. Add threadlib.
33902         (Link): New section, copied from threadlib.
33903         * MODULES.html.sh (Multithreading): Add threadlib.
33904
33905 2008-08-14  Bruno Haible  <bruno@clisp.org>
33906
33907         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33908         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33909         glthread_rwlock_unlock, glthread_rwlock_destroy,
33910         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33911         glthread_recursive_lock_destroy): Define as macros always.
33912         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33913         glthread_lock_lock.
33914         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33915         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33916         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33917         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33918         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33919         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33920         (glthread_recursive_lock_lock_func): Renamed from
33921         glthread_recursive_lock_lock.
33922         (glthread_recursive_lock_unlock_func): Renamed from
33923         glthread_recursive_lock_unlock.
33924         (glthread_recursive_lock_destroy_func): Renamed from
33925         glthread_recursive_lock_destroy.
33926
33927 2008-08-14  Bruno Haible  <bruno@clisp.org>
33928
33929         * lib/glthread/lock.h: Renamed from lib/lock.h.
33930         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33931         * lib/glthread/tls.h: Renamed from lib/tls.h.
33932         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33933         * lib/fstrcmp.c: Update includes.
33934         * lib/strsignal.c: Update includes.
33935         * modules/lock (Files, Makefile.am): Update.
33936         (Include): Change to "glthread/lock.h".
33937         * modules/tls (Files, Makefile.am): Update.
33938         (Include): Change to "glthread/tls.h".
33939         * tests/test-lock.c: Update includes.
33940         * tests/test-tls.c: Update includes.
33941         * NEWS: Mention the renamed header files.
33942
33943 2008-08-11  Jim Meyering  <meyering@redhat.com>
33944
33945         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33946
33947 2008-08-11  Eric Blake  <ebb9@byu.net>
33948
33949         test-c-stack: avoid C99-ism
33950         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33951         before statement.
33952         Reported by Alain Guibert.
33953
33954 2008-08-10  Jim Meyering  <meyering@redhat.com>
33955
33956         ensure that return value of uinttostr et al are not ignored
33957         * lib/inttostr.h (__GNUC_PREREQ): Define.
33958         (__attribute_warn_unused_result__): Define.
33959         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33960
33961 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33962
33963         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33964         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33965
33966 2008-08-07  Jim Meyering  <meyering@redhat.com>
33967
33968         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
33969
33970         * modules/mkstemp (License): Relicense under LGPLv2+.
33971         * modules/tempname (License): Likewise.
33972
33973 2008-08-06  Bruno Haible  <bruno@clisp.org>
33974
33975         * lib/poll.c (poll): Further micro-optimization.
33976
33977 2008-08-06  Jim Meyering  <meyering@redhat.com>
33978
33979         inet_pton.c: use locale-independent tolower
33980         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
33981         (inet_pton6): Use c_tolower rather than tolower.
33982         * modules/inet_pton (Depends-on): Add c-ctype.
33983
33984 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
33985
33986         * lib/poll.c (poll): Avoid division when timeout is 0, cache
33987         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
33988
33989 2008-08-06  Jim Meyering  <meyering@redhat.com>
33990
33991         * modules/inet_pton (License): Relicense under LGPLv2+.
33992
33993 2008-08-03  Bruno Haible  <bruno@clisp.org>
33994
33995         Additional non-aborting API for lock and tls.
33996         * lib/lock.h: Include <errno.h>.
33997         (glthread_lock_init): New macro/function.
33998         (gl_lock_init): Define as wrapper around glthread_lock_init.
33999         (glthread_lock_lock): New macro/function.
34000         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
34001         (glthread_lock_unlock): New macro/function.
34002         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
34003         (glthread_lock_destroy): New macro/function.
34004         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
34005         (glthread_rwlock_init): New macro/function.
34006         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
34007         (glthread_rwlock_rdlock): New macro/function.
34008         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
34009         (glthread_rwlock_wrlock): New macro/function.
34010         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
34011         (glthread_rwlock_unlock): New macro/function.
34012         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
34013         (glthread_rwlock_destroy): New macro/function.
34014         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
34015         (glthread_recursive_lock_init): New macro/function.
34016         (gl_recursive_lock_init): Define as wrapper around
34017         glthread_recursive_lock_init.
34018         (glthread_recursive_lock_lock): New macro/function.
34019         (gl_recursive_lock_lock): Define as wrapper around
34020         glthread_recursive_lock_lock.
34021         (glthread_recursive_lock_unlock): New macro/function.
34022         (gl_recursive_lock_unlock): Define as wrapper around
34023         glthread_recursive_lock_unlock.
34024         (glthread_recursive_lock_destroy): New macro/function.
34025         (gl_recursive_lock_destroy): Define as wrapper around
34026         glthread_recursive_lock_destroy.
34027         (glthread_once): New macro/function.
34028         (gl_once): Define as wrapper around glthread_once.
34029         Update function declarations.
34030         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
34031         glthread_rwlock_init. Return error code.
34032         (glthread_rwlock_rdlock_multithreaded): Renamed from
34033         glthread_rwlock_rdlock. Return error code.
34034         (glthread_rwlock_wrlock_multithreaded): Renamed from
34035         glthread_rwlock_wrlock. Return error code.
34036         (glthread_rwlock_unlock_multithreaded): Renamed from
34037         glthread_rwlock_unlock. Return error code.
34038         (glthread_rwlock_destroy_multithreaded): Renamed from
34039         glthread_rwlock_destroy. Return error code.
34040         (glthread_recursive_lock_init_multithreaded): Renamed from
34041         glthread_recursive_lock_init. Return error code.
34042         (glthread_recursive_lock_lock_multithreaded): Renamed from
34043         glthread_recursive_lock_lock. Return error code.
34044         (glthread_recursive_lock_unlock_multithreaded): Renamed from
34045         glthread_recursive_lock_unlock. Return error code.
34046         (glthread_recursive_lock_destroy_multithreaded): Renamed from
34047         glthread_recursive_lock_destroy. Return error code.
34048         (glthread_once_call): Make static.
34049         (glthread_once_multithreaded): Renamed from glthread_once.
34050         * lib/tls.h: Include <errno.h>.
34051         (glthread_tls_key_init): New macro/function.
34052         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
34053         (glthread_tls_set): New macro/function.
34054         (gl_tls_set): Define as wrapper around glthread_tls_set.
34055         (glthread_tls_key_destroy): New macro/function.
34056         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
34057         Update function declarations.
34058         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
34059         glthread_tls_get.
34060         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34061
34062 2008-08-04  Eric Blake  <ebb9@byu.net>
34063
34064         gnumakefile: use space, not TAB, outside of targets
34065         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
34066
34067 2008-08-02  Jim Meyering  <meyering@redhat.com>
34068
34069         getdate.y: avoid locale-dependent date parsing failure
34070         In Turkish locales, getdate would fail to recognize keywords
34071         containing a lowercase "i".  The solution is not to rely on
34072         locale-sensitive case-conversion.
34073         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
34074         (lookup_word): Use c_toupper in place of toupper.
34075         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
34076         Reported by Vefa Bicakci <bicave@superonline.com> in
34077         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
34078         * modules/getdate (Depends-on): Add c-ctype.
34079
34080 2008-08-02  Bruno Haible  <bruno@clisp.org>
34081
34082         * gnulib-tool (func_import): When updating or creating a .gitignore
34083         file, prepend each added line with a slash, and ignore leading slashes
34084         from the existing lines.
34085         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34086
34087 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34088
34089         Portability fix for GNU make 3.79.1.
34090         * top/GNUmakefile: Avoid 'else COND', which older GNU make
34091         versions do not understand.
34092
34093 2008-08-01  Bruno Haible  <bruno@clisp.org>
34094
34095         Work around bug of HP-UX 10.20 cc with -0.0 literal.
34096         * tests/test-isnanf.h (zero): New variable.
34097         (main): Avoid literal -0.0f.
34098         * tests/test-isnand.h (zero): New variable.
34099         (main): Avoid literal -0.0.
34100         * tests/test-isnanl.h (zero): New variable.
34101         (main): Avoid literal -0.0L.
34102         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
34103         (test_float, test_double, test_long_double): Avoid literals -0.0f,
34104         -0.0, -0.0L.
34105         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
34106         (test_signbitd): Avoid literal -0.0.
34107         (test_signbitl): Avoid literal -0.0L.
34108         * tests/test-ceilf1.c (zero): New variable.
34109         (main): Avoid literal -0.0f.
34110         * tests/test-ceill.c (zero): New variable.
34111         (main): Avoid literal -0.0L.
34112         * tests/test-floorf1.c (zero): New variable.
34113         (main): Avoid literal -0.0f.
34114         * tests/test-floorl.c (zero): New variable.
34115         (main): Avoid literal -0.0L.
34116         * tests/test-roundf1.c (zero): New variable.
34117         (main): Avoid literal -0.0f.
34118         * tests/test-round1.c (zero): New variable.
34119         (main): Avoid literal -0.0.
34120         * tests/test-roundl.c (zero): New variable.
34121         (main): Avoid literal -0.0L.
34122         * tests/test-truncf1.c (zero): New variable.
34123         (main): Avoid literal -0.0f.
34124         * tests/test-trunc1.c (zero): New variable.
34125         (main): Avoid literal -0.0.
34126         * tests/test-truncl.c (zero): New variable.
34127         (main): Avoid literal -0.0L.
34128         * tests/test-frexp.c (zero): New variable.
34129         (main): Avoid literal -0.0.
34130         * tests/test-frexpl.c (zero): New variable.
34131         (main): Avoid literal -0.0L.
34132         * tests/test-ldexpl.c (zero): New variable.
34133         (main): Avoid literal -0.0L.
34134         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34135         (zerod, zerol): New variables.
34136         (test_function): Avoid literals -0.0, -0.0L.
34137         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34138         (zerod, zerol): New variables.
34139         (test_function): Avoid literals -0.0, -0.0L.
34140         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34141         (zerod, zerol): New variables.
34142         (test_function): Avoid literals -0.0, -0.0L.
34143         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34144         (zerod, zerol): New variables.
34145         (test_function): Avoid literals -0.0, -0.0L.
34146         * tests/test-strtod.c (zero): New variable.
34147         (main): Avoid literal -0.0.
34148         Reported by Jonathan C. Patschke <jp@centtech.com>.
34149
34150 2008-07-31  Jim Meyering  <meyering@redhat.com>
34151
34152         sha256.h: correct definition of SHA224_DIGEST_SIZE
34153         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
34154         Reported by Paulie Pena IV <paulie4@gmail.com>.
34155         Define as 224 / 8, rather than as a literal.
34156         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
34157         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
34158         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
34159
34160 2008-07-31  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
34163         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
34164         Reported by Jonathan Patschke <jp@centtech.com>.
34165
34166 2008-07-31  Bruno Haible  <bruno@clisp.org>
34167
34168         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
34169         Reported by Paolo Bonzini <bonzini@gnu.org>.
34170
34171 2008-07-30  Eric Blake  <ebb9@byu.net>
34172
34173         test-strtod: allow compilation without -lm
34174         * tests/test-strtod.c (main): Avoid link dependence on fabs.
34175         Reported by Dennis Clarke <blastwave@gmail.com>.
34176
34177 2008-07-28  Jim Meyering  <meyering@redhat.com>
34178
34179         bootstrap: work also when there are no .po files in po/
34180         * build-aux/bootstrap (update_po_files): Complete the change
34181         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
34182
34183 2008-07-27  Jim Meyering  <meyering@redhat.com>
34184
34185         * users.txt: Add zile.
34186
34187 2008-07-26  Ben Pfaff  <blp@gnu.org>
34188
34189         Add missing dependencies on new m4/exponent[fdl].m4 files.
34190         * modules/isnanf-nolibm: Add m4/exponentf.m4.
34191         * modules/isnand-nolibm: Add m4/exponentd.m4.
34192         * modules/isnanl-nolibm: Add m4/exponentl.m4.
34193         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
34194         m4/isnan[fdl].m4, because the macros actually used moved.
34195         Reported by Jim Meyering.
34196
34197 2008-07-14  Ben Pfaff  <blp@gnu.org>
34198
34199         Add isinf module.
34200         * lib/isinf.c: New file.
34201         * lib/math.in.h: Define isinf macro if we have decided to replace
34202         it.
34203         * m4/isinf.m4: New file.
34204         * m4/math_h.m4: Initialize and substitute variables for isinf
34205         module.
34206         * modules/isinf: New file.
34207         * modules/isinf-tests: New file.
34208         * modules/math: Add substitutions for new module.
34209         * tests/test-isinf.c: New file.
34210         * doc/posix-functions/isinf.texi: Mention new module.
34211         * MODULES.html.sh: Mention new module.
34212
34213 2008-07-14  Ben Pfaff  <blp@gnu.org>
34214
34215         Factor out some macros for use by additional modules.
34216         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
34217         exponentf.m4.
34218         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
34219         exponentd.m4.
34220         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
34221         file exponentl.m4.
34222         * m4/exponentf.m4: New file.
34223         * m4/exponentd.m4: New file.
34224         * m4/exponentl.m4: New file.
34225         * modules/isnanf: Use new file m4/exponentf.m4.
34226         * modules/isnand: Use new file m4/exponentd.m4.
34227         * modules/isnanl: Use new file m4/exponentl.m4.
34228
34229 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
34230
34231         mktime.c: normalize tp->tm_isdst value to -1/0/1.
34232         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
34233         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
34234         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
34235
34236         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
34237         readlink on platforms without PATH_MAX.
34238
34239 2008-07-21  Eric Blake  <ebb9@byu.net>
34240
34241         Warn, not fail, on stale version.
34242         * top/GNUmakefile (_curr-ver): Tone down previous patch.
34243
34244         Don't allow installation with stale devel version number.
34245         * top/GNUmakefile (_is-install-target): New macro.
34246         (_curr-ver): Forbid installation with stale version number.
34247
34248 2008-07-20  Bruno Haible  <bruno@clisp.org>
34249
34250         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
34251         TESTS_ENVIRONMENT.
34252         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
34253
34254 2008-07-20  Bruno Haible  <bruno@clisp.org>
34255
34256         * lib/c-stack.h (c_stack_action): Add documentation.
34257         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
34258
34259 2008-07-20  Bruno Haible  <bruno@clisp.org>
34260
34261         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
34262         * modules/readlink (License): Likewise.
34263
34264 2008-07-17  Eric Blake  <ebb9@byu.net>
34265
34266         * modules/c-stack (Link): Fix typo.
34267
34268         Make c-stack use libsigsegv, when available.
34269         * modules/c-stack (Depends-on): Add libsigsegv.
34270         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
34271         needed.
34272         * lib/c-stack.c (SIGSTKSZ): Define fallback.
34273         (segv_handler, overflow_handler, c_stack_action)
34274         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
34275         implementation when libsigsegv is available, but only when using
34276         the library is necessary.
34277         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
34278         comment, explaining why XSI check fails on Linux.
34279         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
34280         * tests/test-c-stack2.sh: Tweak skip message.
34281         * NEWS: Document new link-time requirements.
34282
34283 2008-07-16  Eric Blake  <ebb9@byu.net>
34284
34285         c-stack: Expose false positives when not using libsigsegv.
34286         * modules/c-stack-tests (Files): Expand test.
34287         * tests/test-c-stack.c (main): Add means to conditionally trigger
34288         non-overflow SIGSEGV.
34289         * tests/test-c-stack2.sh: New file.
34290
34291 2008-07-14  Bruno Haible  <bruno@clisp.org>
34292
34293         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
34294         Reported by Eric Blake.
34295
34296 2008-07-14  Sam Steingold  <sds@gnu.org>
34297             Bruno Haible  <bruno@clisp.org>
34298
34299         New module libsigsegv.
34300         * modules/libsigsegv: New file.
34301         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
34302         modifications.
34303         * MODULES.html.sh (Signal handling): New section.
34304
34305 2008-07-14  Bruno Haible  <bruno@clisp.org>
34306
34307         * modules/unictype/ctype-* (Description): Add the word "function".
34308         Improves the resulting doc in MODULES.html.
34309
34310 2008-07-12  Ben Pfaff  <blp@gnu.org>
34311
34312         Add longlong module.
34313         * modules/longlong: New file.
34314
34315 2008-07-12  Bruno Haible  <bruno@clisp.org>
34316
34317         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
34318         to empty.
34319
34320 2008-07-10  Ben Pfaff  <blp@gnu.org>
34321
34322         Add isnan module.
34323         * doc/posix-functions/isnan.texi: Mention new module.
34324         * lib/math.in.h: Define isnan macro if we have decided to replace
34325         it.
34326         * m4/isnan.m4: New file.
34327         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
34328         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
34329         also.
34330         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
34331         redundancy.
34332         * m4/math_h.m4: Initialize and substitute variables for isnan
34333         module.
34334         * modules/isnan: New file.
34335         * modules/isnan-tests: New file.
34336         * modules/math: Add substitutions for new module.
34337         * tests/test-isnan.c: New file.
34338         * MODULES.html.sh: Mention new module.
34339
34340 2008-07-10  Ben Pfaff  <blp@gnu.org>
34341
34342         Add isnanf module.
34343         * lib/isnanf.m4: New file.
34344         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
34345         (gl_HAVE_ISNANF_IN_LIBM): New macro.
34346         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
34347         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
34348         * modules/isnanf: New file.
34349         * modules/isnanf-tests: New file.
34350         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
34351         files.
34352         * tests/test-isnanf-nolibm.c: factored most of its contents into
34353         new file tests/test-isnanf.h.
34354         * tests/test-isnanf.h: New file.
34355         * tests/test-isnanf.c: New file.
34356         * MODULES.html.sh: Mention new module.
34357         * doc/glibc-functions/isnanf.texi: Mention new module.
34358
34359 2008-07-10  Ben Pfaff  <blp@gnu.org>
34360
34361         Add isnand module.
34362         * lib/isnand.h: New file.
34363         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
34364         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
34365         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
34366         functionality also.
34367         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
34368         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
34369         (gl_HAVE_ISNAND_IN_LIBM): New macro.
34370         * modules/isnand: New file.
34371         * modules/isnand-tests: New file.
34372         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
34373         files.
34374         * tests/test-isnand-nolibm.c: factored most of its contents into
34375         new file tests/test-isnand.h.
34376         * tests/test-isnand.h: New file.
34377         * tests/test-isnand.c: New file.
34378         * MODULES.html.sh: Mention new module.
34379
34380 2008-07-10  Ben Pfaff  <blp@gnu.org>
34381
34382         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
34383         * lib/isnand.h: Rename lib/isnand-nolibm.h.
34384         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
34385         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
34386         * modules/isnanf-nolibm: Update references to renamed files.
34387         * modules/isnand-nolibm: Likewise.
34388         * modules/isnanf-nolibm-tests: Likewise.
34389         * modules/isnand-nolibm-tests: Likewise.
34390         * lib/frexp.c: Likewise.
34391         * lib/isfinite.c: Likewise.
34392         * lib/signbitd.c: Likewise.
34393         * lib/signbitf.c: Likewise.
34394         * lib/vasnprintf.c: Likewise.
34395         * tests/test-ceilf1.c: Likewise.
34396         * tests/test-ceilf2.c: Likewise.
34397         * tests/test-floorf1.c: Likewise.
34398         * tests/test-floorf2.c: Likewise.
34399         * tests/test-frexp.c: Likewise.
34400         * tests/test-round1.c: Likewise.
34401         * tests/test-round2.c: Likewise.
34402         * tests/test-roundf1.c: Likewise.
34403         * tests/test-strtod.c: Likewise.
34404         * tests/test-trunc1.c: Likewise.
34405         * tests/test-trunc2.c: Likewise.
34406         * tests/test-truncf1.c: Likewise.
34407         * tests/test-truncf2.c: Likewise.
34408         * NEWS: Mention the renamed header files.
34409
34410 2008-07-11  Jim Meyering  <meyering@redhat.com>
34411
34412         vc-list-files: make the last-resort awk code more portable
34413         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
34414         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
34415         does not support it.
34416
34417 2008-07-10  Eric Blake  <ebb9@byu.net>
34418
34419         Work with tar's bootstrap.
34420         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
34421         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
34422         an m4 comment.
34423
34424 2008-07-09  Jim Meyering  <meyering@redhat.com>
34425
34426         posix-shell.m4: fix typo that made this test malfunction
34427         * m4/posix-shell.m4: Remove capitalization in variable name.
34428
34429 2008-07-08  Bruno Haible  <bruno@clisp.org>
34430
34431         * m4/onceonly.m4: Update comments.
34432         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34433
34434 2008-07-04  Jim Meyering  <meyering@redhat.com>
34435
34436         * users.txt: Add vc-dwim.
34437         (bison, coreutils): Use the gitweb URL.
34438
34439 2008-07-03  Jim Meyering  <meyering@redhat.com>
34440
34441         * users.txt: Add libffcall.  From Sam Steingold.
34442
34443 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
34444
34445         getdate.y: do not ignore TZ with relative day, month or year offset
34446         * lib/getdate.y (get_date): Move the tz-handling block to follow the
34447         relative-date-handling, since otherwise, the latter would clobber the
34448         sole output (an updated Start value) of the tz-handling block.
34449         * tests/test-getdate.c: Tests for the fix
34450
34451 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34452
34453         Recognize 'foo_LIBRARIES += libgnu.a'.
34454         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
34455         makefile snippet has already specified an installation location,
34456         also using '+='.
34457
34458 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
34459
34460         getdate.y: factor out common actions
34461         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
34462         Use them in place of open-coded actions.
34463
34464 2008-07-01  Simon Josefsson  <simon@josefsson.org>
34465
34466         Add self-test for getdate module.
34467         * modules/getdate-tests: New file.
34468         * tests/test-getdate.c: New file.
34469
34470 2008-06-29  Bruno Haible  <bruno@clisp.org>
34471
34472         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
34473         .gitignore.
34474         Reported by Sylvain Beucler <beuc@beuc.net>.
34475
34476 2008-06-29  Bruno Haible  <bruno@clisp.org>
34477
34478         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
34479         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
34480
34481 2008-06-29  Bruno Haible  <bruno@clisp.org>
34482
34483         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
34484         EXTRA_DIST.
34485         Reported by Sylvain Beucler <beuc@beuc.net>.
34486
34487 2008-06-26  Jim Meyering  <meyering@redhat.com>
34488
34489         make several modules depend on the "open" module
34490         This provides slightly increased consistency when opening-for-write
34491         the name of a non-directory spelled with a trailing slash.
34492         * modules/chdir-safer: Likewise.
34493         * modules/chown: Likewise.
34494         * modules/clean-temp: Likewise.
34495         * modules/copy-file: Likewise.
34496         * modules/fchdir: Likewise.
34497         * modules/fcntl-safer: Likewise.
34498         * modules/pipe: Likewise.
34499         * modules/utime: Likewise.
34500         Prompted by Eric Blake and Bruno Haible.
34501
34502 2008-06-24  Andreas Schwab  <schwab@suse.de>
34503
34504         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
34505         literals can be used as initializers for global variables.
34506
34507 2008-06-23  Eric Blake  <ebb9@byu.net>
34508
34509         Make gnulib-cache.m4 easier to diff.
34510         * gnulib-tool (func_import): Allow newlines when reading cached
34511         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
34512
34513 2008-06-23  Bruno Haible  <bruno@clisp.org>
34514
34515         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
34516         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
34517         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
34518         m4/signalblocking.m4.
34519         (gl_PREREQ_SIGACTION): Don't invoke it.
34520         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
34521         gl_PREREQ_SIG_HANDLER_H.
34522         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34523         Don't check for sigaction here.
34524
34525 2008-06-23  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
34528         (install_handlers): Don't set the SA_RESETHAND flag.
34529
34530 2008-06-23  Bruno Haible  <bruno@clisp.org>
34531
34532         * m4/sigaction.m4: Comment fixes.
34533         * lib/signal.in.h: Likewise.
34534
34535 2008-06-23  Eric Blake  <ebb9@byu.net>
34536
34537         Fix typo.
34538         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
34539
34540         Avoid SA_ namespace.
34541         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
34542         Reported by Ralf Wildenhues.
34543
34544         Avoid test failure due to SA_RESTORER.
34545         * tests/test-sigaction.c (SA_MASK): New macro.
34546         (main): Avoid failing due to extension flags being set.
34547         Reported by Jim Meyering.
34548
34549         Revert use of sig-handler.h in sigprocmask.c.
34550         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
34551         it requires the existence of struct sigaction.
34552         * lib/sigprocmask.c (handler_t): Restore typedef.
34553         (rpl_signal, old_handlers): Use local type.
34554
34555 2008-06-22  Bruno Haible  <bruno@clisp.org>
34556
34557         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
34558         conditionally.
34559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34560
34561 2008-06-22  Bruno Haible  <bruno@clisp.org>
34562
34563         * doc/posix-functions/siginterrupt.texi: Move note.
34564
34565         * lib/signal.in.h (SA_RESTART): New macro.
34566         * lib/sigaction.c: Update comment.
34567
34568         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
34569
34570         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
34571         (gl_PREREQ_SIGPROCMASK): Invoke it.
34572         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
34573
34574         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
34575
34576         * lib/sigprocmask.c: Update a comment.
34577
34578 2008-06-21  Eric Blake  <ebb9@byu.net>
34579
34580         Use sigaction module rather than signal().
34581         * modules/c-stack (Depends-on): Add sigaction.
34582         * modules/fatal-signal (Depends-on): Likewise.
34583         * modules/nanosleep (Depends-on): Likewise.
34584         * modules/sigprocmask (Files): Add sig-handler.h.
34585         * modules/sigaction (Files): Likewise.
34586         * lib/sig-handler.h (get_handler): New file, suggested by Paul
34587         Eggert.
34588         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
34589         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
34590         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34591         (init_fatal_signals): Likewise.
34592         * lib/nanosleep.c (rpl_nanosleep): Likewise.
34593         (siginterrupt): Delete fallback.
34594         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
34595         instead.
34596         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
34597         siginterrupt.
34598
34599         New module sigaction, for mingw.
34600         * modules/sigaction: New module...
34601         * modules/sigaction-tests: ...and its test.
34602         * m4/sigaction.m4: New file.
34603         * lib/sigaction.c: Likewise.
34604         * tests/test-sigaction.c: Likewise.
34605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
34606         * modules/signal (Makefile.am): Likewise.
34607         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
34608         needed.
34609         * doc/posix-headers/signal.texi (signal.h): Mention provided
34610         types.
34611         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
34612         that sigaction is preferable.
34613         * doc/posix-functions/sigaction.texi (sigaction): Mention new
34614         module.
34615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34616         sigaction.
34617
34618         Improve robustness of sigprocmask by overriding signal.
34619         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
34620         is in use.
34621         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
34622         (SIGKILL, SIGSTOP): Provide fallbacks.
34623         (rpl_signal): Implement.
34624         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
34625         signal can be called inside handlers.
34626
34627         Fix nanosleep module on mingw.
34628         * modules/nanosleep (Depends-on): Add sys_select.
34629         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
34630
34631         Fix licensing of sigprocmask.
34632         * modules/raise (License): Relicense as LGPL.
34633
34634 2008-06-21  Bruno Haible  <bruno@clisp.org>
34635
34636         * lib/propername.c (proper_name_utf8): Don't use the transliterated
34637         result if it contains question marks.
34638         Reported by Michael Geng <linux@michaelgeng.de>.
34639
34640 2008-06-19  Bruno Haible  <bruno@clisp.org>
34641
34642         Fix CVS-ism.
34643         * doc/gnulib.texi: Include updated-stamp.texi.
34644         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
34645         (updated-stamp.texi): New rule.
34646         (gnulib.info): Depend on it.
34647         * doc/.gitignore: Add updated-stamp.texi.
34648         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
34649
34650 2008-06-19  Bruno Haible  <bruno@clisp.org>
34651
34652         * doc/Makefile (gnulib.info): Update and simplify dependencies.
34653         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34654
34655 2008-06-19  Eric Blake  <ebb9@byu.net>
34656
34657         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
34658         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
34659         Reported by Stepan Kasal.
34660
34661 2008-06-18  Bruno Haible  <bruno@clisp.org>
34662
34663         * lib/fatal-signal.c (init_fatal_signals): Add comment.
34664         Reported by Eric Blake.
34665
34666 2008-06-18  Eric Blake  <ebb9@byu.net>
34667
34668         Work around cygwin 1.5.25 strsignal bug.
34669         * tests/test-strsignal.c: Allow for const char *.
34670         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
34671
34672 2008-06-18  Simon Josefsson  <simon@josefsson.org>
34673
34674         * users.txt: Update URL to article and add author/date
34675         information.
34676
34677 2008-06-17  Bruno Haible  <bruno@clisp.org>
34678
34679         New macro gl_DISABLE_THREADS.
34680         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
34681         if the user did not pass --enable-threads or --disable-threads option.
34682         (gl_DISABLE_THREADS): New macro.
34683         Reported by Eric Blake <ebb9@byu.net>.
34684
34685 2008-06-17  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
34688         when the macro ignores it.
34689         Based on a patch by Eric Blake <ebb9@byu.net>.
34690
34691 2008-06-17  Bruno Haible  <bruno@clisp.org>
34692
34693         * modules/tls (License): Change to LGPLv2+.
34694         Reported by Eric Blake.
34695
34696 2008-06-17  Eric Blake  <ebb9@byu.net>
34697
34698         Simplify c-stack prerequisites.
34699         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
34700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
34701         no longer requires <ucontext.h> to exist.  Optimize setrlimit
34702         check.
34703         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
34704         <sys/resource.h>.
34705
34706         Move c-stack test into testsuite.
34707         * modules/c-stack-tests: New file.
34708         * lib/c-stack.c [DEBUG]: Move test program...
34709         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34710         fail test if sigaltstack is lacking.
34711         * tests/test-c-stack.sh: New driver file.
34712
34713 2008-06-16  Eric Blake  <ebb9@byu.net>
34714
34715         Use raise module consistently.
34716         * modules/fatal-signal (Depends-on): Add raise.
34717         * modules/sigprocmask (Depends-on): Likewise.
34718         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34719         * lib/sigprocmask.c (sigprocmask): Likewise.
34720         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34721         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34722
34723         Fix compliance bug in sigpending.
34724         * lib/sigprocmask.c (sigpending): Return pending array via
34725         parameter, not return value.
34726
34727 2008-06-14  Eric Blake  <ebb9@byu.net>
34728
34729         Improve obstack-printf test code.
34730         * tests/test-obstack-printf.c (test_function): Fix comment, and
34731         simplify usage of obstack_* in macros.  Add a test for coverage.
34732         Reported by Bruno Haible.
34733
34734 2008-06-14  Bruno Haible  <bruno@clisp.org>
34735
34736         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34737         array size as a constant, not as a const variable.
34738         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34739         AC_USE_SYSTEM_EXTENSIONS.
34740         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34741         Test whether the obstack_printf function actually exists.
34742         * modules/obstack-printf (Depends-on): Add extensions.
34743         (Include): Remove obstack.h.
34744         * modules/obstack-printf-posix (Depends-on): Add extensions.
34745         (Include): Remove obstack.h.
34746
34747 2008-06-13  Eric Blake  <ebb9@byu.net>
34748
34749         Add obstack-printf and obstack-printf-posix modules.
34750         * modules/obstack-printf: New file.
34751         * modules/obstack-printf-posix: Likewise.
34752         * MODULES.html.sh (Misc): Mention them.
34753         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34754         Likewise.
34755         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34756         Likewise.
34757         * modules/stdio (Makefile.am): Accomodate new modules.
34758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34759         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34760         Declare.
34761         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34762         functions.
34763         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34764         (gl_REPLACE_OBSTACK_PRINTF): New macros
34765         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34766         * tests/test-obstack-printf.c: New file.
34767         * modules/obstack-printf-tests: Likewise.
34768         * modules/obstack-printf-posix-tests: Likewise.
34769
34770 2008-06-11  Bruno Haible  <bruno@clisp.org>
34771
34772         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34773         * lib/open.c: Include errno.h.
34774         (open): Fail when attempting to write to a file that has a trailing
34775         slash.
34776         * tests/test-open.c (main): Test against trailing slash bug.
34777         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34778
34779 2008-06-10  Bruno Haible  <bruno@clisp.org>
34780
34781         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34782         for $? to work inside the trap command, with various /bin/sh-s.
34783         * tests/test-vc-list-files-cvs.sh: Likewise.
34784
34785 2008-06-10  Bruno Haible  <bruno@clisp.org>
34786
34787         * lib/acl-internal.h: Don't include gettext.h here.
34788         * lib/set-mode-acl.c: Include gettext.h here.
34789         * lib/copy-acl.c: Likewise.
34790
34791 2008-06-10  Bruno Haible  <bruno@clisp.org>
34792
34793         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34794         * lib/wait-process.c (wait_subprocess): Likewise.
34795         * lib/execute.h (execute): Add termsigp argument.
34796         * lib/execute.c (execute): Likewise.
34797         * lib/csharpcomp.c (compile_csharp_using_pnet,
34798         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34799         * lib/csharpexec.c (execute_csharp_using_pnet,
34800         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34801         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34802         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34803         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34804         is_jikes_present): Update.
34805         * lib/javaexec.c (execute_java_class): Update.
34806         * lib/javaversion.c (execute_and_read_line): Update.
34807         * NEWS: Document the changes.
34808         Reported by Eric Blake.
34809
34810 2008-06-10  Eric Blake  <ebb9@byu.net>
34811
34812         Add missing include.
34813         * tests/test-strstr.c (includes): Add <signal.h>.
34814         * tests/test-strcasestr.c (includes): Likewise.
34815         * tests/test-memmem.c (includes): Likewise.
34816
34817 2008-06-10  Bruno Haible  <bruno@clisp.org>
34818
34819         * lib/wait-process.c (wait_subprocess): Add an assertion.
34820
34821 2008-06-10  Bruno Haible  <bruno@clisp.org>
34822
34823         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34824
34825 2008-06-10  Bruno Haible  <bruno@clisp.org>
34826
34827         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34828         using alarm().
34829         * tests/test-strcasestr.c (main): Likewise.
34830         * tests/test-strstr.c (main): Likewise.
34831
34832 2008-06-09  Bruno Haible  <bruno@clisp.org>
34833
34834         Work around the Solaris 10 ACE ACLs ABI change.
34835         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34836         declare if ACL_NO_TRIVIAL is present.
34837         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34838         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34839         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34840         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34841         define if ACL_NO_TRIVIAL is present.
34842         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34843         and use the current ABI.
34844         (file_has_acl): Use same #if condition as elsewhere.
34845         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34846         in use, and use the current ABI.
34847         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34848         Reported by Jim Meyering.
34849
34850 2008-06-09  Eric Blake  <ebb9@byu.net>
34851
34852         Work around environments that (stupidly) ignore SIGALRM.
34853         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34854         before using alarm().
34855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34856         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34857         Reported by Ian Beckwith <ianb@erislabs.net>.
34858
34859         Produce autobuild blurb earlier in log.
34860         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34861
34862 2008-06-09  Jim Meyering  <meyering@redhat.com>
34863         and OndÅ™ej Vašík  <ovasik@redhat.com>
34864
34865         utimens.c: correct kernel bug work-around
34866         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34867         failure, not success, and the kernel bug we're trying to work
34868         around affects not just the utimensat call, but also the fallback
34869         futimens call.
34870         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34871         not success.
34872         [HAVE_FUTIMENS]: Use the same work-around, here.
34873
34874 2008-06-09  Jim Meyering  <meyering@redhat.com>
34875
34876         add more guards around definition of ACE_-related code
34877         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34878         ALLOW and ACE_OWNER are also defined.
34879
34880 2008-06-08  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/acl-internal.h: Add me as co-author.
34883         * lib/file-has-acl.c: Likewise.
34884         * lib/set-mode-acl.c: Likewise.
34885         * lib/copy-acl.c: Likewise.
34886
34887 2008-06-08  Bruno Haible  <bruno@clisp.org>
34888
34889         Add support for AIX ACLs.
34890         * lib/acl-internal.h (acl_nontrivial): New declaration.
34891         * lib/file-has-acl.c (acl_nontrivial): New function.
34892         (file_has_acl): Add implementation using AIX 4 ACL API.
34893         * lib/set-mode-acl.c (qset_acl): Likewise.
34894         * lib/copy-acl.c (qcopy_acl): Likewise.
34895
34896 2008-06-08  Bruno Haible  <bruno@clisp.org>
34897
34898         Add support for HP-UX ACLs.
34899         * lib/acl-internal.h (acl_nontrivial): New declaration.
34900         * lib/file-has-acl.c (acl_nontrivial): New function.
34901         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34902         * lib/set-mode-acl.c (qset_acl): Likewise.
34903         * lib/copy-acl.c (qcopy_acl): Likewise.
34904
34905 2008-06-08  Bruno Haible  <bruno@clisp.org>
34906
34907         Add support for Cygwin ACLs.
34908         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34909         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34910         the chmod_or_fchmod call.
34911         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34912
34913 2008-06-08  Bruno Haible  <bruno@clisp.org>
34914
34915         Fix bug with setuid modes in Solaris 10+ code.
34916         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34917         succeeded, when the mode contains some special bits.
34918
34919 2008-06-08  Bruno Haible  <bruno@clisp.org>
34920
34921         Add support for Solaris 7..10 ACLs.
34922         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34923         declarations.
34924         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34925         functions.
34926         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34927         * lib/set-mode-acl.c (qset_acl): Likewise.
34928         * lib/copy-acl.c (qcopy_acl): Likewise.
34929
34930 2008-06-08  Bruno Haible  <bruno@clisp.org>
34931
34932         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34933         declaration.
34934         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34935         (acl_access_nontrivial): Remove MacOS X case.
34936         (file_has_acl): Use acl_extended_nontrivial.
34937         * lib/copy-acl.c (qcopy_acl): Likewise.
34938
34939 2008-06-08  Bruno Haible  <bruno@clisp.org>
34940
34941         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34942
34943 2008-06-08  Jim Meyering  <meyering@redhat.com>
34944
34945         * modules/acl (Maintainer): Add Bruno Haible.
34946
34947 2008-06-07  Bruno Haible  <bruno@clisp.org>
34948
34949         Improve support for Tru64 ACLs.
34950         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34951         ACL on OSF/1.
34952
34953 2008-06-07  Bruno Haible  <bruno@clisp.org>
34954
34955         Add support for MacOS X ACLs.
34956         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34957         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34958         * lib/set-mode-acl.c (qset_acl): Likewise.
34959         * lib/copy-acl.c (qcopy_acl): Likewise.
34960
34961 2008-06-07  Bruno Haible  <bruno@clisp.org>
34962
34963         Fix memory leak introduced on 2008-05-22.
34964         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34965         use.
34966
34967 2008-06-07  Bruno Haible  <bruno@clisp.org>
34968
34969         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
34970         to construct an empty ACL.
34971
34972 2008-06-07  Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
34975         precisely.
34976         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
34977
34978 2008-06-07  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
34981         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
34982
34983 2008-06-07  Bruno Haible  <bruno@clisp.org>
34984
34985         * doc/posix-functions/_setjmp.texi: Explain the use of this function
34986         regardless of POSIX.
34987         * doc/posix-functions/_longjmp.texi: Likewise.
34988         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
34989         SystemV platform in this case.
34990
34991 2008-06-06  Eric Blake  <ebb9@byu.net>
34992
34993         Document abort() bugs.
34994         * doc/posix-functions/abort.texi (abort): Mention anomalies.
34995
34996         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
34997         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
34998         sigsetjmp.
34999         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
35000         siglongjmp, but only as a macro.
35001         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
35002         is obsolete.
35003         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
35004
35005         Tweak documentation to cover cygwin argz bugs.
35006         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
35007         argz bug fix; no code change needed since no cygwin releases
35008         occurred between the last fix and the bug being tested.
35009         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
35010         module and recently fixed cygwin bugs.
35011         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
35012         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
35013         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
35014         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
35015         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
35016         Likewise.
35017         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
35018         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
35019         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
35020         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
35021         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
35022         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
35023         Likewise.
35024
35025         Avoid gcc warning on cygwin.
35026         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
35027         !ACL_NO_TRIVIAL]: Avoid unused variable.
35028
35029 2008-06-05  Eric Blake  <ebb9@byu.net>
35030
35031         Be tolerant of UNKNOWN version in gnulib-tool test dir.
35032         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
35033         git-version-gen fails to come up with a version.
35034         Reported by Simon Josefsson.
35035
35036 2008-06-05  Jim Meyering  <meyering@redhat.com>
35037             Paul Eggert  <eggert@cs.ucla.edu>
35038
35039         utimens.c: work around a probable Linux kernel bug
35040         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
35041         appears to be a kernel bug that causes utimensat to return 280
35042         instead of 0, indicating success.
35043
35044 2008-06-04  Bruno Haible  <bruno@clisp.org>
35045
35046         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
35047         2008-06-01 commit.
35048
35049 2008-06-04  Bruno Haible  <bruno@clisp.org>
35050
35051         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
35052         * lib/file-has-acl.c (acl_access_nontrivial): New function.
35053         (file_has_acl): Use it. Save errno afterwards.
35054         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
35055
35056 2008-06-03  Bruno Haible  <bruno@clisp.org>
35057
35058         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
35059         draft code. Simplify #ifs.
35060         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
35061         Put Solaris code after POSIX-draft code. Fix comments regarding
35062         Solaris 10, HP-UX. Mention Cygwin.
35063         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
35064
35065 2008-06-03  Eric Blake  <ebb9@byu.net>
35066
35067         Provide fallback for older kernels.
35068         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
35069         Provide runtime fallback if kernel lacks support.
35070         Reported by Mike Frysinger.
35071
35072 2008-06-02  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
35075         it exists.
35076
35077 2008-06-02  Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
35080         * lib/copy-acl.c (qcopy_acl): Update comment.
35081
35082 2008-06-02  Bruno Haible  <bruno@clisp.org>
35083
35084         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
35085         like ACL APIs.
35086
35087 2008-06-02  Bruno Haible  <bruno@clisp.org>
35088
35089         * tests/test-file-has-acl.sh: Use different code for Cygwin.
35090         * tests/test-set-mode-acl.sh: Likewise.
35091         * tests/test-copy-acl.sh: Likewise.
35092         * tests/test-copy-file.sh: Likewise.
35093
35094 2008-06-02  Bruno Haible  <bruno@clisp.org>
35095
35096         * tests/test-file-has-acl.sh: Remove unused code.
35097
35098 2008-06-01  Bruno Haible  <bruno@clisp.org>
35099
35100         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
35101         (copy_acl): Just a wrapper around qcopy_acl that emits the error
35102         messages.
35103         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
35104
35105 2008-06-01  Bruno Haible  <bruno@clisp.org>
35106
35107         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
35108         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
35109         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
35110         APIs.
35111         * modules/acl-tests (configure.ac): Remove tests now contained in
35112         m4/acl.m4.
35113
35114 2008-06-02  Jim Meyering  <meyering@redhat.com>
35115
35116         announce-gen: use a better key-server host name
35117         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
35118         it may be more consistently reliable.  Suggested by Werner Koch
35119         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
35120
35121 2008-06-01  Bruno Haible  <bruno@clisp.org>
35122
35123         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
35124         Reported by Voroskoi Andras <voroskoi@gmail.com>.
35125
35126 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
35127
35128         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
35129
35130 2008-06-01  Bruno Haible  <bruno@clisp.org>
35131
35132         New ACL tests.
35133         * tests/test-file-has-acl.sh: New file.
35134         * tests/test-file-has-acl.c: New file.
35135         * tests/test-set-mode-acl.sh: New file.
35136         * tests/test-set-mode-acl.c: New file.
35137         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
35138         * tests/test-copy-acl.c: New file.
35139         * modules/acl-tests: New file, based on modules/copy-file-tests.
35140         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
35141         (Depends-on): Add acl-tests.
35142         (configure.ac): Remove checks.
35143         (Makefile.am): Don't create test-sameacls program here any more.
35144
35145 2008-06-01  Bruno Haible  <bruno@clisp.org>
35146
35147         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
35148         * tests/test-sameacls.c: Include progname.h.
35149         (main): Invoke set_program_name. Portability fixes for MacOS X,
35150         Solaris, HP-UX.
35151
35152 2008-06-01  Bruno Haible  <bruno@clisp.org>
35153
35154         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
35155         function.
35156         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
35157
35158 2008-06-01  Bruno Haible  <bruno@clisp.org>
35159
35160         * modules/rpmatch (Depends-on): Add strdup.
35161
35162 2008-06-01  Bruno Haible  <bruno@clisp.org>
35163
35164         * lib/pipe.c: Include unistd-safer.h.
35165         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
35166         * modules/pipe (Depends-on): Add unistd-safer.
35167
35168 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35169
35170         * modules/autobuild (configure.ac): Call AB_INIT.
35171
35172 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35173
35174         * tests/test-getaddrinfo.c: Don't print debug messages by default.
35175         Suggested by Bruno Haible <bruno@clisp.org>.
35176
35177 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35178
35179         * tests/test-base64.c: Cast size_t to unsigned long when invoking
35180         printf.  Use %lu instead of %d.  Reported by Bruno Haible
35181         <bruno@clisp.org>.
35182
35183 2008-05-29  Eric Blake  <ebb9@byu.net>
35184
35185         Prefer new POSIX 200x interfaces over futimesat.
35186         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
35187         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
35188         when available.
35189         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
35190
35191 2008-05-28  Bruno Haible  <bruno@clisp.org>
35192
35193         * modules/stpcpy (License): Change to LGPLv2+.
35194         Requested by David Lutterkort <dlutter@redhat.com>.
35195
35196 2008-05-27  Bruno Haible  <bruno@clisp.org>
35197
35198         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
35199         current mingw.
35200         Reported by Jose E. Marchesi <jemarch@gnu.org>.
35201
35202 2008-05-27  Bruno Haible  <bruno@clisp.org>
35203
35204         * modules/iconv_open (Link): New section, from module 'iconv'.
35205         * modules/striconv (Link): Likewise.
35206         * modules/striconveh (Link): Likewise.
35207         * modules/xstriconv (Link): Likewise.
35208         * modules/unicodeio (Link): Likewise.
35209         * modules/propername (Link): Likewise.
35210         Reported by Jim Meyering.
35211
35212 2008-05-26  Jim Meyering  <meyering@redhat.com>
35213
35214         sha256: do not artificially restrict buffer length to be < 2^32
35215         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
35216         uint32_t to size_t.
35217         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
35218         to match.
35219
35220         avoid unaligned access errors, e.g., on sparc
35221         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
35222         direct access through a possibly-unaligned uint64* pointer.
35223         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
35224         direct access through a possibly-unaligned uint32* pointer.
35225         Prompted by this patch from Tom "spot" Callaway:
35226         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
35227
35228         sha512.c: fix typo in comment
35229         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
35230
35231 2008-05-25  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/set-mode-acl.c: Renamed from lib/acl.c.
35234         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
35235         (Makefile.am): Update lib_SOURCES.
35236
35237 2008-05-25  Bruno Haible  <bruno@clisp.org>
35238
35239         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
35240
35241 2008-05-25  Jim Meyering  <meyering@redhat.com>
35242
35243         useless-if-before-free: freed expr may have white-space differences
35244         * build-aux/useless-if-before-free: Recognize cases in which the
35245         freed expression differs from the tested one in embedded white
35246         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
35247         $1 was used, so we can't make any regexp shy.  Improved tests now
35248         detect this.
35249
35250         useless-if-before-free: accept white space in the expression.
35251         * build-aux/useless-if-before-free: For now, any white space
35252         in the expression must be identical in the free argument.
35253
35254         useless-if-before-free: efficiency tweak
35255         * build-aux/useless-if-before-free: Make the expression-matching
35256         regexp "shy".
35257         Make the *outer* regexp shy, not the expr-matching one.
35258
35259         update code-in-comment to accept cast of free arg
35260         * build-aux/useless-if-before-free: Update regexp.
35261
35262 2008-05-25  Bruno Haible  <bruno@clisp.org>
35263
35264         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
35265         * modules/copy-file-tests (Files, Makefile.am): Update.
35266         * tests/test-copy-file.c (func_test_copy): Update.
35267
35268 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
35269
35270         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
35271
35272 2008-05-23  Bruno Haible  <bruno@clisp.org>
35273
35274         Improve support for ACLs on OSF/1.
35275         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
35276         Remove fallback for unknown flavors of ACLs.
35277
35278 2008-05-22  Bruno Haible  <bruno@clisp.org>
35279
35280         Add support for ACLs on OSF/1.
35281         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
35282         replacements.
35283         (acl_free_text): New macro fallback.
35284         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
35285         acl_free.
35286         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
35287         acl_free_text function. Require AC_C_INLINE.
35288
35289 2008-05-22  Bruno Haible  <bruno@clisp.org>
35290
35291         Make copy_acl work on MacOS X 10.5.
35292         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
35293         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
35294         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
35295         If MODE_INSIDE_ACL, don't assume that every system has the same text
35296         representation for ACLs as FreeBSD.
35297         * lib/copy-acl.c (copy_acl): Add support for platforms with
35298         !MODE_INSIDE_ACL.
35299         * lib/file-has-acl.c (file_has_acl): Likewise.
35300         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
35301         FreeBSD, MacOS X, or IRIX, respectively.
35302
35303 2008-05-22  Bruno Haible  <bruno@clisp.org>
35304
35305         * lib/acl.h: Don't include <sys/acl.h>.
35306         (GETACLCNT): Move fallback to lib/acl-internal.h.
35307         * lib/acl-internal.h: Include <sys/acl.h> here.
35308         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
35309
35310 2008-05-22  Bruno Haible  <bruno@clisp.org>
35311
35312         Split off copy_acl function to separate file.
35313         * lib/copy-acl.c: New file, extracted from lib/acl.c.
35314         * lib/acl.c (copy_acl): Moved function to separate file.
35315         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
35316         * modules/acl (Files): Add lib/copy-acl.c.
35317         (Makefiles.am): Augment lib_SOURCES.
35318
35319 2008-05-22  Bruno Haible  <bruno@clisp.org>
35320
35321         * modules/copy-file-tests: New file.
35322         * tests/test-copy-file.sh: New file.
35323         * tests/test-copy-file.c: New file.
35324         * tests/test-copy-file-sameacls.c: New file.
35325
35326 2008-05-22  Eric Blake  <ebb9@byu.net>
35327
35328         Avoid gcc warning.
35329         * tests/test-memcmp.c (main): Pass NULL indirectly.
35330
35331 2008-05-21  Bruno Haible  <bruno@clisp.org>
35332
35333         Add reference doc about ACLs.
35334         * doc/acl-resources.txt: New file.
35335         * doc/acl-cygwin.txt: New file.
35336
35337 2008-05-21  Bruno Haible  <bruno@clisp.org>
35338
35339         Avoid one more warning from gcc.
35340         * lib/vasnprintf.c (IF_LINT): Update comments.
35341         (VASNPRINTF): Use it also for the 'prefix' array initializer.
35342
35343 2008-05-21  Jim Meyering  <meyering@redhat.com>
35344
35345         avoid a warning from gcc
35346         * lib/vasnprintf.c (IF_LINT): Define.
35347         (scale10_round_decimal_long_double):
35348         Use it to avoid a "may be used uninitialized" warning.
35349         (scale10_round_decimal_double): Likewise.
35350
35351 2008-05-21  Simon Josefsson  <simon@josefsson.org>
35352
35353         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
35354         declared.
35355
35356 2008-05-20  Bruno Haible  <bruno@clisp.org>
35357
35358         * tests/test-memcmp.c (main): Test also the sign of the result. Test
35359         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
35360
35361 2008-05-20  Simon Josefsson  <simon@josefsson.org>
35362
35363         * modules/memcmp-tests: New file.
35364         * tests/test-memcmp.c: New file.
35365
35366 2008-05-19  Bruno Haible  <bruno@clisp.org>
35367
35368         * modules/propername (Notice, configure.ac): Put quoted "..." into
35369         --keyword option.
35370         * lib/propername.h: Update comments accordingly.
35371         Reported by Eric Blake.
35372
35373 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
35374
35375         * modules/getpass-gnu (Depends-on): Add fseeko.
35376
35377 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35378
35379         * modules/base64-tests: New file.
35380
35381 2008-05-19  Bo Borgerson <gigabo@gmail.com>
35382
35383         * lib/base64.c (base64_decode_ctx): If a decode context structure
35384         was passed in use it to ignore newlines.  If a context structure
35385         was _not_ passed in, continue to treat newlines as garbage (this
35386         is the historical behavior).  Formerly base64_decode.
35387         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35388         takes a decode context structure.
35389         * lib/base64.h (base64_decode): Macro for four-argument calls.
35390         (base64_decode_alloc): Likewise.
35391         * lib/base64.c (base64_decode_ctx): If a decode context structure
35392         was passed in use it to ignore newlines.  If a context structure
35393         was _not_ passed in, continue to treat newlines as garbage (this
35394         is the historical behavior).  Formerly base64_decode.
35395         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35396         takes a decode context structure.
35397         * lib/base64.h (base64_decode): Macro for four-argument calls.
35398         (base64_decode_alloc): Likewise.
35399
35400 2008-05-19  Jim Meyering  <meyering@redhat.com>
35401
35402         avoid a warning from gcc
35403         * lib/trim.c (IF_LINT): Define.
35404         (trim2): Use it to avoid a "may be used uninitialized" warning.
35405
35406         Fix doc typo.
35407         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
35408
35409 2008-05-19  Bruno Haible  <bruno@clisp.org>
35410
35411         * doc/glibc-functions/getpass.texi: Document limits of other
35412         implementations.
35413
35414 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35415             Bruno Haible <bruno@clisp.org>
35416
35417         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
35418
35419 2008-05-18  Bruno Haible  <bruno@clisp.org>
35420
35421         * modules/propername: New file, from GNU gettext.
35422         * lib/propername.h: New file, from GNU gettext.
35423         * lib/propername.c: New file, from GNU gettext.
35424         * MODULES.html.sh (Internationalization functions): Add propername.
35425
35426 2008-05-16  Jim Meyering  <meyering@redhat.com>
35427             Bruno Haible  <bruno@clisp.org>
35428
35429         Avoid some warnings from "gcc -Wshadow".
35430         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
35431
35432 2008-05-15  Eric Blake  <ebb9@byu.net>
35433
35434         Extend previous patch to cygwin 1.7.0.
35435         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
35436         fast implementation in cygwin >= 1.7.0.
35437         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35439
35440 2008-05-15  Bruno Haible  <bruno@clisp.org>
35441
35442         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
35443         implementation in glibc >= 2.9.
35444         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35446
35447 2008-05-15  Bruno Haible  <bruno@clisp.org>
35448
35449         * MODULES.html.sh (Internationalization functions): Remove linebreak.
35450         (Unicode string functions): Add unilbrk/*.
35451         Reported by Karl Berry.
35452
35453 2008-05-15  Eric Blake  <ebb9@byu.net>
35454
35455         Fix violation of <stdbool.h> replacement in regex.
35456         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
35457         * lib/regexec.c (re_search_internal): Likewise.
35458         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
35459
35460 2008-05-15  Jim Meyering  <meyering@redhat.com>
35461
35462         avoid distracting test output when git or cvs is not found
35463         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
35464         * tests/test-vc-list-files-git.sh: Likewise.
35465
35466 2008-05-15  Eric Blake  <ebb9@byu.net>
35467
35468         Glibc finally accepted the memmem speedup code, bugzilla #5514.
35469         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
35470         glibc version.
35471         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35472         * doc/posix-functions/strstr.texi (strstr): Likewise.
35473         * lib/str-two-way.h (MAX): Sychronize with glibc.
35474
35475 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
35476
35477         * lib/regcomp.c (optimize_utf8): Add a note on why we test
35478         opr.ctx_type.
35479         (calc_first): Initialize constraint field.
35480         (duplicate_node_closure): Use it instead of special casing ANCHORS.
35481         Fix grammar.
35482         (duplicate_node): Merge constraint field for all node types.
35483         (calc_eclosure_iter): Look at constraint field for all node types.
35484         * lib/regex_internal.c (create_cd_newstate): Don't look at
35485         opr.ctx_type.
35486
35487 2008-05-14  Bruno Haible  <bruno@clisp.org>
35488
35489         Help GCC to do better code generation.
35490         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
35491         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
35492         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
35493         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
35494         Declare with attribute 'malloc' if supported.
35495
35496 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
35497
35498         use "echo STR|wc -c" rather than unportable "expr length STR"
35499         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
35500         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
35501
35502 2008-05-14  Jim Meyering  <meyering@redhat.com>
35503
35504         use dd ibs=$n count=1 ... rather than less-portable head -c$n
35505         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
35506         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
35507         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
35508         via Collin Lasse.
35509
35510 2008-05-14  Eric Blake  <ebb9@byu.net>
35511
35512         Avoid quadratic growth in gl_LIBSOURCES.
35513         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
35514         Suggested by Bruno Haible.
35515
35516         Test xmemdup0.
35517         * modules/xmemdup0-tests: New file.
35518         * tests/test-xmemdup0.c: Likewise.
35519
35520 2008-05-13  Eric Blake  <ebb9@byu.net>
35521
35522         Split xmemdup0 into its own module.
35523         * modules/xmemdup0: New file.
35524         * lib/xmemdup0.h: Likewise.
35525         * lib/xmemdup0.c: Likewise.
35526         * MODULES.html.sh (Memory management functions): Add xmemdup0.
35527         * lib/xalloc.h (xmemdup0): Remove.
35528         * lib/xmalloc.c (xmemdup0): Likewise.
35529
35530 2008-05-13  Eric Blake  <ebb9@byu.net>
35531             Bruno Haible  <bruno@clisp.org>
35532
35533         Reduce number of forks required during autoconf.
35534         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
35535         and gl_LIBSOURCES_DIR.
35536         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
35537         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
35538         m4_syscmd per file.
35539         <m4_foreach_w>: Move...
35540         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
35541
35542 2008-05-13  Eric Blake  <ebb9@byu.net>
35543
35544         * gnulib-tool: Fix various comment typos.
35545
35546 2008-05-12  Bruno Haible  <bruno@clisp.org>
35547
35548         Tailor the linebreaking algorithm.
35549         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
35550
35551 2008-05-12  Bruno Haible  <bruno@clisp.org>
35552
35553         Update to Unicode 5.0.0.
35554         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35555         LBP_JV, LBP_JT. Redistribute values.
35556         (unilbrk_table): Change size.
35557         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
35558         Unicode TR#14 rev. 22.
35559         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35560         LBP_JV, LBP_JT. Redistribute values.
35561         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
35562         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
35563         Update.
35564         * lib/unilbrk/lbrkprop1.h: Regenerated.
35565         * lib/unilbrk/lbrkprop2.h: Regenerated.
35566         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
35567         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
35568         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
35569         Likewise.
35570         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
35571         Likewise.
35572         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
35573         result.
35574         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35575         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35576         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35577         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
35578         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
35579         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
35580
35581 2008-05-11  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
35584
35585 2008-05-11  Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
35588         * modules/unilbrk/gen-lbrk: New file.
35589
35590 2008-05-11  Bruno Haible  <bruno@clisp.org>
35591
35592         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
35593         * m4/sha512.m4 (gl_SHA512): Likewise.
35594
35595 2008-05-11  Jim Meyering  <meyering@redhat.com>
35596
35597         New modules: crypto/sha256, crypto/sha512 (from coreutils)
35598         * modules/crypto/sha256: New file.
35599         * modules/crypto/sha512: Likewise.
35600         * lib/sha256.c: Likewise.
35601         * lib/sha256.h: Likewise.
35602         * lib/sha512.c: Likewise.
35603         * lib/sha512.h: Likewise.
35604         * lib/u64.h: Likewise.
35605         * m4/sha256.m4: Likewise.
35606         * m4/sha512.m4: Likewise.
35607         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
35608
35609 2008-05-10  Bruno Haible  <bruno@clisp.org>
35610
35611         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
35612         (Input/Output <stdio.h>): Add xprintf.
35613         (Signal handling <signal.h>): Add strsignal.
35614         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
35615         (Core language properties): Add func.
35616         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
35617         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
35618         strings.
35619         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
35620         (Input/output): New section.
35621         (File system functions): Add openat-die, stat-macros.
35622         (Networking functions): Add sockets.
35623         (Unicode string functions): Add unictype/*.
35624         (Support for building libraries and executables): Add gperf.
35625         (Support for building documentation): Add agpl-3.0.
35626         (Misc): Add nocrash.
35627
35628 2008-05-10  Bruno Haible  <bruno@clisp.org>
35629
35630         * modules/unictype/gen-ctype: New file.
35631
35632 2008-05-10  Jim Meyering  <meyering@redhat.com>
35633
35634         Make chdir-safer.c more efficient on a system with no symlinks.
35635         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
35636         also if ELOOP is zero.  Suggested by Bruno Haible.
35637
35638         Make chdir-safer.c slightly safer.
35639         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
35640         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
35641
35642         Avoid compile failure on systems without ELOOP (like mingw).
35643         * lib/chdir-safer.c (ELOOP): Define if not already defined.
35644         Reported by Bruno Haible.
35645
35646 2008-05-10  Bruno Haible  <bruno@clisp.org>
35647
35648         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
35649         (is_utf8_encoding): Use a case-insensitive comparison.
35650         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
35651         streq.
35652
35653 2008-05-10  Bruno Haible  <bruno@clisp.org>
35654
35655         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
35656         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
35657         * lib/unilbrk/ulc-common.h (iconv_string_length,
35658         iconv_string_keeping_offsets): Remove declarations.
35659         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
35660         Don't include <iconv.h>, streq.h, xsize.h.
35661         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
35662         conversion.
35663         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
35664         <iconv.h>, streq.h, xsize.h.
35665         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
35666         conversion.
35667         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
35668         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
35669         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
35670         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
35671
35672 2008-05-10  Bruno Haible  <bruno@clisp.org>
35673
35674         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
35675         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
35676
35677         * modules/unilbrk/u32-width-linebreaks-tests: New file.
35678         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
35679
35680         * modules/unilbrk/u16-width-linebreaks-tests: New file.
35681         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
35682
35683         * modules/unilbrk/u8-width-linebreaks-tests: New file.
35684         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
35685
35686         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
35687         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
35688
35689         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
35690         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
35691
35692         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
35693         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
35694
35695         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
35696         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
35697
35698 2008-05-10  Bruno Haible  <bruno@clisp.org>
35699
35700         Split up 'linebreak' module.
35701         * lib/unilbrk.h: New file, based on lib/linebreak.h.
35702         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
35703         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
35704         modifications.
35705         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
35706         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
35707         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
35708         lib/linebreak.c.
35709         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35710         lib/linebreak.c.
35711         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35712         lib/linebreak.c.
35713         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35714         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35715         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35716         lib/linebreak.c.
35717         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35718         lib/linebreak.c.
35719         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35720         lib/linebreak.c.
35721         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35722         lib/linebreak.c.
35723         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35724         lib/linebreak.c.
35725         * modules/unilbrk/base: New file.
35726         * modules/unilbrk/tables: New file.
35727         * modules/unilbrk/u8-possible-linebreaks: New file.
35728         * modules/unilbrk/u16-possible-linebreaks: New file.
35729         * modules/unilbrk/u32-possible-linebreaks: New file.
35730         * modules/unilbrk/ulc-common: New file.
35731         * modules/unilbrk/ulc-possible-linebreaks: New file.
35732         * modules/unilbrk/u8-width-linebreaks: New file.
35733         * modules/unilbrk/u16-width-linebreaks: New file.
35734         * modules/unilbrk/u32-width-linebreaks: New file.
35735         * modules/unilbrk/ulc-width-linebreaks: New file.
35736         * lib/linebreak.h: Remove file.
35737         * lib/linebreak.c: Remove file.
35738         * m4/linebreak.m4: Remove file.
35739         * modules/linebreak: Remove file.
35740         * NEWS: Mention the changes.
35741
35742 2008-05-09  Eric Blake  <ebb9@byu.net>
35743
35744         Add xmemdup0.
35745         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35746         implementation.
35747         * lib/xmalloc.c (xmemdup0): New C implementation.
35748
35749 2008-05-08  Bruno Haible  <bruno@clisp.org>
35750
35751         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35752
35753 2008-05-07  Eric Blake  <ebb9@byu.net>
35754
35755         Support cross-compilation of <wctype.h>.
35756         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35757         AC_CACHE_CHECK.
35758
35759 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35760
35761         * build-aux/vc-list-files: Add support for bzr.
35762
35763 2008-05-03  Jim Meyering  <meyering@redhat.com>
35764
35765         avoid failed assertion with tight malloc
35766         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35767
35768 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35769
35770         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35771         are needed from arpa/inet.h.
35772         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35773         Reported by Bruno Haible.
35774
35775 2008-05-02  Jim Meyering  <meyering@redhat.com>
35776
35777         avoid compilation error on FreeBSD 6
35778         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35779
35780 2008-05-01  Jim Meyering  <meyering@redhat.com>
35781
35782         useless-if-before-free: correct --help's exit status description
35783         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35784         for one or more matches, etc.  Reported by Bruno Haible.
35785
35786         vc-list-files: make the stand-alone gnulib test work
35787         * modules/vc-list-files-tests (configure.ac):
35788         Define and AC_SUBST abs_aux_dir.
35789         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35790         $(abs_top_srcdir) to each script and having each of them
35791         duplicate the work of setting PATH, set PATH here, using
35792         the new variable, abs_aux_dir instead.
35793         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35794         * tests/test-vc-list-files-git.sh: Likewise.
35795         Reported by Bruno Haible.
35796
35797 2008-05-01  Bruno Haible  <bruno@clisp.org>
35798
35799         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35800         reallocation. Rename 'done' to 'found_delimiter'.
35801
35802 2008-05-01  Jim Meyering  <meyering@redhat.com>
35803
35804         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35805         * build-aux/vc-list-files: Use `...`, not $(...).
35806
35807 2008-04-30  Jim Meyering  <meyering@redhat.com>
35808
35809         add tests for vc-list-files
35810         * modules/vc-list-files-tests: New module.
35811         * tests/test-vc-list-files-cvs.sh: New file.
35812         * tests/test-vc-list-files-git.sh: New file.
35813
35814         avoid a warning from gcc
35815         * lib/getndelim2.c (IF_LINT): Define.
35816         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35817
35818         vc-list-files: work properly with build-aux/cvsu, too
35819         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35820         to all cvs-based clauses.
35821
35822         vc-list-files: work properly in the CVS+awk case, too
35823         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35824
35825         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35826         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35827         take more than one file argument, so .  Add quotes, just in case $dir
35828         ever contains a shell meta-character.  Prompted by Soren Hansen in
35829         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35830
35831 2008-04-29  Eric Blake  <ebb9@byu.net>
35832
35833         Optimize getndelim2 to use block operations when possible.
35834         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35835         freadseek, and memchr2.
35836         * lib/getndelim2.c (getndelim2): Use them for block reads.
35837
35838 2008-04-29  Bruno Haible  <bruno@clisp.org>
35839
35840         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35841         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35842         * modules/inet_ntop (Depends-on): Add extensions.
35843         * modules/inet_pton (Depends-on): Likewise.
35844         Reported by Simon Josefsson.
35845
35846 2008-04-29  Jim Meyering  <meyering@redhat.com>
35847
35848         When the is more than one match in a block, match all of them.
35849         * build-aux/useless-if-before-free: Iterate through each block
35850         until there are no more matches.
35851
35852         Fix broken useless-if-before-free script.
35853         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35854         the expression to match cast of argument to free-like function.
35855
35856 2008-04-29  Eric Blake  <ebb9@byu.net>
35857
35858         Use new header.
35859         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35860
35861 2008-04-29  Jim Meyering  <meyering@redhat.com>
35862
35863         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35864         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35865         by gnulib to exist and to declare e.g., inet_ntop.
35866         Don't include "inet_ntop.h", now removed.
35867
35868         * m4/arpa_inet_h.m4: Remove trailing blanks.
35869
35870 2008-04-29  Eric Blake  <ebb9@byu.net>
35871
35872         Silence valgrind on safe reads beyond potential array bounds.
35873         * lib/rawmemchr.valgrind: New file.
35874         * lib/strchrnul.valgrind: Likewise.
35875         * modules/rawmemchr (Files): Distribute new file.
35876         * modules/strchrnul (Files): Likewise.
35877         Suggested by Bruno Haible.
35878
35879 2008-04-29  Bruno Haible  <bruno@clisp.org>
35880
35881         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35882         (inet_ntop, inet_pton): Change portability warning's wording.
35883         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35884         Invoke gl_CHECK_NEXT_HEADERS.
35885         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35886         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35887         set ARPA_INET_H.
35888         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35889         * modules/arpa_inet (Description): No longer only for systems that
35890         lack it.
35891         (Depends-on): Add include_next.
35892         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35893         HAVE_ARPA_INET_H.
35894
35895 2008-04-29  Jim Meyering  <meyering@redhat.com>
35896
35897         * modules/mkdir (License): Re-license as LGPLv2+.
35898
35899 2008-04-29  Bruno Haible  <bruno@clisp.org>
35900
35901         * modules/rawmemchr (Maintainer): Set to Eric.
35902         * modules/strchrnul (Maintainer): Likewise.
35903
35904 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35905
35906         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35907         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35908
35909         * modules/arpa_inet (arpa/inet.h): Use them.
35910
35911 2008-04-28  Eric Blake  <ebb9@byu.net>
35912
35913         Test getndelim2.
35914         * modules/getndelim2-tests: New file.
35915         * tests/test-getndelim2.c: Likewise.
35916         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35917         stream.
35918         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35919
35920         * MODULES.html.sh: Document new module.
35921
35922 2008-04-20  Bruno Haible  <bruno@clisp.org>
35923
35924         * lib/c-stack.c (die): Use raise.
35925         * modules/c-stack (Depends-on): Add raise.
35926
35927 2008-04-28  Bruno Haible  <bruno@clisp.org>
35928
35929         Expect rpmatch to be declared.
35930         * lib/yesno.c (rpmatch): Remove declaration.
35931
35932         Declare rpmatch.
35933         * lib/stdlib.in.h (rpmatch): New declaration.
35934         * lib/rpmatch.c: Include <stdlib.h> first.
35935         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35936         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35938         HAVE_RPMATCH.
35939         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35941         (Include): Set to <stdlib.h>.
35942         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35943         HAVE_RPMATCH.
35944         * NEWS: Document the change.
35945
35946 2008-04-28  Bruno Haible  <bruno@clisp.org>
35947
35948         Change rpmatch to use nl_langinfo when appropriate.
35949         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35950         (N_): New macro.
35951         (localized_pattern): New function/macro.
35952         (try): Remove match, nomatch arguments. Copy the pattern into safe
35953         memory before caching it.
35954         (rpmatch): Use localized_pattern. Add translator comments.
35955         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35956         Suggested by Eric Blake.
35957         * modules/rpmatch (Depends-on): Add stdbool.
35958
35959 2008-04-28  Eric Blake  <ebb9@byu.net>
35960
35961         Add rawmemchr module, matching glibc.
35962         * modules/string (Makefile.am): New indicator.
35963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35964         * lib/string.in.h (rawmemchr): Declare when appropriate.
35965         * modules/rawmemchr: New file.
35966         * m4/rawmemchr.m4: Likewise.
35967         * lib/rawmemchr.c: Likewise.
35968         * modules/rawmemchr-tests: Likewise.
35969         * tests/test-rawmemchr.c: Likewise.
35970         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
35971         module.
35972         * modules/strchrnul (Depends-on): Add rawmemchr.
35973         * lib/strchrnul.c (strchrnul): Optimize a corner case.
35974
35975         Whitespace cleanup.
35976         * tests/test-strchrnul.c: Reindent.
35977         * lib/strchrnul.c: Likewise.
35978
35979         Optimize and test strchrnul.
35980         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
35981         * modules/strchrnul-tests: New file.
35982         * tests/test-strchrnul.c: Likewise.
35983
35984         Remove intprops dependency.
35985         * modules/memchr (Depends-on): Remove intprops.
35986         * modules/memrchr (Depends-on): Likewise.
35987         * modules/memchr2 (Depends-on): Likewise.
35988         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
35989         * lib/memrchr.c (__memrchr): Likewise.
35990         * lib/memrchr2.c (memchr2): Likewise.
35991         Reported by Simon Josefsson.
35992
35993 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35994
35995         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
35996         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35997
35998 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35999
36000         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
36001
36002         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
36003
36004         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
36005
36006         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
36007         declarations.
36008         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
36009
36010         * m4/inet_pton.m4: Don't check for header files.
36011
36012         * m4/inet_ntop.m4: Don't check for header files.
36013
36014 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36015
36016         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
36017         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
36018         trigger for cygwin).
36019         Reported by Bruno Haible  <bruno@clisp.org>.
36020
36021 2008-04-28  Bruno Haible  <bruno@clisp.org>
36022
36023         * doc/posix-functions/strdup.texi: Mention mingw problem.
36024
36025 2008-04-27  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/stat-time-tests (Depends-on): Add sleep.
36028         * tests/test-stat-time.c (force_unlink): New function.
36029         (cleanup): Use it.
36030         (test_mtime): Remove the ctime related tests.
36031         (test_ctime): New function, containing the ctime related tests.
36032         (main): Call test_ctime, except on native Windows platforms.
36033
36034 2008-04-27  Bruno Haible  <bruno@clisp.org>
36035
36036         * lib/rpmatch.c (rpmatch): Add some comments.
36037         Reported by James Youngman <jay@gnu.org>.
36038
36039 2008-04-27  Bruno Haible  <bruno@clisp.org>
36040
36041         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
36042         quiet NaNs.
36043
36044 2008-04-27  Bruno Haible  <bruno@clisp.org>
36045
36046         Make test-yesno.sh work on mingw.
36047         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
36048         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
36049         (main): Set stdin to binary mode.
36050         * modules/yesno-tests (Depends-on): Add binary-io.
36051
36052 2008-04-27  Bruno Haible  <bruno@clisp.org>
36053
36054         Fix 'isfinite' on x86, x86_64, ia64 platforms.
36055         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
36056         argument that lie outside the IEEE 854 domain.
36057         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
36058         (gl_ISFINITE): Use it.
36059         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
36060
36061 2008-04-27  Bruno Haible  <bruno@clisp.org>
36062
36063         Allow local renaming in config.h.
36064         * lib/memrchr.c (memrchr): Don't undefine outside libc.
36065
36066 2008-04-27  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/memchr.c (__memchr): Change type of 'i'.
36069         * lib/memchr2.c (memchr2): Likewise.
36070
36071 2008-04-26  Eric Blake  <ebb9@byu.net>
36072         and Bruno Haible  <bruno@clisp.org>
36073
36074         Optimize and test memrchr.
36075         * modules/memrchr (Depends-on): Add intprops.
36076         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
36077         * modules/memrchr-tests: New file.
36078         * tests/test-memrchr.c: New file.
36079
36080 2008-04-26  Bruno Haible  <bruno@clisp.org>
36081
36082         Add tentative support for DragonFly BSD.
36083         * lib/stdio-impl.h: Add macros for DragonFly BSD.
36084         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
36085         fp.
36086         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36087         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
36088         * lib/fpurge.c (fpurge): Likewise.
36089         * lib/freadable.c (freaadable): Likewise.
36090         * lib/freadahead.c (freadahead): Likewise.
36091         * lib/freading.c (freading): Likewise.
36092         * lib/freadptr.c (freadptr): Likewise.
36093         * lib/freadseek.c (freadptrinc): Likewise.
36094         * lib/fseeko.c (fseeko): Likewise.
36095         * lib/fseterr.c (fseterr): Likewise.
36096         * lib/fwritable.c (fwritable): Likewise.
36097         * lib/fwriting.c (fwriting): Likewise.
36098
36099 2008-04-26  Bruno Haible  <bruno@clisp.org>
36100
36101         * lib/stdio-impl.h: New file.
36102         * lib/fbufmode.c: Include stdio-impl.h.
36103         (fbufmode): Use fp_, remove redundant #defines.
36104         * lib/fflush.c: Include stdio-impl.h.
36105         (clear_ungetc_buffer): Remove redundant #defines.
36106         * lib/fpurge.c: Include stdio-impl.h.
36107         (fpurge): Remove redundant #defines.
36108         * lib/freadable.c: Include stdio-impl.h.
36109         (freadable): Remove redundant #defines.
36110         * lib/freadahead.c: Include stdio-impl.h.
36111         (freadahead): Remove redundant #defines.
36112         * lib/freading.c: Include stdio-impl.h.
36113         (freading): Remove redundant #defines.
36114         * lib/freadptr.c: Include stdio-impl.h.
36115         (freadptr): Remove redundant #defines.
36116         * lib/freadseek.c: Include stdio-impl.h.
36117         (freadptrinc): Remove redundant #defines.
36118         * lib/fseeko.c: Include stdio-impl.h.
36119         (rpl_fseeko): Remove redundant #defines.
36120         * lib/fseterr.c: Include stdio-impl.h.
36121         (fseterr): Remove redundant #defines.
36122         * lib/fwritable.c: Include stdio-impl.h.
36123         (fwritable: Remove redundant #defines.
36124         * lib/fwriting.c: Include stdio-impl.h.
36125         (fwriting): Remove redundant #defines.
36126         * modules/fbufmode (Files): Add lib/stdio-impl.h.
36127         * modules/fflush (Files): Likewise.
36128         * modules/fpurge (Files): Likewise.
36129         * modules/freadable (Files): Likewise.
36130         * modules/freadahead (Files): Likewise.
36131         * modules/freading (Files): Likewise.
36132         * modules/freadptr (Files): Likewise.
36133         * modules/freadseek (Files): Likewise.
36134         * modules/fseeko (Files): Likewise.
36135         * modules/fseterr (Files): Likewise.
36136         * modules/fwritable (Files): Likewise.
36137         * modules/fwriting (Files): Likewise.
36138
36139 2008-04-26  Bruno Haible  <bruno@clisp.org>
36140
36141         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36142         restore_seek_optimization, update_fpos_cache): New functions, extracted
36143         from rpl_fflush.
36144         (rpl_fflush): Use them.
36145         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
36146         (gl_REPLACE_FFLUSH): Use it.
36147
36148 2008-04-26  Bruno Haible  <bruno@clisp.org>
36149
36150         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
36151         on Solaris.
36152         * tests/test-xstrtoimax.sh: Likewise.
36153         * tests/test-xstrtoumax.sh: Likewise.
36154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36155
36156 2008-04-26  Bruno Haible  <bruno@clisp.org>
36157
36158         * modules/memchr-tests: New file.
36159         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
36160
36161 2008-04-26  Eric Blake  <ebb9@byu.net>
36162             Bruno Haible  <bruno@clisp.org>
36163
36164         * lib/memchr.c: Include intprops.h.
36165         (__memchr): Optimize parallel detection of matching bytes. Rename local
36166         variables. Add explanatory comments.
36167
36168 2008-04-26  Bruno Haible  <bruno@clisp.org>
36169
36170         Fix module 'memchr', broken since 2000-10-28.
36171         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
36172
36173 2008-04-26  Bruno Haible  <bruno@clisp.org>
36174
36175         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
36176         comments.
36177
36178 2008-04-25  Eric Blake  <ebb9@byu.net>
36179
36180         Use native fstatat on cygwin 1.7.0.
36181         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
36182         first.
36183
36184 2008-04-23  Eric Blake  <ebb9@byu.net>
36185
36186         Improve memchr2 performance.
36187         * lib/memchr2.c (memchr2): Further optimize parallel detection of
36188         NUL bytes.
36189         * modules/memchr2 (Depends-on): Use intprops.h.
36190
36191 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36192
36193         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
36194         an inline function instead of a CPP macro.  Patch by Ben Pfaff
36195         <blp@cs.stanford.edu>.
36196
36197 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36198
36199         * lib/arpa_inet.in.h: New file.
36200
36201         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
36202         (Makefile.am): Sed in substitute header file.
36203
36204         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
36205         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
36206
36207         * modules/inet_ntop (configure.ac): Use
36208         gl_ARPA_INET_MODULE_INDICATOR.
36209
36210         * modules/inet_pton (configure.ac): Use
36211         gl_ARPA_INET_MODULE_INDICATOR.
36212
36213 2008-04-22  Jim Meyering  <meyering@redhat.com>
36214
36215         * modules/verify (License): Re-license as LGPLv2+.
36216
36217 2008-04-22  Simon Josefsson  <simon@josefsson.org>
36218
36219         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
36220         parameter to void* as per POSIX standard (MinGW uses char*).
36221
36222 2008-04-21  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36225         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36226         Define to replacements if REPLACE_ISWCNTRL is 1.
36227         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
36228         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
36229         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
36230         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
36231         what it fixes.
36232         * doc/posix-functions/iswalpha.texi: Likewise.
36233         * doc/posix-functions/iswblank.texi: Likewise.
36234         * doc/posix-functions/iswcntrl.texi: Likewise.
36235         * doc/posix-functions/iswdigit.texi: Likewise.
36236         * doc/posix-functions/iswgraph.texi: Likewise.
36237         * doc/posix-functions/iswlower.texi: Likewise.
36238         * doc/posix-functions/iswprint.texi: Likewise.
36239         * doc/posix-functions/iswpunct.texi: Likewise.
36240         * doc/posix-functions/iswspace.texi: Likewise.
36241         * doc/posix-functions/iswupper.texi: Likewise.
36242         * doc/posix-functions/iswxdigit.texi: Likewise.
36243         Reported by Alain Guibert.
36244
36245 2008-04-21  Bruno Haible  <bruno@clisp.org>
36246
36247         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
36248         Patch by Alain Guibert.
36249
36250 2008-04-21  Bruno Haible  <bruno@clisp.org>
36251
36252         Fix test failures on mingw.
36253         * tests/test-xstrtol.c (print_no_progname): New function.
36254         (main): Install it in error_print_progname hook.
36255         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
36256         * tests/test-xstrtoimax.sh: Likewise.
36257         * tests/test-xstrtoumax.sh: Likewise.
36258
36259 2008-04-21  Bruno Haible  <bruno@clisp.org>
36260
36261         Fix test failure on mingw.
36262         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
36263
36264 2008-04-21  Bruno Haible  <bruno@clisp.org>
36265
36266         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
36267         Actually assign a value.
36268
36269 2008-04-20  Bruno Haible  <bruno@clisp.org>
36270
36271         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
36272         take 2.
36273         * lib/canonicalize.c (canonicalize_file_name): Elide if the
36274         'canonicalize-lgpl' module is also used.
36275         * lib/canonicalize-lgpl.c: Undo last change.
36276         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
36277
36278 2008-04-20  Bruno Haible  <bruno@clisp.org>
36279
36280         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
36281         config.h. Provide _mkdir based fallback for mingw.
36282         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
36283         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
36284         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
36285         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
36286         rather than defining mkdir in config.h.
36287         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
36288         (gl_SYS_STAT_H_DEFAULTS): New macro.
36289         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
36290         HAVE_IO_H any more.
36291         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
36292         HAVE_DECL_MKDIR and HAVE_IO_H.
36293
36294 2008-04-20  Bruno Haible  <bruno@clisp.org>
36295
36296         * lib/isapipe.c: Port to native Windows platforms.
36297
36298 2008-04-20  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
36301
36302 2008-04-21  Eric Blake  <ebb9@byu.net>
36303
36304         Work around preprocessors that don't handle UINTMAX_MAX.
36305         * lib/memchr2.c (memchr2): Avoid embedded #if.
36306         Reported by Alain Guibert, fix suggested by Bruno Haible.
36307
36308 2008-04-21  Simon Josefsson  <simon@josefsson.org>
36309
36310         * doc/posix-functions/strftime.texi (strftime): Explain better
36311         Windows incompatibility.  Suggested by Micah Cowan
36312         <micah@cowan.name>.
36313
36314 2008-04-20  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
36317         unistr/u8-mblen.
36318
36319 2008-04-20  Bruno Haible  <bruno@clisp.org>
36320
36321         Fix test failure on platforms with non-GNU iconv.
36322         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
36323         (U_TO_U8): Use it, rather than u16_to_u8.
36324         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
36325         units at the end of the input string.
36326         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
36327
36328 2008-04-20  Bruno Haible  <bruno@clisp.org>
36329
36330         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
36331         when the resulting length is 0.
36332         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
36333
36334 2008-04-20  Bruno Haible  <bruno@clisp.org>
36335
36336         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
36337         works.
36338         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
36339
36340 2008-04-20  Bruno Haible  <bruno@clisp.org>
36341
36342         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
36343         * modules/tsearch-tests (configure.ac): Test for initstate function.
36344
36345 2008-04-20  Bruno Haible  <bruno@clisp.org>
36346
36347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
36348         for nlink_t if missing.
36349         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
36350
36351 2008-04-19  Bruno Haible  <bruno@clisp.org>
36352
36353         Work around snprintf bug on Linux libc5.
36354         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
36355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36356         gl_SNPRINTF_SIZE1.
36357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36358         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
36359         that test failed.
36360         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
36361         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
36362         * modules/snprintf (Files): Add m4/printf.m4.
36363         * modules/vsnprintf (Files): Likewise.
36364         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
36365         * doc/posix-functions/vsnprintf.texi: Likewise.
36366
36367 2008-04-19  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
36370         from 0.0058 to less than 10^-7.
36371
36372 2008-04-19  Bruno Haible  <bruno@clisp.org>
36373
36374         Fix rounding when a precision is given.
36375         * lib/vasnprintf.c (is_borderline): New function.
36376         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
36377         9...9x.
36378         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
36379         %e, %g.
36380         * tests/test-vasprintf-posix.c (test_function): Likewise.
36381         * tests/test-snprintf-posix.h (test_function): Likewise.
36382         * tests/test-sprintf-posix.h (test_function): Likewise.
36383         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
36384         * tests/test-printf-posix.h (test_function): Likewise.
36385         * tests/test-printf-posix.output: Update.
36386         Reported by John Darrington <john@darrington.wattle.id.au> via
36387         Ben Pfaff <blp@cs.stanford.edu>.
36388
36389 2008-04-18  Simon Josefsson  <simon@josefsson.org>
36390
36391         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
36392         Suggested by Bruno Haible <bruno@clisp.org>.
36393
36394 2008-04-17  Bruno Haible  <bruno@clisp.org>
36395
36396         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
36397         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
36398         implementation.
36399         Patch by Bruce Merry <bmerry@gmail.com>.
36400
36401 2008-04-17  Simon Josefsson  <simon@josefsson.org>
36402
36403         * doc/posix-functions/strftime.texi (strftime): Mention that %e
36404         doesn't work under Windows.
36405
36406 2008-04-16  Bruno Haible  <bruno@clisp.org>
36407
36408         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
36409         New macros.
36410         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
36411         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
36412         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
36413         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
36414         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
36415         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
36416         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
36417         macros.
36418         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
36419         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
36420         Northern Sotho, Uighur.
36421
36422 2008-04-16  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
36425         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
36426         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
36427         Reported by Daniel Bergström <daniel@octocode.com>.
36428
36429 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
36430             Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
36433         function.
36434         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
36435         New functions, mostly extracted from gl_locale_name_default.
36436         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
36437
36438 2008-04-16  Eric Blake  <ebb9@byu.net>
36439
36440         Adjust strtod detection to catch glibc 2.7 bug.
36441         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
36442         Reported by John Gatewood Ham.
36443
36444 2008-04-16  Bruno Haible  <bruno@clisp.org>
36445
36446         Add tentative support for Linux libc5.
36447         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
36448         * lib/fpurge.c (fpurge): Likewise.
36449         * lib/freadable.c (freadable): Likewise.
36450         * lib/freadahead.c (freadahead): Likewise.
36451         * lib/freading.c (freading): Likewise.
36452         * lib/freadptr.c (freadptr): Likewise.
36453         * lib/freadseek.c (freadptrinc): Likewise.
36454         * lib/fseeko.c (rpl_fseeko): Likewise.
36455         * lib/fseterr.c (fseterr): Likewise.
36456         * lib/fwritable.c (fwritable): Likewise.
36457         * lib/fwriting.c (fwriting): Likewise.
36458         Reported by Alain Guibert <alguibert+bts@free.fr>.
36459
36460 2008-04-15  Bruno Haible  <bruno@clisp.org>
36461
36462         * modules/mathl (configure.ac): Define module indicator.
36463
36464 2008-04-15  Bruno Haible  <bruno@clisp.org>
36465
36466         * lib/logl.c (logl): Remove unused variables.
36467
36468 2008-04-15  Bruno Haible  <bruno@clisp.org>
36469
36470         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
36471         fails.
36472
36473 2008-04-15  Bruno Haible  <bruno@clisp.org>
36474
36475         * lib/trim.c (trim2): Fix argument of isspace() macro.
36476
36477 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
36478
36479         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
36480         to 0.
36481         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
36482
36483 2008-04-14  Bruno Haible  <bruno@clisp.org>
36484
36485         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
36486         AC_LANG_PROGRAM argument.
36487         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
36488         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
36489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36490         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36491         * m4/math_h.m4 (gl_MATH_H): Likewise.
36492         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
36493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36494         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36495         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
36496         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36497         * m4/regex.m4 (gl_REGEX): Likewise.
36498         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
36499         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
36500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36501         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
36502         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36503         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36506
36507 2008-04-14  Jim Meyering  <meyering@redhat.com>
36508
36509         test-strtod: fix typos: s/abs/fabs/
36510         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
36511
36512 2008-04-13  Bruno Haible  <bruno@clisp.org>
36513
36514         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
36515         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
36516         module is also used and while not building the reloc-wrapper.
36517
36518 2008-04-13  Bruno Haible  <bruno@clisp.org>
36519
36520         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
36521
36522 2008-04-13  Bruno Haible  <bruno@clisp.org>
36523
36524         Fix AIX compilation failure introduced on 2008-04-02.
36525         * tests/test-frexp.c (exp): Undefine before redefining.
36526         * tests/test-frexpl.c (exp): Likewise.
36527
36528 2008-04-13  Bruno Haible  <bruno@clisp.org>
36529
36530         Work around a HP-UX stdio bug.
36531         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
36532         * tests/test-ftello.c (main): Likewise.
36533         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
36534         * doc/posix-functions/ftello.texi: Likewise.
36535
36536 2008-04-13  Bruno Haible  <bruno@clisp.org>
36537
36538         Make test-signbit pass on HP-UX/hppa.
36539         * tests/test-signbit.c (minus_zerol): New variable.
36540         (test_signbitl): Use it.
36541
36542 2008-04-13  Bruno Haible  <bruno@clisp.org>
36543
36544         Make truncl work on OSF/1 4.0.
36545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
36546         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36547         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
36549         HAVE_DECL_TRUNCL.
36550         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
36551         HAVE_DECL_TRUNCL.
36552         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
36553
36554 2008-04-13  Bruno Haible  <bruno@clisp.org>
36555
36556         * lib/unictype.h: Remove trailing comma from enumeration definitions.
36557
36558 2008-04-13  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
36561         expression, so as to avoid HP-UX 11 cc compiler bug.
36562
36563 2008-04-13  Bruno Haible  <bruno@clisp.org>
36564
36565         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
36566
36567 2008-04-13  Bruno Haible  <bruno@clisp.org>
36568
36569         * lib/git-merge-changelog.c: Remove empty declaration outside of
36570         functions.
36571
36572 2008-04-13  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
36575
36576 2008-04-13  Bruno Haible  <bruno@clisp.org>
36577
36578         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
36579         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
36580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
36581         also if it exists but lacks definitions of the SHUT_* macros.
36582         * modules/sys_socket (Description): Update.
36583         Reported by Elbert Pol <e.pol@chello.nl>.
36584
36585 2008-04-13  Bruno Haible  <bruno@clisp.org>
36586
36587         * lib/localcharset.c (OS2): Don't redefine if already defined.
36588         Reported by Elbert Pol <e.pol@chello.nl>.
36589
36590 2008-04-13  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/binary-io.h [__EMX__]: Include <io.h>.
36593         Reported by Elbert Pol <e.pol@chello.nl>.
36594
36595 2008-04-12  Bruno Haible  <bruno@clisp.org>
36596
36597         * lib/fpucw.h: Enable the definitions also for x86_64.
36598         Needed for NetBSD/x86_64.
36599         Reported by Thomas Klausner <tk@giga.or.at>.
36600
36601 2008-04-12  Bruno Haible  <bruno@clisp.org>
36602
36603         * tests/test-strtod.c: Include isnand.h.
36604         (main): Use isnand instead of isnan.
36605         Reported by Jim Meyering.
36606
36607 2008-04-12  Bruno Haible  <bruno@clisp.org>
36608
36609         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
36610         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36611
36612 2008-04-12  Jim Meyering  <meyering@redhat.com>
36613
36614         * m4/math_h.m4 (gl_MATH_H): Fix typos.
36615
36616 2008-04-12  Bruno Haible  <bruno@clisp.org>
36617
36618         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
36619         Reported by Elbert Pol <e.pol@chello.nl>.
36620
36621 2008-04-12  Eric Blake  <ebb9@byu.net>
36622
36623         Work around Solaris 10 math.h bug.
36624         * m4/math_h.m4 (gl_MATH_H): Check for bug.
36625         (gl_MATH_H_DEFAULTS): Set up default.
36626         * modules/math (Makefile.am): Replace new indicators.
36627         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
36628         * tests/test-math.c (main): Test this.
36629         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
36630         * doc/posix-headers/math.texi (math.h): Mention bug.
36631         Reported by Nelson H. F. Beebe and Jim Meyering.
36632
36633 2008-04-11  Bruno Haible  <bruno@clisp.org>
36634
36635         Adapt to future versions of Apple GCC.
36636         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
36637         Reported by Peter O'Gorman <peter@pogma.com>.
36638
36639 2008-04-11  Bruno Haible  <bruno@clisp.org>
36640
36641         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
36642
36643 2008-04-11  Bruno Haible  <bruno@clisp.org>
36644
36645         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
36646
36647         * modules/getaddrinfo-tests (Makefile.am): Define
36648         test_getaddrinfo_LDADD.
36649
36650 2008-04-11  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
36653         (init): Fix syntax error.
36654         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
36655         is declared.
36656
36657 2008-04-11  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
36660         * modules/glob (Depends-on): Add stdbool.
36661
36662 2008-04-11  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/trim.c: Include <string.h>.
36665
36666 2008-04-11  Eric Blake  <ebb9@byu.net>
36667
36668         Avoid compile failure on OS/2.
36669         * lib/regex_internal.h (internal_function): Disable optimization
36670         on OS/2 (__EMX__), where it caused compiler error.
36671         Reported by Elbert Pol.
36672
36673 2008-04-11  Bruno Haible  <bruno@clisp.org>
36674
36675         Flush the standard error stream before aborting. Needed on mingw.
36676         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
36677         * tests/test-array_list.c (ASSERT): Likewise.
36678         * tests/test-array_oset.c (ASSERT): Likewise.
36679         * tests/test-avltree_list.c (ASSERT): Likewise.
36680         * tests/test-avltree_oset.c (ASSERT): Likewise.
36681         * tests/test-avltreehash_list.c (ASSERT): Likewise.
36682         * tests/test-binary-io.c (ASSERT): Likewise.
36683         * tests/test-byteswap.c (ASSERT): Likewise.
36684         * tests/test-c-ctype.c (ASSERT): Likewise.
36685         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
36686         * tests/test-c-strcasestr.c (ASSERT): Likewise.
36687         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
36688         * tests/test-c-strstr.c (ASSERT): Likewise.
36689         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
36690         * tests/test-canonicalize.c (ASSERT): Likewise.
36691         * tests/test-carray_list.c (ASSERT): Likewise.
36692         * tests/test-ceilf1.c (ASSERT): Likewise.
36693         * tests/test-ceilf2.c (ASSERT): Likewise.
36694         * tests/test-ceill.c (ASSERT): Likewise.
36695         * tests/test-count-one-bits.c (ASSERT): Likewise.
36696         * tests/test-fbufmode.c (ASSERT): Likewise.
36697         * tests/test-fflush2.c (ASSERT): Likewise.
36698         * tests/test-floorf1.c (ASSERT): Likewise.
36699         * tests/test-floorf2.c (ASSERT): Likewise.
36700         * tests/test-floorl.c (ASSERT): Likewise.
36701         * tests/test-fopen.c (ASSERT): Likewise.
36702         * tests/test-fpending.c (ASSERT): Likewise.
36703         * tests/test-fprintf-posix.c (ASSERT): Likewise.
36704         * tests/test-fpurge.c (ASSERT): Likewise.
36705         * tests/test-freadable.c (ASSERT): Likewise.
36706         * tests/test-freadahead.c (ASSERT): Likewise.
36707         * tests/test-freading.c (ASSERT): Likewise.
36708         * tests/test-freadptr.c (ASSERT): Likewise.
36709         * tests/test-freadptr2.c (ASSERT): Likewise.
36710         * tests/test-freadseek.c (ASSERT): Likewise.
36711         * tests/test-freopen.c (ASSERT): Likewise.
36712         * tests/test-frexp.c (ASSERT): Likewise.
36713         * tests/test-frexpl.c (ASSERT): Likewise.
36714         * tests/test-fseek.c (ASSERT): Likewise.
36715         * tests/test-fseeko.c (ASSERT): Likewise.
36716         * tests/test-fstrcmp.c (ASSERT): Likewise.
36717         * tests/test-ftell.c (ASSERT): Likewise.
36718         * tests/test-ftello.c (ASSERT): Likewise.
36719         * tests/test-func.c (ASSERT): Likewise.
36720         * tests/test-fwritable.c (ASSERT): Likewise.
36721         * tests/test-fwriting.c (ASSERT): Likewise.
36722         * tests/test-getdelim.c (ASSERT): Likewise.
36723         * tests/test-getline.c (ASSERT): Likewise.
36724         * tests/test-i-ring.c (ASSERT): Likewise.
36725         * tests/test-iconv-utf.c (ASSERT): Likewise.
36726         * tests/test-iconv.c (ASSERT): Likewise.
36727         * tests/test-isfinite.c (ASSERT): Likewise.
36728         * tests/test-isnand.c (ASSERT): Likewise.
36729         * tests/test-isnanf.c (ASSERT): Likewise.
36730         * tests/test-isnanl.h (ASSERT): Likewise.
36731         * tests/test-ldexpl.c (ASSERT): Likewise.
36732         * tests/test-linked_list.c (ASSERT): Likewise.
36733         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36734         * tests/test-localename.c (ASSERT): Likewise.
36735         * tests/test-lseek.c (ASSERT): Likewise.
36736         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36737         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36738         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36739         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36740         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36741         * tests/test-mbschr.c (ASSERT): Likewise.
36742         * tests/test-mbscspn.c (ASSERT): Likewise.
36743         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36744         * tests/test-mbspbrk.c (ASSERT): Likewise.
36745         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36746         * tests/test-mbsrchr.c (ASSERT): Likewise.
36747         * tests/test-mbsspn.c (ASSERT): Likewise.
36748         * tests/test-mbsstr1.c (ASSERT): Likewise.
36749         * tests/test-mbsstr2.c (ASSERT): Likewise.
36750         * tests/test-mbsstr3.c (ASSERT): Likewise.
36751         * tests/test-memchr2.c (ASSERT): Likewise.
36752         * tests/test-memmem.c (ASSERT): Likewise.
36753         * tests/test-open.c (ASSERT): Likewise.
36754         * tests/test-printf-frexp.c (ASSERT): Likewise.
36755         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36756         * tests/test-printf-posix.c (ASSERT): Likewise.
36757         * tests/test-quotearg.c (ASSERT): Likewise.
36758         * tests/test-rbtree_list.c (ASSERT): Likewise.
36759         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36760         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36761         * tests/test-round1.c (ASSERT): Likewise.
36762         * tests/test-roundf1.c (ASSERT): Likewise.
36763         * tests/test-roundl.c (ASSERT): Likewise.
36764         * tests/test-signbit.c (ASSERT): Likewise.
36765         * tests/test-sleep.c (ASSERT): Likewise.
36766         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36767         * tests/test-snprintf.c (ASSERT): Likewise.
36768         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36769         * tests/test-stat-time.c (ASSERT): Likewise.
36770         * tests/test-strcasestr.c (ASSERT): Likewise.
36771         * tests/test-strerror.c (ASSERT): Likewise.
36772         * tests/test-striconv.c (ASSERT): Likewise.
36773         * tests/test-striconveh.c (ASSERT): Likewise.
36774         * tests/test-striconveha.c (ASSERT): Likewise.
36775         * tests/test-strsignal.c (ASSERT): Likewise.
36776         * tests/test-strstr.c (ASSERT): Likewise.
36777         * tests/test-strtod.c (ASSERT): Likewise.
36778         * tests/test-trunc1.c (ASSERT): Likewise.
36779         * tests/test-trunc2.c (ASSERT): Likewise.
36780         * tests/test-truncf1.c (ASSERT): Likewise.
36781         * tests/test-truncf2.c (ASSERT): Likewise.
36782         * tests/test-truncl.c (ASSERT): Likewise.
36783         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36784         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36785         * tests/test-vasnprintf.c (ASSERT): Likewise.
36786         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36787         * tests/test-vasprintf.c (ASSERT): Likewise.
36788         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36789         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36790         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36791         * tests/test-vsnprintf.c (ASSERT): Likewise.
36792         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36793         * tests/test-wcwidth.c (ASSERT): Likewise.
36794         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36795         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36796         * tests/test-xvasprintf.c (ASSERT): Likewise.
36797         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36798         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36799         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36800         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36801         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36802         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36803         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36804         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36805         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36806         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36807         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36808         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36809         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36810         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36811         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36812         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36813         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36814         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36815         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36816         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36817         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36818         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36819         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36820         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36821         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36822         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36823         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36824         * tests/unictype/test-combining.c (ASSERT): Likewise.
36825         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36826         * tests/unictype/test-digit.c (ASSERT): Likewise.
36827         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36828         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36829         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36830         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36831         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36832         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36833         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36834         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36835         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36836         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36837         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36838         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36839         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36840         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36841         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36842         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36843         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36844         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36845         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36846         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36847         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36848         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36849         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36850         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36851         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36852         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36853         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36854         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36855         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36856         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36857         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36858         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36859         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36860         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36861         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36862         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36863         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36864         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36865         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36866         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36867         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36868         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36869         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36870         Reported by Eric Blake.
36871
36872 2008-04-11  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/wchar.in.h: Tweak comment.
36875
36876 2008-04-11  Bruno Haible  <bruno@clisp.org>
36877
36878         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36879         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36880         gl_COMMON.
36881         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36882
36883 2008-04-11  Bruno Haible  <bruno@clisp.org>
36884
36885         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36886
36887 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36888
36889         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36890         of attempting to use non-existing /dev/*random.  Based on patch
36891         from Adam Strzelecki <ono@java.pl> in
36892         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36893
36894 2008-04-08  Bruno Haible  <bruno@clisp.org>
36895
36896         Add tentative support for emx+gcc.
36897         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36898         * lib/fpurge.c (fpurge): Likewise.
36899         * lib/freadable.c (freadable): Likewise.
36900         * lib/freadahead.c (freadahead): Likewise.
36901         * lib/freading.c (freading): Likewise.
36902         * lib/freadptr.c (freadptr): Likewise.
36903         * lib/freadseek.c (freadptrinc): Likewise.
36904         * lib/fseeko.c (rpl_fseeko): Likewise.
36905         * lib/fseterr.c (fseterr): Likewise.
36906         * lib/fwritable.c (fwritable): Likewise.
36907         * lib/fwriting.c (fwriting): Likewise.
36908         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36909
36910 2008-04-09  Eric Blake  <ebb9@byu.net>
36911
36912         Avoid some autoconf warnings.
36913         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36914         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36915         * m4/afs.m4 (gl_AFS): Likewise.
36916         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36917         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36918         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36919         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36920         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36921         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36922         (AC_CHECK_DECLS_ONCE): Likewise.
36923         Rename file...
36924         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36925         gnulib-tool requires autoconf 2.59 or better.
36926         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36927
36928 2008-04-08  Eric Blake  <ebb9@byu.net>
36929
36930         Use 'git describe --match' if present (added in git 1.5.5).
36931         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36932         if possible.
36933
36934 2008-04-08  Bruno Haible  <bruno@clisp.org>
36935
36936         Add tentative support for OpenServer.
36937         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36938         _ptr, _cnt.
36939         * lib/fpurge.c (fpurge): Likewise.
36940         * lib/freadable.c (freadable): Likewise.
36941         * lib/freadahead.c (freadahead): Likewise.
36942         * lib/freading.c (freading): Likewise.
36943         * lib/freadptr.c (freadptr): Likewise.
36944         * lib/freadseek.c (freadptrinc): Likewise.
36945         * lib/fseeko.c (rpl_fseeko): Likewise.
36946         * lib/fseterr.c (fseterr): Likewise.
36947         * lib/fwritable.c (fwritable): Likewise.
36948         * lib/fwriting.c (fwriting): Likewise.
36949         Reported by Roger Cornelius <rac@tenzing.org> and
36950         Brian K. White <brian@aljex.com>.
36951
36952 2008-04-06  Jim Meyering  <meyering@redhat.com>
36953
36954         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36955
36956 2008-04-06  Bruno Haible  <bruno@clisp.org>
36957
36958         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36959         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36960         * tests/test-printf-posix.sh: Likewise.
36961         * tests/test-vfprintf-posix.sh: Likewise.
36962         * tests/test-vprintf-posix.sh: Likewise.
36963         * tests/test-xprintf-posix.sh: Likewise.
36964
36965 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36966
36967         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
36968         hide error from 'ls', needed on OS/2.
36969         Report by Elbert Pol <elbert.pol@gmail.com>.
36970
36971 2008-04-04  Eric Blake  <ebb9@byu.net>
36972
36973         Make test-fseeko.c failures meaningful.
36974         * tests/test-fseeko.c: Print line number on failure.
36975         * tests/test-fseek.c: Likewise.
36976         Reported by Nelson H. F. Beebe.
36977
36978         Improve strtod bug detection check.
36979         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
36980         required for Solaris 10.
36981         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
36982
36983 2008-04-04  Bruno Haible  <bruno@clisp.org>
36984
36985         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
36986         by m4/setenv.m4.
36987
36988 2008-04-03  Eric Blake  <ebb9@byu.net>
36989
36990         Ensure sane .version contents.
36991         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
36992         version string.
36993         * build-aux/git-version-gen: Improve documentation.
36994
36995         Make GNU make output nicer.
36996         * top/GNUmakefile [!_have-Makefile]: Add dependency on
36997         MAKECMDGOALS to enforce message for all command line targets.  Set
36998         srcdir for use in maint.mk.
36999
37000         Another maintainer tweak.
37001         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
37002         a target that regenerates version.
37003
37004 2008-04-03  Jim Meyering  <meyering@redhat.com>
37005
37006         vc-list-files: don't cause coreutils "make po-check" failure
37007         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
37008
37009 2008-04-03  Eric Blake  <ebb9@byu.net>
37010
37011         Allow VPATH usage of vc-list-files.
37012         * build-aux/vc-list-files (scriptversion): Add timestamp.
37013         (options): Add --help, --version, -C.
37014         (CVS): Support installed cvsu.
37015
37016 2008-04-02  Bruno Haible  <bruno@clisp.org>
37017
37018         Avoid some "statement with no effect" warnings from gcc.
37019         * tests/test-wctype.c (main): Explicitly ignore unused values.
37020         Reported by Jim Meyering.
37021
37022 2008-04-02  Jim Meyering  <meyering@redhat.com>
37023
37024         Avoid some warnings from "gcc -Wshadow".
37025         * tests/test-frexp.c (exp): Define to a different identifier.
37026         * tests/test-frexpl.c (exp): Likewise.
37027
37028 2008-04-03  Jim Meyering  <meyering@redhat.com>
37029
37030         bootstrap: remove dangling *.[ch] symlinks from lib
37031         * build-aux/bootstrap [dangling symlink removal]: Move find's
37032         -depth option to precede all others, to avoid a warning.
37033         Remove *.[ch] files too, and from "$source_base" (usually lib/).
37034
37035 2008-04-02  Bruno Haible  <bruno@clisp.org>
37036
37037         Avoid some warnings from "gcc -Wshadow".
37038         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
37039         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
37040         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
37041         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
37042         Reported by Jim Meyering.
37043
37044 2008-04-01  Bruno Haible  <bruno@clisp.org>
37045
37046         Fix test to work on IRIX 6.5 with cc.
37047         * tests/test-math.c (numeric_equal): New function.
37048         (main): Use it.
37049
37050 2008-04-01  Bruno Haible  <bruno@clisp.org>
37051
37052         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
37053
37054 2008-04-01  Bruno Haible  <bruno@clisp.org>
37055
37056         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
37057         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37058         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
37059         (Depends-on): Remove math.
37060
37061         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
37062         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37063         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
37064         (Depends-on): Remove math.
37065
37066         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
37067         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37068         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
37069         (Depends-on): Remove math.
37070         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
37071         (Depends-on): Remove math.
37072
37073         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
37074         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37075         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
37076         (Depends-on): Remove math.
37077         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
37078         (Depends-on): Remove math.
37079
37080         * tests/test-round1.c: Include nan.h.
37081         (main): Use NaNd instead of NAN.
37082         * modules/round-tests (Files): Add tests/nan.h.
37083
37084         * tests/test-trunc1.c: Include nan.h.
37085         (main): Use NaNd instead of NAN.
37086         * modules/trunc-tests (Files): Add tests/nan.h.
37087
37088         * tests/test-roundf1.c: Include nan.h.
37089         (main): Use NaNf instead of NAN.
37090         * modules/roundf-tests (Files): Add tests/nan.h.
37091
37092         * tests/test-truncf1.c: Include nan.h.
37093         (main): Use NaNf instead of NAN.
37094         * modules/truncf-tests (Files): Add tests/nan.h.
37095
37096         * tests/test-ceilf1.c: Include nan.h.
37097         (main): Use NaNf instead of NAN.
37098         * modules/ceilf-tests (Files): Add tests/nan.h.
37099
37100         * tests/test-floorf1.c: Include nan.h.
37101         (main): Use NaNf instead of NAN.
37102         * modules/floorf-tests (Files): Add tests/nan.h.
37103
37104         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
37105         (main): Use NaNf instead of NAN.
37106         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
37107
37108         * tests/test-isnand.c: Include nan.h instead of <math.h>.
37109         (main): Use NaNd instead of NAN.
37110         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
37111
37112         * tests/test-frexp.c: Include nan.h.
37113         (main): Use NaNd instead of NAN.
37114         * modules/frexp-tests (Files): Add tests/nan.h.
37115
37116         * lib/isnan.c: Don't include <math.h>.
37117         (FUNC): Don't use NAN macro.
37118         * modules/isnand-nolibm (Depends-on): Remove math.
37119         * modules/isnanf-nolibm (Depends-on): Remove math.
37120         * modules/isnanl (Depends-on): Remove math.
37121         * modules/isnanl-nolibm (Depends-on): Remove math.
37122
37123         * tests/nan.h: New file.
37124
37125 2008-04-01  Eric Blake  <ebb9@byu.net>
37126
37127         Fix typos.
37128         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
37129         values to be the right type.
37130
37131         For now, cater to gnulib strtod inaccuracies.
37132         * tests/test-strtod.c (main): Allow 1-ulp error on expected
37133         fractional results.  While not as nice from a QoI perspective, it
37134         is a quicker patch than correctly implementing decimal to binary
37135         rounding.
37136
37137 2008-03-31  Eric Blake  <ebb9@byu.net>
37138
37139         Guarantee a definition of NAN.
37140         * lib/math.in.h (NAN): Define if missing.
37141         * tests/test-math.c (main): Test it.
37142         * doc/posix-headers/math.texi (math.h): Document this.
37143         * lib/isnan.c (rpl_isnand): Use it.
37144         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
37145         * tests/test-floorf1.c (NaN): Likewise.
37146         * tests/test-frexp.c (NaN): Likewise.
37147         * tests/test-isnand.c (NaN): Likewise.
37148         * tests/test-isnanf.c (NaN): Likewise.
37149         * tests/test-round1.c (NaN): Likewise.
37150         * tests/test-roundf1.c (NaN): Likewise.
37151         * tests/test-snprintf-posix.h (NaN): Likewise.
37152         * tests/test-sprintf-posix.h (NaN): Likewise.
37153         * tests/test-trunc1.c (NaN): Likewise.
37154         * tests/test-truncf1.c (NaN): Likewise.
37155         * tests/test-vasnprintf-posix.c (NaN): Likewise.
37156         * tests/test-vasprintf-posix.c (NaN): Likewise.
37157         * modules/isnand-nolibm (Depends-on): Add math.
37158         * modules/isnanf-nolibm (Depends-on): Likewise.
37159         * modules/isnanl (Depends-on): Likewise.
37160         * modules/isnanl-nolibm (Depends-on): Likewise.
37161         * modules/snprintf-posix-tests (Depends-on): Likewise.
37162         * modules/sprintf-posix-tests (Depends-on): Likewise.
37163         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
37164         * modules/vsprintf-posix-tests (Depends-on): Likewise.
37165         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
37166         * modules/vasprintf-posix-tests (Depends-on): Likewise.
37167
37168 2008-03-31  Bruno Haible  <bruno@clisp.org>
37169
37170         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
37171         * doc/posix-functions/strtod.texi: Likewise.
37172
37173 2008-03-31  Bruno Haible  <bruno@clisp.org>
37174
37175         * tests/test-strtod.c (main): Don't use C99 syntax.
37176
37177 2008-03-31  Bruno Haible  <bruno@clisp.org>
37178
37179         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
37180         Reported by Eric Blake.
37181
37182 2008-03-31  Jim Meyering  <meyering@redhat.com>
37183
37184         Don't compare actual signbit return values.
37185         * tests/test-strtod.c (main): Rather, compare only their
37186         zero/non-zero nature.
37187
37188 2008-03-31  Eric Blake  <ebb9@byu.net>
37189
37190         More strtod documentation.
37191         * doc/posix-functions/strtod.texi (strtod): Interpret more test
37192         failures as distinct bugs.
37193
37194 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37195
37196         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
37197         Problem reported by Erik Benada in
37198         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
37199
37200 2008-03-30  Bruno Haible  <bruno@clisp.org>
37201
37202         * tests/test-strtod.c: Add comments about which assertion fails on which
37203         platform.
37204         * doc/posix-functions/strtod.texi: Add info about many more platforms.
37205
37206 2008-03-30  Eric Blake  <ebb9@byu.net>
37207
37208         Test signbit behavior on zeros.
37209         * tests/test-signbit.c (test_signbitf): Add tests for zero.
37210         (test_signbitd, test_signbitl): Likewise.
37211
37212         More strtod touchups.
37213         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
37214         sign of negative underflow, for now.  Use .5, not .1.
37215         * doc/posix-functions/strtod.texi (strtod): Mention these
37216         limitations.
37217         Reported by Jim Meyering.
37218
37219 2008-03-30  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
37222         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
37223
37224 2008-03-30  Bruno Haible  <bruno@clisp.org>
37225
37226         Avoid failure when attempting to return empty iconv results on some
37227         platforms.
37228         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
37229         allocation, don't report ENOMEM when the resulting string is empty.
37230
37231 2008-03-30  Bruno Haible  <bruno@clisp.org>
37232
37233         Fix buffer overrun.
37234         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
37235         Don't consider the width for tmp_length. Check count against tmp_length
37236         before doing the padding. Ensure enough allocation during padding.
37237
37238 2008-03-30  Eric Blake  <ebb9@byu.net>
37239
37240         strtod touchups.
37241         * lib/strtod.c (strtod): Avoid compiler warnings.
37242         Reported by Jim Meyering.
37243
37244 2008-03-30  Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
37247         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
37248         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
37249         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
37250         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
37251         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
37252         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
37253         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
37254
37255         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
37256         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
37257         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
37258         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
37259         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
37260         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
37261         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
37262         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
37263
37264         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
37265         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
37266         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
37267         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
37268         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
37269         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
37270         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
37271         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
37272
37273         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
37274         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
37275
37276         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
37277         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
37278
37279         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
37280         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
37281
37282         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
37283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
37284         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
37285
37286         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
37287         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
37288         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
37289
37290         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
37291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
37292         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
37293
37294         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
37295         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
37296         * modules/vasprintf (Depends-on): Add EOVERFLOW.
37297
37298         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
37299         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
37300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
37301         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
37302         (Depends-on): Add EOVERFLOW.
37303         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
37304         (Depends-on): Add EOVERFLOW.
37305         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37306         (Depends-on): Add EOVERFLOW.
37307         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37308         (Depends-on): Add EOVERFLOW.
37309         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37310         (Depends-on): Add EOVERFLOW.
37311         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37312         (Depends-on): Add EOVERFLOW.
37313         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37314         (Depends-on): Add EOVERFLOW.
37315         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37316         (Depends-on): Add EOVERFLOW.
37317
37318         * lib/sprintf.c (EOVERFLOW): Remove fallback.
37319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
37320         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
37321
37322         * lib/snprintf.c (EOVERFLOW): Remove fallback.
37323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
37324         * modules/snprintf (Depends-on): Add EOVERFLOW.
37325
37326         * lib/poll.c (EOVERFLOW): Remove fallback.
37327         * modules/poll (Depends-on): Add EOVERFLOW.
37328
37329         * lib/getugroups.c (EOVERFLOW): Remove fallback.
37330         * modules/getugroups (Depends-on): Add EOVERFLOW.
37331
37332         * lib/getdelim.c (EOVERFLOW): Remove fallback.
37333         * modules/getdelim (Depends-on): Add EOVERFLOW.
37334
37335         * lib/ftell.c (EOVERFLOW): Remove fallback.
37336         * modules/ftell (Depends-on): Add EOVERFLOW.
37337
37338         * lib/fprintf.c (EOVERFLOW): Remove fallback.
37339         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
37340         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
37341
37342         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
37343
37344         * modules/EOVERFLOW-tests: New file.
37345         * tests/test-EOVERFLOW.c: New file.
37346
37347         * modules/EOVERFLOW: New file.
37348         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
37349
37350 2008-03-30  Bruno Haible  <bruno@clisp.org>
37351
37352         Fix bug introduced on 2007-06-10.
37353         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
37354         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
37355
37356 2008-03-30  Bruno Haible  <bruno@clisp.org>
37357
37358         Improve freadseek's efficiency after ungetc.
37359         * lib/freadseek.c: Include freadahead.h.
37360         (freadptrinc): New function, extracted from freadseek.
37361         (freadseek): Use it in a loop. Use freadahead to determine the number
37362         of loop iterations.
37363         * modules/freadseek (Depends-on): Add freadahead.
37364         (configure.ac): Require AC_C_INLINE.
37365
37366 2008-03-30  Bruno Haible  <bruno@clisp.org>
37367
37368         * lib/freadseek.c (freadseek): Don't ignore the return value of
37369         freadptr.
37370
37371 2008-03-29  Eric Blake  <ebb9@byu.net>
37372
37373         Add hex float support.
37374         * modules/strtod (Depends-on): Add c-ctype.
37375         (Link): Mention POW_LIB.
37376         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
37377         whitespace between 'e' and exponent.
37378         * tests/test-strtod.c (main): Enable hex float tests.
37379         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
37380         now provides.
37381
37382         Document various strtod bugs, with some fixes.
37383         * doc/posix-functions/strtod.texi (strtod): Document bugs with
37384         "-0x", "inf", "nan", and hex constants.
37385         * doc/posix-functions/atof.texi (atof): Likewise.
37386         * modules/stdlib (Makefile.am): Support strtod.
37387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37388         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
37389         detect additional strtod bugs.
37390         * lib/stdlib.in.h (rpl_strtod): Add declarations.
37391         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
37392         bool where appropriate.  Parse 'inf' and 'nan'.
37393         * tests/test-strtod.c: New file.
37394         * modules/strtod (Depends-on): Add stdbool, stdlib.
37395         (configure.ac): Turn on module indicator.
37396         * modules/strtod-tests: New module.
37397
37398 2008-03-29  Eric Blake  <ebb9@byu.net>
37399
37400         Fix ftell on mingw.
37401         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
37402         * modules/ftell-tests (Depends-on): Add binary-io.
37403         * modules/ftello-tests (Depends-on): Likewise.
37404         * tests/test-ftell.c (main): Enhance test to cover behavior after
37405         ungetc.  Enforce binary mode.
37406         * tests/test-ftello.c (main): Likewise.
37407
37408         Pass test-freadseek on cygwin.
37409         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
37410         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
37411         ungetc buffer.
37412
37413         * tests/test-fflush2.c (main): Fix typo.
37414
37415 2008-03-29  Bruno Haible  <bruno@clisp.org>
37416
37417         * tests/test-fflush2.c (main): Temporarily disable the contents of
37418         this test.
37419         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
37420         Reported by Eric Blake.
37421
37422 2008-03-28  Simon Josefsson  <simon@josefsson.org>
37423
37424         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
37425         (GC_SHA224_DIGEST_SIZE): Add.
37426
37427         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
37428         (gc_hash_digest_length): Likewise.
37429         (gc_hash_buffer): Likewise.
37430
37431 2008-03-25  Bruno Haible  <bruno@clisp.org>
37432
37433         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
37434         detail which gettext release to use.
37435         Reported by Simon Josefsson.
37436
37437 2008-03-26  Jim Meyering  <meyering@redhat.com>
37438
37439         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
37440         * modules/gnumakefile (clean-GNUmakefile): Also, use
37441         test ... && ... || : syntax rather than if-then ... fi.
37442
37443         gnumakefile: Don't double-quote-expand $(VPATH) value.
37444         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
37445
37446 2008-03-24  Eric Blake  <ebb9@byu.net>
37447
37448         Alter GNUmakefile to install into top directory.
37449         * modules/maintainer-makefile: Split, and add dependency...
37450         * modules/gnumakefile: to this new module.
37451         * build-aux/GNUmakefile: Move...
37452         * top/GNUmakefile: ...here.
37453         * build-aux/maint.mk: Move...
37454         * top/maint.mk: ...here.
37455         * MODULES.html.sh (Support for maintaining...): Document new
37456         module.
37457
37458 2008-03-23  Bruno Haible  <bruno@clisp.org>
37459
37460         * gnulib-tool: New options --vc-files, --no-vc-files.
37461         (func_usage): Document them.
37462         (vc_files): New variable.
37463         (func_import): Consider vc_files.
37464         (func_create_testdir): Set vc_files to empty.
37465         Suggested by Jim Meyering and Karl Berry.
37466
37467 2008-03-23  Bruno Haible  <bruno@clisp.org>
37468
37469         Fix regex compilation error on HP-UX 11.
37470         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
37471         * modules/regex (Files): Add m4/mbstate_t.m4.
37472         Reported by Ton Voon <ton.voon@altinity.com>.
37473
37474 2008-03-23  Bruno Haible  <bruno@clisp.org>
37475
37476         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
37477
37478 2008-03-23  Eric Blake  <ebb9@byu.net>
37479             Bruno Haible  <bruno@clisp.org>
37480
37481         Install files from top/ in the destination directory.
37482         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37483         augmentation also for the files from top/.
37484         (func_import, func_create_testdir): Rewrite file names:
37485         top/filename -> filename.
37486
37487 2008-03-23  Bruno Haible  <bruno@clisp.org>
37488
37489         Tweak "gnulib --version" output.
37490         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
37491
37492 2008-03-23  Bruno Haible  <bruno@clisp.org>
37493
37494         Tweak "gnulib --version" output.
37495         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
37496         rather than contents of ChangeLog, when possible.
37497
37498 2008-03-21  Eric Blake  <ebb9@byu.net>
37499
37500         More --version tweaks.
37501         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
37502         date of last ChangeLog entry.
37503
37504 2008-03-21  Jim Meyering  <meyering@redhat.com>
37505
37506         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
37507
37508 2008-03-20  Eric Blake  <ebb9@byu.net>
37509
37510         VPATH fix.
37511         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
37512
37513 2008-03-20  Simon Josefsson  <simon@josefsson.org>
37514
37515         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
37516         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
37517
37518 2008-03-20  Eric Blake  <ebb9@byu.net>
37519
37520         Sync GNUmakefile with coreutils.
37521         * build-aux/GNUmakefile (have-Makefile): Rename...
37522         (_have-Makefile): ...to this, for namespace consideration.
37523         (GNUmakefile.cfg): Include, if present.
37524         (_autoreconf): Define a default.
37525         (_is-dist-target): New rule for rebuilds to pick up intra-release
37526         version.
37527         (maint-cfg.mk): Rename...
37528         (cfg.mk): ...to this.
37529
37530 2008-03-18  Jim Meyering  <meyering@redhat.com>
37531
37532         New script and module: mktempd
37533         * MODULES.html.sh (maint+release support): Add mktempd.
37534         * build-aux/mktempd: New file.
37535         * modules/mktempd: New file.
37536
37537 2008-03-15  Jim Meyering  <meyering@redhat.com>
37538
37539         Undo last change.
37540         * lib/sha1.c, lib/md5.c: 63 != ~63.
37541         Reported by Andreas Schwab.
37542
37543         sha1.c, md5.c: Hoist a redundant expression.
37544         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
37545         "ctx->buflen" only once, before calling *_process_block.
37546         * lib/md5.c (md5_process_bytes): Likewise.
37547
37548 2008-03-14  Eric Blake  <ebb9@byu.net>
37549
37550         Bump copyright year in files generated by gnulib-tool.
37551         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
37552         gnulib-tool, rather than hard-coding it.
37553
37554         Fix 'gnulib-tool --version' output to work with git.
37555         * gnulib-tool (func_gnulib_dir): New function, extracted from...
37556         (startup): ...here.
37557         (func_version): Use it to invoke git-version-gen, rather than
37558         relying on CVS keyword expansion.  Modernize wording.
37559         (cvsdatestamp, last_checkin_date, version): Kill unused
37560         variables.
37561
37562 2008-03-12  Jim Meyering  <meyering@redhat.com>
37563
37564         Recognize optional cast of the argument to free.
37565         * build-aux/useless-if-before-free: Update regexps.
37566
37567         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
37568
37569 2008-03-11  Bruno Haible  <bruno@clisp.org>
37570
37571         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
37572         by a single package.
37573         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
37574         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
37575         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
37576         Reported by Sam Steingold <sds@gnu.org>.
37577
37578 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37579
37580         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
37581         repositories.
37582
37583 2008-03-11  Bruno Haible  <bruno@clisp.org>
37584
37585         Avoid conflicts between local macro definitions.
37586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37587         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
37588
37589 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
37590             Bruno Haible  <bruno@clisp.org>
37591
37592         Make va_copy work with some version of xlc on AIX 5.1.
37593         * lib/stdarg.in.h: New file.
37594         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
37595         On AIX, use a <stdarg.h> file substitute.
37596         * modules/stdarg (Files): Add lib/stdarg.in.h.
37597         (Depends-on): Add include_next.
37598         (Makefile.am): Build a stdarg.h substitute if requested.
37599         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
37600
37601 2008-03-10  Bruno Haible  <bruno@clisp.org>
37602
37603         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
37604         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37605         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37606
37607 2008-03-10  Bruno Haible  <bruno@clisp.org>
37608
37609         * modules/stdlib (Depends-on): Add include_next, remove
37610         absolute-header.
37611
37612 2008-03-09  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/freadahead.h (freadahead): Document more precisely.
37615         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
37616         the sum of both buffer sizes.
37617         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
37618         * NEWS: Document the change.
37619
37620 2008-03-09  Bruno Haible  <bruno@clisp.org>
37621
37622         Extend freadptr to return also the buffer size.
37623         * lib/freadptr.h (freadptr): Add sizep argument.
37624         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
37625         (freadptr): Add sizep argument. Determine buffer size like freadahead
37626         does.
37627         * tests/test-freadptr.c: Don't include freadahead.h.
37628         (main): Adapt for new calling convention of freadptr.
37629         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
37630         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
37631         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
37632         tests/test-freadptr2.sh.
37633         (Depends): Remove freadahead.
37634         (TESTS): Add test-freadptr2.sh.
37635         (check_PROGRAMS): Add test-freadptr2.
37636
37637 2008-03-09  Bruno Haible  <bruno@clisp.org>
37638
37639         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
37640         Report and solution by Simon Josefsson.
37641
37642 2008-03-06  Bruno Haible  <bruno@clisp.org>
37643
37644         Make fflush after ungetc work on BSD platforms.
37645         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
37646         * tests/test-fflush2.c: New file.
37647         * tests/test-fflush2.sh: New file.
37648         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
37649         tests/test-fflush2.c.
37650         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
37651         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
37652
37653 2008-03-06  Eric Blake  <ebb9@byu.net>
37654
37655         Likewise for ftello.
37656         * modules/ftello (Dependencies): Add extensions.
37657         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
37658
37659 2008-03-06  Bruno Haible  <bruno@clisp.org>
37660
37661         * modules/fseeko (Dependencies): Add extensions.
37662         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
37663         Needed on glibc systems.
37664
37665 2008-03-06  Bruno Haible  <bruno@clisp.org>
37666
37667         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
37668         email address.
37669         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37670
37671 2008-03-06  Bruno Haible  <bruno@clisp.org>
37672
37673         * users.txt: Add libgnupdf.
37674
37675 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37676
37677         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
37678         (Header File Substitutes, Function Substitutes,
37679         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
37680         (Build robot for gnulib): Fix typo.
37681
37682 2008-03-06  Bruno Haible  <bruno@clisp.org>
37683
37684         * doc/gnulib-tool.texi (VCS Issues): Small updates.
37685         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37686
37687 2008-03-06  Bruno Haible  <bruno@clisp.org>
37688
37689         * doc/func.texi: New file, extracted from doc/gnulib.texi.
37690         * doc/gnulib.texi: Include it.
37691
37692 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37693
37694         * modules/func (License): Change license to unlimited; there was
37695         no LGPL parts in the module anyway.
37696
37697 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37698
37699         * modules/__func__: Renamed to modules/func.
37700         * modules/__func__-tests: Renamed to modules/func-tests.
37701         * tests/test-__func__.c: Renamed to tests/test-func.c.
37702         * m4/__func__.m4: Renamed to m4/func.m4.
37703         * doc/gnulib.texi (__func__): Section renamed to func.
37704         Suggested by Eric Blake <ebb9@byu.net>.
37705
37706 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37707
37708         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37709         about __func__.  Make example self-contained.  Suggested by Eric
37710         Blake <ebb9@byu.net>.
37711
37712         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37713         Suggested by Eric Blake <ebb9@byu.net>.
37714
37715 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37716
37717         * modules/__func__: New file.
37718         * modules/__func__-tests: New file.
37719         * tests/test-__func__.c: New file.
37720         * m4/__func__.m4: New file.
37721         * doc/gnulib.texi (__func__): Document __func__ module.
37722
37723 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37724
37725         * modules/byteswap (License): Re-license as LGPLv2+.
37726
37727 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37728
37729         * doc/Makefile: Add pdf target.
37730
37731 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37732
37733         * modules/inline (License): Use 'unlimited', since there are only
37734         *.m4 files in this module.
37735
37736 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37737             Bruno Haible  <bruno@clisp.org>
37738
37739         Add support for HP C 7.1 on OpenVMS 8.3.
37740         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37741
37742 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37743
37744         Update VMS specifics.
37745         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37746
37747 2008-03-02  Jim Meyering  <meyering@redhat.com>
37748
37749         Remove the last dependency on the "free" module.
37750         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37751         Reported by Bob Proulx.
37752
37753         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37754
37755         Remove useless "if" tests before free.  Deprecate "free" module.
37756         * doc/posix-functions/free.texi: Mention that this
37757         module is no longer useful.
37758         * modules/free (Notice): Say this module is obsolete.
37759         * modules/readutmp (Depends-on): Remove free.
37760         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37761         * lib/putenv.c (putenv): Likewise.
37762         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37763         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37764         * tests/test-c-strcasestr.c (main): Likewise.
37765         * tests/test-c-strstr.c (main): Likewise.
37766         * tests/test-mbscasestr1.c (main): Likewise.
37767         * tests/test-mbscasestr2.c (main): Likewise.
37768         * tests/test-mbsstr1.c (main): Likewise.
37769         * tests/test-mbsstr2.c (main): Likewise.
37770         * tests/test-memmem.c (main): Likewise.
37771         * tests/test-strcasestr.c (main): Likewise.
37772         * tests/test-striconv.c (main): Likewise.
37773         * tests/test-striconveh.c (main): Likewise.
37774         * tests/test-striconveha.c (main): Likewise.
37775         * tests/test-strstr.c (main): Likewise.
37776
37777         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37778
37779         bootstrap: sync from coreutils again
37780         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37781
37782 2008-03-01  Jim Meyering  <meyering@redhat.com>
37783
37784         bootstrap: sync from coreutils
37785         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37786         also when the target doesn't exist.
37787
37788 2008-03-01  Eric Blake  <ebb9@byu.net>
37789
37790         Fix bugs in last patch.
37791         * lib/memchr2.c (memchr2): Fix typo.
37792         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37793         extension.
37794         Reported by Bruce Korb.
37795
37796         New module 'memchr2'.
37797         * modules/memchr2: New file.
37798         * modules/memchr2-tests: Likewise.
37799         * lib/memchr2.h: Likewise.
37800         * lib/memchr2.c: Likewise, based on memchr.c.
37801         * tests/test-memchr2.c: New test.
37802         * MODULES.html.sh (String handling): Add memchr2.
37803
37804 2008-02-29  Bruno Haible  <bruno@clisp.org>
37805
37806         * modules/freadseek-tests: New file.
37807         * tests/test-freadseek.sh: New file.
37808         * tests/test-freadseek.c: New file.
37809
37810         New module 'freadseek'.
37811         * modules/freadseek: New file.
37812         * lib/freadseek.h: New file.
37813         * lib/freadseek.c: New file.
37814         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37815
37816 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37817
37818         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37819         wydawca.
37820
37821         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37822         program_invocation_name and program_invocation_short_name are
37823         present.
37824
37825 2008-02-28  Bruno Haible  <bruno@clisp.org>
37826
37827         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37828         * tests/test-freadptr.sh: Also test non-seekable stdin.
37829
37830 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37831
37832         * build-aux/bootstrap (source_base, m4_base)
37833         (doc_base, tests_base): New variables.
37834         (gnulib_tool_options): Do not hardcode base directories, use
37835         the above variables instead.
37836
37837 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37838
37839         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37840
37841 2008-02-28  Bruno Haible  <bruno@clisp.org>
37842
37843         * modules/freadptr-tests: New file.
37844         * tests/test-freadptr.sh: New file.
37845         * tests/test-freadptr.c: New file.
37846
37847         New module 'freadptr'.
37848         * modules/freadptr: New file.
37849         * lib/freadptr.h: New file.
37850         * lib/freadptr.c: New file.
37851         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37852
37853 2008-02-26  Karl Berry  <karl@freefriends.org>
37854
37855         Sync from Libtool:
37856         * libltdl/argz.c (argz_add, argz_count): New functions.
37857         * libltdl/argz.in.h: Declare them.
37858         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37859
37860 2008-02-22  Bruno Haible  <bruno@clisp.org>
37861
37862         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37863         is a pointer type.  Needed for HP-UX 10.
37864         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37865         * doc/posix-functions/gmtime_r.texi: Likewise.
37866         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37867
37868 2008-02-24  Bruno Haible  <bruno@clisp.org>
37869
37870         * modules/environ-tests: New file.
37871         * tests/test-environ.c: New file.
37872
37873         New module 'environ'.
37874         * modules/environ: New file.
37875         * lib/unistd.in.h (environ): New declaration.
37876         * m4/environ.m4: New file.
37877         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37878         after use.
37879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37880         HAVE_DECL_ENVIRON.
37881         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37882         HAVE_DECL_ENVIRON.
37883         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37884         wrong claim that 'environ' is missing on some systems.
37885         * modules/execute (Depends-on): Add environ.
37886         * lib/execute.c (environ): Remove fallback declaration.
37887         * modules/pipe (Depends-on): Add environ.
37888         * lib/pipe.c (environ): Remove fallback declaration.
37889         * modules/setenv (Depends-on): Add environ.
37890         * lib/setenv.c (environ): Remove fallback declaration.
37891         * modules/unsetenv (Depends-on): Add environ.
37892         * lib/unsetenv.c (environ): Remove fallback declaration.
37893         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37894         m4/environ.m4.
37895         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37896         (gl_PREREQ_UNSETENV): Likewise.
37897
37898 2008-02-24  Bruno Haible  <bruno@clisp.org>
37899
37900         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37901
37902 2008-02-20  Bob Proulx  <bob@proulx.com>
37903
37904         Enable use of older two part flavor 'git describe'.
37905         * build-aux/git-version-gen: If using the older two part flavor of
37906         git version then recreate the third part now present in the
37907         newer three part flavor of git describe.
37908
37909 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37910
37911         * lib/fts.c (fts_build): Typo correction to comment.
37912
37913 2008-02-17  Bruno Haible  <bruno@clisp.org>
37914
37915         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37916         generating no-op conflicts.
37917
37918 2008-02-17  Bruno Haible  <bruno@clisp.org>
37919
37920         Speed up by 10%.
37921         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37922         result_entries, rather than an index-based loop.
37923
37924 2008-02-17  Bruno Haible  <bruno@clisp.org>
37925
37926         Speed up by 25%.
37927         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37928         'hashcode_cached'.
37929         (entry_create): New function.
37930         (entry_hashcode): Use the cached hashcode if possible.
37931         (read_changelog_file, try_split_merged_entry): Use entry_create.
37932
37933 2008-02-17  Bruno Haible  <bruno@clisp.org>
37934
37935         Speed up from O(n^2) to O(n) for long ChangeLog files.
37936         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37937         (read_changelog_file): Change implementation of entries_reversed list
37938         to rbtreehash.
37939         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37940
37941 2008-02-17  Bruno Haible  <bruno@clisp.org>
37942
37943         New option --split-merged-entry.
37944         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37945         (find_paragraph_end, try_split_merged_entry): New functions.
37946         (long_options): Add option --split-merged-entry.
37947         (usage): Document option --split-merged-entry.
37948         (main): Implement option --split-merged-entry.
37949         Reported by Eric Blake.
37950
37951 2008-02-17  Bruno Haible  <bruno@clisp.org>
37952
37953         * lib/git-merge-changelog.c: Include c-strstr.h.
37954         (main): Support the "git pull --rebase" situation.
37955         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37956         Reported by Eric Blake.
37957
37958 2008-02-16  Eric Blake  <ebb9@byu.net>
37959
37960         Avoid doubling \ in common case of "c-maybe" quoting style.
37961         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37962         eliding outer quotes.
37963         * lib/quotearg.h: Document this.
37964         * tests/test-quotearg.c (result_strings, inputs, results_g)
37965         (flag_results, locale_results): Test it by adding a new string to
37966         each test group.
37967         (compare_strings): Test new string.
37968
37969 2008-02-13  Eric Blake  <ebb9@byu.net>
37970
37971         Avoid trigraph quoting in default output.
37972         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
37973         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
37974         unless explicitly requested.
37975         * tests/test-quotearg.c (flag_results, main): Add additional tests.
37976
37977 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
37978
37979         Don't rely on signed integer overflowing to negative value.
37980         * lib/getugroups.c (getugroups): Include <limits.h>.
37981         Instead, compare against INT_MAX, and increment only if the test passes.
37982
37983 2008-02-13  Jim Meyering  <meyering@redhat.com>
37984         and Eric Blake  <ebb9@byu.net>
37985
37986         Avoid shadowing warning and compile errors on Linux.
37987         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
37988         forwarding macros on Linux.
37989         (dcgettext): Define a stub, for Linux.
37990         (results_g, main): Avoid warnings.
37991
37992 2008-02-12  Eric Blake  <ebb9@byu.net>
37993
37994         Silence warning in last patch.
37995         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
37996
37997         Quotearg part 4: add tests, fix c-maybe colon quoting.
37998         * lib/quotearg.h: Improve documentation.
37999         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
38000         escapes when adding outer quotes.  When quoting trigraphs, use
38001         valid C notation.  When quoting NUL, omit extra characters if next
38002         character is not digit.  Alter prototype.
38003         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
38004         callers.
38005         * modules/quotearg-tests: New module.
38006         * tests/test-quotearg.c: New test.
38007
38008 2008-02-07  Eric Blake  <ebb9@byu.net>
38009
38010         Quotearg part 3: add flag to control outer quote elision.
38011         * lib/quotearg.h (c_maybe_quoting_style): New style.
38012         (enum quoting_flags): Better documentation of flags.
38013         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
38014         c-maybe style.
38015         (quotearg_buffer_restyled): Handle new flag to elide outer
38016         quotes.
38017
38018         Quotearg part 2: add flag that can control NUL elision.
38019         * lib/quotearg.h (set_quoting_flags): New prototype.
38020         * lib/quotearg.c (struct quoting_options): Add flag field.
38021         (set_quoting_flags): New function.
38022         (quotearg_buffer_restyled): Add flags parameter.
38023         (quotearg_alloc_mem): Set the flag if length cannot be returned.
38024         (quotearg_n_options): Set the flag, since length cannot be
38025         returned.
38026         (quoting_options_from_style): Default flags correctly.
38027
38028         Quotearg part 1: more wrappers, restore quotearg_char state.
38029         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
38030         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
38031         (quotearg_colon_mem): New wrappers.
38032         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
38033         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
38034         functions.
38035         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
38036         (quotearg_colon_mem): New functions.
38037
38038 2008-02-11  Bruno Haible  <bruno@clisp.org>
38039
38040         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
38041         library in the current directory: it does not work with parallel make.
38042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38043
38044 2008-02-11  Bruno Haible  <bruno@clisp.org>
38045
38046         * .gitattributes: New file.
38047
38048 2008-02-11  Jim Meyering  <meyering@redhat.com>
38049
38050         useless-if-before-free: Fix reversed exit values.
38051         * build-aux/useless-if-before-free: Use correct values
38052         for EXIT_MATCH and EXIT_NO_MATCH.
38053
38054         * build-aux/useless-if-before-free: Close stdout carefully.
38055
38056 2008-02-10  Bruno Haible  <bruno@clisp.org>
38057
38058         New module 'git-merge-changelog'.
38059         * modules/git-merge-changelog: New file.
38060         * lib/git-merge-changelog.c: New file.
38061
38062 2008-02-10  Jim Meyering  <meyering@redhat.com>
38063
38064         useless-if-before-free: New option: --list (-l).
38065
38066         useless-if-before-free: Don't exit immediately upon open failure.
38067         * build-aux/useless-if-before-free: Exit 2 for errors.
38068         Upon failure to open a file, don't exit immediately.
38069         Rather, just warn and continue with any remaining files.
38070
38071 2008-02-10  Bruno Haible  <bruno@clisp.org>
38072
38073         New abstract list operation 'node_set_value'.
38074         * lib/gl_list.h (gl_list_node_set_value): New function.
38075         (struct gl_list_implementation): New field node_set_value.
38076         * lib/gl_list.c (gl_list_node_set_value): New function.
38077         * lib/gl_array_list.c (gl_array_node_set_value): New function.
38078         (gl_array_list_implementation): Update.
38079         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
38080         (gl_carray_list_implementation): Update.
38081         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
38082         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38083         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38084         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
38085         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38086         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38087         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38088         Update.
38089         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38090         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
38091         (gl_sublist_list_implementation): Update.
38092
38093 2008-02-10  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
38096         Needed when ELEMENT is #defined to 'some_type *'.
38097
38098 2008-02-10  Jim Meyering  <meyering@redhat.com>
38099
38100         New script and module: useless-if-before-free
38101         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
38102         * build-aux/useless-if-before-free: New file.
38103         * modules/useless-if-before-free: New file.
38104
38105         * build-aux/gitlog-to-changelog: Use committer date, not author date.
38106
38107         xstrtol_error: Fix typo.
38108         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
38109         s/exit_failure/exit_status/.
38110
38111 2008-02-09  Jim Meyering  <meyering@redhat.com>
38112
38113         New script and module: gitlog-to-changelog
38114         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
38115         * modules/gitlog-to-changelog: New file.
38116         * build-aux/gitlog-to-changelog: New file.
38117
38118 2008-02-08  Jim Meyering  <meyering@redhat.com>
38119
38120         Avoid two "parameter unused" warnings.
38121         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
38122         Mark "st" as used.
38123
38124         Use "git COMMAND", not "git-COMMAND".
38125         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
38126         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
38127         * build-aux/git-version-gen: Use "git status", not "git-status".
38128
38129 2008-02-07  Bruno Haible  <bruno@clisp.org>
38130
38131         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
38132         Avoids a crash on Windows Vista.
38133         Reported by Adam Strzelecki <ono@java.pl> via
38134         Simon Josefsson <simon@josefsson.org>.
38135
38136 2008-02-06  Bruno Haible  <bruno@clisp.org>
38137
38138         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
38139         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
38140         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
38141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
38142         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38144         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
38145         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
38146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38153         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
38154         left-adjust flag.
38155         * tests/test-snprintf-posix.h (test_function): Likewise.
38156         * tests/test-sprintf-posix.h (test_function): Likewise.
38157         * tests/test-vasprintf-posix.c (test_function): Likewise.
38158         * doc/posix-functions/fprintf.texi: Update.
38159         * doc/posix-functions/printf.texi: Update.
38160         * doc/posix-functions/snprintf.texi: Update.
38161         * doc/posix-functions/sprintf.texi: Update.
38162         * doc/posix-functions/vfprintf.texi: Update.
38163         * doc/posix-functions/vprintf.texi: Update.
38164         * doc/posix-functions/vsnprintf.texi: Update.
38165         * doc/posix-functions/vsprintf.texi: Update.
38166         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38167
38168 2008-02-06  Bruno Haible  <bruno@clisp.org>
38169
38170         Fix bug introduced on 2008-01-26.
38171         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
38172
38173 2008-02-06  Bruno Haible  <bruno@clisp.org>
38174
38175         Fix bug introduced on 2007-06-10.
38176         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
38177         !NEED_PRINTF_FLAG_ZERO.
38178
38179 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
38180
38181         getloadavg: use libperfstat on AIX5
38182         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
38183
38184 2008-02-03  Bruno Haible  <bruno@clisp.org>
38185
38186         * lib/diffseq.h: Add comments about required #includes.
38187         Reported by Michael Biggs <gnulib@doubleplum.net>.
38188
38189 2008-02-01  Bruno Haible  <bruno@clisp.org>
38190
38191         * users.txt: Add gnuit.
38192
38193 2008-01-31  Bruno Haible  <bruno@clisp.org>
38194
38195         * lib/md4.c (set_uint32): Mark as inline.
38196         * lib/md5.c (set_uint32): Likewise.
38197         * lib/sha1.c (set_uint32): Likewise.
38198         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
38199         * m4/md5.m4 (gl_MD5): Likewise.
38200         * m4/sha1.m4 (gl_SHA1): Likewise.
38201
38202 2008-01-31  Jim Meyering  <meyering@redhat.com>
38203
38204         Use "sizeof VAR", rather than a literal "4".
38205         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
38206         * lib/md4.c (md4_read_ctx): Likewise.
38207         * lib/sha1.c (sha1_read_ctx): Likewise.
38208
38209 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38210
38211         * tests/test-sha1.c: New file, based on test-md5.c.
38212
38213         * modules/crypto/sha1-tests: New file.
38214
38215 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38216
38217         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
38218
38219 2008-01-31  Jim Meyering  <meyering@redhat.com>
38220
38221         Prefer "sizeof v" over the equivalent "4".
38222         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
38223         * lib/md5.c (set_uint32): Likewise.
38224         * lib/sha1.c (set_uint32): Likewise.
38225
38226 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38227
38228         * lib/sha1.c (set_uint32): Mark function as static.
38229
38230 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38231
38232         md2: clarify comments to say that alignment is not required.
38233         * lib/md2.h: Remove warning about alignment in comment.
38234         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
38235         never been required.
38236
38237 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38238
38239         md4: adapt alignment constraint fix from sha1.
38240         * lib/md4.c (set_uint32): New function, from sha1.c
38241         (md4_read_ctx): Use it.
38242         (md4_finish_ctx): Doc fix.
38243         * lib/md4.h: Doc fix.
38244
38245 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38246
38247         md5: adapt alignment constraint fix from sha1.
38248         * lib/md5.c (set_uint32): New function, from sha1.c
38249         (md5_read_ctx): Use it.
38250         (md5_finish_ctx): Doc fix.
38251         * lib/md5.h: Doc fix.
38252
38253 2008-01-30  Peter Palfrader  <weasel@debian.org>
38254
38255         sha1: remove the result buffer alignment constraint
38256         * lib/sha1.c (set_uint32): New function.
38257         (sha1_read_ctx): Rewrite to remove the result buffer alignment
38258         constraint.
38259         (sha1_finish_ctx): Remove comment warning about alignment constraint.
38260         * lib/sha1.h: Likewise.
38261
38262 2008-01-30  Andreas Schwab  <schwab@suse.de>
38263             Bruno Haible  <bruno@clisp.org>
38264
38265         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
38266         correct definition of LDBL_MIN_EXP.
38267
38268 2008-01-30  Karl Berry  <karl@gnu.org>
38269
38270         * config/srclist-update: try to preserve x bit on updates.
38271         * config/srclistvars.sh: update for karl.
38272
38273 2008-01-29  Jim Meyering  <meyering@redhat.com>
38274
38275         vasnprintf.c: Avoid warning about unused label
38276         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
38277         "overflow" label definition and associated code with the
38278         same cpp condition that guards the sole use of that label.
38279
38280 2008-01-26  Bruno Haible  <bruno@clisp.org>
38281
38282         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
38283         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
38284         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
38285         * lib/isnanl-nolibm.h (isnanl): Likewise.
38286         Reported by Paul Eggert <eggert@cs.ucla.edu>.
38287
38288 2008-01-26  Bruno Haible  <bruno@clisp.org>
38289
38290         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
38291         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
38292
38293 2008-01-26  Bruno Haible  <bruno@clisp.org>
38294
38295         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
38296         GCC >= 4.0 built-in.
38297         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
38298
38299 2008-01-26  Bruno Haible  <bruno@clisp.org>
38300
38301         Rename isnan, applicable to 'double' only, to isnand.
38302         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
38303         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
38304         (configure.ac): Update.
38305         (Include): Replace "isnan.h" with "isnand.h".
38306         * m4/isnand.m4: Renamed from m4/isnan.m4.
38307         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
38308         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
38309         instead of isnan.c.
38310         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
38311         instead of HAVE_ISNAN_IN_LIBC.
38312         (isnand): Renamed from isnan.
38313         * lib/isnand.c: New file.
38314         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
38315         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
38316         (Makefile.am): Update.
38317         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
38318         Include isnand.h instead of isnan.h.
38319         (main): Test isnand instead of isnan.
38320         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
38321         isnan-nolibm.
38322         * modules/frexp (Depends-on): Likewise.
38323         * modules/frexp-tests (Depends-on): Likewise.
38324         * modules/frexp-nolibm (Depends-on): Likewise.
38325         * modules/frexp-nolibm-tests (Depends-on): Likewise.
38326         * modules/isfinite (Depends-on): Likewise.
38327         * modules/round-tests (Depends-on): Likewise.
38328         * modules/signbit (Depends-on): Likewise.
38329         * modules/signbit-tests (Depends-on): Likewise.
38330         * modules/snprintf-posix (Depends-on): Likewise.
38331         * modules/sprintf-posix (Depends-on): Likewise.
38332         * modules/trunc-tests (Depends-on): Likewise.
38333         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38334         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38335         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38336         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38337         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38338         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38339         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38340         * modules/vasnprintf-posix (Depends-on): Likewise.
38341         * modules/vasprintf-posix (Depends-on): Likewise.
38342         * modules/vfprintf-posix (Depends-on): Likewise.
38343         * modules/vsnprintf-posix (Depends-on): Likewise.
38344         * modules/vsprintf-posix (Depends-on): Likewise.
38345         * lib/frexp.c: Include isnand.h instead of isnan.h.
38346         (ISNAN): Set to isnand instead of isnan.
38347         * lib/isfinite.c: Include isnand.h instead of isnan.h.
38348         (gl_isfinited): Use isnand instead of isnan.
38349         * lib/signbitd.c: Include isnand.h instead of isnan.h.
38350         (gl_signbitd): Use isnand instead of isnan.
38351         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
38352         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
38353         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
38354         (main): Use isnand instead of isnan.
38355         * tests/test-round1.c: Include isnand.h.
38356         (main): Use isnand instead of isnan.
38357         * tests/test-round2.c: Include isnand.h instead of isnan.h.
38358         (ISNAN): Set to isnand instead of isnan.
38359         * tests/test-trunc1.c: Include isnand.h.
38360         (main): Use isnand instead of isnan.
38361         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
38362         (equal): Use isnand instead of isnan.
38363         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
38364         isnand-nolibm.
38365         * NEWS: Mention the change.
38366
38367 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
38368             Bruno Haible  <bruno@clisp.org>
38369
38370         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
38371         the GCC builtins for signbits are present and set
38372         REPLACE_SIGNBIT_USING_GCC if so.
38373         * lib/math.in.h (signbit): Define using GCC builtins if
38374         REPLACE_SIGNBIT_USING_GCC is set.
38375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
38376         REPLACE_SIGNBIT_USING_GCC.
38377         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
38378
38379 2008-01-25  Jim Meyering  <meyering@redhat.com>
38380
38381         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
38382         * lib/poll.c: Include <config.h>, not "config.h".
38383         * tests/test-getaddrinfo.c: Likewise.
38384
38385 2008-01-25  Simon Josefsson  <simon@josefsson.org>
38386
38387         * modules/sockets-tests: New file.
38388
38389 2008-01-24  Simon Josefsson  <simon@josefsson.org>
38390
38391         * modules/sockets: New module, can be used to call WSA_Startup and
38392         WSA_Cleanup when needed.
38393
38394         * lib/sockets.h, lib/sockets.c: New files.
38395
38396         * m4/sockets.m4: New file.
38397
38398         * tests/test-sockets.c: New file.
38399
38400 2008-01-19  Bruno Haible  <bruno@clisp.org>
38401
38402         * doc/posix-headers: Renamed from doc/headers.
38403         * doc/posix-functions: Renamed from doc/functions.
38404         * doc/gnulib.texi: Update.
38405
38406 2008-01-19  Bruno Haible  <bruno@clisp.org>
38407
38408         * doc/glibc-functions/strcasestr.texi: Include contents of
38409         doc/functions/strcasestr.texi, fixing the list of platforms.
38410         * doc/functions/strcasestr.texi: Remove file.
38411
38412 2008-01-19  Bruno Haible  <bruno@clisp.org>
38413
38414         * doc/glibc-functions/memmem.texi: Include contents of
38415         doc/functions/memmem.texi.
38416         * doc/functions/memmem.texi: Remove file.
38417
38418 2008-01-18  Bruno Haible  <bruno@clisp.org>
38419
38420         * doc/glibc-functions/*.texi: New files.
38421         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
38422         to use the new files.
38423
38424 2008-01-17  Bruno Haible  <bruno@clisp.org>
38425
38426         * tests/test-gethostname.c (main): Fix printf statement.
38427
38428 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38429
38430         * modules/gethostname-tests: New file.
38431
38432         * tests/test-gethostname.c: New file.
38433
38434 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38435
38436         * lib/gethostname.c: Include string.h unconditionally, strncpy is
38437         used by the UNAME case.  Reported by Bruno Haible
38438         <bruno@clisp.org>.
38439
38440 2008-01-17  Eric Blake  <ebb9@byu.net>
38441
38442         Convert c-strcasestr to be more efficient.
38443         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
38444         (Depends-on): Add c-strcase, remove malloca, strnlen.
38445         * tests/test-c-strcasestr.c (main): Enhance test.
38446         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
38447
38448 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38449
38450         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
38451         Use it in creating po/Makevars.
38452
38453 2008-01-15  Simon Josefsson  <simon@josefsson.org>
38454
38455         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
38456         Applications that requires it should initialize libgcrypt
38457         manually.
38458
38459 2008-01-16  Simon Josefsson  <simon@josefsson.org>
38460
38461         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
38462
38463 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
38464
38465         Fix problem with getdate on mingw32 reported by Simon Josefsson
38466         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
38467         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
38468         tzname", when deciding whether to declare tzname.
38469         * lib/strftime.c (tzname): Likewise.
38470
38471 2008-01-15  Bruno Haible  <bruno@clisp.org>
38472
38473         Work around a MacOS X 10.5 bug in frexpl().
38474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
38475         * doc/functions/frexpl.texi: Document the bug.
38476         Reported by Elias Pipping <pipping@gentoo.org>.
38477
38478 2008-01-14  Eric Blake  <ebb9@byu.net>
38479
38480         Touch up previous patch.
38481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
38482         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
38483
38484         Convert strcasestr module to use Two-Way algorithm.
38485         * modules/strcasestr-simple: New module, based on the old
38486         strcasestr, but with Two-Way rather than KMP.
38487         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
38488         * lib/string.in.h (rpl_strcasestr): Declare.
38489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
38490         performance.
38491         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
38492         * modules/string (Makefile.am): Support strcasestr.
38493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38494         * modules/strcasestr-tests (Depends-on): Check for alarm.
38495         * tests/test-strcasestr.c: Augment test.
38496         * lib/str-two-way.h: Clean up stray macro.
38497         * NEWS: Document new module.
38498         * MODULES.html.sh (string handling): Likewise.
38499         * doc/functions/strcasestr.texi: New file.
38500         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
38501         here, since it is not a POSIX function.
38502
38503 2008-01-14  Colin Watson  <cjwatson@debian.org>
38504             Bruno Haible  <bruno@clisp.org>
38505
38506         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
38507         works fine; if not, set REPLACE_STRSIGNAL.
38508         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
38509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38510         REPLACE_STRSIGNAL.
38511         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
38512         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
38513         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
38514
38515 2008-01-14  Bruno Haible  <bruno@clisp.org>
38516
38517         * modules/strsignal (Include): Change to <string.h>.
38518
38519 2008-01-14  Colin Watson  <cjwatson@debian.org>
38520
38521         * modules/argp (Notice): Add a notice recommending to change
38522         XGETTEXT_OPTIONS.
38523         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
38524
38525 2008-01-13  Colin Watson  <cjwatson@debian.org>
38526
38527         * modules/strsignal-tests: New file.
38528         * tests/test-strsignal.c: New file.
38529
38530         * lib/strsignal.c: New file, from glibc with modifications.
38531         * lib/siglist.h: New file, from glibc with modifications.
38532         * lib/string.in.h (strsignal): New declaration.
38533         * m4/strsignal.m4: New file.
38534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38535         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
38536         * modules/strsignal: New file.
38537         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
38538         HAVE_DECL_STRSIGNAL.
38539
38540 2008-01-13  Bruno Haible  <bruno@clisp.org>
38541
38542         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
38543         locale encoding is not ASCII. Needed for OpenBSD 4.0.
38544         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38545         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38546
38547 2008-01-13  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
38550         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
38551         * lib/argp.h (__attribute__): Likewise.
38552         * lib/c-stack.c (__attribute__): Likewise.
38553         * lib/error.h (__attribute__): Likewise.
38554         * lib/fts.c (__attribute__): Likewise.
38555         * lib/openat.h (__attribute__): Likewise.
38556         * lib/stdio.in.h (__attribute__): Likewise.
38557         * lib/string.in.h (__attribute__): Likewise.
38558         * lib/utimens.c (__attribute__): Likewise.
38559         * lib/vasnprintf.h (__attribute__): Likewise.
38560         * lib/xalloc.h (__attribute__): Likewise.
38561         * lib/xprintf.h (__attribute__): Likewise.
38562         * lib/xstrtol.h (__attribute__): Likewise.
38563         * lib/xvasprintf.h (__attribute__): Likewise.
38564
38565 2008-01-12  Bruno Haible  <bruno@clisp.org>
38566
38567         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
38568         * doc/glibc-headers/a.out.texi: New file.
38569         * doc/glibc-headers/aliases.texi: New file.
38570         * doc/glibc-headers/alloca.texi: New file.
38571         * doc/glibc-headers/ar.texi: New file.
38572         * doc/glibc-headers/argp.texi: New file.
38573         * doc/glibc-headers/argz.texi: New file.
38574         * doc/glibc-headers/byteswap.texi: New file.
38575         * doc/glibc-headers/crypt.texi: New file.
38576         * doc/glibc-headers/endian.texi: New file.
38577         * doc/glibc-headers/envz.texi: New file.
38578         * doc/glibc-headers/err.texi: New file.
38579         * doc/glibc-headers/error.texi: New file.
38580         * doc/glibc-headers/execinfo.texi: New file.
38581         * doc/glibc-headers/fpu_control.texi: New file.
38582         * doc/glibc-headers/fstab.texi: New file.
38583         * doc/glibc-headers/fts.texi: New file.
38584         * doc/glibc-headers/getopt.texi: New file.
38585         * doc/glibc-headers/ieee754.texi: New file.
38586         * doc/glibc-headers/ifaddrs.texi: New file.
38587         * doc/glibc-headers/libintl.texi: New file.
38588         * doc/glibc-headers/mcheck.texi: New file.
38589         * doc/glibc-headers/mntent.texi: New file.
38590         * doc/glibc-headers/obstack.texi: New file.
38591         * doc/glibc-headers/paths.texi: New file.
38592         * doc/glibc-headers/printf.texi: New file.
38593         * doc/glibc-headers/pty.texi: New file.
38594         * doc/glibc-headers/resolv.texi: New file.
38595         * doc/glibc-headers/shadow.texi: New file.
38596         * doc/glibc-headers/sysexits.texi: New file.
38597         * doc/glibc-headers/ttyent.texi: New file.
38598
38599 2008-01-12  Jim Meyering  <meyering@redhat.com>
38600
38601         announce-gen: emit Gnulib's git-based version string.
38602         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
38603         New option --gnulib-version=V, where V is expected to be
38604         the output of running git describe in the gnulib directory.
38605         (get_tool_versions): Request feedback on xdelta.  I suspect it's
38606         not useful, and plan to stop publishing an xdelta file with each
38607         coreutils release.
38608
38609         * build-aux/announce-gen: Also check for lzma-compressed files.
38610
38611 2008-01-11  Bruno Haible  <bruno@clisp.org>
38612
38613         * tests/test-memmem.c (main): Increase maximum allowed time.
38614         * tests/test-strstr.c (main): Likewise.
38615
38616 2008-01-11  Bruno Haible  <bruno@clisp.org>
38617
38618         * doc/functions/memmem.texi: Add more precisions about platforms.
38619         * doc/functions/strstr.texi: Likewise.
38620
38621 2008-01-10  Eric Blake  <ebb9@byu.net>
38622
38623         * m4/strstr.m4: Delete cruft from copy-n-paste.
38624         Reported by Bruno Haible.
38625
38626 2008-01-10  Bruno Haible  <bruno@clisp.org>
38627
38628         Make c-strstr rely on strstr.
38629         * lib/c-strstr.c: Don't include str-kmp.h.
38630         (c_strstr): Define in terms of strstr.
38631         * modules/c-strstr (Files): Remove lib/str-kmp.h.
38632         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
38633
38634 2008-01-10  Bruno Haible  <bruno@clisp.org>
38635
38636         * doc/gnulib.texi (String Functions in C Locale): New section.
38637         * doc/c-ctype.texi: New file.
38638         * doc/c-strcase.texi: New file.
38639         * doc/c-strcaseeq.texi: New file.
38640         * doc/c-strcasestr.texi: New file.
38641         * doc/c-strstr.texi: New file.
38642         * doc/c-strtod.texi: New file.
38643         * doc/c-strtold.texi: New file.
38644
38645 2008-01-10  Eric Blake  <ebb9@byu.net>
38646
38647         * lib/relocatable.h: Fix a comment.
38648
38649 2008-01-10  Eric Blake  <ebb9@byu.net>
38650
38651         Share two-way algorithm.
38652         * lib/str-two-way.h: New file, merged from...
38653         * lib/memmem.c: ...here...
38654         * lib/strstr.c: ...and here.
38655         * modules/memmem (Files): Use it.
38656         * modules/strstr (Files): Likewise.
38657
38658         Avoid quadratic strstr implementations.
38659         * lib/strstr.c: New file.
38660         * m4/strstr.m4: Likewise.
38661         * modules/strstr: Likewise.
38662         * modules/strstr-tests: Likewise.
38663         * tests/test-strstr.c: Likewise.
38664         * lib/string.in.h (rpl_strstr): Declare.
38665         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
38666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
38667         * modules/string (Makefile.am): Likewise.
38668         * MODULES.html.sh (string handling): Mention new module.
38669         * doc/functions/strstr.texi (strstr): Document the bug.
38670
38671 2008-01-10  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/relocatable.h (relocate): State whether result is freshly
38674         allocated or not.
38675         * lib/relocatable.c (relocate): Return a freshly allocated string
38676         instead of a pointer to a privately held string.
38677         Reported by Sylvain Beucler <beuc@gnu.org>.
38678
38679 2008-01-10  Colin Watson  <cjwatson@debian.org>
38680
38681         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
38682         s/S_ISNLK/S_ISLNK/.
38683
38684 2008-01-09  Bruno Haible  <bruno@clisp.org>
38685
38686         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
38687         and other files.
38688         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
38689         if it's only a guess.
38690         * modules/memmem: Simplify by depending on memmem-simple.
38691
38692 2008-01-09  Bruno Haible  <bruno@clisp.org>
38693
38694         Work around OpenBSD 4.0 tdelete() bug.
38695         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
38696         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
38697         macros and don't redefine the enum values.
38698         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
38699         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
38700         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
38701
38702 2008-01-09  Bruno Haible  <bruno@clisp.org>
38703
38704         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
38705         (main): Don't perform the tests if setlocale did not install a UTF-8
38706         locale. Needed on OpenBSD 4.0.
38707         * modules/wcwidth-tests (Depends-on): Add localcharset.
38708
38709 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38710
38711         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38712         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38713         * NEWS: announce this.
38714         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38715
38716 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38717         and Eric Blake  <ebb9@byu.net>
38718
38719         Add memmem-simple module.
38720         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38721         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38722         * modules/memmem-simple: New file.
38723         * modules/memmem (Description): Tweak.
38724         * MODULES.html.sh (string handling): Mention new module.
38725         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38726         addressed by memmem-simple.
38727         * NEWS: Document the difference.
38728
38729 2008-01-09  Eric Blake  <ebb9@byu.net>
38730
38731         Give gcc some memmem optimization hints.
38732         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38733         (strcasestr): Declare as pure.
38734         * modules/memmem (Maintainer): Claim my implementation.
38735
38736 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38737
38738         Support AIX 6.1 and higher.
38739         * build-aux/config.libpath: Likewise.
38740         * build-aux/config.rpath: Likewise.
38741
38742 2008-01-08  Jim Meyering  <meyering@redhat.com>
38743             Bruno Haible  <bruno@clisp.org>
38744
38745         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38746         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38747         Reported by Peter Fales in
38748         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38749
38750 2008-01-08  Bruno Haible  <bruno@clisp.org>
38751
38752         * modules/unictype/category-of (Depends-on): Add
38753         unictype/category-none.
38754         * modules/unictype/category-and-tests (Depends-on): Add
38755         unictype/category-{L,N,Lu,Nd}.
38756         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38757         * modules/unictype/category-or-tests (Depends-on): Add
38758         unictype/category-{L,N}.
38759         * modules/unictype/category-name-tests (Depends-on): Add
38760         unictype/category-{Z,Nl}.
38761         Reported by Simon Josefsson.
38762
38763 2008-01-08  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38766         convention better.
38767         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38768         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38769         Reported by Peter Miller <millerp@canb.auug.org.au>.
38770
38771 2008-01-08  Eric Blake  <ebb9@byu.net>
38772
38773         Rewrite memmem to guarantee linear complexity without malloc.
38774         * lib/memmem.c (memmem): Use Two-Way rather than
38775         Knuth-Morris-Pratt, to allow O(1) space usage.
38776         (critical_factorization, two_way_short_needle)
38777         (two_way_long_needle): New functions.
38778         (knuth_morris_pratt): Delete.
38779         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38780         Add stdint.
38781         * tests/test-memmem.c (main): Add tests for periodic needle and
38782         sublinear performance.
38783         * doc/functions/memmem.texi (memmem): Document other deficiencies
38784         in cygwin and older glibc.
38785
38786 2008-01-08  Bruno Haible  <bruno@clisp.org>
38787
38788         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38789         augmentation.
38790
38791 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38792
38793         Add a configure time option: --disable-acl.
38794         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38795         AC_ARG_ENABLE(acl).
38796
38797 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38798
38799         * tests/test-localename.c: Don't include obsolete "setenv.h".
38800
38801         * modules/localename-tests (Depends-on): Need unsetenv.
38802
38803 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38804
38805         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38806
38807 2008-01-06  Colin Watson  <cjwatson@debian.org>
38808
38809         * users.txt: Add man-db.
38810
38811 2008-01-07  Bruno Haible  <bruno@clisp.org>
38812
38813         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38814         previous section name.
38815
38816 2008-01-07  Bruno Haible  <bruno@clisp.org>
38817
38818         * lib/progname.c (set_program_name): Don't strip off a leading
38819         "lt-" prefix outside a .libs directory.
38820         Suggested by Paul Eggert.
38821
38822 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38823             Bruno Haible  <bruno@clisp.org>
38824
38825         Improve memory cleanup in 'relocatable' module.
38826         * lib/relocatable.h (compute_curr_prefix): Change return type to
38827         'char *'.
38828         * lib/relocatable.c (compute_curr_prefix): Change return type to
38829         'char *'. Free curr_installdir after use.
38830         (relocate): Free curr_prefix_better after use.
38831         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38832
38833 2008-01-01  Bruno Haible  <bruno@clisp.org>
38834
38835         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38836         failure on older glibc systems.
38837         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38838
38839 2008-01-05  Eric Blake  <ebb9@byu.net>
38840
38841         Avoid quadratic system memmem.
38842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38843         Reported by Ralf Wildenhues.
38844
38845         Fix memmem test for mingw.
38846         * modules/memmem-tests (configure.ac): Check for alarm.
38847         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38848         it.
38849         * doc/functions/memmem.texi: New file.
38850         * doc/gnulib.texi (Function Substitutes): Add memmem.
38851         Reported by Bruno Haible.
38852
38853 2008-01-04  Bruno Haible  <bruno@clisp.org>
38854
38855         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38856         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38857         gl_HEADER_STRING_H_DEFAULTS.
38858
38859 2008-01-04  Eric Blake  <ebb9@byu.net>
38860
38861         Shorten duration of memmem test.
38862         * tests/test-memmem.c (main): Use alarm to declare failure if test
38863         is taking too long.
38864         Reported by Ralf Wildenhues.
38865
38866 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38867
38868         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38869         string, needed by strerror.
38870
38871 2008-01-03  Colin Watson  <cjwatson@debian.org>
38872             Bruno Haible  <bruno@clisp.org>
38873
38874         * doc/gnulib-tool.texi (Localization): New section.
38875
38876 2008-01-02  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38879         variables to 'unsigned char *' type.
38880         Reported by Paul Eggert.
38881
38882 2008-01-02  Jim Meyering  <jim@meyering.net>
38883
38884         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38885
38886 2007-12-31  Jim Meyering  <jim@meyering.net>
38887
38888         Avoid use of private FTS type name.
38889         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38890
38891 2007-12-30  Karl Berry  <karl@gnu.org>
38892
38893         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38894         work around defect in Texinfo and/or the standalone Info browser.
38895
38896 2007-12-30  Bruno Haible  <bruno@clisp.org>
38897
38898         Unify 5 copies of the KMP code.
38899         * lib/str-kmp.h: New file.
38900         * lib/c-strcasestr.c: Include str-kmp.h.
38901         (knuth_morris_pratt): Remove function.
38902         (c_strcasestr): Update.
38903         * lib/c-strstr.c: Include str-kmp.h.
38904         (knuth_morris_pratt): Remove function.
38905         (c_strcasestr): Update.
38906         * lib/mbscasestr.c: Include str-kmp.h.
38907         (knuth_morris_pratt_unibyte): Remove function.
38908         * lib/mbsstr.c: Include str-kmp.h.
38909         (knuth_morris_pratt_unibyte): Remove function.
38910         * lib/strcasestr.c: Include str-kmp.h.
38911         (knuth_morris_pratt): Remove function.
38912         (strcasestr): Update.
38913         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38914         * modules/c-strstr (Files): Likewise.
38915         * modules/mbscasestr (Files): Likewise.
38916         * modules/mbsstr (Files): Likewise.
38917         * modules/strcasestr (Files): Likewise.
38918         Suggested by Paul Eggert.
38919
38920 2007-12-30  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38923         defined.
38924
38925 2007-12-30  Bruno Haible  <bruno@clisp.org>
38926
38927         * lib/xmalloca.h: Include xalloc.h.
38928         (xnmalloca): New macro.
38929
38930 2007-12-30  Bruno Haible  <bruno@clisp.org>
38931
38932         * lib/malloca.h (nmalloca): New macro.
38933         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38934         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38935         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38936         knuth_morris_pratt_multibyte): Likewise.
38937         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38938         knuth_morris_pratt_multibyte): Likewise.
38939         * lib/memmem.c (knuth_morris_pratt): Likewise.
38940         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38941
38942 2007-12-25  Bruno Haible  <bruno@clisp.org>
38943
38944         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38945         * lib/glob.c: Don't include openat.h.
38946         (link_exists2_p): Add back the code that deals with the
38947         !GLOB_ALTDIRFUNC case.
38948         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38949         let it do the filename concatenation.
38950         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38951         * modules/glob (Depends-on): Remove openat.
38952
38953 2007-12-31  Bruno Haible  <bruno@clisp.org>
38954
38955         * modules/dirfd (License): Change to LGPLv2+.
38956         Approved by Jim Meyering.
38957
38958 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38959
38960         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38961         when multiplying M by sizeof (size_t).
38962
38963 2007-12-10  Martin Lambers  <marlam@marlam.de>
38964
38965         Override getpagesize on mingw.
38966         * lib/getpagesize.c: New file.
38967         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
38968         * modules/getpagesize (Files): Add lib/getpagesize.c.
38969         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
38970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38971         REPLACE_GETPAGESIZE.
38972         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
38973
38974 2007-12-25  Bruno Haible  <bruno@clisp.org>
38975
38976         * modules/localcharset (Notice): New field.
38977         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
38978         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38979
38980 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38981             Bruno Haible  <bruno@clisp.org>
38982
38983         Avoid using the syntax symbol() in formatted documentation.
38984         * MODULES.html.sh (func_module): When replacing symbol() with a
38985         hyperlink, remove the parentheses. Show an error if some remain.
38986         Recognize and render the '...' syntax.
38987         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
38988         Rework. Add paragraph about GCC's inlining.
38989         * doc/alloca.texi: Likewise.
38990         * doc/error.texi: Remove parentheses from symbol reference.
38991         * doc/gnulib-intro.texi: Likewise.
38992         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
38993         * modules/fnmatch (Description): Reword to say "the ... function".
38994         * modules/full-read (Description): Likewise.
38995         * modules/full-write (Description): Likewise.
38996         * modules/safe-read (Description): Likewise.
38997         * modules/safe-write (Description): Likewise.
38998         * modules/strchrnul (Description): Likewise.
38999         * modules/trim (Description): Likewise.
39000         * modules/error (Description): Remove parentheses from symbol
39001         references.
39002         * modules/verror (Description): Likewise.
39003         Reported by Karl Berry.
39004
39005 2007-12-25  Bruno Haible  <bruno@clisp.org>
39006
39007         Fixup after 2007-10-16 commit.
39008         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
39009
39010 2007-12-24  Bruno Haible  <bruno@clisp.org>
39011
39012         Make --enable-relocatable work with DESTDIR.
39013         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
39014         to compute installdir from destprog.
39015         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
39016         also set the RELOC_DESTDIR variable.
39017         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39018
39019 2007-12-24  Bruno Haible  <bruno@clisp.org>
39020
39021         Fix link error due to xalloc_die().
39022         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
39023         of xreadlink.
39024         * lib/relocwrapper.c: Update comments.
39025         * build-aux/install-reloc: Remove xreadlink.c from file list.
39026         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
39027         xreadlink.c.
39028         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39029
39030 2007-12-24  Bruno Haible  <bruno@clisp.org>
39031
39032         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
39033         * lib/setenv.h: Remove file.
39034         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
39035         lib/setenv.h.
39036         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
39037         (Depends-on): Add stdlib.
39038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
39039         gl_FUNC_UNSETENV.
39040         (Include): Replace setenv.h with <stdlib.h>.
39041         * modules/unsetenv: New file.
39042         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
39043         * lib/unsetenv.c: Include <stdlib.h> first.
39044         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
39045         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
39046         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
39047         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
39048         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
39049         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
39051         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39052         * doc/functions/unsetenv.texi: Update.
39053         * modules/xsetenv (Depends-on): Add unsetenv.
39054         * modules/getdate (Depends-on): Likewise.
39055         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
39056         * lib/xsetenv.c: Don't include setenv.h.
39057         * lib/getdate.y: Likewise.
39058         * lib/relocwrapper.c: Likewise.
39059         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
39060         (Depends-on): Add stdlib.
39061         * NEWS: Mention the changes.
39062         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39063
39064 2007-12-23  Bruno Haible  <bruno@clisp.org>
39065
39066         * lib/memmem.c (memmem): Use lowercase variable names. Tab
39067         indentation.
39068
39069 2007-12-23  Bruno Haible  <bruno@clisp.org>
39070
39071         * lib/c-strcasestr.c: Add more comments.
39072         * lib/c-strstr.c: Likewise.
39073         * lib/mbscasestr.c: Likewise.
39074         * lib/mbsstr.c: Likewise.
39075         * lib/strcasestr.c: Likewise.
39076         * lib/memmem.c: Likewise.
39077
39078 2007-12-23  Bruno Haible  <bruno@clisp.org>
39079
39080         * tests/test-memmem.c: Include <string.h> first.
39081
39082 2007-12-22  Bruno Haible  <bruno@clisp.org>
39083
39084         * gnulib-tool (func_create_testdir): Change $auxdir while generating
39085         the contents of $testsbase.
39086         Reported by Ralf Wildenhues.
39087
39088 2007-12-22  Bruno Haible  <bruno@clisp.org>
39089
39090         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
39091         two variables local_ldadd_before, local_ldadd_last.
39092
39093 2007-12-20  Eric Blake  <ebb9@byu.net>
39094
39095         Work around circular library issue when cross-compiling.
39096         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
39097         that progname.o does not need to pull in rpl_memcmp.
39098
39099 2007-12-19  Eric Blake  <ebb9@byu.net>
39100
39101         Fix memmem to avoid O(n^2) worst-case complexity.
39102         * lib/memmem.c (knuth_morris_pratt): New function.
39103         (memmem): Use it if first few naive iterations fail.
39104         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
39105         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
39106         * modules/memchr (License): Likewise.
39107         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
39108         malloca.
39109         * tests/test-memmem.c: Rewrite, borrowing ideas from
39110         test-mbsstr1.c; the old version wouldn't even compile!
39111         * modules/memmem-tests: New file.
39112         * lib/string.in.h (rpl_memmem): Add declaration.
39113         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
39114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
39115         REPLACE_MEMMEM.
39116
39117 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39118
39119         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
39120         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
39121         before any system include files, and undef after them all.  This
39122         should fix a problem on VMS reported by John E. Malmberg in
39123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
39124
39125 2007-12-17  Eric Blake  <ebb9@byu.net>
39126
39127         Revert addition of verify, for BSD/OS.
39128         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
39129         can't handle large files, for the sake of obsolete platforms.
39130         * modules/fseeko (Depends-on): Remove verify.
39131         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
39132         * doc/functions/ftello.texi (ftello): Likewise.
39133         * doc/functions/fgetpos.texi (fgetpos): Likewise.
39134         Reported by Larry Jones.
39135
39136 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
39137
39138         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
39139         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
39140
39141 2007-12-17  Jim Meyering  <meyering@redhat.com>
39142
39143         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
39144         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
39145         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
39146         * modules/getcwd (Depends-on): Add openat.
39147         Reported by Petr Salinger.
39148
39149 2007-12-17  Bruno Haible  <bruno@clisp.org>
39150
39151         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
39152         avoid a segmentation fault of the configure test on x86_64 systems.
39153
39154 2007-12-15  Jim Meyering  <meyering@redhat.com>
39155
39156         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
39157
39158 2007-12-13  Eric Blake  <ebb9@byu.net>
39159
39160         Another fseek test.
39161         * tests/test-fseek.c (main): Also test ungetc handling.
39162         * tests/test-fseeko.c (main): Likewise.
39163         * modules/fseeko (Depends-on): Add verify.
39164         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
39165         large.
39166         Reported by Larry Jones.
39167
39168         Fix fseeko on mingw.
39169         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
39170         seek.
39171
39172         Beef up fseek tests.
39173         * tests/test-fseek.c (main): Also test eof handling.
39174         * tests/test-fseeko.c (main): Likewise.
39175         Reported by Larry Jones.
39176
39177 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
39178
39179         Fix fseeko on BSD-based platforms.
39180         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
39181         successful seek.
39182
39183 2007-12-12  Eric Blake  <ebb9@byu.net>
39184
39185         Allow circular dependency of separate libtests.a
39186         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
39187         when use_libtests.
39188
39189 2007-12-11  Eric Blake  <ebb9@byu.net>
39190
39191         Fix bug with -0.0L in previous patch.
39192         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
39193         * tests/test-isnan.c (main): Also test on zeroes.
39194         * tests/test-isnanf.c (main): Likewise.
39195         * tests/test-isnanl.h (main): Likewise.
39196
39197         Detect pseudo-denormals on x86 even when cross-compiling.
39198         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
39199         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
39200         invalid bit patterns that happen to satisfy ==.
39201
39202         Avoid link failures with separate libtests.a.
39203         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
39204         last, to satisfy circular dependencies.
39205
39206 2007-12-11  Eric Blake  <ebb9@byu.net>
39207         and Bruno Haible  <bruno@clisp.org>
39208
39209         Fix OpenBSD 4.0 <float.h> handling of long double.
39210         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
39211         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
39212         * doc/headers/float.texi (float.h): Document OpenBSD bug.
39213
39214 2007-12-11  Jim Meyering  <meyering@redhat.com>
39215
39216         * users.txt: Add libvirt.
39217
39218         Support versions of autoconf prior to 2.59c.
39219         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
39220         if it is not already defined.
39221
39222 2007-12-09  Bruno Haible  <bruno@clisp.org>
39223
39224         Let 'gnulib-tool --import' collect sources needed for the tests in
39225         tests/ rather than in lib/.
39226         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
39227         argument. If true, add rules to generate libtests.a, and put libtests.a
39228         into $(LDADD). Consider source files in subdirectories and set
39229         uses_subdirs.
39230         (func_emit_initmacro_start, func_emit_initmacro_end,
39231         func_emit_initmacro_done): Pass all arguments explicitly.
39232         (func_import): Determine two module lists main_modules,
39233         testsrelated_modules. Determine use_libtests. Determine two variables
39234         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
39235         instead of just sed_transform_lib_file. Determine two variables
39236         main_files and testsrelated_files. Compute 'files' as the union of
39237         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
39238         func_add_or_update. In the generated gnulib-comp.m4, collect the
39239         object files for tests/ in different variables than those for lib/.
39240         Substitute LIBTESTS_LIBDEPS.
39241         (func_create_testdir): Combine the uses_subdirs results from
39242         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
39243
39244 2007-12-09  Bruno Haible  <bruno@clisp.org>
39245
39246         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
39247         the build-aux directory.
39248
39249 2007-12-09  Bruno Haible  <bruno@clisp.org>
39250
39251         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
39252         introduced on 2006-09-09.
39253
39254 2007-12-07  Jim Meyering  <meyering@redhat.com>
39255
39256         Let these macros work also with autoconf-2.59.
39257         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
39258         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
39259         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39260
39261 2007-12-06  Jim Meyering  <meyering@redhat.com>
39262
39263         Avoid a configure-time syntax error in gl_FUNC_ACL.
39264         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
39265         function in each branch, before testing the cache variable.
39266
39267 2007-12-04  Eric Blake  <ebb9@byu.net>
39268
39269         Make scripts executable.
39270         * build-aux/config.guess: Add execute permissions.
39271         * build-aux/config.sub: Likewise.
39272         * build-aux/gendocs.sh: Likewise.
39273
39274         Fix frexp on mingw.
39275         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
39276         cross-compiling.
39277         * doc/functions/frexp.texi (frexp): Document the bug.
39278
39279         Make cygwin fseeko check more reliable.
39280         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
39281         version numbers, rather than unrelated feature check.
39282         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
39283         * doc/functions/ftello.texi (ftello): Likewise.
39284         Reported by Bruno Haible.
39285
39286         * m4/strerror.m4: Bump version number.
39287
39288 2007-12-03  Bruno Haible  <bruno@clisp.org>
39289
39290         * doc/functions/mprotect.texi: Mention the mingw problem.
39291
39292 2007-12-03  Eric Blake  <ebb9@byu.net>
39293
39294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
39295         REPLACE_STRERROR is initialized before this macro.
39296
39297 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39298
39299         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
39300         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
39301         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
39302         put -lsec in even for programs other than 'ls'.  This fixes a problem
39303         for gettext reported by Bruno Haible in
39304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
39305         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
39306         Add support for Solaris 10.  This isn't efficient, but should get the
39307         job done for now.
39308
39309 2007-12-03  James Youngman  <jay@gnu.org>
39310
39311         * doc/regexprops-generic.texi: change "an close-group" to "a
39312         close-group" and "illegal" to "not allowed".
39313
39314 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39315
39316         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
39317         pr_byname.h. Needed for the rare case when the maintainer has done
39318         "make maintainer-clean" in the source directory and then attempts a
39319         build outside the source directory.
39320         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
39321         scripts_byname.h.
39322
39323 2007-12-02  Martin Lambers <marlam@marlam.de>
39324             Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/getpagesize.h: Remove file.
39327         * lib/unistd.in.h: Include declaration of getpagesize here.
39328         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
39329         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
39330         HAVE_SYS_PARAM_H.
39331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
39332         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39333         * modules/getpagesize (Files): Remove lib/getpagesize.h.
39334         (Depends-on): Add unistd.
39335         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39336         (Include): Use <unistd.h> instead of getpagesize.h.
39337         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
39338         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39339         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
39340         gl_GETPAGESIZE invocation, already handled by module dependency.
39341         * lib/pagealign_alloc.c: Don't include getpagesize.h.
39342
39343 2007-12-02  Bruno Haible  <bruno@clisp.org>
39344
39345         * modules/strings-tests: New file.
39346         * tests/test-strings.c: New file.
39347
39348         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
39349         * lib/strings.in.h: New file.
39350         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
39351         * m4/strings_h.m4: New file.
39352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
39353         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
39354         * modules/strings: New file.
39355         * modules/string (Makefile.am): Update.
39356         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
39357         Reported by Karl Berry.
39358
39359 2007-12-01  Eric Blake  <ebb9@byu.net>
39360
39361         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
39362         accomodate fix in cygwin 1.5.25.
39363
39364 2007-12-01  Jim Meyering  <meyering@redhat.com>
39365
39366         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
39367         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
39368         that would inhibit utf8-optimization of a regexp containing line-
39369         or buffer-anchors, e.g., `^', `$'.
39370
39371 2007-11-30  Bruno Haible  <bruno@clisp.org>
39372
39373         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
39374         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
39375         glthread_recursive_lock_init.
39376         * lib/lock.c (glthread_recursive_lock_init)
39377         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
39378         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39379
39380 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
39381
39382         New function qset_acl, like set_acl but with syscall semantics.
39383         * lib/acl.h (qset_acl): New decl.
39384         * lib/acl.c (qset_acl): New function.
39385         (set_acl): Use new function.  Use more-consistent diagnostics.
39386
39387 2007-11-28  Jim Meyering  <meyering@redhat.com>
39388
39389         * modules/physmem (License): Change from GPL to LGPLv2+.
39390
39391 2007-11-26  Bruno Haible  <bruno@clisp.org>
39392
39393         * lib/vasnprintf.c (decode_long_double): Don't abort if the
39394         'long double' type has excess precision.
39395         Reported by Jim Meyering in
39396         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
39397
39398 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39399
39400         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
39401         Sync from <http://gnu.org/licenses>.
39402         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
39403         with license text from same location.
39404         * doc/maintain.texi, doc/standards.texi:  Sync from
39405         <http://savannah.gnu.org/projects/gnustandards>.
39406
39407 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
39408         and Jim Meyering  <meyering@redhat.com>
39409
39410         Adjust getdate' grammar to accept a slightly more regular language.
39411         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
39412         Before, the former was rejected.
39413         * lib/getdate.y (digits_to_date_time): New function, factored
39414         out of ...
39415         (number): ...here.  Just call digits_to_date_time.
39416         (hybrid): New non-terminal to handle an <unsigned number,
39417         signed relative offset> sequence consistently.
39418
39419 2007-11-18  Jim Meyering  <meyering@redhat.com>
39420
39421         Pull my changes from coreutils:
39422         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
39423         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
39424         use of $gnulib_tool_option_extras, so that it's separated from the
39425         preceding argument.
39426
39427         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
39428         * build-aux/bootstrap (cp_mark_as_generated): Create any required
39429         parent destination directories before copying a file into place.
39430
39431 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39432
39433         bootstrap: work also with 4-argument variant of AC_INIT
39434         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
39435
39436 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39437
39438         Port test-getaddrinfo to Solaris.
39439         Problem reported by Bruno Haible in
39440         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
39441         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
39442         explanation of setting 'hints'.
39443         Don't reject an implementation merely because it returns EAI_SERVICE.
39444         (EAI_SERVICE): Define to 0 if not defined.
39445
39446 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39447
39448         The license of gnu-make and posix-shell is now "GPLed build tool".
39449         * modules/gnu-make (License): Likewise.
39450         * modules/posix-shell (License): Likewise.
39451
39452         New module posix-shell, for determining a POSIX shell
39453         or perhaps something that is close enough to a POSIX shell.
39454         * m4/posix-shell.m4: New file.
39455         * modules/posix-shell: New file.
39456
39457         * MODULES.html.sh: Mention new module.
39458
39459         New module gnu-make, for determining whether we're using GNU Make.
39460         * m4/gnu-make.m4: New file.
39461         * modules/gnu-make: New file.
39462         * MODULES.html.sh: Mention new module.
39463
39464 2007-11-14  Jim Meyering  <meyering@redhat.com>
39465
39466         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
39467         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
39468         use this macro to create a function _definition_.
39469         Remove useless "#undef ARGMATCH_DIE".
39470
39471 2007-11-14  Bruno Haible  <bruno@clisp.org>
39472
39473         * lib/config.charset: Update for OpenBSD 4.1.
39474         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
39475
39476 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
39477
39478         Document 64-bit #if problems in stdint.texi.
39479         * doc/headers/stdint.texi (stdint.h): Mention problems with
39480         64-bit-#if, and how to work around them.
39481
39482         Don't insist on 'long long int' support in the preprocessor.  It
39483         breaks too many things.  For example, PRIdMAX still uses a 'long
39484         long int' format with the latest Sun compiler, even though
39485         HAVE_LONG_LONG_INT isn't defined due to that compiler's
39486         preprocessor problem.  This causes the latest coreutils to dump
39487         core on Solaris 10 sparc with the Sun C compiler.
39488         Instead, fix the 2007-10-16 problem in a different way, by evaluating
39489         the troublesome expressions at configure-time, not at #if-time.
39490         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
39491         preprocessor.
39492         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
39493         compile-time C checks, done at 'configure'-time.
39494         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
39495         * modules/inttypes (Makefile): Substitute the new symbols that
39496         gl_INTTYPES_H now generates.
39497         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
39498
39499 2007-11-12  Bruno Haible  <bruno@clisp.org>
39500
39501         Tests for Unicode character classification functions.
39502
39503         * modules/unictype/bidicategory-byname-tests: New file.
39504         * modules/unictype/bidicategory-name-tests: New file.
39505         * modules/unictype/bidicategory-of-tests: New file.
39506         * modules/unictype/bidicategory-test-tests: New file.
39507         * modules/unictype/block-list-tests: New file.
39508         * modules/unictype/block-of-tests: New file.
39509         * modules/unictype/block-test-tests: New file.
39510         * modules/unictype/category-C-tests: New file.
39511         * modules/unictype/category-Cc-tests: New file.
39512         * modules/unictype/category-Cf-tests: New file.
39513         * modules/unictype/category-Cn-tests: New file.
39514         * modules/unictype/category-Co-tests: New file.
39515         * modules/unictype/category-Cs-tests: New file.
39516         * modules/unictype/category-L-tests: New file.
39517         * modules/unictype/category-Ll-tests: New file.
39518         * modules/unictype/category-Lm-tests: New file.
39519         * modules/unictype/category-Lo-tests: New file.
39520         * modules/unictype/category-Lt-tests: New file.
39521         * modules/unictype/category-Lu-tests: New file.
39522         * modules/unictype/category-M-tests: New file.
39523         * modules/unictype/category-Mc-tests: New file.
39524         * modules/unictype/category-Me-tests: New file.
39525         * modules/unictype/category-Mn-tests: New file.
39526         * modules/unictype/category-N-tests: New file.
39527         * modules/unictype/category-Nd-tests: New file.
39528         * modules/unictype/category-Nl-tests: New file.
39529         * modules/unictype/category-No-tests: New file.
39530         * modules/unictype/category-P-tests: New file.
39531         * modules/unictype/category-Pc-tests: New file.
39532         * modules/unictype/category-Pd-tests: New file.
39533         * modules/unictype/category-Pe-tests: New file.
39534         * modules/unictype/category-Pf-tests: New file.
39535         * modules/unictype/category-Pi-tests: New file.
39536         * modules/unictype/category-Po-tests: New file.
39537         * modules/unictype/category-Ps-tests: New file.
39538         * modules/unictype/category-S-tests: New file.
39539         * modules/unictype/category-Sc-tests: New file.
39540         * modules/unictype/category-Sk-tests: New file.
39541         * modules/unictype/category-Sm-tests: New file.
39542         * modules/unictype/category-So-tests: New file.
39543         * modules/unictype/category-Z-tests: New file.
39544         * modules/unictype/category-Zl-tests: New file.
39545         * modules/unictype/category-Zp-tests: New file.
39546         * modules/unictype/category-Zs-tests: New file.
39547         * modules/unictype/category-and-not-tests: New file.
39548         * modules/unictype/category-and-tests: New file.
39549         * modules/unictype/category-byname-tests: New file.
39550         * modules/unictype/category-name-tests: New file.
39551         * modules/unictype/category-none-tests: New file.
39552         * modules/unictype/category-of-tests: New file.
39553         * modules/unictype/category-or-tests: New file.
39554         * modules/unictype/category-test-withtable-tests: New file.
39555         * modules/unictype/combining-class-tests: New file.
39556         * modules/unictype/ctype-alnum-tests: New file.
39557         * modules/unictype/ctype-alpha-tests: New file.
39558         * modules/unictype/ctype-blank-tests: New file.
39559         * modules/unictype/ctype-cntrl-tests: New file.
39560         * modules/unictype/ctype-digit-tests: New file.
39561         * modules/unictype/ctype-graph-tests: New file.
39562         * modules/unictype/ctype-lower-tests: New file.
39563         * modules/unictype/ctype-print-tests: New file.
39564         * modules/unictype/ctype-punct-tests: New file.
39565         * modules/unictype/ctype-space-tests: New file.
39566         * modules/unictype/ctype-upper-tests: New file.
39567         * modules/unictype/ctype-xdigit-tests: New file.
39568         * modules/unictype/decimal-digit-tests: New file.
39569         * modules/unictype/digit-tests: New file.
39570         * modules/unictype/mirror-tests: New file.
39571         * modules/unictype/numeric-tests: New file.
39572         * modules/unictype/property-alphabetic-tests: New file.
39573         * modules/unictype/property-ascii-hex-digit-tests: New file.
39574         * modules/unictype/property-bidi-arabic-digit-tests: New file.
39575         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
39576         * modules/unictype/property-bidi-block-separator-tests: New file.
39577         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
39578         * modules/unictype/property-bidi-common-separator-tests: New file.
39579         * modules/unictype/property-bidi-control-tests: New file.
39580         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
39581         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
39582         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
39583         * modules/unictype/property-bidi-european-digit-tests: New file.
39584         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
39585         * modules/unictype/property-bidi-left-to-right-tests: New file.
39586         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
39587         * modules/unictype/property-bidi-other-neutral-tests: New file.
39588         * modules/unictype/property-bidi-pdf-tests: New file.
39589         * modules/unictype/property-bidi-segment-separator-tests: New file.
39590         * modules/unictype/property-bidi-whitespace-tests: New file.
39591         * modules/unictype/property-byname-tests: New file.
39592         * modules/unictype/property-combining-tests: New file.
39593         * modules/unictype/property-composite-tests: New file.
39594         * modules/unictype/property-currency-symbol-tests: New file.
39595         * modules/unictype/property-dash-tests: New file.
39596         * modules/unictype/property-decimal-digit-tests: New file.
39597         * modules/unictype/property-default-ignorable-code-point-tests: New file.
39598         * modules/unictype/property-deprecated-tests: New file.
39599         * modules/unictype/property-diacritic-tests: New file.
39600         * modules/unictype/property-extender-tests: New file.
39601         * modules/unictype/property-format-control-tests: New file.
39602         * modules/unictype/property-grapheme-base-tests: New file.
39603         * modules/unictype/property-grapheme-extend-tests: New file.
39604         * modules/unictype/property-grapheme-link-tests: New file.
39605         * modules/unictype/property-hex-digit-tests: New file.
39606         * modules/unictype/property-hyphen-tests: New file.
39607         * modules/unictype/property-id-continue-tests: New file.
39608         * modules/unictype/property-id-start-tests: New file.
39609         * modules/unictype/property-ideographic-tests: New file.
39610         * modules/unictype/property-ids-binary-operator-tests: New file.
39611         * modules/unictype/property-ids-trinary-operator-tests: New file.
39612         * modules/unictype/property-ignorable-control-tests: New file.
39613         * modules/unictype/property-iso-control-tests: New file.
39614         * modules/unictype/property-join-control-tests: New file.
39615         * modules/unictype/property-left-of-pair-tests: New file.
39616         * modules/unictype/property-line-separator-tests: New file.
39617         * modules/unictype/property-logical-order-exception-tests: New file.
39618         * modules/unictype/property-lowercase-tests: New file.
39619         * modules/unictype/property-math-tests: New file.
39620         * modules/unictype/property-non-break-tests: New file.
39621         * modules/unictype/property-not-a-character-tests: New file.
39622         * modules/unictype/property-numeric-tests: New file.
39623         * modules/unictype/property-other-alphabetic-tests: New file.
39624         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
39625         * modules/unictype/property-other-grapheme-extend-tests: New file.
39626         * modules/unictype/property-other-id-continue-tests: New file.
39627         * modules/unictype/property-other-id-start-tests: New file.
39628         * modules/unictype/property-other-lowercase-tests: New file.
39629         * modules/unictype/property-other-math-tests: New file.
39630         * modules/unictype/property-other-uppercase-tests: New file.
39631         * modules/unictype/property-paired-punctuation-tests: New file.
39632         * modules/unictype/property-paragraph-separator-tests: New file.
39633         * modules/unictype/property-pattern-syntax-tests: New file.
39634         * modules/unictype/property-pattern-white-space-tests: New file.
39635         * modules/unictype/property-private-use-tests: New file.
39636         * modules/unictype/property-punctuation-tests: New file.
39637         * modules/unictype/property-quotation-mark-tests: New file.
39638         * modules/unictype/property-radical-tests: New file.
39639         * modules/unictype/property-sentence-terminal-tests: New file.
39640         * modules/unictype/property-soft-dotted-tests: New file.
39641         * modules/unictype/property-space-tests: New file.
39642         * modules/unictype/property-terminal-punctuation-tests: New file.
39643         * modules/unictype/property-test-tests: New file.
39644         * modules/unictype/property-titlecase-tests: New file.
39645         * modules/unictype/property-unassigned-code-value-tests: New file.
39646         * modules/unictype/property-unified-ideograph-tests: New file.
39647         * modules/unictype/property-uppercase-tests: New file.
39648         * modules/unictype/property-variation-selector-tests: New file.
39649         * modules/unictype/property-white-space-tests: New file.
39650         * modules/unictype/property-xid-continue-tests: New file.
39651         * modules/unictype/property-xid-start-tests: New file.
39652         * modules/unictype/property-zero-width-tests: New file.
39653         * modules/unictype/scripts-tests: New file.
39654         * modules/unictype/syntax-c-ident-tests: New file.
39655         * modules/unictype/syntax-c-whitespace-tests: New file.
39656         * modules/unictype/syntax-java-ident-tests: New file.
39657         * modules/unictype/syntax-java-whitespace-tests: New file.
39658         * tests/unictype/test-bidi_byname.c: New file.
39659         * tests/unictype/test-bidi_name.c: New file.
39660         * tests/unictype/test-bidi_of.c: New file.
39661         * tests/unictype/test-bidi_test.c: New file.
39662         * tests/unictype/test-block_list.c: New file.
39663         * tests/unictype/test-block_of.c: New file.
39664         * tests/unictype/test-block_test.c: New file.
39665         * tests/unictype/test-categ_and.c: New file.
39666         * tests/unictype/test-categ_and_not.c: New file.
39667         * tests/unictype/test-categ_byname.c: New file.
39668         * tests/unictype/test-categ_name.c: New file.
39669         * tests/unictype/test-categ_none.c: New file.
39670         * tests/unictype/test-categ_of.c: New file.
39671         * tests/unictype/test-categ_or.c: New file.
39672         * tests/unictype/test-categ_test_withtable.c: New file.
39673         * tests/unictype/test-combining.c: New file.
39674         * tests/unictype/test-decdigit.c: New file.
39675         * tests/unictype/test-digit.c: New file.
39676         * tests/unictype/test-mirror.c: New file.
39677         * tests/unictype/test-numeric.c: New file.
39678         * tests/unictype/test-pr_byname.c: New file.
39679         * tests/unictype/test-pr_test.c: New file.
39680         * tests/unictype/test-predicate-part1.h: New file.
39681         * tests/unictype/test-predicate-part2.h: New file.
39682         * tests/unictype/test-scripts.c: New file.
39683         * tests/unictype/test-sy_c_ident.c: New file.
39684         * tests/unictype/test-sy_java_ident.c: New file.
39685
39686         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
39687         for Unicode 5.0.0.
39688         * tests/unictype/test-categ_Cc.c: Likewise.
39689         * tests/unictype/test-categ_Cf.c: Likewise.
39690         * tests/unictype/test-categ_Cn.c: Likewise.
39691         * tests/unictype/test-categ_Co.c: Likewise.
39692         * tests/unictype/test-categ_Cs.c: Likewise.
39693         * tests/unictype/test-categ_L.c: Likewise.
39694         * tests/unictype/test-categ_Ll.c: Likewise.
39695         * tests/unictype/test-categ_Lm.c: Likewise.
39696         * tests/unictype/test-categ_Lo.c: Likewise.
39697         * tests/unictype/test-categ_Lt.c: Likewise.
39698         * tests/unictype/test-categ_Lu.c: Likewise.
39699         * tests/unictype/test-categ_M.c: Likewise.
39700         * tests/unictype/test-categ_Mc.c: Likewise.
39701         * tests/unictype/test-categ_Me.c: Likewise.
39702         * tests/unictype/test-categ_Mn.c: Likewise.
39703         * tests/unictype/test-categ_N.c: Likewise.
39704         * tests/unictype/test-categ_Nd.c: Likewise.
39705         * tests/unictype/test-categ_Nl.c: Likewise.
39706         * tests/unictype/test-categ_No.c: Likewise.
39707         * tests/unictype/test-categ_P.c: Likewise.
39708         * tests/unictype/test-categ_Pc.c: Likewise.
39709         * tests/unictype/test-categ_Pd.c: Likewise.
39710         * tests/unictype/test-categ_Pe.c: Likewise.
39711         * tests/unictype/test-categ_Pf.c: Likewise.
39712         * tests/unictype/test-categ_Pi.c: Likewise.
39713         * tests/unictype/test-categ_Po.c: Likewise.
39714         * tests/unictype/test-categ_Ps.c: Likewise.
39715         * tests/unictype/test-categ_S.c: Likewise.
39716         * tests/unictype/test-categ_Sc.c: Likewise.
39717         * tests/unictype/test-categ_Sk.c: Likewise.
39718         * tests/unictype/test-categ_Sm.c: Likewise.
39719         * tests/unictype/test-categ_So.c: Likewise.
39720         * tests/unictype/test-categ_Z.c: Likewise.
39721         * tests/unictype/test-categ_Zl.c: Likewise.
39722         * tests/unictype/test-categ_Zp.c: Likewise.
39723         * tests/unictype/test-categ_Zs.c: Likewise.
39724         * tests/unictype/test-ctype_alnum.c: Likewise.
39725         * tests/unictype/test-ctype_alpha.c: Likewise.
39726         * tests/unictype/test-ctype_blank.c: Likewise.
39727         * tests/unictype/test-ctype_cntrl.c: Likewise.
39728         * tests/unictype/test-ctype_digit.c: Likewise.
39729         * tests/unictype/test-ctype_graph.c: Likewise.
39730         * tests/unictype/test-ctype_lower.c: Likewise.
39731         * tests/unictype/test-ctype_print.c: Likewise.
39732         * tests/unictype/test-ctype_punct.c: Likewise.
39733         * tests/unictype/test-ctype_space.c: Likewise.
39734         * tests/unictype/test-ctype_upper.c: Likewise.
39735         * tests/unictype/test-ctype_xdigit.c: Likewise.
39736         * tests/unictype/test-decdigit.h: Likewise.
39737         * tests/unictype/test-digit.h: Likewise.
39738         * tests/unictype/test-numeric.h: Likewise.
39739         * tests/unictype/test-pr_alphabetic.c: Likewise.
39740         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39741         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39742         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39743         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39744         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39745         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39746         * tests/unictype/test-pr_bidi_control.c: Likewise.
39747         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39748         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39749         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39750         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39751         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39752         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39753         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39754         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39755         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39756         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39757         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39758         * tests/unictype/test-pr_combining.c: Likewise.
39759         * tests/unictype/test-pr_composite.c: Likewise.
39760         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39761         * tests/unictype/test-pr_dash.c: Likewise.
39762         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39763         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39764         * tests/unictype/test-pr_deprecated.c: Likewise.
39765         * tests/unictype/test-pr_diacritic.c: Likewise.
39766         * tests/unictype/test-pr_extender.c: Likewise.
39767         * tests/unictype/test-pr_format_control.c: Likewise.
39768         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39769         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39770         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39771         * tests/unictype/test-pr_hex_digit.c: Likewise.
39772         * tests/unictype/test-pr_hyphen.c: Likewise.
39773         * tests/unictype/test-pr_id_continue.c: Likewise.
39774         * tests/unictype/test-pr_id_start.c: Likewise.
39775         * tests/unictype/test-pr_ideographic.c: Likewise.
39776         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39777         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39778         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39779         * tests/unictype/test-pr_iso_control.c: Likewise.
39780         * tests/unictype/test-pr_join_control.c: Likewise.
39781         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39782         * tests/unictype/test-pr_line_separator.c: Likewise.
39783         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39784         * tests/unictype/test-pr_lowercase.c: Likewise.
39785         * tests/unictype/test-pr_math.c: Likewise.
39786         * tests/unictype/test-pr_non_break.c: Likewise.
39787         * tests/unictype/test-pr_not_a_character.c: Likewise.
39788         * tests/unictype/test-pr_numeric.c: Likewise.
39789         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39790         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39791         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39792         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39793         * tests/unictype/test-pr_other_id_start.c: Likewise.
39794         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39795         * tests/unictype/test-pr_other_math.c: Likewise.
39796         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39797         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39798         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39799         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39800         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39801         * tests/unictype/test-pr_private_use.c: Likewise.
39802         * tests/unictype/test-pr_punctuation.c: Likewise.
39803         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39804         * tests/unictype/test-pr_radical.c: Likewise.
39805         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39806         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39807         * tests/unictype/test-pr_space.c: Likewise.
39808         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39809         * tests/unictype/test-pr_titlecase.c: Likewise.
39810         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39811         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39812         * tests/unictype/test-pr_uppercase.c: Likewise.
39813         * tests/unictype/test-pr_variation_selector.c: Likewise.
39814         * tests/unictype/test-pr_white_space.c: Likewise.
39815         * tests/unictype/test-pr_xid_continue.c: Likewise.
39816         * tests/unictype/test-pr_xid_start.c: Likewise.
39817         * tests/unictype/test-pr_zero_width.c: Likewise.
39818         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39819         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39820
39821 2007-11-12  Bruno Haible  <bruno@clisp.org>
39822
39823         Unicode character classification functions.
39824         * lib/unictype.h: New file.
39825         * modules/unictype/base: New file.
39826         * modules/unictype/category-L: New file.
39827         * modules/unictype/category-Lu: New file.
39828         * modules/unictype/category-Ll: New file.
39829         * modules/unictype/category-Lt: New file.
39830         * modules/unictype/category-Lm: New file.
39831         * modules/unictype/category-Lo: New file.
39832         * modules/unictype/category-M: New file.
39833         * modules/unictype/category-Mn: New file.
39834         * modules/unictype/category-Mc: New file.
39835         * modules/unictype/category-Me: New file.
39836         * modules/unictype/category-N: New file.
39837         * modules/unictype/category-Nd: New file.
39838         * modules/unictype/category-Nl: New file.
39839         * modules/unictype/category-No: New file.
39840         * modules/unictype/category-P: New file.
39841         * modules/unictype/category-Pc: New file.
39842         * modules/unictype/category-Pd: New file.
39843         * modules/unictype/category-Ps: New file.
39844         * modules/unictype/category-Pe: New file.
39845         * modules/unictype/category-Pi: New file.
39846         * modules/unictype/category-Pf: New file.
39847         * modules/unictype/category-Po: New file.
39848         * modules/unictype/category-S: New file.
39849         * modules/unictype/category-Sm: New file.
39850         * modules/unictype/category-Sc: New file.
39851         * modules/unictype/category-Sk: New file.
39852         * modules/unictype/category-So: New file.
39853         * modules/unictype/category-Z: New file.
39854         * modules/unictype/category-Zs: New file.
39855         * modules/unictype/category-Zl: New file.
39856         * modules/unictype/category-Zp: New file.
39857         * modules/unictype/category-C: New file.
39858         * modules/unictype/category-Cc: New file.
39859         * modules/unictype/category-Cf: New file.
39860         * modules/unictype/category-Cs: New file.
39861         * modules/unictype/category-Co: New file.
39862         * modules/unictype/category-Cn: New file.
39863         * modules/unictype/category-or: New file.
39864         * modules/unictype/category-of: New file.
39865         * modules/unictype/category-test: New file.
39866         * modules/unictype/category-test-withtable: New file.
39867         * modules/unictype/category-byname: New file.
39868         * modules/unictype/category-none: New file.
39869         * modules/unictype/category-and: New file.
39870         * modules/unictype/category-and-not: New file.
39871         * modules/unictype/category-name: New file.
39872         * modules/unictype/combining-class: New file.
39873         * modules/unictype/category-all: New file.
39874         * modules/unictype/bidicategory-all: New file.
39875         * modules/unictype/bidicategory-byname: New file.
39876         * modules/unictype/bidicategory-name: New file.
39877         * modules/unictype/bidicategory-of: New file.
39878         * modules/unictype/bidicategory-test: New file.
39879         * modules/unictype/decimal-digit: New file.
39880         * modules/unictype/digit: New file.
39881         * modules/unictype/numeric: New file.
39882         * modules/unictype/mirror: New file.
39883         * modules/unictype/property-white-space: New file.
39884         * modules/unictype/property-alphabetic: New file.
39885         * modules/unictype/property-other-alphabetic: New file.
39886         * modules/unictype/property-not-a-character: New file.
39887         * modules/unictype/property-default-ignorable-code-point: New file.
39888         * modules/unictype/property-other-default-ignorable-code-point: New
39889         file.
39890         * modules/unictype/property-deprecated: New file.
39891         * modules/unictype/property-logical-order-exception: New file.
39892         * modules/unictype/property-variation-selector: New file.
39893         * modules/unictype/property-private-use: New file.
39894         * modules/unictype/property-unassigned-code-value: New file.
39895         * modules/unictype/property-uppercase: New file.
39896         * modules/unictype/property-other-uppercase: New file.
39897         * modules/unictype/property-lowercase: New file.
39898         * modules/unictype/property-other-lowercase: New file.
39899         * modules/unictype/property-titlecase: New file.
39900         * modules/unictype/property-soft-dotted: New file.
39901         * modules/unictype/property-id-start: New file.
39902         * modules/unictype/property-other-id-start: New file.
39903         * modules/unictype/property-id-continue: New file.
39904         * modules/unictype/property-other-id-continue: New file.
39905         * modules/unictype/property-xid-start: New file.
39906         * modules/unictype/property-xid-continue: New file.
39907         * modules/unictype/property-pattern-white-space: New file.
39908         * modules/unictype/property-pattern-syntax: New file.
39909         * modules/unictype/property-join-control: New file.
39910         * modules/unictype/property-grapheme-base: New file.
39911         * modules/unictype/property-grapheme-extend: New file.
39912         * modules/unictype/property-other-grapheme-extend: New file.
39913         * modules/unictype/property-grapheme-link: New file.
39914         * modules/unictype/property-bidi-control: New file.
39915         * modules/unictype/property-bidi-left-to-right: New file.
39916         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39917         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39918         * modules/unictype/property-bidi-european-digit: New file.
39919         * modules/unictype/property-bidi-eur-num-separator: New file.
39920         * modules/unictype/property-bidi-eur-num-terminator: New file.
39921         * modules/unictype/property-bidi-arabic-digit: New file.
39922         * modules/unictype/property-bidi-common-separator: New file.
39923         * modules/unictype/property-bidi-block-separator: New file.
39924         * modules/unictype/property-bidi-segment-separator: New file.
39925         * modules/unictype/property-bidi-whitespace: New file.
39926         * modules/unictype/property-bidi-non-spacing-mark: New file.
39927         * modules/unictype/property-bidi-boundary-neutral: New file.
39928         * modules/unictype/property-bidi-pdf: New file.
39929         * modules/unictype/property-bidi-embedding-or-override: New file.
39930         * modules/unictype/property-bidi-other-neutral: New file.
39931         * modules/unictype/property-hex-digit: New file.
39932         * modules/unictype/property-ascii-hex-digit: New file.
39933         * modules/unictype/property-ideographic: New file.
39934         * modules/unictype/property-unified-ideograph: New file.
39935         * modules/unictype/property-radical: New file.
39936         * modules/unictype/property-ids-binary-operator: New file.
39937         * modules/unictype/property-ids-trinary-operator: New file.
39938         * modules/unictype/property-zero-width: New file.
39939         * modules/unictype/property-space: New file.
39940         * modules/unictype/property-non-break: New file.
39941         * modules/unictype/property-iso-control: New file.
39942         * modules/unictype/property-format-control: New file.
39943         * modules/unictype/property-dash: New file.
39944         * modules/unictype/property-hyphen: New file.
39945         * modules/unictype/property-punctuation: New file.
39946         * modules/unictype/property-line-separator: New file.
39947         * modules/unictype/property-paragraph-separator: New file.
39948         * modules/unictype/property-quotation-mark: New file.
39949         * modules/unictype/property-sentence-terminal: New file.
39950         * modules/unictype/property-terminal-punctuation: New file.
39951         * modules/unictype/property-currency-symbol: New file.
39952         * modules/unictype/property-math: New file.
39953         * modules/unictype/property-other-math: New file.
39954         * modules/unictype/property-paired-punctuation: New file.
39955         * modules/unictype/property-left-of-pair: New file.
39956         * modules/unictype/property-combining: New file.
39957         * modules/unictype/property-composite: New file.
39958         * modules/unictype/property-decimal-digit: New file.
39959         * modules/unictype/property-numeric: New file.
39960         * modules/unictype/property-diacritic: New file.
39961         * modules/unictype/property-extender: New file.
39962         * modules/unictype/property-ignorable-control: New file.
39963         * modules/unictype/property-test: New file.
39964         * modules/unictype/property-byname: New file.
39965         * modules/unictype/property-all: New file.
39966         * modules/unictype/scripts: New file.
39967         * modules/unictype/scripts-all: New file.
39968         * modules/unictype/block-of: New file.
39969         * modules/unictype/block-test: New file.
39970         * modules/unictype/block-list: New file.
39971         * modules/unictype/block-all: New file.
39972         * modules/unictype/syntax-c-whitespace: New file.
39973         * modules/unictype/syntax-java-whitespace: New file.
39974         * modules/unictype/syntax-c-ident: New file.
39975         * modules/unictype/syntax-java-ident: New file.
39976         * modules/unictype/ctype-alnum: New file.
39977         * modules/unictype/ctype-alpha: New file.
39978         * modules/unictype/ctype-cntrl: New file.
39979         * modules/unictype/ctype-digit: New file.
39980         * modules/unictype/ctype-graph: New file.
39981         * modules/unictype/ctype-lower: New file.
39982         * modules/unictype/ctype-print: New file.
39983         * modules/unictype/ctype-punct: New file.
39984         * modules/unictype/ctype-space: New file.
39985         * modules/unictype/ctype-upper: New file.
39986         * modules/unictype/ctype-xdigit: New file.
39987         * modules/unictype/ctype-blank: New file.
39988         * lib/unictype/bidi_byname.c: New file.
39989         * lib/unictype/bidi_name.c: New file.
39990         * lib/unictype/bidi_of.c: New file.
39991         * lib/unictype/bidi_test.c: New file.
39992         * lib/unictype/bitmap.h: New file.
39993         * lib/unictype/block_test.c: New file.
39994         * lib/unictype/blocks.c: New file.
39995         * lib/unictype/categ_C.c: New file.
39996         * lib/unictype/categ_Cc.c: New file.
39997         * lib/unictype/categ_Cf.c: New file.
39998         * lib/unictype/categ_Cn.c: New file.
39999         * lib/unictype/categ_Co.c: New file.
40000         * lib/unictype/categ_Cs.c: New file.
40001         * lib/unictype/categ_L.c: New file.
40002         * lib/unictype/categ_Ll.c: New file.
40003         * lib/unictype/categ_Lm.c: New file.
40004         * lib/unictype/categ_Lo.c: New file.
40005         * lib/unictype/categ_Lt.c: New file.
40006         * lib/unictype/categ_Lu.c: New file.
40007         * lib/unictype/categ_M.c: New file.
40008         * lib/unictype/categ_Mc.c: New file.
40009         * lib/unictype/categ_Me.c: New file.
40010         * lib/unictype/categ_Mn.c: New file.
40011         * lib/unictype/categ_N.c: New file.
40012         * lib/unictype/categ_Nd.c: New file.
40013         * lib/unictype/categ_Nl.c: New file.
40014         * lib/unictype/categ_No.c: New file.
40015         * lib/unictype/categ_P.c: New file.
40016         * lib/unictype/categ_Pc.c: New file.
40017         * lib/unictype/categ_Pd.c: New file.
40018         * lib/unictype/categ_Pe.c: New file.
40019         * lib/unictype/categ_Pf.c: New file.
40020         * lib/unictype/categ_Pi.c: New file.
40021         * lib/unictype/categ_Po.c: New file.
40022         * lib/unictype/categ_Ps.c: New file.
40023         * lib/unictype/categ_S.c: New file.
40024         * lib/unictype/categ_Sc.c: New file.
40025         * lib/unictype/categ_Sk.c: New file.
40026         * lib/unictype/categ_Sm.c: New file.
40027         * lib/unictype/categ_So.c: New file.
40028         * lib/unictype/categ_Z.c: New file.
40029         * lib/unictype/categ_Zl.c: New file.
40030         * lib/unictype/categ_Zp.c: New file.
40031         * lib/unictype/categ_Zs.c: New file.
40032         * lib/unictype/categ_and.c: New file.
40033         * lib/unictype/categ_and_not.c: New file.
40034         * lib/unictype/categ_byname.c: New file.
40035         * lib/unictype/categ_name.c: New file.
40036         * lib/unictype/categ_none.c: New file.
40037         * lib/unictype/categ_of.c: New file.
40038         * lib/unictype/categ_or.c: New file.
40039         * lib/unictype/categ_test.c: New file.
40040         * lib/unictype/combining.c: New file.
40041         * lib/unictype/ctype_alnum.c: New file.
40042         * lib/unictype/ctype_alpha.c: New file.
40043         * lib/unictype/ctype_blank.c: New file.
40044         * lib/unictype/ctype_cntrl.c: New file.
40045         * lib/unictype/ctype_digit.c: New file.
40046         * lib/unictype/ctype_graph.c: New file.
40047         * lib/unictype/ctype_lower.c: New file.
40048         * lib/unictype/ctype_print.c: New file.
40049         * lib/unictype/ctype_punct.c: New file.
40050         * lib/unictype/ctype_space.c: New file.
40051         * lib/unictype/ctype_upper.c: New file.
40052         * lib/unictype/ctype_xdigit.c: New file.
40053         * lib/unictype/decdigit.c: New file.
40054         * lib/unictype/digit.c: New file.
40055         * lib/unictype/identsyntaxmap.h: New file.
40056         * lib/unictype/mirror.c: New file.
40057         * lib/unictype/numeric.c: New file.
40058         * lib/unictype/pr_alphabetic.c: New file.
40059         * lib/unictype/pr_ascii_hex_digit.c: New file.
40060         * lib/unictype/pr_bidi_arabic_digit.c: New file.
40061         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
40062         * lib/unictype/pr_bidi_block_separator.c: New file.
40063         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
40064         * lib/unictype/pr_bidi_common_separator.c: New file.
40065         * lib/unictype/pr_bidi_control.c: New file.
40066         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
40067         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
40068         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
40069         * lib/unictype/pr_bidi_european_digit.c: New file.
40070         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
40071         * lib/unictype/pr_bidi_left_to_right.c: New file.
40072         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
40073         * lib/unictype/pr_bidi_other_neutral.c: New file.
40074         * lib/unictype/pr_bidi_pdf.c: New file.
40075         * lib/unictype/pr_bidi_segment_separator.c: New file.
40076         * lib/unictype/pr_bidi_whitespace.c: New file.
40077         * lib/unictype/pr_byname.c: New file.
40078         * lib/unictype/pr_byname.gperf: New file.
40079         * lib/unictype/pr_combining.c: New file.
40080         * lib/unictype/pr_composite.c: New file.
40081         * lib/unictype/pr_currency_symbol.c: New file.
40082         * lib/unictype/pr_dash.c: New file.
40083         * lib/unictype/pr_decimal_digit.c: New file.
40084         * lib/unictype/pr_default_ignorable_code_point.c: New file.
40085         * lib/unictype/pr_deprecated.c: New file.
40086         * lib/unictype/pr_diacritic.c: New file.
40087         * lib/unictype/pr_extender.c: New file.
40088         * lib/unictype/pr_format_control.c: New file.
40089         * lib/unictype/pr_grapheme_base.c: New file.
40090         * lib/unictype/pr_grapheme_extend.c: New file.
40091         * lib/unictype/pr_grapheme_link.c: New file.
40092         * lib/unictype/pr_hex_digit.c: New file.
40093         * lib/unictype/pr_hyphen.c: New file.
40094         * lib/unictype/pr_id_continue.c: New file.
40095         * lib/unictype/pr_id_start.c: New file.
40096         * lib/unictype/pr_ideographic.c: New file.
40097         * lib/unictype/pr_ids_binary_operator.c: New file.
40098         * lib/unictype/pr_ids_trinary_operator.c: New file.
40099         * lib/unictype/pr_ignorable_control.c: New file.
40100         * lib/unictype/pr_iso_control.c: New file.
40101         * lib/unictype/pr_join_control.c: New file.
40102         * lib/unictype/pr_left_of_pair.c: New file.
40103         * lib/unictype/pr_line_separator.c: New file.
40104         * lib/unictype/pr_logical_order_exception.c: New file.
40105         * lib/unictype/pr_lowercase.c: New file.
40106         * lib/unictype/pr_math.c: New file.
40107         * lib/unictype/pr_non_break.c: New file.
40108         * lib/unictype/pr_not_a_character.c: New file.
40109         * lib/unictype/pr_numeric.c: New file.
40110         * lib/unictype/pr_other_alphabetic.c: New file.
40111         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
40112         * lib/unictype/pr_other_grapheme_extend.c: New file.
40113         * lib/unictype/pr_other_id_continue.c: New file.
40114         * lib/unictype/pr_other_id_start.c: New file.
40115         * lib/unictype/pr_other_lowercase.c: New file.
40116         * lib/unictype/pr_other_math.c: New file.
40117         * lib/unictype/pr_other_uppercase.c: New file.
40118         * lib/unictype/pr_paired_punctuation.c: New file.
40119         * lib/unictype/pr_paragraph_separator.c: New file.
40120         * lib/unictype/pr_pattern_syntax.c: New file.
40121         * lib/unictype/pr_pattern_white_space.c: New file.
40122         * lib/unictype/pr_private_use.c: New file.
40123         * lib/unictype/pr_punctuation.c: New file.
40124         * lib/unictype/pr_quotation_mark.c: New file.
40125         * lib/unictype/pr_radical.c: New file.
40126         * lib/unictype/pr_sentence_terminal.c: New file.
40127         * lib/unictype/pr_soft_dotted.c: New file.
40128         * lib/unictype/pr_space.c: New file.
40129         * lib/unictype/pr_terminal_punctuation.c: New file.
40130         * lib/unictype/pr_test.c: New file.
40131         * lib/unictype/pr_titlecase.c: New file.
40132         * lib/unictype/pr_unassigned_code_value.c: New file.
40133         * lib/unictype/pr_unified_ideograph.c: New file.
40134         * lib/unictype/pr_uppercase.c: New file.
40135         * lib/unictype/pr_variation_selector.c: New file.
40136         * lib/unictype/pr_white_space.c: New file.
40137         * lib/unictype/pr_xid_continue.c: New file.
40138         * lib/unictype/pr_xid_start.c: New file.
40139         * lib/unictype/pr_zero_width.c: New file.
40140         * lib/unictype/scripts.c: New file.
40141         * lib/unictype/sy_c_ident.c: New file.
40142         * lib/unictype/sy_c_whitespace.c: New file.
40143         * lib/unictype/sy_java_ident.c: New file.
40144         * lib/unictype/sy_java_whitespace.c: New file.
40145
40146         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
40147         Unicode 5.0.0.
40148         * lib/unictype/blocks.h: Likewise.
40149         * lib/unictype/categ_C.h: Likewise.
40150         * lib/unictype/categ_Cc.h: Likewise.
40151         * lib/unictype/categ_Cf.h: Likewise.
40152         * lib/unictype/categ_Cn.h: Likewise.
40153         * lib/unictype/categ_Co.h: Likewise.
40154         * lib/unictype/categ_Cs.h: Likewise.
40155         * lib/unictype/categ_L.h: Likewise.
40156         * lib/unictype/categ_Ll.h: Likewise.
40157         * lib/unictype/categ_Lm.h: Likewise.
40158         * lib/unictype/categ_Lo.h: Likewise.
40159         * lib/unictype/categ_Lt.h: Likewise.
40160         * lib/unictype/categ_Lu.h: Likewise.
40161         * lib/unictype/categ_M.h: Likewise.
40162         * lib/unictype/categ_Mc.h: Likewise.
40163         * lib/unictype/categ_Me.h: Likewise.
40164         * lib/unictype/categ_Mn.h: Likewise.
40165         * lib/unictype/categ_N.h: Likewise.
40166         * lib/unictype/categ_Nd.h: Likewise.
40167         * lib/unictype/categ_Nl.h: Likewise.
40168         * lib/unictype/categ_No.h: Likewise.
40169         * lib/unictype/categ_P.h: Likewise.
40170         * lib/unictype/categ_Pc.h: Likewise.
40171         * lib/unictype/categ_Pd.h: Likewise.
40172         * lib/unictype/categ_Pe.h: Likewise.
40173         * lib/unictype/categ_Pf.h: Likewise.
40174         * lib/unictype/categ_Pi.h: Likewise.
40175         * lib/unictype/categ_Po.h: Likewise.
40176         * lib/unictype/categ_Ps.h: Likewise.
40177         * lib/unictype/categ_S.h: Likewise.
40178         * lib/unictype/categ_Sc.h: Likewise.
40179         * lib/unictype/categ_Sk.h: Likewise.
40180         * lib/unictype/categ_Sm.h: Likewise.
40181         * lib/unictype/categ_So.h: Likewise.
40182         * lib/unictype/categ_Z.h: Likewise.
40183         * lib/unictype/categ_Zl.h: Likewise.
40184         * lib/unictype/categ_Zp.h: Likewise.
40185         * lib/unictype/categ_Zs.h: Likewise.
40186         * lib/unictype/categ_of.h: Likewise.
40187         * lib/unictype/combining.h: Likewise.
40188         * lib/unictype/ctype_alnum.h: Likewise.
40189         * lib/unictype/ctype_alpha.h: Likewise.
40190         * lib/unictype/ctype_blank.h: Likewise.
40191         * lib/unictype/ctype_cntrl.h: Likewise.
40192         * lib/unictype/ctype_digit.h: Likewise.
40193         * lib/unictype/ctype_graph.h: Likewise.
40194         * lib/unictype/ctype_lower.h: Likewise.
40195         * lib/unictype/ctype_print.h: Likewise.
40196         * lib/unictype/ctype_punct.h: Likewise.
40197         * lib/unictype/ctype_space.h: Likewise.
40198         * lib/unictype/ctype_upper.h: Likewise.
40199         * lib/unictype/ctype_xdigit.h: Likewise.
40200         * lib/unictype/decdigit.h: Likewise.
40201         * lib/unictype/digit.h: Likewise.
40202         * lib/unictype/mirror.h: Likewise.
40203         * lib/unictype/numeric.h: Likewise.
40204         * lib/unictype/pr_alphabetic.h: Likewise.
40205         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40206         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40207         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40208         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40209         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40210         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40211         * lib/unictype/pr_bidi_control.h: Likewise.
40212         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40213         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40214         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40215         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40216         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40217         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40218         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40219         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40220         * lib/unictype/pr_bidi_pdf.h: Likewise.
40221         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40222         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40223         * lib/unictype/pr_combining.h: Likewise.
40224         * lib/unictype/pr_composite.h: Likewise.
40225         * lib/unictype/pr_currency_symbol.h: Likewise.
40226         * lib/unictype/pr_dash.h: Likewise.
40227         * lib/unictype/pr_decimal_digit.h: Likewise.
40228         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40229         * lib/unictype/pr_deprecated.h: Likewise.
40230         * lib/unictype/pr_diacritic.h: Likewise.
40231         * lib/unictype/pr_extender.h: Likewise.
40232         * lib/unictype/pr_format_control.h: Likewise.
40233         * lib/unictype/pr_grapheme_base.h: Likewise.
40234         * lib/unictype/pr_grapheme_extend.h: Likewise.
40235         * lib/unictype/pr_grapheme_link.h: Likewise.
40236         * lib/unictype/pr_hex_digit.h: Likewise.
40237         * lib/unictype/pr_hyphen.h: Likewise.
40238         * lib/unictype/pr_id_continue.h: Likewise.
40239         * lib/unictype/pr_id_start.h: Likewise.
40240         * lib/unictype/pr_ideographic.h: Likewise.
40241         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40242         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40243         * lib/unictype/pr_ignorable_control.h: Likewise.
40244         * lib/unictype/pr_iso_control.h: Likewise.
40245         * lib/unictype/pr_join_control.h: Likewise.
40246         * lib/unictype/pr_left_of_pair.h: Likewise.
40247         * lib/unictype/pr_line_separator.h: Likewise.
40248         * lib/unictype/pr_logical_order_exception.h: Likewise.
40249         * lib/unictype/pr_lowercase.h: Likewise.
40250         * lib/unictype/pr_math.h: Likewise.
40251         * lib/unictype/pr_non_break.h: Likewise.
40252         * lib/unictype/pr_not_a_character.h: Likewise.
40253         * lib/unictype/pr_numeric.h: Likewise.
40254         * lib/unictype/pr_other_alphabetic.h: Likewise.
40255         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40256         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40257         * lib/unictype/pr_other_id_continue.h: Likewise.
40258         * lib/unictype/pr_other_id_start.h: Likewise.
40259         * lib/unictype/pr_other_lowercase.h: Likewise.
40260         * lib/unictype/pr_other_math.h: Likewise.
40261         * lib/unictype/pr_other_uppercase.h: Likewise.
40262         * lib/unictype/pr_paired_punctuation.h: Likewise.
40263         * lib/unictype/pr_paragraph_separator.h: Likewise.
40264         * lib/unictype/pr_pattern_syntax.h: Likewise.
40265         * lib/unictype/pr_pattern_white_space.h: Likewise.
40266         * lib/unictype/pr_private_use.h: Likewise.
40267         * lib/unictype/pr_punctuation.h: Likewise.
40268         * lib/unictype/pr_quotation_mark.h: Likewise.
40269         * lib/unictype/pr_radical.h: Likewise.
40270         * lib/unictype/pr_sentence_terminal.h: Likewise.
40271         * lib/unictype/pr_soft_dotted.h: Likewise.
40272         * lib/unictype/pr_space.h: Likewise.
40273         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40274         * lib/unictype/pr_titlecase.h: Likewise.
40275         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40276         * lib/unictype/pr_unified_ideograph.h: Likewise.
40277         * lib/unictype/pr_uppercase.h: Likewise.
40278         * lib/unictype/pr_variation_selector.h: Likewise.
40279         * lib/unictype/pr_white_space.h: Likewise.
40280         * lib/unictype/pr_xid_continue.h: Likewise.
40281         * lib/unictype/pr_xid_start.h: Likewise.
40282         * lib/unictype/pr_zero_width.h: Likewise.
40283         * lib/unictype/scripts.h: Likewise.
40284         * lib/unictype/scripts_byname.gperf: Likewise.
40285         * lib/unictype/sy_c_ident.h: Likewise.
40286         * lib/unictype/sy_c_whitespace.h: Likewise.
40287         * lib/unictype/sy_java_ident.h: Likewise.
40288         * lib/unictype/sy_java_whitespace.h: Likewise.
40289
40290         * lib/unictype/Makefile: New file.
40291         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
40292         glibc.
40293         * lib/unictype/3level.h: New file, copied from glibc.
40294         * lib/unictype/3levelbit.h: New file.
40295
40296 2007-11-11  Bruno Haible  <bruno@clisp.org>
40297
40298         * modules/gperf: New file.
40299         * modules/iconv_open (Depends-on): Add it.
40300         (Makefile.am): Remove the GPERF definition.
40301
40302 2007-11-11  Bruno Haible  <bruno@clisp.org>
40303
40304         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
40305         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
40306
40307 2007-11-11  Bruno Haible  <bruno@clisp.org>
40308
40309         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
40310         (usage): Remove function.
40311
40312 2007-11-11  Bruno Haible  <bruno@clisp.org>
40313
40314         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
40315         gl_FUNC_CEILF_LIBS.
40316         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
40317         gl_FUNC_CEIL_LIBS.
40318         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
40319         gl_FUNC_CEILL_LIBS.
40320         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
40321         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
40322         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
40323
40324 2007-11-11  Bruno Haible  <bruno@clisp.org>
40325
40326         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
40327         roundf were declared but do not exist on functions.
40328         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
40329         roundl were declared but do not exist on functions.
40330         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
40331         HAVE_FLOORL_AND_CEILL, respectively.
40332         Needed for Sun C on Solaris 10.
40333
40334 2007-11-11  Bruno Haible  <bruno@clisp.org>
40335
40336         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
40337         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
40338         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
40339         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
40340         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
40341         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
40342         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
40343         HAVE_DECL_ROUNDF.
40344         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
40345         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
40346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
40347         of HAVE_DECL_ROUND*.
40348         * modules/math (Makefile.am): Update.
40349
40350 2007-11-10  Bruno Haible  <bruno@clisp.org>
40351
40352         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
40353         ptrdiff_t as m4/intl.m4.
40354
40355 2007-11-10  Jim Meyering  <meyering@redhat.com>
40356
40357         Avoid link failure for the argmatch test.
40358         * tests/test-argmatch.c (usage): Define function to avoid a link
40359         failure: argmatch_die requires a usage function.
40360
40361 2007-11-09  Bruno Haible  <bruno@clisp.org>
40362
40363         * doc/functions/snprintf.texi: Mention BeOS deficiency.
40364         * doc/functions/vsnprintf.texi: Likewise.
40365         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
40366         with a size argument < 2.
40367
40368 2007-11-09  Bruno Haible  <bruno@clisp.org>
40369
40370         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
40371         buffer. Fixes an inefficiency introduced on 2007-11-03.
40372
40373 2007-11-09  Bruno Haible  <bruno@clisp.org>
40374
40375         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
40376         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
40377
40378 2007-11-08  Jim Meyering  <meyering@redhat.com>
40379
40380         Change cache variable name prefix "jm_" to "gl_" everywhere.
40381         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
40382         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
40383         * m4/uptime.m4: s/gl_/jm_/
40384
40385 2007-11-07  Bruno Haible  <bruno@clisp.org>
40386
40387         Update to GNU gettext 0.17.
40388         * m4/intl.m4: Update to GNU gettext 0.17.
40389         * m4/po.m4: Likewise.
40390         * modules/gettext (Files): Remove m4/ulonglong.m4.
40391         (configure.ac): Require gettext infrastructure from version 0.17.
40392
40393 2007-11-06  Bruno Haible  <bruno@clisp.org>
40394
40395         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
40396         symbolic values are not defined in a public header.
40397         * lib/freadable.c (freadable) [QNX]: Likewise.
40398         * lib/freadahead.c (freadahead) [QNX]: Likewise.
40399         * lib/freading.c (freading) [QNX]: Likewise.
40400         * lib/fseterr.c (fseterr) [QNX]: Likewise.
40401         * lib/fwritable.c (fwritable) [QNX]: Likewise.
40402         * lib/fwriting.c (fwriting) [QNX]: Likewise.
40403         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
40404         Reported by Alain Magloire.
40405
40406         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
40407
40408 2007-11-05  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
40411         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
40412         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
40413         Reported by Eric Blake.
40414
40415 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40416             Bruno Haible  <bruno@clisp.org>
40417
40418         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
40419         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
40420         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
40421         (malloc): Undefine also before including <stdlib.h>.
40422         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
40423         Needed on OSF/1 4.0.
40424
40425 2007-11-05  Jim Meyering  <meyering@redhat.com>
40426
40427         git-version-gen: sync from coreutils.
40428         * build-aux/git-version-gen: Add comments.
40429         Change the first '-' to '.' in the snapshot version string,
40430         e.g., 6.9-377-08144 -> 6.9.377-08144
40431         Remove first parameter.
40432         Don't declare a version "-dirty" merely because a time
40433         stamp has changed.
40434
40435 2007-11-04  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/lock.h: Protect all macro definitions containing an 'if'
40438         statement through a "do { ... } while (0)".
40439         * lib/tls.h: Likewise.
40440
40441 2007-11-04  Bruno Haible  <bruno@clisp.org>
40442
40443         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
40444
40445 2007-11-04  Bruno Haible  <bruno@clisp.org>
40446
40447         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
40448         * modules/fprintf-posix (Depends-on): Add nocrash.
40449         * modules/snprintf-posix (Depends-on): Likewise.
40450         * modules/sprintf-posix (Depends-on): Likewise.
40451         * modules/vasnprintf-posix (Depends-on): Likewise.
40452         * modules/vasprintf-posix (Depends-on): Likewise.
40453         * modules/vfprintf-posix (Depends-on): Likewise.
40454         * modules/vsnprintf-posix (Depends-on): Likewise.
40455         * modules/vsprintf-posix (Depends-on): Likewise.
40456         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40457         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40458         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40459         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40460         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40461         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40462         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40463
40464 2007-11-04  Bruno Haible  <bruno@clisp.org>
40465
40466         * modules/nocrash: New file.
40467         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
40468         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
40469
40470 2007-11-04  Bruno Haible  <bruno@clisp.org>
40471
40472         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
40473         precision handling.
40474         * tests/test-vasprintf-posix.c (test_function): Likewise.
40475         * tests/test-snprintf-posix.h (test_function): Likewise.
40476         * tests/test-sprintf-posix.h (test_function): Likewise.
40477
40478         Fix *printf behaviour for large precisions on mingw and BeOS.
40479         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
40480         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
40481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
40482         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40483         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40484         gl_PRINTF_PRECISION and test its result. Invoke
40485         gl_PREREQ_VASNPRINTF_PRECISION.
40486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40490         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40493         * doc/functions/fprintf.texi: Update.
40494         * doc/functions/printf.texi: Update.
40495         * doc/functions/snprintf.texi: Update.
40496         * doc/functions/sprintf.texi: Update.
40497         * doc/functions/vfprintf.texi: Update.
40498         * doc/functions/vprintf.texi: Update.
40499         * doc/functions/vsnprintf.texi: Update.
40500         * doc/functions/vsprintf.texi: Update.
40501
40502 2007-11-04  Bruno Haible  <bruno@clisp.org>
40503
40504         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
40505
40506 2007-11-04  Bruno Haible  <bruno@clisp.org>
40507
40508         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
40509         Reported by Sylvain Beucler <beuc@gnu.org>.
40510
40511 2007-11-03  Bruno Haible  <bruno@clisp.org>
40512
40513         * tests/test-fprintf-posix2.sh: New file.
40514         * tests/test-fprintf-posix2.c: New file.
40515         * modules/fprintf-posix-tests (Files): Add them.
40516         (TESTS): Add test-fprintf-posix2.sh.
40517         (configure.ac): Check for getrlimit and setrlimit.
40518         (check_PROGRAMS): Add test-fprintf-posix2.
40519
40520         * tests/test-printf-posix2.sh: New file.
40521         * tests/test-printf-posix2.c: New file.
40522         * modules/printf-posix-tests (Files): Add them.
40523         (TESTS): Add test-printf-posix2.sh.
40524         (configure.ac): Check for getrlimit and setrlimit.
40525         (check_PROGRAMS): Add test-printf-posix2.
40526
40527         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
40528         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
40529         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
40530         (decode_double): New function, copied from decode_long_double.
40531         (scale10_round_decimal_decoded): New function, extracted from
40532         scale10_round_decimal_long_double.
40533         (scale10_round_decimal_long_double): Use it.
40534         (scale10_round_decimal_double): New function.
40535         (floorlog10): New function.
40536         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
40537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
40538         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40540         gl_PRINTF_ENOMEM and test its result. Invoke
40541         gl_PREREQ_VASNPRINTF_ENOMEM.
40542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40549         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
40550         * modules/snprintf-posix (Depends-on): Likewise.
40551         * modules/sprintf-posix (Depends-on): Likewise.
40552         * modules/vasnprintf-posix (Depends-on): Likewise.
40553         * modules/vasprintf-posix (Depends-on): Likewise.
40554         * modules/vfprintf-posix (Depends-on): Likewise.
40555         * modules/vsnprintf-posix (Depends-on): Likewise.
40556         * modules/vsprintf-posix (Depends-on): Likewise.
40557         * doc/functions/fprintf.texi: Update.
40558         * doc/functions/printf.texi: Update.
40559         * doc/functions/snprintf.texi: Update.
40560         * doc/functions/sprintf.texi: Update.
40561         * doc/functions/vfprintf.texi: Update.
40562         * doc/functions/vprintf.texi: Update.
40563         * doc/functions/vsnprintf.texi: Update.
40564         * doc/functions/vsprintf.texi: Update.
40565
40566 2007-11-03  Bruno Haible  <bruno@clisp.org>
40567
40568         * modules/frexp-nolibm-tests: New file.
40569
40570         * modules/frexp-nolibm: New file.
40571         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
40572
40573 2007-11-03  Bruno Haible  <bruno@clisp.org>
40574
40575         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
40576         value is C99 compliant.
40577         Needed for OSF/1 5.1.
40578
40579 2007-11-03  Bruno Haible  <bruno@clisp.org>
40580
40581         Fix out-of-memory handling of vasnprintf.
40582         * lib/printf-parse.c: Include <errno.h>.
40583         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
40584         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
40585         is already set.
40586
40587 2007-11-02  Eric Blake  <ebb9@byu.net>
40588
40589         Fix tests on cygwin.
40590         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
40591
40592 2007-11-01  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
40595         warning.
40596         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
40597         needed for POSIX compatibility.
40598
40599 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40600
40601         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
40602         for compatibility with GNU.
40603
40604 2007-11-01  Bruno Haible  <bruno@clisp.org>
40605
40606         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
40607         (putenv): Renamed from rpl_putenv. Change argument type from
40608         'const char *' to 'char *'.
40609         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
40610         of defining putenv in config.h, just set REPLACE_PUTENV.
40611         * modules/putenv (Depends-on): Add stdlib.
40612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40613         (Include): Use <stdlib.h>.
40614         * lib/stdlib.in.h (putenv): New declaration.
40615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
40616         REPLACE_PUTENV.
40617         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
40618         REPLACE_PUTENV.
40619         Needed for MacOS X 10.5.0.
40620         Reported by Peter O'Gorman <peter@pogma.com>.
40621
40622 2007-11-01  Jim Meyering  <meyering@redhat.com>
40623
40624         Treat an empty date string exactly like "0".
40625         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
40626         if the remaining date string (to be parsed) is empty, use "0".
40627         Reported by Mischa Molhoek and discussed in this thread:
40628         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
40629
40630 2007-10-31  Bruno Haible  <bruno@clisp.org>
40631
40632         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
40633         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
40634         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
40635         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
40636         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
40637         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
40638
40639 2007-10-31  Bruno Haible  <bruno@clisp.org>
40640
40641         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
40642         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
40643         (AC_TYPE_LONG_LONG_INT): Use it.
40644         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
40645         it as well.
40646         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
40647         to m4/longlong.m4.
40648         * modules/stdint (Files): Remove m4/ulonglong.m4.
40649         * modules/strtoull (Files): Use m4/longlong.m4 instead of
40650         m4/ulonglong.m4.
40651         * modules/strtoumax (Files): Likewise.
40652
40653 2007-10-30  Bruno Haible  <bruno@clisp.org>
40654
40655         * modules/xvasprintf-posix: New file.
40656         Suggested by Eric Blake.
40657
40658 2007-10-30  Bruno Haible  <bruno@clisp.org>
40659
40660         * modules/xprintf-posix-tests: New file.
40661         * tests/test-xprintf-posix.sh: New file.
40662         * tests/test-xprintf-posix.c: New file.
40663         * tests/test-xfprintf-posix.c: New file.
40664
40665         * modules/xprintf-posix: New file.
40666
40667 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40668
40669         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
40670         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
40671         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
40672
40673 2007-10-29  Bruno Haible  <bruno@clisp.org>
40674
40675         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
40676         contain the special marker '_cv_'.
40677         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40678         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40679         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40680         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40681         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40682         Reported by Ralf Wildenhues.
40683
40684 2007-10-29  Bruno Haible  <bruno@clisp.org>
40685
40686         * gnulib-tool (func_import): When --lgpl is not specified, set
40687         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
40688         GPLv3.
40689         Reported by Simon Josefsson.
40690
40691 2007-10-28  Bruno Haible  <bruno@clisp.org>
40692
40693         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
40694         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
40695         HAVE_DECL_ISFINITE.
40696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40697         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
40698         HAVE_DECL_ISFINITE.
40699
40700 2007-10-28  Bruno Haible  <bruno@clisp.org>
40701
40702         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
40703         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
40704
40705 2007-10-28  Bruno Haible  <bruno@clisp.org>
40706
40707         Fix link errors with Sun C 5.0 on Solaris 10.
40708         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40709         function is declared but not present in the compiler's libm.
40710         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40711         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40712         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40713         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40714         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40715         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40716         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40718         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40719         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40720         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40721         HAVE_DECL_FLOORL.
40722
40723 2007-10-28  Bruno Haible  <bruno@clisp.org>
40724
40725         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40726         gl_FUNC_FLOORL. Cache the result.
40727         (gl_FUNC_FLOORL): Use it.
40728         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40729         gl_FUNC_CEILL. Cache the result.
40730         (gl_FUNC_CEILL): Use it.
40731
40732         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40733         gl_FUNC_FLOOR. Cache the result.
40734         (gl_FUNC_FLOOR): Use it.
40735         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40736         gl_FUNC_CEIL. Cache the result.
40737         (gl_FUNC_CEIL): Use it.
40738
40739         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40740         gl_FUNC_FLOORF. Cache the result.
40741         (gl_FUNC_FLOORF): Use it.
40742         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40743         gl_FUNC_CEILF. Cache the result.
40744         (gl_FUNC_CEILF): Use it.
40745
40746 2007-10-28  Bruno Haible  <bruno@clisp.org>
40747
40748         * gnulib-tool: Allow specifying the LGPL version number through
40749         --lgpl=2 or --lgpl=3.
40750         (func_usage): Document --lgpl with argument.
40751         Handle --lgpl=... arguments.
40752         (func_import): Recognize also gl_LGPL calls with an argument. When
40753         --lgpl=2 is used and the module's license is just LGPL, report an
40754         error. Set sed_transform_lib_file according to the lgpl variable. In
40755         the generated files, use --lgpl or gl_LGPL invocations with argument,
40756         if necessary.
40757         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40758         an LGPv2+ license.
40759         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40760         gl_LGPL macro.
40761
40762 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40763             Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40766         (u16_uctomb_aux): Likewise.
40767         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40768         !HAVE_INLINE.
40769         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40770
40771 2007-10-28  Bruno Haible  <bruno@clisp.org>
40772
40773         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40774         Invoke AM_GETTEXT_OPTION if it exists.
40775         * modules/vasprintf: Likewise.
40776         * modules/verror: Likewise.
40777         * modules/xprintf: Likewise.
40778         * modules/xvasprintf: Likewise.
40779
40780 2007-10-27  Ben Pfaff  <blp@gnu.org>
40781
40782         * lib/math.in.h: Define isfinite macro and prototypes for
40783         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40784         implementations.
40785         * m4/math_h.m4: New substitutions for isfinite module.
40786         * lib/isfinite.c: New file.
40787         * m4/isfinite.m4: New file.
40788         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40789         * modules/isfinite: New file.
40790         * modules/isfinite-tests: New file.
40791         * tests/tests-isfinite.c: New file.
40792         * doc/functions/isfinite.texi: Mention isfinite module.
40793         * MODULES.html.sh: Mention new module.
40794
40795 2007-10-27  Ben Pfaff  <blp@gnu.org>
40796
40797         Ralf Wildenhues reported that Tru64 4.0D declares the round
40798         functions but does not have definitions.
40799         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40800         cannot be found in any library, set the output variable to
40801         "missing" instead of "".
40802         * m4/round.m4: Also use our substitute if we cannot find round in
40803         any library, even if it is declared.
40804         * m4/roundf.m4: Likewise for roundf.
40805         * m4/roundl.m4: Likewise for roundl.
40806         * lib/math.in.h: Undefine roundf, round, roundl before defining
40807         their replacements, to allow for hypothetical systems where these
40808         may be defined as macros but not available in libraries.
40809
40810 2007-10-27  Bruno Haible  <bruno@clisp.org>
40811
40812         * doc/gnulib.texi: Invoke @firstparagraphindent.
40813         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40814         changes in gnulib.
40815         (Source changes): New section.
40816
40817 2007-10-26  Bruno Haible  <bruno@clisp.org>
40818
40819         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40820         borrowed from autoconf.
40821
40822 2007-10-26  Bruno Haible  <bruno@clisp.org>
40823
40824         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40825         strerror returned the empty string. Needed on HP-UX 11.00.
40826
40827 2007-10-24  Micah Cowan  <micah@cowan.name>
40828
40829         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40830         * build-aux/bootstrap: Remove support for now-unnecessary option,
40831         --cvs-user, and envvars CVS_USER, CVS_RSH.
40832
40833 2007-10-24  Jim Meyering  <meyering@redhat.com>
40834
40835         Avoid diagnostics from sha1sum when there is no cached checksum.
40836         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40837         if the po.s1 file hasn't been created yet.
40838
40839         * build-aux/bootstrap: Sync from coreutils:
40840         2007-10-24  Jim Meyering  <meyering@redhat.com>
40841         Get gnulib from the git repository, not from an obsolete cvs one.
40842         * build-aux/bootstrap: Suggestion from Micah Cowan.
40843         2007-10-04  Jim Meyering  <jim@meyering.net>
40844         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40845         (update_po_files): Work also when there are no .po files in po/.
40846
40847 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40848
40849         * README: Append ".git" to git and cg examples.
40850         Problem reported by Benoit Sigoure.
40851
40852 2007-10-23  Micah Cowan  <micah@cowan.name>
40853
40854         * users.txt: Add wget.
40855
40856 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40857
40858         Fix linking of some unistdio tests on FreeBSD.
40859         * modules/unistdio/u16-vsnprintf-tests
40860         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40861         * modules/unistdio/u16-vsprintf-tests
40862         (test_u16_vsnprintf1_LDADD): Likewise.
40863         * modules/unistdio/u32-vsnprintf-tests
40864         (test_u32_vsnprintf1_LDADD): Likewise.
40865         * modules/unistdio/u32-vsprintf-tests
40866         (test_u32_vsprintf1_LDADD): Likewise.
40867         * modules/unistdio/u8-vsnprintf-tests
40868         (test_u8_vsnprintf1_LDADD): Likewise.
40869         * modules/unistdio/u8-vsprintf-tests
40870         (test_u8_vsprintf1_LDADD): Likewise.
40871         * modules/unistdio/ulc-vsnprintf-tests
40872         (test_ulc_vsnprintf1_LDADD): Likewise.
40873         * modules/unistdio/ulc-vsprintf-tests
40874         (test_ulc_vsprintf1_LDADD): Likewise.
40875
40876         Fix linking of some uniconv tests on FreeBSD.
40877         * modules/uniconv/u16-conv-from-enc-tests
40878         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40879         * modules/uniconv/u16-conv-to-enc-tests
40880         (test_u16_conv_to_enc_LDADD): Likewise.
40881         * modules/uniconv/u16-strconv-from-enc-tests
40882         (test_u16_strconv_from_enc_LDADD): Likewise.
40883         * modules/uniconv/u16-strconv-to-enc-tests
40884         (test_u16_strconv_to_enc_LDADD): Likewise.
40885         * modules/uniconv/u32-conv-from-enc-tests
40886         (test_u32_conv_from_enc_LDADD): Likewise.
40887         * modules/uniconv/u32-conv-to-enc-tests
40888         (test_u32_conv_to_enc_LDADD): Likewise.
40889         * modules/uniconv/u32-strconv-from-enc-tests
40890         (test_u32_strconv_from_enc_LDADD): Likewise.
40891         * modules/uniconv/u32-strconv-to-enc-tests
40892         (test_u32_strconv_to_enc_LDADD): Likewise.
40893         * modules/uniconv/u8-conv-from-enc-tests
40894         (test_u8_conv_from_enc_LDADD): Likewise.
40895         * modules/uniconv/u8-conv-to-enc-tests
40896         (test_u8_conv_to_enc_LDADD): Likewise.
40897         * modules/uniconv/u8-strconv-from-enc-tests
40898         (test_u8_strconv_from_enc_LDADD): Likewise.
40899         * modules/uniconv/u8-strconv-to-enc-tests
40900         (test_u8_strconv_to_enc_LDADD): Likewise.
40901
40902 2007-10-22  Bruno Haible  <bruno@clisp.org>
40903
40904         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40905         size.
40906
40907 2007-10-22  Eric Blake  <ebb9@byu.net>
40908
40909         Tweak x*printf documentation.
40910         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40911         variable name and comments.
40912         Suggested by Bruno Haible.
40913
40914 2007-10-22  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/acl.c (copy_acl): Fix file name in comment.
40917
40918 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40919
40920         Fix Tru64 problem with stdbool.h.
40921         * lib/stdbool.in.h (false, true):
40922         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40923         Don't declare as an enum in this situation; it runs afoul of Tru64.
40924         Problem reported by Steven M. Schweda in
40925         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40926
40927 2007-10-22  Eric Blake  <ebb9@byu.net>
40928
40929         Also wrap vf?printf.
40930         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40931         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40932         (xvprintf, xvfprintf): New functions.
40933
40934 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40935
40936         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40937         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40938
40939         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40940         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40941
40942 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40943
40944         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40945         by Bruno Haible.
40946
40947 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40948
40949         * lib/getloadavg.c
40950         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40951         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40952
40953         * tests/test-i-ring.c: Work for C89.
40954
40955 2007-10-22  Bruno Haible  <bruno@clisp.org>
40956
40957         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40958         -1u, in preprocessor expression, so that we don't test for the bug
40959         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40961
40962 2007-10-22  Eric Blake  <ebb9@byu.net>
40963
40964         * tests/test-yesno.sh: Silence stderr during test.
40965
40966 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40967
40968         * modules/crypto/gc-camellia: New file.
40969
40970         * m4/gc-camellia.m4: New file.
40971
40972         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
40973
40974         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
40975
40976 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40977
40978         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
40979         --help to stdout.  Reported by sms@antinode.org (Steven
40980         M. Schweda).
40981
40982 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40983
40984         * users.txt: Fix link to libksba.
40985
40986 2007-10-21  Ben Pfaff  <blp@gnu.org>
40987
40988         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
40989         round.c roundf implementation that depends on floorf and ceilf to
40990         be tested unconditionally.
40991
40992 2007-10-21  Ben Pfaff  <blp@gnu.org>
40993
40994         * m4/check-libm-func.m4: Removed.
40995         * m4/check-math-lib.m4: New file.
40996         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
40997         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
40998         definition and lack of AC_LIBOBJ([roundf]).
40999         * m4/roundl.m4: Ditto, and similarly for roundl.
41000         * modules/round: Reference new m4 file.
41001         * modules/roundf: Ditto.
41002         * modules/roundl: Ditto.
41003         * tests/test-round2.c (main): Use ROUND instead of round.
41004         Bug report from Bruno Haible.
41005
41006 2007-10-21  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
41009         context.
41010
41011 2007-10-21  Bruno Haible  <bruno@clisp.org>
41012
41013         * tests/test-wcwidth.c (main): Allow negative result for some control
41014         characters.
41015
41016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
41017         Needed on OSF/1 5.1.
41018
41019 2007-10-21  Bruno Haible  <bruno@clisp.org>
41020
41021         * tests/test-floorf1.c: Include isnanf.h.
41022         (main): Use isnanf() instead of isnan().
41023         * tests/test-ceilf1.c: Include isnanf.h.
41024         (main): Use isnanf() instead of isnan().
41025         * tests/test-truncf1.c: Include isnanf.h.
41026         (main): Use isnanf() instead of isnan().
41027         * tests/test-roundf1.c: Include isnanf.h.
41028         (main): Use isnanf() instead of isnan().
41029
41030 2007-10-21  Eric Blake  <ebb9@byu.net>
41031
41032         * users.txt: Update URL for m4.
41033
41034 2007-10-21  Bruno Haible  <bruno@clisp.org>
41035
41036         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
41037
41038 2007-10-21  Bruno Haible  <bruno@clisp.org>
41039
41040         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
41041         Git's management files if the CVS files are not present.
41042
41043 2007-10-20  Bruno Haible  <bruno@clisp.org>
41044
41045         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
41046         gcc-3.4.x.
41047
41048 2007-10-20  Ben Pfaff  <blp@gnu.org>
41049
41050         * lib/math.in.h: Declare round, roundf, roundl if we are providing
41051         implementations.
41052         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
41053         * lib/round.c: New file.
41054         * lib/roundf.c: New file.
41055         * lib/roundl.c: New file.
41056         * m4/round.m4: New file.
41057         * m4/roundf.m4: New file.
41058         * m4/roundl.m4: New file.
41059         * m4/check-libm-func-m4: New file.
41060         * modules/math: Replace round, roundf, roundl related @VARS@ in
41061         math.in.h.
41062         * modules/round: New file.
41063         * modules/round-tests: New file.
41064         * modules/roundf: New file.
41065         * modules/roundf-tests: New file.
41066         * modules/roundl: New file.
41067         * modules/roundl-tests: New file.
41068         * tests/test-round1.c: New file.
41069         * tests/test-round2.c: New file.
41070         * tests/test-roundf1.c: New file.
41071         * tests/test-roundf2.c: New file.
41072         * tests/test-roundl.c: New file.
41073         * doc/functions/round.texi: Mention round module.
41074         * doc/functions/roundf.texi: Mention roundf module.
41075         * doc/functions/roundl.texi: Mention roundl module.
41076         * MODULES.html.sh: Mention new modules.
41077         Thanks to Bruno Haible for suggestions.
41078
41079 2007-10-20  Jim Meyering  <meyering@redhat.com>
41080
41081         * lib/xprintf.c: Include <config.h> unconditionally.
41082
41083         Change xprintf's license to GPL.
41084         * modules/xprintf (License): s/LGPL/GPL/, since this module
41085         depends on modules (exit and exitfail) which are GPL.
41086         Suggestion from Bruno Haible.
41087
41088         xprintf fixes.
41089         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
41090         Use a clearer diagnostic.
41091         Patch from Bruno Haible.
41092
41093 2007-10-20  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
41096         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
41097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41098
41099 2007-10-20  Bruno Haible  <bruno@clisp.org>
41100
41101         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
41102         precision in the comparison result > x - 1 or similar.
41103         * tests/test-ceilf2.c (correct_result_p): Likewise.
41104         * tests/test-truncf2.c (correct_result_p): Likewise.
41105         * tests/test-trunc2.c (correct_result_p): Likewise.
41106         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41107
41108 2007-10-20  Bruno Haible  <bruno@clisp.org>
41109
41110         * modules/ceil: New file.
41111         * m4/ceil.m4: New file.
41112         * doc/functions/ceil.texi: Mention the 'ceil' module.
41113
41114 2007-10-20  Bruno Haible  <bruno@clisp.org>
41115
41116         * modules/floor: New file.
41117         * m4/floor.m4: New file.
41118         * doc/functions/floor.texi: Mention the 'floor' module.
41119
41120 2007-10-20  Bruno Haible  <bruno@clisp.org>
41121
41122         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
41123         of %a.
41124         * modules/floorf-tests (Depends-on): Likewise.
41125         * modules/truncf-tests (Depends-on): Likewise.
41126         * modules/trunc-tests (Depends-on): Likewise.
41127         Reported by Ben Pfaff.
41128
41129 2007-10-19  Jim Meyering  <meyering@redhat.com>
41130
41131         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
41132         Don't bother testing specific errno values.  Just test ferror.
41133
41134         New module: xprintf
41135         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
41136
41137 2007-10-19  Bruno Haible  <bruno@clisp.org>
41138
41139         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
41140         syntax.
41141         * modules/javaexec (Makefile.am): Likewise.
41142         * modules/relocatable-prog (Makefile.am): Likewise.
41143         Suggested by Jim Meyering.
41144
41145 2007-10-18  Bruno Haible  <bruno@clisp.org>
41146
41147         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
41148         Reported by Jim Meyering.
41149
41150 2007-10-18  Eric Blake  <ebb9@byu.net>
41151
41152         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
41153
41154 2007-10-18  Bruno Haible  <bruno@clisp.org>
41155
41156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
41157         the format string into writable memory. Needed in Fortify conditions.
41158
41159 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
41160             Bruno Haible  <bruno@clisp.org>
41161
41162         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
41163         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
41164         * modules/trim (Depends-on): Add mbchar.
41165         (configure.ac): Add gl_FUNC_MBRTOWC.
41166         (Makefile.am): Augment lib_SOURCES.
41167
41168 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41169
41170         Modify glob.c to use fstatat and dirfd, to simplify it.
41171         Suggested by Eric Blake.
41172         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
41173         Don't include <stdbool.h>; not used.
41174         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
41175         (link_exists_p): Simplify implementation, since we can now assume
41176         dirfd and fstatat.
41177         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
41178
41179 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41180
41181         * gnulib-tool (func_get_dependencies): Fix sed script to
41182         match only tests.
41183
41184 2007-10-17  Bruno Haible  <bruno@clisp.org>
41185
41186         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
41187         allow locale names without encoding suffix.
41188         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41189         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41190
41191 2007-10-16  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
41194         * lib/getgroups.c (getgroups): Likewise.
41195         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
41196
41197 2007-10-16  Bruno Haible  <bruno@clisp.org>
41198
41199         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
41200         * modules/malloc-posix (License): Likewise.
41201         * modules/realloc-posix (License): Likewise.
41202         * modules/calloc-posix (License): Likewise.
41203         * modules/intprops (License): Change from GPL to LGPL, with
41204         Paul Eggert's approval.
41205
41206 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41207
41208         Merge glibc changes into lib/glob.c.
41209
41210         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
41211         2007-10-15 04:59:03 UTC.  Here are the changes:
41212
41213         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
41214
41215         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
41216
41217         * lib/glob.c: Add some branch prediction throughout.
41218
41219         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
41220
41221         [BZ #5103]
41222         * lib/glob.c (glob): Recognize patterns starting \/.
41223
41224         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
41225
41226         [BZ #3996]
41227         * lib/glob.c (attribute_hidden): Define if not defined.
41228         (glob): Unescape dirname, filename or username when needed and not
41229         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
41230         is NULL.  Handle unescaped [ in pattern without closing ].
41231         Don't pass GLOB_CHECK down to recursive glob for directories.
41232         (__glob_pattern_type): New function.
41233         (__glob_pattern_p): Implement using __glob_pattern_type.
41234         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
41235         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
41236         Remove unreachable code.
41237
41238         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
41239
41240         * lib/glob.c (glob_in_dir): Add some comments and asserts to
41241         explain why there are no leaks.
41242
41243         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
41244
41245         [BZ #3253]
41246         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
41247         time, rather allocate increasingly bigger arrays of pointers, if
41248         possible with alloca, if too large with malloc.
41249
41250 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41251
41252         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
41253         Problem reported by H.Merijn Brand in
41254         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
41255         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
41256         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
41257
41258 2007-10-15  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
41261         with explicit rpl_ prefix.
41262         * lib/fopen.c (fopen): Likewise.
41263         * lib/freopen.c (freopen): Likewise.
41264         * lib/iconv.c (iconv): Likewise.
41265         * lib/iconv_close.c (iconv_close): Likewise.
41266
41267 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41268
41269         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
41270
41271 2007-10-15  Bruno Haible  <bruno@clisp.org>
41272
41273         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
41274         <stddef.h> instead of <stdlib.h> since we only need NULL.
41275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41276
41277 2007-10-15  Bruno Haible  <bruno@clisp.org>
41278
41279         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
41280         Replace paragraph talking about LIBOBJS.
41281         Reported by Colin Watson <cjwatson@debian.org>.
41282
41283 2007-10-15  Bruno Haible  <bruno@clisp.org>
41284
41285         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
41286         <stdlib.h> before using NULL.
41287
41288 2007-10-15  Simon Josefsson  <simon@josefsson.org>
41289
41290         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
41291         Reported by Albert Chin <china@thewrittenword.com>.
41292
41293 2007-10-14  Bruno Haible  <bruno@clisp.org>
41294
41295         * modules/iconv_open-utf-tests: New file.
41296         * tests/test-iconv-utf.c: New file.
41297
41298         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
41299         * modules/iconv_open-utf: New file.
41300         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
41301         (iconv, iconv_close): New declarations.
41302         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
41303         be defined.
41304         (iconv_open): Add special handling of conversion between UTF-8 and
41305         UTF-{16,32}{BE,LE}.
41306         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
41307         * lib/iconv_close.c: New file.
41308         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
41309         gl_FUNC_ICONV_OPEN.
41310         (gl_FUNC_ICONV_OPEN): Use it.
41311         (gl_FUNC_ICONV_OPEN_UTF): New macro.
41312         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
41313         and REPLACE_ICONV_UTF.
41314         * modules/iconv_open (Depends-on): Add c-strcase.
41315         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
41316         ICONV_CONST.
41317         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
41318
41319 2007-10-13  Albert Chin  <china@thewrittenword.com>
41320             Bruno Haible  <bruno@clisp.org>
41321
41322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
41323         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
41324
41325 2007-10-13  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
41328         defined, use the ISO C99 inline semantics.
41329         * lib/argp.h (ARGP_EI): Likewise.
41330
41331 2007-10-13  Bruno Haible  <bruno@clisp.org>
41332
41333         Handle 'inline' change in gcc 4.3.0.
41334         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
41335         argp_fmtstream_write, argp_fmtstream_set_lmargin,
41336         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
41337         argp_fmtstream_point): Disable 'extern' declaration if the function
41338         definition is going to be provided inline.
41339         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
41340         semantics, not the ISO C99 inline semantics.
41341         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
41342         'extern' declaration if the function definition is going to be provided
41343         inline.
41344         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
41345         the GNU C inline semantics, not the ISO C99 inline semantics. With
41346         GCC 4.2, avoid a warning.
41347
41348 2007-10-13  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/freading.h (freading): Enable the use of __freading for
41351         glibc >= 2.7.
41352         * lib/freading.c (freading): Likewise.
41353
41354 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41355
41356         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
41357         "warning: C99 inline functions are not supported; using GNU89".
41358
41359 2007-10-12  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
41362         of 2.
41363         * tests/test-ceilf2.c: New file.
41364         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
41365
41366         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
41367         * modules/ceilf-tests: Update.
41368
41369 2007-10-12  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
41372         of 2.
41373         * tests/test-floorf2.c: New file.
41374         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
41375
41376         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
41377         * modules/floorf-tests: Update.
41378
41379 2007-10-12  Bruno Haible  <bruno@clisp.org>
41380
41381         * tests/test-trunc2.c: New file.
41382         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
41383
41384         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
41385         * modules/trunc-tests: Update.
41386
41387 2007-10-12  Bruno Haible  <bruno@clisp.org>
41388
41389         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
41390         of 2.
41391         * tests/test-truncf2.c: New file.
41392         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
41393
41394         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
41395         * modules/truncf-tests: Update.
41396
41397 2007-10-11  Eric Blake  <ebb9@byu.net>
41398
41399         Don't claim strerror is broken on Interix.
41400         * doc/functions/strerror.texi (strerror): Known broken systems are
41401         now Solaris 8, and not Interix.
41402         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
41403         Interix on cross-compile.
41404         Reported by Martin Koeppe in
41405         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
41406
41407 2007-10-11  Bruno Haible  <bruno@clisp.org>
41408
41409         * modules/i-ring-tests: New file.
41410         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
41411         instead of assert.
41412
41413 2007-10-11  Bruno Haible  <bruno@clisp.org>
41414
41415         * modules/filenamecat-tests: New file.
41416         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
41417         * lib/filenamecat.c: Remove test code.
41418
41419 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41420
41421         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
41422
41423         * lib/strerror.c: Include <string.h> always, to test interface,
41424         and to remove the need for the dummy.
41425         Include intprops.h to compute width instead of doing it ourselves
41426         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
41427         (strerror): Define it to return NULL if there's no system strerror.
41428         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
41429         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
41430         ancient pre-strerror Unix systems well any more.  Saying "unknown
41431         system error" is enough.
41432         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
41433         simpler strerror.c implementation.
41434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
41435         Simplify the tests to reflect the simpler strerror implementation.
41436         * modules/strerror (Depends-on): Add intprops.
41437
41438 2007-10-09  Eric Blake  <ebb9@byu.net>
41439
41440         Silence test-fpending.
41441         * modules/fpending-tests (Files): Add wrapper script.
41442         * tests/test-fpending.sh: New file.
41443
41444 2007-10-09  Bruno Haible  <bruno@clisp.org>
41445
41446         * MODULES.html.sh (func_module): Don't create a hyperlink for
41447         function names like 'printf_frexp'.
41448         (Misc): Add crc, memxor.
41449         (Characteristics of floating types): New section.
41450         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
41451         isnanf-nolibm, signbit, trunc, truncf, truncl.
41452         (Enhancements for ISO C 99 functions): New subsection Input/output.
41453         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
41454         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
41455         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
41456         (Compatibility checks for POSIX:2001 functions): Add clock-time.
41457         (Enhancements for POSIX:2001 functions): Add chdir-long.
41458         (File system functions): Add areadlink, chdir-safer, read-file.
41459         Remove cycle-check.
41460         (File system as inode set): New section.
41461         (Date and time): Add gethrxtime.
41462         (Multithreading): Add openmp.
41463         (Internationalization functions): Add localename.
41464         (Unicode string functions): Add unistr/u*-mbsnlen.
41465         (Support for maintaining and releasing projects): Add git-version-gen.
41466         (Lone files): Remove directories.
41467
41468 2007-10-08  Ben Pfaff  <blp@gnu.org>
41469
41470         * lib/xmalloca.h: Fix typo in comment.
41471
41472 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41473
41474         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
41475         when avoiding problems with integer overflow.  Use a portable test
41476         instead.
41477
41478 2007-10-08  Simon Josefsson  <simon@josefsson.org>
41479
41480         * modules/dummy (License): Change to LGPLv2+.
41481         * modules/float (License): Likewise
41482         * modules/realloc (License): Likewise
41483         * modules/stdlib (License): Likewise
41484
41485 2007-10-07  Bruno Haible  <bruno@clisp.org>
41486
41487         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
41488         * floor.c (TWO_MANT_DIG): Likewise.
41489         * ceil.c (TWO_MANT_DIG): Likewise.
41490         Reported by Ben Pfaff.
41491
41492 2007-10-07  Bruno Haible  <bruno@clisp.org>
41493
41494         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
41495         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
41496         * lib/frexp.c (FUNC): Likewise.
41497         * lib/printf-frexp.h (printf_frexp): Likewise.
41498         * lib/printf-frexpl.h (printf_frexpl): Likewise.
41499         * lib/printf-frexp.c (FUNC): Likewise.
41500         Suggested by Jim Meyering.
41501
41502 2007-10-07  Jim Meyering  <meyering@redhat.com>
41503
41504         Make xnanosleep's integer overflow test more robust.
41505         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
41506         so that gcc-4.3.0 doesn't optimize away this test for overflow.
41507
41508 2007-10-07  Bruno Haible  <bruno@clisp.org>
41509
41510         * NEWS: Mention the license change.
41511
41512         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
41513         abbreviations in the modules files.
41514
41515         Change copyright notice from GPLv2+ to GPLv3+.
41516         * README: Change copyright notice.
41517         * MODULES.html.sh: Likewise.
41518         * build-aux/bootstrap.conf: Likewise.
41519         * build-aux/config.libpath: Likewise.
41520         * build-aux/csharpcomp.sh.in: Likewise.
41521         * build-aux/csharpexec.sh.in: Likewise.
41522         * build-aux/install-reloc: Likewise.
41523         * build-aux/javacomp.sh.in: Likewise.
41524         * build-aux/javaexec.sh.in: Likewise.
41525         * build-aux/ldd.sh.in: Likewise.
41526         * build-aux/reloc-ldflags: Likewise.
41527         * build-aux/relocatable.sh.in: Likewise.
41528         * build-aux/x-to-1.in: Likewise.
41529         * check-module: Likewise.
41530         * config/srclistvars.sh: Likewise.
41531         * gnulib-tool: Likewise.
41532         * lib/acl-internal.h: Likewise.
41533         * lib/acl.c: Likewise.
41534         * lib/acl.h: Likewise.
41535         * lib/acl_entries.c: Likewise.
41536         * lib/areadlink-with-size.c: Likewise.
41537         * lib/areadlink.c: Likewise.
41538         * lib/areadlink.h: Likewise.
41539         * lib/argmatch.c: Likewise.
41540         * lib/argmatch.h: Likewise.
41541         * lib/argp-ba.c: Likewise.
41542         * lib/argp-eexst.c: Likewise.
41543         * lib/argp-fmtstream.c: Likewise.
41544         * lib/argp-fmtstream.h: Likewise.
41545         * lib/argp-fs-xinl.c: Likewise.
41546         * lib/argp-help.c: Likewise.
41547         * lib/argp-namefrob.h: Likewise.
41548         * lib/argp-parse.c: Likewise.
41549         * lib/argp-pin.c: Likewise.
41550         * lib/argp-pv.c: Likewise.
41551         * lib/argp-pvh.c: Likewise.
41552         * lib/argp-xinl.c: Likewise.
41553         * lib/argp.h: Likewise.
41554         * lib/at-func.c: Likewise.
41555         * lib/atanl.c: Likewise.
41556         * lib/backupfile.c: Likewise.
41557         * lib/backupfile.h: Likewise.
41558         * lib/basename.c: Likewise.
41559         * lib/binary-io.h: Likewise.
41560         * lib/byteswap.in.h: Likewise.
41561         * lib/c-stack.c: Likewise.
41562         * lib/c-stack.h: Likewise.
41563         * lib/c-strcasestr.c: Likewise.
41564         * lib/c-strcasestr.h: Likewise.
41565         * lib/c-strstr.c: Likewise.
41566         * lib/c-strstr.h: Likewise.
41567         * lib/c-strtod.c: Likewise.
41568         * lib/calloc.c: Likewise.
41569         * lib/canon-host.c: Likewise.
41570         * lib/canon-host.h: Likewise.
41571         * lib/canonicalize-lgpl.c: Likewise.
41572         * lib/canonicalize.c: Likewise.
41573         * lib/canonicalize.h: Likewise.
41574         * lib/ceil.c: Likewise.
41575         * lib/ceilf.c: Likewise.
41576         * lib/ceill.c: Likewise.
41577         * lib/chdir-long.c: Likewise.
41578         * lib/chdir-long.h: Likewise.
41579         * lib/chdir-safer.c: Likewise.
41580         * lib/chdir-safer.h: Likewise.
41581         * lib/chown.c: Likewise.
41582         * lib/classpath.c: Likewise.
41583         * lib/classpath.h: Likewise.
41584         * lib/clean-temp.c: Likewise.
41585         * lib/clean-temp.h: Likewise.
41586         * lib/cloexec.c: Likewise.
41587         * lib/close-stream.c: Likewise.
41588         * lib/closein.c: Likewise.
41589         * lib/closein.h: Likewise.
41590         * lib/closeout.c: Likewise.
41591         * lib/closeout.h: Likewise.
41592         * lib/concat-filename.c: Likewise.
41593         * lib/copy-file.c: Likewise.
41594         * lib/copy-file.h: Likewise.
41595         * lib/count-one-bits.h: Likewise.
41596         * lib/crc.c: Likewise.
41597         * lib/crc.h: Likewise.
41598         * lib/creat-safer.c: Likewise.
41599         * lib/csharpcomp.c: Likewise.
41600         * lib/csharpcomp.h: Likewise.
41601         * lib/csharpexec.c: Likewise.
41602         * lib/csharpexec.h: Likewise.
41603         * lib/cycle-check.c: Likewise.
41604         * lib/cycle-check.h: Likewise.
41605         * lib/diacrit.c: Likewise.
41606         * lib/diacrit.h: Likewise.
41607         * lib/diffseq.h: Likewise.
41608         * lib/dirchownmod.c: Likewise.
41609         * lib/dirent.in.h: Likewise.
41610         * lib/dirfd.c: Likewise.
41611         * lib/dirfd.h: Likewise.
41612         * lib/dirname.c: Likewise.
41613         * lib/dirname.h: Likewise.
41614         * lib/dummy.c: Likewise.
41615         * lib/dup-safer.c: Likewise.
41616         * lib/dup2.c: Likewise.
41617         * lib/eealloc.h: Likewise.
41618         * lib/error.c: Likewise.
41619         * lib/error.h: Likewise.
41620         * lib/euidaccess.c: Likewise.
41621         * lib/exclude.c: Likewise.
41622         * lib/exclude.h: Likewise.
41623         * lib/execute.c: Likewise.
41624         * lib/execute.h: Likewise.
41625         * lib/exitfail.c: Likewise.
41626         * lib/exitfail.h: Likewise.
41627         * lib/expl.c: Likewise.
41628         * lib/fatal-signal.c: Likewise.
41629         * lib/fatal-signal.h: Likewise.
41630         * lib/fbufmode.c: Likewise.
41631         * lib/fbufmode.h: Likewise.
41632         * lib/fchdir.c: Likewise.
41633         * lib/fchmodat.c: Likewise.
41634         * lib/fchownat.c: Likewise.
41635         * lib/fcntl--.h: Likewise.
41636         * lib/fcntl-safer.h: Likewise.
41637         * lib/fcntl.in.h: Likewise.
41638         * lib/fd-safer.c: Likewise.
41639         * lib/fflush.c: Likewise.
41640         * lib/file-has-acl.c: Likewise.
41641         * lib/file-set.c: Likewise.
41642         * lib/file-type.c: Likewise.
41643         * lib/file-type.h: Likewise.
41644         * lib/fileblocks.c: Likewise.
41645         * lib/filemode.c: Likewise.
41646         * lib/filemode.h: Likewise.
41647         * lib/filename.h: Likewise.
41648         * lib/filenamecat.c: Likewise.
41649         * lib/filenamecat.h: Likewise.
41650         * lib/findprog.c: Likewise.
41651         * lib/findprog.h: Likewise.
41652         * lib/float.in.h: Likewise.
41653         * lib/floor.c: Likewise.
41654         * lib/floorf.c: Likewise.
41655         * lib/floorl.c: Likewise.
41656         * lib/fopen-safer.c: Likewise.
41657         * lib/fopen.c: Likewise.
41658         * lib/fpending.c: Likewise.
41659         * lib/fpending.h: Likewise.
41660         * lib/fprintf.c: Likewise.
41661         * lib/fprintftime.h: Likewise.
41662         * lib/fpucw.h: Likewise.
41663         * lib/fpurge.c: Likewise.
41664         * lib/fpurge.h: Likewise.
41665         * lib/freadable.c: Likewise.
41666         * lib/freadable.h: Likewise.
41667         * lib/freadahead.c: Likewise.
41668         * lib/freadahead.h: Likewise.
41669         * lib/freading.c: Likewise.
41670         * lib/freading.h: Likewise.
41671         * lib/free.c: Likewise.
41672         * lib/freopen.c: Likewise.
41673         * lib/frexp.c: Likewise.
41674         * lib/frexpl.c: Likewise.
41675         * lib/fseek.c: Likewise.
41676         * lib/fseterr.c: Likewise.
41677         * lib/fseterr.h: Likewise.
41678         * lib/fstatat.c: Likewise.
41679         * lib/fstrcmp.c: Likewise.
41680         * lib/fstrcmp.h: Likewise.
41681         * lib/fsusage.c: Likewise.
41682         * lib/fsusage.h: Likewise.
41683         * lib/ftell.c: Likewise.
41684         * lib/ftello.c: Likewise.
41685         * lib/fts-cycle.c: Likewise.
41686         * lib/fts.c: Likewise.
41687         * lib/fts_.h: Likewise.
41688         * lib/full-read.c: Likewise.
41689         * lib/full-read.h: Likewise.
41690         * lib/full-write.c: Likewise.
41691         * lib/full-write.h: Likewise.
41692         * lib/fwritable.c: Likewise.
41693         * lib/fwritable.h: Likewise.
41694         * lib/fwriteerror.c: Likewise.
41695         * lib/fwriteerror.h: Likewise.
41696         * lib/fwriting.c: Likewise.
41697         * lib/fwriting.h: Likewise.
41698         * lib/gcd.c: Likewise.
41699         * lib/gcd.h: Likewise.
41700         * lib/getcwd.c: Likewise.
41701         * lib/getdate.h: Likewise.
41702         * lib/getdate.y: Likewise.
41703         * lib/getdomainname.c: Likewise.
41704         * lib/getdomainname.h: Likewise.
41705         * lib/getgroups.c: Likewise.
41706         * lib/gethostname.c: Likewise.
41707         * lib/gethrxtime.c: Likewise.
41708         * lib/gethrxtime.h: Likewise.
41709         * lib/getloadavg.c: Likewise.
41710         * lib/getndelim2.c: Likewise.
41711         * lib/getndelim2.h: Likewise.
41712         * lib/getnline.c: Likewise.
41713         * lib/getnline.h: Likewise.
41714         * lib/getopt.c: Likewise.
41715         * lib/getopt.in.h: Likewise.
41716         * lib/getopt1.c: Likewise.
41717         * lib/getopt_int.h: Likewise.
41718         * lib/getpagesize.h: Likewise.
41719         * lib/getsubopt.c: Likewise.
41720         * lib/gettime.c: Likewise.
41721         * lib/getugroups.c: Likewise.
41722         * lib/getugroups.h: Likewise.
41723         * lib/getusershell.c: Likewise.
41724         * lib/gl_anyavltree_list1.h: Likewise.
41725         * lib/gl_anyavltree_list2.h: Likewise.
41726         * lib/gl_anyhash_list1.h: Likewise.
41727         * lib/gl_anyhash_list2.h: Likewise.
41728         * lib/gl_anylinked_list1.h: Likewise.
41729         * lib/gl_anylinked_list2.h: Likewise.
41730         * lib/gl_anyrbtree_list1.h: Likewise.
41731         * lib/gl_anyrbtree_list2.h: Likewise.
41732         * lib/gl_anytree_list1.h: Likewise.
41733         * lib/gl_anytree_list2.h: Likewise.
41734         * lib/gl_anytree_oset.h: Likewise.
41735         * lib/gl_anytreehash_list1.h: Likewise.
41736         * lib/gl_anytreehash_list2.h: Likewise.
41737         * lib/gl_array_list.c: Likewise.
41738         * lib/gl_array_list.h: Likewise.
41739         * lib/gl_array_oset.c: Likewise.
41740         * lib/gl_array_oset.h: Likewise.
41741         * lib/gl_avltree_list.c: Likewise.
41742         * lib/gl_avltree_list.h: Likewise.
41743         * lib/gl_avltree_oset.c: Likewise.
41744         * lib/gl_avltree_oset.h: Likewise.
41745         * lib/gl_avltreehash_list.c: Likewise.
41746         * lib/gl_avltreehash_list.h: Likewise.
41747         * lib/gl_carray_list.c: Likewise.
41748         * lib/gl_carray_list.h: Likewise.
41749         * lib/gl_linked_list.c: Likewise.
41750         * lib/gl_linked_list.h: Likewise.
41751         * lib/gl_linkedhash_list.c: Likewise.
41752         * lib/gl_linkedhash_list.h: Likewise.
41753         * lib/gl_list.c: Likewise.
41754         * lib/gl_list.h: Likewise.
41755         * lib/gl_oset.c: Likewise.
41756         * lib/gl_oset.h: Likewise.
41757         * lib/gl_rbtree_list.c: Likewise.
41758         * lib/gl_rbtree_list.h: Likewise.
41759         * lib/gl_rbtree_oset.c: Likewise.
41760         * lib/gl_rbtree_oset.h: Likewise.
41761         * lib/gl_rbtreehash_list.c: Likewise.
41762         * lib/gl_rbtreehash_list.h: Likewise.
41763         * lib/gl_sublist.c: Likewise.
41764         * lib/gl_sublist.h: Likewise.
41765         * lib/group-member.c: Likewise.
41766         * lib/group-member.h: Likewise.
41767         * lib/hard-locale.c: Likewise.
41768         * lib/hard-locale.h: Likewise.
41769         * lib/hash-pjw.c: Likewise.
41770         * lib/hash-pjw.h: Likewise.
41771         * lib/hash-triple.c: Likewise.
41772         * lib/hash.c: Likewise.
41773         * lib/hash.h: Likewise.
41774         * lib/human.c: Likewise.
41775         * lib/human.h: Likewise.
41776         * lib/i-ring.c: Likewise.
41777         * lib/i-ring.h: Likewise.
41778         * lib/idcache.c: Likewise.
41779         * lib/imaxabs.c: Likewise.
41780         * lib/imaxdiv.c: Likewise.
41781         * lib/inet_pton.c: Likewise.
41782         * lib/inet_pton.h: Likewise.
41783         * lib/intprops.h: Likewise.
41784         * lib/inttostr.c: Likewise.
41785         * lib/inttostr.h: Likewise.
41786         * lib/inttypes.in.h: Likewise.
41787         * lib/isapipe.c: Likewise.
41788         * lib/isdir.c: Likewise.
41789         * lib/isnan.c: Likewise.
41790         * lib/isnan.h: Likewise.
41791         * lib/isnanf.c: Likewise.
41792         * lib/isnanf.h: Likewise.
41793         * lib/isnanl-nolibm.h: Likewise.
41794         * lib/isnanl.c: Likewise.
41795         * lib/isnanl.h: Likewise.
41796         * lib/javacomp.c: Likewise.
41797         * lib/javacomp.h: Likewise.
41798         * lib/javaexec.c: Likewise.
41799         * lib/javaexec.h: Likewise.
41800         * lib/javaversion.c: Likewise.
41801         * lib/javaversion.h: Likewise.
41802         * lib/javaversion.java: Likewise.
41803         * lib/lbrkprop.h: Likewise.
41804         * lib/lchmod.h: Likewise.
41805         * lib/lchown.c: Likewise.
41806         * lib/ldexpl.c: Likewise.
41807         * lib/linebreak.c: Likewise.
41808         * lib/linebreak.h: Likewise.
41809         * lib/linebuffer.c: Likewise.
41810         * lib/linebuffer.h: Likewise.
41811         * lib/locale.in.h: Likewise.
41812         * lib/logl.c: Likewise.
41813         * lib/long-options.c: Likewise.
41814         * lib/long-options.h: Likewise.
41815         * lib/lstat.c: Likewise.
41816         * lib/lstat.h: Likewise.
41817         * lib/math.in.h: Likewise.
41818         * lib/mbchar.c: Likewise.
41819         * lib/mbchar.h: Likewise.
41820         * lib/mbfile.h: Likewise.
41821         * lib/mbiter.h: Likewise.
41822         * lib/mbscasecmp.c: Likewise.
41823         * lib/mbscasestr.c: Likewise.
41824         * lib/mbschr.c: Likewise.
41825         * lib/mbscspn.c: Likewise.
41826         * lib/mbslen.c: Likewise.
41827         * lib/mbsncasecmp.c: Likewise.
41828         * lib/mbsnlen.c: Likewise.
41829         * lib/mbspbrk.c: Likewise.
41830         * lib/mbspcasecmp.c: Likewise.
41831         * lib/mbsrchr.c: Likewise.
41832         * lib/mbssep.c: Likewise.
41833         * lib/mbsspn.c: Likewise.
41834         * lib/mbsstr.c: Likewise.
41835         * lib/mbstok_r.c: Likewise.
41836         * lib/mbswidth.c: Likewise.
41837         * lib/mbswidth.h: Likewise.
41838         * lib/mbuiter.h: Likewise.
41839         * lib/memcasecmp.c: Likewise.
41840         * lib/memcasecmp.h: Likewise.
41841         * lib/memchr.c: Likewise.
41842         * lib/memcmp.c: Likewise.
41843         * lib/memcoll.c: Likewise.
41844         * lib/memcoll.h: Likewise.
41845         * lib/memcpy.c: Likewise.
41846         * lib/memrchr.c: Likewise.
41847         * lib/mkancesdirs.c: Likewise.
41848         * lib/mkdir-p.c: Likewise.
41849         * lib/mkdir-p.h: Likewise.
41850         * lib/mkdir.c: Likewise.
41851         * lib/mkdirat.c: Likewise.
41852         * lib/mkdtemp.c: Likewise.
41853         * lib/mkstemp-safer.c: Likewise.
41854         * lib/mkstemp.c: Likewise.
41855         * lib/modechange.c: Likewise.
41856         * lib/modechange.h: Likewise.
41857         * lib/mountlist.c: Likewise.
41858         * lib/mountlist.h: Likewise.
41859         * lib/mpsort.c: Likewise.
41860         * lib/nanosleep.c: Likewise.
41861         * lib/obstack.c: Likewise.
41862         * lib/obstack.h: Likewise.
41863         * lib/open-safer.c: Likewise.
41864         * lib/open.c: Likewise.
41865         * lib/openat-die.c: Likewise.
41866         * lib/openat-priv.h: Likewise.
41867         * lib/openat-proc.c: Likewise.
41868         * lib/openat.c: Likewise.
41869         * lib/openat.h: Likewise.
41870         * lib/pagealign_alloc.c: Likewise.
41871         * lib/pagealign_alloc.h: Likewise.
41872         * lib/physmem.c: Likewise.
41873         * lib/physmem.h: Likewise.
41874         * lib/pipe-safer.c: Likewise.
41875         * lib/pipe.c: Likewise.
41876         * lib/pipe.h: Likewise.
41877         * lib/posixtm.c: Likewise.
41878         * lib/posixtm.h: Likewise.
41879         * lib/posixver.c: Likewise.
41880         * lib/printf-frexp.c: Likewise.
41881         * lib/printf-frexp.h: Likewise.
41882         * lib/printf-frexpl.c: Likewise.
41883         * lib/printf-frexpl.h: Likewise.
41884         * lib/printf.c: Likewise.
41885         * lib/progname.c: Likewise.
41886         * lib/progname.h: Likewise.
41887         * lib/progreloc.c: Likewise.
41888         * lib/putenv.c: Likewise.
41889         * lib/quote.c: Likewise.
41890         * lib/quote.h: Likewise.
41891         * lib/quotearg.c: Likewise.
41892         * lib/quotearg.h: Likewise.
41893         * lib/raise.c: Likewise.
41894         * lib/readline.c: Likewise.
41895         * lib/readline.h: Likewise.
41896         * lib/readlink.c: Likewise.
41897         * lib/readtokens.c: Likewise.
41898         * lib/readtokens.h: Likewise.
41899         * lib/readtokens0.c: Likewise.
41900         * lib/readtokens0.h: Likewise.
41901         * lib/readutmp.c: Likewise.
41902         * lib/readutmp.h: Likewise.
41903         * lib/realloc.c: Likewise.
41904         * lib/relocwrapper.c: Likewise.
41905         * lib/rename-dest-slash.c: Likewise.
41906         * lib/rename.c: Likewise.
41907         * lib/rmdir.c: Likewise.
41908         * lib/rpmatch.c: Likewise.
41909         * lib/safe-read.c: Likewise.
41910         * lib/safe-read.h: Likewise.
41911         * lib/safe-write.c: Likewise.
41912         * lib/safe-write.h: Likewise.
41913         * lib/same-inode.h: Likewise.
41914         * lib/same.c: Likewise.
41915         * lib/same.h: Likewise.
41916         * lib/save-cwd.c: Likewise.
41917         * lib/save-cwd.h: Likewise.
41918         * lib/savedir.c: Likewise.
41919         * lib/savedir.h: Likewise.
41920         * lib/savewd.c: Likewise.
41921         * lib/savewd.h: Likewise.
41922         * lib/search.in.h: Likewise.
41923         * lib/setenv.c: Likewise.
41924         * lib/setenv.h: Likewise.
41925         * lib/settime.c: Likewise.
41926         * lib/sh-quote.c: Likewise.
41927         * lib/sh-quote.h: Likewise.
41928         * lib/sig2str.c: Likewise.
41929         * lib/sig2str.h: Likewise.
41930         * lib/signal.in.h: Likewise.
41931         * lib/signbitd.c: Likewise.
41932         * lib/signbitf.c: Likewise.
41933         * lib/signbitl.c: Likewise.
41934         * lib/sigprocmask.c: Likewise.
41935         * lib/sincosl.c: Likewise.
41936         * lib/sleep.c: Likewise.
41937         * lib/sprintf.c: Likewise.
41938         * lib/sqrtl.c: Likewise.
41939         * lib/stat-time.h: Likewise.
41940         * lib/stdio--.h: Likewise.
41941         * lib/stdio-safer.h: Likewise.
41942         * lib/stdlib--.h: Likewise.
41943         * lib/stdlib-safer.h: Likewise.
41944         * lib/stdlib.in.h: Likewise.
41945         * lib/stpcpy.c: Likewise.
41946         * lib/stpncpy.c: Likewise.
41947         * lib/strchrnul.c: Likewise.
41948         * lib/strcspn.c: Likewise.
41949         * lib/strerror.c: Likewise.
41950         * lib/strftime.c: Likewise.
41951         * lib/strftime.h: Likewise.
41952         * lib/striconveh.c: Likewise.
41953         * lib/striconveh.h: Likewise.
41954         * lib/striconveha.c: Likewise.
41955         * lib/striconveha.h: Likewise.
41956         * lib/stripslash.c: Likewise.
41957         * lib/strnlen1.c: Likewise.
41958         * lib/strnlen1.h: Likewise.
41959         * lib/strtod.c: Likewise.
41960         * lib/strtoimax.c: Likewise.
41961         * lib/strtok_r.c: Likewise.
41962         * lib/strtol.c: Likewise.
41963         * lib/strtoll.c: Likewise.
41964         * lib/strtoul.c: Likewise.
41965         * lib/strtoull.c: Likewise.
41966         * lib/sysexits.in.h: Likewise.
41967         * lib/tempname.c: Likewise.
41968         * lib/tempname.h: Likewise.
41969         * lib/timespec.h: Likewise.
41970         * lib/tls.c: Likewise.
41971         * lib/tls.h: Likewise.
41972         * lib/tmpdir.c: Likewise.
41973         * lib/tmpdir.h: Likewise.
41974         * lib/tmpfile-safer.c: Likewise.
41975         * lib/tmpfile.c: Likewise.
41976         * lib/trigl.c: Likewise.
41977         * lib/trigl.h: Likewise.
41978         * lib/trim.c: Likewise.
41979         * lib/trim.h: Likewise.
41980         * lib/trunc.c: Likewise.
41981         * lib/truncf.c: Likewise.
41982         * lib/truncl.c: Likewise.
41983         * lib/tsearch.c: Likewise.
41984         * lib/unicodeio.c: Likewise.
41985         * lib/unicodeio.h: Likewise.
41986         * lib/unistd--.h: Likewise.
41987         * lib/unistd-safer.h: Likewise.
41988         * lib/unistdio/ulc-fprintf.c: Likewise.
41989         * lib/unistdio/ulc-vfprintf.c: Likewise.
41990         * lib/unlinkdir.c: Likewise.
41991         * lib/unlinkdir.h: Likewise.
41992         * lib/unlocked-io.h: Likewise.
41993         * lib/unsetenv.c: Likewise.
41994         * lib/userspec.c: Likewise.
41995         * lib/utime.c: Likewise.
41996         * lib/utimecmp.c: Likewise.
41997         * lib/utimecmp.h: Likewise.
41998         * lib/utimens.c: Likewise.
41999         * lib/verify.h: Likewise.
42000         * lib/verror.c: Likewise.
42001         * lib/verror.h: Likewise.
42002         * lib/version-etc-fsf.c: Likewise.
42003         * lib/version-etc.c: Likewise.
42004         * lib/version-etc.h: Likewise.
42005         * lib/vfprintf.c: Likewise.
42006         * lib/vprintf.c: Likewise.
42007         * lib/vsprintf.c: Likewise.
42008         * lib/w32spawn.h: Likewise.
42009         * lib/wait-process.c: Likewise.
42010         * lib/wait-process.h: Likewise.
42011         * lib/wcwidth.c: Likewise.
42012         * lib/write-any-file.c: Likewise.
42013         * lib/xalloc-die.c: Likewise.
42014         * lib/xalloc.h: Likewise.
42015         * lib/xasprintf.c: Likewise.
42016         * lib/xgetcwd.c: Likewise.
42017         * lib/xgetcwd.h: Likewise.
42018         * lib/xgetdomainname.c: Likewise.
42019         * lib/xgetdomainname.h: Likewise.
42020         * lib/xgethostname.c: Likewise.
42021         * lib/xmalloc.c: Likewise.
42022         * lib/xmalloca.c: Likewise.
42023         * lib/xmalloca.h: Likewise.
42024         * lib/xmemcoll.c: Likewise.
42025         * lib/xnanosleep.c: Likewise.
42026         * lib/xreadlink.c: Likewise.
42027         * lib/xreadlink.h: Likewise.
42028         * lib/xsetenv.c: Likewise.
42029         * lib/xsetenv.h: Likewise.
42030         * lib/xstriconv.c: Likewise.
42031         * lib/xstriconv.h: Likewise.
42032         * lib/xstrndup.c: Likewise.
42033         * lib/xstrndup.h: Likewise.
42034         * lib/xstrtod.c: Likewise.
42035         * lib/xstrtod.h: Likewise.
42036         * lib/xstrtol-error.c: Likewise.
42037         * lib/xstrtol.c: Likewise.
42038         * lib/xstrtol.h: Likewise.
42039         * lib/xtime.h: Likewise.
42040         * lib/xvasprintf.c: Likewise.
42041         * lib/xvasprintf.h: Likewise.
42042         * lib/yesno.c: Likewise.
42043         * lib/yesno.h: Likewise.
42044         * posix-modules: Likewise.
42045         * tests/test-alloca-opt.c: Likewise.
42046         * tests/test-arcfour.c: Likewise.
42047         * tests/test-arctwo.c: Likewise.
42048         * tests/test-argmatch.c: Likewise.
42049         * tests/test-argp-2.sh: Likewise.
42050         * tests/test-argp.c: Likewise.
42051         * tests/test-arpa_inet.c: Likewise.
42052         * tests/test-array_list.c: Likewise.
42053         * tests/test-array_oset.c: Likewise.
42054         * tests/test-atexit.c: Likewise.
42055         * tests/test-avltree_list.c: Likewise.
42056         * tests/test-avltree_oset.c: Likewise.
42057         * tests/test-avltreehash_list.c: Likewise.
42058         * tests/test-base64.c: Likewise.
42059         * tests/test-binary-io.c: Likewise.
42060         * tests/test-byteswap.c: Likewise.
42061         * tests/test-c-ctype.c: Likewise.
42062         * tests/test-c-strcasecmp.c: Likewise.
42063         * tests/test-c-strcasestr.c: Likewise.
42064         * tests/test-c-strncasecmp.c: Likewise.
42065         * tests/test-c-strstr.c: Likewise.
42066         * tests/test-canonicalize-lgpl.c: Likewise.
42067         * tests/test-canonicalize.c: Likewise.
42068         * tests/test-carray_list.c: Likewise.
42069         * tests/test-ceilf.c: Likewise.
42070         * tests/test-ceill.c: Likewise.
42071         * tests/test-count-one-bits.c: Likewise.
42072         * tests/test-crc.c: Likewise.
42073         * tests/test-dirname.c: Likewise.
42074         * tests/test-fbufmode.c: Likewise.
42075         * tests/test-fcntl.c: Likewise.
42076         * tests/test-fflush.c: Likewise.
42077         * tests/test-floorf.c: Likewise.
42078         * tests/test-floorl.c: Likewise.
42079         * tests/test-fopen.c: Likewise.
42080         * tests/test-fprintf-posix.c: Likewise.
42081         * tests/test-fprintf-posix.h: Likewise.
42082         * tests/test-fpurge.c: Likewise.
42083         * tests/test-freadable.c: Likewise.
42084         * tests/test-freadahead.c: Likewise.
42085         * tests/test-freading.c: Likewise.
42086         * tests/test-freopen.c: Likewise.
42087         * tests/test-frexp.c: Likewise.
42088         * tests/test-frexpl.c: Likewise.
42089         * tests/test-fseek.c: Likewise.
42090         * tests/test-fseeko.c: Likewise.
42091         * tests/test-fseterr.c: Likewise.
42092         * tests/test-fstrcmp.c: Likewise.
42093         * tests/test-ftell.c: Likewise.
42094         * tests/test-ftello.c: Likewise.
42095         * tests/test-fwritable.c: Likewise.
42096         * tests/test-fwriting.c: Likewise.
42097         * tests/test-getaddrinfo.c: Likewise.
42098         * tests/test-getpass.c: Likewise.
42099         * tests/test-gettimeofday.c: Likewise.
42100         * tests/test-hmac-md5.c: Likewise.
42101         * tests/test-hmac-sha1.c: Likewise.
42102         * tests/test-iconv.c: Likewise.
42103         * tests/test-iconvme.c: Likewise.
42104         * tests/test-inttypes.c: Likewise.
42105         * tests/test-isnan.c: Likewise.
42106         * tests/test-isnanf.c: Likewise.
42107         * tests/test-isnanl-nolibm.c: Likewise.
42108         * tests/test-isnanl.c: Likewise.
42109         * tests/test-isnanl.h: Likewise.
42110         * tests/test-ldexpl.c: Likewise.
42111         * tests/test-linked_list.c: Likewise.
42112         * tests/test-linkedhash_list.c: Likewise.
42113         * tests/test-locale.c: Likewise.
42114         * tests/test-localename.c: Likewise.
42115         * tests/test-lock.c: Likewise.
42116         * tests/test-lseek.c: Likewise.
42117         * tests/test-malloca.c: Likewise.
42118         * tests/test-math.c: Likewise.
42119         * tests/test-mbscasecmp.c: Likewise.
42120         * tests/test-mbscasestr1.c: Likewise.
42121         * tests/test-mbscasestr2.c: Likewise.
42122         * tests/test-mbscasestr3.c: Likewise.
42123         * tests/test-mbscasestr4.c: Likewise.
42124         * tests/test-mbschr.c: Likewise.
42125         * tests/test-mbscspn.c: Likewise.
42126         * tests/test-mbsncasecmp.c: Likewise.
42127         * tests/test-mbspbrk.c: Likewise.
42128         * tests/test-mbspcasecmp.c: Likewise.
42129         * tests/test-mbsrchr.c: Likewise.
42130         * tests/test-mbsspn.c: Likewise.
42131         * tests/test-mbsstr1.c: Likewise.
42132         * tests/test-mbsstr2.c: Likewise.
42133         * tests/test-mbsstr3.c: Likewise.
42134         * tests/test-md5.c: Likewise.
42135         * tests/test-memmem.c: Likewise.
42136         * tests/test-netinet_in.c: Likewise.
42137         * tests/test-open.c: Likewise.
42138         * tests/test-printf-frexp.c: Likewise.
42139         * tests/test-printf-frexpl.c: Likewise.
42140         * tests/test-printf-posix.c: Likewise.
42141         * tests/test-printf-posix.h: Likewise.
42142         * tests/test-rbtree_list.c: Likewise.
42143         * tests/test-rbtree_oset.c: Likewise.
42144         * tests/test-rbtreehash_list.c: Likewise.
42145         * tests/test-read-file.c: Likewise.
42146         * tests/test-rijndael.c: Likewise.
42147         * tests/test-search.c: Likewise.
42148         * tests/test-signbit.c: Likewise.
42149         * tests/test-sleep.c: Likewise.
42150         * tests/test-snprintf-posix.c: Likewise.
42151         * tests/test-snprintf-posix.h: Likewise.
42152         * tests/test-snprintf.c: Likewise.
42153         * tests/test-sprintf-posix.c: Likewise.
42154         * tests/test-sprintf-posix.h: Likewise.
42155         * tests/test-stat-time.c: Likewise.
42156         * tests/test-stdbool.c: Likewise.
42157         * tests/test-stdint.c: Likewise.
42158         * tests/test-stdio.c: Likewise.
42159         * tests/test-stdlib.c: Likewise.
42160         * tests/test-stpncpy.c: Likewise.
42161         * tests/test-strcasestr.c: Likewise.
42162         * tests/test-striconv.c: Likewise.
42163         * tests/test-striconveh.c: Likewise.
42164         * tests/test-striconveha.c: Likewise.
42165         * tests/test-string.c: Likewise.
42166         * tests/test-sys_select.c: Likewise.
42167         * tests/test-sys_socket.c: Likewise.
42168         * tests/test-sys_stat.c: Likewise.
42169         * tests/test-sys_time.c: Likewise.
42170         * tests/test-sysexits.c: Likewise.
42171         * tests/test-time.c: Likewise.
42172         * tests/test-tls.c: Likewise.
42173         * tests/test-trunc.c: Likewise.
42174         * tests/test-truncf.c: Likewise.
42175         * tests/test-truncl.c: Likewise.
42176         * tests/test-unistd.c: Likewise.
42177         * tests/test-vasnprintf-posix.c: Likewise.
42178         * tests/test-vasnprintf-posix2.c: Likewise.
42179         * tests/test-vasnprintf.c: Likewise.
42180         * tests/test-vasprintf-posix.c: Likewise.
42181         * tests/test-vasprintf.c: Likewise.
42182         * tests/test-verify.c: Likewise.
42183         * tests/test-vfprintf-posix.c: Likewise.
42184         * tests/test-vprintf-posix.c: Likewise.
42185         * tests/test-vsnprintf-posix.c: Likewise.
42186         * tests/test-vsnprintf.c: Likewise.
42187         * tests/test-vsprintf-posix.c: Likewise.
42188         * tests/test-wchar.c: Likewise.
42189         * tests/test-wctype.c: Likewise.
42190         * tests/test-wcwidth.c: Likewise.
42191         * tests/test-xstrtol.c: Likewise.
42192         * tests/test-xvasprintf.c: Likewise.
42193         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
42194         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
42195         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42196         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42197         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42198         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
42199         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42200         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42202         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
42203         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42204         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42205         * tests/uniname/test-uninames.c: Likewise.
42206         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
42207         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
42208         * tests/unistdio/test-u16-printf1.h: Likewise.
42209         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
42210         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
42211         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
42212         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
42213         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
42214         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
42215         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
42216         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
42217         * tests/unistdio/test-u32-printf1.h: Likewise.
42218         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
42219         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
42220         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
42221         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
42222         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
42223         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
42224         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
42225         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
42226         * tests/unistdio/test-u8-printf1.h: Likewise.
42227         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
42228         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
42229         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
42230         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
42231         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
42232         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
42233         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
42234         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
42235         * tests/unistdio/test-ulc-printf1.h: Likewise.
42236         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
42237         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
42238         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
42239         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
42240         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
42241         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
42242         * tests/uniwidth/test-u16-strwidth.c: Likewise.
42243         * tests/uniwidth/test-u16-width.c: Likewise.
42244         * tests/uniwidth/test-u32-strwidth.c: Likewise.
42245         * tests/uniwidth/test-u32-width.c: Likewise.
42246         * tests/uniwidth/test-u8-strwidth.c: Likewise.
42247         * tests/uniwidth/test-u8-width.c: Likewise.
42248         * tests/uniwidth/test-uc_width.c: Likewise.
42249         * config/srclist-update: Likewise.
42250         (fixlicense): Update to GPLv3+.
42251
42252         Change copyright notice from LGPLv2.1+ to LGPLv3+.
42253         * tests/test-tsearch.c: Change copyright notice.
42254
42255         Change copyright notice from LGPLv2.0+ to LGPLv3+.
42256         * lib/c-strcaseeq.h: Change copyright notice.
42257         * lib/streq.h: Likewise.
42258         * lib/uniconv.h: Likewise.
42259         * lib/uniconv/u-conv-from-enc.h: Likewise.
42260         * lib/uniconv/u-conv-to-enc.h: Likewise.
42261         * lib/uniconv/u-strconv-from-enc.h: Likewise.
42262         * lib/uniconv/u-strconv-to-enc.h: Likewise.
42263         * lib/uniconv/u16-conv-from-enc.c: Likewise.
42264         * lib/uniconv/u16-conv-to-enc.c: Likewise.
42265         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
42266         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
42267         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
42268         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
42269         * lib/uniconv/u32-conv-from-enc.c: Likewise.
42270         * lib/uniconv/u32-conv-to-enc.c: Likewise.
42271         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
42272         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
42273         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
42274         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
42275         * lib/uniconv/u8-conv-from-enc.c: Likewise.
42276         * lib/uniconv/u8-conv-to-enc.c: Likewise.
42277         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
42278         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
42279         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
42280         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
42281         * lib/uniname.h: Likewise.
42282         * lib/uniname/uniname.c: Likewise.
42283         * lib/unistdio.h: Likewise.
42284         * lib/unistdio/u-asnprintf.h: Likewise.
42285         * lib/unistdio/u-asprintf.h: Likewise.
42286         * lib/unistdio/u-printf-args.c: Likewise.
42287         * lib/unistdio/u-printf-args.h: Likewise.
42288         * lib/unistdio/u-printf-parse.h: Likewise.
42289         * lib/unistdio/u-snprintf.h: Likewise.
42290         * lib/unistdio/u-sprintf.h: Likewise.
42291         * lib/unistdio/u-vasprintf.h: Likewise.
42292         * lib/unistdio/u-vsnprintf.h: Likewise.
42293         * lib/unistdio/u-vsprintf.h: Likewise.
42294         * lib/unistdio/u16-asnprintf.c: Likewise.
42295         * lib/unistdio/u16-asprintf.c: Likewise.
42296         * lib/unistdio/u16-printf-parse.c: Likewise.
42297         * lib/unistdio/u16-snprintf.c: Likewise.
42298         * lib/unistdio/u16-sprintf.c: Likewise.
42299         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
42300         * lib/unistdio/u16-u16-asprintf.c: Likewise.
42301         * lib/unistdio/u16-u16-snprintf.c: Likewise.
42302         * lib/unistdio/u16-u16-sprintf.c: Likewise.
42303         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
42304         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
42305         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
42306         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
42307         * lib/unistdio/u16-vasnprintf.c: Likewise.
42308         * lib/unistdio/u16-vasprintf.c: Likewise.
42309         * lib/unistdio/u16-vsnprintf.c: Likewise.
42310         * lib/unistdio/u16-vsprintf.c: Likewise.
42311         * lib/unistdio/u32-asnprintf.c: Likewise.
42312         * lib/unistdio/u32-asprintf.c: Likewise.
42313         * lib/unistdio/u32-printf-parse.c: Likewise.
42314         * lib/unistdio/u32-snprintf.c: Likewise.
42315         * lib/unistdio/u32-sprintf.c: Likewise.
42316         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
42317         * lib/unistdio/u32-u32-asprintf.c: Likewise.
42318         * lib/unistdio/u32-u32-snprintf.c: Likewise.
42319         * lib/unistdio/u32-u32-sprintf.c: Likewise.
42320         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
42321         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
42322         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
42323         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
42324         * lib/unistdio/u32-vasnprintf.c: Likewise.
42325         * lib/unistdio/u32-vasprintf.c: Likewise.
42326         * lib/unistdio/u32-vsnprintf.c: Likewise.
42327         * lib/unistdio/u32-vsprintf.c: Likewise.
42328         * lib/unistdio/u8-asnprintf.c: Likewise.
42329         * lib/unistdio/u8-asprintf.c: Likewise.
42330         * lib/unistdio/u8-printf-parse.c: Likewise.
42331         * lib/unistdio/u8-snprintf.c: Likewise.
42332         * lib/unistdio/u8-sprintf.c: Likewise.
42333         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
42334         * lib/unistdio/u8-u8-asprintf.c: Likewise.
42335         * lib/unistdio/u8-u8-snprintf.c: Likewise.
42336         * lib/unistdio/u8-u8-sprintf.c: Likewise.
42337         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
42338         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
42339         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
42340         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
42341         * lib/unistdio/u8-vasnprintf.c: Likewise.
42342         * lib/unistdio/u8-vasprintf.c: Likewise.
42343         * lib/unistdio/u8-vsnprintf.c: Likewise.
42344         * lib/unistdio/u8-vsprintf.c: Likewise.
42345         * lib/unistdio/ulc-asnprintf.c: Likewise.
42346         * lib/unistdio/ulc-asprintf.c: Likewise.
42347         * lib/unistdio/ulc-printf-parse.c: Likewise.
42348         * lib/unistdio/ulc-snprintf.c: Likewise.
42349         * lib/unistdio/ulc-sprintf.c: Likewise.
42350         * lib/unistdio/ulc-vasnprintf.c: Likewise.
42351         * lib/unistdio/ulc-vasprintf.c: Likewise.
42352         * lib/unistdio/ulc-vsnprintf.c: Likewise.
42353         * lib/unistdio/ulc-vsprintf.c: Likewise.
42354         * lib/unistr.h: Likewise.
42355         * lib/unistr/u-cpy-alloc.h: Likewise.
42356         * lib/unistr/u-cpy.h: Likewise.
42357         * lib/unistr/u-endswith.h: Likewise.
42358         * lib/unistr/u-move.h: Likewise.
42359         * lib/unistr/u-set.h: Likewise.
42360         * lib/unistr/u-startswith.h: Likewise.
42361         * lib/unistr/u-stpcpy.h: Likewise.
42362         * lib/unistr/u-stpncpy.h: Likewise.
42363         * lib/unistr/u-strcat.h: Likewise.
42364         * lib/unistr/u-strcpy.h: Likewise.
42365         * lib/unistr/u-strcspn.h: Likewise.
42366         * lib/unistr/u-strdup.h: Likewise.
42367         * lib/unistr/u-strlen.h: Likewise.
42368         * lib/unistr/u-strncat.h: Likewise.
42369         * lib/unistr/u-strncpy.h: Likewise.
42370         * lib/unistr/u-strnlen.h: Likewise.
42371         * lib/unistr/u-strpbrk.h: Likewise.
42372         * lib/unistr/u-strspn.h: Likewise.
42373         * lib/unistr/u-strstr.h: Likewise.
42374         * lib/unistr/u-strtok.h: Likewise.
42375         * lib/unistr/u16-check.c: Likewise.
42376         * lib/unistr/u16-chr.c: Likewise.
42377         * lib/unistr/u16-cmp.c: Likewise.
42378         * lib/unistr/u16-cpy-alloc.c: Likewise.
42379         * lib/unistr/u16-cpy.c: Likewise.
42380         * lib/unistr/u16-endswith.c: Likewise.
42381         * lib/unistr/u16-mblen.c: Likewise.
42382         * lib/unistr/u16-mbsnlen.c: Likewise.
42383         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42384         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42385         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42386         * lib/unistr/u16-mbtouc.c: Likewise.
42387         * lib/unistr/u16-mbtoucr.c: Likewise.
42388         * lib/unistr/u16-move.c: Likewise.
42389         * lib/unistr/u16-next.c: Likewise.
42390         * lib/unistr/u16-prev.c: Likewise.
42391         * lib/unistr/u16-set.c: Likewise.
42392         * lib/unistr/u16-startswith.c: Likewise.
42393         * lib/unistr/u16-stpcpy.c: Likewise.
42394         * lib/unistr/u16-stpncpy.c: Likewise.
42395         * lib/unistr/u16-strcat.c: Likewise.
42396         * lib/unistr/u16-strchr.c: Likewise.
42397         * lib/unistr/u16-strcmp.c: Likewise.
42398         * lib/unistr/u16-strcpy.c: Likewise.
42399         * lib/unistr/u16-strcspn.c: Likewise.
42400         * lib/unistr/u16-strdup.c: Likewise.
42401         * lib/unistr/u16-strlen.c: Likewise.
42402         * lib/unistr/u16-strmblen.c: Likewise.
42403         * lib/unistr/u16-strmbtouc.c: Likewise.
42404         * lib/unistr/u16-strncat.c: Likewise.
42405         * lib/unistr/u16-strncmp.c: Likewise.
42406         * lib/unistr/u16-strncpy.c: Likewise.
42407         * lib/unistr/u16-strnlen.c: Likewise.
42408         * lib/unistr/u16-strpbrk.c: Likewise.
42409         * lib/unistr/u16-strrchr.c: Likewise.
42410         * lib/unistr/u16-strspn.c: Likewise.
42411         * lib/unistr/u16-strstr.c: Likewise.
42412         * lib/unistr/u16-strtok.c: Likewise.
42413         * lib/unistr/u16-to-u32.c: Likewise.
42414         * lib/unistr/u16-to-u8.c: Likewise.
42415         * lib/unistr/u16-uctomb-aux.c: Likewise.
42416         * lib/unistr/u16-uctomb.c: Likewise.
42417         * lib/unistr/u32-check.c: Likewise.
42418         * lib/unistr/u32-chr.c: Likewise.
42419         * lib/unistr/u32-cmp.c: Likewise.
42420         * lib/unistr/u32-cpy-alloc.c: Likewise.
42421         * lib/unistr/u32-cpy.c: Likewise.
42422         * lib/unistr/u32-endswith.c: Likewise.
42423         * lib/unistr/u32-mblen.c: Likewise.
42424         * lib/unistr/u32-mbsnlen.c: Likewise.
42425         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42426         * lib/unistr/u32-mbtouc.c: Likewise.
42427         * lib/unistr/u32-mbtoucr.c: Likewise.
42428         * lib/unistr/u32-move.c: Likewise.
42429         * lib/unistr/u32-next.c: Likewise.
42430         * lib/unistr/u32-prev.c: Likewise.
42431         * lib/unistr/u32-set.c: Likewise.
42432         * lib/unistr/u32-startswith.c: Likewise.
42433         * lib/unistr/u32-stpcpy.c: Likewise.
42434         * lib/unistr/u32-stpncpy.c: Likewise.
42435         * lib/unistr/u32-strcat.c: Likewise.
42436         * lib/unistr/u32-strchr.c: Likewise.
42437         * lib/unistr/u32-strcmp.c: Likewise.
42438         * lib/unistr/u32-strcpy.c: Likewise.
42439         * lib/unistr/u32-strcspn.c: Likewise.
42440         * lib/unistr/u32-strdup.c: Likewise.
42441         * lib/unistr/u32-strlen.c: Likewise.
42442         * lib/unistr/u32-strmblen.c: Likewise.
42443         * lib/unistr/u32-strmbtouc.c: Likewise.
42444         * lib/unistr/u32-strncat.c: Likewise.
42445         * lib/unistr/u32-strncmp.c: Likewise.
42446         * lib/unistr/u32-strncpy.c: Likewise.
42447         * lib/unistr/u32-strnlen.c: Likewise.
42448         * lib/unistr/u32-strpbrk.c: Likewise.
42449         * lib/unistr/u32-strrchr.c: Likewise.
42450         * lib/unistr/u32-strspn.c: Likewise.
42451         * lib/unistr/u32-strstr.c: Likewise.
42452         * lib/unistr/u32-strtok.c: Likewise.
42453         * lib/unistr/u32-to-u16.c: Likewise.
42454         * lib/unistr/u32-to-u8.c: Likewise.
42455         * lib/unistr/u32-uctomb.c: Likewise.
42456         * lib/unistr/u8-check.c: Likewise.
42457         * lib/unistr/u8-chr.c: Likewise.
42458         * lib/unistr/u8-cmp.c: Likewise.
42459         * lib/unistr/u8-cpy-alloc.c: Likewise.
42460         * lib/unistr/u8-cpy.c: Likewise.
42461         * lib/unistr/u8-endswith.c: Likewise.
42462         * lib/unistr/u8-mblen.c: Likewise.
42463         * lib/unistr/u8-mbsnlen.c: Likewise.
42464         * lib/unistr/u8-mbtouc-aux.c: Likewise.
42465         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42466         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42467         * lib/unistr/u8-mbtouc.c: Likewise.
42468         * lib/unistr/u8-mbtoucr.c: Likewise.
42469         * lib/unistr/u8-move.c: Likewise.
42470         * lib/unistr/u8-next.c: Likewise.
42471         * lib/unistr/u8-prev.c: Likewise.
42472         * lib/unistr/u8-set.c: Likewise.
42473         * lib/unistr/u8-startswith.c: Likewise.
42474         * lib/unistr/u8-stpcpy.c: Likewise.
42475         * lib/unistr/u8-stpncpy.c: Likewise.
42476         * lib/unistr/u8-strcat.c: Likewise.
42477         * lib/unistr/u8-strchr.c: Likewise.
42478         * lib/unistr/u8-strcmp.c: Likewise.
42479         * lib/unistr/u8-strcpy.c: Likewise.
42480         * lib/unistr/u8-strcspn.c: Likewise.
42481         * lib/unistr/u8-strdup.c: Likewise.
42482         * lib/unistr/u8-strlen.c: Likewise.
42483         * lib/unistr/u8-strmblen.c: Likewise.
42484         * lib/unistr/u8-strmbtouc.c: Likewise.
42485         * lib/unistr/u8-strncat.c: Likewise.
42486         * lib/unistr/u8-strncmp.c: Likewise.
42487         * lib/unistr/u8-strncpy.c: Likewise.
42488         * lib/unistr/u8-strnlen.c: Likewise.
42489         * lib/unistr/u8-strpbrk.c: Likewise.
42490         * lib/unistr/u8-strrchr.c: Likewise.
42491         * lib/unistr/u8-strspn.c: Likewise.
42492         * lib/unistr/u8-strstr.c: Likewise.
42493         * lib/unistr/u8-strtok.c: Likewise.
42494         * lib/unistr/u8-to-u16.c: Likewise.
42495         * lib/unistr/u8-to-u32.c: Likewise.
42496         * lib/unistr/u8-uctomb-aux.c: Likewise.
42497         * lib/unistr/u8-uctomb.c: Likewise.
42498         * lib/unitypes.h: Likewise.
42499         * lib/uniwidth.h: Likewise.
42500         * lib/uniwidth/cjk.h: Likewise.
42501         * lib/uniwidth/u16-strwidth.c: Likewise.
42502         * lib/uniwidth/u16-width.c: Likewise.
42503         * lib/uniwidth/u32-strwidth.c: Likewise.
42504         * lib/uniwidth/u32-width.c: Likewise.
42505         * lib/uniwidth/u8-strwidth.c: Likewise.
42506         * lib/uniwidth/u8-width.c: Likewise.
42507         * lib/uniwidth/width.c: Likewise.
42508
42509 2007-10-07  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
42512         The file is still under LGPL (see modules/inttypes).
42513
42514 2007-10-06  Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/trunc (Dependencies): Add 'extensions'.
42517         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
42518         Reported by Ben Pfaff <blp@gnu.org>.
42519
42520 2007-10-06  Bruno Haible  <bruno@clisp.org>
42521
42522         * modules/freopen-tests: New file.
42523         * tests/test-freopen.c: New file.
42524
42525         * modules/fopen-tests: New file.
42526         * tests/test-fopen.c: New file.
42527
42528         * modules/fopen: New file.
42529         * lib/fopen.c: New file.
42530         * m4/fopen.m4: New file.
42531         * modules/freopen: New file.
42532         * lib/freopen.c: New file.
42533         * m4/freopen.m4: New file.
42534         * lib/stdio.in.h (fopen, freopen): New declarations.
42535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
42536         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42537         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
42538         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42539         * doc/functions/fopen.texi: Mention the 'fopen' module.
42540         * doc/functions/freopen.texi: Mention the 'freopen' module.
42541
42542 2007-10-06  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/open-tests: New file.
42545         * tests/test-open.c: New file.
42546
42547         * modules/open: New file.
42548         * lib/open.c: New file.
42549         * m4/open.m4: New file.
42550         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
42551         lib/open.c does.
42552         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
42553         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
42554         macros.
42555         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
42556         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
42557         REPLACE_OPEN.
42558         * doc/functions/open.texi: Mention the 'open' module.
42559
42560 2007-10-04  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/ceill-tests: New file.
42563         * tests/test-ceill.c: New file.
42564
42565         * modules/ceill: New file.
42566         * lib/ceill.c: Replace entire file.
42567         * m4/ceill.m4: New file.
42568         * lib/math.in.h (ceill): Replace declaration.
42569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
42570         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
42571         * doc/functions/ceill.texi: Mention the 'ceill' module.
42572         * modules/mathl (Files): Remove lib/ceill.c.
42573         (Depends-on): Add ceill.
42574
42575 2007-10-04  Bruno Haible  <bruno@clisp.org>
42576
42577         * modules/ceilf-tests: New file.
42578         * tests/test-ceilf.c: New file.
42579
42580         * modules/ceilf: New file.
42581         * lib/ceil.c: New file.
42582         * lib/ceilf.c: New file.
42583         * m4/ceilf.m4: New file.
42584         * lib/math.in.h (ceilf): New declaration.
42585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
42586         HAVE_DECL_CEILF.
42587         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
42588         HAVE_DECL_CEILF.
42589         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
42590
42591 2007-10-04  Bruno Haible  <bruno@clisp.org>
42592
42593         * modules/floorl-tests: New file.
42594         * tests/test-floorl.c: New file.
42595
42596         * modules/floorl: New file.
42597         * lib/floorl.c: Replace entire file.
42598         * m4/floorl.m4: New file.
42599         * lib/math.in.h (floorl): Replace declaration.
42600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
42601         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
42602         * doc/functions/floorl.texi: Mention the 'floorl' module.
42603         * modules/mathl (Files): Remove lib/floorl.c.
42604         (Depends-on): Add floorl.
42605
42606 2007-10-04  Bruno Haible  <bruno@clisp.org>
42607
42608         * modules/floorf-tests: New file.
42609         * tests/test-floorf.c: New file.
42610
42611         * modules/floorf: New file.
42612         * lib/floor.c: New file.
42613         * lib/floorf.c: New file.
42614         * m4/floorf.m4: New file.
42615         * lib/math.in.h (floorf): New declaration.
42616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
42617         HAVE_DECL_FLOORF.
42618         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
42619         HAVE_DECL_FLOORF.
42620         * doc/functions/floorf.texi: Mention the 'floorf' module.
42621
42622 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
42623             Bruno Haible  <bruno@clisp.org>
42624
42625         Advertise for the Git server instead of the CVS server.
42626         * doc/gnulib-intro.texi (Steady Development): Mention the Git
42627         repository instead of the CVS one.
42628         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
42629         about all VCS systems generically.
42630         * doc/gnulib.texi (Introduction): Capitalize `Git'.
42631
42632 2007-10-04  Bruno Haible  <bruno@clisp.org>
42633
42634         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
42635         means.
42636         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
42637
42638 2007-10-04  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/truncl-tests: New file.
42641         * tests/test-truncl.c: New file.
42642
42643         * modules/truncl: New file.
42644         * lib/truncl.c: New file.
42645         * m4/truncl.m4: New file.
42646         * lib/math.in.h (truncl): New declaration.
42647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
42648         HAVE_DECL_TRUNCL.
42649         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
42650         HAVE_DECL_TRUNCL.
42651         * doc/functions/truncl.texi: Mention the 'truncl' module.
42652
42653 2007-10-04  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/truncf-tests: New file.
42656         * tests/test-truncf.c: New file.
42657
42658         * modules/truncf: New file.
42659         * lib/trunc.c: Make paramerizable through USE_* macros.
42660         * lib/truncf.c: New file.
42661         * m4/truncf.m4: New file.
42662         * lib/math.in.h (truncf): New declaration.
42663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
42664         HAVE_DECL_TRUNCF.
42665         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
42666         HAVE_DECL_TRUNCF.
42667         * doc/functions/truncf.texi: Mention the 'truncf' module.
42668
42669 2007-10-03  Bruno Haible  <bruno@clisp.org>
42670
42671         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42672         augmentation also for tests modules.
42673         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
42674         * modules/atexit-tests (Makefile.am): Likewise.
42675         * modules/binary-io-tests (Makefile.am): Likewise.
42676         * modules/c-strcase-tests (Makefile.am): Likewise.
42677         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
42678         * modules/canonicalize-tests (Makefile.am): Likewise.
42679         * modules/closein-tests (Makefile.am): Likewise.
42680         * modules/fprintf-posix-tests (Makefile.am): Likewise.
42681         * modules/freadahead-tests (Makefile.am): Likewise.
42682         * modules/fseek-tests (Makefile.am): Likewise.
42683         * modules/fseeko-tests (Makefile.am): Likewise.
42684         * modules/ftell-tests (Makefile.am): Likewise.
42685         * modules/ftello-tests (Makefile.am): Likewise.
42686         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
42687         * modules/isnanl-tests (Makefile.am): Likewise.
42688         * modules/lseek-tests (Makefile.am): Likewise.
42689         * modules/mbscasecmp-tests (Makefile.am): Likewise.
42690         * modules/mbscasestr-tests (Makefile.am): Likewise.
42691         * modules/mbschr-tests (Makefile.am): Likewise.
42692         * modules/mbscspn-tests (Makefile.am): Likewise.
42693         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
42694         * modules/mbspbrk-tests (Makefile.am): Likewise.
42695         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
42696         * modules/mbsrchr-tests (Makefile.am): Likewise.
42697         * modules/mbsspn-tests (Makefile.am): Likewise.
42698         * modules/mbsstr-tests (Makefile.am): Likewise.
42699         * modules/printf-posix-tests (Makefile.am): Likewise.
42700         * modules/snprintf-posix-tests (Makefile.am): Likewise.
42701         * modules/sprintf-posix-tests (Makefile.am): Likewise.
42702         * modules/tsearch-tests (Makefile.am): Likewise.
42703         * modules/uniname/uniname-tests (Makefile.am): Likewise.
42704         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
42705         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
42706         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
42707         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
42708         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42709         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42710         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42711         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42712         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42713         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42714         * modules/xstrtol-tests (Makefile.am): Likewise.
42715         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42716         * modules/yesno-tests (Makefile.am): Likewise.
42717
42718 2007-10-03  Bruno Haible  <bruno@clisp.org>
42719
42720         * modules/trunc-tests: New file.
42721         * tests/test-trunc.c: New file.
42722
42723         * modules/trunc: New file.
42724         * lib/trunc.c: New file.
42725         * m4/trunc.m4: New file.
42726         * lib/math.in.h (trunc): New declaration.
42727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42728         HAVE_DECL_TRUNC.
42729         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42730         HAVE_DECL_TRUNC.
42731         * doc/functions/trunc.texi: Mention the 'trunc' module.
42732
42733 2007-10-03  Bruno Haible  <bruno@clisp.org>
42734
42735         * tests/test-fpending.c: New file, mostly copied
42736         from coreutils/lib/t-fpending.c.
42737         * modules/fpending-tests: New file.
42738
42739 2007-10-03  Bruno Haible  <bruno@clisp.org>
42740
42741         Port the stdio extensions to QNX (untested).
42742         * lib/fseterr.c (fseterr): Add support for QNX.
42743         * lib/fbufmode.c (fbufmode): Likewise.
42744         * lib/freadable.c (freadable): Likewise.
42745         * lib/fwritable.c (fwritable): Likewise.
42746         * lib/freading.c (freading): Likewise.
42747         * lib/fwriting.c (fwriting): Likewise.
42748         * lib/freadahead.c (freadahed): Likewise.
42749         * lib/fpurge.c (fpurge): Likewise.
42750         * lib/fseeko.c (rpl_fseeko): Likewise.
42751
42752 2007-10-03  Bruno Haible  <bruno@clisp.org>
42753             Jim Meyering  <jim@meyering.net>
42754             Eric Blake  <ebb9@byu.net>
42755
42756         * doc/relocatable.texi: Use @command instead of @program.
42757
42758 2007-10-02  Jim Meyering  <jim@meyering.net>
42759
42760         Perform one more "_.h" -> ".in.h" substitution.
42761         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42762         instead of unistd_.h here, too.
42763
42764 2007-10-01  Bruno Haible  <bruno@clisp.org>
42765
42766         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42767         Needed for the alloca-opt module.
42768
42769 2007-09-30  Bruno Haible  <bruno@clisp.org>
42770
42771         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42772         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42773         alloca_.h.
42774         * lib/argz.in.h: Renamed from lib/argz_.h.
42775         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42776         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42777         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42778         byteswap_.h.
42779         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42780         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42781         dirent_.h.
42782         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42783         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42784         fcntl_.h.
42785         * lib/float.in.h: Renamed from lib/float_.h.
42786         * modules/float (Files, Makefile.am): Use float.in.h instead of
42787         float_.h.
42788         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42789         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42790         fnmatch_.h.
42791         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42792         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42793         getopt_.h.
42794         * lib/glob.in.h: Renamed from lib/glob_.h.
42795         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42796         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42797         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42798         iconv_.h.
42799         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42800         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42801         inttypes_.h.
42802         * lib/locale.in.h: Renamed from lib/locale_.h.
42803         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42804         locale_.h.
42805         * lib/math.in.h: Renamed from lib/math_.h.
42806         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42807         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42808         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42809         of netinet_in_.h. Add dependency.
42810         * lib/poll.in.h: Renamed from lib/poll_.h.
42811         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42812         * lib/search.in.h: Renamed from lib/search_.h.
42813         * modules/search (Files, Makefile.am): Use search.in.h instead of
42814         search_.h.
42815         * lib/signal.in.h: Renamed from lib/signal_.h.
42816         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42817         _signal.h.
42818         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42819         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42820         stdbool_.h.
42821         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42822         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42823         stdint_.h.
42824         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42825         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42826         stdio_.h.
42827         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42828         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42829         stdlib_.h.
42830         * lib/string.in.h: Renamed from lib/string_.h.
42831         * modules/string (Files, Makefile.am): Use string.in.h instead of
42832         string_.h.
42833         * doc/gnulib-tool.texi (Initial import): Update.
42834         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42835         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42836         of sys_select_.h. Add dependency.
42837         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42838         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42839         of sys_socket_.h.
42840         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42841         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42842         sys_stat_.h.
42843         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42844         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42845         sys_time_.h.
42846         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42847         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42848         sysexits_.h.
42849         * lib/time.in.h: Renamed from lib/time_.h.
42850         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42851         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42852         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42853         unistd_.h.
42854         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42855         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42856         wchar_.h.
42857         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42858         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42859         wctype_.h.
42860         * build-aux/bootstrap (slurp): Update.
42861         * lib/.cppi-disable: Update.
42862
42863 2007-09-30  Bruno Haible  <bruno@clisp.org>
42864
42865         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42866         Needed on BeOS.
42867
42868 2007-09-30  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42871
42872 2007-09-29  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42875
42876 2007-09-29  Bruno Haible  <bruno@clisp.org>
42877
42878         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42879         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42880         * build-aux/install-reloc: Compile also areadlink.c.
42881         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42882
42883 2007-09-29  Bruno Haible  <bruno@clisp.org>
42884
42885         * gnulib-tool (func_emit_initmacro_done): Indentation.
42886
42887 2007-09-29  Bruno Haible  <bruno@clisp.org>
42888
42889         * README: Add CVS checkout update instructions.
42890         Info from Bob Proulx <bob@proulx.com>.
42891
42892 2007-09-28  Eric Blake  <ebb9@byu.net>
42893
42894         Provide move-if-change.
42895         * build-aux/move-if-change: New file, based on best practice
42896         rather than any canonical upstream location.
42897
42898 2007-09-28  Jim Meyering  <jim@meyering.net>
42899
42900         Fix canonicalize loop-detection corner case.
42901         Do not attempt to stat the symlink values stored via seen_triple.
42902         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42903         on linux-2.6.18, (but not 2.6.22).
42904         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42905         triple_compare.  The former compares dev,ino,filename, while the latter
42906         would actually stat dirname(filename) when dev and ino were equal.
42907         * lib/hash-triple.c: Install <string.h>.
42908         (STREQ): Define.
42909         (triple_compare_ino_str): New function.
42910         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42911
42912 2007-09-28  Eric Blake  <ebb9@byu.net>
42913
42914         Enforce that AC_REPLACE_FUNCS files exist.
42915         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42916         override check for typos.
42917
42918         Fix test-closein on Solaris 10.
42919         * tests/test-closein.c (main): Don't assume stdin can be inherited
42920         closed on all systems.
42921         * tests/test-closein.sh: Likewise.
42922         Reported by Piotr Tarnowski.
42923
42924 2007-09-28  Jim Meyering  <jim@meyering.net>
42925
42926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42927
42928 2007-09-27  Jim Meyering  <jim@meyering.net>
42929
42930         canonicalize: Avoid a false-positive cycle failure.
42931         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42932         Sort.  Remove cycle-check.
42933         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42934         not cycle-check.h.
42935         (seen_triple): New function.
42936         (canonicalize_filename_mode): Use it instead of cycle-check.
42937         * tests/test-canonicalize.c: Add a test for this bug.
42938         * tests/test-canonicalize.sh: Set up and run the test.
42939
42940         New module, file-set, from coreutils.
42941         * modules/file-set: Define it.
42942         * lib/file-set.c, lib/file-set.h: Implement.
42943
42944         New module, hash-triple, from coreutils.
42945         * modules/hash-triple: Define it.
42946         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42947
42948 2007-09-25  Eric Blake  <ebb9@byu.net>
42949
42950         Fix strerror on Interix.
42951         * lib/string_.h (strerror): Declare replacement.
42952         * doc/functions/strerror.texi (strerror): Document the Interix
42953         shortcoming.
42954         * modules/string (Makefile.am): Support new hooks.
42955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42956         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42957         gl_FUNC_STRERROR_SEPARATE.
42958         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42959         * lib/strerror.c (rpl_strerror): Provide replacement.
42960         * modules/strerror (Depends-on): Add string.
42961         (configure.ac): Detect use of module.
42962         * tests/test-strerror.c: New file.
42963         * modules/strerror-tests: New test module.
42964         * modules/argp (Depends-on): Add strerror.
42965         * modules/error (Depends-on): Likewise.
42966         Reported by Martin Koeppe.
42967
42968 2007-09-24  Bruno Haible  <bruno@clisp.org>
42969
42970         * README: Update git instructions.
42971
42972 2007-09-24  Eric Blake  <ebb9@byu.net>
42973
42974         Revert fpending breakage from 2007-09-08.
42975         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
42976         __fpending.c.
42977
42978 2007-09-24  Jim Meyering  <jim@meyering.net>
42979
42980         filenamecat.c: Add a test.
42981         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
42982         showing how the function works when DIR is the empty string.
42983
42984 2007-09-21  Simon Josefsson  <simon@josefsson.org>
42985
42986         * tests/test-canonicalize.sh: Turn on executable bit.
42987
42988 2007-09-19  Eric Blake  <ebb9@byu.net>
42989
42990         * README: Update CVS instructions.
42991
42992 2007-09-18  Bruno Haible  <bruno@clisp.org>
42993
42994         * modules/areadlink: New file.
42995         * lib/areadlink.h (areadlink): New declaration.
42996         * lib/areadlink.c: New file, based on lib/xreadlink.c.
42997
42998 2007-09-17  Jim Meyering  <jim@meyering.net>
42999
43000         * lib/savewd.c (ESTALE) [!defined]: Define.
43001         Reported to be required on Interix by Martin Koeppe.
43002
43003 2007-09-17  Bruno Haible  <bruno@clisp.org>
43004
43005         * gnulib-tool (func_version): Use $version.
43006
43007 2007-09-16  Bruno Haible  <bruno@clisp.org>
43008
43009         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
43010         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
43011         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
43012         Reported by Greg Schafer <gschafer@zip.com.au>.
43013
43014 2007-09-15  Bruno Haible  <bruno@clisp.org>
43015
43016         * gnulib-tool (sed): Try a little harder to make bash understand the
43017         alias.
43018         Reported by Bruce Korb <bruce.korb@gmail.com>.
43019
43020 2007-09-13  Eric Blake  <ebb9@byu.net>
43021
43022         * ChangeLog: Remove conflict markers.
43023
43024 2007-09-13  Simon Josefsson  <simon@josefsson.org>
43025
43026         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
43027         Reported by Bruno Haible <bruno@clisp.org>.
43028
43029 2007-09-12  Bruno Haible  <bruno@clisp.org>
43030
43031         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
43032         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
43033         is not defined.
43034
43035 2007-09-12  Eric Blake  <ebb9@byu.net>
43036
43037         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
43038         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
43039         Autoconf definition.
43040         * modules/euidaccess (Depends-on): Add extensions, for
43041         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
43042         * modules/fnmatch (Depends-on): Likewise.
43043         * modules/getaddrinfo (Depends-on): Likewise.
43044         * modules/getdelim (Depends-on): Likewise.
43045         * modules/getline (Depends-on): Likewise.
43046         * modules/getsubopt (Depends-on): Likewise.
43047         * modules/gettext (Depends-on): Likewise.
43048         * modules/group-member (Depends-on): Likewise.
43049         * modules/mbchar (Depends-on): Likewise.
43050         * modules/memmem (Depends-on): Likewise.
43051         * modules/mempcpy (Depends-on): Likewise.
43052         * modules/memrchr (Depends-on): Likewise.
43053         * modules/pagealign_alloc (Depends-on): Likewise.
43054         * modules/readutmp (Depends-on): Likewise.
43055         * modules/stpcpy (Depends-on): Likewise.
43056         * modules/stpncpy (Depends-on): Likewise.
43057         * modules/strchrnul (Depends-on): Likewise.
43058         * modules/strndup (Depends-on): Likewise.
43059         * modules/strsep (Depends-on): Likewise.
43060         * modules/strverscmp (Depends-on): Likewise.
43061         * modules/vasprintf (Depends-on): Likewise.
43062         * modules/wcwidth (Depends-on): Likewise.
43063         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
43064         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
43065         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
43066         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
43067         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43068         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43069         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
43070         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43071         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
43072         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
43073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43074         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43076         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43077         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
43078         * m4/readutmp.m4 (gl_READUTMP): Likewise.
43079         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43080         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43082         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43083         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43084         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43085         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43086         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
43087         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
43088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43089         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
43090         so that lock.m4 can be used in gettext without extensions module.
43091
43092 2007-09-11  Bruno Haible  <bruno@clisp.org>
43093
43094         * m4/isc-posix.m4: Remove file.
43095         Suggested by Eric Blake.
43096
43097 2007-09-11  Eric Blake  <ebb9@byu.net>
43098
43099         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
43100
43101 2007-09-10  Bruno Haible  <bruno@clisp.org>
43102
43103         * posix-modules: Fix typo in error message.
43104         Reported by Matt <mkraai@beckman.com>.
43105
43106 2007-09-09  Bruno Haible  <bruno@clisp.org>
43107
43108         * doc/functions/getdelim.texi: Update list of platforms lacking the
43109         function.
43110         * doc/functions/getline.texi: Likewise.
43111
43112 2007-09-09  Jim Meyering  <jim@meyering.net>
43113
43114         * lib/hash.c (hash_initialize): Detect calloc failure.
43115         Reported by Bruno Haible.
43116
43117 2007-09-09  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
43120         malloc or realloc fails.
43121
43122 2007-09-09  Bruno Haible  <bruno@clisp.org>
43123
43124         * modules/getcwd (Depends-on): Add malloc-posix.
43125         * modules/glob (Depends-on): Likewise.
43126         * modules/putenv (Depends-on): Likewise.
43127         * modules/strdup (Depends-on): Likewise.
43128         * modules/getdelim (Depends-on): Add realloc-posix.
43129         * modules/read-file (Depends-on): Likewise.
43130
43131 2007-09-09  Bruno Haible  <bruno@clisp.org>
43132
43133         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
43134         (gl_FUNC_MALLOC_POSIX): Require it.
43135         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
43136         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
43137         * modules/realloc (Files): Add m4/malloc.m4.
43138         * modules/calloc (Files): Likewise.
43139
43140 2007-09-09  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/malloc-posix: New file.
43143         * modules/malloc (Depends-on): Add malloc-posix.
43144         * lib/malloc.c: Include errno.h.
43145         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
43146         and a POSIX-compatible malloc into a single function. Set ENOMEM
43147         when returning NULL.
43148         * m4/malloc.m4: New file.
43149         * doc/functions/malloc.texi: Mention the malloc-posix module.
43150         * lib/stdlib_.h (malloc): New declaration.
43151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43152         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
43153         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
43154         and HAVE_MALLOC_POSIX.
43155
43156 2007-09-09  Bruno Haible  <bruno@clisp.org>
43157
43158         * modules/realloc-posix: New file.
43159         * modules/realloc (Depends-on): Add realloc-posix.
43160         * lib/realloc.c: Include errno.h.
43161         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
43162         and a POSIX-compatible realloc into a single function. Set ENOMEM
43163         when returning NULL.
43164         * m4/realloc.m4: New file.
43165         * doc/functions/realloc.texi: Mention the realloc-posix module.
43166         * lib/stdlib_.h (realloc): New declaration.
43167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43168         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
43169         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
43170         and HAVE_REALLOC_POSIX.
43171
43172 2007-09-09  Bruno Haible  <bruno@clisp.org>
43173
43174         * modules/calloc-posix: New file.
43175         * modules/calloc (Depends-on): Add calloc-posix.
43176         * lib/calloc.c: Include errno.h.
43177         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
43178         and a POSIX-compatible calloc into a single function. Set ENOMEM
43179         when returning NULL.
43180         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
43181         * doc/functions/calloc.texi: Mention the calloc-posix module.
43182         * lib/stdlib_.h (calloc): New declaration.
43183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43184         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
43185         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
43186         and HAVE_CALLOC_POSIX.
43187
43188 2007-09-09  Bruno Haible  <bruno@clisp.org>
43189
43190         Allow for modules to show an arbitrary notice.
43191         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
43192         * gnulib-tool: New option --extract-notice.
43193         (func_usage): Document it.
43194         (sed_extract_prog): Update.
43195         (func_get_notice): New function.
43196         (func_modules_notice): New function.
43197         (func_import, func_create_testdir): Invoke it.
43198         Suggested by Jim Meyering.
43199
43200 2007-09-09  Bruno Haible  <bruno@clisp.org>
43201
43202         * gnulib-tool: New options --verbose, --quiet.
43203         (func_usage): Document them.
43204         (verbose): New variable.
43205         (func_execute_command): New function.
43206         (func_import): Don't show the module list and the file list if
43207         $verbose < 0.
43208         (func_create_testdir): Likewise. Use func_execute_command.
43209         (func_create_megatestdir): Use func_execute_command.
43210
43211 2007-09-08  Bruno Haible  <bruno@clisp.org>
43212
43213         * gnulib-tool (func_import): Prefer rsync over wget when available,
43214         for fetching the PO files.
43215
43216 2007-09-08  Bruno Haible  <bruno@clisp.org>
43217
43218         * posix-modules: New file. Portions copied from gnulib-tool.
43219         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
43220
43221 2007-09-08  Jim Meyering  <jim@meyering.net>
43222
43223         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
43224         * lib/fpending.h: Rename from __fpending.h.
43225         * lib/fpending.c: Rename from __fpending.c.
43226         Include "fpending.h", not "__fpending.h".
43227         * lib/__fpending.h, lib/__fpending.c: Remove files.
43228         * modules/fpending (Files): Reflect new file names.
43229         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
43230
43231 2007-09-08  Bruno Haible  <bruno@clisp.org>
43232
43233         * m4/inttypes-h.m4: Remove stub file.
43234
43235 2007-09-07  Simon Josefsson  <simon@josefsson.org>
43236
43237         * doc/headers/stdint.texi: Discuss #include_next issue.
43238
43239 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43240
43241         * build-aux/bootstrap: Remove obsolete comment about wget --help.
43242
43243 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43244
43245         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
43246         in variable name.
43247
43248 2007-09-03  Jim Meyering  <jim@meyering.net>
43249
43250         New module: git-version-gen.
43251         * modules/git-version-gen: New file.
43252
43253         Import changes from coreutils for bootstrap script.
43254
43255         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
43256
43257         bootstrap: uses rsync to download the .po files
43258         * build-aux/bootstrap (po_download_command_format): New global.
43259         (download_po_files): Use rsync.
43260         (update_po_files): Don't remove .po files after download,
43261         so future rsync runs can take advantage of the copies.
43262
43263         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
43264
43265         Solve the unnecessary-.po-file-regeneration problem once and for all.
43266         * build-aux/bootstrap (download_po_files): New function, renamed from
43267         get_translations.  Now, downloads, but doesn't update LINGUAS.
43268         (update_po_files): New function.
43269
43270         bootstrap: Ignore more.
43271         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
43272         uniwidth to e.g., lib/.gitignore.
43273         (slurp): Handle the sys_stat_.h -> sys mapping, too.
43274
43275         * build-aux/bootstrap: New setting: vc_ignore.
43276         (insert_sorted_if_absent): Create $file if absent.
43277         Adapt to new, possibly empty, list: $vc_ignore.
43278
43279         bootstrap: generate more ignorable names
43280         * build-aux/bootstrap (slurp): When generating ignorable names,
43281         also map .sin to .sed, .gperf to .c, and .y to .c.
43282
43283 2007-09-03  Jim Meyering  <jim@meyering.net>
43284
43285         * build-aux/git-version-gen: New file, from coreutils.  For details, see
43286         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
43287
43288 2007-09-02  Bruno Haible  <bruno@clisp.org>
43289
43290         Fix mis-recognition of 'mcs' on QNX 6.
43291         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
43292         output contains the string "Mono".
43293         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
43294         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
43295
43296 2007-09-01  Bruno Haible  <bruno@clisp.org>
43297
43298         Fix collision between uniwidth/* and linebreak modules.
43299         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
43300         u32_width): Remove declarations.
43301         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
43302         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
43303         streq3, streq2, streq1, streq0): Remove functions.
43304         (STREQ): Remove macro.
43305         (is_cjk_encoding): Remove function.
43306         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
43307         (uc_width, u8_width, u16_width, u32_width): Remove functions.
43308         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
43309         * NEWS: Document the change.
43310
43311 2007-09-01  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/streq.h: Add double-inclusion guard.
43314
43315 2007-09-01  Karl Berry  <karl@gnu.org>
43316
43317         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
43318
43319 2007-08-28  Jim Meyering  <jim@meyering.net>
43320
43321         Rename mreadlink_with_size to areadlink_with_size.
43322         * NEWS: Document the change.
43323         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
43324         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
43325         * lib/mreadlink.h: Rename this to...
43326         * lib/areadlink.h: ...this.
43327         * modules/mreadlink-with-size: Rename this to...
43328         * modules/areadlink-with-size: ...this.
43329         * lib/canonicalize.c: Reflect the renaming.
43330         * modules/canonicalize: Likewise.
43331
43332 2007-08-26  Bruno Haible  <bruno@clisp.org>
43333
43334         * gnulib-tool (func_import): When deciding which files to remove,
43335         consider also dangling symbolic links.
43336         Reported by Eric Blake.
43337
43338 2007-08-26  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
43341
43342 2007-08-23  Simon Josefsson  <simon@josefsson.org>
43343
43344         * lib/readline.c: Don't include getline.h, the prototype is now
43345         found in stdio.h.
43346
43347 2007-08-23  Jim Meyering  <jim@meyering.net>
43348
43349         Getdelim touchup.
43350         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
43351         around the funlockfile call, since funlockfile never sets errno.
43352         Don't set errno upon failed realloc.
43353
43354 2007-08-22  Eric Blake  <ebb9@byu.net>
43355
43356         Getline touchups.
43357         * lib/getdelim.c (getdelim): Revert regression that required *n to
43358         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
43359         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
43360         getdelim, rather than whether implementation is missing.
43361         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
43362         * lib/stdio_.h (getline): Also declare if replacement is
43363         required.
43364         * doc/functions/getdelim.texi: New file.
43365         * doc/functions/getline.texi: Likewise.
43366         * doc/gnulib.texi (Function Substitutes): Add new files.
43367         Reported by Bruno Haible.
43368
43369 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
43370
43371         * users.txt: Add Guile.
43372
43373 2007-08-22  Eric Blake  <ebb9@byu.net>
43374
43375         * tests/test-getdelim.c (main): Use remove, not unlink.
43376         * tests/test-getline.c (main): Likewise.
43377
43378         Move getline and getdelim into stdio.h, per POSIX 200x.
43379         * modules/getline (Files): Remove getline.h.
43380         (Depends-on): Add stdio.
43381         (configure.ac): Add module indicator.
43382         * modules/getdelim (Files): Remove getdelim.h.
43383         (Depends-on): Add stdio.
43384         (configure.ac): Add module indicator.
43385         * modules/stdio (Makefile.am): Work with new indicators.
43386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43387         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
43388         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43389         * lib/getdelim.h: Delete.
43390         * lib/getline.h: Delete.
43391         * lib/stdio_.h (getdelim, getline): Declare.
43392         * modules/getdelim-tests: New module.
43393         * modules/getline-tests: Likewise.
43394         * tests/test-getdelim.c: New file.
43395         * tests/test-getline.c: Likewise.
43396         * NEWS: Document the change.
43397         * lib/getline.c: Update choice of header.
43398         * lib/csharpcomp.c: Likewise.
43399         * lib/getpass.c: Likewise.
43400         * lib/javacomp.c: Likewise.
43401         * lib/javaversion.c: Likewise.
43402         * lib/yesno.c: Likewise.
43403         * lib/getdelim.c: Likewise.
43404         (getdelim): Set errno on failure, and avoid memory leak.
43405
43406 2007-08-19  Bruno Haible  <bruno@clisp.org>
43407
43408         * modules/closein (Depends-on): Add freadahead.
43409         * lib/closein.c: Include freadahead.h.
43410         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
43411         is zero.
43412
43413 2007-08-19  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/freadahead-tests: New file.
43416         * tests/test-freadahead.sh: New file.
43417         * tests/test-freadahead.c: New file.
43418
43419         * modules/freadahead: New file.
43420         * lib/freadahead.h: New file.
43421         * lib/freadahead.c: New file.
43422         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
43423         fbufmode, fpurge, freadable, fwritable.
43424
43425 2007-08-19  Eric Blake  <ebb9@byu.net>
43426
43427         Test yesno in combination with closein.
43428         * lib/yesno.c (yesno): Document use of stdin.
43429         * modules/yesno-tests (Files): New module.
43430         * tests/test-yesno.c (main): New file.
43431         * tests/test-yesno.sh: Likewise.
43432
43433 2007-08-19  Bruno Haible  <bruno@clisp.org>
43434
43435         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
43436         * lib/fseeko.c (rpl_fseeko): Likewise.
43437         * lib/fseterr.c (fseterr): Likewise.
43438
43439 2007-08-19  Bruno Haible  <bruno@clisp.org>
43440
43441         * tests/test-lseek.c (main): Disable a test for BeOS.
43442         * doc/functions/lseek.texi: Document the BeOS bug.
43443
43444 2007-08-19  Bruno Haible  <bruno@clisp.org>
43445             Eric Blake  <ebb9@byu.net>
43446
43447         * lib/lseek.c: Include <sys/stat.h>.
43448         (rpl_lseek): Add workaround code also for Unix platforms.
43449         Needed for BeOS.
43450         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
43451         * doc/functions/lseek.texi: Document BeOS definiency.
43452
43453 2007-08-18  Bruno Haible  <bruno@clisp.org>
43454
43455         * modules/fstrcmp-tests: New file.
43456         * tests/test-fstrcmp.c: New file.
43457
43458 2007-08-18  Bruno Haible  <bruno@clisp.org>
43459
43460         * modules/fstrcmp: New file, from GNU gettext with modifications.
43461         * lib/fstrcmp.h: New file, from GNU gettext.
43462         * lib/fstrcmp.c: New file, from GNU gettext.
43463         * MODULES.html.sh (String handling): Add fstrcmp.
43464
43465 2007-08-18  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
43468         'bool'.
43469         (diag, compareseq): Remove const from the ctxt argument.
43470         (USE_HEURISTIC): Undefine at the end.
43471
43472 2007-08-18  Jim Meyering  <jim@meyering.net>
43473
43474         New file: lib/idcache.h
43475         * NEWS: Mention the addition.
43476         * modules/idcache (Files): Add lib/idcache.h
43477         * lib/idcache.c: Include "idcache.h".
43478         Don't include <sys/types.h>.
43479         Add a FIXME comment.
43480         Move file-scoped "static" declarations to the top.
43481         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
43482
43483 2007-08-17  Bruno Haible  <bruno@clisp.org>
43484         and Paul Eggert  <eggert@cs.ucla.edu>
43485
43486         * MODULES.html.sh: Add diffseq.
43487         * modules/diffseq: New file.
43488         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
43489         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
43490
43491 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43492
43493         Import changes from coreutils for bootstrap script.
43494
43495         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
43496
43497         * build-aux/bootstrap (slurp): Work even in environments where
43498         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
43499         current code does not slurp files whose names start with ".", and
43500         this looks like it might be a troublesome area.
43501
43502         2007-07-11  Jim Meyering  <jim@meyering.net>
43503
43504         If there's a GPL vN copyright comment, require that N == 3.
43505
43506         2007-07-08  Jim Meyering  <jim@meyering.net>
43507
43508         Run the coreutils-specific code only if tests/Makefile.am.in exists.
43509         * build-aux/bootstrap (mam_template): Move definition out of loop.
43510
43511         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
43512
43513         * build-aux/bootstrap (symlink_to_dir): Rename function from
43514         symlink_to_gnulib.  Add a directory parameter.  Update all
43515         callers.
43516         (cp_mark_as_generated): Also check for -- and link to -- files in
43517         gl/.
43518
43519         2007-07-08  Jim Meyering  <jim@meyering.net>
43520
43521         Adapt to deeper hierarchy in gnulib.
43522         * build-aux/bootstrap (symlink_to_dir): If the destination
43523         directory doesn't exist, create it. This is required at least for
43524         "lib/uniwidth/cjk.h".
43525
43526         2007-05-15  Jim Meyering  <jim@meyering.net>
43527
43528         * build-aux/bootstrap: Now that generated Makefile.am files
43529         are no longer under version control, they must be created at
43530         bootstrap time.
43531
43532 2007-08-14  Ben Pfaff  <blp@gnu.org>
43533
43534         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
43535
43536 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43537
43538         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
43539         given the changes below.
43540         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
43541         even on hosts that have padding bits beyond the supported 64.
43542
43543 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43544
43545         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
43546         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
43547         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
43548         depends on it.
43549         (xstrtol_error): Remove.
43550         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
43551         but with a different signature.
43552         (ATTRIBUTE_NORETURN, __attribute__): New macros.
43553         * lib/xstrtol-error.c: Include exitfail.h.
43554         (xstrtol_fatal): New function, with a different signature from the
43555         old xstrtol_error, so that the caller need not worry about passing
43556         in an exit status, or about storage management of the option argument.
43557         (xstrtol_error): Now a static function.  Redo signature to
43558         implement xstrtol_fatal.  Output the correct number of hyphens in
43559         front of the option so that the caller need not worry about
43560         storage management.
43561         (N_): New macro.
43562         (_): Remove; not used now.
43563         * modules/xstrtol: Depend on getopt.
43564         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
43565         of old STRTOL_FATAL_ERROR macro.
43566         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
43567         of test program.
43568         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
43569         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
43570
43571 2007-08-08  Eric Blake  <ebb9@byu.net>
43572
43573         * lib/xstrtol-error.c: Add missing include.
43574
43575         Move xstrtol messages into gnulib domain, when --pobase is used.
43576         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
43577         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
43578         * modules/xstrtol (Files): Distribute new file.
43579         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
43580         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
43581         * tests/test-xstrtol.c: ...into new file.
43582         * tests/test-xstrtoul.c: Also test xstrtoul.
43583         * tests/test-xstrtoimax.c: Also test xstrtoimax.
43584         * tests/test-xstrtoumax.c: Also test xstrtoumax.
43585         * tests/test-xstrtol.sh: Drive the tests.
43586         * tests/test-xstrtoimax.sh: Likewise.
43587         * tests/test-xstrtoumax.sh: Likewise.
43588         * modules/xstrtol-tests: New module.
43589         * modules/xstrtoimax-tests: Likewise.
43590         * modules/xstrtoumax-tests: Likewise.
43591
43592 2007-08-08  Jim Meyering  <jim@meyering.net>
43593
43594         New function: mfile_name_concat.
43595         * lib/filenamecat.c (mfile_name_concat): New function, just like
43596         file_name_concat, but return NULL upon failure rather than exiting
43597         with a diagnostic.
43598         * lib/filenamecat.h: Declare it.
43599
43600 2007-08-07  Bruno Haible  <bruno@clisp.org>
43601
43602         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
43603         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
43604         warning from gcc.
43605         Reported by Eric Blake.
43606
43607 2007-08-07  Simon Josefsson  <simon@josefsson.org>
43608
43609         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
43610         * modules/crypto/arcfour (License): Likewise.
43611         * modules/crypto/des-tests (License): Likewise.
43612         * modules/crypto/gc-arctwo-tests (License): Likewise.
43613         * modules/crypto/gc-des-tests (License): Likewise.
43614         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
43615         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
43616         * modules/crypto/gc-md2-tests (License): Likewise.
43617         * modules/crypto/gc-md4-tests (License): Likewise.
43618         * modules/crypto/gc-md5-tests (License): Likewise.
43619         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
43620         * modules/crypto/gc-rijndael-tests (License): Likewise.
43621         * modules/crypto/gc-sha1-tests (License): Likewise.
43622         * modules/crypto/gc-tests (License): Likewise.
43623         * modules/crypto/hmac-md5 (License): Likewise.
43624         * modules/crypto/hmac-sha1 (License): Likewise.
43625         * modules/crypto/md2-tests (License): Likewise.
43626         * modules/crypto/md4-tests (License): Likewise.
43627         * modules/crypto/md5 (License): Likewise.
43628         * modules/crypto/rijndael (License): Likewise.
43629         * modules/crypto/sha1 (License): Likewise.
43630         * modules/memxor (License): Likewise.
43631
43632 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43633         and Bruno Haible  <bruno@clisp.org>
43634
43635         * NEWS: Describe interface changes to human, xstrtol.
43636         * lib/human.h: Include <xstrtol.h>.
43637         (human_options): Return enum strtol_error, not int.  Remove
43638         bool arg; take int * instead.
43639         * lib/human.c: Don't include "gettext.h".
43640         (_): Remove; no longer used.
43641         Don't include <xstrtol.h>, since human.h does it.
43642         (human_options): Adjust to abovementioned interface changes.
43643         Do not report error to stderr; that's now the caller's
43644         responsibility.
43645         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
43646         interface change.
43647         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
43648         Str, Argument_type_string.  All uses changed.  Put " argument"
43649         in diagnostics to make them clearer.  Change wording of suffix
43650         message for clarity.
43651         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
43652         Argument_type_string.
43653         (STRTOL_FATAL_WARN): Remove; no longer used.
43654         * modules/human (Depends-on): Remove gettext-h.
43655
43656 2007-08-06  Simon Josefsson  <simon@josefsson.org>
43657
43658         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
43659
43660 2007-07-31  Bruno Haible  <bruno@clisp.org>
43661
43662         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
43663         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
43664         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
43665
43666 2007-07-31  Bruno Haible  <bruno@clisp.org>
43667
43668         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
43669         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
43670
43671 2007-07-30  Bruno Haible  <bruno@clisp.org>
43672
43673         * modules/base64 (License): Use the synonymous term "LGPLv2+".
43674         * modules/c-ctype (License): Likewise.
43675         * modules/c-strcase (License): Likewise.
43676         * modules/check-version (License): Likewise.
43677         * modules/iconv (License): Likewise.
43678         * modules/iconv_open (License): Likewise.
43679         * modules/read-file (License): Likewise.
43680         * modules/striconv (License): Likewise.
43681         * modules/strverscmp (License): Likewise.
43682         * modules/vasprintf (License): Likewise.
43683         * modules/crypto/des (License): Likewise.
43684         * modules/crypto/gc (License): Likewise.
43685         * modules/crypto/gc-arcfour (License): Likewise.
43686         * modules/crypto/gc-arctwo (License): Likewise.
43687         * modules/crypto/gc-des (License): Likewise.
43688         * modules/crypto/gc-hmac-md5 (License): Likewise.
43689         * modules/crypto/gc-hmac-sha1 (License): Likewise.
43690         * modules/crypto/gc-md2 (License): Likewise.
43691         * modules/crypto/gc-md4 (License): Likewise.
43692         * modules/crypto/gc-md5 (License): Likewise.
43693         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
43694         * modules/crypto/gc-random (License): Likewise.
43695         * modules/crypto/gc-rijndael (License): Likewise.
43696         * modules/crypto/gc-sha1 (License): Likewise.
43697         * modules/crypto/md2 (License): Likewise.
43698         * modules/crypto/md4 (License): Likewise.
43699
43700 2007-07-30  Jim Meyering  <jim@meyering.net>
43701
43702         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
43703         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
43704         it has valid stat data.  This bug would cause du not to count the
43705         sizes of inaccessible directories.
43706         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
43707         in <http://bugzilla.redhat.com/250077>.
43708
43709 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43710             Bruno Haible  <bruno@clisp.org>
43711
43712         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43713         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43714         #include_next, gives a diagnostic about it, but reports no error in
43715         the exit code.
43716         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43717
43718 2007-07-24  Ben Pfaff  <blp@gnu.org>
43719
43720         Improve name: "count-one-bits" is better than "popcount".
43721         * MODULES.html.sh: Update name.
43722         * lib/popcount.h: Renamed lib/count-one-bits.h.
43723         (popcount): Renamed count_one_bits.
43724         (popcountl): Renamed count_one_bits_l.
43725         (popcountll): Renamed count_one_bits_ll.
43726         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43727         * modules/popcount: Renamed module/count-one-bits.
43728         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43729         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43730
43731 2007-07-23  Ben Pfaff  <blp@gnu.org>
43732
43733         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43734         better code generation, and add U to large constants to avoid
43735         warnings, in non-GCC case.
43736         Suggested by Bruno Haible.
43737
43738 2007-07-23  Ben Pfaff  <blp@gnu.org>
43739
43740         * lib/popcount.h: Use verify_true instead of if...abort.
43741         * modules/popcount: Depend on verify module.
43742         Suggested by Jim Meyering.
43743
43744 2007-07-23  Bruno Haible  <bruno@clisp.org>
43745
43746         * gnulib-tool (func_import): Create a .cvsignore file also when the
43747         directory is not yet in CVS but the toplevel directory is. When
43748         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43749         Reported by Karl Berry.
43750
43751 2007-07-22  Ben Pfaff  <blp@gnu.org>
43752
43753         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43754         case.
43755         Suggested by Eric Blake.
43756
43757 2007-07-22  Ben Pfaff  <blp@gnu.org>
43758
43759         New module: popcount.
43760         * MODULES.html.sh: Add popcount.
43761         * modules/popcount: New file.
43762         * modules/popcount-tests: New file.
43763         * tests/test-popcount.c: New file.
43764         * lib/popcount.h: New file.
43765         * m4/popcount.m4: New file.
43766
43767 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43768
43769         * build-aux/announce-gen: Update to GPLv3.
43770
43771         * build-aux/config.guess: Update from config.
43772
43773 2007-07-21  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43776         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43777
43778 2007-07-20  Jim Meyering  <jim@meyering.net>
43779
43780         * check-module: Diagnose a self-dependency.
43781
43782 2007-07-19  Bruno Haible  <bruno@clisp.org>
43783
43784         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43785         empty.
43786         Reported by Eric Blake.
43787
43788 2007-07-18  Bruno Haible  <bruno@clisp.org>
43789
43790         * gnulib-tool: New options --po-base, --po-domain.
43791         (func_usage): Document them.
43792         (pobase, po_domain): New variables.
43793         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43794         DEFAULT_TEXT_DOMAIN.
43795         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43796         (func_import): Consider pobase and po_domain. Create a po/ directory.
43797         (func_create_testdir): Set pobase and po_domain to empty.
43798         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43799         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43800
43801 2007-07-18  Bruno Haible  <bruno@clisp.org>
43802
43803         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43804         EXTRA_DIST augmentation for files in build-aux/.
43805
43806 2007-07-16  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43809         * modules/getdelim (License): Likewise.
43810
43811 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43812
43813         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43814         * modules/d-type (License): Likewise.
43815         * modules/extensions (License): Likewise.
43816         * modules/fnmatch (License): Likewise.
43817         * modules/fseeko (License): Likewise.
43818         * modules/getaddrinfo (License): Likewise.
43819         * modules/getline (License): Likewise.
43820         * modules/getlogin_r (License): Likewise.
43821         * modules/getpass (License): Likewise.
43822         * modules/gettimeofday (License): Likewise.
43823         * modules/glob (License): Likewise.
43824         * modules/inet_ntop (License): Likewise.
43825         * modules/malloc (License): Likewise.
43826         * modules/malloca (License): Likewise.
43827         * modules/memmem (License): Likewise.
43828         * modules/mempcpy (License): Likewise.
43829         * modules/memset (License): Likewise.
43830         * modules/minmax (License): Likewise.
43831         * modules/mktime (License): Likewise.
43832         * modules/netinet_in (License): Likewise.
43833         * modules/pathmax (License): Likewise.
43834         * modules/poll (License): Likewise.
43835         * modules/regex (License): Likewise.
43836         * modules/snprintf (License): Likewise.
43837         * modules/stdbool (License): Likewise.
43838         * modules/stdint (License): Likewise.
43839         * modules/stdio (License): Likewise.
43840         * modules/strcase (License): Likewise.
43841         * modules/strcasestr (License): Likewise.
43842         * modules/strdup (License): Likewise.
43843         * modules/string (License): Likewise.
43844         * modules/strndup (License): Likewise.
43845         * modules/strnlen (License): Likewise.
43846         * modules/strpbrk (License): Likewise.
43847         * modules/strptime (License): Likewise.
43848         * modules/strsep (License): Likewise.
43849         * modules/sys_select (License): Likewise.
43850         * modules/sys_socket (License): Likewise.
43851         * modules/sys_stat (License): Likewise.
43852         * modules/sys_time (License): Likewise.
43853         * modules/time (License): Likewise.
43854         * modules/time_r (License): Likewise.
43855         * modules/timegm (License): Likewise.
43856         * modules/unistd (License): Likewise.
43857         * modules/vsnprintf (License): Likewise.
43858         * modules/wctype (License): Likewise.
43859
43860 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43861
43862         * modules/argz (License): LGPLv2+.
43863
43864 2007-07-15  Karl Berry  <karl@gnu.org>
43865
43866         * doc/gnulib.texi: revise node structure per new fdl.texi.
43867
43868 2007-07-14  Bruno Haible  <bruno@clisp.org>
43869
43870         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43871         the output file.
43872         * lib/uniname/uninames.h: Regenerated.
43873
43874 2007-07-14  Karl Berry  <karl@gnu.org>
43875
43876         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43877         omitting sectioning and index commands.
43878
43879 2007-07-13  Bruno Haible  <bruno@clisp.org>
43880
43881         New gnulib-tool option --more-symlinks.
43882         * gnulib-tool (func_usage): Document --more-symlinks.
43883         (do_copyrights): New variable.
43884         Recognize option --more-symlinks.
43885         (func_import): Don't add a copyright notice transform to
43886         sed_transform_lib_file if do_copyrights is empty.
43887
43888 2007-07-13  Bruno Haible  <bruno@clisp.org>
43889
43890         * lib/vasnprintf.c (decimal_point_char): Define also if
43891         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43892         && !NEED_PRINTF_DIRECTIVE_A.
43893         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43894         Gary V. Vaughan <gary@gnu.org>.
43895
43896 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43897
43898         * lib/inttypes_.h: Undo previous change, since it was fixed
43899         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43900
43901 2007-07-13  Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43904         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43905
43906 2007-07-13  Jim Meyering  <jim@meyering.net>
43907
43908         df: Don't fail for Tru64's "file-on-file mount".
43909         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43910         so we fall through and use statfs instead.  Details here:
43911         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43912         Reported by Albert Chin.
43913
43914 2007-07-13  Bruno Haible  <bruno@clisp.org>
43915
43916         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43917         * modules/configmake (License): Likewise.
43918         * modules/gettext (License): Likewise.
43919         * modules/gettext-h (License): Likewise.
43920         * modules/include_next (License): Likewise.
43921         * modules/link-warning (License): Likewise.
43922         * modules/localcharset (License): Likewise.
43923         * modules/localename (License): Likewise.
43924         * modules/lock (License): Likewise.
43925         * modules/relocatable-lib-lgpl (License): Likewise.
43926         * modules/size_max (License): Likewise.
43927         * modules/vasnprintf (License): Likewise.
43928         * modules/wchar (License): Likewise.
43929         * modules/xsize (License): Likewise.
43930
43931 2007-07-13  Bruno Haible  <bruno@clisp.org>
43932
43933         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43934         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43935
43936 2007-07-12  Bruno Haible  <bruno@clisp.org>
43937
43938         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43939         in the modules files.
43940
43941 2007-07-11  Karl Berry  <karl@gnu.org>
43942
43943         * MODULES.html.sh (func_module): use
43944          sed -e '\|^'"${includefile}"'$|d'
43945          instead of /.../d, to avoid errors on $includefile's containing /.
43946
43947 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43948
43949         * gnulib-tool (func_import): Avoid duplication of --avoid
43950         statements
43951         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43952         names to `_' in variable names.
43953
43954 2007-07-10  Eric Blake  <ebb9@byu.net>
43955
43956         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43957         * NEWS: Document this change.
43958
43959 2007-07-08  Bruno Haible  <bruno@clisp.org>
43960
43961         Update to Unicode 5.0.
43962         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43963         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43964         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43965         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43966         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43967         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
43968         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
43969         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
43970         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
43971         U+10A3F, U+1D242..U+1D244.
43972         (nonspacing_table_ind): Update.
43973         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
43974         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
43975
43976 2007-07-08  Bruno Haible  <bruno@clisp.org>
43977
43978         Update to Unicode 5.0.
43979         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
43980         code transform. Extend the name index field of unicode_name_to_code and
43981         unicode_code_to_name from 16 to 24 bits.
43982         * lib/uniname/uniname.c (unicode_character_name,
43983         unicode_name_character): Add the range 0x12xxx to the code transform.
43984         * lib/uniname/uninames.h: Regenerated.
43985         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
43986
43987 2007-07-07  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/wcwidth-tests: New file.
43990         * tests/test-wcwidth.c: New file.
43991
43992         Work around MacOS X wcwidth() bug.
43993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
43994         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
43995         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
43996         original wcwidth in non-UTF-8 locales.
43997         * modules/wcwidth (Depends-on): Add localcharset, streq,
43998         uniwidth/width.
43999         * doc/functions/wcwidth.texi: Update.
44000
44001 2007-07-07  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
44004         (wcwidth): New declaration.
44005         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
44006         macros.
44007         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
44008         here. Prepare for creating <wchar.h> unconditionally.
44009         * modules/wchar (Depends-on): Add link-warning.
44010         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
44011         REPLACE_WCWIDTH, and GL_LINK_WARNING.
44012         * lib/wcwidth.h: Remove file.
44013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
44014         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
44015         * modules/wcwidth (Files): Remove lib/wcwidth.h.
44016         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
44017         (Include): Replace wcwidth.h with <wchar.h>.
44018         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
44019         * lib/mbchar.h: Don't include wcwidth.h.
44020         * lib/mbswidth.c: Likewise.
44021         * NEWS: Mention the change.
44022
44023 2007-07-07  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
44026         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
44027         definition with an external declaration.
44028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
44029         defined as a function. Remove AC_C_INLINE requirement.
44030         * modules/wcwidth (Files): Add lib/wcwidth.c.
44031         (Makefile.am): Remove redundant statement.
44032
44033 2007-07-07  Bruno Haible  <bruno@clisp.org>
44034
44035         * MODULES.html.sh (Unicode string functions): Add the new modules.
44036
44037         * tests/uniwidth/test-u32-strwidth.c: New file.
44038         * modules/uniwidth/u32-strwidth-tests: New file.
44039
44040         * lib/uniwidth/u32-strwidth.c: New file.
44041         * modules/uniwidth/u32-strwidth: New file.
44042
44043         * tests/uniwidth/test-u16-strwidth.c: New file.
44044         * modules/uniwidth/u16-strwidth-tests: New file.
44045
44046         * lib/uniwidth/u16-strwidth.c: New file.
44047         * modules/uniwidth/u16-strwidth: New file.
44048
44049         * tests/uniwidth/test-u8-strwidth.c: New file.
44050         * modules/uniwidth/u8-strwidth-tests: New file.
44051
44052         * lib/uniwidth/u8-strwidth.c: New file.
44053         * modules/uniwidth/u8-strwidth: New file.
44054
44055         * tests/uniwidth/test-u32-width.c: New file.
44056         * modules/uniwidth/u32-width-tests: New file.
44057
44058         * lib/uniwidth/u32-width.c: New file.
44059         * modules/uniwidth/u32-width: New file.
44060
44061         * tests/uniwidth/test-u16-width.c: New file.
44062         * modules/uniwidth/u16-width-tests: New file.
44063
44064         * lib/uniwidth/u16-width.c: New file.
44065         * modules/uniwidth/u16-width: New file.
44066
44067         * tests/uniwidth/test-u8-width.c: New file.
44068         * modules/uniwidth/u8-width-tests: New file.
44069
44070         * lib/uniwidth/u8-width.c: New file.
44071         * modules/uniwidth/u8-width: New file.
44072
44073         * tests/uniwidth/test-uc_width.c: New file.
44074         * modules/uniwidth/width-tests: New file.
44075
44076         * lib/uniwidth/width.c: New file, from GNU libiconv.
44077         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
44078         * modules/uniwidth/width: New file.
44079
44080         * lib/uniwidth.h: New file, from GNU libiconv.
44081         * modules/uniwidth/base: New file.
44082
44083 2007-07-07  Bruno Haible  <bruno@clisp.org>
44084
44085         * lib/uniname.h: New file, from GNU gettext.
44086         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
44087         * lib/uniname/uninames.h: New file, from GNU gettext.
44088         * lib/uniname/uniname.c: New file, from GNU gettext.
44089         * tests/uniname/test-uninames.sh: New file.
44090         * tests/uniname/test-uninames.c: New file, from GNU gettext.
44091         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
44092         * modules/uniname/base: New file.
44093         * modules/uniname/uniname: New file.
44094         * modules/uniname/uniname-tests: New file.
44095         * MODULES.html.sh (Unicode string functions): Add the new modules.
44096
44097 2007-07-06  Bruno Haible  <bruno@clisp.org>
44098
44099         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
44100
44101 2007-07-06  Bruno Haible  <bruno@clisp.org>
44102
44103         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
44104         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
44105         includes <cygwin/sys_time.h> which includes <sys/select.h> which
44106         include <sys/time.h>.
44107         Reported by Eric Blake.
44108
44109 2007-07-06  Eric Blake  <ebb9@byu.net>
44110
44111         Fix testing canonicalize on cygwin.
44112         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44113         Revert patch from 2007-06-19.
44114         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
44115         canonicalize module is also in use.
44116         * tests/test-canonicalize.c: New file.
44117         * tests/test-canonicalize.sh: Likewise.
44118         * modules/canonicalize-tests: Likewise.
44119
44120 2007-07-06  Jim Meyering  <jim@meyering.net>
44121
44122         * lib/getugroups.c (getugroups): Detect getgrent failure.
44123         Adjust comment to reflect reality: this function may return -1.
44124
44125 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
44126
44127         * build-aux/bootstrap (TP_URL,get_translations): Update to use
44128         the new TP address.
44129         (usage): Fix typo
44130         (gnulib_mk): New variable.
44131
44132 2007-07-05  Jim Meyering  <jim@meyering.net>
44133
44134         Don't let endgrent clobber errno, no matter how improbable.
44135         * lib/getugroups.c (getugroups): Save and restore errno around
44136         endgrent call.
44137
44138         Close the group DB even when failing with 2^31 or more members.
44139         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
44140
44141 2007-07-04  Jim Meyering  <jim@meyering.net>
44142
44143         * lib/getugroups.h: New file.
44144         * lib/getugroups.c: Include "getugroups.h".
44145         Remove uses of "register" keyword.
44146         Move local variable, "cp", down into scope where used.
44147         Give "username" parameter the "const" attribute.
44148         * modules/getugroups (Files): Add lib/getugroups.h
44149
44150 2007-07-04  Karl Berry  <karl@gnu.org>
44151
44152         * MODULES.html.sh (func_all_modules): Complete rename of
44153         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
44154
44155 2007-07-02  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
44158         mode, when inttypes.h comes from gnulib.
44159         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44160
44161 2007-07-02  Simon Josefsson  <simon@josefsson.org>
44162
44163         * NEWS: Mention lgpl module name change.
44164
44165         * modules/lgpl-2.1: Renamed from lgpl.
44166
44167         * NEWS: Mention gpl module name change.
44168
44169         * modules/gpl-3.0: New file, based on gpl-2.0.
44170
44171         * modules/gpl-2.0: Renamed from gpl.
44172
44173         * modules/gpl: Fix filename, doc/gpl.texi is now found at
44174         doc/gpl-2.0.texi.
44175
44176 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44177
44178         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
44179         #define __STDC_LIMIT_MACROS temporarily while including
44180         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
44181         Problem reported by Joel E. Denny in
44182         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
44183
44184 2007-07-01  Bruno Haible  <bruno@clisp.org>
44185
44186         * lib/unistdio.h: New file.
44187         * lib/unistdio/u-asnprintf.h: New file.
44188         * lib/unistdio/u-asprintf.h: New file.
44189         * lib/unistdio/u-printf-args.c: New file.
44190         * lib/unistdio/u-printf-args.h: New file.
44191         * lib/unistdio/u-printf-parse.h: New file.
44192         * lib/unistdio/u-snprintf.h: New file.
44193         * lib/unistdio/u-sprintf.h: New file.
44194         * lib/unistdio/u-vasprintf.h: New file.
44195         * lib/unistdio/u-vsnprintf.h: New file.
44196         * lib/unistdio/u-vsprintf.h: New file.
44197         * lib/unistdio/ulc-asnprintf.c: New file.
44198         * lib/unistdio/ulc-asprintf.c: New file.
44199         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
44200         * lib/unistdio/ulc-printf-parse.c: New file.
44201         * lib/unistdio/ulc-snprintf.c: New file.
44202         * lib/unistdio/ulc-sprintf.c: New file.
44203         * lib/unistdio/ulc-vasnprintf.c: New file.
44204         * lib/unistdio/ulc-vasprintf.c: New file.
44205         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
44206         * lib/unistdio/ulc-vsnprintf.c: New file.
44207         * lib/unistdio/ulc-vsprintf.c: New file.
44208         * lib/unistdio/u8-asnprintf.c: New file.
44209         * lib/unistdio/u8-asprintf.c: New file.
44210         * lib/unistdio/u8-printf-parse.c: New file.
44211         * lib/unistdio/u8-snprintf.c: New file.
44212         * lib/unistdio/u8-sprintf.c: New file.
44213         * lib/unistdio/u8-vasnprintf.c: New file.
44214         * lib/unistdio/u8-vasprintf.c: New file.
44215         * lib/unistdio/u8-vsnprintf.c: New file.
44216         * lib/unistdio/u8-vsprintf.c: New file.
44217         * lib/unistdio/u8-u8-asnprintf.c: New file.
44218         * lib/unistdio/u8-u8-asprintf.c: New file.
44219         * lib/unistdio/u8-u8-snprintf.c: New file.
44220         * lib/unistdio/u8-u8-sprintf.c: New file.
44221         * lib/unistdio/u8-u8-vasnprintf.c: New file.
44222         * lib/unistdio/u8-u8-vasprintf.c: New file.
44223         * lib/unistdio/u8-u8-vsnprintf.c: New file.
44224         * lib/unistdio/u8-u8-vsprintf.c: New file.
44225         * lib/unistdio/u16-asnprintf.c: New file.
44226         * lib/unistdio/u16-asprintf.c: New file.
44227         * lib/unistdio/u16-printf-parse.c: New file.
44228         * lib/unistdio/u16-snprintf.c: New file.
44229         * lib/unistdio/u16-sprintf.c: New file.
44230         * lib/unistdio/u16-vasnprintf.c: New file.
44231         * lib/unistdio/u16-vasprintf.c: New file.
44232         * lib/unistdio/u16-vsnprintf.c: New file.
44233         * lib/unistdio/u16-vsprintf.c: New file.
44234         * lib/unistdio/u16-u16-asnprintf.c: New file.
44235         * lib/unistdio/u16-u16-asprintf.c: New file.
44236         * lib/unistdio/u16-u16-snprintf.c: New file.
44237         * lib/unistdio/u16-u16-sprintf.c: New file.
44238         * lib/unistdio/u16-u16-vasnprintf.c: New file.
44239         * lib/unistdio/u16-u16-vasprintf.c: New file.
44240         * lib/unistdio/u16-u16-vsnprintf.c: New file.
44241         * lib/unistdio/u16-u16-vsprintf.c: New file.
44242         * lib/unistdio/u32-asnprintf.c: New file.
44243         * lib/unistdio/u32-asprintf.c: New file.
44244         * lib/unistdio/u32-printf-parse.c: New file.
44245         * lib/unistdio/u32-snprintf.c: New file.
44246         * lib/unistdio/u32-sprintf.c: New file.
44247         * lib/unistdio/u32-vasnprintf.c: New file.
44248         * lib/unistdio/u32-vasprintf.c: New file.
44249         * lib/unistdio/u32-vsnprintf.c: New file.
44250         * lib/unistdio/u32-vsprintf.c: New file.
44251         * lib/unistdio/u32-u32-asnprintf.c: New file.
44252         * lib/unistdio/u32-u32-asprintf.c: New file.
44253         * lib/unistdio/u32-u32-snprintf.c: New file.
44254         * lib/unistdio/u32-u32-sprintf.c: New file.
44255         * lib/unistdio/u32-u32-vasnprintf.c: New file.
44256         * lib/unistdio/u32-u32-vasprintf.c: New file.
44257         * lib/unistdio/u32-u32-vsnprintf.c: New file.
44258         * lib/unistdio/u32-u32-vsprintf.c: New file.
44259         * tests/unistdio/test-ulc-asnprintf1.c: New file.
44260         * tests/unistdio/test-ulc-asnprintf1.h: New file.
44261         * tests/unistdio/test-ulc-printf1.h: New file.
44262         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
44263         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
44264         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
44265         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
44266         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
44267         * tests/unistdio/test-ulc-vasprintf1.c: New file.
44268         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
44269         * tests/unistdio/test-ulc-vsprintf1.c: New file.
44270         * tests/unistdio/test-u8-asnprintf1.c: New file.
44271         * tests/unistdio/test-u8-asnprintf1.h: New file.
44272         * tests/unistdio/test-u8-printf1.h: New file.
44273         * tests/unistdio/test-u8-vasnprintf1.c: New file.
44274         * tests/unistdio/test-u8-vasnprintf2.c: New file.
44275         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
44276         * tests/unistdio/test-u8-vasnprintf3.c: New file.
44277         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
44278         * tests/unistdio/test-u8-vasprintf1.c: New file.
44279         * tests/unistdio/test-u8-vsnprintf1.c: New file.
44280         * tests/unistdio/test-u8-vsprintf1.c: New file.
44281         * tests/unistdio/test-u16-asnprintf1.c: New file.
44282         * tests/unistdio/test-u16-asnprintf1.h: New file.
44283         * tests/unistdio/test-u16-printf1.h: New file.
44284         * tests/unistdio/test-u16-vasnprintf1.c: New file.
44285         * tests/unistdio/test-u16-vasnprintf2.c: New file.
44286         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
44287         * tests/unistdio/test-u16-vasnprintf3.c: New file.
44288         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
44289         * tests/unistdio/test-u16-vasprintf1.c: New file.
44290         * tests/unistdio/test-u16-vsnprintf1.c: New file.
44291         * tests/unistdio/test-u16-vsprintf1.c: New file.
44292         * tests/unistdio/test-u32-asnprintf1.c: New file.
44293         * tests/unistdio/test-u32-asnprintf1.h: New file.
44294         * tests/unistdio/test-u32-printf1.h: New file.
44295         * tests/unistdio/test-u32-vasnprintf1.c: New file.
44296         * tests/unistdio/test-u32-vasnprintf2.c: New file.
44297         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
44298         * tests/unistdio/test-u32-vasnprintf3.c: New file.
44299         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
44300         * tests/unistdio/test-u32-vasprintf1.c: New file.
44301         * tests/unistdio/test-u32-vsnprintf1.c: New file.
44302         * tests/unistdio/test-u32-vsprintf1.c: New file.
44303         * modules/unistdio/base: New file.
44304         * modules/unistdio/u-printf-args: New file.
44305         * modules/unistdio/ulc-asnprintf: New file.
44306         * modules/unistdio/ulc-asprintf: New file.
44307         * modules/unistdio/ulc-fprintf: New file.
44308         * modules/unistdio/ulc-printf-parse: New file.
44309         * modules/unistdio/ulc-snprintf: New file.
44310         * modules/unistdio/ulc-sprintf: New file.
44311         * modules/unistdio/ulc-vasnprintf: New file.
44312         * modules/unistdio/ulc-vasprintf: New file.
44313         * modules/unistdio/ulc-vfprintf: New file.
44314         * modules/unistdio/ulc-vsnprintf: New file.
44315         * modules/unistdio/ulc-vsprintf: New file.
44316         * modules/unistdio/u8-asnprintf: New file.
44317         * modules/unistdio/u8-asprintf: New file.
44318         * modules/unistdio/u8-printf-parse: New file.
44319         * modules/unistdio/u8-snprintf: New file.
44320         * modules/unistdio/u8-sprintf: New file.
44321         * modules/unistdio/u8-vasnprintf: New file.
44322         * modules/unistdio/u8-vasprintf: New file.
44323         * modules/unistdio/u8-vsnprintf: New file.
44324         * modules/unistdio/u8-vsprintf: New file.
44325         * modules/unistdio/u8-u8-asnprintf: New file.
44326         * modules/unistdio/u8-u8-asprintf: New file.
44327         * modules/unistdio/u8-u8-snprintf: New file.
44328         * modules/unistdio/u8-u8-sprintf: New file.
44329         * modules/unistdio/u8-u8-vasnprintf: New file.
44330         * modules/unistdio/u8-u8-vasprintf: New file.
44331         * modules/unistdio/u8-u8-vsnprintf: New file.
44332         * modules/unistdio/u8-u8-vsprintf: New file.
44333         * modules/unistdio/u16-asnprintf: New file.
44334         * modules/unistdio/u16-asprintf: New file.
44335         * modules/unistdio/u16-printf-parse: New file.
44336         * modules/unistdio/u16-snprintf: New file.
44337         * modules/unistdio/u16-sprintf: New file.
44338         * modules/unistdio/u16-vasnprintf: New file.
44339         * modules/unistdio/u16-vasprintf: New file.
44340         * modules/unistdio/u16-vsnprintf: New file.
44341         * modules/unistdio/u16-vsprintf: New file.
44342         * modules/unistdio/u16-u16-asnprintf: New file.
44343         * modules/unistdio/u16-u16-asprintf: New file.
44344         * modules/unistdio/u16-u16-snprintf: New file.
44345         * modules/unistdio/u16-u16-sprintf: New file.
44346         * modules/unistdio/u16-u16-vasnprintf: New file.
44347         * modules/unistdio/u16-u16-vasprintf: New file.
44348         * modules/unistdio/u16-u16-vsnprintf: New file.
44349         * modules/unistdio/u16-u16-vsprintf: New file.
44350         * modules/unistdio/u32-asnprintf: New file.
44351         * modules/unistdio/u32-asprintf: New file.
44352         * modules/unistdio/u32-printf-parse: New file.
44353         * modules/unistdio/u32-snprintf: New file.
44354         * modules/unistdio/u32-sprintf: New file.
44355         * modules/unistdio/u32-vasnprintf: New file.
44356         * modules/unistdio/u32-vasprintf: New file.
44357         * modules/unistdio/u32-vsnprintf: New file.
44358         * modules/unistdio/u32-vsprintf: New file.
44359         * modules/unistdio/u32-u32-asnprintf: New file.
44360         * modules/unistdio/u32-u32-asprintf: New file.
44361         * modules/unistdio/u32-u32-snprintf: New file.
44362         * modules/unistdio/u32-u32-sprintf: New file.
44363         * modules/unistdio/u32-u32-vasnprintf: New file.
44364         * modules/unistdio/u32-u32-vasprintf: New file.
44365         * modules/unistdio/u32-u32-vsnprintf: New file.
44366         * modules/unistdio/u32-u32-vsprintf: New file.
44367         * modules/unistdio/ulc-asnprintf-tests: New file.
44368         * modules/unistdio/ulc-vasnprintf-tests: New file.
44369         * modules/unistdio/ulc-vasprintf-tests: New file.
44370         * modules/unistdio/ulc-vsnprintf-tests: New file.
44371         * modules/unistdio/ulc-vsprintf-tests: New file.
44372         * modules/unistdio/u8-asnprintf-tests: New file.
44373         * modules/unistdio/u8-vasnprintf-tests: New file.
44374         * modules/unistdio/u8-vasprintf-tests: New file.
44375         * modules/unistdio/u8-vsnprintf-tests: New file.
44376         * modules/unistdio/u8-vsprintf-tests: New file.
44377         * modules/unistdio/u16-asnprintf-tests: New file.
44378         * modules/unistdio/u16-vasnprintf-tests: New file.
44379         * modules/unistdio/u16-vasprintf-tests: New file.
44380         * modules/unistdio/u16-vsnprintf-tests: New file.
44381         * modules/unistdio/u16-vsprintf-tests: New file.
44382         * modules/unistdio/u32-asnprintf-tests: New file.
44383         * modules/unistdio/u32-vasnprintf-tests: New file.
44384         * modules/unistdio/u32-vasprintf-tests: New file.
44385         * modules/unistdio/u32-vsnprintf-tests: New file.
44386         * modules/unistdio/u32-vsprintf-tests: New file.
44387         * MODULES.html.sh (Unicode string functions): Add the new modules.
44388
44389 2007-07-01  Bruno Haible  <bruno@clisp.org>
44390
44391         * lib/sprintf.c (sprintf): Limit the available length estimation,
44392         to avoid address wraparound.
44393         * lib/vsprintf.c (vsprintf): Likewise.
44394         * modules/sprintf-posix (Dependencies): Add stdint.
44395         * modules/vsprintf-posix (Dependencies): Likewise.
44396
44397 2007-07-01  Bruno Haible  <bruno@clisp.org>
44398
44399         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
44400         Windows PATH as well. Conservative double-quoting. Comments.
44401
44402 2007-07-01  Bruno Haible  <bruno@clisp.org>
44403             Eric Blake  <ebb9@byu.net>
44404             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44405
44406         * gnulib-tool (self_abspathname): Fix algorithm to cope with
44407         empty components in $PATH, denoting '.'.
44408
44409 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44410
44411         * gnulib-tool: Fix indentation.
44412         (func_create_megatestdir): Likewise.
44413         Report by Bruno Haible.
44414
44415 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44416
44417         Sync from Automake.
44418         * build-aux/gnupload: Fix shell portability issues with for loops.
44419         Report by Karl Berry.
44420
44421 2007-06-29  Simon Josefsson  <simon@josefsson.org>
44422
44423         * build-aux/maint.mk (POURL): Use translationproject.org.
44424
44425 2007-06-27  Simon Josefsson  <simon@josefsson.org>
44426             Bruno Haible  <bruno@clisp.org>
44427
44428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
44429         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
44430         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
44431         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
44432         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
44433
44434 2007-06-27  Bruno Haible  <bruno@clisp.org>
44435
44436         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
44437         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
44438
44439 2007-06-26  Karl Berry  <karl@gnu.org>
44440
44441         * MODULES.html.sh: remove xreadlink-with-size.
44442
44443 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44444
44445         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
44446         method that I hope also handles the double-include problem noted
44447         by Bruno Haible in
44448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
44449
44450 2007-06-23  Bruno Haible  <bruno@clisp.org>
44451
44452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44453         Don't let the 'mostlyclean' target fail if the last subdirectory could
44454         not be removed.
44455         Reported by Karl Berry.
44456
44457 2007-06-23  Bruno Haible  <bruno@clisp.org>
44458
44459         * gnulib-tool (echo): Add a speedier workaround for ksh.
44460         * tests/test-echo.sh: Likewise.
44461
44462 2007-06-23  Bruno Haible  <bruno@clisp.org>
44463
44464         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
44465         * tests/test-echo.sh: Likewise.
44466
44467 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44468
44469         * gnulib-tool (IFS): Initialize early, so we don't set it to
44470         empty later.
44471         (self_abspathname): Rewrite algorithm to set it, reindent.
44472         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
44473         (func_create_megatestdir): Merge some sed scripts.
44474
44475 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44476
44477         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
44478         exposed by Sun Studio 11 cc on Solaris 8.
44479
44480 2007-06-22  Bruno Haible  <bruno@clisp.org>
44481
44482         * gnulib-tool (echo): Ensure the echo primitive does not interpret
44483         backslashes.
44484         * tests/test-echo.sh: New file.
44485
44486 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44487
44488         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
44489         simplify `sed_replace_build_aux' scripts, they are portable but
44490         echoing them with `echo' is not.
44491         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
44492
44493 2007-06-21  Karl Berry  <karl@gnu.org>
44494
44495         * config/srclist.txt: guess we can't handle the licenses via
44496         srclist at the moment.
44497
44498 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44499
44500         * MODULES.html.sh: Add include_next.
44501         * modules/include_next: New file.
44502
44503 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44504
44505         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
44506         INCLUDE_NEXT.
44507         (gl_CHECK_NEXT_HEADERS): New macro.
44508         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
44509         the obsolescent gl_ABSOLUTE_HEADER.
44510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
44511         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
44512         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
44513         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44514         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44515         * m4/math_h.m4 (gl_MATH_H): Likewise.
44516         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44517         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44518         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44519         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44520         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
44521         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
44522         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
44523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44525         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44526         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
44527         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44528         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44529         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44530         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44531         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44532         * m4/inttypes.m4 (gl_INTTYPES_H): Define
44533         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
44534         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
44535         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
44536         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
44537         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
44538         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
44539         * lib/float_.h: Likewise.
44540         * lib/inttypes_.h: Likewise.
44541         * lib/math_.h: Likewise.
44542         * lib/search_.h: Likewise.
44543         * lib/signal_.h: Likewise.
44544         * lib/stdint_.h: Likewise.
44545         * lib/stdio_.h: Likewise.
44546         * lib/stdlib_.h: Likewise.
44547         * lib/string_.h: Likewise.
44548         * lib/sys_stat_.h: Likewise.
44549         * lib/sys_time_.h: Likewise.
44550         * lib/time_.h: Likewise.
44551         * lib/unistd_.h: Likewise.
44552         * lib/wchar_.h: Likewise.
44553         * lib/wctype_.h: Likewise.
44554         * lib/dirent_.h: Likewise.
44555         * lib/iconv_.h: Likewise.
44556         * lib/locale_.h: Likewise.
44557         * lib/netinet_in_.h: Likewise.
44558         * lib/sys_select_.h: Likewise.
44559         * lib/sys_socket_.h: Likewise.
44560         * lib/sysexits_.h: Likewise.
44561         * modules/fcntl (Depends-on): Depend on include_next, not
44562         absolute_header.
44563         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
44564         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
44565         * modules/fchdir: Likewise.
44566         * modules/float: Likewise.
44567         * modules/iconv_open: Likewise.
44568         * modules/inttypes: Likewise.
44569         * modules/locale: Likewise.
44570         * modules/math: Likewise.
44571         * modules/netinet_in: Likewise.
44572         * modules/search: Likewise.
44573         * modules/signal: Likewise.
44574         * modules/stdint: Likewise.
44575         * modules/stdio: Likewise.
44576         * modules/stdlib: Likewise.
44577         * modules/string: Likewise.
44578         * modules/sys_select: Likewise.
44579         * modules/sys_socket: Likewise.
44580         * modules/sys_stat: Likewise.
44581         * modules/sys_time: Likewise.
44582         * modules/sysexits: Likewise.
44583         * modules/time: Likewise.
44584         * modules/unistd: Likewise.
44585         * modules/wchar: Likewise.
44586         * modules/wctype: Likewise.
44587         * modules/sys_stat: Change maintainer to "all".
44588         * modules/unistd: Likewise.
44589
44590 2007-06-20  Karl Berry  <karl@gnu.org>
44591
44592         * config/srclist.txt: track www changes in license files.
44593
44594 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
44595
44596         * build-aux/bootstrap: Remove stray dot.
44597         Make sure build_aux settings are honored when linking
44598         gnulib_extra_files.
44599
44600 2007-06-19  Eric Blake  <ebb9@byu.net>
44601
44602         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44603         Allow compilation on cygwin.
44604
44605 2007-06-19  Jim Meyering  <jim@meyering.net>
44606
44607         xreadlink-with-size: Remove module.  No longer used.
44608         Ex-callers now use xreadlink or mreadlink-with-size.
44609         * modules/xreadlink-with-size: Remove module.
44610         * lib/xreadlink-with-size.c: Remove file.
44611         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
44612         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
44613         just before the function definition *is* accurate.
44614
44615         Eliminate one way canonicalize_filename_mode could exit.
44616         * lib/canonicalize.c (canonicalize_filename_mode):
44617         Use mreadlink_with_size, not xreadlink_with_size.
44618
44619 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
44620
44621         Detect porting problems to FreeBSD/arm, which has time_t wider than
44622         long int.  Original problem reported for GNU diff by Xin Li in
44623         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
44624         * modules/getdate (Depends-on): Add intprops, verify.
44625         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
44626         is an integer type no wider than long int.
44627
44628 2007-06-18  Jim Meyering  <jim@meyering.net>
44629
44630         New module: mreadlink-with-size.
44631         * MODULES.html.sh: Add mreadlink-with-size.
44632         * modules/mreadlink-with-size: New module
44633         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
44634         not xreadlink-with-size.
44635         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
44636
44637 2007-06-16  Bruno Haible  <bruno@clisp.org>
44638
44639         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
44640         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
44641         Reported by Gary V. Vaughan <gary@gnu.org>.
44642
44643 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44644
44645         Revamp lchown so that it lives in unistd.h where it belongs.
44646         * lib/lchown.h: Remove.
44647         * lib/dirchownmod.c: Don't include lib/lchown.h.
44648         * lib/fchownat.c: Likewise.
44649         * lib/openat.c: Likewise.
44650         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
44651         does not follow symlinks.
44652         (EOPNOTSUPP): Define if not defined.
44653         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
44654         is defined to 0.
44655         (lchown): New decl.
44656         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
44657         Do not check for lchown decl.
44658         Set REPLACE_LCHOWN.
44659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
44660         REPLACE_LCHOWN.
44661         * modules/chown: Make it clear it follows symlinks.
44662         * modules/lchown: Make it clear it doesn't follow symlinks.
44663         (Files): Remove lib/lchown.h
44664         (Depends-on): Add unistd.
44665         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
44666         (Include): Include <unistd.h>, not "lchown.h".
44667         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
44668         REPLACE_LCHOWN.
44669
44670 2007-06-15  Jim Meyering  <jim@meyering.net>
44671
44672         Change license (GPL to LGPL) of fsusage and dependents.
44673         * modules/fsusage (License): Change to LGPL.
44674         * modules/full-read (License): Likewise.
44675         * modules/full-write (License): Likewise.
44676         * modules/safe-read (License): Likewise.
44677         * modules/safe-write (License): Likewise.
44678
44679 2007-06-14  Ben Pfaff  <blp@gnu.org>
44680
44681         Missing part of allocsa -> malloca transition.
44682         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
44683         gl_MALLOCA.
44684
44685 2007-06-12  Bruno Haible  <bruno@clisp.org>
44686
44687         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
44688         to ia64, x86_64, i386.
44689         Reported by Eric Blake.
44690
44691 2007-06-12  Bruno Haible  <bruno@clisp.org>
44692
44693         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
44694         cross-compiling to x86_64.
44695
44696 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
44697
44698         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
44699         glitch reported by Ralf Wildenhues in
44700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
44701
44702         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
44703         Vin Shelton.
44704
44705 2007-06-11  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
44708         replacement string.
44709         Reported by Eric Blake.
44710
44711 2007-06-10  Bruno Haible  <bruno@clisp.org>
44712
44713         Prepare vasnprintf code for use with Unicode strings.
44714         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44715         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44716         TYPE_U32_STRING.
44717         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44718         a_u32_string variants.
44719         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44720         * lib/printf-args.c: Don't include config.h and the specification
44721         header if PRINTF_FETCHARGS is already defined.
44722         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44723         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44724         TYPE_U16_STRING, TYPE_U32_STRING.
44725         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44726         u16_directive, u16_directives, u32_directive, u32_directives): New
44727         types.
44728         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44729         New declarations.
44730         * lib/printf-parse.c: Don't include config.h and the specification
44731         header if PRINTF_PARSE is already defined. Eliminate the set of
44732         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44733         them now. Include c-ctype.h.
44734         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44735         directive and CHAR_T_ONLY_ASCII.
44736         * lib/vasnprintf.c: Don't include config.h and the specification header
44737         if VASNPRINTF is already defined.
44738         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44739         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44740         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44741         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44742         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44743         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44744         code accordingly.
44745         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44746         pad_ourselves also in this case, with the 'c' and 's' directives, and
44747         with a different notion of "width".
44748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44749
44750 2007-06-10  Bruno Haible  <bruno@clisp.org>
44751
44752         * modules/unistr/u32-mbsnlen: New file.
44753         * lib/unistr/u32-mbsnlen.c: New file.
44754
44755         * modules/unistr/u16-mbsnlen: New file.
44756         * lib/unistr/u16-mbsnlen.c: New file.
44757
44758         * modules/unistr/u8-mbsnlen: New file.
44759         * lib/unistr/u8-mbsnlen.c: New file.
44760
44761         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44762         declarations.
44763
44764 2007-06-10  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/string_.h (mbsnlen): New declaration.
44767         * lib/mbsnlen.c: New file.
44768         * m4/mbsnlen.m4: New file.
44769         * modules/mbsnlen: New file.
44770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44771         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44772         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44773
44774 2007-06-10  Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44777
44778 2007-06-10  Bruno Haible  <bruno@clisp.org>
44779
44780         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44781         * lib/mbuiter.h: Likewise.
44782
44783 2007-06-10  Bruno Haible  <bruno@clisp.org>
44784
44785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44786         declaration.
44787
44788 2007-06-10  Karl Berry  <karl@gnu.org>
44789
44790         * config/srclist.txt: remove gettext entries, Bruno prefers
44791         to update individually.
44792
44793 2007-06-10  Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44796         'maxlen'. Ensure only length + width bytes are allocated, not
44797         length + 1 + width.
44798
44799 2007-06-09  Bruno Haible  <bruno@clisp.org>
44800
44801         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44802         (CHAR_T): Remove macro.
44803         (VASNPRINTF): Update.
44804
44805 2007-06-09  Bruno Haible  <bruno@clisp.org>
44806
44807         * MODULES.html.sh (Unicode string functions): Add the new modules.
44808
44809         * modules/uniconv/u32-conv-to-enc: New file.
44810         * lib/uniconv/u32-conv-to-enc.c: New file.
44811         * modules/uniconv/u32-conv-to-enc-tests: New file.
44812         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44813
44814         * modules/uniconv/u16-conv-to-enc: New file.
44815         * lib/uniconv/u16-conv-to-enc.c: New file.
44816         * lib/uniconv/u-conv-to-enc.h: New file.
44817         * modules/uniconv/u16-conv-to-enc-tests: New file.
44818         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44819
44820         * modules/uniconv/u8-conv-to-enc: New file.
44821         * lib/uniconv/u8-conv-to-enc.c: New file.
44822         * modules/uniconv/u8-conv-to-enc-tests: New file.
44823         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44824
44825         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44826         u32_conv_to_encoding): New declarations.
44827
44828 2007-06-09  Bruno Haible  <bruno@clisp.org>
44829
44830         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44831
44832 2007-06-09  Bruno Haible  <bruno@clisp.org>
44833
44834         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44835         * modules/malloca: Renamed from modules/allocsa, updated.
44836         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44837         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44838         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44839         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44840         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44841         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44842         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44843         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44844         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44845         * modules/c-strcasestr (Depends-on): Update.
44846         * lib/c-strcasestr.c: Update.
44847         * modules/c-strstr (Depends-on): Update.
44848         * lib/c-strstr.c: Update.
44849         * modules/canonicalize-lgpl (Depends-on): Update.
44850         * lib/canonicalize-lgpl.c: Update.
44851         * modules/clean-temp (Depends-on): Update.
44852         * lib/clean-temp.c: Update.
44853         * modules/csharpcomp (Depends-on): Update.
44854         * lib/csharpcomp.c: Update.
44855         * modules/csharpexec (Depends-on): Update.
44856         * lib/csharpexec.c: Update.
44857         * modules/javacomp (Depends-on): Update.
44858         * lib/javacomp.c: Update.
44859         * modules/javaexec (Depends-on): Update.
44860         * lib/javaexec.c: Update.
44861         * modules/mbscasestr (Depends-on): Update.
44862         * lib/mbscasestr.c: Update.
44863         * modules/mbsstr (Depends-on): Update.
44864         * lib/mbsstr.c: Update.
44865         * modules/setenv (Depends-on): Update.
44866         * lib/setenv.c: Update.
44867         * modules/strcasestr (Depends-on): Update.
44868         * lib/strcasestr.c: Update.
44869         * modules/striconveha (Depends-on): Update.
44870         * lib/striconveha.c: Update.
44871         * modules/relocatable-prog-wrapper (Files): Update.
44872         * lib/relocwrapper.c: Update.
44873         * build-aux/install-reloc: Update.
44874         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44875
44876 2007-06-08  Bruno Haible  <bruno@clisp.org>
44877
44878         Port to uClibc.
44879         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44880         * lib/fpurge.c (fpurge): Likewise.
44881         * lib/freading.c (freading): Likewise.
44882         * lib/fseeko.c (rpl_fseeko): Likewise.
44883         * lib/fseterr.c (fseterr): Likewise.
44884         * lib/fwriting.c (fwriting): Likewise.
44885         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44886
44887 2007-06-08  Bruno Haible  <bruno@clisp.org>
44888
44889         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44890         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44891         * modules/gettext (Files): Add m4/intlmacosx.m4.
44892
44893 2007-06-07  Bruno Haible  <bruno@clisp.org>
44894
44895         * modules/localename-tests: New file.
44896         * tests/test-localename.c: New file.
44897
44898         New module 'localename'.
44899         * lib/localename.h: New file.
44900         * lib/localename.c: New file, from GNU gettext.
44901         * m4/localename.m4: New file.
44902         * modules/localename: New file.
44903
44904 2007-06-07  Bruno Haible  <bruno@clisp.org>
44905
44906         Work around the lack of <wchar.h> on some builds of uClibc.
44907         * doc/headers/wchar.texi: Update.
44908         * lib/wchar_.h: Include <wchar.h> only if it exists.
44909         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44910         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44911         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44912         doesn't exist.
44913         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44914         * modules/mbfile (Depends-on): Add wchar.
44915         * modules/mbiter (Depends-on): Likewise.
44916         * modules/mbuiter (Depends-on): Likewise.
44917         Reported by Simon Josefsson.
44918
44919 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44920
44921         Work around problem reported by Steven M. Schweda in
44922         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44923         Tru64 5.1B with the Compaq compiler environment installed declares
44924         an 'isblank' function but does not define it in the C library.
44925         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44926         * lib/regex_internal.h (isblank): Likewise.
44927         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44928         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44929
44930 2007-06-05  Bruno Haible  <bruno@clisp.org>
44931
44932         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44933         ia64.
44934         * modules/printf-safe: New file.
44935         * modules/fprintf-posix (Depends-on): Add printf-safe.
44936         * modules/printf-posix (Depends-on): Likewise.
44937         * modules/snprintf-posix (Depends-on): Likewise.
44938         * modules/sprintf-posix (Depends-on): Likewise.
44939         * modules/vasnprintf-posix (Depends-on): Likewise.
44940         * modules/vasprintf-posix (Depends-on): Likewise.
44941         * modules/vfprintf-posix (Depends-on): Likewise.
44942         * modules/vprintf-posix (Depends-on): Likewise.
44943         * modules/vsnprintf-posix (Depends-on): Likewise.
44944         * modules/vsprintf-posix (Depends-on): Likewise.
44945         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44946         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44947         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44948         "no" on i386, x86_64, ia64.
44949         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44950         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44951         on i386, x86_64, ia64.
44952         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44953         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44954         on i386, x86_64, ia64.
44955         * tests/test-vasnprintf-posix.c: Include float.h.
44956         (LDBL80_WORDS): New macro.
44957         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44958         on i386, x86_64, ia64.
44959         * tests/test-vasprintf-posix.c: Include float.h.
44960         (LDBL80_WORDS): New macro.
44961         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44962         on i386, x86_64, ia64.
44963         * tests/test-snprintf-posix.c: Include float.h.
44964         * tests/test-sprintf-posix.c: Likewise.
44965         * tests/test-vsnprintf-posix.c: Likewise.
44966         * tests/test-vsprintf-posix.c: Likewise.
44967
44968 2007-06-05  Bruno Haible  <bruno@clisp.org>
44969
44970         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
44971         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
44972         non-IEEE numbers on i386, x86_64, ia64.
44973         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
44974         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
44975         * tests/test-isnanl.h: Include float.h.
44976         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
44977
44978 2007-06-05  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
44981         also the %a / %A. Handle the %a / %A code before this extra handling.
44982
44983 2007-06-05  Bruno Haible  <bruno@clisp.org>
44984
44985         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
44986         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
44987
44988 2007-06-05  Bruno Haible  <bruno@clisp.org>
44989
44990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
44991         typo in variable name.
44992
44993 2007-06-05  Eric Blake  <ebb9@byu.net>
44994
44995         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
44996         Reported by Simon Josefsson.
44997
44998 2007-06-04  Bruno Haible  <bruno@clisp.org>
44999
45000         Avoid test failures on some PowerPC platforms.
45001         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
45002         Define differently for PowerPC.
45003         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
45004         Reported by Gary V. Vaughan <gary@gnu.org>.
45005
45006 2007-06-02  Bruno Haible  <bruno@clisp.org>
45007
45008         Fix test-stdint failure on FreeBSD/ia64.
45009         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
45010         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
45011         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
45012         * doc/headers/stdint.texi: Update.
45013
45014 2007-06-01  Bruno Haible  <bruno@clisp.org>
45015
45016         * tests/test-binary-io.c (main): Pass a third argument to open().
45017         Reported by Gary V. Vaughan <gary@gnu.org>.
45018
45019 2007-06-01  Bruno Haible  <bruno@clisp.org>
45020
45021         * doc/functions/frexpl.texi: Update for mingw.
45022
45023 2007-06-01  Bruno Haible  <bruno@clisp.org>
45024
45025         * tests/test-lseek.c (main): Disable test of errno for invalid third
45026         argument.
45027         * doc/functions/lseek.texi: Update.
45028         Reported by Gary V. Vaughan <gary@gnu.org>.
45029
45030 2007-05-28  Bruno Haible  <bruno@clisp.org>
45031
45032         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
45033
45034 2007-05-31  Eric Blake  <ebb9@byu.net>
45035
45036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
45037         cross compiling.
45038
45039 2007-05-30  Eric Blake  <ebb9@byu.net>
45040         and Bruno Haible  <bruno@clisp.org>
45041
45042         Work around mingw test failures exposed by m4-1.4.9b.
45043         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
45044         * tests/test-unistd.c: Disable uid_t and git_t tests for the
45045         moment.
45046
45047 2007-05-30  Bruno Haible  <bruno@clisp.org>
45048
45049         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
45050         assuming that they are closed. Needed on HP-UX 11.
45051
45052 2007-05-29  Bruno Haible  <bruno@clisp.org>
45053
45054         Fix a problem with #include_next.
45055         * lib/dirent_.h: Split the double-inclusion guard.
45056         * lib/fcntl_.h: Likewise.
45057         * lib/float_.h: Likewise.
45058         * lib/iconv_.h: Likewise.
45059         * lib/inttypes_.h: Likewise.
45060         * lib/locale_.h: Likewise.
45061         * lib/math_.h: Likewise.
45062         * lib/netinet_in_.h: Likewise.
45063         * lib/search_.h: Likewise.
45064         * lib/signal_.h: Likewise.
45065         * lib/stdint_.h: Likewise.
45066         * lib/stdio_.h: Likewise.
45067         * lib/stdlib_.h: Likewise.
45068         * lib/string_.h: Likewise.
45069         * lib/sys_select_.h: Likewise.
45070         * lib/sys_socket_.h: Likewise.
45071         * lib/sys_stat_.h: Likewise.
45072         * lib/sys_time_.h: Likewise.
45073         * lib/sysexits_.h: Likewise.
45074         * lib/time_.h: Likewise.
45075         * lib/unistd_.h: Likewise.
45076         * lib/wchar_.h: Likewise.
45077         * lib/wctype_.h: Likewise.
45078
45079 2007-05-29  Bruno Haible  <bruno@clisp.org>
45080
45081         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
45082         for the moment.
45083
45084 2007-05-29  Bruno Haible  <bruno@clisp.org>
45085
45086         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
45087         invocation.
45088         Reported by Eric Blake.
45089
45090 2007-05-29  Bruno Haible  <bruno@clisp.org>
45091
45092         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
45093         compiling case.
45094
45095 2007-05-29  Eric Blake  <ebb9@byu.net>
45096             Bruno Haible  <bruno@clisp.org>
45097
45098         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
45099         cross compiles.
45100
45101 2007-05-28  Eric Blake  <ebb9@byu.net>
45102
45103         * modules/closein-tests (test_closein_LDADD): Support test on
45104         cygwin with libtool.
45105
45106 2007-05-28  Bruno Haible  <bruno@clisp.org>
45107
45108         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
45109         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45110         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45111         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45112         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45113         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45114         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45115         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45116         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45117
45118 2007-05-28  Eric Blake  <ebb9@byu.net>
45119
45120         Unconditionally include <config.h> in unit tests.
45121         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
45122         * tests/test-allocsa.c, tests/test-arcfour.c,
45123         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
45124         tests/test-array_list.c, tests/test-array_oset.c,
45125         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
45126         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
45127         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
45128         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
45129         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
45130         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
45131         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
45132         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
45133         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
45134         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
45135         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
45136         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
45137         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
45138         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
45139         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
45140         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
45141         test-md5.c, test-memmem.c, test-printf-posix.c,
45142         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
45143         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
45144         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
45145         test-strcasestr.c, test-striconv.c, test-striconveh.c,
45146         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
45147         test-vasnprintf-posix2.c, test-vasnprintf.c,
45148         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
45149         test-vfprintf-posix.c, test-vprintf-posix.c,
45150         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
45151         test-xvasprintf.c: Likewise.
45152
45153 2007-05-28  Bruno Haible  <bruno@clisp.org>
45154
45155         * gnulib-tool (func_import): Remember the --with-tests command-line
45156         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
45157         Reported by Eric Blake.
45158
45159 2007-05-28  Bruno Haible  <bruno@clisp.org>
45160
45161         * modules/ftell-tests: New file.
45162         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
45163         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
45164
45165         * lib/ftell.c: New file.
45166         * modules/ftell: New file.
45167         * m4/ftell.m4: New file.
45168         * doc/functions/ftell.texi: Update.
45169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
45170         REPLACE_FTELL.
45171         * lib/stdio_.h (rpl_ftell): New declaration.
45172         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
45173         REPLACE_FTELL.
45174
45175 2007-05-28  Eric Blake  <ebb9@byu.net>
45176
45177         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
45178
45179 2007-05-28  Bruno Haible  <bruno@clisp.org>
45180
45181         * modules/fseek-tests: New file.
45182         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
45183         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
45184
45185         * lib/fseek.c: New file.
45186         * modules/fseek: New file.
45187         * m4/fseek.m4: New file.
45188         * doc/functions/fseek.texi: Update.
45189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
45190         REPLACE_FSEEK.
45191         * lib/stdio_.h (rpl_fseek): New declaration.
45192         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
45193         REPLACE_FSEEK.
45194
45195 2007-05-28  Bruno Haible  <bruno@clisp.org>
45196
45197         * lib/stdio_.h (fflush): More comments.
45198
45199 2007-05-28  Bruno Haible  <bruno@clisp.org>
45200
45201         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
45202         runtime test.
45203
45204 2007-05-28  Eric Blake  <ebb9@byu.net>
45205
45206         Improve lseek module.
45207         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
45208         * lib/unistd_.h (lseek): Scale back link warning message.
45209         * tests/test-lseek.c: Beef up test.
45210         * tests/test-lseek.sh: Exercise more facets of lseek.
45211         Reported by Bruno Haible.
45212
45213 2007-05-28  Bruno Haible  <bruno@clisp.org>
45214
45215         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
45216         to define.
45217
45218 2007-05-27  Bruno Haible  <bruno@clisp.org>
45219
45220         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
45221
45222 2007-05-27  Bruno Haible  <bruno@clisp.org>
45223
45224         * modules/openmp: New file.
45225         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
45226         Noah Misch.
45227
45228 2007-05-26  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/chdir-long (Depends-on): Add fchdir.
45231         * modules/chdir-safer (Depends-on): Likewise.
45232         * modules/fts (Depends-on): Likewise.
45233         * modules/fts-lgpl (Depends-on): Likewise.
45234         * modules/openat (Depends-on): Likewise.
45235         * modules/savewd (Depends-on): Likewise.
45236
45237 2007-05-24  Eric Blake  <ebb9@byu.net>
45238
45239         Fix lseek on mingw.
45240         * modules/lseek: New module.
45241         * m4/lseek.m4: New file.
45242         * lib/lseek.c: New file.
45243         * modules/lseek-tests: New file.
45244         * tests/test-lseek.c: New file.
45245         * tests/test-lseek.sh: New file.
45246         * MODULES.html.sh: Document lseek module.
45247         * modules/fflush (Depends-on): Add lseek, fseeko.
45248         * modules/fseeko (Depends-on): Likewise.
45249         * modules/ftello (Depends-on): Likewise.
45250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
45251         broken.
45252         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
45253         broken.
45254         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
45255         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
45256         * lib/ftello.c (rpl_ftello): Likewise.
45257         * tests/test-fseeko.c (main): Test this.
45258         * tests/test-fseeko.sh: Likewise.
45259         * tests/test-ftello.c (main): Likewise.
45260         * tests/test-ftello.sh: Likewise.
45261         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
45262         implies replacing fseek.
45263         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
45264         HAVE_FTELLO.
45265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
45266         * modules/unistd (Makefile.am): Likewise.
45267         * lib/unistd_.h (lseek): Declare a replacement.
45268         * doc/functions/lseek.texi (lseek): Document this fix.
45269         * doc/functions/fseek.texi (fseek): Likewise.
45270         * doc/functions/ftell.texi (ftell): Likewise.
45271
45272 2007-05-24  Bruno Haible  <bruno@clisp.org>
45273
45274         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
45275         in the printed representation of a NaN.
45276         * tests/test-vasprintf-posix.c (test_function): Likewise.
45277         * tests/test-snprintf-posix.h (test_function): Likewise.
45278         * tests/test-sprintf-posix.h (test_function): Likewise.
45279         Reported by Eric Blake.
45280
45281 2007-05-23  Eric Blake  <ebb9@byu.net>
45282
45283         Fix fseeko/ftello on cygwin 1.5.24.
45284         * doc/functions/fseeko.texi (fseeko): Document the fix.
45285         * doc/functions/ftello.texi (ftello): Document the fix.
45286         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
45287         * doc/functions/stdout.text (stdout): New file.
45288         * doc/functions/stderr.text (stderr): New file.
45289         * doc/gnulib.texi (Function Substitutes): Use new files.
45290         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
45291         prior to 1.7.0.
45292         * tests/test-ftello.c (main): Likewise for ftello.
45293         * tests/test-fseeko.sh: New file.
45294         * tests/test-ftello.sh: New file.
45295         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
45296         with seekable stdin.
45297         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
45298         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
45299         (gl_REPLACE_FSEEKO): New macro.
45300         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
45301         * modules/fseeko (Files): Distribute fseeko.c.
45302         * modules/ftello (Files): Distribute ftello.c.
45303         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
45304         mode.
45305         * lib/ftello.c (rpl_ftello): New file.
45306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
45307         fseeko, ftello.
45308         (gl_STDIN_LARGE_OFFSET): New macro.
45309         * modules/stdio (Makefile.am): Perform the replacement.
45310         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
45311
45312 2007-05-23  Bruno Haible  <bruno@clisp.org>
45313
45314         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
45315         GNULIB_POSIXCHECK is defined.
45316
45317 2007-05-21  Bruno Haible  <bruno@clisp.org>
45318
45319         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
45320         Check also the output for NaN arguments. When cross-compiling, guess
45321         no on IRIX.
45322         * lib/vasnprintf.c: Update comments.
45323         * tests/test-vasnprintf-posix.c (strisnan): New function.
45324         (test_function): Use it.
45325         * tests/test-vasprintf-posix.c (strisnan): New function.
45326         (test_function): Use it.
45327         * tests/test-snprintf-posix.h (strisnan): New function.
45328         (test_function): Use it.
45329         * tests/test-sprintf-posix.h (strisnan): New function.
45330         (test_function): Use it.
45331         Reported by Eric Blake.
45332
45333 2007-05-20  Bruno Haible  <bruno@clisp.org>
45334
45335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
45336         numbers that fails on BeOS.
45337         * doc/functions/frexpl.texi: Update.
45338
45339 2007-05-20  Jim Meyering  <jim@meyering.net>
45340
45341         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
45342         forced upon us by glibc-2.6.
45343
45344 2007-05-20  Bruno Haible  <bruno@clisp.org>
45345
45346         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
45347         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
45348         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
45349         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
45350         NEED_PRINTF_INFINITE.
45351         (is_infinitel): New function.
45352         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
45353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
45354         gl_PREREQ_VASNPRINTF_INFINITE.
45355         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
45356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45357         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
45358         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
45359         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
45360         gl_PREREQ_VASNPRINTF_INFINITE.
45361         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45362         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45363         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45364         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45365         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45366         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45368         * doc/functions/fprintf.texi: Update.
45369         * doc/functions/printf.texi: Update.
45370         * doc/functions/snprintf.texi: Update.
45371         * doc/functions/sprintf.texi: Update.
45372         * doc/functions/vfprintf.texi: Update.
45373         * doc/functions/vprintf.texi: Update.
45374         * doc/functions/vsnprintf.texi: Update.
45375         * doc/functions/vsprintf.texi: Update.
45376
45377 2007-05-20  Bruno Haible  <bruno@clisp.org>
45378
45379         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
45380         was not found in libc.
45381         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45382
45383 2007-05-20  Bruno Haible  <bruno@clisp.org>
45384
45385         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45386         printed as "-nan" instead of "nan".
45387         * tests/test-vasprintf-posix.c (test_function): Likewise.
45388         * tests/test-snprintf-posix.h (test_function): Likewise.
45389         * tests/test-sprintf-posix.h (test_function): Likewise.
45390         Needed for HP-UX 11.
45391
45392 2007-05-20  Jim Meyering  <jim@meyering.net>
45393
45394         Fix buggy test for the fchownat-deref bug.
45395         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
45396         symlink required for the run-test.  Without it, this test would
45397         always declare that fchownat doesn't work, and client code would
45398         unnecessarily use the replacement function with fixed libc.
45399         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
45400         Reported by Greg Schafer.
45401
45402 2007-05-19  Bruno Haible  <bruno@clisp.org>
45403
45404         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
45405         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
45406         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
45407         Needed for IRIX 6.5 and Solaris 2.5.1.
45408
45409 2007-05-19  Bruno Haible  <bruno@clisp.org>
45410
45411         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
45412         (test_function): Skip tests involving -0.0 on platforms where
45413         -0.0 = 0.0.
45414         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
45415         (test_function): Skip tests involving -0.0 on platforms where
45416         -0.0 = 0.0.
45417         * tests/test-snprintf-posix.h (have_minus_zero): New function.
45418         (test_function): Skip tests involving -0.0 on platforms where
45419         -0.0 = 0.0.
45420         * tests/test-sprintf-posix.h (have_minus_zero): New function.
45421         (test_function): Skip tests involving -0.0 on platforms where
45422         -0.0 = 0.0.
45423         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
45424         tests.
45425         * tests/test-printf-posix.h (test_function): Likewise.
45426         * tests/test-printf-posix.output: Remove all -0.0 related results.
45427         Needed for IRIX 6.5.
45428
45429 2007-05-19  Bruno Haible  <bruno@clisp.org>
45430
45431         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45432         printed as "nan0x7fffffff" instead of "nan".
45433         * tests/test-vasprintf-posix.c (test_function): Likewise.
45434         * tests/test-snprintf-posix.h (test_function): Likewise.
45435         * tests/test-sprintf-posix.h (test_function): Likewise.
45436         * tests/test-fprintf-posix.h (NaN): Remove macro.
45437         (test_function): Remove all NaN related tests.
45438         * tests/test-printf-posix.h (NaN): Remove macro.
45439         (test_function): Remove all NaN related tests.
45440         * tests/test-printf-posix.output: Remove all NaN related results.
45441         Needed for IRIX 6.5.
45442
45443 2007-05-19  Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
45446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45447
45448 2007-05-19  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/float_.h: New file.
45451         * m4/float_h.m4: New file.
45452         * modules/float: New file.
45453         * modules/isnanl (Dependencies): Add float.
45454         * modules/isnanl-nolibm (Dependencies): Likewise.
45455         * modules/mathl (Dependencies): Likewise.
45456         * modules/printf-frexpl (Dependencies): Likewise.
45457         * modules/signbit (Dependencies): Likewise.
45458         * modules/vasnprintf (Dependencies): Likewise.
45459         * doc/headers/float.texi: Update.
45460
45461 2007-05-19  Jim Meyering  <jim@meyering.net>
45462
45463         * lib/utimens.c (gl_futimens): Rename from futimens,
45464         now that glibc-2.6 declares futimens.
45465         * lib/utimens.h: Likewise.
45466
45467 2007-05-19  Bruno Haible  <bruno@clisp.org>
45468
45469         Avoid test failures on mingw.
45470         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
45471         * tests/test-printf-posix.sh: Likewise.
45472         * tests/test-vfprintf-posix.sh: Likewise.
45473         * tests/test-vprintf-posix.sh: Likewise.
45474
45475 2007-05-19  Bruno Haible  <bruno@clisp.org>
45476
45477         Fix *printf result for NaN, Inf, -0.0 on mingw.
45478         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
45479         * lib/vasnprintf.c: Include math.h and isnan.h.
45480         (is_infinite_or_zero): New function.
45481         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
45482         values in the %f, %F, %e, %E, %g, %G directives.
45483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
45484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45485         gl_PRINTF_INFINITE and test its result. Invoke
45486         gl_PREREQ_VASNPRINTF_INFINITE.
45487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45494         * doc/functions/fprintf.texi: Update.
45495         * doc/functions/printf.texi: Update.
45496         * doc/functions/snprintf.texi: Update.
45497         * doc/functions/sprintf.texi: Update.
45498         * doc/functions/vfprintf.texi: Update.
45499         * doc/functions/vprintf.texi: Update.
45500         * doc/functions/vsnprintf.texi: Update.
45501         * doc/functions/vsprintf.texi: Update.
45502
45503 2007-05-19  Bruno Haible  <bruno@clisp.org>
45504
45505         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
45506         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
45507         Instead of multiplying with 10^k, set extra_zeroes to k.
45508         (scale10_round_long_double): Remove function.
45509
45510 2007-05-18  Bruno Haible  <bruno@clisp.org>
45511
45512         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
45513         introduced on 2007-05-06.
45514
45515 2007-05-18  Bruno Haible  <bruno@clisp.org>
45516
45517         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
45518         %g directives.
45519         * tests/test-vasprintf-posix.c (test_function): Likewise.
45520         * tests/test-snprintf-posix.h (test_function): Likewise.
45521         * tests/test-sprintf-posix.h (test_function): Likewise.
45522
45523 2007-05-18  Bruno Haible  <bruno@clisp.org>
45524
45525         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
45526         (strmatch): New function.
45527         (test_function): Test the %f directive on numbers of various exponents.
45528         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
45529         (strmatch): New function.
45530         (test_function): Test the %f directive on numbers of various exponents.
45531         * tests/test-snprintf-posix.h (strmatch): New function.
45532         (test_function): Test the %f directive on numbers of various exponents.
45533         * tests/test-sprintf-posix.h (strmatch): New function.
45534         (test_function): Test the %f directive on numbers of various exponents.
45535         * tests/test-snprintf-posix.c (SIZEOF): New macro.
45536         * tests/test-sprintf-posix.c (SIZEOF): New macro.
45537         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
45538         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
45539
45540 2007-05-18  Bruno Haible  <bruno@clisp.org>
45541
45542         Add support for 'long double' number output.
45543         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
45544         * lib/vasnprintf.c: Include math.h and float+.h.
45545         (mp_limb_t): New type.
45546         (GMP_LIMB_BITS): New macro.
45547         (mp_twolimb_t): New type.
45548         (GMP_TWOLIMB_BITS): New macro.
45549         (mpn_t): New type.
45550         (multiply, divide, convert_to_decimal, decode_long_double,
45551         scale10_round_long_double, scale10_round_decimal_long_double,
45552         floorlog10l): New functions.
45553         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
45554         for the %f, %F, %e, %E, %g, %G directives.
45555         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
45556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45557         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
45558         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
45559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45566         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
45567         * modules/snprintf-posix (Depends-on): Likewise.
45568         * modules/sprintf-posix (Depends-on): Likewise.
45569         * modules/vasnprintf-posix (Depends-on): Likewise.
45570         * modules/vasprintf-posix (Depends-on): Likewise.
45571         * modules/vfprintf-posix (Depends-on): Likewise.
45572         * modules/vsnprintf-posix (Depends-on): Likewise.
45573         * modules/vsprintf-posix (Depends-on): Likewise.
45574         * modules/vasnprintf (Files): Add lib/float+.h.
45575         * doc/functions/fprintf.texi: Update.
45576         * doc/functions/printf.texi: Update.
45577         * doc/functions/snprintf.texi: Update.
45578         * doc/functions/sprintf.texi: Update.
45579         * doc/functions/vfprintf.texi: Update.
45580         * doc/functions/vprintf.texi: Update.
45581         * doc/functions/vsnprintf.texi: Update.
45582         * doc/functions/vsprintf.texi: Update.
45583
45584 2007-05-18  Bruno Haible  <bruno@clisp.org>
45585
45586         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
45587
45588 2007-05-18  Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
45591         for printing 64-bit integers. Needed for mingw.
45592
45593 2007-05-18  Bruno Haible  <bruno@clisp.org>
45594
45595         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45596         gl_FUNC_FREXPL_WORKS.
45597         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
45598
45599 2007-05-18  Bruno Haible  <bruno@clisp.org>
45600
45601         * modules/frexpl-nolibm-tests: New file.
45602
45603         * modules/frexpl-nolibm: New file.
45604         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
45605
45606 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45607
45608         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
45609         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45610         GCC 4.2, which otherwise issues a lot of warnings.
45611         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
45612         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
45613         Likewise.
45614         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
45615         * modules/iconv_open (iconv.h): Likewise.
45616         * modules/locale (locale.h): Likewise.
45617         * modules/netinet_in (netinet/in.h): Likewise.
45618         * modules/sys_select (sys_select.h): Likewise.
45619         * modules/sys_socket (sys/socket.h): Likewise.
45620         * modules/sys_stat (sys/stat.h): Likewise.
45621         * modules/sysexits (sysexits.h): Likewise.
45622         * modules/unistd (unistd.h): Likewise.
45623
45624 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45625
45626         * modules/closein-tests (Makefile.am): Distribute
45627         `test-closein.sh'.
45628
45629 2007-05-17  Bruno Haible  <bruno@clisp.org>
45630
45631         * tests/test-printf-posix.output: Renamed from
45632         tests/test-fprintf-posix.out.
45633         * modules/fprintf-posix-tests: Update.
45634         * modules/printf-posix-tests: Update.
45635         * modules/vfprintf-posix-tests: Update.
45636         * modules/vprintf-posix-tests: Update.
45637         * tests/test-fprintf-posix.sh: Update.
45638         * tests/test-printf-posix.sh: Update.
45639         * tests/test-vfprintf-posix.sh: Update.
45640         * tests/test-vprintf-posix.sh: Update.
45641         Reported by Ralf Wildenhues.
45642
45643 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45644
45645         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
45646         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45647         GCC 4.2, which otherwise issues a lot of warnings.
45648         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
45649         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
45650         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
45651         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
45652         it should no longer be needed.
45653         * lib/string_.h: Likewise.
45654         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
45655         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
45656         * modules/inttypes (inttypes.h): Likewise.
45657         * modules/math (math.h): Likewise.
45658         * modules/search (search.h): Likewise.
45659         * modules/signal (signal.h): Likewise.
45660         * modules/stdint (stdint.h): Likewise.
45661         * modules/stdio (stdio.h): Likewise.
45662         * modules/stdlib (stdlib.h): Likewise.
45663         * modules/string (string.h): Likewise.
45664         * modules/sys_time (sys/time.h): Likewise.
45665         * modules/time (time.h): Likewise.
45666         * modules/wchar (wchar.h): Likewise.
45667         * modules/wctype (wtype.h): Likewise.
45668
45669 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45670
45671         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
45672
45673 2007-05-13  Bruno Haible  <bruno@clisp.org>
45674
45675         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
45676         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45677         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
45678         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45679         (gl_PREREQ_STRTOK_R): Don't require it here.
45680
45681 2007-05-13  Bruno Haible  <bruno@clisp.org>
45682
45683         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
45684         when used in C++ mode.
45685
45686 2007-05-12  Bruno Haible  <bruno@clisp.org>
45687
45688         * lib/linebuffer.h: Tweak doc.
45689         * lib/linebuffer.c: Likewise.
45690
45691 2007-05-12  James Youngman  <jay@gnu.org>
45692
45693         * lib/linebuffer.c (readlinebuffer_delim): New function,
45694         like readlinebuffer, but use a caller-specified delimiter.
45695         (readlinebuffer): Just call readlinebuffer_delim with '\n'
45696         as the delimiter.
45697         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
45698
45699 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45700
45701         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
45702         * modules/openat (Files): Remove openat-die.c.
45703         (Depends-on): Add openat-die.
45704         * modules/openat-die: New module.
45705
45706 2007-05-06  Bruno Haible  <bruno@clisp.org>
45707
45708         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45709         Update with info about Cygwin.
45710         * doc/functions/fprintf.texi: Update.
45711         * doc/functions/printf.texi: Update.
45712         * doc/functions/snprintf.texi: Update.
45713         * doc/functions/sprintf.texi: Update.
45714         * doc/functions/vfprintf.texi: Update.
45715         * doc/functions/vprintf.texi: Update.
45716         * doc/functions/vsnprintf.texi: Update.
45717         * doc/functions/vsprintf.texi: Update.
45718         Reported by Eric Blake.
45719
45720 2007-05-06  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45723         padding ourselves for the floating-point directives.
45724         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45727         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45728         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45730         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45736         * tests/test-snprintf-posix.h (test_function): Also check the width
45737         and some flags in the %f directive.
45738         * tests/test-sprintf-posix.h (test_function): Likewise.
45739         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45740         * tests/test-vasprintf-posix.c (test_function): Likewise.
45741         * doc/functions/fprintf.texi: Update.
45742         * doc/functions/printf.texi: Update.
45743         * doc/functions/snprintf.texi: Update.
45744         * doc/functions/sprintf.texi: Update.
45745         * doc/functions/vfprintf.texi: Update.
45746         * doc/functions/vprintf.texi: Update.
45747         * doc/functions/vsnprintf.texi: Update.
45748         * doc/functions/vsprintf.texi: Update.
45749
45750 2007-05-06  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45753         pass the ' flag character to sprintf or snprintf.
45754         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45757         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45758         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45759         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45766         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45767         flag.
45768         * tests/test-sprintf-posix.h (test_function): Likewise.
45769         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45770         * tests/test-vasprintf-posix.c (test_function): Likewise.
45771         * doc/functions/fprintf.texi: Update.
45772         * doc/functions/printf.texi: Update.
45773         * doc/functions/snprintf.texi: Update.
45774         * doc/functions/sprintf.texi: Update.
45775         * doc/functions/vfprintf.texi: Update.
45776         * doc/functions/vprintf.texi: Update.
45777         * doc/functions/vsnprintf.texi: Update.
45778         * doc/functions/vsprintf.texi: Update.
45779
45780 2007-05-01  Bruno Haible  <bruno@clisp.org>
45781
45782         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45783
45784 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45785
45786         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45787         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45788
45789 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45790
45791         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45792         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45794
45795 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45796
45797         * lib/argp-help.c (struct hol_entry): New member `ord'.
45798         (HOL_ENTRY_PTRCMP): Use ord for comparison
45799         (hol_sort): Initialize ord.
45800
45801 2007-05-01  Bruno Haible  <bruno@clisp.org>
45802
45803         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45804         Reported by Eric Blake.
45805         * doc/gnulib.texi (Function Substitutes): Update.
45806
45807 2007-05-01  Bruno Haible  <bruno@clisp.org>
45808
45809         * doc/functions.texi: Remove file, now redundant through
45810         doc/functions/*.texi.
45811
45812 2007-05-01  Bruno Haible  <bruno@clisp.org>
45813
45814         * modules/argp (Depends-on): Add sleep.
45815
45816 2007-05-01  Bruno Haible  <bruno@clisp.org>
45817
45818         * modules/sleep-tests: New file.
45819         * tests/test-sleep.c: New file.
45820
45821         * modules/sleep: New file.
45822         * lib/sleep.c: New file.
45823         * m4/sleep.m4: New file.
45824         * lib/unistd_.h (sleep): New declaration.
45825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45826         HAVE_SLEEP.
45827         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45828         * doc/functions/sleep.texi: Document the sleep module.
45829
45830 2007-05-01  Bruno Haible  <bruno@clisp.org>
45831
45832         * lib/sigprocmask.h: Remove file.
45833         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45834         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45835         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45836         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45837         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45838         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45839         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45840         HAVE_SIGSET_T as a shell variable.
45841         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45842         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45843         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45844         (Depends-on): Add signal. Remove verify.
45845         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45846         (Include): Mention <signal.h> instead of sigprocmask.h.
45847         * NEWS: Mention the change.
45848         * lib/fatal-signal.c: Don't include sigprocmask.h.
45849
45850 2007-05-01  Bruno Haible  <bruno@clisp.org>
45851
45852         * modules/signal: New file.
45853         * lib/signal_.h: New file.
45854         * m4/signal_h.m4: New file.
45855
45856 2007-05-01  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45859         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45860         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45861         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45862
45863 2007-05-01  Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45866         configure time.
45867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45868         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45869         * modules/sys_stat (Makefile.am): Substitute their values into
45870         sys/stat.h.
45871
45872 2007-05-01  Bruno Haible  <bruno@clisp.org>
45873
45874         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45875         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45876         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45877
45878 2007-05-01  Bruno Haible  <bruno@clisp.org>
45879
45880         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45881         'assert' module here.
45882
45883 2007-05-01  Bruno Haible  <bruno@clisp.org>
45884
45885         * doc/functions/*.texi: New files.
45886         * doc/functions/google-ranking.txt: New file.
45887         * doc/gnulib.texi (Function Substitutes): New chapter.
45888         (ctime, inet_ntoa): Remove sections.
45889         * doc/ctime.texi: Remove file.
45890         * doc/inet_ntoa.texi: Remove file.
45891         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45892         dependencies.
45893         (%.info): New rule, specifying a --reference-limit.
45894
45895 2007-05-01  Bruno Haible  <bruno@clisp.org>
45896
45897         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45898
45899 2007-05-01  Bruno Haible  <bruno@clisp.org>
45900
45901         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45902         the portability of 'mkdir' to mingw systems.
45903
45904 2007-05-01  Bruno Haible  <bruno@clisp.org>
45905
45906         * doc/headers/google-ranking.txt: New file.
45907
45908 2007-04-30  Eric Blake  <ebb9@byu.net>
45909
45910         Prefer fseeko to fseek.
45911         * modules/getpass (Depends-on): Add fseeko.
45912         * lib/getpass.c (getpass): Use fseeko, not fseek.
45913
45914 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45915
45916         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45917         assumes the sorting is stable, while most qsort implementations
45918         are not.  Use argument addresses to ensure they never compare as
45919         equal.
45920
45921         * tests/test-argp-2.sh (usage-indent test): Fix output
45922         (func_compare): Restore diff options
45923         * tests/test-argp.c: Restore #include "progname.h"
45924
45925 2007-04-29  Bruno Haible  <bruno@clisp.org>
45926
45927         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45929         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45931         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45932         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45933         (TESTS, check_PROGRAMS): Add test-snprintf.
45934         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45935         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45936         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45937         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45938         assertions that fail on HP-UX, OSF/1, or IRIX.
45939         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45940
45941 2007-04-29  Bruno Haible  <bruno@clisp.org>
45942
45943         * MODULES.html.sh (posix_functions): Remove 'contents'.
45944
45945 2007-04-29  Karl Berry  <karl@gnu.org>
45946
45947         * config/srclist.txt (gendocs_template_min): new entry.
45948
45949 2007-04-29  Bruno Haible  <bruno@clisp.org>
45950
45951         Work around fpurge bug on BSD systems.
45952         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45953         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45954         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45955         fpurge to rpl_fpurge if the system already has this function.
45956         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45957         the case where the system already has this function. Correct invariants
45958         on BSD systems.
45959         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45960         BSD systems.
45961
45962 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45963
45964         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45965         proposed by Sven Verdoolaege.
45966
45967         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
45968         options.
45969         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
45970         (usage and help tests): Update
45971
45972 2007-04-29  Bruno Haible  <bruno@clisp.org>
45973
45974         * tests/test-fflush.c (main): Use a file of size 17, not 10.
45975         Print more information in case of failure. Disable a test on BeOS.
45976
45977 2007-04-29  Bruno Haible  <bruno@clisp.org>
45978
45979         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
45980         This helps debugging on systems on which no gdb is available.
45981
45982 2007-04-29  Bruno Haible  <bruno@clisp.org>
45983
45984         * lib/freading.h: Improve comments.
45985         * lib/fwriting.h: Likewise.
45986         * tests/test-freading.c (main): Don't check freading immediately after
45987         repositioning. Needed for glibc.
45988
45989 2007-04-29  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/freading.c (freading): Trivial simplification.
45992
45993 2007-04-28  Bruno Haible  <bruno@clisp.org>
45994
45995         * tests/test-fwriting.c (main): Also test the interaction between
45996         fflush and fwriting.
45997         * modules/fwriting-tests (Depends-on): Add fflush.
45998
45999         * tests/test-freading.c (main): Also test the interaction between
46000         fflush and freading.
46001         * modules/freading-tests (Depends-on): Add fflush.
46002
46003 2007-04-28  Bruno Haible  <bruno@clisp.org>
46004
46005         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
46006         fseeko and ftello.
46007         Suggested by Eric Blake.
46008
46009 2007-04-28  Jim Meyering  <jim@meyering.net>
46010
46011         Avoid false-negative in gl_STDINT_H's C99 conformance test.
46012         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
46013         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
46014
46015 2007-04-27  Eric Blake  <ebb9@byu.net>
46016
46017         * doc/headers/assert.texi (assert.h): Document assert module use.
46018
46019 2007-04-27  Bruno Haible  <bruno@clisp.org>
46020
46021         * doc/headers/*.texi: New files.
46022         * doc/gnulib.texi (Header File Substitutes): New chapter.
46023         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
46024         dependencies.
46025         (standards.info ,standards.html, standards.dvi): Update dependencies.
46026         (mostlyclean, clean): New targets.
46027
46028 2007-04-27  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
46031         * modules/sysexits (Files, Makefile.am): Update.
46032
46033         * lib/sys_socket_.h: Renamed from lib/socket_.h.
46034         * modules/sys_socket (Files, Makefile.am): Update.
46035
46036         * lib/sys_stat_.h: Renamed from lib/stat_.h.
46037         * modules/sys_stat (Files, Makefile.am): Update.
46038
46039 2007-04-27  Eric Blake  <ebb9@byu.net>
46040
46041         * lib/freading.h: Improve comments.
46042         * lib/fwriting.h: Likewise.
46043         * lib/fflush.c: Likewise.
46044
46045         Fix closein for mingw.
46046         * modules/closein-tests: Add tests for closein.
46047         * tests/test-closein.c: New file.
46048         * tests/test-closein.sh: Likewise.
46049         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
46050         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
46051
46052 2007-04-27  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
46055         version is < 6.
46056         * lib/math_.h [__DECC]: Likewise.
46057         * lib/stdio_.h [__DECC]: Likewise.
46058         * lib/stdlib_.h [__DECC]: Likewise.
46059         * lib/string_.h [__DECC]: Likewise.
46060         * lib/time_.h [__DECC]: Likewise.
46061         * lib/wchar_.h [__DECC]: Likewise.
46062         * lib/wctype_.h [__DECC]: Likewise.
46063
46064 2007-04-27  Bruno Haible  <bruno@clisp.org>
46065
46066         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
46067
46068 2007-04-27  Bruno Haible  <bruno@clisp.org>
46069
46070         * lib/fflush.c: Add comments.
46071         * modules/fpurge-tests (Depends-on): Add fflush.
46072         * modules/freadable-tests (Depends-on): Likewise.
46073         * modules/fwritable-tests (Depends-on): Likewise.
46074
46075 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
46076
46077         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
46078         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
46079         Report by Bruno Haible <bruno@clisp.org>.
46080
46081 2007-04-26  Eric Blake  <ebb9@byu.net>
46082
46083         Fix fflush on mingw.
46084         * modules/fflush (Depends-on): Add freading.
46085         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
46086         but unread data.
46087
46088 2007-04-26  Eric Blake  <ebb9@byu.net>
46089         and Bruno Haible  <bruno@clisp.org>
46090
46091         Implement freading and fwriting.
46092         * lib/freading.c: New file.
46093         * lib/freading.h: Likewise.
46094         * m4/freading.m4: Likewise.
46095         * modules/freading: Likewise.
46096         * modules/freading-tests: Likewise.
46097         * tests/test-freading.c: Likewise.
46098         * lib/fwriting.c: New file.
46099         * lib/fwriting.h: Likewise.
46100         * m4/fwriting.m4: Likewise.
46101         * modules/fwriting: Likewise.
46102         * modules/fwriting-tests: Likewise.
46103         * tests/test-fwriting.c: Likewise.
46104         * MODULES.html.sh (File stream based Input/Output): Mention them.
46105
46106 2007-04-26  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
46109         'long' when we assume it.
46110         Suggested by Eric Blake.
46111
46112 2007-04-26  Bruno Haible  <bruno@clisp.org>
46113
46114         Ensure fseeko, ftello are declared on glibc systems.
46115         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
46116         * modules/fseeko (configure.ac-early): Likewise.
46117         * modules/ftello (configure.ac-early): Likewise.
46118         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
46119         AC_FUNC_FSEEKO for this.
46120         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
46121         (gl_CHECK_FSEEKO): Remove macro.
46122
46123 2007-04-26  Bruno Haible  <bruno@clisp.org>
46124
46125         * tests/test-fflush.c (main): Also check the ftell result after
46126         fflush and fseek/fseeko.
46127         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
46128         file descriptor position cache in the stream.
46129         * lib/fseeko.c (rpl_fseeko): Likewise.
46130
46131 2007-04-26  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/fflush-tests (Depends-on): Add fseeko.
46134
46135 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
46136             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46137
46138         * lib/argz_.h: ensure error_t definition is obtained in same
46139         mechanism system argz.h would have.
46140         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
46141         argz facilities are known bad.  Err on the side of caution if
46142         cross-compiling.
46143
46144 2007-04-25  Eric Blake  <ebb9@byu.net>
46145
46146         * lib/fpurge.c (includes): Use stdlib.h for free.
46147         * tests/test-fflush.c (main): Also test fflush-fseeko.
46148
46149 2007-04-25  Bruno Haible  <bruno@clisp.org>
46150
46151         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
46152         * lib/fseeko.c: New file.
46153         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
46154         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
46155         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
46156         gl_FUNC_FSEEKO.
46157         (gl_FUNC_FSEEKO): Invoke it.
46158         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
46159         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
46160         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
46161
46162 2007-04-25  Bruno Haible  <bruno@clisp.org>
46163
46164         * modules/fflush (Depends-on): Add ftello.
46165
46166 2007-04-25  Bruno Haible  <bruno@clisp.org>
46167
46168         * modules/ftello-tests: New file.
46169         * tests/test-ftello.c: New file.
46170
46171         * modules/ftello: New file.
46172         * m4/ftello.m4: New file.
46173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
46174         HAVE_FTELLO.
46175         * lib/stdio_.h (ftello): New declaration.
46176         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
46177         HAVE_FTELLO.
46178
46179 2007-04-25  Bruno Haible  <bruno@clisp.org>
46180
46181         * modules/fseeko-tests: New file.
46182         * tests/test-fseeko.c: New file.
46183
46184         * modules/fseeko: New file.
46185         * m4/fseeko.m4: New file.
46186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
46187         HAVE_FSEEKO.
46188         * lib/stdio_.h (fseeko): New declaration.
46189         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
46190         HAVE_FSEEKO.
46191
46192 2007-04-25  Bruno Haible  <bruno@clisp.org>
46193
46194         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
46195
46196 2007-04-25  Bruno Haible  <bruno@clisp.org>
46197
46198         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
46199         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
46200         * tests/test-unistd.c: Likewise.
46201         * tests/test-fcntl.c: Likewise.
46202
46203 2007-04-23  Eric Blake  <ebb9@byu.net>
46204
46205         * lib/fflush.c: Fix missing include.
46206         Reported by Bruno Haible.
46207
46208 2007-04-23  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
46211         Reported by Eric Blake.
46212
46213 2007-04-23  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
46216
46217 2007-04-23  Bruno Haible  <bruno@clisp.org>
46218
46219         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
46220
46221 2007-04-23  Bruno Haible  <bruno@clisp.org>
46222
46223         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
46224         Needed on HP-UX 11.
46225
46226 2007-04-16  Eric Blake  <ebb9@byu.net>
46227
46228         Make fflush rely on fpurge.
46229         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
46230         open coding all variants.
46231         * modules/fflush (Depends-on): Add fpurge and unistd.
46232         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
46233         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
46234
46235         Fix --with-tests compilation on cygwin.
46236         * modules/argmatch-tests (Makefile.am): List gnulib library first
46237         in LDADD.
46238         * modules/argp-tests (Makefile.am): Likewise.
46239         * modules/array-list-tests (Makefile.am): Likewise.
46240         * modules/array-oset-tests (Makefile.am): Likewise.
46241         * modules/avltree-list-tests (Makefile.am): Likewise.
46242         * modules/avltree-oset-tests (Makefile.am): Likewise.
46243         * modules/avltreehash-list-tests (Makefile.am): Likewise.
46244         * modules/carray-list-tests (Makefile.am): Likewise.
46245         * modules/dirname-tests (Makefile.am): Likewise.
46246         * modules/frexp-tests (Makefile.am): Likewise.
46247         * modules/isnanl-tests (Makefile.am): Likewise.
46248         * modules/linked-list-tests (Makefile.am): Likewise.
46249         * modules/linkedhash-list-tests (Makefile.am): Likewise.
46250         * modules/lock-tests (Makefile.am): Likewise.
46251         * modules/rbtree-list-tests (Makefile.am): Likewise.
46252         * modules/rbtree-oset-tests (Makefile.am): Likewise.
46253         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
46254         * modules/tls-tests (Makefile.am): Likewise.
46255         * modules/tsearch-tests (Makefile.am): Likewise.
46256         * modules/xvasprintf-tests (Makefile.am): Likewise.
46257
46258         Fix fpurge for cygwin.
46259         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
46260         value.
46261         * modules/fpurge-tests (Depends-on): Clean up trash.
46262
46263 2007-04-16  Simon Josefsson  <simon@josefsson.org>
46264
46265         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
46266
46267         * m4/autobuild.m4: Re-indent.
46268
46269 2007-04-13  Bruno Haible  <bruno@clisp.org>
46270
46271         * modules/fpurge-tests: New file.
46272         * tests/test-fpurge.c: New file.
46273
46274         * modules/fpurge: New file.
46275         * lib/fpurge.h: New file.
46276         * lib/fpurge.c: New file.
46277         * m4/fpurge.m4: New file.
46278
46279 2007-04-13  Bruno Haible  <bruno@clisp.org>
46280
46281         * modules/fbufmode-tests: New file.
46282         * tests/test-fbufmode.c: New file.
46283
46284         * modules/fbufmode: New file.
46285         * lib/fbufmode.h: New file.
46286         * lib/fbufmode.c: New file.
46287         * m4/fbufmode.m4: New file.
46288
46289 2007-04-13  Bruno Haible  <bruno@clisp.org>
46290
46291         * modules/fwritable-tests: New file.
46292         * tests/test-fwritable.c: New file.
46293
46294         * modules/fwritable: New file.
46295         * lib/fwritable.h: New file.
46296         * lib/fwritable.c: New file.
46297         * m4/fwritable.m4: New file.
46298
46299 2007-04-13  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/freadable-tests: New file.
46302         * tests/test-freadable.c: New file.
46303
46304         * modules/freadable: New file.
46305         * lib/freadable.h: New file.
46306         * lib/freadable.c: New file.
46307         * m4/freadable.m4: New file.
46308
46309 2007-04-13  Bruno Haible  <bruno@clisp.org>
46310
46311         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
46312         MOSTLYCLEANFILES.
46313
46314 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46315
46316         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
46317         gzip bootstrap.conf to avoid dragging in i18n machinery.
46318         (gnulib_tool_option): Use it.
46319
46320 2007-04-13  Bruno Haible  <bruno@clisp.org>
46321
46322         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
46323         %F directives.
46324         * tests/test-vasprintf-posix.c (test_function): Likewise.
46325         * tests/test-snprintf-posix.h (test_function): Likewise.
46326         * tests/test-sprintf-posix.h (test_function): Likewise.
46327         * tests/test-fprintf-posix.h (test_function): Likewise.
46328         * tests/test-printf-posix.h (test_function): Likewise.
46329         * tests/test-fprintf-posix.out: Likewise.
46330
46331 2007-04-13  Bruno Haible  <bruno@clisp.org>
46332
46333         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
46334         * modules/tls-tests (configure.ac): Likewise.
46335         Reported by Arto C. Nirkko <anirkko@insel.ch>.
46336
46337 2007-04-13  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/tls.c (glthread_tls_get): Fix return type.
46340         Patch by Arto C. Nirkko <anirkko@insel.ch>.
46341
46342 2007-04-12  Eric Blake  <ebb9@byu.net>
46343
46344         * modules/gettime (Depends-on): Remove gettime.
46345         Reported by Dmitry V. Levin.
46346
46347 2007-04-12  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/fflush (Include): Mention <stdio.h>.
46350         * modules/strtoimax (Include): Mention <inttypes.h>.
46351         * modules/strtoumax (Include): Likewise.
46352
46353 2007-04-12  Eric Blake  <ebb9@byu.net>
46354
46355         * .cvsignore: New file.
46356         * .gitignore: Likewise.
46357
46358 2007-04-12  Bruno Haible  <bruno@clisp.org>
46359
46360         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
46361         not before, since $(LDADD) often contains libgnu.a.
46362         * modules/striconv-tests (test_striconv_LDADD): Likewise.
46363         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
46364         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
46365         Needed on Cygwin.
46366
46367 2007-04-12  Eric Blake  <ebb9@byu.net>
46368
46369         Work around glibc's failure to flush stdin on fclose.
46370         * lib/closein.c (close_stdin): Flush stdin before closing.
46371
46372         Work around glibc's failure to reset seekable stdin on exit.
46373         * modules/closein: New module.
46374         * lib/closein.c: New file.
46375         * lib/closein.h: Likewise.
46376         * m4/closein.m4: Likewise.
46377         * MODULES.html.sh (File stream based Input/Output): Document it.
46378
46379 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46380
46381         * gnulib-tool: Rename generated 'autobuild' script to
46382         'do-autobuild' in --create-megatestdir output.
46383
46384         * doc/gnulib.texi (Build robot for gnulib): Fix.
46385
46386 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46387
46388         * modules/sysexits (Depends-on): Add absolute-header.
46389
46390 2007-04-12  Eric Blake  <ebb9@byu.net>
46391
46392         No need to preserve errno on success.
46393         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
46394         Reported by Bruno Haible.
46395
46396 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46397
46398         * MODULES.html.sh (Support for maintaining and releasing
46399         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
46400
46401 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46402
46403         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
46404
46405 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46406
46407         * modules/autobuild: New module.
46408
46409         * m4/autobuild.m4: New file.
46410
46411 2007-04-11  Bruno Haible  <bruno@clisp.org>
46412
46413         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
46414         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
46415         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
46416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
46417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46418         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46419         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46421         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46422         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
46424         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46425         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
46427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46429         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
46430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
46433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
46436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
46439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46441         Reported by Eric Blake.
46442
46443 2007-04-11  Bruno Haible  <bruno@clisp.org>
46444
46445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
46446
46447 2007-04-10  Bruno Haible  <bruno@clisp.org>
46448
46449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
46450         for NaN and Infinity. Needed on FreeBSD 6.1.
46451         * tests/test-vasnprintf-posix.c (test_function): Undo last change
46452         regarding results for "%010a" of Infinity and NaN.
46453         * tests/test-vasprintf-posix.c (test_function): Likewise.
46454         * tests/test-snprintf-posix.h (test_function): Likewise.
46455         * tests/test-sprintf-posix.h (test_function): Likewise.
46456         * tests/test-fprintf-posix.h (test_function): Likewise.
46457         * tests/test-printf-posix.h (test_function): Likewise.
46458         * tests/test-fprintf-posix.out: Likewise.
46459
46460 2007-04-10  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/locale-tests: New file.
46463         * tests/test-locale.c: New file.
46464
46465         * modules/locale: New file.
46466         * lib/locale_.h: New file.
46467         * m4/locale_h.m4: New file.
46468
46469 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
46470             Bruno Haible  <bruno@clisp.org>
46471
46472         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
46473         be determined, test for availability of the copysignf, copysign,
46474         copysignl functions.
46475         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
46476         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
46477         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
46478
46479 2007-04-09  Eric Blake  <ebb9@byu.net>
46480
46481         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
46482         * modules/stdio (Makefile.am): Support fflush.
46483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46484         * modules/fflush: New file.
46485         * lib/fflush.c: Likewise.
46486         * m4/fflush.m4: Likewise.
46487         * modules/fflush-tests: New test.
46488         * tests/test-fflush.c: Likewise.
46489         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
46490
46491 2007-04-06  Bruno Haible  <bruno@clisp.org>
46492
46493         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
46494         (VASNPRINTF): Use signbit for faster determination whether to print a
46495         minus sign.
46496         * modules/vasnprintf (Files): Remove lib/float+.h.
46497         * modules/fprintf-posix (Depends-on): Add signbit.
46498         * modules/snprintf-posix (Depends-on): Likewise.
46499         * modules/sprintf-posix (Depends-on): Likewise.
46500         * modules/vasnprintf-posix (Depends-on): Likewise.
46501         * modules/vasprintf-posix (Depends-on): Likewise.
46502         * modules/vfprintf-posix (Depends-on): Likewise.
46503         * modules/vsnprintf-posix (Depends-on): Likewise.
46504         * modules/vsprintf-posix (Depends-on): Likewise.
46505
46506 2007-04-06  Bruno Haible  <bruno@clisp.org>
46507
46508         * tests/test-frexp.c (main): Test also the sign bit of zero results.
46509         * tests/test-frexpl.c (main): Likewise.
46510         * tests/test-ldexpl.c (main): Likewise.
46511         * modules/frexp-tests (Depends-on): Add signbit.
46512         * modules/frexpl-tests (Depdends-on): Likewise.
46513         * modules/ldexpl-tests (Depdends-on): Likewise.
46514
46515 2007-04-06  Bruno Haible  <bruno@clisp.org>
46516
46517         * modules/signbit-tests: New file.
46518         * tests/test-signbit.c: New file.
46519
46520         * modules/signbit: New file.
46521         * lib/signbitf.c: New file.
46522         * lib/signbitd.c: New file.
46523         * lib/signbitl.c: New file.
46524         * m4/signbit.m4: New file.
46525         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
46526         (signbit): New macro.
46527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
46528         REPLACE_SIGNBIT.
46529         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
46530         REPLACE_FREXPL into math.h.
46531
46532 2007-04-06  Bruno Haible  <bruno@clisp.org>
46533
46534         * modules/isnanf-nolibm-tests: New file.
46535         * tests/test-isnanf.c: New file.
46536
46537         * modules/isnanf-nolibm: New file.
46538         * lib/isnanf.h: New file.
46539         * lib/isnanf.c: New file.
46540         * lib/isnan.c: Consider the USE_FLOAT macro.
46541         * m4/isnanf.m4: New file.
46542
46543 2007-04-06  Bruno Haible  <bruno@clisp.org>
46544
46545         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
46546         (Link): New section.
46547
46548         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
46549
46550 2007-04-06  Bruno Haible  <bruno@clisp.org>
46551
46552         Assume the 'long double' type.
46553         * m4/longdouble.m4: Remove file.
46554         * config/srclist.txt: Don't mention longdouble.m4.
46555         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
46556         * lib/float+.h: Likewise.
46557         * lib/frexp.c: Likewise.
46558         * lib/printf-args.h: Likewise.
46559         * lib/printf-args.c: Likewise.
46560         * lib/printf-frexp.c: Likewise.
46561         * lib/printf-parse.c: Likewise.
46562         * lib/vasnprintf.c: Likewise.
46563         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
46564         * m4/intl.m4: Likewise.
46565         * m4/isnanl.m4: Likewise.
46566         * m4/printf.m4: Likewise.
46567         * m4/printf-frexpl.m4: Likewise.
46568         * m4/vasnprintf.m4: Likewise.
46569         * modules/allocsa (Files): Remove m4/longdouble.m4.
46570         * modules/gettext (Files): Likewise.
46571         * modules/relocatable-prog-wrapper (Files): Likewise.
46572         * modules/vasnprintf (Files): Likewise.
46573         * modules/isnanl (Files): Likewise.
46574         (Include): Simplify.
46575         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
46576         (Include): Simplify.
46577         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
46578         (Include): Simplify.
46579         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
46580         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46581         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
46582         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46583         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46585         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
46586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46587         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46589         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
46590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46591         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
46592         * tests/test-isnanl.c: Likewise.
46593         * tests/test-snprintf-posix.h: Likewise.
46594         * tests/test-sprintf-posix.h: Likewise.
46595         * tests/test-vasnprintf-posix.c: Likewise.
46596         * tests/test-vasnprintf-posix2.c: Likewise.
46597         * tests/test-vasprintf-posix.c: Likewise.
46598
46599 2007-04-06  Bruno Haible  <bruno@clisp.org>
46600
46601         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
46602         * lib/math_.h [__DECC]: Include the overridden include file through
46603         #include_next, outside the double-inclusion guard.
46604         * lib/stdio_.h [__DECC]: Likewise.
46605         * lib/stdlib_.h [__DECC]: Likewise.
46606         * lib/string_.h [__DECC]: Likewise.
46607         * lib/time_.h [__DECC]: Likewise.
46608         * lib/wchar_.h [__DECC]: Likewise.
46609         * lib/wctype_.h [__DECC]: Likewise.
46610         * lib/inttypes_.h [__DECC]: Likewise.
46611         Reported by Albert Chin <china@thewrittenword.com> in
46612         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
46613
46614 2007-04-04  Eric Blake  <ebb9@byu.net>
46615
46616         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
46617         1.5.x.
46618
46619 2007-04-04  Bruno Haible  <bruno@clisp.org>
46620
46621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
46622         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
46623
46624 2007-04-04  Bruno Haible  <bruno@clisp.org>
46625
46626         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
46627         results for "%010a" of Infinity and NaN.
46628         * tests/test-vasprintf-posix.c (test_function): Likewise.
46629         * tests/test-snprintf-posix.h (test_function): Likewise.
46630         * tests/test-sprintf-posix.h (test_function): Likewise.
46631         * tests/test-fprintf-posix.h (test_function): Remove these tests.
46632         * tests/test-printf-posix.h (test_function): Likewise.
46633         * tests/test-fprintf-posix.out: Update.
46634         Needed for FreeBSD 6.1.
46635
46636 2007-04-04  Bruno Haible  <bruno@clisp.org>
46637
46638         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
46639         directly used by the gnulib modules nor by gnulib-tool.
46640
46641 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46642
46643         * DEPENDENCIES: Give overall description of version dependency
46644         desirability.  Use more-typical names for apps.
46645         Add shell, coreutils, diffutils, grep, tar, gzip.
46646
46647 2007-04-04  Simon Josefsson  <simon@josefsson.org>
46648
46649         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
46650
46651 2007-04-04  Karl Berry  <karl@gnu.org>
46652
46653         * MODULES.html.sh (func_module): missing '.
46654
46655 2007-04-03  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/argmatch-tests (Makefile.am): New variable
46658         test_argmatch_LDADD.
46659         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
46660         * modules/array-list-tests (Makefile.am): New variable
46661         test_array_list_LDADD.
46662         * modules/array-oset-tests (Makefile.am): New variable
46663         test_array_oset_LDADD.
46664         * modules/avltree-list-tests (Makefile.am): New variable
46665         test_avltree_list_LDADD.
46666         * modules/avltree-oset-tests (Makefile.am): New variable
46667         test_avltree_oset_LDADD.
46668         * modules/avltreehash-list-tests (Makefile.am): New variable
46669         test_avltreehash_list_LDADD.
46670         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
46671         test_canonicalize_lgpl_LDADD.
46672         * modules/carray-list-tests (Makefile.am): New variable
46673         test_carray_list_LDADD.
46674         * modules/dirname-tests (Makefile.am): New variable
46675         test_dirname_LDADD.
46676         * modules/linked-list-tests (Makefile.am): New variable
46677         test_linked_list_LDADD.
46678         * modules/linkedhash-list-tests (Makefile.am): New variable
46679         test_linkedhash_list_LDADD.
46680         * modules/rbtree-list-tests (Makefile.am): New variable
46681         test_rbtree_list_LDADD.
46682         * modules/rbtree-oset-tests (Makefile.am): New variable
46683         test_rbtree_oset_LDADD.
46684         * modules/rbtreehash-list-tests (Makefile.am): New variable
46685         test_rbtreehash_list_LDADD.
46686         * modules/xvasprintf-tests (Makefile.am): New variable
46687         test_xvasprintf_LDADD.
46688         Reported by Eric Blake.
46689
46690 2007-04-03  Eric Blake  <ebb9@byu.net>
46691
46692         * DEPENDENCIES: Weaken m4 requirements.
46693
46694 2007-04-03  Bruno Haible  <bruno@clisp.org>
46695
46696         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
46697         * modules/isnanl-tests (configure.ac): Likewise.
46698
46699 2007-04-03  Ben Pfaff  <blp@gnu.org>
46700
46701         * modules/iconv_open: Add $(srcdir)/ to source directory
46702         references in Makefile fragments that call gperf, to fix VPATH
46703         builds.
46704
46705 2007-04-03  Bruno Haible  <bruno@clisp.org>
46706
46707         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
46708         * lib/ldexpl.c: Undo last change.
46709
46710 2007-04-03  Bruno Haible  <bruno@clisp.org>
46711
46712         * modules/printf-frexpl (Depends-on): Undo last change.
46713         (Files): Add m4/ldexpl.m4.
46714
46715 2007-04-03  Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46718         * modules/isnanl (Link): New section.
46719
46720         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46721         * modules/frexp (Link): New section.
46722
46723         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46724         * modules/frexpl (Link): New section.
46725
46726         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46727         * modules/ldexpl (Link): New section.
46728
46729 2007-04-03  Bruno Haible  <bruno@clisp.org>
46730
46731         * modules/TEMPLATE-EXTENDED: New file.
46732         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46733
46734 2007-04-03  Bruno Haible  <bruno@clisp.org>
46735
46736         * DEPENDENCIES: New file.
46737         Suggested by Simon Josefsson.
46738
46739 2007-04-03  Bruno Haible  <bruno@clisp.org>
46740
46741         * doc/gnulib.texi: Escape @.
46742
46743 2007-04-03  James Youngman  <jay@gnu.org>
46744         and Paul Eggert  <eggert@cs.ucla.edu>
46745
46746         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46747         birthtime on all systems that have birthtime, not just those which
46748         use st_birthtimensec rather than st_birthtim.  Putting zero in
46749         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46750         that the birth time is not available for files on an NFS mount.
46751
46752 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46753
46754         * modules/memxor: Move back from crypto/, suggested by Bruno.
46755         * modules/crypto/hmac-sha1: Fix memxor dependency.
46756
46757         * modules/crypto/gc: Moved from ../.
46758
46759 2007-04-02  Eric Blake  <ebb9@byu.net>
46760
46761         * lib/ldexpl.c (includes): Avoid libm.
46762
46763         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46764
46765 2007-04-02  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46768         on IRIX.
46769
46770 2007-04-02  Bruno Haible  <bruno@clisp.org>
46771
46772         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46773         x86 or x86_64 platforms running MacOS X.
46774         Reported by Ryan Schmidt <@ryandesign.com>.
46775
46776 2007-04-02  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46779         i386.
46780
46781 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46782
46783         * modules/crypto/arcfour: Moved from ../.
46784         * modules/crypto/arcfour-tests: Moved from ../.
46785         * modules/crypto/arctwo: Moved from ../.
46786         * modules/crypto/arctwo-tests: Moved from ../.
46787         * modules/crypto/des: Moved from ../.
46788         * modules/crypto/des-tests: Moved from ../.
46789         * modules/crypto/gc-arcfour: Moved from ../.
46790         * modules/crypto/gc-arcfour-tests: Moved from ../.
46791         * modules/crypto/gc-arctwo: Moved from ../.
46792         * modules/crypto/gc-arctwo-tests: Moved from ../.
46793         * modules/crypto/gc-des: Moved from ../.
46794         * modules/crypto/gc-des-tests: Moved from ../.
46795         * modules/crypto/gc-hmac-md5: Moved from ../.
46796         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46797         * modules/crypto/gc-hmac-sha1: Moved from ../.
46798         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46799         * modules/crypto/gc-md2: Moved from ../.
46800         * modules/crypto/gc-md2-tests: Moved from ../.
46801         * modules/crypto/gc-md4: Moved from ../.
46802         * modules/crypto/gc-md4-tests: Moved from ../.
46803         * modules/crypto/gc-md5: Moved from ../.
46804         * modules/crypto/gc-md5-tests: Moved from ../.
46805         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46806         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46807         * modules/crypto/gc-random: Moved from ../.
46808         * modules/crypto/gc-rijndael: Moved from ../.
46809         * modules/crypto/gc-rijndael-tests: Moved from ../.
46810         * modules/crypto/gc-sha1: Moved from ../.
46811         * modules/crypto/gc-sha1-tests: Moved from ../.
46812         * modules/crypto/gc-tests: Moved from ../.
46813         * modules/crypto/hmac-md5: Moved from ../.
46814         * modules/crypto/hmac-md5-tests: Moved from ../.
46815         * modules/crypto/hmac-sha1: Moved from ../.
46816         * modules/crypto/hmac-sha1-tests: Moved from ../.
46817         * modules/crypto/md2: Moved from ../.
46818         * modules/crypto/md2-tests: Moved from ../.
46819         * modules/crypto/md4: Moved from ../.
46820         * modules/crypto/md4-tests: Moved from ../.
46821         * modules/crypto/md5: Moved from ../.
46822         * modules/crypto/md5-tests: Moved from ../.
46823         * modules/crypto/memxor: Moved from ../.
46824         * modules/crypto/rijndael: Moved from ../.
46825         * modules/crypto/rijndael-tests: Moved from ../.
46826         * modules/crypto/sha1: Moved from ../.
46827
46828 2007-03-30  James Youngman  <jay@gnu.org>
46829
46830         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46831         rename() to change the ctime of a file (because ctime is unaffected
46832         by rename on jfs2 on AIX 5.1).
46833         (main): Start by doing cleanup, in case a previous run failed leaving
46834         test files behind.
46835
46836 2007-03-31  Bruno Haible  <bruno@clisp.org>
46837
46838         Support old proprietary implementations of iconv.
46839         * modules/iconv_open: New file.
46840         * lib/iconv_.h: New file.
46841         * m4/iconv_h.m4: New file.
46842         * lib/iconv_open.c: New file.
46843         * lib/iconv_open-aix.gperf: New file.
46844         * lib/iconv_open-hpux.gperf: New file.
46845         * lib/iconv_open-irix.gperf: New file.
46846         * lib/iconv_open-osf.gperf: New file.
46847         * m4/iconv_open.m4: New file.
46848         * modules/linebreak (Depends-on): Add iconv_open.
46849         * modules/striconv (Depends-on): Likewise.
46850         * modules/striconveh (Depends-on): Likewise.
46851         * modules/unicodeio (Depends-on): Likewise.
46852         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46853         (iconv_t)(-1).
46854         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46855         conversion if cd is (iconv_t)(-1).
46856         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46857         is not possible.
46858
46859 2007-03-31  Bruno Haible  <bruno@clisp.org>
46860
46861         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46862         work on Solaris either. Protect also second use of "autodetect_jp".
46863
46864 2007-03-31  Bruno Haible  <bruno@clisp.org>
46865
46866         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46867         the function is not present.
46868
46869 2007-03-31  Bruno Haible  <bruno@clisp.org>
46870
46871         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46872         the function is not present.
46873
46874 2007-03-31  Bruno Haible  <bruno@clisp.org>
46875
46876         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46877         a bug in HP-UX iconv_open().
46878
46879 2007-03-31  Bruno Haible  <bruno@clisp.org>
46880
46881         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46882         (Mathematics <math.h>): New section, add fpieee.
46883         (Input/output <stdio.h>): Add fseterr.
46884         (Mathematics <math.h>): New section, add printf-frexp.
46885         (Container data structures): Add sublist.
46886         (Core language properties): Add fpucw, inline.
46887         (Functions for greatest-width integer types <inttypes.h>): Add
46888         imaxabs, imaxdiv, inttypes.
46889         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46890         isnanl-nolibm, ldexp.
46891         (Mathematics <math.h>): New section, add printf-frexpl.
46892         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46893         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46894         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46895         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46896         (Unicode string functions): Add unistr/u*-mbtoucr.
46897         (Java): Add javacomp-script, javaexec-script.
46898         (C#): Add csharpcomp-script, csharpexec-script.
46899         (Support for building libraries and executables): Add havelib,
46900         relocatable-*.
46901         (Support for maintaining and releasing projects): Renamed from
46902         'Support for maintaining and release projects'. Add announce-gen.
46903
46904 2007-03-31  Bruno Haible  <bruno@clisp.org>
46905
46906         * README: Talk primarily about git.
46907         (git and CVS): Renamed from CVS.
46908         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46909         gnulib is available through git.
46910         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46911
46912 2007-03-30  Bruno Haible  <bruno@clisp.org>
46913
46914         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46915         * lib/poll_.h: Likewise.
46916         * lib/stat_.h: Likewise.
46917         * lib/sys_time_.h: Likewise.
46918         * lib/sysexit_.h: Likewise.
46919         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46920         * lib/stdbool_.h: Likewise.
46921         * lib/byteswap_.h: Add double-inclusion guard.
46922
46923 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46924
46925         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46926
46927 2007-03-30  Karl Berry  <karl@gnu.org>
46928
46929         * config/srclist-update: double space after USA in the license
46930         substitution, since that's how it's usually (?) written.
46931
46932 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46933
46934         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46935         reported by Bruno Haible.
46936
46937 2007-03-29  Bruno Haible  <bruno@clisp.org>
46938
46939         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46940         a bug in AIX iconv().
46941
46942 2007-03-29  Bruno Haible  <bruno@clisp.org>
46943
46944         * modules/ldexpl-tests: New file.
46945         * tests/test-ldexpl.c: New file.
46946
46947 2007-03-29  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/ldexpl.c: Include fpucw.h.
46950         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46951         multiplication.
46952         * modules/ldexpl (Depends-on): Add fpucw.
46953
46954 2007-03-29  Bruno Haible  <bruno@clisp.org>
46955
46956         * modules/ldexpl: New file.
46957         * m4/ldexpl.m4: New file.
46958         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46959         set.
46960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46961         REPLACE_LDEXPL.
46962         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46963         REPLACE_LDEXPL.
46964         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46965         gl_FUNC_LDEXPL_WORKS.
46966         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46967         * modules/mathl (Files): Remove lib/ldexpl.c.
46968         (Depends-on): Add ldexpl.
46969
46970 2007-03-29  Bruno Haible  <bruno@clisp.org>
46971
46972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
46973
46974 2007-03-29  Bruno Haible  <bruno@clisp.org>
46975
46976         * tests/test-striconveh.c (main): Don't assume that a direct conversion
46977         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
46978         and possibly also HP-UX.
46979         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46980         work on AIX, IRIX, HP-UX, OSF/1.
46981         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46982         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46983         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46984         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46985         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
46986         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46987
46988 2007-03-29  Bruno Haible  <bruno@clisp.org>
46989
46990         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
46991
46992 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46993
46994         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
46995         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
46996
46997 2007-03-29  Eric Blake  <ebb9@byu.net>
46998
46999         * lib/acl-internal.h: Remove redundant include.
47000         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
47001         Cygwin when a file is locked.
47002
47003 2007-03-29  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
47006         file.
47007         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
47008
47009 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47010
47011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
47012         try to remove a parent directory if the child couldn't be removed
47013         (except for the first rmdir, which could fail because the child
47014         doesn't exist).  Problem reported by Jeff Blaine in
47015         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
47016
47017 2007-03-28  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/striconveh.c (utf8conv_carefully): New function.
47020         (mem_cd_iconveh_internal): Invoke it.
47021
47022 2007-03-28  Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
47025         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
47026         input.
47027         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
47028         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
47029         unistr/u8-uctomb.
47030
47031 2007-03-28  Bruno Haible  <bruno@clisp.org>
47032
47033         * modules/unistr/u8-mbtoucr: New file.
47034         * lib/unistr/u8-mbtoucr.c: New file.
47035         * modules/unistr/u16-mbtoucr: New file.
47036         * lib/unistr/u16-mbtoucr.c: New file.
47037         * modules/unistr/u16-mbtoucr: New file.
47038         * lib/unistr/u16-mbtoucr.c: New file.
47039         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
47040
47041 2007-03-27  Simon Josefsson  <simon@josefsson.org>
47042             Bruno Haible  <bruno@clisp.org>
47043
47044         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
47045         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
47046         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
47047
47048         * m4/stdio_h.m4: Add stubs for vasprintf too.
47049
47050         * modules/stdio: Support vasprintf in sed command.
47051
47052         * modules/vasprintf: Depend on stdio for prototypes.  Remove
47053         vasprintf.h.  Add stdio module indicator.
47054
47055         * lib/stdio_.h: Declare asprintf and vasprintf, based on
47056         vasprintf.h.
47057
47058         * lib/vasprintf.h: File removed.
47059
47060         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
47061         * lib/vasprintf.c: Ditto.
47062         * lib/xvasprintf.c: Ditto.
47063         * tests/test-vasprintf-posix.c: Ditto.
47064         * tests/test-vasprintf.c: Ditto.
47065
47066 2007-03-27  Bruno Haible  <bruno@clisp.org>
47067
47068         Make vasnprintf multithread-safe.
47069         * lib/vasnprintf.c (decimal_point_char): New function.
47070         (VASNPRINTF): Use it.
47071         Suggested by Simon Josefsson.
47072
47073 2007-03-27  Eric Blake  <ebb9@byu.net>
47074
47075         Support sub-second birthtime on cygwin.
47076         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
47077         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
47078         (get_stat_birthtime): Also work with st_birthtim.
47079
47080 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
47081
47082         * lib/stat-time.h (USE_BIRTHTIME): Remove.
47083         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
47084         (get_stat_birthtime_ns): Do not try to use "spare" fields.
47085         (get_stat_birthtime_ns): Simplify compile-time tests.
47086         (get_stat_birthtime): Change the API to look like
47087         get_stat_mtime etc., except return a negative tv_nsec on error.
47088         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
47089         Don't check for "spare" fields.
47090         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
47091         or for struct stat.st_birthtime, as these tests aren't used.
47092         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
47093
47094 2007-03-27  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/stat-time.h: Include <sys/stat.h>.
47097
47098 2007-03-27  James Youngman  <jay@gnu.org>
47099
47100         * lib/stat-time.h (get_stat_birthtime): New function for
47101           retrieving st_birthtime as provided by UFS2 (hence *BSD).
47102         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
47103           and its variants.
47104         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
47105         * modules/stat-time-test: New file.
47106         * tests/test-stat-time.c: New test, devised by Bruno Haible.
47107
47108 2007-03-26  Bruno Haible  <bruno@clisp.org>
47109
47110         Better support of signalling NaNs.
47111         * lib/atanl.c: Include isnanl.h.
47112         (atanl): Perform test for NaN at the beginning of the function and
47113         through a call to isnanl.
47114         * lib/cosl.c: Include isnanl.h.
47115         (cosl): Perform test for NaN at the beginning of the function and
47116         through a call to isnanl.
47117         * lib/ldexpl.c: Include isnanl.h.
47118         (ldexpl): Perform test for NaN through a call to isnanl.
47119         * lib/logl.c: Include isnanl.h.
47120         (logl): Perform test for NaN at the beginning of the function and
47121         through a call to isnanl.
47122         * lib/sinl.c: Include isnanl.h.
47123         (sinl): Perform test for NaN at the beginning of the function and
47124         through a call to isnanl.
47125         * lib/sqrtl.c: Include isnanl.h.
47126         (sqrtl): Perform test for NaN at the beginning of the function and
47127         through a call to isnanl.
47128         * lib/tanl.c: Include isnanl.h.
47129         (tanl): Perform test for NaN at the beginning of the function and
47130         through a call to isnanl.
47131         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
47132         * modules/mathl (Depends-on): Add isnanl.
47133
47134 2007-03-26  Eric Blake  <ebb9@byu.net>
47135
47136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
47137         regression in logic sense of previous patch.
47138
47139 2007-03-26  Bruno Haible  <bruno@clisp.org>
47140
47141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
47142         unportable shell command "if ! ...".
47143         Reported by Ralf Wildenhues.
47144
47145 2007-03-25  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
47148         <sysexits.h> file, and only add EX_CONFIG.
47149         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
47150         absolute file name and whether it is sufficient. Substitute also
47151         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
47152         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
47153         ABSOLUTE_SYSEXITS_H into sysexits.h.
47154
47155 2007-03-25  Bruno Haible  <bruno@clisp.org>
47156
47157         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
47158         hints is NULL.
47159
47160 2007-03-25  Bruno Haible  <bruno@clisp.org>
47161
47162         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
47163         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
47164
47165 2007-03-25  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/vasnprintf.c: Include langinfo.h.
47168         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
47169         multithread-safe.
47170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
47171         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
47172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
47178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47179         Reported by Simon Josefsson.
47180
47181 2007-03-25  Bruno Haible  <bruno@clisp.org>
47182
47183         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
47184         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
47185         * modules/vasnprintf (Depends-on): Add stdint.
47186
47187 2007-03-25  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/fpieee: New file.
47190         * m4/fpieee.m4: New file.
47191         * modules/isnan-nolibm (Depends-on): Add fpieee.
47192         * modules/isnanl-nolibm (Depends-on): Add fpieee.
47193         * modules/isnanl (Depends-on): Add fpieee.
47194
47195 2007-03-25  Bruno Haible  <bruno@clisp.org>
47196
47197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
47198
47199 2007-03-25  Bruno Haible  <bruno@clisp.org>
47200
47201         Avoid test failures on IRIX 6.5.
47202         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
47203         (main): Use it.
47204         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
47205         macros.
47206         (main): Use them.
47207
47208 2007-03-25  Bruno Haible  <bruno@clisp.org>
47209
47210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
47211         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
47212         exists but doesn't work.
47213         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
47214         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
47215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
47216         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
47217
47218 2007-03-25  Bruno Haible  <bruno@clisp.org>
47219
47220         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
47221         returns inf. Needed on IRIX 6.5.
47222
47223 2007-03-25  Bruno Haible  <bruno@clisp.org>
47224
47225         * tests/test-frexpl.c: Include isnanl-nolibm.h.
47226         (main): Use isnanl instead of x != x idiom.
47227         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
47228
47229         * tests/test-frexp.c: Include isnan.h.
47230         (main): Use isnan instead of x != x idiom.
47231         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
47232
47233 2007-03-25  Bruno Haible  <bruno@clisp.org>
47234
47235         * tests/test-frexp.c (NaN): New function/macro.
47236         (main): Use it instead of 0.0 / 0.0.
47237         * tests/test-isnan.c (NaN): New function/macro.
47238         (main): Use it instead of 0.0 / 0.0.
47239         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
47240         (test_function): Use it instead of 0.0 / 0.0.
47241         * tests/test-vasprintf-posix.c (NaN): New function/macro.
47242         (test_function): Use it instead of 0.0 / 0.0.
47243         * tests/test-snprintf-posix.h (NaN): New function/macro.
47244         (test_function): Use it instead of 0.0 / 0.0.
47245         * tests/test-sprintf-posix.h (NaN): New function/macro.
47246         (test_function): Use it instead of 0.0 / 0.0.
47247         * tests/test-fprintf-posix.h (NaN): New function/macro.
47248         (test_function): Use it instead of 0.0 / 0.0.
47249         * tests/test-printf-posix.h (NaN): New function/macro.
47250         (test_function): Use it instead of 0.0 / 0.0.
47251
47252         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
47253
47254 2007-03-25  Bruno Haible  <bruno@clisp.org>
47255
47256         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
47257
47258 2007-03-25  Bruno Haible  <bruno@clisp.org>
47259
47260         * lib/regexec.c (merge_state_with_log): Make static.
47261
47262 2007-03-25  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/trigl.c (kernel_rem_pio2): Make static.
47265
47266 2007-03-25  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/sincosl.c (sincosl_table): Make static.
47269
47270 2007-03-25  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
47273         if the compiler does not support C99.
47274
47275 2007-03-25  Bruno Haible  <bruno@clisp.org>
47276
47277         * modules/time (Makefile.am): Ensure all rule action lines start with a
47278         tab.
47279
47280 2007-03-24  Bruno Haible  <bruno@clisp.org>
47281
47282         * modules/tsearch-tests: New file.
47283         * tests/test-tsearch.sh: New file.
47284         * tests/test-tsearch.c: New file, mostly copied from glibc.
47285
47286         * modules/search-tests: New file.
47287         * tests/test-search.c: New file.
47288
47289         * modules/search: New file.
47290         * lib/search_.h: New file, incorporating lib/tsearch.h.
47291         * m4/search_h.m4: New file.
47292         * lib/tsearch.h: Remove file.
47293         * lib/tsearch.c: Include search.h instead of tsearch.h.
47294         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
47295         HAVE_TSEARCH.
47296         * modules/tsearch (Files): Remove lib/tsearch.h.
47297         (Depends-on): Add search.
47298         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
47299         (Include): Change tsearch.h into search.h.
47300
47301 2007-03-24  Bruno Haible  <bruno@clisp.org>
47302
47303         * modules/fpucw: New file.
47304         * lib/fpucw.h: New file.
47305         * lib/frexp.c: Include fpucw.h.
47306         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47307         (FUNC): Use them.
47308         * lib/printf-frexp.c: Include fpucw.h.
47309         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47310         (FUNC): Use them.
47311         * lib/vasnprintf.c: Include fpucw.h.
47312         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
47313         'long double' calculations.
47314         * tests/test-frexpl.c: Include fpucw.h.
47315         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47316         * tests/test-printf-frexpl.c: Include fpucw.h.
47317         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47318         * modules/frexpl (Depends-on): Add fpucw.
47319         * modules/printf-frexpl (Depends-on): Likewise.
47320         * modules/fprintf-posix (Depends-on): Likewise.
47321         * modules/snprintf-posix (Depends-on): Likewise.
47322         * modules/sprintf-posix (Depends-on): Likewise.
47323         * modules/vasnprintf-posix (Depends-on): Likewise.
47324         * modules/vasprintf-posix (Depends-on): Likewise.
47325         * modules/vfprintf-posix (Depends-on): Likewise.
47326         * modules/vsnprintf-posix (Depends-on): Likewise.
47327         * modules/vsprintf-posix (Depends-on): Likewise.
47328         * modules/frexpl-tests (Depends-on): Likewise.
47329         * modules/printf-frexpl-tests (Depends-on): Likewise.
47330
47331 2007-03-24  Bruno Haible  <bruno@clisp.org>
47332
47333         * lib/float+.h: New file.
47334         * lib/isnan.c: Include float+.h.
47335         (SIZE): New macro.
47336         (FUNC): Compare only SIZE bytes of the value.
47337         * lib/vasnprintf.c: Include float+.h.
47338         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
47339         SIZEOF_LDBL or SIZEOF_DBL bytes.
47340         * modules/isnan-nolibm (Files): Add lib/float+.h.
47341         * modules/isnanl-nolibm (Files): Add lib/float+.h.
47342         * modules/isnanl (Files): Add lib/float+.h.
47343         * modules/vasnprintf (Files): Add lib/float+.h.
47344
47345 2007-03-24  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
47348         include isnanl-nolibm.h.
47349
47350 2007-03-24  Bruno Haible  <bruno@clisp.org>
47351
47352         * tests/test-read-file.c (main): Don't produce spurious output for
47353         expected situations. Make the test fail if it encountered unexpected
47354         results.
47355
47356 2007-03-24  Bruno Haible  <bruno@clisp.org>
47357
47358         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
47359         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
47360
47361 2007-03-24  Bruno Haible  <bruno@clisp.org>
47362
47363         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
47364
47365 2007-03-24  Bruno Haible  <bruno@clisp.org>
47366
47367         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
47368         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
47369
47370         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
47371         * modules/utf8-ucs4: Turn into a symbolic link to module
47372         unistr/u8-mbtouc.
47373
47374         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
47375         utf8-ucs4-unsafe.
47376         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
47377         unistr/u8-mbtouc-unsafe.
47378
47379         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
47380         * modules/utf16-ucs4: Turn into a symbolic link to module
47381         unistr/u16-mbtouc.
47382
47383         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
47384         utf16-ucs4-unsafe.
47385         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
47386         unistr/u16-mbtouc-unsafe.
47387
47388         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
47389         * modules/ucs4-utf8: Turn into a symbolic link to module
47390         unistr/u8-ubtomb.
47391
47392         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
47393         * modules/ucs4-utf16: Turn into a symbolic link to module
47394         unistr/u16-ubtomb.
47395
47396 2007-03-24  Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
47399         Enable the function only if HAVE_INLINE.
47400         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
47401         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47402         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
47403         Enable the function only if HAVE_INLINE.
47404         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
47405         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47406         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
47407         Enable the function only if HAVE_INLINE.
47408         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
47409         Enable the function only if HAVE_INLINE.
47410         * modules/utf8-ucs4: Update.
47411         * modules/utf8-ucs4-unsafe: Update.
47412         * modules/utf16-ucs4: Update.
47413         * modules/utf16-ucs4-unsafe: Update.
47414         * modules/ucs4-utf8: Update.
47415         * modules/ucs4-utf16: Update.
47416
47417 2007-03-24  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/utf8-ucs4.h: Remove file.
47420         * lib/utf8-ucs4-unsafe.h: Remove file.
47421         * lib/utf16-ucs4.h: Remove file.
47422         * lib/utf16-ucs4-unsafe.h: Remove file.
47423         * lib/ucs4-utf8.h: Remove file.
47424         * lib/ucs4-utf16.h: Remove file.
47425         * lib/unistr.h: Include their previous contents.
47426         * m4/utf-ucs4.m4: Remove file.
47427         * m4/ucs4-utf.m4: Remove file.
47428         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
47429         (Depends-on): Add unistr/base.
47430         (configure.ac): Remove gl_UTF_UCS4.
47431         (Makefile.am): Update.
47432         (Include): Change to unistr.h.
47433         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
47434         (Depends-on): Add unistr/base.
47435         (configure.ac): Remove gl_UTF_UCS4.
47436         (Makefile.am): Update.
47437         (Include): Change to unistr.h.
47438         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
47439         (Depends-on): Add unistr/base.
47440         (configure.ac): Remove gl_UTF_UCS4.
47441         (Makefile.am): Update.
47442         (Include): Change to unistr.h.
47443         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
47444         (Depends-on): Add unistr/base.
47445         (configure.ac): Remove gl_UTF_UCS4.
47446         (Makefile.am): Update.
47447         (Include): Change to unistr.h.
47448         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
47449         (Depends-on): Add unistr/base.
47450         (configure.ac): Remove gl_UCS4_UTF.
47451         (Makefile.am): Update.
47452         (Include): Change to unistr.h.
47453         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
47454         (Depends-on): Add unistr/base.
47455         (configure.ac): Remove gl_UCS4_UTF.
47456         (Makefile.am): Update.
47457         (Include): Change to unistr.h.
47458         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
47459         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
47460         utf8-ucs4-unsafe.h.
47461         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
47462         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
47463         utf16-ucs4-unsafe.h.
47464         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
47465         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
47466         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
47467         * lib/unistr/u8-strchr.c: Likewise.
47468         * lib/unistr/u8-strrchr.c: Likewise.
47469         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
47470         * lib/unistr/u16-strchr.c: Likewise.
47471         * lib/unistr/u16-strrchr.c: Likewise.
47472         * lib/striconveh.c: Update.
47473         * lib/linebreak.c: Update.
47474
47475 2007-03-24  Bruno Haible  <bruno@clisp.org>
47476
47477         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
47478         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
47479
47480 2007-03-22  Bruno Haible  <bruno@clisp.org>
47481
47482         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
47483
47484 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
47485
47486         * MODULES.html.sh (File system functions): New module write-any-file.
47487         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
47488         * m4/write-any-file.m4: New files.
47489
47490 2007-03-23  Eric Blake  <ebb9@byu.net>
47491
47492         * gnulib-tool: Rearrange space-tab sequences, since some editors
47493         like to eat them.
47494
47495 2007-03-23  Eric Blake  <ebb9@byu.net>
47496
47497         * lib/version-etc.c (version_etc_va): Update license wording to
47498         be more concise.  Recommended by Richard Stallman.
47499
47500 2007-03-22  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/poll.c (MSG_PEEK): New fallback definition.
47503
47504 2007-03-22  Bruno Haible  <bruno@clisp.org>
47505
47506         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
47507         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
47508         (main): Update.
47509         Fixes a compilation error on BeOS.
47510
47511 2007-03-22  Bruno Haible  <bruno@clisp.org>
47512
47513         * modules/frexpl-tests: New file.
47514         * tests/test-frexpl.c: New file.
47515
47516         * modules/frexpl: New file.
47517         * m4/frexpl.m4: New file.
47518         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
47519         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
47520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
47521         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
47522         (Depends-on): Add frexpl. Remove isnanl-nolibm.
47523         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
47524
47525 2007-03-22  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/frexpl.c: Share code with lib/frexp.c.
47528         * modules/mathl (Files): Add lib/frexp.c.
47529         (Depends-on): Add isnanl-nolibm.
47530
47531 2007-03-22  Bruno Haible  <bruno@clisp.org>
47532
47533         * modules/printf-frexp (Files): Add m4/frexp.m4.
47534         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
47535         only if the found frexp function actually works.
47536
47537 2007-03-22  Bruno Haible  <bruno@clisp.org>
47538
47539         * lib/frexp.c: Remove older implementation that uses divisions.
47540
47541 2007-03-21  Bruno Haible  <bruno@clisp.org>
47542
47543         * modules/frexp-tests: New file.
47544         * tests/test-frexp.c: New file.
47545
47546         * modules/frexp: New file.
47547         * lib/frexp.c: New file.
47548         * m4/frexp.m4: New file.
47549         * lib/math_.h (frexp): New declaration.
47550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
47551         REPLACE_FREXP.
47552         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
47553
47554 2007-03-21  Bruno Haible  <bruno@clisp.org>
47555
47556         * modules/isnanl-tests: New file.
47557         * tests/test-isnanl.c: New file.
47558
47559         * modules/isnanl: New file.
47560         * lib/isnanl.h: New file.
47561         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
47562         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
47563         gl_FUNC_ISNANL_WORKS.
47564         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
47565         New macros.
47566
47567 2007-03-21  Bruno Haible  <bruno@clisp.org>
47568
47569         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
47570         lib/isnanl.h.
47571         (Include): Update.
47572         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
47573         * lib/vasnprintf.c: Update.
47574         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
47575         tests/test-isnanl.h, remove tests/test-isnanl.c.
47576         (Makefile.am): Update.
47577         * tests/test-isnanl-nolibm.c: New file.
47578         * tests/test-isnanl.h: New file.
47579         * tests/test-isnanl.c: Remove file.
47580
47581 2007-03-21  Jim Meyering  <jim@meyering.net>
47582
47583         When trying to open ".", treat ESTALE like EACCES.
47584         * lib/savewd.c (savewd_save): Resort to forking not just upon
47585         failure with EACCES, but also when errno is ESTALE.
47586
47587 2007-03-20  Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
47590         Needed on AIX 5.1. Reported by Matthew Woehlke.
47591
47592 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47593
47594         Suggestions by Bruno Haible:
47595         * lib/acl-internal.h: Include "gettext.h" rather than rolling
47596         our own.
47597         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
47598         * modules/acl (Depends-on): Add gettext.
47599
47600 2007-03-19  Bruno Haible  <bruno@clisp.org>
47601
47602         * modules/iconvme: Remove file.
47603         * lib/iconvme.h: Remove file.
47604         * lib/iconvme.c: Remove file.
47605         * m4/iconvme.m4: Remove file.
47606
47607 2007-03-19  Bruno Haible  <bruno@clisp.org>
47608
47609         * doc/relocatable-maint.texi: Break long shell script line.
47610         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47611
47612 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47613
47614         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
47615         handle file_has_acl.
47616         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
47617         * lib/acl.c: Move header inclusions and related macro defns into
47618         lib/acl-internal.h.
47619         (S_ISLNK): Remove defn, since that's now done for us.
47620         (file_has_acl): Move to lib/file-has-acl.c.
47621         Call acl_trivial if available.  This is the crucial part of the fix.
47622         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
47623         shared within the library.  Rewrite a bit, partly to make it compatible
47624         with the GNU coding style.
47625         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
47626         Remove unnecessary double-quotes.
47627         Don't test for acl_to_text; the build will catch that.
47628         Replace acl_entries if it doesn't exist and it is needed.
47629         Check for -lsec and acl_trivial (as used on Solaris 10).
47630         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
47631         lib/file-has-acl.c.
47632         (Depends-on): Add sys_stat, for S_ISLNK.
47633
47634 2007-03-19  Ben Pfaff  <blp@gnu.org>
47635
47636         * doc/gnulib.texi: Fix typos.
47637         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47638
47639 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47640
47641         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
47642         If size is zero here, buf must be zero.
47643
47644 2007-03-19  Simon Josefsson  <simon@josefsson.org>
47645
47646         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
47647         <bruno@clisp.org>.
47648
47649 2007-03-18  Bruno Haible  <bruno@clisp.org>
47650
47651         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
47652         Suggested by Eric Blake.
47653
47654 2007-03-18  Ben Pfaff  <blp@gnu.org>
47655
47656         * doc/relocatable.texi: Recommend using as prefix a directory
47657         that does not exist and will never be created.  Based on
47658         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
47659         and others.
47660
47661 2007-03-17  Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/fchownat.c: Include lchown.h.
47664
47665 2007-03-17  Bruno Haible  <bruno@clisp.org>
47666
47667         Fix endless loop when the given allocated size was > INT_MAX.
47668         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
47669         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
47670         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
47671         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
47672         * lib/sprintf.c (sprintf): Likewise.
47673
47674 2007-03-17  Bruno Haible  <bruno@clisp.org>
47675
47676         * tests/test-argp-2.sh (func_compare): Output a context diff.
47677
47678 2007-03-17  Bruno Haible  <bruno@clisp.org>
47679
47680         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
47681         locale's decimal-point character.
47682
47683 2007-03-17  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
47686         before comparing it. Needed because on some platforms (e.g. x86) a
47687         'long double' occupies less bytes than sizeof (long double).
47688
47689 2007-03-17  Bruno Haible  <bruno@clisp.org>
47690
47691         * tests/test-crc.c (main): Make printf statements 64-bit clean.
47692         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
47693         * tests/test-getaddrinfo.c (simple): Likewise.
47694         * tests/test-read-file.c (main): Likewise.
47695
47696 2007-03-17  Bruno Haible  <bruno@clisp.org>
47697
47698         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
47699
47700 2007-03-17  Bruno Haible  <bruno@clisp.org>
47701
47702         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
47703         unused variable.
47704
47705 2007-03-17  Bruno Haible  <bruno@clisp.org>
47706
47707         * tests/test-c-strcasecmp.c: Include c-strcase.h.
47708         * tests/test-c-strncasecmp.c: Likewise.
47709
47710 2007-03-17  Bruno Haible  <bruno@clisp.org>
47711
47712         * modules/stdlib (Depends-on): Add unistd.
47713         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47714         Needed for MacOS X 10.3.
47715
47716 2007-03-17  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47719
47720 2007-03-17  Bruno Haible  <bruno@clisp.org>
47721
47722         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47723
47724 2007-03-17  Bruno Haible  <bruno@clisp.org>
47725
47726         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47727         to reflect files copied from gnulib (with or without modifications).
47728         Suggested by Jim Meyering.
47729
47730 2007-03-17  Eric Blake  <ebb9@byu.net>
47731
47732         * NEWS: Document stdlib change from 2007-02-18.
47733
47734 2007-03-17  Jim Meyering  <jim@meyering.net>
47735
47736         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47737         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47738         someone uses a name containing shell meta-characters.
47739         Reported by Alfred M. Szmidt.
47740
47741         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47742
47743 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47744
47745         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47746         and copy gettext configuration files only if configure.ac contains
47747         a use of AM_GNU_GETTEXT_VERSION.
47748
47749 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47750
47751         * build-aux/bootstrap (gnulib_name): New variable.
47752         (gnulib_tool_options): Use it.
47753
47754 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47755
47756         * tests/test-des.c: Use new namespace.
47757
47758 2007-03-15  Bruno Haible  <bruno@clisp.org>
47759
47760         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47761         Reported by James Youngman <jay@gnu.org>.
47762
47763 2007-03-15  Bruno Haible  <bruno@clisp.org>
47764
47765         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47766         declared prototype. Needed with cc on OSF/1 5.1.
47767
47768 2007-03-15  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47771         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47772         (struct gl_list_implementation): Add dispose_fn argument to the
47773         'create_empty', 'create' methods.
47774         (struct gl_list_impl_base): Add field 'dispose_fn'.
47775         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47776         argument.
47777         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47778         dispose_fn argument.
47779         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47780         dispose_fn on the dropped values.
47781         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47782         dispose_fn argument.
47783         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47784         dropped values.
47785         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47786         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47787         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47788         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47789         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47790         argument.
47791         (gl_tree_list_free): Call dispose_fn on the dropped values.
47792         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47793         the dropped values.
47794         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47795         Add dispose_fn argument.
47796         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47797         Call dispose_fn on the dropped values.
47798         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47799         Add dispose_fn argument.
47800         (gl_sublist_create): Initialize the 'dispose_fn' field.
47801         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47802         * tests/test-array_list.c (main): Update.
47803         * tests/test-carray_list.c (main): Update.
47804         * tests/test-avltree_list.c (main): Update.
47805         * tests/test-rbtree_list.c (main): Update.
47806         * tests/test-avltreehash_list.c (main): Update.
47807         * tests/test-rbtreehash_list.c (main): Update.
47808         * tests/test-linked_list.c (main): Update.
47809         * tests/test-linkedhash_list.c (main): Update.
47810         * tests/test-array_oset.c (main): Update.
47811
47812 2007-03-15  Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47815         (gl_oset_create_empty): Add dispose_fn argument.
47816         (struct gl_oset_implementation): Add dispose_fn argument to
47817         'create_empty' method.
47818         (struct gl_oset_impl_base): Add dispose_fn field.
47819         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47820         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47821         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47822         values.
47823         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47824         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47825         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47826         dropped value.
47827         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47828         dropped value.
47829         * tests/test-array_oset.c (main): Update.
47830         * tests/test-avltree_oset.c (main): Update.
47831         * tests/test-rbtree_oset.c (main): Update.
47832         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47833
47834 2007-03-13  Bruno Haible  <bruno@clisp.org>
47835
47836         * tests/test-stdbool.c (i): Update after last patch.
47837
47838 2007-03-12  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47841         the iswprint macro. Needed on Solaris 2.5.1.
47842
47843 2007-03-12  Bruno Haible  <bruno@clisp.org>
47844
47845         * tests/test-printf-frexp.c (main): Declare x as volatile.
47846
47847 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47848
47849         * doc/gnulib.texi (Build robot for gnulib): New section.
47850
47851 2007-03-12  Jim Meyering  <jim@meyering.net>
47852
47853         * build-aux/bootstrap: New file.
47854         * build-aux/bootstrap.conf: New file, from coreutils.
47855
47856 2007-03-11  Bruno Haible  <bruno@clisp.org>
47857
47858         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47859
47860 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47861
47862         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47863         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47864         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47865
47866 2007-03-11  Bruno Haible  <bruno@clisp.org>
47867
47868         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47869         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47870
47871 2007-03-11  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47874         formula. Needed for SunPRO C 5.0.
47875
47876 2007-03-11  Bruno Haible  <bruno@clisp.org>
47877
47878         * modules/long-options (Depends-on): Add getopt.
47879
47880 2007-03-11  Bruno Haible  <bruno@clisp.org>
47881
47882         * modules/modechange (Depends-on): Add stdbool.
47883
47884 2007-03-11  Bruno Haible  <bruno@clisp.org>
47885
47886         * modules/i-ring (Depends-on): Add stdbool.
47887
47888 2007-03-11  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/gc-des (Depends-on): Add stdbool.
47891
47892 2007-03-11  Bruno Haible  <bruno@clisp.org>
47893
47894         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47895
47896 2007-03-11  Bruno Haible  <bruno@clisp.org>
47897
47898         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47899
47900 2007-03-11  Bruno Haible  <bruno@clisp.org>
47901
47902         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47903
47904 2007-03-11  Bruno Haible  <bruno@clisp.org>
47905
47906         * lib/vasnprintf.c (sprintf): Undefine.
47907
47908 2007-03-11  Bruno Haible  <bruno@clisp.org>
47909
47910         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47911         initializers in SunPRO C and Compaq C compilers.
47912
47913 2007-03-11  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47916         decrementing code ANSI C compliant.
47917
47918 2007-03-11  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47921         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47922
47923 2007-03-11  Bruno Haible  <bruno@clisp.org>
47924
47925         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47926         <stdbool.h> substitute doesn't pass.
47927
47928 2007-03-11  Bruno Haible  <bruno@clisp.org>
47929
47930         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47931
47932 2007-03-11  Bruno Haible  <bruno@clisp.org>
47933
47934         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47935         script, for submission to autobuild.josefsson.org.
47936
47937 2007-03-10  Bruno Haible  <bruno@clisp.org>
47938
47939         * modules/canonicalize-lgpl-tests: New file.
47940         * tests/test-canonicalize-lgpl.sh: New file.
47941         * tests/test-canonicalize-lgpl.c: New file.
47942
47943         * modules/c-strcase-tests: New file.
47944         * tests/test-c-strcase.sh: New file.
47945         * tests/test-c-strcasecmp.c: New file.
47946         * tests/test-c-strncasecmp.c: New file.
47947
47948         * modules/atexit-tests: New file.
47949         * tests/test-atexit.sh: New file.
47950         * tests/test-atexit.c: New file.
47951
47952 2007-03-10  Bruno Haible  <bruno@clisp.org>
47953
47954         * tests/test-binary-io.sh: Use temporary filenames that are not so
47955         likely to clash with those of other tests (in a parallel make).
47956         * tests/test-binary-io.c: Likewise.
47957
47958 2007-03-10  Bruno Haible  <bruno@clisp.org>
47959
47960         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47961         fallback; use #error instead.
47962         Suggested by Simon Josefsson.
47963
47964 2007-03-10  Bruno Haible  <bruno@clisp.org>
47965
47966         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47967         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
47968         first and the last.
47969
47970 2007-03-10  Bruno Haible  <bruno@clisp.org>
47971
47972         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
47973
47974 2007-03-10  Bruno Haible  <bruno@clisp.org>
47975
47976         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
47977         "make distcheck".
47978         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
47979         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
47980         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
47981
47982 2007-03-10  Bruno Haible  <bruno@clisp.org>
47983
47984         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
47985         variable.
47986         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
47987         variable.
47988
47989 2007-03-09  Eric Blake  <ebb9@byu.net>
47990         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
47991
47992         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
47993         types are not being provided by gnulib.
47994         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
47995         types are supported.
47996
47997 2007-03-10  Bruno Haible  <bruno@clisp.org>
47998
47999         * lib/stdio_.h (__attribute__): New macro.
48000         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
48001         vsprintf): Specify __attribute__ __format__ for GCC.
48002         Suggested by Eric Blake.
48003
48004 2007-03-09  Bruno Haible  <bruno@clisp.org>
48005
48006         * modules/printf-posix-tests: New file.
48007         * tests/test-printf-posix.sh: New file.
48008         * tests/test-printf-posix.c: New file.
48009
48010         * modules/printf-posix: New file.
48011         * lib/printf.c: New file.
48012         * m4/printf-posix-rpl.m4: New file.
48013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
48014         REPLACE_PRINTF.
48015         * lib/stdio_.h (printf): New declaration.
48016         (format, __format__, ____printf____, ____scanf____, ____strftime____,
48017         ____strfmon____): New macros.
48018         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
48019         REPLACE_PRINTF.
48020
48021 2007-03-09  Bruno Haible  <bruno@clisp.org>
48022
48023         * tests/test-vasnprintf-posix2.sh: New file.
48024         * tests/test-vasnprintf-posix2.c: New file.
48025         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
48026         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48027         (Makefile.am): Activate test-vasnprintf-posix2.sh.
48028
48029         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
48030         a locale dependent decimal point, rather than always '.'.
48031
48032 2007-03-09  Eric Blake  <ebb9@byu.net>
48033
48034         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
48035         spite of platforms like Tandem/NSK that define it to -1.
48036
48037 2007-03-08  Bruno Haible  <bruno@clisp.org>
48038
48039         * modules/vprintf-posix-tests: New file.
48040         * tests/test-vprintf-posix.sh: New file.
48041         * tests/test-vprintf-posix.c: New file.
48042         * tests/test-printf-posix.h: New file.
48043
48044         * modules/vprintf-posix: New file.
48045         * lib/vprintf.c: New file.
48046         * m4/vprintf-posix.m4: New file.
48047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
48048         REPLACE_VPRINTF.
48049         * lib/stdio_.h (vprintf): New declaration.
48050         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
48051         REPLACE_VPRINTF.
48052
48053 2007-03-08  Bruno Haible  <bruno@clisp.org>
48054
48055         * modules/fprintf-posix-tests: New file.
48056         * tests/test-fprintf-posix.sh: New file.
48057         * tests/test-fprintf-posix.c: New file.
48058
48059         * modules/fprintf-posix: New file.
48060         * lib/fprintf.c: New file.
48061         * m4/fprintf-posix.m4: New file.
48062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
48063         REPLACE_FPRINTF.
48064         * lib/stdio_.h (fprintf): New declaration.
48065         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
48066         REPLACE_FPRINTF.
48067
48068 2007-03-08  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/vfprintf-posix-tests: New file.
48071         * tests/test-vfprintf-posix.sh: New file.
48072         * tests/test-vfprintf-posix.c: New file.
48073         * tests/test-fprintf-posix.h: New file.
48074         * tests/test-fprintf-posix.out: New file.
48075
48076         * modules/vfprintf-posix: New file.
48077         * lib/vfprintf.c: New file.
48078         * m4/vfprintf-posix.m4: New file.
48079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
48080         REPLACE_VFPRINTF.
48081         * lib/stdio_.h (vfprintf): New declaration.
48082         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
48083         REPLACE_VFPRINTF.
48084
48085 2007-03-08  Bruno Haible  <bruno@clisp.org>
48086
48087         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
48088
48089 2007-03-08  Bruno Haible  <bruno@clisp.org>
48090
48091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
48092         instead of 'expr' invocations.
48093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48096         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48097         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48098         Suggested by Paul Eggert.
48099
48100 2007-03-08  Bruno Haible  <bruno@clisp.org>
48101
48102         * modules/fseterr-tests: New file.
48103         * tests/test-fseterr.c: New file.
48104
48105         * modules/fseterr: New file.
48106         * lib/fseterr.h: New file.
48107         * lib/fseterr.c: New file.
48108
48109 2007-03-08  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
48112         * lib/getopt_.h: Likewise.
48113         * lib/mbswidth.h: Likewise.
48114         * lib/setenv.h: Likewise.
48115         * lib/vasnprintf.h: Likewise.
48116         * lib/vasprintf.h: Likewise.
48117         * lib/verror.h: Likewise.
48118         * lib/xsetenv.h: Likewise.
48119         * lib/xvasprintf.h: Likewise.
48120
48121 2007-03-08  Jim Meyering  <jim@meyering.net>
48122
48123         * users.txt: Add parted.
48124
48125         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
48126
48127 2007-03-07  Bruno Haible  <bruno@clisp.org>
48128
48129         * m4/printf.m4: Make the shell script snippets copy&pastable.
48130
48131 2007-03-02  Bruno Haible  <bruno@clisp.org>
48132
48133         * lib/netinet_in_.h: New file.
48134         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
48135         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
48136         * modules/netinet_in (Files): Add lib/netinet_in_.h.
48137         (Depends-on): Add absolute-header.
48138         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
48139         into netinet/in.h.
48140
48141 2007-03-03  Bruno Haible  <bruno@clisp.org>
48142
48143         * lib/sys_select_.h: New file.
48144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
48145         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
48146         * modules/sys_select (Files): Add lib/sys_select_.h.
48147         (Depends-on): Add absolute-header.
48148         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
48149         into sys/select.h.
48150
48151 2007-03-02  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
48154         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
48155         values.
48156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
48157         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
48158         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
48159         * modules/sys_socket (Depends-on): Add absolute-header.
48160         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
48161         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
48162         (Include): Remove requirement of inclusion of <sys/types.h>.
48163
48164 2007-03-02  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/byteswap_.h (bswap_32): Fix formula.
48167
48168 2007-03-06  Bruno Haible  <bruno@clisp.org>
48169
48170         * modules/sprintf-posix-tests: New file.
48171         * tests/test-sprintf-posix.c: New file.
48172
48173         * modules/sprintf-posix: New file.
48174         * lib/sprintf.c: New file.
48175         * m4/sprintf-posix.m4: New file.
48176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
48177         REPLACE_SPRINTF.
48178         * lib/stdio_.h (sprintf): New declaration.
48179         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
48180         REPLACE_SPRINTF.
48181
48182 2007-03-06  Bruno Haible  <bruno@clisp.org>
48183
48184         * modules/vsprintf-posix-tests: New file.
48185         * tests/test-vsprintf-posix.c: New file.
48186         * tests/test-sprintf-posix.h: New file.
48187
48188         * modules/vsprintf-posix: New file.
48189         * lib/vsprintf.c: New file.
48190         * m4/vsprintf-posix.m4: New file.
48191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
48192         REPLACE_VSPRINTF.
48193         * lib/stdio_.h (vsprintf): New declaration.
48194         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
48195         REPLACE_VSPRINTF.
48196
48197 2007-03-06  Bruno Haible  <bruno@clisp.org>
48198
48199         * modules/vsnprintf (Depend-on): Remove minmax.
48200
48201 2007-03-06  Bruno Haible  <bruno@clisp.org>
48202
48203         * modules/snprintf-posix-tests: New file.
48204         * tests/test-snprintf-posix.c: New file.
48205
48206         * modules/snprintf-posix: New file.
48207         * m4/snprintf-posix.m4: New file.
48208         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
48209         gl_FUNC_SNPRINTF.
48210         (gl_FUNC_SNPRINTF): Invoke it.
48211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
48212         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
48213         is set.
48214         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
48215
48216 2007-03-06  Bruno Haible  <bruno@clisp.org>
48217
48218         * modules/vsnprintf-posix-tests: New file.
48219         * tests/test-vsnprintf-posix.c: New file.
48220         * tests/test-snprintf-posix.h: New file.
48221
48222         * modules/vsnprintf-posix: New file.
48223         * m4/vsnprintf-posix.m4: New file.
48224         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
48225         gl_FUNC_VSNPRINTF.
48226         (gl_FUNC_VSNPRINTF): Invoke it.
48227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
48228         * lib/stdio_.h (vsnprintf): Define as a replacement if
48229         REPLACE_VSNPRINTF is set.
48230         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
48231
48232 2007-03-06  Bruno Haible  <bruno@clisp.org>
48233
48234         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
48235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
48236
48237 2007-03-06  Bruno Haible  <bruno@clisp.org>
48238
48239         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
48240         (asinl): Declare also if HAVE_DECL_ASINL is set.
48241         (atanl): Declare also if HAVE_DECL_ATANL is set.
48242         (ceill): Declare also if HAVE_DECL_CEILL is set.
48243         (cosl): Declare also if HAVE_DECL_COSL is set.
48244         (expl): Declare also if HAVE_DECL_EXPL is set.
48245         (floorl): Declare also if HAVE_DECL_FLOORL is set.
48246         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
48247         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
48248         (logl): Declare also if HAVE_DECL_LOGL is set.
48249         (sinl): Declare also if HAVE_DECL_SINL is set.
48250         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
48251         (tanl): Declare also if HAVE_DECL_TANL is set.
48252         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
48253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
48254         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
48255         declaration of frexpl, ldexpl.
48256         * modules/printf-frexpl (Depends-on): Add math.
48257         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
48258
48259 2007-03-05  Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
48262         frexpl and ldexpl are declared.
48263         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
48264
48265 2007-03-05  Bruno Haible  <bruno@clisp.org>
48266
48267         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
48268         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
48269
48270 2007-03-05  Bruno Haible  <bruno@clisp.org>
48271
48272         * lib/stdio_.h: Include <stddef.h>.
48273
48274 2007-03-05  Bruno Haible  <bruno@clisp.org>
48275
48276         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
48277
48278 2007-03-05  Bruno Haible  <bruno@clisp.org>
48279
48280         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
48281         NetBSD 4, from Ralf Wildenhues.
48282
48283 2007-03-04  Bruno Haible  <bruno@clisp.org>
48284
48285         * lib/vasprintf.h: Update #if logic for the case when the functions
48286         exist but are overridden.
48287
48288 2007-03-04  Bruno Haible  <bruno@clisp.org>
48289
48290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
48291         implementations: glibc-2.4 and MacOS X 10.3.
48292         * tests/test-vasnprintf-posix.c (test_function): Test also the case
48293         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
48294         * tests/test-vasprintf-posix.c (test_function): Likewise.
48295
48296 2007-03-04  Bruno Haible  <bruno@clisp.org>
48297
48298         * modules/vasprintf-posix-tests: New file.
48299         * tests/test-vasprintf-posix.c: New file.
48300
48301         * modules/vasprintf-posix: New file.
48302         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
48303         defined.
48304         * m4/vasprintf-posix.m4: New file.
48305         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
48306         gl_FUNC_VASPRINTF.
48307         (gl_FUNC_VASPRINTF): Invoke it.
48308         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
48309         here.
48310         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
48311
48312 2007-03-04  Bruno Haible  <bruno@clisp.org>
48313
48314         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
48315         REPLACE_GETTIMEOFDAY.
48316         * modules/sys_time (Makefile.am): Likewise.
48317         * m4/sys_time_h.m4: Likewise.
48318         * m4/gettimeofday.m4: Likewise.
48319
48320 2007-03-04  Bruno Haible  <bruno@clisp.org>
48321
48322         * modules/vasnprintf-posix-tests: New file.
48323         * tests/test-vasnprintf-posix.c: New file.
48324
48325         * modules/vasnprintf-posix: New file.
48326         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
48327         printf-frexpl.h.
48328         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
48329         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
48330         REPLACE_VASNPRINTF is defined.
48331         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
48332         gl_FUNC_VASNPRINTF.
48333         (gl_FUNC_VASNPRINTF): Invoke it.
48334         * m4/vasnprintf-posix.m4: New file.
48335         * m4/printf.m4: New file.
48336
48337 2007-03-04  Bruno Haible  <bruno@clisp.org>
48338
48339         Compile progreloc.c only if --enable-relocatable is specified.
48340         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
48341         if --enable-relocatable was specified.
48342         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
48343         lib_SOURCES.
48344
48345 2007-03-04  Jim Meyering  <jim@meyering.net>
48346
48347         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
48348         Use it consistently, rather than enumerating errno constants.
48349
48350 2007-03-04  Bruno Haible  <bruno@clisp.org>
48351
48352         * modules/xvasprintf-tests: New file.
48353         * tests/test-xvasprintf.c: New file.
48354
48355         * modules/vasprintf-tests: New file.
48356         * tests/test-vasprintf.c: New file.
48357
48358         * modules/vasnprintf-tests: New file.
48359         * tests/test-vasnprintf.c: New file.
48360
48361         * modules/vsnprintf-tests: New file.
48362         * tests/test-vsnprintf.c: New file.
48363
48364         * modules/snprintf-tests: New file.
48365         * tests/test-snprintf.c: New file.
48366
48367 2007-03-04  Bruno Haible  <bruno@clisp.org>
48368
48369         Compile relocatable.c only if --enable-relocatable is specified.
48370         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
48371         gl_RELOCATABLE_LIBRARY.
48372         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
48373         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
48374         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
48375         gl_RELOCATABLE_LIBRARY.
48376         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
48377         (Makefile.am): Remove lib_SOURCES.
48378         * modules/relocatable-lib-lgpl (configure.ac): Invoke
48379         gl_RELOCATABLE_LIBRARY.
48380         (Makefile.am): Remove lib_SOURCES.
48381         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
48382         always.
48383         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48384         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
48385
48386 2007-03-04  Bruno Haible  <bruno@clisp.org>
48387
48388         * modules/argmatch-tests: New file.
48389         * tests/test-argmatch.c: New file.
48390
48391         * tests/test-allocsa.c (main): Halve the number of loop runs.
48392
48393         * modules/alloca-opt-tests: New file.
48394         * tests/test-alloca-opt.c: New file.
48395
48396 2007-03-04  Jim Meyering  <jim@meyering.net>
48397
48398         Work around difference between Linux ACLs and Solaris 10 ZFS.
48399         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
48400         for EINVAL.
48401
48402 2007-03-03  Bruno Haible  <bruno@clisp.org>
48403
48404         * modules/relocatable-prog (Depends-on): Add back progreloc's
48405         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
48406
48407 2007-03-03  Bruno Haible  <bruno@clisp.org>
48408
48409         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
48410         * modules/relocatable-lib: New file.
48411
48412 2007-03-03  Bruno Haible  <bruno@clisp.org>
48413
48414         * modules/relocatable-prog: Renamed from modules/relocatable.
48415         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
48416
48417 2007-03-03  Bruno Haible  <bruno@clisp.org>
48418
48419         * modules/relocatable-script (Files): Add doc/relocatable.texi,
48420         m4/relocatable-lib.m4.
48421         (Depends-on): Remove 'relocatable'.
48422         (configure.ac): Add gl_RELOCATABLE_NOP.
48423
48424 2007-03-03  Bruno Haible  <bruno@clisp.org>
48425
48426         * modules/relocatable-prog-wrapper: New file.
48427         * modules/relocatable (Depends-on): Add it. Remove all other
48428         dependencies except progname.
48429         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
48430
48431         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
48432         (gl_FUNC_STRERROR): Nop.
48433         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
48434
48435         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
48436         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
48437
48438         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
48439         (gl_FUNC_READLINK): Update.
48440
48441         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
48442
48443 2007-03-03  Bruno Haible  <bruno@clisp.org>
48444
48445         * lib/xreadlink.c: Include <unistd.h> unconditionally.
48446         * modules/xreadlink (Depends-on): Add unistd.
48447         * modules/xreadlink-with-size (Depends-on): Likewise.
48448
48449 2007-03-03  Bruno Haible  <bruno@clisp.org>
48450
48451         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
48452         extracted from gt_FUNC_SETENV.
48453         (gt_FUNC_SETENV): Remove macro.
48454         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
48455         remove gt_FUNC_SETENV.
48456
48457 2007-03-03  Bruno Haible  <bruno@clisp.org>
48458
48459         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
48460         ENABLE_RELOCATABLE here.
48461         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
48462
48463 2007-03-03  Bruno Haible  <bruno@clisp.org>
48464
48465         * modules/rbtreehash-list-tests (Depends-on): Add progname.
48466         * tests/test-rbtreehash_list.c: Include progname.h.
48467         (main): Call set_program_name.
48468
48469         * modules/rbtree-oset-tests (Depends-on): Add progname.
48470         * tests/test-rbtree_oset.c: Include progname.h.
48471         (main): Call set_program_name.
48472
48473         * modules/rbtree-list-tests (Depends-on): Add progname.
48474         * tests/test-rbtree_list.c: Include progname.h.
48475         (main): Call set_program_name.
48476
48477         * modules/linked-list-tests (Depends-on): Add progname.
48478         * tests/test-linked_list.c: Include progname.h.
48479         (main): Call set_program_name.
48480
48481 2007-03-03  Bruno Haible  <bruno@clisp.org>
48482
48483         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
48484         All uses of __restrict changed to _Restrict_.
48485         * lib/glob_.h (__restrict): Remove macro.
48486
48487 2007-03-02  Bruno Haible  <bruno@clisp.org>
48488
48489         * modules/gettext (configure.ac): Require gettext infrastructure
48490         from version 0.16.1.
48491
48492 2007-03-02  Bruno Haible  <bruno@clisp.org>
48493
48494         * modules/linkedhash-list-tests (Depends-on): Add progname.
48495         * tests/test-linkedhash_list.c: Include progname.h.
48496         (main): Call set_program_name.
48497
48498         * modules/carray-list-tests (Depends-on): Add progname.
48499         * tests/test-carray_list.c: Include progname.h.
48500         (main): Call set_program_name.
48501
48502         * modules/avltreehash-list-tests (Depends-on): Add progname.
48503         * tests/test-avltreehash_list.c: Include progname.h.
48504         (main): Call set_program_name.
48505
48506         * modules/avltree-oset-tests (Depends-on): Add progname.
48507         * tests/test-avltree_oset.c: Include progname.h.
48508         (main): Call set_program_name.
48509
48510         * modules/avltree-list-tests (Depends-on): Add progname.
48511         * tests/test-avltree_list.c: Include progname.h.
48512         (main): Call set_program_name.
48513
48514         * modules/array-oset-tests (Depends-on): Add progname.
48515         * tests/test-array_oset.c: Include progname.h.
48516         (main): Call set_program_name.
48517
48518         * modules/array-list-tests (Depends-on): Add progname.
48519         * tests/test-array_list.c: Include progname.h.
48520         (main): Call set_program_name.
48521
48522         * modules/argp-tests (Depends-on): Add progname.
48523         * tests/test-argp.c: Include argp.h first. Include progname.h.
48524         (main): Call set_program_name.
48525
48526 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
48527
48528         * doc/gnulib-tool.texi (Initial import): Reword description of
48529         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
48530         limited effect even if defined after the first system include.
48531
48532 2007-03-01  Bruno Haible  <bruno@clisp.org>
48533
48534         * build-aux/config.libpath: Update to libtool-1.5.22.
48535         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48536
48537 2007-03-01  Bruno Haible  <bruno@clisp.org>
48538
48539         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
48540         foo_CFLAGS.
48541         Reported by Ralf Wildenhues.
48542
48543 2007-03-01  Bruno Haible  <bruno@clisp.org>
48544
48545         * build-aux/install-reloc: Remove object files left over by some
48546         compilers.
48547         Reported by Ralf Wildenhues.
48548
48549 2007-03-01  Bruno Haible  <bruno@clisp.org>
48550
48551         * build-aux/install-reloc: Break long lines.
48552
48553 2007-03-01  Bruno Haible  <bruno@clisp.org>
48554
48555         * doc/relocatable.texi: Document that it may not work on OpenBSD.
48556         Reported by Ralf Wildenhues.
48557
48558 2007-03-01  Bruno Haible  <bruno@clisp.org>
48559
48560         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
48561         include ordering constraints.
48562
48563 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48564
48565         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
48566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
48567         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
48568         as another example.
48569         * lib/time_.h: Fix misspelling.
48570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48571         Require gl_HEADER_TIME_H_DEFAULTS.
48572         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
48573         * m4/time_r.m4 (gl_TIME_R): Likewise.
48574         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
48575
48576 2007-03-01  Bruno Haible  <bruno@clisp.org>
48577
48578         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
48579         * m4/utimens.m4 (gl_UTIMENS): Likewise.
48580
48581 2007-03-01  Jim Meyering  <jim@meyering.net>
48582
48583         * modules/xreadlink (Maintainer): Add my name.
48584         * modules/xreadlink-with-size (Depends-on): Alphabetize.
48585
48586 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
48587             Bruno Haible  <bruno@clisp.org>
48588
48589         * build-aux/install-reloc: Compile also c-ctype.c.
48590         * build-aux/relocatable.sh.in: New file.
48591         * doc/relocatable.texi: New file.
48592         * doc/relocatable-maint.texi: New file.
48593         * doc/gnulib.texi: Include relocatable-maint.texi.
48594         * lib/progreloc.c: Include unistd.h unconditionally.
48595         * lib/relocwrapper.c: Include unistd.h unconditionally.
48596         Include c-ctype.h.
48597         (add_dotbin): Use c_tolower.
48598         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
48599         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
48600         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
48601         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
48602         to m4/relocatable-lib.m4.
48603         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
48604         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
48605         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
48606         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
48607         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
48608         * modules/relocatable: New file.
48609         * modules/relocatable-lib: New file.
48610         * modules/relocatable-script: New file.
48611
48612 2007-02-28  Bruno Haible  <bruno@clisp.org>
48613
48614         Import --enable-relocatable infrastructure.
48615         * build-aux/config.libpath: New file, from GNU gettext.
48616         * build-aux/install-reloc: New file, from GNU gettext.
48617         * build-aux/reloc-ldflags: New file, from GNU gettext.
48618         * lib/relocatable.h: New file, from GNU gettext.
48619         * lib/relocatable.c: New file, from GNU gettext.
48620         * lib/relocwrapper.c: New file, from GNU gettext.
48621         * m4/relocatable.m4: New file, from GNU gettext.
48622
48623 2007-02-28  Bruno Haible  <bruno@clisp.org>
48624
48625         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
48626
48627         * modules/xreadlink: New file, from GNU gettext with modifications.
48628         * lib/xreadlink.c: New file, from GNU gettext.
48629         * lib/xreadlink.h: Add comments.
48630         (xreadlink): New declaration.
48631
48632         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
48633         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
48634         lib/xreadlink-with-size.c.
48635         (configure.ac): Remove gl_XREADLINK invocation.
48636         (Makefile.am): Augment lib_SOURCES.
48637         * m4/xreadlink.m4: Remove file.
48638         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
48639         (xreadlink_with_size): Renamed from xreadink.
48640         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
48641         * modules/canonicalize (Depends-on): Replace xreadlink with
48642         xreadlink-with-size.
48643         * lib/canonicalize.c (canonicalize_filename_mode): Update.
48644
48645 2007-02-25  Jim Meyering  <jim@meyering.net>
48646
48647         * build-aux/announce-gen: When complaining about excess arguments,
48648         list them.
48649
48650 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48651
48652         * README: Document signed integer overflow situation more
48653         accurately.
48654
48655 2007-02-25  Bruno Haible  <bruno@clisp.org>
48656
48657         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
48658         'a' or 'A' conversion.
48659
48660 2007-02-25  Bruno Haible  <bruno@clisp.org>
48661
48662         * modules/filename: Renamed from modules/pathname.
48663         (Files): Replace lib/pathname.h with lib/filename.h. Replace
48664         lib/concatpath.c with lib/concat-filename.c.
48665         (Makefile.am): Update.
48666         (Include): Replace pathname.h with filename.h.
48667         * lib/filename.h: Renamed from lib/pathname.h.
48668         (concatenated_filename): Renamed from concatenated_pathname.
48669         * lib/concat-filename.c: Renamed from lib/concatpath.c.
48670         (concatenated_filename): Renamed from concatenated_pathname.
48671         * lib/findprog.c: Include filename.h instead of pathname.h.
48672         (find_in_path): Update.
48673         * lib/javacomp.c: Include filename.h instead of pathname.h.
48674         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48675         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48676         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48677         is_oldgcj_14_13_usable, is_javac_usable): Update.
48678         * lib/javaexec.c: Include filename.h instead of pathname.h.
48679         (execute_java_class): Update.
48680         * modules/findprog: Update.
48681         * modules/javacomp: Update.
48682         * modules/javaexec: Update.
48683         * MODULES.html.sh (File system functions): Add 'filename', remove
48684         'pathname'.
48685
48686 2007-02-25  Bruno Haible  <bruno@clisp.org>
48687
48688         * modules/printf-frexpl-tests: New file.
48689         * tests/test-printf-frexpl.c: New file.
48690
48691         * modules/printf-frexpl: New file.
48692         * lib/printf-frexpl.h: New file.
48693         * lib/printf-frexpl.c: New file.
48694         * m4/printf-frexpl.m4: New file.
48695
48696 2007-02-25  Bruno Haible  <bruno@clisp.org>
48697
48698         * modules/printf-frexp-tests: New file.
48699         * tests/test-printf-frexp.c: New file.
48700
48701         * modules/printf-frexp: New file.
48702         * lib/printf-frexp.h: New file.
48703         * lib/printf-frexp.c: New file.
48704         * m4/printf-frexp.m4: New file.
48705
48706 2007-02-25  Bruno Haible  <bruno@clisp.org>
48707
48708         Assume automake >= 1.10 for the tests.
48709         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48710         * modules/arctwo-tests: Likewise.
48711         * modules/argp-tests: Likewise.
48712         * modules/avltree-list-tests: Likewise.
48713         * modules/avltree-oset-tests: Likewise.
48714         * modules/avltreehash-list-tests: Likewise.
48715         * modules/carray-list-tests: Likewise.
48716         * modules/crc-tests: Likewise.
48717         * modules/des-tests: Likewise.
48718         * modules/gc-arcfour-tests: Likewise.
48719         * modules/gc-arctwo-tests: Likewise.
48720         * modules/gc-des-tests: Likewise.
48721         * modules/gc-hmac-md5-tests: Likewise.
48722         * modules/gc-hmac-sha1-tests: Likewise.
48723         * modules/gc-md2-tests: Likewise.
48724         * modules/gc-md4-tests: Likewise.
48725         * modules/gc-md5-tests: Likewise.
48726         * modules/gc-pbkdf2-sha1-tests: Likewise.
48727         * modules/gc-rijndael-tests: Likewise.
48728         * modules/gc-sha1-tests: Likewise.
48729         * modules/gc-tests: Likewise.
48730         * modules/getaddrinfo-tests: Likewise.
48731         * modules/hmac-md5-tests: Likewise.
48732         * modules/hmac-sha1-tests: Likewise.
48733         * modules/linked-list-tests: Likewise.
48734         * modules/linkedhash-list-tests: Likewise.
48735         * modules/lock-tests: Likewise.
48736         * modules/md2-tests: Likewise.
48737         * modules/md4-tests: Likewise.
48738         * modules/md5-tests: Likewise.
48739         * modules/rbtree-list-tests: Likewise.
48740         * modules/rbtree-oset-tests: Likewise.
48741         * modules/rbtreehash-list-tests: Likewise.
48742         * modules/read-file-tests: Likewise.
48743         * modules/rijndael-tests: Likewise.
48744         * modules/stdint-tests: Likewise.
48745         * modules/tls-tests: Likewise.
48746
48747 2007-02-24  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48750         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48751         function; instead check whether isnan with a double argument links.
48752         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48753         function; instead check whether isnan with a 'long double' argument
48754         links.
48755         Reported by Eric Blake <ebb9@byu.net>.
48756
48757 2007-02-24  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48760         defined.
48761         * lib/isnanl.c: Remove all code. Just include isnan.c.
48762         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48763
48764 2007-02-25  Jim Meyering  <jim@meyering.net>
48765
48766         Avoid conflicting types for 'unsetenv' on FreeBSD.
48767         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48768         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48769         in stdlib.h.
48770
48771 2007-02-24  Bruno Haible  <bruno@clisp.org>
48772
48773         * modules/isnanl-nolibm-tests: New file.
48774         * tests/test-isnanl.c: New file.
48775
48776         * modules/isnanl-nolibm: New file.
48777         * lib/isnanl.h: New file.
48778         * lib/isnanl.c: New file.
48779         * m4/isnanl.m4: New file.
48780
48781 2007-02-24  Bruno Haible  <bruno@clisp.org>
48782
48783         * modules/isnan-nolibm-tests: New file.
48784         * tests/test-isnan.c: New file.
48785
48786         * modules/isnan-nolibm: New file.
48787         * lib/isnan.h: New file.
48788         * lib/isnan.c: New file.
48789         * m4/isnan.m4: New file.
48790
48791 2007-02-24  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48794         assume that an exponent fits in 20 bits.
48795
48796 2007-02-24  Jim Meyering  <jim@meyering.net>
48797
48798         * m4/regex.m4: Update the description of the configure-time option,
48799         --without-included-regex, to state accurately what the defaults are,
48800         and perhaps to give people an idea why using this option is risky.
48801
48802 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48803
48804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48805         loops on small arguments.  This attempts to avoid the problem
48806         Bruno Haible reported for AIX 4.3.2 in
48807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48808
48809 2007-02-23  Bruno Haible  <bruno@clisp.org>
48810
48811         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48812         Needed for help2man.
48813
48814 2007-02-23  Karl Berry  <karl@gnu.org>
48815
48816         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48817         exists, foo.h should be cvs-ignored, not committed.
48818
48819 2007-02-23  Eric Blake  <ebb9@byu.net>
48820
48821         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48822         * lib/stat-time.h (includes): Likewise.
48823         * lib/utimecmp.c (includes): Likewise.
48824         * lib/utimens.h (includes): Likewise.
48825         * lib/getdate.y (includes): Also include "timespec.h" for use
48826         internal to the module.
48827         * modules/utimens (Depends-on): Revert yesterday's patch.
48828         * modules/nanosleep (Depends-on): Add missing dependency.
48829
48830 2007-02-22  Bruno Haible  <bruno@clisp.org>
48831
48832         * lib/glob.c: Don't include getlogin_r.h.
48833
48834 2007-02-22  Jim Meyering  <jim@meyering.net>
48835
48836         * modules/utimens (Depends-on): Add timespec, required for
48837         utimens.h's inclusion of timespec.h.
48838
48839 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48840
48841         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48842         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48843         Schwab in
48844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48845         I'll try to think of a better way to fix the Solaris problem.
48846
48847         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48848         like glibc; on Solaris 10, it fails with errno == EINVAL.
48849         POSIX says the behavior is unspecified if the first argument is NULL,
48850         so play it safe and never pass NULL to the system getcwd.
48851
48852 2007-02-21  Jim Meyering  <jim@meyering.net>
48853
48854         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48855         of gettimeofday.  It would conflict with the one now always
48856         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48857         an IRIX 6.5 build failure.
48858
48859 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48860
48861         Minor fixups to port to Solaris 10 with Sun C 5.8.
48862         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48863         * modules/getcwd (Depends-on): Add dirfd.
48864         * lib/putenv.c (putenv): #undef it.
48865         (rpl_putenv): New decl.
48866         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48867
48868 2007-02-20  Bruno Haible  <bruno@clisp.org>
48869
48870         * modules/stdio-tests: New file.
48871         * tests/test-stdio.c: New file.
48872
48873         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48874         (Depends-on): Add stdio.
48875         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48876         (Include): Use <stdio.h> instead of vsnprintf.h.
48877         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48878         HAVE_DECL_VSNPRINTF.
48879         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48880
48881         * modules/snprintf (Files): Remove lib/snprintf.h.
48882         (Depends-on): Add stdio.
48883         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48884         (Include): Use <stdio.h> instead of snprintf.h.
48885         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48886         HAVE_DECL_SNPRINTF.
48887         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48888         * lib/getaddrinfo.c: Likewise.
48889
48890         * modules/stdio: New file.
48891         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48892         * lib/snprintf.h: Remove file.
48893         * lib/vsnprintf.h: Remove file.
48894         * lib/.cppi-disable: Remove snprintf.h.
48895         * m4/stdio_h.m4: New file.
48896         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48897
48898 2007-02-20  Jim Meyering  <jim@meyering.net>
48899
48900         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48901         used by e.g., mingw.  From Bruno Haible.
48902
48903 2007-02-19  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48906         warnings.
48907         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48908
48909 2007-02-19  Bruno Haible  <bruno@clisp.org>
48910
48911         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48912         from mingw users.
48913
48914 2007-02-19  Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48917         warnings.
48918         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48919
48920 2007-02-19  Jim Meyering  <jim@meyering.net>
48921
48922         Don't use FD after a successful "fdopendir (fd)".
48923         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48924         Reset it by calling dirfd on the just-obtained DIR*.
48925
48926         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48927         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48928
48929 2007-02-18  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/readlink.c: Include <unistd.h>.
48932         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48933         HAVE_READLINK.
48934         * modules/readlink (Depends-on): Add unistd.
48935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48936         (Include): Add <unistd.h>.
48937
48938         * lib/getlogin_r.h: Remove file.
48939         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48940         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48941         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48942         HAVE_DECL_GETLOGIN_R.
48943         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48944         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48945         (Include): Use <unistd.h> instead of getlogin_r.h.
48946
48947         * lib/getcwd.h: Remove file.
48948         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48949         * lib/xgetcwd.c: Likewise.
48950         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48951         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48952         * modules/getcwd (Files): Remove lib/getcwd.h.
48953         (Depends-on): Add unistd.
48954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48955         (Include): Use <unistd.h> instad of getcwd.h.
48956
48957         * lib/ftruncate.c: Include <unistd.h> first.
48958         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48959         Set HAVE_FTRUNCATE.
48960         * modules/ftruncate (Depends-on): Add unistd.
48961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48962
48963         * lib/fchdir.c: Include <unistd.h> first.
48964         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48966         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48967         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48968         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
48969
48970         * lib/dup2.c: Include <unistd.h> first.
48971         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
48972         HAVE_DUP2.
48973         * modules/dup2 (Depends-on): Add unistd.
48974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48975
48976         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
48977         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
48978         REPLACE_CHOWN. Don't define chown as a macro here.
48979         * modules/chown (Depends-on): Add unistd.
48980         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48981
48982         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
48983         Add definition for GL_LINK_WARNING.
48984         (chown, dup2): New declarations.
48985         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
48986         link warning.
48987         (ftruncate): New declaration.
48988         (getcwd): New declaration, taken from old getcwd.h.
48989         (getlogin_r): New declaration, taken from old getlogin_r.h.
48990         (readlink): New declaration.
48991         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
48992         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
48993         (gl_PREREQ_UNISTD): Remove macro.
48994         (gl_UNISTD_MODULE_INDICATOR): New macro.
48995         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
48996         many new variables. Don't set UNISTD_H.
48997         * modules/unistd (Description): Change.
48998         (Depends-on): Add link-warning.
48999         (configure.ac): Update.
49000         (Makefile.am): Create unistd.h always. Substitute many new variables
49001         into it.
49002
49003 2007-02-18  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
49006         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
49007         HAVE_GETSUBOPT.
49008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
49009         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
49010         * lib/getsubopt.h: Remove file.
49011         * modules/getsubopt (Files): Remove lib/getsubopt.h.
49012         (Depends-on): Add stdlib.
49013         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49014         (Includes): Use <stdlib.h> instead of getsubopt.h.
49015         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
49016         Set HAVE_GETSUBOPT.
49017         * lib/getsubopt.c: Don't include getsubopt.h.
49018
49019 2007-02-18  Bruno Haible  <bruno@clisp.org>
49020
49021         * modules/fchdir (Depends-on): Add dup2.
49022
49023 2007-02-18  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/stdlib_.h: Handle glibc's special invocation convention
49026         specially.
49027
49028 2007-02-18  Bruno Haible  <bruno@clisp.org>
49029
49030         * modules/stdlib-tests: New file.
49031         * tests/test-stdlib.c: New file.
49032
49033         * modules/mkstemp (Files): Remove lib/mkstemp.h.
49034         (Depends-on): Add stdlib.
49035         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49036         (Includes): Use <stdlib.h> instead of mkstemp.h.
49037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49038         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
49039         * lib/mkstemp.c: Don't include mkstemp.h.
49040         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
49041         * lib/stdlib--.h: Don't include mkstemp.h.
49042
49043         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
49044         (Depends-on): Add stdlib.
49045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49046         (Includes): Use <stdlib.h> instead of mkdtemp.h.
49047         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49048         HAVE_MKDTEMP.
49049         * lib/mkdtemp.c: Don't include mkdtemp.h.
49050         * lib/clean-temp.c: Don't include mkdtemp.h.
49051
49052         * modules/exit (Files): Remove lib/exit.h.
49053         (Depends-on): Add stdlib.
49054         (Makefile.am): Remove lib_SOURCES.
49055         (Include): Use <stdlib.h> instead of exit.h.
49056         * lib/argmatch.c: Don't include exit.h.
49057         * lib/execute.c: Likewise.
49058         * lib/pagealign_alloc.c: Likewise.
49059         * lib/pipe.c: Likewise.
49060         * lib/wait-process.c: Likewise.
49061         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
49062         * lib/exitfail.c: Likewise.
49063         * lib/savewd.c: Likewise.
49064         * lib/xsetenv.c: Likewise.
49065
49066         * modules/stdlib: New file.
49067         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
49068         and extra comments about mkstemp().
49069         * lib/exit.h: Remove file.
49070         * lib/mkdtemp.h: Remove file.
49071         * lib/mkstemp.h: Remove file.
49072         * m4/stdlib_h.m4: New file.
49073         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
49074
49075 2007-02-18  Bruno Haible  <bruno@clisp.org>
49076
49077         * modules/math-tests: New file.
49078         * tests/test-math.c: New file.
49079
49080         * modules/math: New file.
49081         * modules/mathl (Files): Remove lib/mathl.h.
49082         (Depends-on): Add math.
49083         (Makefile.am): Don't mention mathl.h.
49084         (Include): Use <math.h> instead of mathl.h.
49085         * lib/math_.h: New file.
49086         * lib/mathl.h: Remove file.
49087         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
49088         mathl.h.
49089         * lib/asinl.c: Likewise.
49090         * lib/atanl.c: Likewise.
49091         * lib/ceill.c: Likewise.
49092         * lib/cosl.c: Likewise.
49093         * lib/expl.c: Likewise.
49094         * lib/floorl.c: Likewise.
49095         * lib/frexpl.c: Likewise.
49096         * lib/ldexpl.c: Likewise.
49097         * lib/logl.c: Likewise.
49098         * lib/sincosl.c: Likewise.
49099         * lib/sinl.c: Likewise.
49100         * lib/sqrtl.c: Likewise.
49101         * lib/tanl.c: Likewise.
49102         * lib/trigl.c: Likewise.
49103         * m4/math_h.m4: New file.
49104         * MODULES.html.sh (Mathematics): Add math.
49105
49106 2007-02-17  Bruno Haible  <bruno@clisp.org>
49107
49108         * modules/wctype-tests: New file.
49109         * tests/test-wctype.c: New file.
49110
49111         * modules/wchar-tests: New file.
49112         * tests/test-wchar.c: New file.
49113
49114         * modules/unistd-tests: New file.
49115         * tests/test-unistd.c: New file.
49116
49117         * modules/time-tests: New file.
49118         * tests/test-time.c: New file.
49119
49120         * modules/sysexits-tests: New file.
49121         * tests/test-sysexits.c: New file.
49122
49123         * modules/sys_time-tests: New file.
49124         * tests/test-sys_time.c: New file.
49125
49126         * modules/sys_stat-tests: New file.
49127         * tests/test-sys_stat.c: New file.
49128
49129         * modules/sys_socket-tests: New file.
49130         * tests/test-sys_socket.c: New file.
49131
49132         * modules/sys_select-tests: New file.
49133         * tests/test-sys_select.c: New file.
49134
49135         * modules/string-tests: New file.
49136         * tests/test-string.c: New file.
49137
49138         * modules/stdbool-tests: New file.
49139         * tests/test-stdbool.c: New file.
49140
49141         * modules/netinet_in-tests: New file.
49142         * tests/test-netinet_in.c: New file.
49143
49144         * modules/inttypes-tests: New file.
49145         * tests/test-inttypes.c: New file.
49146
49147         * modules/fcntl-tests: New file.
49148         * tests/test-fcntl.c: New file.
49149
49150         * modules/byteswap-tests: New file.
49151         * tests/test-byteswap.c: New file.
49152
49153         * modules/arpa_inet-tests: New file.
49154         * tests/test-arpa_inet.c: New file.
49155
49156 2007-02-17  Bruno Haible  <bruno@clisp.org>
49157
49158         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
49159         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
49160         if the corresponding module is not enabled. Emit link warnings if
49161         the function is used nevertheless.
49162         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
49163         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
49164         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
49165         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
49166         * modules/inttypes (Depends-on): Add link-warning.
49167         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49168         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
49169         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
49170         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
49171         * modules/imaxdiv (configure.ac): Likewise.
49172         * modules/strtoimax (configure.ac): Likewise.
49173         * modules/strtoumax (configure.ac): Likewise.
49174
49175 2007-02-17  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
49178         gl_STRING_MODULE_INDICATOR_DEFAULTS.
49179         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
49180         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
49181
49182 2007-02-17  Bruno Haible  <bruno@clisp.org>
49183
49184         * modules/link-warning: New file.
49185         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
49186         * lib/string_.h (GL_LINK_WARNING): Remove definition.
49187         * modules/string (Depends-on): Add link-warning.
49188         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49189         string.h.
49190         * MODULES.html.sh (Support for building libraries and executables): Add
49191         link-warning.
49192
49193 2007-02-17  Bruno Haible  <bruno@clisp.org>
49194
49195         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
49196         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
49197         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
49198         long lines.
49199
49200 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
49201             Bruno Haible  <bruno@clisp.org>
49202
49203         * modules/tmpfile: New file.
49204         * lib/tmpfile.c: New file.
49205         * m4/tmpfile.m4: New file.
49206         * MODULES.html.sh (func_all_modules): New section "Input/output".
49207
49208 2007-02-15  Bruno Haible  <bruno@clisp.org>
49209
49210         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
49211         (supports_delete_on_close): New function.
49212         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
49213
49214 2007-02-14  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/mbspcasecmp-tests: New file.
49217         * tests/test-mbspcasecmp.sh: New file.
49218         * tests/test-mbspcasecmp.c: New file.
49219
49220         New module mbspcasecmp.
49221         * modules/mbspcasecmp: New file.
49222         * lib/mbspcasecmp.c: New file.
49223         * lib/string_.h (strncasecmp): Change warning message.
49224         (mbspcasecmp): New declaration.
49225         * m4/mbspcasecmp.m4: New file.
49226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49227         GNULIB_MBSPCASECMP.
49228         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
49229         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
49230
49231 2007-02-14  Bruno Haible  <bruno@clisp.org>
49232
49233         * modules/mbsncasecmp-tests: New file.
49234         * tests/test-mbsncasecmp.sh: New file.
49235         * tests/test-mbsncasecmp.c: New file.
49236
49237         New module mbsncasecmp.
49238         * modules/mbsncasecmp: New file.
49239         * lib/mbsncasecmp.c: New file.
49240         * lib/string_.h (mbsncasecmp): New declaration.
49241         * m4/mbsncasecmp.m4: New file.
49242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49243         GNULIB_MBSNCASECMP.
49244         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
49245         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
49246
49247 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
49248
49249         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
49250         Verify that it doesn't overlap with our flags.
49251         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
49252         do not have the desired effect in multibyte locales; instead, use
49253         mbscasecmp.
49254         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
49255         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
49256         we don't require GNU fnmatch ourselves (if our users require it, they
49257         should do so explicitly).
49258
49259         Fix regex code so it doesn't rely on strcasecmp.
49260         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
49261         Otherwise, include gnulib's langinfo.h.
49262         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
49263         undesirable behavior in non-C locales.  Instead, rely on localecharset.
49264         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
49265         * modules/regex (FILES): Remove m4/codeset.m4.
49266         (Depends-on): Add localcharset.  Remove strcase.
49267
49268 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49269
49270         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
49271         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
49272
49273 2007-02-13  Bruno Haible  <bruno@clisp.org>
49274
49275         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
49276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49277
49278 2007-02-12  Bruno Haible  <bruno@clisp.org>
49279
49280         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49281         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
49282         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
49283         time warning rather than a link error.
49284
49285 2007-02-12  Bruno Haible  <bruno@clisp.org>
49286
49287         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
49288         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49290
49291 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49292
49293         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
49294         args, not 2.
49295
49296 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49297
49298         New module 'time', so that apps can include <time.h> as per
49299         POSIX and GNU instead of separate include files like time_r.h
49300         and timegm.h.  This implementation tries out a simpler approach
49301         for replacing decls in standard include files (as compared to
49302         the string module), somewhat as an experiment.
49303
49304         * config/srclist.txt: Comment out mktime.c for now.
49305         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
49306         since it doesn't apply any more.  Use generic wording instead.
49307         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
49308         'time'.
49309         * lib/time_.h, m4/time_h.m4, modules/time: New files.
49310         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
49311         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
49312         Don't include <sys/types.h>; no longer needed since we assume C89.
49313         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
49314         * lib/strftime.c: Likewise.
49315         * lib/time_r.c: Likewise.
49316         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
49317         * lib/nanosleep.c: Include <time.h> first, to check interface.
49318         * lib/strptime.c: Likewise.
49319         * lib/time_r.c: Likewise.
49320         * lib/timegm.c: Likewise.
49321         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
49322         needed.
49323         * lib/timegm.c: Don't include timegm.h; no longer needed.
49324         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
49325         time.h now handles any problems in that area.
49326         (struct timespec, nanosleep): Remove; time.h now arranges for these.
49327         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
49328         that time.h defines struct timespec.
49329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
49330         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
49331         handles that.
49332         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
49333         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
49334         needed.  Set REPLACE_LOCALTIME.
49335         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
49336         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
49337         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
49338         nanosleep; time_h.m4 now does that.  Don't require
49339         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
49340         module handles this now.
49341         * modules/getdate (Depends-on): Remove timespec.  Add time.
49342         * modules/nanosleep (Depends-on): Likewise.
49343         * modules/stat-time (Depends-on): Likewise.
49344         * modules/nanosleep (Include): Include time.h, not timespec.h.
49345         * modules/strptime (Files): Remove lib/strptime.h.
49346         (Depends-on): Add extensions, time.
49347         (Include): Include time.h, not strptime.h.
49348         * modules/time_r (Files): Remove lib/time_r.h.
49349         (Depends-on): Add time.
49350         (Include): Include time.h, not time_r.h.
49351         * modules/timegm: Likewise.
49352         * modules/timespec (Description): Now does timespec-related decls
49353         of our own, instead of struct timespec itself.
49354         (Depends-on): Add time; remove extensions.
49355         (Maintainer): Add self.
49356         * modules/utimecmp (Depends-on): Add time; remove timespec.
49357         * modules/utimens (Depends-on): Likewise.
49358         * modules/xnanosleep (Depends-on): Likewise.
49359
49360 2007-02-11  Bruno Haible  <bruno@clisp.org>
49361
49362         * lib/c-strstr.c: Include allocsa.h.
49363         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49364         * lib/c-strcasestr.c: Include allocsa.h.
49365         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49366         * lib/strcasestr.c: Include allocsa.h.
49367         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49368         * lib/mbsstr.c: Include allocsa.h.
49369         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49370         allocsa/freesa instead of malloc/free.
49371         * lib/mbscasestr.c: Include allocsa.h.
49372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49373         allocsa/freesa instead of malloc/free.
49374         * modules/c-strstr (Depends-on): Add allocsa.
49375         * modules/c-strcasestr (Depends-on): Likewise.
49376         * modules/strcasestr (Depends-on): Likewise.
49377         * modules/mbsstr (Depends-on): Likewise.
49378         * modules/mbscasestr (Depends-on): Likewise.
49379
49380 2007-02-11  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
49383
49384         * modules/mbsspn-tests: New file.
49385         * tests/test-mbsspn.sh: New file.
49386         * tests/test-mbsspn.c: New file.
49387
49388 2007-02-11  Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
49391
49392         * modules/mbspbrk-tests: New file.
49393         * tests/test-mbspbrk.sh: New file.
49394         * tests/test-mbspbrk.c: New file.
49395
49396 2007-02-11  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
49399         unneeded cast.
49400
49401         * modules/mbscspn-tests: New file.
49402         * tests/test-mbscspn.sh: New file.
49403         * tests/test-mbscspn.c: New file.
49404
49405 2007-02-11  Bruno Haible  <bruno@clisp.org>
49406
49407         * modules/mbscasecmp-tests: New file.
49408         * tests/test-mbscasecmp.sh: New file.
49409         * tests/test-mbscasecmp.c: New file.
49410
49411 2007-02-11  Bruno Haible  <bruno@clisp.org>
49412
49413         Ensure O(n) worst-case complexity of mbscasestr.
49414         * lib/mbscasestr.c: Include stdbool.h.
49415         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49416         functions.
49417         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
49418         the bookkeeping indicates that it's worth it.
49419         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
49420
49421         * modules/mbscasestr-tests: New file.
49422         * tests/test-mbscasestr1.c: New file.
49423         * tests/test-mbscasestr2.sh: New file.
49424         * tests/test-mbscasestr2.c: New file.
49425         * tests/test-mbscasestr3.sh: New file.
49426         * tests/test-mbscasestr3.c: New file.
49427         * tests/test-mbscasestr4.sh: New file.
49428         * tests/test-mbscasestr4.c: New file.
49429         * m4/locale-tr.m4: New file.
49430
49431 2007-02-11  Bruno Haible  <bruno@clisp.org>
49432
49433         Ensure O(n) worst-case complexity of mbsstr.
49434         * lib/mbsstr.c: Include stdbool.h.
49435         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49436         functions.
49437         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
49438         bookkeeping indicates that it's worth it.
49439         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
49440
49441         * modules/mbsstr-tests: New file.
49442         * tests/test-mbsstr1.c: New file.
49443         * tests/test-mbsstr2.sh: New file.
49444         * tests/test-mbsstr2.c: New file.
49445         * tests/test-mbsstr3.sh: New file.
49446         * tests/test-mbsstr3.c: New file.
49447         * m4/locale-fr.m4: New file.
49448
49449 2007-02-11  Bruno Haible  <bruno@clisp.org>
49450
49451         * lib/mbsrchr.c (mbsrchr): Fix bug.
49452
49453         * modules/mbsrchr-tests: New file.
49454         * tests/test-mbsrchr.sh: New file.
49455         * tests/test-mbsrchr.c: New file.
49456
49457 2007-02-11  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/mbschr.c (mbschr): Fix bug.
49460
49461         * modules/mbschr-tests: New file.
49462         * tests/test-mbschr.sh: New file.
49463         * tests/test-mbschr.c: New file.
49464         * m4/locale-zh.m4: New file.
49465
49466 2007-02-11  Bruno Haible  <bruno@clisp.org>
49467
49468         Support for copying multibyte string iterators.
49469         * lib/mbiter.h: Include <string.h>.
49470         (mbiter_multi_copy): New function.
49471         (mbi_copy): New macro.
49472         * lib/mbuiter.h: Include <string.h>.
49473         (mbuiter_multi_copy): New function.
49474         (mbui_copy): New macro.
49475
49476 2007-02-11  Bruno Haible  <bruno@clisp.org>
49477
49478         New module mbslen.
49479         * modules/mbslen: New file.
49480         * lib/mbslen.c: New file.
49481         * lib/string_.h (mbslen): New declaration.
49482         * m4/mbslen.m4: New file.
49483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49484         GNULIB_MBSLEN.
49485         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
49486         * MODULES.html.sh (Internationalization functions): Add mbslen.
49487
49488 2007-02-11  Bruno Haible  <bruno@clisp.org>
49489
49490         Ensure O(n) worst-case complexity of strcasestr substitute.
49491         * lib/strcasestr.c: Include stdbool.h.
49492         (knuth_morris_pratt): New function.
49493         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49494         bookkeeping indicates that it's worth it.
49495         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
49496
49497         * modules/strcasestr-tests: New file.
49498         * tests/test-strcasestr.c: New file.
49499
49500 2007-02-11  Bruno Haible  <bruno@clisp.org>
49501
49502         Ensure O(n) worst-case complexity of c_strcasestr.
49503         * lib/c-strcasestr.c: Include stdbool.h, string.h.
49504         (knuth_morris_pratt): New function.
49505         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
49506         the bookkeeping indicates that it's worth it.
49507         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
49508
49509         * modules/c-strcasestr-tests: New file.
49510         * tests/test-c-strcasestr.c: New file.
49511
49512 2007-02-11  Bruno Haible  <bruno@clisp.org>
49513
49514         Ensure O(n) worst-case complexity of c_strstr.
49515         * lib/c-strstr.c: Include stdbool.h, string.h.
49516         (knuth_morris_pratt): New function.
49517         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49518         bookkeeping indicates that it's worth it.
49519         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
49520
49521         * lib/c-strstr.c: Complete rewrite for maintainability.
49522
49523         * modules/c-strstr-tests: New file.
49524         * tests/test-c-strstr.c: New file.
49525
49526 2007-02-11  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
49529         5.2.1 and earlier, whereby \055 was treated just like the range
49530         delimiter '-'.
49531         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49532
49533 2007-02-08  Bruno Haible  <bruno@clisp.org>
49534
49535         * modules/regex (Depends-on): Add stdbool.
49536         Reported by Dalibor Topic <robilad@kaffe.org>.
49537
49538 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
49539
49540         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
49541         Prefer returning from main to exiting from it.
49542         Remove unnecessary parens after sizeof.
49543
49544 2007-02-05  Bruno Haible  <bruno@clisp.org>
49545
49546         New module mbssep.
49547         * modules/mbssep: New file.
49548         * lib/mbssep.c: New file.
49549         * lib/string_.h (strsep): Add a conditional link warning.
49550         (mbssep): New declaration.
49551         * m4/mbssep.m4: New file.
49552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49553         GNULIB_MBSSEP.
49554         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
49555         * MODULES.html.sh (Internationalization functions): Add mbssep.
49556
49557 2007-02-05  Bruno Haible  <bruno@clisp.org>
49558
49559         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
49560         Optimize search in case of 1 delimiter.
49561
49562 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49563
49564         * lib/acl.h: Include sys/types.h before sys/acl.h.
49565
49566 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49567
49568         Merge upstream fix for glibc bugzilla #3957:
49569
49570         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
49571
49572         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
49573         bit for RE_HAT_LISTS_NOT_NEWLINE.
49574         (build_charclass_op): Remove bogus comment.
49575
49576 2007-02-05  Simon Josefsson  <simon@josefsson.org>
49577
49578         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
49579
49580 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49581
49582         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
49583         * lib/memmem.c [!defined _LIBC]: Include config.h.
49584
49585 2007-02-04  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
49588         warning message.
49589
49590 2007-02-04  Bruno Haible  <bruno@clisp.org>
49591
49592         New module mbstok_r.
49593         * modules/mbstok_r: New file.
49594         * lib/mbstok_r.c: New file.
49595         * lib/string_.h (strtok_r): Change argument names to match the
49596         comments. Add a conditional link warning.
49597         (mbstok_r): New declaration.
49598         * m4/mbstok_r.m4: New file.
49599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49600         GNULIB_MBSTOK_R.
49601         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
49602         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
49603
49604 2007-02-04  Bruno Haible  <bruno@clisp.org>
49605
49606         New module mbsspn.
49607         * modules/mbsspn: New file.
49608         * lib/mbsspn.c: New file.
49609         * lib/string_.h (strspn): Add a conditional link warning.
49610         (mbsspn): New declaration.
49611         * m4/mbsspn.m4: New file.
49612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49613         GNULIB_MBSSPN.
49614         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
49615         * MODULES.html.sh (Internationalization functions): Add mbsspn.
49616
49617 2007-02-04  Bruno Haible  <bruno@clisp.org>
49618
49619         New module mbspbrk.
49620         * modules/mbspbrk: New file.
49621         * lib/mbspbrk.c: New file.
49622         * lib/string_.h (strpbrk): Add a conditional link warning.
49623         (mbspbrk): New declaration.
49624         * m4/mbspbrk.m4: New file.
49625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49626         GNULIB_MBSPBRK.
49627         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
49628         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
49629
49630 2007-02-04  Bruno Haible  <bruno@clisp.org>
49631
49632         New module mbscspn.
49633         * modules/mbscspn: New file.
49634         * lib/mbscspn.c: New file.
49635         * lib/string_.h (strcspn): Add a conditional link warning.
49636         (mbscspn): New declaration.
49637         * m4/mbscspn.m4: New file.
49638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49639         GNULIB_MBSCSPN.
49640         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
49641         * MODULES.html.sh (Internationalization functions): Add mbscspn.
49642
49643 2007-02-04  Bruno Haible  <bruno@clisp.org>
49644
49645         New module mbscasestr, reduced goal of strcasestr.
49646         * modules/mbscasestr: New file.
49647         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
49648         (mbscasestr): Renamed from strcasestr.
49649         * lib/strcasestr.c: Don't include mbuiter.h.
49650         (strcasestr): Remove support for multibyte locales.
49651         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
49652         Change the conditional link warning.
49653         (mbscasestr): New declaration.
49654         * m4/mbscasestr.m4: New file.
49655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
49656         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
49657         REPLACE_STRCASESTR.
49658         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
49659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49660         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49661         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
49662         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
49663         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49664         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
49665         (Depends-on): Remove mbuiter.
49666         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
49667
49668 2007-02-04  Bruno Haible  <bruno@clisp.org>
49669
49670         Simplify handling of strncasecmp.
49671         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
49672         the conditional link warning.
49673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49674         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
49675         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
49676         * modules/strcase (configure.ac): Don't invoke
49677         gl_STRING_MODULE_INDICATOR.
49678         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
49679
49680 2007-02-04  Bruno Haible  <bruno@clisp.org>
49681
49682         New module mbscasecmp, reduced goal of strcasecmp.
49683         * modules/mbscasecmp: New file.
49684         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
49685         (mbscasecmp): Renamed from strcasecmp.
49686         * lib/strcasecmp.c: Don't include mbuiter.h.
49687         (strcasecmp): Remove support for multibyte locales.
49688         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
49689         Change the conditional link warning.
49690         (mbscasecmp): New declaration.
49691         * m4/mbscasecmp.m4: New file.
49692         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
49693         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49694         REPLACE_STRCASECMP.
49695         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
49696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49697         GNULIB_MBSCASECMP.
49698         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
49699         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
49700         * modules/strcase (Files): Remove m4/mbrtowc.m4.
49701         (Depends-on): Remove mbuiter.
49702         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
49703
49704 2007-02-04  Bruno Haible  <bruno@clisp.org>
49705
49706         New module mbsstr. Remove module strstr.
49707         * modules/mbsstr: New file.
49708         * modules/strstr: Remove file.
49709         * lib/mbsstr.c: Renamed from lib/strstr.c.
49710         (mbsstr): Renamed from strstr.
49711         * lib/string_.h (strstr): Remove declaration. Change the conditional
49712         link warning.
49713         (mbsstr): New declaration.
49714         * m4/mbsstr.m4: New file.
49715         * m4/strstr.m4: Remove file.
49716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49717         REPLACE_STRSTR.
49718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49719         Don't initialize GNULIB_STRSTR.
49720         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49721         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49722         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49723         (Support for systems lacking ANSI C 89): Remove strstr.
49724
49725 2007-02-04  Bruno Haible  <bruno@clisp.org>
49726
49727         New module mbsrchr.
49728         * modules/mbsrchr: New file.
49729         * lib/mbsrchr.c: New file.
49730         * lib/string_.h (strrchr): Add a conditional link warning.
49731         (mbsrchr): New declaration.
49732         * m4/mbsrchr.m4: New file.
49733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49734         GNULIB_MBSRCHR.
49735         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49736         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49737
49738 2007-02-04  Bruno Haible  <bruno@clisp.org>
49739
49740         New module mbschr.
49741         * modules/mbschr: New file.
49742         * lib/mbschr.c: New file.
49743         * lib/string_.h (strchr): Add a conditional link warning.
49744         (mbschr): New declaration.
49745         * m4/mbschr.m4: New file.
49746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49747         GNULIB_MBSCHR.
49748         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49749         * MODULES.html.sh (Internationalization functions): Add mbschr.
49750
49751 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49752
49753         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49754
49755         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49756
49757 2007-02-04  Bruno Haible  <bruno@clisp.org>
49758
49759         New module description section 'configure.ac-early'.
49760         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49761         (func_get_autoconf_early_snippet): New function.
49762         (func_import, func_create_testdir): Use it. Remove special cases for
49763         modules 'extensions' and 'lock'.
49764         * modules/extensions (configure.ac-early): Require
49765         gl_USE_SYSTEM_EXTENSIONS.
49766         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49767
49768 2007-02-04  Bruno Haible  <bruno@clisp.org>
49769
49770         Make use of gcj-4.3's -fsource and -ftarget option.
49771         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49772         and if so try the options -fsource and -ftarget.
49773         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49774         source_version, ftarget_option, target_version arguments.
49775         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49776         (is_envjavac_oldgcj_14_14_usable): Renamed from
49777         is_envjavac_gcj_14_14_usable.
49778         (is_envjavac_oldgcj_14_13_usable): Renamed from
49779         is_envjavac_gcj_14_13_usable.
49780         (is_gcj_present): Update.
49781         (is_gcj_43, is_gcj43_usable): New functions.
49782         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49783         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49784         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49785         try the options -fsource and -ftarget.
49786
49787 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49788
49789         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49790         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49791         larger value.
49792
49793 2007-02-03  Jim Meyering  <jim@meyering.net>
49794
49795         Give tools a better chance to allocate space for very large buffers.
49796         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49797
49798         Make pwd and readlink work also when run with an unreadable parent dir
49799         on systems with openat support.
49800         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49801         provided getcwd function, even when we have openat support.
49802         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49803
49804 2007-02-02  Bruno Haible  <bruno@clisp.org>
49805
49806         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49807         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49808         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49809         portability problems if one of these functions is only used on specific
49810         platforms.
49811         Reported by Paul Eggert.
49812
49813 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49814
49815         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49816         is causing more trouble than it's curing.
49817         * lib/regex_internal.h (__mempcpy): Remove.
49818         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49819         (and make the code a tad smaller to boot).
49820         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49821
49822 2007-02-02  Jim Meyering  <jim@meyering.net>
49823
49824         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49825         section, not in the Makefile.am: one.
49826
49827 2007-02-02  Eric Blake  <ebb9@byu.net>
49828
49829         * lib/strchrnul.c: Always include config.h first.
49830
49831         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49832         gnulib strstr is not necessary here.
49833
49834 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49835
49836         * m4/socklen.m4: Fix typo.
49837
49838 2007-02-02  Eric Blake  <ebb9@byu.net>
49839
49840         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49841         * modules/netinet_in (Makefile.am): Likewise.
49842
49843 2007-02-01  Bruno Haible  <bruno@clisp.org>
49844
49845         * lib/string_.h (GL_LINK_WARNING): New macro.
49846         (strcasecmp, strstr, strcasestr): If provided by the system,
49847         conditionally define as a macro that leads to a warning instead of to
49848         an error.
49849         (strncasecmp): Conditionally define as a macro that leads to a warning.
49850
49851 2007-02-01  Karl Berry  <karl@gnu.org>
49852
49853         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49854
49855 2007-02-01  Bruno Haible  <bruno@clisp.org>
49856
49857         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49858         renamings.
49859
49860 2007-02-01  Eric Blake  <ebb9@byu.net>
49861
49862         * modules/regex (Depends-on): Revert dependence on mempcpy.
49863         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49864         module's definition of mempcpy.
49865         Reported by Paul Eggert.
49866
49867 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49868
49869         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49870         the symbol XYZ before redefining it.  This fixes a problem with
49871         programs that don't use XYZ, when compiled on systems that define
49872         XYZ to something else.
49873
49874 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49877         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49878         writeable to group or other and (2) is intended to have a special
49879         mode bit that is set or cleared.  In such a case, the directory
49880         should be neither group- nor other-writeable until the special
49881         mode bits are right.
49882
49883 2007-01-31  Eric Blake  <ebb9@byu.net>
49884
49885         * modules/mountlist (Depends-on): Add strstr.
49886
49887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49888         bug.
49889         * modules/string (Makefile.am): Remove redundant replacement.
49890         * modules/regex (Depends-on): Add mempcpy.
49891
49892 2007-01-31  Bruno Haible  <bruno@clisp.org>
49893
49894         New module description field 'Link'.
49895         * gnulib-tool (func_usage): Document --extract-link-directive.
49896         (sed_extract_prog): Recognize 'Link' directive.
49897         (func_get_link_directive): New function.
49898         (func_import): Show summary of link directives.
49899         Handle --extract-link-directive option.
49900         * modules/acl (Link): New section.
49901         * modules/clock-time (Link): New section.
49902         * modules/euidaccess (Link): New section.
49903         * modules/gettext (Link): New section.
49904         * modules/iconv (Link): New section.
49905         * modules/lock (Link): New section.
49906         * modules/nanosleep (Link): New section.
49907         * modules/readline (Link): New section.
49908
49909 2007-01-27  Bruno Haible  <bruno@clisp.org>
49910
49911         Enforce the use of gnulib modules for unportable <string.h> functions.
49912         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49913         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49914         (gl_HEADER_STRING_H_BODY): Require it.
49915         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49916         the symbol XYZ to one that gives a link error.
49917         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49918         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49919         * modules/mempcpy (configure.ac): Likewise.
49920         * modules/memrchr (configure.ac): Likewise.
49921         * modules/stpcpy (configure.ac): Likewise.
49922         * modules/stpncpy (configure.ac): Likewise.
49923         * modules/strcase (configure.ac): Likewise.
49924         * modules/strcasestr (configure.ac): Likewise.
49925         * modules/strchrnul (configure.ac): Likewise.
49926         * modules/strdup (configure.ac): Likewise.
49927         * modules/strndup (configure.ac): Likewise.
49928         * modules/strnlen (configure.ac): Likewise.
49929         * modules/strpbrk (configure.ac): Likewise.
49930         * modules/strsep (configure.ac): Likewise.
49931         * modules/strstr (configure.ac): Likewise.
49932         * modules/strtok_r (configure.ac): Likewise.
49933
49934 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49935
49936         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49937
49938 2007-01-30  Jim Meyering  <jim@meyering.net>
49939
49940         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49941
49942 2007-01-29  Bruno Haible  <bruno@clisp.org>
49943
49944         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49945         * lib/execute.c: Likewise.
49946         * lib/pipe.c: Likewise.
49947         * lib/printf-args.h: Likewise.
49948         * lib/printf-args.c: Likewise.
49949         * lib/printf-parse.c: Likewise.
49950         * lib/vasnprintf.c: Likewise.
49951
49952 2007-01-29  Eric Blake  <ebb9@byu.net>
49953
49954         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49955         declaration.
49956
49957 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         * lib/strptime.h (strptime): Use 'restrict' for args where
49960         POSIX requires this.
49961         * lib/strptime.c (strptime): Likewise.
49962         Change license notice from LGPL to GPL, since gnulib-tool will
49963         change this as needed.
49964         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49965         defined.
49966         Include "strptime.h" first, to check interface.
49967         Do not #undef _LIBC and _NL_CURRENT.
49968         Do not include <stdlib.h>; no longer needed.
49969         Include "time_r.h" and declare ptime_locale_status
49970         only if _LIBC is not defined.
49971         (__P): Remove unused macro.
49972         (match_string): Bring back glibc version, but use it only if _LIBC
49973         is defined.
49974         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
49975         Remove unnecessary assertion and abort() call.
49976         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
49977         * m4/strptime.m4: Fix serial number comment.
49978         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
49979         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
49980         (Depends-on): Add time_r.
49981
49982 2007-01-29  Bruno Haible  <bruno@clisp.org>
49983
49984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49985         strptime.
49986         * modules/strptime (Depends-on): Add stdbool.
49987         * lib/strptime.h: Include <time.h> always. Add comments.
49988
49989 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49990
49991         * modules/strptime: New file.
49992         * lib/strptime.h: New file.
49993         * lib/strptime.c: New file.
49994         * m4/strptime.m4: New file.
49995
49996 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49997
49998         * MODULES.html.sh: New module mpsort.
49999         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
50000
50001         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
50002         a circularity problem with HP-UX ia64 reported by Bob Proulx in
50003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
50004         All uses changed.
50005         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
50006         All uses changed.
50007         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
50008         to _Restrict_.
50009         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
50010         the parameter matches the prototype.
50011
50012 2007-01-28  Jim Meyering  <jim@meyering.net>
50013
50014         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
50015         sys/time.h here, reverting that part of the previous patch:
50016         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
50017
50018 2007-01-28  Bruno Haible  <bruno@clisp.org>
50019
50020         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
50021         value of $(SYS_TIME_H).
50022         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
50023         remove it conditionally, too. [added by Jim Meyering]
50024         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
50025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50026         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
50027         GETTIMEOFDAY_REPLACEMENT to 1.
50028
50029 2007-01-28  Bruno Haible  <bruno@clisp.org>
50030
50031         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
50032         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
50033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
50034         Set UNISTD_H instead of UNISTD_H2.
50035         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
50036
50037 2007-01-28  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
50040         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
50041
50042 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50043
50044         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
50045         (func_create_testdir): Ensure C locale for `grep' and `tr'
50046         character ranges.
50047         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
50048         ACLOCAL_AMFLAGS parsing state machine.
50049
50050 2007-01-27  Bruno Haible  <bruno@clisp.org>
50051
50052         * modules/unistr/base: Update.
50053
50054 2007-01-27  Bruno Haible  <bruno@clisp.org>
50055
50056         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
50057         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
50058         * modules/unistr/u32-mbtouc-unsafe: Renamed from
50059         modules/unistr/u32-mbtouc.
50060         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
50061         * lib/unistr.h: Update.
50062         * lib/linebreak.c: Update.
50063         * modules/unistr/u32-mbtouc: Renamed from
50064         modules/unistr/u32-mbtouc-safe.
50065         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
50066         * lib/unistr.h: Update.
50067         * lib/unistr/u32-to-u8.c: Update.
50068         * lib/unistr/u32-to-u16.c: Update.
50069
50070 2007-01-27  Bruno Haible  <bruno@clisp.org>
50071
50072         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
50073         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
50074         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
50075         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
50076         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
50077         * modules/unistr/u16-mbtouc-unsafe: Renamed from
50078         modules/unistr/u16-mbtouc.
50079         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
50080         * lib/unistr.h: Update.
50081         * lib/linebreak.c: Update.
50082         * modules/linebreak: Update.
50083         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
50084         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
50085         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
50086         * modules/unistr/u16-mbtouc: Renamed from
50087         modules/unistr/u16-mbtouc-safe.
50088         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
50089         * lib/unistr.h: Update.
50090         * lib/unistr/u16-to-u8.c: Update.
50091         * modules/unistr/u16-to-u8: Update.
50092         * lib/unistr/u16-to-u32.c: Update.
50093         * modules/unistr/u16-to-u32: Update.
50094
50095 2007-01-27  Bruno Haible  <bruno@clisp.org>
50096
50097         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
50098         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
50099         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
50100         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
50101         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
50102         * modules/unistr/u8-mbtouc-unsafe: Renamed from
50103         modules/unistr/u8-mbtouc.
50104         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
50105         * lib/unistr.h: Update.
50106         * lib/striconveh.c: Update.
50107         * modules/striconveh: Update.
50108         * lib/linebreak.c: Update.
50109         * modules/linebreak: Update.
50110         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
50111         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
50112         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
50113         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
50114         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
50115         * lib/unistr.h: Update.
50116         * lib/striconveh.c: Update.
50117         * modules/striconveh: Update.
50118         * lib/unistr/u8-to-u16.c: Update.
50119         * modules/unistr/u8-to-u16: Update.
50120         * lib/unistr/u8-to-u32.c: Update.
50121         * modules/unistr/u8-to-u32: Update.
50122
50123 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50124
50125         Sync from Libtool.
50126         * lib/argz.c: Do not include strings.h nor memory.h, include
50127         string.h unconditionally.  Patch by Simon Josefsson.
50128
50129 2007-01-27  Bruno Haible  <bruno@clisp.org>
50130
50131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
50132         from gl_HEADER_STRING_H_BODY.
50133         (gl_HEADER_STRING_H_BODY): Require it.
50134         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
50135         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50136         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50137         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50139         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
50140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50141         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50142         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
50143         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50144         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50145         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
50146         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50147         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50148         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50149
50150 2007-01-27  Bruno Haible  <bruno@clisp.org>
50151
50152         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
50153         check_PROGRAMS into noinst_PROGRAMS.
50154         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
50155         check_PROGRAMS in this case.
50156         (func_import): Set for_test to false.
50157         (func_create_testdir): Set for_test to true.
50158
50159 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50160             Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/strcasestr (Files): Remove lib/strcasestr.h.
50163         (Depends-on): Add string.
50164         (Includes): Use <string.h> instead of strcasestr.h.
50165         * modules/string (Makefile.am): Also substitute the value of
50166         REPLACE_STRCASESTR.
50167         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
50168         assume strcasestr is declared in <string.h> not <strings.h>. Also
50169         set REPLACE_STRCASESTR.
50170         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
50171         REPLACE_STRCASESTR.
50172         * lib/strcasestr.h: Remove file.
50173         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
50174         * lib/string_.h (strcasestr): New declaration.
50175
50176 2007-01-27  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/string_.h: Use 'extern'.
50179
50180 2007-01-27  Jim Meyering  <jim@meyering.net>
50181
50182         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
50183         of set-but-not-used local, "q".
50184
50185         * lib/mempcpy.c: Include <config.h> before <string.h>.
50186         This fixes a compilation error on HP-UX, due to the system's
50187         "restrict"-using mempcpy prototype.
50188
50189 2007-01-26  Bruno Haible  <bruno@clisp.org>
50190
50191         Small optimization.
50192         * lib/javacomp.c: Include c-strstr.h.
50193          (is_envjavac_gcj): Use c_strstr instead of strstr.
50194         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
50195
50196 2007-01-26  Bruno Haible  <bruno@clisp.org>
50197
50198         * MODULES.html.sh (Unicode string functions): Add the new modules.
50199
50200         * modules/uniconv/u32-strconv-to-locale: New file.
50201         * lib/uniconv/u32-strconv-to-locale.c: New file.
50202
50203         * modules/uniconv/u16-strconv-to-locale: New file.
50204         * lib/uniconv/u16-strconv-to-locale.c: New file.
50205
50206         * modules/uniconv/u8-strconv-to-locale: New file.
50207         * lib/uniconv/u8-strconv-to-locale.c: New file.
50208
50209         * modules/uniconv/u32-strconv-from-locale: New file.
50210         * lib/uniconv/u32-strconv-from-locale.c: New file.
50211
50212         * modules/uniconv/u16-strconv-from-locale: New file.
50213         * lib/uniconv/u16-strconv-from-locale.c: New file.
50214
50215         * modules/uniconv/u8-strconv-from-locale: New file.
50216         * lib/uniconv/u8-strconv-from-locale.c: New file.
50217
50218         * modules/uniconv/u32-strconv-to-enc: New file.
50219         * lib/uniconv/u32-strconv-to-enc.c: New file.
50220         * modules/uniconv/u32-strconv-to-enc-tests: New file.
50221         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
50222
50223         * modules/uniconv/u16-strconv-to-enc: New file.
50224         * lib/uniconv/u16-strconv-to-enc.c: New file.
50225         * lib/uniconv/u-strconv-to-enc.h: New file.
50226         * modules/uniconv/u16-strconv-to-enc-tests: New file.
50227         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
50228
50229         * modules/uniconv/u8-strconv-to-enc: New file.
50230         * lib/uniconv/u8-strconv-to-enc.c: New file.
50231         * modules/uniconv/u8-strconv-to-enc-tests: New file.
50232         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
50233
50234         * modules/uniconv/u32-strconv-from-enc: New file.
50235         * lib/uniconv/u32-strconv-from-enc.c: New file.
50236         * modules/uniconv/u32-strconv-from-enc-tests: New file.
50237         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
50238
50239         * modules/uniconv/u16-strconv-from-enc: New file.
50240         * lib/uniconv/u16-strconv-from-enc.c: New file.
50241         * modules/uniconv/u16-strconv-from-enc-tests: New file.
50242         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
50243
50244         * modules/uniconv/u8-strconv-from-enc: New file.
50245         * lib/uniconv/u8-strconv-from-enc.c: New file.
50246         * lib/uniconv/u-strconv-from-enc.h: New file.
50247         * modules/uniconv/u8-strconv-from-enc-tests: New file.
50248         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
50249
50250         * modules/uniconv/u32-conv-from-enc: New file.
50251         * lib/uniconv/u32-conv-from-enc.c: New file.
50252         * modules/uniconv/u32-conv-from-enc-tests: New file.
50253         * tests/uniconv/test-u32-conv-from-enc.c: New file.
50254
50255         * modules/uniconv/u16-conv-from-enc: New file.
50256         * lib/uniconv/u16-conv-from-enc.c: New file.
50257         * lib/uniconv/u-conv-from-enc.h: New file.
50258         * modules/uniconv/u16-conv-from-enc-tests: New file.
50259         * tests/uniconv/test-u16-conv-from-enc.c: New file.
50260
50261         * modules/uniconv/u8-conv-from-enc: New file.
50262         * lib/uniconv/u8-conv-from-enc.c: New file.
50263         * modules/uniconv/u8-conv-from-enc-tests: New file.
50264         * tests/uniconv/test-u8-conv-from-enc.c: New file.
50265
50266         * modules/uniconv/base: New file.
50267         * lib/uniconv.h: New file.
50268
50269 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * doc/gnulib-tool.texi (Initial import): Update to match current
50272         behavior with strdup module.
50273         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
50274         * lib/memmem.h: Remove; all uses removed.  This is now done
50275         by <string.h>.
50276         * lib/mempcpy.h: Likewise.
50277         * lib/memrchr.h: Likewise.
50278         * lib/stpcpy.h: Likewise.
50279         * lib/stpncpy.h: Likewise.
50280         * lib/strcase.h: Likewise.
50281         * lib/strchrnul.h: Likewise.
50282         * lib/strdup.h: Likewise.
50283         * lib/strndup.h: Likewise.
50284         * lib/strnlen.h: Likewise.
50285         * lib/strpbrk.h: Likewise.
50286         * lib/strsep.h: Likewise.
50287         * lib/strstr.h: Likewise.
50288         * lib/strtok_r.h: Likewise.
50289         * lib/string_.h: New file.
50290         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
50291         Rely on <string.h> instead.
50292         * lib/canon-host.c: Likewise.
50293         * lib/chdir-long.c: Likewise.
50294         * lib/concatpath.c: Likewise.
50295         * lib/exclude.c: Likewise.
50296         * lib/fchdir.c: Likewise.
50297         * lib/getaddrinfo.c: Likewise.
50298         * lib/getcwd.c: Likewise.
50299         * lib/getsubopt.c: Likewise.
50300         * lib/glob.c: Likewise.
50301         * lib/hard-locale.c: Likewise.
50302         * lib/iconvme.c: Likewise.
50303         * lib/javacomp.c: Likewise.
50304         * lib/mempcpy.c: Likewise.
50305         * lib/memrchr.c: Likewise.
50306         * lib/regex_internal.h: Likewise.
50307         * lib/stpncpy.c: Likewise.
50308         * lib/strcasecmp.c: Likewise.
50309         * lib/strchrnul.c: Likewise.
50310         * lib/strdup.c: Likewise.
50311         * lib/striconv.c: Likewise.
50312         * lib/striconveh.c: Likewise.
50313         * lib/striconveha.c: Likewise.
50314         * lib/strncasecmp.c: Likewise.
50315         * lib/strndup.c: Likewise.
50316         * lib/strnlen.c: Likewise.
50317         * lib/strsep.c: Likewise.
50318         * lib/strstr.c: Likewise.
50319         * lib/strtok_r.c: Likewise.
50320         * lib/userspec.c: Likewise.
50321         * lib/w32spawn.h: Likewise.
50322         * lib/xstrndup.c: Likewise.
50323         * lib/mountlist.c (strstr): Remove decl.
50324         * m4/string_h.m4: New file.
50325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
50326         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
50327         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
50328         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
50329         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
50330         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
50331         Set REPLACE_STRCASECMP if necessary.
50332         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
50333         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
50334         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
50335         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
50336         HAVE_DECL_STRDUP if necessary.
50337         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
50338         since gl_FUNC_STRNDUP does that now.
50339         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
50340         Check for decl here...
50341         (gl_PREREQ_STRNLEN): ... not here.
50342         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
50343         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
50344         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
50345         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
50346         necessary.
50347         * modules/string: New file.
50348         * modules/memmem (Files): Remove special-purpose include file.
50349         (Depends-on): Add string.
50350         (Include): Include <string.h>, not the removed file.
50351         * modules/mempcpy: Likewise.
50352         * modules/memrchr: Likewise.
50353         * modules/stpcpy: Likewise.
50354         * modules/stpncpy: Likewise.
50355         * modules/strcase: Likewise.
50356         * modules/strchrnul: Likewise.
50357         * modules/strdup: Likewise.
50358         * modules/strndup: Likewise.
50359         * modules/strnlen: Likewise.
50360         * modules/strpbrk: Likewise.
50361         * modules/strsep: Likewise.
50362         * modules/strstr: Likewise.
50363         * modules/strtok_r: Likewise.
50364         * tests/test-dirname.c: Don't include "strdup.h", since
50365         <string.h> now suffices.
50366         * tests/test-memmem.c: Don't include "memmem.h", since
50367         <string.h> now suffices.
50368
50369 2007-01-25  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
50372         *resultp is 0.
50373
50374         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
50375         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
50376         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
50377         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
50378
50379         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
50380         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
50381         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
50382         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
50383         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
50384         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
50385
50386 2007-01-24  Bruno Haible  <bruno@clisp.org>
50387
50388         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
50389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
50390         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
50391         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
50392         gl_FUNC_FTS_CORE.
50393         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
50394         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
50395         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50396         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
50397         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
50398         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
50399         gl_FUNC_FCHOWNAT.
50400         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
50401         gl_FUNC_STRFTIME.
50402         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
50403         Reported by Ralf Wildenhues.
50404
50405 2007-01-24  Bruno Haible  <bruno@clisp.org>
50406
50407         Drop AC_REQUIRE calls that are redundant with the module dependencies.
50408         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
50409         gl_GETADDRINFO.
50410         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
50411         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
50412         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
50413
50414 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
50415
50416         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
50417         Don't use 'exit'; just return from 'main'.
50418         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
50419
50420         * lib/fnmatch_.h: Readjust white space and comments to match
50421         glibc, to avoid spurious diffs.
50422
50423 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
50426         2004-12-01 change by Jakub Jelinek, since this code won't compile
50427         if !LIBC.  Problem reported by Bob Proulx.
50428
50429 2007-01-23  Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/striconveh.c: Include c-strcaseeq.h.
50432         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
50433         * modules/striconveh (Depends-on): Add c-strcaseeq.
50434
50435 2007-01-23  Bruno Haible  <bruno@clisp.org>
50436
50437         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
50438
50439         * modules/c-strcaseeq: New file.
50440         * lib/c-strcaseeq.h: New file.
50441
50442         * modules/streq: New file.
50443         * lib/streq.h: New file.
50444
50445 2007-01-23  Bruno Haible  <bruno@clisp.org>
50446
50447         * modules/striconveha-tests: New file.
50448         * tests/test-striconveha.c: New file.
50449
50450         * lib/striconveha.h: Include <stdbool.h>.
50451         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
50452         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
50453         (mem_iconveha_notranslit): Renamed from mem_iconveha.
50454         (mem_iconveha): New function.
50455         (str_iconveha_notranslit): Renamed from str_iconveha.
50456         (str_iconveha): New function.
50457         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
50458         c-strcase.
50459
50460 2007-01-23  Bruno Haible  <bruno@clisp.org>
50461
50462         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
50463         encodings without forgiving before trying any encoding with handler.
50464         (str_iconveha): Try all encodings without forgiving before trying any
50465         encoding with handler.
50466
50467 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50468
50469         Import the following changes from libc.
50470
50471         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50472
50473         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
50474
50475         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50476
50477         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
50478         normal_bracket label.
50479
50480         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
50481
50482         [BZ #361]
50483         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
50484         to normal_bracket after fetching the next character.
50485
50486 2007-01-22  Bruno Haible  <bruno@clisp.org>
50487
50488         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
50489         argument.
50490         * lib/striconveh.c (iconv_carefully_1): New function.
50491         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
50492         argument.
50493         (str_cd_iconveh): Update.
50494         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
50495         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
50496         * tests/test-striconveh.c (MAGIC): New macro.
50497         (new_offsets): New function.
50498         (main): Test call with and without offsets.
50499
50500 2007-01-22  Bruno Haible  <bruno@clisp.org>
50501
50502         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
50503         * modules/sys_select (Makefile.am): Likewise.
50504         * modules/sys_socket (Makefile.am): Likewise.
50505         * modules/sys_time (Makefile.am): Likewise.
50506
50507 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50508
50509         * modules/gettimeofday (License): Change from GPL to LGPL, since
50510         gettimeofday is a library function.
50511
50512 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50513
50514         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
50515
50516 2007-01-21  Bruno Haible  <bruno@clisp.org>
50517
50518         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
50519
50520 2007-01-21  Bruno Haible  <bruno@clisp.org>
50521
50522         * modules/striconveha: New file.
50523         * lib/striconveha.h: New file.
50524         * lib/striconveha.c: New file.
50525         * MODULES.html.sh (Internationalization functions): Add striconveha.
50526         * lib/striconv.c (str_iconv): Optimize the case of an empty input
50527         string.
50528         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
50529
50530 2007-01-21  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
50533         * lib/striconveh.c (str_iconveh): Likewise.
50534
50535 2007-01-21  Bruno Haible  <bruno@clisp.org>
50536
50537         * lib/striconveh.h (mem_iconveh): New declaration.
50538         * lib/striconveh.c (mem_iconveh): New function.
50539         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
50540
50541 2007-01-21  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
50544
50545         * lib/striconveh.h (mem_cd_iconveh): Change specification.
50546         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
50547         original result buffer.
50548         (str_cd_iconveh): Update.
50549         * tests/test-striconveh.c (main): Update.
50550
50551         * lib/striconv.h (mem_cd_iconv): Change specification.
50552         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
50553         result buffer.
50554         (str_cd_iconv): Update.
50555         * tests/test-striconv.c (main): Update.
50556
50557 2007-01-21  Bruno Haible  <bruno@clisp.org>
50558
50559         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
50560
50561 2007-01-20  Jim Meyering  <jim@meyering.net>
50562
50563         * lib/userspec.c (parse_with_separator): If a user or group string
50564         starts with "+", skip the corresponding name-to-ID look-up, since
50565         such a look-up must fail: user and group names may not include "+".
50566
50567 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         * lib/poll.c: Include sys/time.h and time.h unconditionally,
50570         since we now assume the sys_time module.
50571         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
50572         check for sys/time.h; no longer needed.
50573         * modules/poll (Depends-on): Depend on sys_time.
50574
50575 2007-01-18  Bruno Haible  <bruno@clisp.org>
50576
50577         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
50578         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50579
50580         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
50581         gettimeofday.
50582
50583         * tests/test-gettimeofday.c: Include <time.h>.
50584         (dummy): Remove variable.
50585
50586         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
50587         gl_HEADER_SYS_TIME_H.
50588         (gl_HEADER_SYS_TIME_H): New macro.
50589
50590         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
50591         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50592         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50593         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
50594         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50595         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
50596         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
50597         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50598         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
50599         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
50600         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50601
50602         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
50603         last change; it caused a compilation error when cross-compiling to
50604         Cygwin.
50605
50606 2007-01-18  Jim Meyering  <jim@meyering.net>
50607
50608         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
50609         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
50610         than the race-prone "test -d sys || mkdir sys".
50611         (configure.ac): Use AC_PROG_MKDIR_P.
50612         * modules/sys_select: Likewise.
50613         * modules/sys_socket: Likewise.
50614         * modules/sys_time: Likewise.
50615
50616 2007-01-18  Eric Blake  <ebb9@byu.net>
50617
50618         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
50619         replace gettimeofday.
50620         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
50621         name, to avoid infinite recursion.
50622
50623 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
50626         module sys_time.
50627         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
50628         assume timespec.h defines struct timeval.
50629         * lib/settime.c: Likewise.
50630         * lib/utimens.c: Likewise.
50631         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
50632         since we now assume the gettimeofday module.
50633         * lib/tempname.c (__gen_tempname): Likewise.
50634         * lib/gettimeofday.h: Remove.
50635         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
50636         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
50637         Include <time.h>, for 'time()'.
50638         (localtime_buffer_addr): Also use this workaround if
50639         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
50640         to simplify the uses.  All uses changed.
50641         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
50642         that #undef is inside {}, and 'const' follows type name consistently.
50643         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
50644         (gettimeofday): Do not use the maximum possible value for
50645         tv->tv_usec, since that might break usages other than ls.c.
50646         Instead, we'll leave ls.c alone.  This undoes today's patch
50647         by Bruno.  Add a compile-time warning for 1s-clock resolution;
50648         we've never observed the problem but might as well keep the
50649         canary.
50650         * lib/nanosleep.c: Include timespec.h first, for interface check.
50651         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
50652         now assume the sys_time module.
50653         * lib/tempname.c: Likewise.
50654         * lib/timespec.h: Likewise.
50655         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
50656         needed.
50657         * lib/strftime.c: Likewise.
50658         * lib/timespec.h: Likewise.
50659         * lib/posixtm.c: Include posixtm.h first, for interface check.
50660         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
50661         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
50662         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
50663         * lib/sys_time_.h: New file.
50664         * lib/timespec.h (struct timespec): Use long int, not long.
50665         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50666         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
50667         Remove obsolescent call to AC_HEADER_TIME.
50668         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50670         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50671         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
50672         Likewise.
50673         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
50674         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
50675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
50676         into the sys_time module.  Check for gettimeofday just once.
50677         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
50678         for gettimeofday signature to just check the signature.  Merely
50679         compile it, since linking doesn't test signature.  Improve test for
50680         whether gettimeofday.o is actually needed.
50681         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
50682         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
50683         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
50684         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50685         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
50686         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
50687         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
50688         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
50689         than worrying about sys/time.h.
50690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50691         Don't bother worrying about TIME_WITH_SYS_TIME.
50692         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
50693         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
50694         * m4/sys_time_h.m4: New file.
50695         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
50696         Don't include sys/time.h.  Return from main rather than exiting.
50697         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
50698         all uses changed.
50699         * modules/gethrxtime (Depends-on): Add sys_time.
50700         * modules/gettime (Depends-on): Likewise.
50701         * modules/gettimeofday (Depends-on): Likewise.
50702         * modules/nanosleep (Depends-on): Likewise.
50703         * modules/settime (Depends-on): Likewise.
50704         * modules/tempname (Depends-on): Likewise.
50705         * modules/utimens (Depends-on): Likewise.
50706         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
50707         (Include:) Change back to <sys/time.h>.
50708         (Maintainer:) Add self.
50709         * modules/sys_time: New file.
50710         * modules/tempname (Depends-on): Add gettimeofday.
50711         * tests/test-gettimeofday.c: Include <sys/time.h>
50712         rather than gettimeofday.h.
50713
50714 2007-01-17  Bruno Haible  <bruno@clisp.org>
50715
50716         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50717         the license default to GPL.
50718         (func_create_testdir): Don't complain if a module is LGPL and its
50719         tests module depends on GPLed modules.
50720
50721 2007-01-17  Bruno Haible  <bruno@clisp.org>
50722
50723         * lib/gettimeofday.c (gettimeofday): Add code for the case
50724         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50725         maximum possible value for tv->tv_usec, rather than the minimum one.
50726
50727 2005-10-08  Martin Lambers  <marlam@marlam.de>
50728 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50729 2007-01-16  Bruno Haible  <bruno@clisp.org>
50730
50731         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50732         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50733         gl_FUNC_GETTIMEOFDAY.
50734         (Include): Add gettimeofday.h.
50735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50736         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50737         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50738         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50739         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50740         * lib/gettimeofday.h: New file.
50741         * lib/gettimeofday.c: Include <sys/timeb.h>.
50742         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50743         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50744         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50745         fall back on time().
50746
50747         * tests/test-gettimeofday.c: New file.
50748         * modules/gettimeofday-tests: New file.
50749
50750 2007-01-16  Eric Blake  <ebb9@byu.net>
50751
50752         * modules/fnmatch (Depends-on): Depend on wchar.
50753         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50754         * m4/fnmatch.m4: Likewise.
50755         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50756         * m4/mbchar.m4: Likewise.
50757         * modules/mbswidth (Depends-on): Depend on wchar.
50758         * lib/mbswidth.c: Assume <wchar.h>.
50759         * m4/mbswidth.m4: Likewise.
50760         * modules/quotearg (Depends-on): Depend on wchar.
50761         * lib/quotearg.c: Assume <wchar.h>.
50762         * m4/quotearg.m4: Likewise.
50763         * modules/regex (Depends-on): Depend on wchar.
50764         * lib/regex_internal.h: Assume <wchar.h>.
50765         * m4/regex.m4: Likewise.
50766         * modules/stdint (Depends-on): Depend on wchar.
50767         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50768         * m4/stdint.m4: Likewise.
50769         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50770         * modules/strftime (Depends-on): Depend on wchar.
50771         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50772         * modules/strtol (Depends-on): Depend on wchar.
50773         * lib/strtol.c: Assume <wchar.h>.
50774         * modules/wcwidth (Depends-on): Depend on wchar.
50775         * lib/wcwidth.h: Assume <wchar.h>.
50776         * m4/wcwidth.m4: Likewise.
50777
50778 2007-01-16  Bruno Haible  <bruno@clisp.org>
50779
50780         * modules/csharpexec-script: New, created from...
50781         * modules/csharpexec: ... this.
50782
50783 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50784
50785         * modules/javaexec-script: New, created from...
50786         * modules/javaexec: ... this.
50787
50788 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50789
50790         * modules/poll (Dependencies): Add sys_select.
50791
50792 2007-01-15  Jim Meyering  <jim@meyering.net>
50793
50794         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50795         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50796         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50797         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50798
50799 2007-01-15  Bruno Haible  <bruno@clisp.org>
50800
50801         * modules/striconveh: New file.
50802         * lib/striconveh.h: New file.
50803         * lib/striconveh.c: New file.
50804         * MODULES.html.sh (Internationalization functions): Add striconveh.
50805
50806         * modules/striconveh-tests: New file.
50807         * tests/test-striconveh.c: New file.
50808
50809 2007-01-15  Bruno Haible  <bruno@clisp.org>
50810
50811         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50812         not from GNU libiconv or GNU libc.
50813
50814 2007-01-15  Bruno Haible  <bruno@clisp.org>
50815
50816         * doc/gnulib-intro.texi (Copyright): Explain the different license
50817         terms for module descriptions, autoconf macros, tests, documentation.
50818
50819 2007-01-14  Bruno Haible  <bruno@clisp.org>
50820
50821         * modules/striconv-tests: New file.
50822         * tests/test-striconv.c: New file.
50823
50824 2007-01-14  Bruno Haible  <bruno@clisp.org>
50825
50826         * modules/iconv-tests: New file.
50827         * tests/test-iconv.c: New file.
50828
50829 2007-01-14  Bruno Haible  <bruno@clisp.org>
50830
50831         * gnulib-tool (func_get_license): For test modules, use the license of
50832         the main module.
50833
50834 2007-01-14  Bruno Haible  <bruno@clisp.org>
50835
50836         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50837         if iconv is found to exist.
50838
50839 2007-01-14  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/c-ctype-tests: New file.
50842         * tests/test-c-ctype.c: New file.
50843
50844 2007-01-14  Bruno Haible  <bruno@clisp.org>
50845
50846         * modules/binary-io-tests: New file.
50847         * tests/test-binary-io.sh: New file.
50848         * tests/test-binary-io.c: New file.
50849
50850 2007-01-14  Bruno Haible  <bruno@clisp.org>
50851
50852         * modules/array-oset-tests: New file.
50853         * tests/test-array_oset.c: New file.
50854
50855 2007-01-14  Bruno Haible  <bruno@clisp.org>
50856
50857         * modules/array-list-tests: New file.
50858         * tests/test-array_list.c: New file.
50859
50860 2007-01-14  Bruno Haible  <bruno@clisp.org>
50861
50862         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50863         and make.
50864         Reported by Simon Josefsson in
50865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50866
50867 2007-01-14  Bruno Haible  <bruno@clisp.org>
50868
50869         * modules/allocsa-tests: New file.
50870         * tests/test-allocsa.c: New file.
50871
50872 2007-01-14  Bruno Haible  <bruno@clisp.org>
50873
50874         * modules/fchdir (Depends-on): Add absolute-header.
50875         * modules/unistd (Depends-on): Likewise.
50876
50877 2006-12-30  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/fchdir: New file.
50880         * modules/unistd (Files): Add lib/unistd_.h.
50881         (Makefile.am): Generate unistd.h from unistd_.h.
50882         * lib/fchdir.c: New file.
50883         * lib/dirent_.h: New file.
50884         * lib/unistd_.h: New file.
50885         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50886         * m4/fchdir.m4: New file.
50887         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50888         (gl_HEADER_UNISTD): Invoke it.
50889         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50890         function.
50891         * lib/backupfile.c (opendir, closedir): Undefine.
50892         * lib/chown.c (open, close): Undefine.
50893         * lib/clean-temp.c (open, close): Undefine.
50894         * lib/copy-file.c (open, close): Undefine.
50895         * lib/execute.c (open, close): Undefine.
50896         * lib/fsusage.c (open, close): Undefine.
50897         * lib/gc-gnulib.c (open, close): Undefine.
50898         * lib/getcwd.c (opendir, closedir): Undefine.
50899         * lib/glob.c (opendir, closedir): Undefine.
50900         * lib/javacomp.c (open, close): Undefine.
50901         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50902         * lib/openat-proc.c (open, close): Undefine.
50903         * lib/pagealign_alloc.c (open, close): Undefine.
50904         * lib/pipe.c (open, close): Undefine.
50905         * lib/progreloc.c (open, close): Undefine.
50906         * lib/savedir.c (opendir, closedir): Undefine.
50907         * lib/utime.c (open, close): Undefine.
50908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50909
50910 2007-01-10  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50913
50914 2007-01-12  Eric Blake  <ebb9@byu.net>
50915
50916         Provide a robust <wchar.h>.  Further simplifications are now
50917         possible in other modules, but not included here.
50918         * modules/wchar: New module.
50919         * m4/wchar.m4: New file.
50920         * lib/wchar_.h: Likewise.
50921         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50922         of the new module.
50923         * MODULES.html.sh (Extended multibyte and wide character utilities):
50924         New section.
50925
50926 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50927
50928         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50929         to a reasonable default for memory allocation.
50930         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50931         file system that reports garbage st_size values for symlinks.
50932         Problem reported by Liyang Hu.
50933
50934 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50935
50936         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50937         Emacs .#* auto-save files).
50938
50939 2007-01-11  Bruno Haible  <bruno@clisp.org>
50940
50941         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50942         directory.
50943
50944 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50945
50946         Use @...@ consistently in lib/wctype_.h.
50947         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50948         on it being set to 1 or 0.
50949         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50950         go back to AC_SUBSTing it.
50951         * modules/wctype (Makefile.am): Undo previous change.
50952
50953 2007-01-10  Eric Blake  <ebb9@byu.net>
50954
50955         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50956         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50957         * modules/wctype (Makefile.am): Likewise.
50958         Reported by Chris McGuire.
50959
50960 2007-01-10  Jim Meyering  <jim@meyering.net>
50961
50962         fts.c: a small readability/maintainability improvement
50963         * lib/fts.c (fts_read): Make this code slightly more readable and
50964         maintainable by hoisting the "sp->fts_cur = p" assignments to
50965         immediately follow the statements that set P.  Derived from
50966         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50967
50968 2007-01-10  Eric Blake  <ebb9@byu.net>
50969
50970         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
50971         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
50972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50973         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50974         Reported by Chris McGuire.
50975
50976 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50977
50978         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
50979         in sed script.
50980
50981 2007-01-09  Bruno Haible  <bruno@clisp.org>
50982
50983         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
50984         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
50985         variables.
50986         (func_module): Use them.
50987
50988 2007-01-09  Bruno Haible  <bruno@clisp.org>
50989
50990         * modules/unistr/base: New file.
50991         * lib/unistr.h: New file.
50992
50993         * modules/unistr/u8-to-u16: New file.
50994         * lib/unistr/u8-to-u16.c: New file.
50995
50996         * modules/unistr/u8-to-u32: New file.
50997         * lib/unistr/u8-to-u32.c: New file.
50998
50999         * modules/unistr/u16-to-u8: New file.
51000         * lib/unistr/u16-to-u8.c: New file.
51001
51002         * modules/unistr/u16-to-u32: New file.
51003         * lib/unistr/u16-to-u32.c: New file.
51004
51005         * modules/unistr/u32-to-u8: New file.
51006         * lib/unistr/u32-to-u8.c: New file.
51007
51008         * modules/unistr/u32-to-u16: New file.
51009         * lib/unistr/u32-to-u16.c: New file.
51010
51011         * modules/unistr/u8-check: New file.
51012         * modules/unistr/u16-check: New file.
51013         * modules/unistr/u32-check: New file.
51014         * lib/unistr/u8-check.c: New file.
51015         * lib/unistr/u16-check.c: New file.
51016         * lib/unistr/u32-check.c: New file.
51017
51018         * modules/unistr/u8-chr: New file.
51019         * modules/unistr/u16-chr: New file.
51020         * modules/unistr/u32-chr: New file.
51021         * lib/unistr/u8-chr.c: New file.
51022         * lib/unistr/u16-chr.c: New file.
51023         * lib/unistr/u32-chr.c: New file.
51024
51025         * modules/unistr/u8-cmp: New file.
51026         * modules/unistr/u16-cmp: New file.
51027         * modules/unistr/u32-cmp: New file.
51028         * lib/unistr/u8-cmp.c: New file.
51029         * lib/unistr/u16-cmp.c: New file.
51030         * lib/unistr/u32-cmp.c: New file.
51031
51032         * modules/unistr/u8-cpy: New file.
51033         * modules/unistr/u16-cpy: New file.
51034         * modules/unistr/u32-cpy: New file.
51035         * lib/unistr/u8-cpy.c: New file.
51036         * lib/unistr/u16-cpy.c: New file.
51037         * lib/unistr/u32-cpy.c: New file.
51038         * lib/unistr/u-cpy.h: New file.
51039
51040         * modules/unistr/u8-cpy-alloc: New file.
51041         * modules/unistr/u16-cpy-alloc: New file.
51042         * modules/unistr/u32-cpy-alloc: New file.
51043         * lib/unistr/u8-cpy-alloc.c: New file.
51044         * lib/unistr/u16-cpy-alloc.c: New file.
51045         * lib/unistr/u32-cpy-alloc.c: New file.
51046         * lib/unistr/u-cpy-alloc.h: New file.
51047
51048         * modules/unistr/u8-endswith: New file.
51049         * modules/unistr/u16-endswith: New file.
51050         * modules/unistr/u32-endswith: New file.
51051         * lib/unistr/u8-endswith.c: New file.
51052         * lib/unistr/u16-endswith.c: New file.
51053         * lib/unistr/u32-endswith.c: New file.
51054         * lib/unistr/u-endswith.h: New file.
51055
51056         * modules/unistr/u8-mblen: New file.
51057         * modules/unistr/u16-mblen: New file.
51058         * modules/unistr/u32-mblen: New file.
51059         * lib/unistr/u8-mblen.c: New file.
51060         * lib/unistr/u16-mblen.c: New file.
51061         * lib/unistr/u32-mblen.c: New file.
51062
51063         * modules/unistr/u8-mbtouc: New file.
51064         * modules/unistr/u16-mbtouc: New file.
51065         * modules/unistr/u32-mbtouc: New file.
51066         * lib/unistr/u8-mbtouc.c: New file.
51067         * lib/unistr/u16-mbtouc.c: New file.
51068         * lib/unistr/u32-mbtouc.c: New file.
51069
51070         * modules/unistr/u8-mbtouc-safe: New file.
51071         * modules/unistr/u16-mbtouc-safe: New file.
51072         * modules/unistr/u32-mbtouc-safe: New file.
51073         * lib/unistr/u8-mbtouc-safe.c: New file.
51074         * lib/unistr/u16-mbtouc-safe.c: New file.
51075         * lib/unistr/u32-mbtouc-safe.c: New file.
51076
51077         * modules/unistr/u8-move: New file.
51078         * modules/unistr/u16-move: New file.
51079         * modules/unistr/u32-move: New file.
51080         * lib/unistr/u8-move.c: New file.
51081         * lib/unistr/u16-move.c: New file.
51082         * lib/unistr/u32-move.c: New file.
51083         * lib/unistr/u-move.h: New file.
51084
51085         * modules/unistr/u8-next: New file.
51086         * modules/unistr/u16-next: New file.
51087         * modules/unistr/u32-next: New file.
51088         * lib/unistr/u8-next.c: New file.
51089         * lib/unistr/u16-next.c: New file.
51090         * lib/unistr/u32-next.c: New file.
51091
51092         * modules/unistr/u8-prev: New file.
51093         * modules/unistr/u16-prev: New file.
51094         * modules/unistr/u32-prev: New file.
51095         * lib/unistr/u8-prev.c: New file.
51096         * lib/unistr/u16-prev.c: New file.
51097         * lib/unistr/u32-prev.c: New file.
51098
51099         * modules/unistr/u8-set: New file.
51100         * modules/unistr/u16-set: New file.
51101         * modules/unistr/u32-set: New file.
51102         * lib/unistr/u8-set.c: New file.
51103         * lib/unistr/u16-set.c: New file.
51104         * lib/unistr/u32-set.c: New file.
51105         * lib/unistr/u-set.h: New file.
51106
51107         * modules/unistr/u8-startswith: New file.
51108         * modules/unistr/u16-startswith: New file.
51109         * modules/unistr/u32-startswith: New file.
51110         * lib/unistr/u8-startswith.c: New file.
51111         * lib/unistr/u16-startswith.c: New file.
51112         * lib/unistr/u32-startswith.c: New file.
51113         * lib/unistr/u-startswith.h: New file.
51114
51115         * modules/unistr/u8-stpcpy: New file.
51116         * modules/unistr/u16-stpcpy: New file.
51117         * modules/unistr/u32-stpcpy: New file.
51118         * lib/unistr/u8-stpcpy.c: New file.
51119         * lib/unistr/u16-stpcpy.c: New file.
51120         * lib/unistr/u32-stpcpy.c: New file.
51121         * lib/unistr/u-stpcpy.h: New file.
51122
51123         * modules/unistr/u8-stpncpy: New file.
51124         * modules/unistr/u16-stpncpy: New file.
51125         * modules/unistr/u32-stpncpy: New file.
51126         * lib/unistr/u8-stpncpy.c: New file.
51127         * lib/unistr/u16-stpncpy.c: New file.
51128         * lib/unistr/u32-stpncpy.c: New file.
51129         * lib/unistr/u-stpncpy.h: New file.
51130
51131         * modules/unistr/u8-strcat: New file.
51132         * modules/unistr/u16-strcat: New file.
51133         * modules/unistr/u32-strcat: New file.
51134         * lib/unistr/u8-strcat.c: New file.
51135         * lib/unistr/u16-strcat.c: New file.
51136         * lib/unistr/u32-strcat.c: New file.
51137         * lib/unistr/u-strcat.h: New file.
51138
51139         * modules/unistr/u8-strchr: New file.
51140         * modules/unistr/u16-strchr: New file.
51141         * modules/unistr/u32-strchr: New file.
51142         * lib/unistr/u8-strchr.c: New file.
51143         * lib/unistr/u16-strchr.c: New file.
51144         * lib/unistr/u32-strchr.c: New file.
51145
51146         * modules/unistr/u8-strcmp: New file.
51147         * modules/unistr/u16-strcmp: New file.
51148         * modules/unistr/u32-strcmp: New file.
51149         * lib/unistr/u8-strcmp.c: New file.
51150         * lib/unistr/u16-strcmp.c: New file.
51151         * lib/unistr/u32-strcmp.c: New file.
51152
51153         * modules/unistr/u8-strcpy: New file.
51154         * modules/unistr/u16-strcpy: New file.
51155         * modules/unistr/u32-strcpy: New file.
51156         * lib/unistr/u8-strcpy.c: New file.
51157         * lib/unistr/u16-strcpy.c: New file.
51158         * lib/unistr/u32-strcpy.c: New file.
51159         * lib/unistr/u-strcpy.h: New file.
51160
51161         * modules/unistr/u8-strcspn: New file.
51162         * modules/unistr/u16-strcspn: New file.
51163         * modules/unistr/u32-strcspn: New file.
51164         * lib/unistr/u8-strcspn.c: New file.
51165         * lib/unistr/u16-strcspn.c: New file.
51166         * lib/unistr/u32-strcspn.c: New file.
51167         * lib/unistr/u-strcspn.h: New file.
51168
51169         * modules/unistr/u8-strdup: New file.
51170         * modules/unistr/u16-strdup: New file.
51171         * modules/unistr/u32-strdup: New file.
51172         * lib/unistr/u8-strdup.c: New file.
51173         * lib/unistr/u16-strdup.c: New file.
51174         * lib/unistr/u32-strdup.c: New file.
51175         * lib/unistr/u-strdup.h: New file.
51176
51177         * modules/unistr/u8-strlen: New file.
51178         * modules/unistr/u16-strlen: New file.
51179         * modules/unistr/u32-strlen: New file.
51180         * lib/unistr/u8-strlen.c: New file.
51181         * lib/unistr/u16-strlen.c: New file.
51182         * lib/unistr/u32-strlen.c: New file.
51183         * lib/unistr/u-strlen.h: New file.
51184
51185         * modules/unistr/u8-strmblen: New file.
51186         * modules/unistr/u16-strmblen: New file.
51187         * modules/unistr/u32-strmblen: New file.
51188         * lib/unistr/u8-strmblen.c: New file.
51189         * lib/unistr/u16-strmblen.c: New file.
51190         * lib/unistr/u32-strmblen.c: New file.
51191
51192         * modules/unistr/u8-strmbtouc: New file.
51193         * modules/unistr/u16-strmbtouc: New file.
51194         * modules/unistr/u32-strmbtouc: New file.
51195         * lib/unistr/u8-strmbtouc.c: New file.
51196         * lib/unistr/u16-strmbtouc.c: New file.
51197         * lib/unistr/u32-strmbtouc.c: New file.
51198
51199         * modules/unistr/u8-strncat: New file.
51200         * modules/unistr/u16-strncat: New file.
51201         * modules/unistr/u32-strncat: New file.
51202         * lib/unistr/u8-strncat.c: New file.
51203         * lib/unistr/u16-strncat.c: New file.
51204         * lib/unistr/u32-strncat.c: New file.
51205         * lib/unistr/u-strncat.h: New file.
51206
51207         * modules/unistr/u8-strncmp: New file.
51208         * modules/unistr/u16-strncmp: New file.
51209         * modules/unistr/u32-strncmp: New file.
51210         * lib/unistr/u8-strncmp.c: New file.
51211         * lib/unistr/u16-strncmp.c: New file.
51212         * lib/unistr/u32-strncmp.c: New file.
51213
51214         * modules/unistr/u8-strncpy: New file.
51215         * modules/unistr/u16-strncpy: New file.
51216         * modules/unistr/u32-strncpy: New file.
51217         * lib/unistr/u8-strncpy.c: New file.
51218         * lib/unistr/u16-strncpy.c: New file.
51219         * lib/unistr/u32-strncpy.c: New file.
51220         * lib/unistr/u-strncpy.h: New file.
51221
51222         * modules/unistr/u8-strnlen: New file.
51223         * modules/unistr/u16-strnlen: New file.
51224         * modules/unistr/u32-strnlen: New file.
51225         * lib/unistr/u8-strnlen.c: New file.
51226         * lib/unistr/u16-strnlen.c: New file.
51227         * lib/unistr/u32-strnlen.c: New file.
51228         * lib/unistr/u-strnlen.h: New file.
51229
51230         * modules/unistr/u8-strpbrk: New file.
51231         * modules/unistr/u16-strpbrk: New file.
51232         * modules/unistr/u32-strpbrk: New file.
51233         * lib/unistr/u8-strpbrk.c: New file.
51234         * lib/unistr/u16-strpbrk.c: New file.
51235         * lib/unistr/u32-strpbrk.c: New file.
51236         * lib/unistr/u-strpbrk.h: New file.
51237
51238         * modules/unistr/u8-strrchr: New file.
51239         * modules/unistr/u16-strrchr: New file.
51240         * modules/unistr/u32-strrchr: New file.
51241         * lib/unistr/u8-strrchr.c: New file.
51242         * lib/unistr/u16-strrchr.c: New file.
51243         * lib/unistr/u32-strrchr.c: New file.
51244
51245         * modules/unistr/u8-strspn: New file.
51246         * modules/unistr/u16-strspn: New file.
51247         * modules/unistr/u32-strspn: New file.
51248         * lib/unistr/u8-strspn.c: New file.
51249         * lib/unistr/u16-strspn.c: New file.
51250         * lib/unistr/u32-strspn.c: New file.
51251         * lib/unistr/u-strspn.h: New file.
51252
51253         * modules/unistr/u8-strstr: New file.
51254         * modules/unistr/u16-strstr: New file.
51255         * modules/unistr/u32-strstr: New file.
51256         * lib/unistr/u8-strstr.c: New file.
51257         * lib/unistr/u16-strstr.c: New file.
51258         * lib/unistr/u32-strstr.c: New file.
51259         * lib/unistr/u-strstr.h: New file.
51260
51261         * modules/unistr/u8-strtok: New file.
51262         * modules/unistr/u16-strtok: New file.
51263         * modules/unistr/u32-strtok: New file.
51264         * lib/unistr/u8-strtok.c: New file.
51265         * lib/unistr/u16-strtok.c: New file.
51266         * lib/unistr/u32-strtok.c: New file.
51267         * lib/unistr/u-strtok.h: New file.
51268
51269         * modules/unistr/u8-uctomb: New file.
51270         * modules/unistr/u16-uctomb: New file.
51271         * modules/unistr/u32-uctomb: New file.
51272         * lib/unistr/u8-uctomb.c: New file.
51273         * lib/unistr/u16-uctomb.c: New file.
51274         * lib/unistr/u32-uctomb.c: New file.
51275
51276         * MODULES.html.sh (Unicode string functions): Add the new modules.
51277
51278 2007-01-08  Bruno Haible  <bruno@clisp.org>
51279
51280         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
51281         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
51282         subdirectories.
51283
51284 2007-01-08  Karl Berry  <karl@gnu.org>
51285
51286         * doc/error.texi: mention that main() fns must set program_name
51287         when progname is used.
51288
51289 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
51290
51291         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
51292         WCTYPE_H is empty, for the benefit of builds from non-distclean
51293         directories.  Problem reported by Eric Blake in
51294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
51295
51296 2007-01-08  Bruno Haible  <bruno@clisp.org>
51297
51298         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
51299         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
51300         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
51301         PROVIDE_CANONICALIZE_FILENAME_MODE.
51302         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
51303
51304 2007-01-08  Bruno Haible  <bruno@clisp.org>
51305
51306         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
51307         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
51308         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
51309         * lib/fts.c: Likewise.
51310         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
51311
51312 2006-12-25  Bruno Haible  <bruno@clisp.org>
51313
51314         * modules/utf8-ucs4-safe: New file.
51315         * lib/utf8-ucs4-safe.h: New file.
51316         * lib/unistr/utf8-ucs4-safe.c: New file.
51317
51318         * modules/utf16-ucs4-safe: New file.
51319         * lib/utf16-ucs4-safe.h: New file.
51320         * lib/unistr/utf16-ucs4-safe.c: New file.
51321
51322         * MODULES.html.sh (Unicode string functions): Add the new modules.
51323
51324 2007-01-08  Bruno Haible  <bruno@clisp.org>
51325
51326         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
51327         (Depends-on): Add unitypes.
51328         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51329         (u8_mbtouc_aux): Move out to separate file.
51330         (u8_mbtouc): Use ucs4_t, uint8_t types.
51331         * lib/unistr/utf8-ucs4.c: New file.
51332
51333         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
51334         (Depends-on): Add unitypes.
51335         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51336         (u16_mbtouc_aux): Move out to separate file.
51337         (u16_mbtouc): Use ucs4_t, uint16_t types.
51338         * lib/unistr/utf16-ucs4.c: New file.
51339
51340         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
51341         (Depends-on): Add unitypes.
51342         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
51343         (u8_uctomb_aux): Move out to separate file.
51344         (u8_uctomb): Use ucs4_t, uint8_t types.
51345         * lib/unistr/ucs4-utf8.c: New file.
51346
51347         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
51348         (Depends-on): Add unitypes.
51349         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
51350         (u16_uctomb_aux): Move out to separate file.
51351         (u16_uctomb): Use ucs4_t, uint16_t types.
51352         * lib/unistr/ucs4-utf16.c: New file.
51353
51354 2006-12-25  Bruno Haible  <bruno@clisp.org>
51355
51356         * modules/unitypes: New file.
51357         * lib/unitypes.h: New file.
51358         * MODULES.html.sh (func_all_modules): New section "Unicode string
51359         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
51360         this section. Add unitypes.
51361
51362 2007-01-08  Bruno Haible  <bruno@clisp.org>
51363
51364         Avoid variable names that conflict with those from libtool.
51365         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
51366         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
51367         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
51368         library_names_spec to acl_library_names_spec, hardcode_* to
51369         acl_hardcode_*.
51370         Reported by Ralf Wildenhues.
51371
51372 2007-01-08  Bruno Haible  <bruno@clisp.org>
51373
51374         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
51375         definition.
51376         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
51377         definition.
51378         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
51379         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
51380         definition.
51381         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
51382         definition.
51383         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
51384         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
51385         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
51386         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
51387         definition.
51388         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
51389         definition.
51390         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
51391         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
51392         GC_USE_<algorithm>.
51393         * lib/gc-libgcrypt.c: Likewise.
51394         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
51395         * modules/gc-arctwo (configure.ac): Likewise.
51396         * modules/gc-des (configure.ac): Likewise.
51397         * modules/gc-hmac-md5 (configure.ac): Likewise.
51398         * modules/gc-hmac-sha1 (configure.ac): Likewise.
51399         * modules/gc-md2 (configure.ac): Likewise.
51400         * modules/gc-md4 (configure.ac): Likewise.
51401         * modules/gc-md5 (configure.ac): Likewise.
51402         * modules/gc-random (configure.ac): Likewise.
51403         * modules/gc-rijndael (configure.ac): Likewise.
51404         * modules/gc-sha1 (configure.ac): Likewise.
51405
51406 2007-01-08  Bruno Haible  <bruno@clisp.org>
51407
51408         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
51409         macro definition.
51410         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
51411         definition.
51412         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
51413         definition.
51414         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
51415         * modules/fcntl-safer (configure.ac): Likewise.
51416         * modules/fopen-safer (configure.ac): Likewise.
51417         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
51418         GNULIB_FWRITEERROR macro definition.
51419
51420 2007-01-08  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/gnulib-common.m4: New file.
51423         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
51424         (func_get_filelist): Add m4/gnulib-common.m4.
51425
51426 2007-01-08  Bruno Haible  <bruno@clisp.org>
51427
51428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
51429         command.
51430
51431 2007-01-08  Jim Meyering  <jim@meyering.net>
51432
51433         Use a more robust test for a "can't happen" condition.
51434         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
51435         narrowed the st_size value.  Presuming the "can't happen" condition
51436         is true, that narrowing could conceivably convert an invalid st_size
51437         value into a valid one.  Instead, use a change based on Matthew
51438         Woehlke's original patch.
51439
51440         Slight readability improvement: use an assert-like macro
51441         in place of literal "abort ()" uses.
51442         * lib/fts.c (fts_assert): Define.
51443         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
51444         Use this macro instead of a bare 'abort'.
51445
51446 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
51447
51448         Don't worry about using IRIX 5.3's wctype.h broken definitions;
51449         simply work around them.
51450         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
51451         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
51452         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
51453         declaring.
51454         Don't bother to define as macros, since the standard doesn't require it.
51455         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
51456         longer worry about IRIX 5.3.
51457         (HAVE_WCTYPE_CTMP_BUG): Remove.
51458
51459 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51460
51461         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
51462         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
51463         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51464         Problems reported by Georg Schwarz for IRIX 5.3.
51465
51466         * gnulib-tool (autoconf_minversion): Take the maximum version number
51467         found, not the minimum.  Problem reported by James Youngman.
51468
51469 2007-01-03  Karl Berry  <karl@gnu.org>
51470
51471         * doc/error.texi: new file, explaining interaction with progname.
51472         * doc/gnulib.texi: include it.  Update copyright.
51473
51474 2007-01-03  Simon Josefsson  <simon@josefsson.org>
51475
51476         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
51477         AC_CANONICAL_HOST, to improve autobuild outputs.
51478
51479 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
51480             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51481
51482         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
51483         sockets, server sockets, and other file descriptors.  Count errors
51484         to compute the return value.  Reorder the code a bit to be easier
51485         to follow.  Don't set event bits that were not requested (except
51486         POLLERR and POLLHUP).
51487
51488 2007-01-01  Bruno Haible  <bruno@clisp.org>
51489
51490         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
51491
51492 2007-01-03  Jim Meyering  <jim@meyering.net>
51493
51494         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
51495
51496 2007-01-02  Bruno Haible  <bruno@clisp.org>
51497
51498         * modules/settime (Include): Require timespec.h.
51499         * modules/nanosleep (Include): Likewise.
51500
51501 2007-01-01  Bruno Haible  <bruno@clisp.org>
51502
51503         * gnulib-tool (func_emit_copyright_notice): Bump year.
51504         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
51505
51506 2007-01-01  Bruno Haible  <bruno@clisp.org>
51507
51508         Improve support for OpenBSD.
51509         * build-aux/config.rpath (libname_spec): Export.
51510         (library_names_spec): New variable. Export.
51511         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
51512         library_names_spec from the config.rpath output. Locate shared library
51513         through the name pattern in library_names_spec.
51514
51515 2007-01-01  Eric Blake  <ebb9@byu.net>
51516
51517         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
51518
51519 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
51520
51521         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
51522         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
51523         assume the C locale, and avoid an "eval" that could cause trouble.
51524         Problem with SORT reported by Bob Proulx.
51525
51526         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
51527         Define.  Trivial patch from Henning Nielsen Lund, originally
51528         sent to bug-grep@gnu.org today.
51529
51530 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51531
51532         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
51533         struct stat.  Problem reported by Henning Nielsen Lund.
51534         * lib/acl.c: Include acl.h first, to check interface.  Don't
51535         bother to include sys/types.h and sys/stat.h again.
51536
51537 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51538
51539         Import the following change from libc; problem reported by
51540         Sven Verdoolaege.
51541
51542         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
51543
51544         [BZ #1373]
51545         * lib/argp.h: Remove __NTH for __argp_usage inline function.
51546
51547 2006-12-28  Jim Meyering  <jim@meyering.net>
51548
51549         * build-aux/announce-gen: Do not assume that the package
51550         builds any of tar.gz, tar.bz2, and .xdelta files.
51551         Suggestion from Simon Josefsson.
51552
51553 2006-12-28  Simon Josefsson  <simon@josefsson.org>
51554
51555         * modules/announce-gen: New file.
51556
51557 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         * lib/mbchar.h: Just include <wctype.h>; the wctype module
51560         handles its gotchas now.
51561         * lib/mbswidth.c: Likewise.
51562         * lib/wcwidth.h: Likewise.
51563         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
51564         and iswcntrl; the wctype module does this stuff now.
51565         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51567         * modules/mbchar (Depends-on): Add wctype.
51568         * modules/mbswidth (Depends-on): Likewise.
51569         * modules/wcwidth (Depends-on): Likewise.
51570
51571 2006-12-27  Eric Blake  <ebb9@byu.net>
51572
51573         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
51574         module uses more than what <wctype.h> is required to provide.
51575
51576 2006-12-26  Eric Blake  <ebb9@byu.net>
51577
51578         * gnulib-tool (sed_extract_prog): Avoid space-tab.
51579
51580 2006-12-26  Eric Blake  <ebb9@byu.net>
51581
51582         * modules/absolute-header: New module.
51583         * modules/fcntl (Depends-on): Depend on it.
51584         * modules/inttypes (Depends-on): Likewise.
51585         * modules/stdint (Depends-on): Likewise.
51586         * modules/sys_stat (Depends-on): Likewise.
51587         * modules/wctype (Depends-on): Likewise.
51588         * MODULES.html.sh (Support for building libraries and
51589         executables): Document it.
51590
51591 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         * gnulib-tool (SED): Remove, undoing previous change.
51594         The problem was that it broke coreutils on Solaris, because
51595         "sed --posix" leaked into a makefile.
51596         (sed): New alias, if 'alias' and GNU sed.
51597
51598 2006-12-24  Jim Meyering  <jim@meyering.net>
51599
51600         Work around an fchownat bug in glibc-2.4:
51601         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
51602         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
51603         in spite of the -P option.
51604         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
51605         New macros.
51606         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
51607         * modules/openat (Files): Add lib/fchownat.c.
51608         * lib/openat.c (fchownat): Don't define here.  Move to...
51609         * lib/fchownat.c: ...this new file.
51610
51611 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51612
51613         Fix bug reported by Bruno Haible in
51614         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
51615         where quotearg.c didn't compile on Mac OS X 10.2 because it
51616         lacks <wchar.h> and wint_t.
51617         * lib/wctype_.h (__wctype_wint_t): New type.
51618         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
51619         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
51620         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
51621         Arg is now of type __wctype_wint_t, not wint_t.
51622         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
51623         substitute HAVE_WINT_T.
51624         * modules/wctype (Files): Add m4/wint_t.m4.
51625         (wctype.h): Substitute HAVE_WINT_T.
51626
51627 2006-12-23  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
51630
51631 2006-12-23  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
51634         S_ISLNK.
51635         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
51636         mingw.
51637
51638 2006-12-22  Bruno Haible  <bruno@clisp.org>
51639
51640         * lib/copy-file.c: Include acl.h.
51641         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
51642         Close the file descriptors only after being done with copy_acl.
51643         * modules/copy-file (Depends-on): Add acl.
51644
51645 2006-12-22  Bruno Haible  <bruno@clisp.org>
51646
51647         * gnulib-tool (SED): New variable.
51648         Use $SED instead of sed everywhere.
51649
51650 2006-12-22  Bruno Haible  <bruno@clisp.org>
51651
51652         * modules/no-c++: New file.
51653         * m4/no-c++.m4: New file.
51654         * MODULES.html.sh (Support for building libraries and executables):
51655         Add no-c++.
51656
51657 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51658
51659         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51660         Include <limits.h>, and use its INT_MAX to rewrite the
51661         j loop so that it does not overflow 'int'.  Problem reported by
51662         Ralf Wildenhues in
51663         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
51664         Play it safe by shifting left by 1 rather than multiplying by 2,
51665         as GCC is less likely to optimize this away when the value
51666         is signed (when it assumes overflow leads to undefined behavior).
51667         Also, don't assume time_t uses two's complement.
51668
51669 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         * MODULES.html.sh: New module wctype.
51672         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
51673         * lib/fnmatch.c: Don't bother to include <wchar.h> before
51674         <wctype.h>, since the new wctype module should fix this.
51675         * lib/quotearg.c: Include <wctype.h> unconditionally, since
51676         the wctype module should arrange for it.
51677         * lib/regex_internal.h: Likewise.
51678         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
51679         since the wctype module should handle this now.
51680         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
51681         * modules/fnmatch (Depends-on): Add wctype.
51682         * modules/quotearg (Depends-on): Likewise.
51683         * modules/regex (Depends-on): Likewise.
51684
51685 2006-12-19  Bruno Haible  <bruno@clisp.org>
51686
51687         * lib/strdup.h [C++]: Wrap definitions in extern "C".
51688         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
51689
51690 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51691
51692         * modules/savewd (Depends-on): Fix dependency on fcntl.
51693
51694 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51695
51696         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
51697         conforms to C99, rather than relying on the user's environment
51698         setting of STDINT_H.
51699
51700 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51701         and Eric Blake  <ebb9@byu.net>
51702
51703         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
51704         This is more consistent with the other defines here.
51705         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
51706         Port to z/OS.  Problem reported by Paul Gilmartin.
51707         Change local vars to use gl_ prefix rather than ac_.
51708         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51709         with other defines.
51710         * modules/double-slash-root: New module.
51711         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51712         (Depends-on): Add double-slash-root.
51713         * MODULES.html.sh (File system functions): Mention new module.
51714
51715 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51718         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51719         This is for the benefit of gzip, which doesn't do i18n.
51720
51721 2006-12-12  Jim Meyering  <jim@meyering.net>
51722
51723         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51724         Reported by Andreas Schwab <schwab@suse.de>.
51725
51726 2006-12-12  Bruno Haible  <bruno@clisp.org>
51727
51728         Merge these changes.
51729         2006-09-05  Bruno Haible  <bruno@clisp.org>
51730         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51731         iconv_alloc succeeded.
51732         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51733         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51734         test for " && dest " at the end - dest is always != NULL there. Call
51735         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51736         with 2xNULL arguments, also to flush the state storage. Handle the
51737         IRIX iconv behaviour. Realloc the final result, to throw away unused
51738         memory.
51739
51740 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51743         and fchmodat unconditionally, since glibc 2.4 has them.
51744         Problem reported by Arkadiusz Miskiewicz.
51745
51746 2006-12-10  Bruno Haible  <bruno@clisp.org>
51747
51748         * gnulib-tool (func_import): Show the include files only for those
51749         modules that are copied and specified.
51750         Reported by Karl Berry.
51751
51752 2006-12-08  Jim Meyering  <jim@meyering.net>
51753
51754         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51755         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51756
51757         * build-aux/announce-gen: Add two new options, both optional:
51758         --bootstrap-tools=TOOL_LIST
51759               a comma-separated list of tools, e.g.,
51760               autoconf,automake,bison,gnulib
51761         --gnulib-snapshot-date=DATE
51762               if gnulib is in the bootstrap tool list,
51763               then report this as the snapshot date.
51764               If not specified, use the current date/time.
51765               If you specify a date here, be sure it's UTC.
51766
51767 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51768
51769         * tests/test-argp-2.sh: Fix test to match actual output.
51770         (func_compare): Fix sed script to be portable.
51771
51772 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51773
51774         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51775         workaround for this case.  It is not autoconfigured now; offhand
51776         it's hard to see how to autoconfigure it.
51777
51778 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51779
51780         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51781         a directory that is about to be chowned.  Such a directory's
51782         initial file permissions should permit the owner only and this
51783         should not be changed until after the chown, since the group and
51784         other bits would be incorrect if they granted permission before
51785         the chown.
51786
51787         Fix porting problem for iswctype reported by Georg Schwarz in:
51788         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51789         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51790         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51791         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51792         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51793
51794 2006-12-03  Jim Meyering  <jim@meyering.net>
51795
51796         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51797         p->fts_statp may not yet be defined.
51798         (fts_read): Instead, set it in the caller, once p->fts_statp is
51799         sure to be defined, and corresponds to a top-level directory.
51800         This bug made du -x fail.  Here's the coreutils test case:
51801         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51802         Reported by Mike Frysinger.
51803
51804 2006-12-01  Jim Meyering  <jim@meyering.net>
51805
51806         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51807         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51808         Reported by Simon Josefsson.
51809
51810 2006-11-30  Jim Meyering  <jim@meyering.net>
51811
51812         * m4/warning.m4: Use the all-permissive copyright notice
51813         recommended by RMS (rather than LGPL).
51814         * m4/vararrays.m4: Likewise.
51815         * m4/flexmember.m4: Likewise.
51816
51817 2006-11-29  Bruno Haible  <bruno@clisp.org>
51818
51819         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51820         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51821         using +=.
51822         Reported by Simon Josefsson <simon@josefsson.org>.
51823
51824 2006-11-28  James Youngman <jay@gnu.org>
51825
51826         * README: Advise users that they might find the bug-gnulib@gnu.org
51827         and autotools-announce@gnu.org mailing lists useful.
51828
51829 2006-11-28  Bruno Haible  <bruno@clisp.org>
51830
51831         * m4/ptrdiff_max.m4: Remove file.
51832
51833 2006-11-21  Bruno Haible  <bruno@clisp.org>
51834
51835         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51836         _AC_COMPUTE_INT.
51837         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51838         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51839         _AC_COMPUTE_INT.
51840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51841         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51842         _AC_COMPUTE_INT.
51843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51844
51845 2006-11-28  Jim Meyering  <jim@meyering.net>
51846
51847         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51848         warning from "gcc -Wshadow" about shadowing the builtin.
51849
51850 2006-11-27  Bruno Haible  <bruno@clisp.org>
51851
51852         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51853         _AC_COMPUTE_INT.
51854         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51855
51856 2006-11-27  Bruno Haible  <bruno@clisp.org>
51857             Paul Eggert  <eggert@cs.ucla.edu>
51858
51859         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51860
51861 2006-11-26  Bruno Haible  <bruno@clisp.org>
51862
51863         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51864         noinst_LTLIBRARIES.
51865
51866 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51867             Bruno Haible  <bruno@clisp.org>
51868
51869         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51870         if compiling with "gcc -ansi".
51871
51872 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         Fix some incompatibilities with gcc -ansi -pedantic.
51875         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51876         if compiling pedantically with GCC, unless it's C99 or later.
51877         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51878         it mishandles gcc -ansi -pedantic as well.
51879         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51880         if gcc -pedantic.
51881         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51882         initializers for struct if -pedantic, unless it's C99 or later.
51883
51884 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51885
51886         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51887         Don't close an fd more than once. Identical atimes indicate
51888         success, not failure.
51889
51890 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51891
51892         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51893
51894 2006-11-23  Jim Meyering  <jim@meyering.net>
51895
51896         * build-aux/announce-gen: New file.  From coreutils.
51897
51898 2006-11-22  Jim Meyering  <jim@meyering.net>
51899
51900         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51901         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51902         (fts_read): Use a temporary to narrow the overused st_size member
51903         before using it in a switch statement.  Reported by Matthew Woehlke.
51904
51905         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51906         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51907
51908 2006-11-20  Bruno Haible  <bruno@clisp.org>
51909
51910         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51911         changequote instead of pairs of brackets.
51912         Reported by Andreas Schwab <schwab@suse.de>.
51913
51914 2006-11-21  Jim Meyering  <jim@meyering.net>
51915
51916         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51917         so as to remain compatible with older compilers.
51918         Patch from Michael Deutschmann.
51919
51920 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         * MODULES.html.sh (File system functions): Add openat.
51923
51924         * lib/openat.h (rpl_fstatat): New macro, if
51925         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51926         (fstatat): Define to rpl_fstatat under the same conditions,
51927         unless COMPILING_FSTATAT.
51928         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51929         seems to have the bug.
51930         * lib/fstatat.c: New file.
51931         * modules/openat (Files): Add it.
51932
51933 2006-11-20  Bruno Haible  <bruno@clisp.org>
51934
51935         * Makefile: New file.
51936
51937 2006-11-20  Jim Meyering  <jim@meyering.net>
51938
51939         The beginnings of syntax-related checks for gnulib.
51940         * lib/Makefile: New file.
51941         * lib/t-idcache: New script.  Ensure that the two halves of
51942         idcache.c stay in sync.
51943
51944         * lib/idcache.c: Adjust comments in user- and group- portions to
51945         be more accurate, and to be consistent with one another.
51946
51947 2006-11-20  Jim Meyering  <jim@meyering.net>
51948
51949         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51950         continue using the flexible array member (thus, this module performs
51951         half as many malloc calls), with the addition that...
51952         (getgroup, getuser): Consistently record a non-match via an empty
51953         "name" string, and map an empty string match to a NULL return value.
51954         * modules/idcache (Depends-on): Re-add flexmember.
51955
51956         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51957         (getuidbyname, getgroup, getgidbyname): Likewise.
51958
51959         Use cleaner syntax: NULL rather than 0.
51960         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51961
51962 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51963
51964         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51965         It mishandled the case where the group was missing.
51966         Problem reported by Greg Schafer.
51967         * modules/idcache: Likewise.
51968
51969 2006-11-18  Jim Meyering  <jim@meyering.net>
51970
51971         * check-module (%exempt_header): Add exception for some
51972         conditionally-included headers.
51973
51974         * modules/i-ring (Depends-on): Add verify.
51975         (License): Change to LGPL.
51976
51977 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
51980         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
51981         and inttostr.h.  Use snprintf rather than uinttostr, so that
51982         LGPLed code doesn't depend on GPLed.
51983
51984 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51985
51986         * modules/inline (License): Change from GPL to LGPL.
51987
51988 2006-11-17  Jim Meyering  <jim@meyering.net>
51989
51990         * modules/d-type (License): Switch to LGPL.
51991
51992 2006-11-15  Bruno Haible  <bruno@clisp.org>
51993
51994         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
51995
51996 2006-11-15  Eric Blake  <ebb9@byu.net>
51997
51998         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
51999         the module dependency.
52000
52001 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52002             Bruno Haible  <bruno@clisp.org>
52003
52004         * gnulib-tool (func_create_testdir): Add license consistency check.
52005
52006 2006-11-15  Eric Blake  <ebb9@byu.net>
52007
52008         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
52009         random "(cached)" in configure output.
52010
52011 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52012
52013         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
52014         test for conforming inttypes.h is both announced and cached.
52015
52016         * MODULES.html.sh (seen_modules, seen_files): New variables.
52017         (func_module): Rewrite to use a few less gnulib-tool and sed
52018         invocations.  Avoid a couple of quadratic algorithms for ...
52019         (missed_modules, missed_files): ... these, with ...
52020         (func_append, func_tmpdir): ... these new functions, from
52021         gnulib-tool.  Analogously, install traps for cleanup.
52022
52023         * tests/test-gc.c (main): Remove unused variables.
52024         * tests/test-read-file.c: Include stdlib.h, for 'free'.
52025
52026 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         * modules/inttostr (License): Change to LGPL.
52029
52030 2006-11-14  Eric Blake  <ebb9@byu.net>
52031
52032         * modules/tempname (License): Change to LGPL.
52033
52034 2006-11-14  Eric Blake  <ebb9@byu.net>
52035
52036         * doc/functions.texi (Function Portability): *printf functions on
52037         Cygwin now understand all POSIX size specifiers.
52038
52039 2006-11-14  Bruno Haible  <bruno@clisp.org>
52040
52041         * modules/c-ctype (License): Change to LGPL.
52042
52043 2006-11-12  Bruno Haible  <bruno@clisp.org>
52044
52045         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52046         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
52047         for GNOME libraries, for which the include files are installed in
52048         subdirectories of $prefix/include.
52049
52050 2006-11-12  Bruno Haible  <bruno@clisp.org>
52051
52052         * m4/lib-link.m4: Require at least autoconf-2.54.
52053         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
52054         name to underscores for the --with option.
52055
52056 2006-11-13  Bruno Haible  <bruno@clisp.org>
52057
52058         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
52059         the tests directory.
52060         Reported by Ralf Wildenhues.
52061
52062 2006-11-13  Bruno Haible  <bruno@clisp.org>
52063
52064         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
52065         (func_emit_initmacro_end): Undo the override here.
52066         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
52067         Works around the famous automake error in coreutils.
52068
52069 2006-11-13  Eric Blake  <ebb9@byu.net>
52070
52071         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
52072         element, not its node.
52073
52074 2006-11-12  Bruno Haible  <bruno@clisp.org>
52075
52076         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
52077         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
52078
52079 2006-11-12  Bruno Haible  <bruno@clisp.org>
52080
52081         * gnulib-tool: New option --local-symlink.
52082         (func_usage): Document it.
52083         (lsymbolic): New variable.
52084         (func_import, func_create_testdir): If --symlink was not specified,
52085         test whether --local-symlink was specified and the file comes from
52086         the local_gnulib_dir.
52087
52088 2006-11-12  Bruno Haible  <bruno@clisp.org>
52089
52090         * gnulib-tool (func_ln): New function.
52091         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
52092
52093 2006-11-12  Bruno Haible  <bruno@clisp.org>
52094
52095         Finish support for source files in subdirectories.
52096         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
52097         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
52098         AUTOMAKE_OPTIONS.
52099         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
52100
52101 2006-11-12  Bruno Haible  <bruno@clisp.org>
52102
52103         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52104         EXTRA_lib_SOURCES augmentation.
52105         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
52106
52107 2006-11-12  Jim Meyering  <jim@meyering.net>
52108
52109         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
52110         file descriptors.  This also averts a failure on systems with
52111         native openat support when a traversed directory lacks "x" access.
52112         * lib/fts_.h: Include "i-ring.h"
52113         (struct FTS) [fts_fd_ring]: New member.
52114         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
52115         (FCHDIR): Add parentheses.
52116         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
52117         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
52118         When descending, rather than simply closing the previous
52119         fts_cwd_fd value, push that file descriptor onto the ring.
52120         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
52121         (fts_open): Initialize the new fd_ring member.
52122         (fts_close): Clear the ring.
52123         (fts_safe_changedir): When possible, use our new fd_ring to skip
52124         the diropen and fstat and dev/ino comparison that would normally
52125         accompany a virtual `chdir ("..")'.
52126
52127         * modules/fts (Depends-on): Add i-ring.
52128         * modules/i-ring: New module.
52129         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
52130         * m4/i-ring.m4: New file.
52131
52132 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52133
52134         * gnulib-tool (func_create_testdir): Fix replacement of
52135         `build-aux' in configure.ac.  Run autotools in gltests
52136         subdirectory.
52137         (func_create_testdir, func_create_megatestdir, test): There is
52138         no need for '--force' in most autotool invocations in a new
52139         tree.  Actually fail the whole test if any of the tools, or the
52140         configure or make stages fail.
52141
52142         Sync from Automake.
52143         * build-aux/gnupload: Revert last change.  Add pointer to upload
52144         instructions of the GNU Maintenance Instructions.
52145         Suggestion by Karl Berry.
52146
52147 2006-11-10  Jim Meyering  <jim@meyering.net>
52148
52149         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
52150
52151 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
52154         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
52155         (bind_textdomain_codeset) [! ENABLE_NLS]:
52156         Evaluate all the arguments.  That way, callers get compatible behavior
52157         if the arguments have side effects.  Also, it avoids some GCC
52158         diagnostics in some cases; Joel E. Denny reported problems when Bison
52159         was configured with --enable-gcc-warnigs.
52160
52161 2006-11-10  Jim Meyering  <jim@meyering.net>
52162
52163         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
52164         relevant options in CFLAGS (like -O, -fno-inline) are taken into
52165         account.
52166
52167 2006-11-10  Jim Meyering  <jim@meyering.net>
52168
52169         * modules/inline: New file/module.
52170         * modules/xalloc (Files): Remove m4/inline.m4.
52171         (Depends-on): Add inline, instead.
52172         * modules/oset: Likewise.
52173         * modules/list: Likewise.
52174
52175 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
52178         Problem reported by Matthew Woehlke.
52179
52180 2006-11-09  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/tempname.c (gen_tempname): Remove variant that invokes
52183         __gen_tempname.
52184         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
52185         __gen_tempname.
52186
52187 2006-11-08  Bruno Haible  <bruno@clisp.org>
52188
52189         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
52190         to 'yes' instead of 'cross-compiling'.
52191
52192 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
52193
52194         * lib/quotearg.h (quotearg_free): New decl.
52195         * lib/quotearg.c (quotearg_free): New function.
52196         (slot0, nslots, slotvec0, slotvec):
52197         Now file-scope so that quotearg_free can get at them.
52198
52199 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52200
52201         Sync from Automake.
52202         * build-aux/gnupload: Add missing 'gnu' to example URL.
52203         Report by Karl Berry.
52204
52205 2006-11-08  Bruno Haible  <bruno@clisp.org>
52206
52207         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
52208         Suggested by Paul Eggert.
52209
52210 2006-11-08  Jim Meyering  <jim@meyering.net>
52211
52212         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
52213         It's already included if !_LIBC.
52214         (fts_safe_changedir): Add a comment.
52215
52216 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
52219         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
52220         Matthew Woehlke.
52221
52222         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
52223         definitions up, to avoid colliding with change below.
52224         (static_inline) [HAVE_INLINE]: New macro.
52225         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
52226         Provide extern decls when !HAVE_INLINE.  Do not define unless
52227         static_inline is defined, either by us or by xmalloc.c.  Use
52228         static_inline rather than static inline.
52229         (XCALLOC): Optimize sizeof(T) = 1 case.
52230         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52231
52232 2006-11-07  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
52235         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
52236         AC_C_INLINE.
52237         * modules/xalloc (Files): Add m4/inline.m4.
52238
52239 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52240
52241         * README: Fix typo.
52242         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
52243         (Miscellanous Notes): ...from this.
52244
52245 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52246
52247         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
52248         Mention that offsetof should be used instead of sizeof.
52249         From Bruno Haible.
52250
52251 2006-11-07  Bruno Haible  <bruno@clisp.org>
52252
52253         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
52254
52255 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52256
52257         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52258         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
52259         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52260         (gl_tree_add_before, gl_tree_add_after):
52261         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
52262         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
52263         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52264         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
52265         (gl_linked_add_after, gl_linked_add_at): Likewise.
52266         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
52267         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52268         (gl_tree_add_before, gl_tree_add_after): Likewise.
52269         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
52270         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
52271         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
52272
52273 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52274
52275         * lib/gl_oset.h: Use C comment style, not C++ comment style.
52276
52277 2006-11-06  Bruno Haible  <bruno@clisp.org>
52278
52279         * m4/inline.m4: New file.
52280         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
52281         * modules/list (Files): Add m4/inline.m4.
52282         * modules/oset (Files): Likewise.
52283
52284 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         * lib/idcache.c: Include <stddef.h>, for offsetof.
52287         (struct userid.name): Change from char * to a flexible array member.
52288         All uses changed.
52289         * modules/idcache (Depends-on): Add flexmember.
52290
52291         * MODULES.html.sh (Core language properties): New module flexmember.
52292         * modules/flexmember, m4/flexmember.m4: New files.
52293
52294         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
52295         inline functions that are identical with the old xnmalloc_inline,
52296         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
52297         that we can avoid some unnecessary integer multiplications and
52298         divisions in the common case where the element size is known at
52299         compile time.
52300         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
52301         needed.
52302         (xnboundedmalloc): Remove.
52303         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
52304         arguments, for consistency with rest of this header.
52305         (xcharalloc): Rewrite using XNMALLOC.
52306         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
52307         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
52308         versions have been moved to lib/xalloc.h and renamed to be the
52309         non-*_inline versions.
52310         (xmalloc, xrealloc): Implement without reference to the xnmalloc
52311         and xnrealloc functions, since those functions are now inline and
52312         now call us.
52313         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
52314         renaming described above.
52315         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
52316         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
52317         captures the dependency in AC_C_INLINE.
52318
52319         New module canonicalize-lgpl, proposed by Charles Wilson in
52320         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
52321         with a few small changes afterwards.
52322         * MODULES.html.sh (File system functions): New module
52323         canonicalize-lgpl.
52324         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
52325         and canonicalize_file_name.
52326         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
52327         * modules/canonicalize-lgpl: New files.
52328
52329 2006-11-05  Bruno Haible  <bruno@clisp.org>
52330
52331         * gnulib-tool (func_import, func_create_testdir): Create directories
52332         also for files in subdirectories of lib/.
52333
52334 2006-11-05  Bruno Haible  <bruno@clisp.org>
52335
52336         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
52337         ANSI C compliant.
52338
52339 2006-11-03  Bruno Haible  <bruno@clisp.org>
52340
52341         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52342         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
52343         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
52344         (xnboundedmalloc): New inline function.
52345         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
52346         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
52347         xmalloc.
52348         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
52349         xmalloc.
52350         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
52351         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
52352         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
52353         xmalloc.
52354         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52355         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
52356         xmalloc.
52357         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
52358         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52359         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
52360         xmalloc.
52361         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52362         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
52363         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52364         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
52365         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
52366         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
52367         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
52368
52369 2006-11-03  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/c-ctype.h [C++]: Define functions without name mangling.
52372         * lib/fwriteerror.h [C++]: Likewise.
52373         * lib/gcd.h [C++]: Likewise.
52374         * lib/linebreak.h [C++]: Likewise.
52375
52376 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
52379         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
52380         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
52381         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52382         Check for functions and headers just once.
52383         Check for declaration of canonicalize_file_name.
52384         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
52385
52386 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52387
52388         * gnulib-tool (func_import): Fix typo in actioncmd.
52389
52390 2006-11-02  Bruno Haible  <bruno@clisp.org>
52391
52392         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
52393         newline sequence in the Makefile.am snippet as a space, like "make"
52394         does.
52395         Reported by Roger Persson <perrog@gmail.com>.
52396
52397 2006-11-01  Bruno Haible  <bruno@clisp.org>
52398
52399         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
52400         already declared in <string.h>.
52401         * lib/strcase.h (strncasecmp): Don't declare it if yes.
52402
52403 2006-11-01  Bruno Haible  <bruno@clisp.org>
52404
52405         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
52406         * lib/strcase.h: Include <string.h>.
52407         (strcasecmp): Define to rpl_strcasecmp here.
52408
52409 2006-11-01  Bruno Haible  <bruno@clisp.org>
52410
52411         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
52412
52413 2006-11-01  Eric Blake  <ebb9@byu.net>
52414
52415         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
52416
52417         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
52418
52419 2006-10-29  Bruno Haible  <bruno@clisp.org>
52420
52421         Make it compile in C++ mode.
52422         * lib/full-write.c (full_rw): Add a cast.
52423
52424 2006-11-01  Bruno Haible  <bruno@clisp.org>
52425
52426         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
52427         be POSIX compliant.
52428         Reported by Roger Persson <perrog@gmail.com>.
52429
52430 2006-11-01  Eric Blake  <ebb9@byu.net>
52431
52432         * lib/getopt_.h: Fix comments.
52433
52434 2006-10-31  Eric Blake  <ebb9@byu.net>
52435
52436         * modules/tmpdir (Depends-on): Add sys_stat.
52437         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
52438         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
52439         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
52440         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
52441         tempname.
52442
52443 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
52444
52445         Avoid some C++ diagnostics reported by Bruno Haible.
52446         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
52447         xmalloc.
52448         (quotearg_alloc): Use xcharalloc rather than xmalloc.
52449         (struct slotvec): Move to top level.
52450         (quotearg_n_options): Rewrite to avoid xmalloc.
52451         * lib/xalloc.h (xcharalloc): New function.
52452         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
52453         [defined __cplusplus]: Add function template that provides result
52454         type propagation.  This part of the change is from Bruno Haible.
52455
52456 2006-10-29  Bruno Haible  <bruno@clisp.org>
52457
52458         Make it compile in C++ mode.
52459         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
52460         * lib/strnlen1.c (strnlen1): Cast memchr result.
52461         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
52462         * lib/clean-temp.c (string_equals, string_hash): Add casts.
52463         (create_temp_dir): Rename local variable 'template'.
52464         (compile_csharp_using_sscli): Add cast.
52465         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
52466         * lib/findprog.c (find_in_path): Likewise.
52467         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
52468         * lib/wait-process.c (register_slave_subprocess): Likewise.
52469
52470 2006-10-22  Bruno Haible  <bruno@clisp.org>
52471
52472         * modules/tsearch: New file.
52473         * lib/tsearch.h: New file.
52474         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
52475         * m4/tsearch.m4: New file.
52476         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
52477
52478 2006-10-29  Eric Blake  <ebb9@byu.net>
52479
52480         * lib/arcfour.c: Assume config.h.
52481         * lib/arctwo.c: Likewise.
52482         * lib/base64.c: Likewise.
52483         * lib/check-version.c: Likewise.
52484         * lib/crc.c: Likewise.
52485         * lib/des.c: Likewise.
52486         * lib/gc-gnulib.c: Likewise.
52487         * lib/gc-libgcrypt.c: Likewise.
52488         * lib/gc-pbkdf2-sha1.c: Likewise.
52489         * lib/getaddrinfo.c: Likewise.
52490         * lib/getdelim.c: Likewise.
52491         * lib/getline.c: Likewise.
52492         * lib/hmac-md5.c: Likewise.
52493         * lib/hmac-sha1.c: Likewise.
52494         * lib/iconvme.c: Likewise.
52495         * lib/md2.c: Likewise.
52496         * lib/md4.c: Likewise.
52497         * lib/memxor.c: Likewise.
52498         * lib/read-file.c: Likewise.
52499         * lib/readline.c: Likewise.
52500         * lib/rijndael-alg-fst.c: Likewise.
52501         * lib/rijndael-api-fst.c: Likewise.
52502         * lib/xgetdomainname.c: Likewise.
52503
52504 2006-10-28  Eric Blake  <ebb9@byu.net>
52505
52506         * lib/xstrndup.c: Assume config.h.
52507
52508 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52509
52510         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
52511         stat-macros.h is now for our own macros, whereas stat_h is for
52512         macros in the <sys/stat.h> name space.
52513         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
52514         (STAT_MACROS_H): Remove.
52515         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
52516         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
52517         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
52518         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
52519         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
52520         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
52521         Move these macros to ...
52522         * lib/stat_.h: here.  Don't include stat-macros.h.
52523         * lib/canonicalize.c: Don't include stat-macros.h.
52524         * lib/chown.c: Likewise.
52525         * lib/euidaccess.c: Likewise.
52526         * lib/file-type.c: Likewise.
52527         * lib/filemode.c: Likewise.
52528         * lib/glob.c: Likewise.
52529         * lib/isapipe.c: Likewise.
52530         * lib/lchown.c: Likewise.
52531         * lib/lstat.c: Likewise.
52532         * lib/mkdir-p.c: Likewise.
52533         * lib/rmdir.c: Likewise.
52534         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
52535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
52536         unless mkdir isn't declared, to speed up 'configure'.
52537         Always create sys/stat.h, since it's unlikely any real sys/stat.h
52538         would define all the S_* symbols.
52539         * modules/canonicalize (Depends-on):
52540         Depend on sys_stat, not stat-macros.
52541         * modules/chown: Likewise.
52542         * modules/euidaccess: Likewise.
52543         * modules/filemode: Likewise.
52544         * modules/file-type: Likewise.
52545         * modules/glob: Likewise.
52546         * modules/isapipe: Likewise.
52547         * modules/lchown: Likewise.
52548         * modules/lstat: Likewise.
52549         * modules/mkancesdirs: Likewise.
52550         * modules/rmdir: Likewise.
52551         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
52552         * modules/modechange: Likewise.
52553         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
52554         (configure.ac): Remove gl_STAT_MACROS.
52555         * modules/sys_stat (Depends-on): Remove stat-macros.
52556
52557 2006-10-27  Bruno Haible  <bruno@clisp.org>
52558
52559         * m4/signed.m4: Remove file.
52560         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
52561         invocation.
52562         * modules/vasnprintf (Files): Remove m4/signed.m4.
52563
52564 2006-10-27  Bruno Haible  <bruno@clisp.org>
52565
52566         Update to GNU gettext 0.16.
52567         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
52568         m4/inttypes-h.m4, m4/signed.m4.
52569         * m4/gettext.m4: Update to GNU gettext 0.16.
52570         * m4/intl.m4: New file, from GNU gettext.
52571         * m4/intldir.m4: New file, from GNU gettext.
52572         * config/srclist.txt: Update
52573
52574 2006-10-27  Eric Blake  <ebb9@byu.net>
52575
52576         * MODULES.html.sh: Document tempname.
52577         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
52578         dependencies.
52579         (Files): Move lib/tempname.c...
52580         * modules/tempname: ...to this new module.
52581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
52582         (gl_PREREQ_TEMPNAME): Move...
52583         * m4/tempname.m4: ...to this new file.
52584         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
52585         * modules/sys_stat (Depends-on): Add stat-macros.
52586         * lib/stat_.h (includes): Pick up stat macros.
52587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
52588         if stat macros are broken.
52589         * lib/tempname.c (includes): No need to include "stat-macros.h".
52590         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
52591         (direxists, __path_search) [!_LIBC]: Don't compile these in
52592         gnulib; the tmpdir module covers that.
52593         * lib/tempname.h: New file.
52594
52595 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         * COPYING: Explain how gnulib-tool converts licence headers.
52598         Almost all wording by Eric Blake.
52599
52600 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
52601
52602         * lib/mbchar.h (is_basic_table): Make read-only.
52603         * lib/mbchar.c (is_basic_table): Likewise.
52604         Reported by John Darrington.
52605
52606 2006-10-25  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/progname.h (set_program_name): Undefine before defining.
52609
52610 2006-10-25  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
52613         false for non-gcc C++ compilers.
52614         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52615
52616 2006-10-24  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
52619         iconv implementations like Irix iconv.
52620
52621 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52622
52623         * modules/vararrays: New file.
52624         * m4/vararrays.m4: New file, taken from diffutils.
52625         * MODULES.html.sh: New module vararrays.
52626
52627 2006-10-24  Karl Berry  <karl@gnu.org>
52628
52629         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
52630         Don't call GNU Unix.
52631
52632 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52633
52634         * users.txt: Add Libtool.
52635
52636         Sync from Libtool:
52637
52638         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52639
52640         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
52641         to gnulib's policy of including config.h unconditionally.
52642
52643 2006-10-24  Bruno Haible  <bruno@clisp.org>
52644
52645         * modules/wcwidth (Files): Add m4/wint_t.m4.
52646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
52647         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
52648
52649 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52650
52651         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
52652         to pacify GCC with some -W flags enabled.  Problem reported by
52653         Bruno Haible.
52654
52655 2006-10-24  Jim Meyering  <jim@meyering.net>
52656
52657         * MODULES.html.sh: Remove uinttostr.  It's not a module.
52658         Reported by Karl Berry.
52659
52660 2006-10-23  Bruno Haible  <bruno@clisp.org>
52661
52662         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
52663
52664 2006-10-24  Bruno Haible  <bruno@clisp.org>
52665
52666         * lib/gl_list.h: Use C comment style, not C++ comment style.
52667
52668 2006-10-23  Eric Blake  <ebb9@byu.net>
52669
52670         * lib/getaddrinfo.c (includes): Add missing include.
52671
52672 2006-10-23  Bruno Haible  <bruno@clisp.org>
52673             Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         Ability to rename obstack_free.
52676         * lib/obstack.h (__obstack_free): New macro. Declare instead of
52677         obstack_free.
52678         (obstack_free): Invoke the __obstack_free macro.
52679         * lib/obstack.c (obstack_free): Use __obstack_free macro.
52680
52681 2006-10-23  Bruno Haible  <bruno@clisp.org>
52682             Paul Eggert  <eggert@cs.ucla.edu>
52683
52684         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
52685         __argc, __argv from the declaration. (They are defined as macros on
52686         mingw.)
52687
52688 2006-10-22  Bruno Haible  <bruno@clisp.org>
52689
52690         * doc/gnulib-intro.texi: New file.
52691         * doc/gnulib.texi: Include it.
52692
52693 2006-10-21  Bruno Haible  <bruno@clisp.org>
52694
52695         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
52696         "Introduction", "Miscellanous Notes", "Particular Modules".
52697
52698 2006-10-21  Bruno Haible  <bruno@clisp.org>
52699
52700         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52701         Change mostlyclean-local rule to avoid sh syntax error from bash
52702         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
52703
52704 2006-10-23  Jim Meyering  <jim@meyering.net>
52705
52706         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
52707         in place of snprintf.
52708
52709         * modules/inttostr (Files): Add lib/uinttostr.c.
52710         * lib/uinttostr.c (inttostr): New file/function.
52711         * lib/inttostr.h (uinttostr): Declare.
52712         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52713         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52714         Add uinttostr.
52715         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52716
52717 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52718
52719         * lib/canonicalize.c (ELOOP): Define if not already defined.
52720         Problem reported by Bruno Haible in
52721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52722
52723 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52724
52725         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52726         Problem reported by Perry Smith and Ville Laurikari.
52727
52728         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52729         uses.
52730
52731 2006-10-19  Bruno Haible  <bruno@clisp.org>
52732
52733         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52734         for mingw.
52735
52736 2006-10-19  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52739         Needed for mingw.
52740
52741 2006-10-19  Bruno Haible  <bruno@clisp.org>
52742
52743         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52744
52745 2006-10-19  Bruno Haible  <bruno@clisp.org>
52746
52747         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52748         it.
52749
52750 2006-10-19  Bruno Haible  <bruno@clisp.org>
52751
52752         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52753         invocation.
52754
52755 2006-10-19  Bruno Haible  <bruno@clisp.org>
52756
52757         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52758         mountlist by default.
52759
52760 2006-10-16  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/c-strstr.c: Include c-strstr.h.
52763
52764 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52765
52766         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52767         in a slash.
52768
52769 2006-10-18  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/lock.h [C++]: Wrap definitions in extern "C".
52772
52773 2006-10-18  Bruno Haible  <bruno@clisp.org>
52774
52775         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52776         gl_LIBOBJS list.
52777
52778 2006-10-18  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52781
52782 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * lib/xstrtol.h: Include gettext.h.
52785         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52786         Problem reported by Eric Blake.
52787         * modules/xstrtol (Depends-on): Add gettext-h.
52788
52789 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52790
52791         * lib/strftime.c (advance): New macro.
52792         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52793         incomplete type, so you can't add 0 to it.  Problem and patch
52794         reported by Eelco Dolstra for dietlibc.
52795
52796 2006-10-18  Jim Meyering  <jim@meyering.net>
52797
52798         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52799         type for a local, and rename it: s/up/user_proc/.
52800
52801 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52802
52803         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52804         READ_UTMP_USER_PROCESS.
52805         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52806
52807 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52808
52809         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52810         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52811
52812 2006-10-17  Eric Blake  <ebb9@byu.net>
52813
52814         * lib/sigprocmask.c (sigprocmask): Fix typo.
52815
52816         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52817
52818         * modules/clean-temp (Makefile.am): Don't add to make output...
52819         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52820         config.h.
52821
52822 2006-10-17  Bruno Haible  <bruno@clisp.org>
52823
52824         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52825         differently if DEFAULT_TEXT_DOMAIN is set.
52826
52827 2006-10-16  Bruno Haible  <bruno@clisp.org>
52828
52829         * lib/clean-temp.c: Include fwriteerror.h.
52830
52831 2006-10-16  Bruno Haible  <bruno@clisp.org>
52832
52833         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52834
52835 2006-10-16  Bruno Haible  <bruno@clisp.org>
52836
52837         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52838         * lib/sigprocmask.h: Include <sys/types.h>.
52839         (sigset_t): Use the system's definition if present.
52840
52841 2006-10-17  Eric Blake  <ebb9@byu.net>
52842
52843         * lib/xvasprintf.c (includes): Assume config.h.
52844         * lib/xasprintf.c (includes): Likewise.
52845
52846 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52847
52848         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52849         at least as wide as intmax_t.
52850
52851 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52852
52853         (Imported from Automake.)
52854         * build-aux/gnupload: Update to version 1.1 of directive file.
52855
52856 2006-10-16  Eric Blake  <ebb9@byu.net>
52857
52858         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52859         match Automake 1.10a.
52860
52861 2006-10-14  Bruno Haible  <bruno@clisp.org>
52862
52863         * modules/sigprocmask: New file.
52864         * lib/sigprocmask.h: New file.
52865         * lib/sigprocmask.c: New file.
52866         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52867         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52868         request sigprocmask.o.
52869         (gl_PREREQ_SIGPROCMASK): New macro.
52870         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52871         (Depends-on): Add sigprocmask.
52872         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52873         gt_SIGNALBLOCKING. Test for 'raise' only once.
52874         * lib/fatal-signal.c: Include sigprocmask.h.
52875         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52876         unblock_fatal_signals): Define always.
52877         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52878         sigprocmask.
52879
52880 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52881
52882         Sync from Automake.
52883         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52884         which incorrectly sets the mode of an existing destination
52885         directory.  In some cases the unpatched install-sh could do the
52886         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52887         system.  We hope this is rare in practice, but it's clearly worth
52888         fixing.  Problem reported by Alex Unleashed in
52889         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52890         Also, don't bother to check for -m bugs unless we're using -m;
52891         suggested by Stepan Kasal.
52892
52893 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52894
52895         Sync from Automake.
52896         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52897         `-c' flag, so they appear at the same position as in %FASTDEP%
52898         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52899         which ignores unknown options only after the first non-option.
52900         Bug report against M4 by Nelson H. F. Beebe.
52901
52902 2006-10-13  Jim Meyering  <jim@meyering.net>
52903
52904         Fix a bug in yesterday's change.
52905         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52906         p->fts_statp->st_dev would be used uninitialized.
52907         Ensures that we always call fts_stat on the very first entry.
52908         Miklos Szeredi reported that find -xdev stopped working.
52909
52910 2006-10-12  Bruno Haible  <bruno@clisp.org>
52911
52912         * gnulib-tool (func_get_automake_snippet): Append an automatically
52913         computed EXTRA_DIST augmentation.
52914         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52915         * modules/alloca-opt (Makefile.am): Likewise.
52916         * modules/allocsa (Makefile.am): Likewise.
52917         * modules/arcfour (Makefile.am): Likewise.
52918         * modules/arctwo (Makefile.am): Likewise.
52919         * modules/argmatch (Makefile.am): Likewise.
52920         * modules/argz (Makefile.am): Likewise.
52921         * modules/atexit (Makefile.am): Likewise.
52922         * modules/backupfile (Makefile.am): Likewise.
52923         * modules/byteswap (Makefile.am): Likewise.
52924         * modules/c-strtod (Makefile.am): Likewise.
52925         * modules/c-strtold (Makefile.am): Likewise.
52926         * modules/calloc (Makefile.am): Likewise.
52927         * modules/canon-host (Makefile.am): Likewise.
52928         * modules/canonicalize (Makefile.am): Likewise.
52929         * modules/chdir-long (Makefile.am): Likewise.
52930         * modules/chdir-safer (Makefile.am): Likewise.
52931         * modules/check-version (Makefile.am): Likewise.
52932         * modules/chown (Makefile.am): Likewise.
52933         * modules/cloexec (Makefile.am): Likewise.
52934         * modules/close-stream (Makefile.am): Likewise.
52935         * modules/closeout (Makefile.am): Likewise.
52936         * modules/crc (Makefile.am): Likewise.
52937         * modules/csharpexec (Makefile.am): Likewise.
52938         * modules/cycle-check (Makefile.am): Likewise.
52939         * modules/des (Makefile.am): Likewise.
52940         * modules/dev-ino (Makefile.am): Likewise.
52941         * modules/dirfd (Makefile.am): Likewise.
52942         * modules/dirname (Makefile.am): Likewise.
52943         * modules/dup2 (Makefile.am): Likewise.
52944         * modules/eealloc (Makefile.am): Likewise.
52945         * modules/error (Makefile.am): Likewise.
52946         * modules/euidaccess (Makefile.am): Likewise.
52947         * modules/exclude (Makefile.am): Likewise.
52948         * modules/exitfail (Makefile.am): Likewise.
52949         * modules/fcntl-safer (Makefile.am): Likewise.
52950         * modules/fcntl (Makefile.am): Likewise.
52951         * modules/file-type (Makefile.am): Likewise.
52952         * modules/fileblocks (Makefile.am): Likewise.
52953         * modules/filemode (Makefile.am): Likewise.
52954         * modules/filenamecat (Makefile.am): Likewise.
52955         * modules/fnmatch (Makefile.am): Likewise.
52956         * modules/fopen-safer (Makefile.am): Likewise.
52957         * modules/fpending (Makefile.am): Likewise.
52958         * modules/fprintftime (Makefile.am): Likewise.
52959         * modules/free (Makefile.am): Likewise.
52960         * modules/fsusage (Makefile.am): Likewise.
52961         * modules/ftruncate (Makefile.am): Likewise.
52962         * modules/fts (Makefile.am): Likewise.
52963         * modules/gc-arcfour (Makefile.am): Likewise.
52964         * modules/gc-des (Makefile.am): Likewise.
52965         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52966         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52967         * modules/gc-md4 (Makefile.am): Likewise.
52968         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52969         * modules/gc-sha1 (Makefile.am): Likewise.
52970         * modules/gc (Makefile.am): Likewise.
52971         * modules/getaddrinfo (Makefile.am): Likewise.
52972         * modules/getcwd (Makefile.am): Likewise.
52973         * modules/getdelim (Makefile.am): Likewise.
52974         * modules/getdomainname (Makefile.am): Likewise.
52975         * modules/getgroups (Makefile.am): Likewise.
52976         * modules/gethostname (Makefile.am): Likewise.
52977         * modules/gethrxtime (Makefile.am): Likewise.
52978         * modules/getline (Makefile.am): Likewise.
52979         * modules/getloadavg (Makefile.am): Likewise.
52980         * modules/getlogin_r (Makefile.am): Likewise.
52981         * modules/getndelim2 (Makefile.am): Likewise.
52982         * modules/getopt (Makefile.am): Likewise.
52983         * modules/getpagesize (Makefile.am): Likewise.
52984         * modules/getpass-gnu (Makefile.am): Likewise.
52985         * modules/getpass (Makefile.am): Likewise.
52986         * modules/getsubopt (Makefile.am): Likewise.
52987         * modules/gettime (Makefile.am): Likewise.
52988         * modules/gettimeofday (Makefile.am): Likewise.
52989         * modules/getugroups (Makefile.am): Likewise.
52990         * modules/getusershell (Makefile.am): Likewise.
52991         * modules/glob (Makefile.am): Likewise.
52992         * modules/group-member (Makefile.am): Likewise.
52993         * modules/hard-locale (Makefile.am): Likewise.
52994         * modules/hash (Makefile.am): Likewise.
52995         * modules/hmac-md5 (Makefile.am): Likewise.
52996         * modules/hmac-sha1 (Makefile.am): Likewise.
52997         * modules/human (Makefile.am): Likewise.
52998         * modules/idcache (Makefile.am): Likewise.
52999         * modules/imaxabs (Makefile.am): Likewise.
53000         * modules/imaxdiv (Makefile.am): Likewise.
53001         * modules/inet_ntop (Makefile.am): Likewise.
53002         * modules/inet_pton (Makefile.am): Likewise.
53003         * modules/intprops (Makefile.am): Likewise.
53004         * modules/inttostr (Makefile.am): Likewise.
53005         * modules/inttypes (Makefile.am): Likewise.
53006         * modules/isapipe (Makefile.am): Likewise.
53007         * modules/javaversion (Makefile.am): Likewise.
53008         * modules/lchmod (Makefile.am): Likewise.
53009         * modules/lchown (Makefile.am): Likewise.
53010         * modules/localcharset (Makefile.am): Likewise.
53011         * modules/long-options (Makefile.am): Likewise.
53012         * modules/lstat (Makefile.am): Likewise.
53013         * modules/malloc (Makefile.am): Likewise.
53014         * modules/mathl (Makefile.am): Likewise.
53015         * modules/mbchar (Makefile.am): Likewise.
53016         * modules/md2 (Makefile.am): Likewise.
53017         * modules/md4 (Makefile.am): Likewise.
53018         * modules/md5 (Makefile.am): Likewise.
53019         * modules/memcasecmp (Makefile.am): Likewise.
53020         * modules/memchr (Makefile.am): Likewise.
53021         * modules/memcmp (Makefile.am): Likewise.
53022         * modules/memcoll (Makefile.am): Likewise.
53023         * modules/memcpy (Makefile.am): Likewise.
53024         * modules/memmem (Makefile.am): Likewise.
53025         * modules/memmove (Makefile.am): Likewise.
53026         * modules/mempcpy (Makefile.am): Likewise.
53027         * modules/memrchr (Makefile.am): Likewise.
53028         * modules/memset (Makefile.am): Likewise.
53029         * modules/memxor (Makefile.am): Likewise.
53030         * modules/mkancesdirs (Makefile.am): Likewise.
53031         * modules/mkdir-p (Makefile.am): Likewise.
53032         * modules/mkdir (Makefile.am): Likewise.
53033         * modules/mkdtemp (Makefile.am): Likewise.
53034         * modules/mkstemp (Makefile.am): Likewise.
53035         * modules/mktime (Makefile.am): Likewise.
53036         * modules/modechange (Makefile.am): Likewise.
53037         * modules/mountlist (Makefile.am): Likewise.
53038         * modules/nanosleep (Makefile.am): Likewise.
53039         * modules/obstack (Makefile.am): Likewise.
53040         * modules/openat (Makefile.am): Likewise.
53041         * modules/pagealign_alloc (Makefile.am): Likewise.
53042         * modules/pathmax (Makefile.am): Likewise.
53043         * modules/physmem (Makefile.am): Likewise.
53044         * modules/poll (Makefile.am): Likewise.
53045         * modules/posixtm (Makefile.am): Likewise.
53046         * modules/posixver (Makefile.am): Likewise.
53047         * modules/putenv (Makefile.am): Likewise.
53048         * modules/quote (Makefile.am): Likewise.
53049         * modules/quotearg (Makefile.am): Likewise.
53050         * modules/raise (Makefile.am): Likewise.
53051         * modules/read-file (Makefile.am): Likewise.
53052         * modules/readline (Makefile.am): Likewise.
53053         * modules/readlink (Makefile.am): Likewise.
53054         * modules/readtokens (Makefile.am): Likewise.
53055         * modules/readutmp (Makefile.am): Likewise.
53056         * modules/realloc (Makefile.am): Likewise.
53057         * modules/regex (Makefile.am): Likewise.
53058         * modules/rename-dest-slash (Makefile.am): Likewise.
53059         * modules/rename (Makefile.am): Likewise.
53060         * modules/rijndael (Makefile.am): Likewise.
53061         * modules/rmdir (Makefile.am): Likewise.
53062         * modules/rpmatch (Makefile.am): Likewise.
53063         * modules/safe-read (Makefile.am): Likewise.
53064         * modules/safe-write (Makefile.am): Likewise.
53065         * modules/same-inode (Makefile.am): Likewise.
53066         * modules/same (Makefile.am): Likewise.
53067         * modules/save-cwd (Makefile.am): Likewise.
53068         * modules/savedir (Makefile.am): Likewise.
53069         * modules/setenv (Makefile.am): Likewise.
53070         * modules/settime (Makefile.am): Likewise.
53071         * modules/sha1 (Makefile.am): Likewise.
53072         * modules/sig2str (Makefile.am): Likewise.
53073         * modules/snprintf (Makefile.am): Likewise.
53074         * modules/stat-macros (Makefile.am): Likewise.
53075         * modules/stat-time (Makefile.am): Likewise.
53076         * modules/stdbool (Makefile.am): Likewise.
53077         * modules/stdint (Makefile.am): Likewise.
53078         * modules/stdlib-safer (Makefile.am): Likewise.
53079         * modules/stpcpy (Makefile.am): Likewise.
53080         * modules/stpncpy (Makefile.am): Likewise.
53081         * modules/strcase (Makefile.am): Likewise.
53082         * modules/strcasestr (Makefile.am): Likewise.
53083         * modules/strchrnul (Makefile.am): Likewise.
53084         * modules/strcspn (Makefile.am): Likewise.
53085         * modules/strdup (Makefile.am): Likewise.
53086         * modules/strerror (Makefile.am): Likewise.
53087         * modules/strftime (Makefile.am): Likewise.
53088         * modules/strndup (Makefile.am): Likewise.
53089         * modules/strnlen (Makefile.am): Likewise.
53090         * modules/strpbrk (Makefile.am): Likewise.
53091         * modules/strsep (Makefile.am): Likewise.
53092         * modules/strstr (Makefile.am): Likewise.
53093         * modules/strtod (Makefile.am): Likewise.
53094         * modules/strtoimax (Makefile.am): Likewise.
53095         * modules/strtok_r (Makefile.am): Likewise.
53096         * modules/strtol (Makefile.am): Likewise.
53097         * modules/strtoll (Makefile.am): Likewise.
53098         * modules/strtoul (Makefile.am): Likewise.
53099         * modules/strtoull (Makefile.am): Likewise.
53100         * modules/strtoumax (Makefile.am): Likewise.
53101         * modules/strverscmp (Makefile.am): Likewise.
53102         * modules/sys_socket (Makefile.am): Likewise.
53103         * modules/sys_stat (Makefile.am): Likewise.
53104         * modules/sysexits (Makefile.am): Likewise.
53105         * modules/time_r (Makefile.am): Likewise.
53106         * modules/timegm (Makefile.am): Likewise.
53107         * modules/timespec (Makefile.am): Likewise.
53108         * modules/tmpfile-safer (Makefile.am): Likewise.
53109         * modules/trim (Makefile.am): Likewise.
53110         * modules/unistd-safer (Makefile.am): Likewise.
53111         * modules/unlinkdir (Makefile.am): Likewise.
53112         * modules/unlocked-io (Makefile.am): Likewise.
53113         * modules/userspec (Makefile.am): Likewise.
53114         * modules/utime (Makefile.am): Likewise.
53115         * modules/utimecmp (Makefile.am): Likewise.
53116         * modules/utimens (Makefile.am): Likewise.
53117         * modules/vasnprintf (Makefile.am): Likewise.
53118         * modules/vasprintf (Makefile.am): Likewise.
53119         * modules/vsnprintf (Makefile.am): Likewise.
53120         * modules/xalloc (Makefile.am): Likewise.
53121         * modules/xgetcwd (Makefile.am): Likewise.
53122         * modules/xnanosleep (Makefile.am): Likewise.
53123         * modules/xreadlink (Makefile.am): Likewise.
53124         * modules/xstrtod (Makefile.am): Likewise.
53125         * modules/xstrtol (Makefile.am): Likewise.
53126         * modules/xstrtold (Makefile.am): Likewise.
53127         * modules/yesno (Makefile.am): Likewise.
53128         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
53129
53130 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * modules/error (Makefile.am): Distribute files through
53133         EXTRA_DIST, not lib_SOURCES.
53134
53135 2006-10-12  Eric Blake  <ebb9@byu.net>
53136
53137         * modules/error (Makefile.am): Distribute files in /lib.
53138         * modules/obstack (Makefile.am): Likewise.
53139
53140 2006-10-12  Bruno Haible  <bruno@clisp.org>
53141
53142         * modules/acl (Makefile.am): Distribute all files in lib/ through
53143         EXTRA_DIST.
53144         * modules/arcfour (Makefile.am): Likewise.
53145         * modules/arctwo (Makefile.am): Likewise.
53146         * modules/argmatch (Makefile.am): Likewise.
53147         * modules/argz (Makefile.am): Likewise.
53148         * modules/atexit (Makefile.am): Likewise.
53149         * modules/backupfile (Makefile.am): Likewise.
53150         * modules/c-strtod (Makefile.am): Likewise.
53151         * modules/c-strtold (Makefile.am): Likewise.
53152         * modules/calloc (Makefile.am): Likewise.
53153         * modules/canon-host (Makefile.am): Likewise.
53154         * modules/canonicalize (Makefile.am): Likewise.
53155         * modules/chdir-long (Makefile.am): Likewise.
53156         * modules/chdir-safer (Makefile.am): Likewise.
53157         * modules/check-version (Makefile.am): Likewise.
53158         * modules/chown (Makefile.am): Likewise.
53159         * modules/cloexec (Makefile.am): Likewise.
53160         * modules/close-stream (Makefile.am): Likewise.
53161         * modules/closeout (Makefile.am): Likewise.
53162         * modules/crc (Makefile.am): Likewise.
53163         * modules/cycle-check (Makefile.am): Likewise.
53164         * modules/des (Makefile.am): Likewise.
53165         * modules/dirfd (Makefile.am): Likewise.
53166         * modules/dirname (Makefile.am): Likewise.
53167         * modules/dup2 (Makefile.am): Likewise.
53168         * modules/euidaccess (Makefile.am): Likewise.
53169         * modules/exclude (Makefile.am): Likewise.
53170         * modules/exitfail (Makefile.am): Likewise.
53171         * modules/fcntl-safer (Makefile.am): Likewise.
53172         * modules/file-type (Makefile.am): Likewise.
53173         * modules/fileblocks (Makefile.am): Likewise.
53174         * modules/filemode (Makefile.am): Likewise.
53175         * modules/filenamecat (Makefile.am): Likewise.
53176         * modules/fnmatch (Makefile.am): Likewise.
53177         * modules/fopen-safer (Makefile.am): Likewise.
53178         * modules/fpending (Makefile.am): Likewise.
53179         * modules/fprintftime (Makefile.am): Likewise.
53180         * modules/free (Makefile.am): Likewise.
53181         * modules/fsusage (Makefile.am): Likewise.
53182         * modules/ftruncate (Makefile.am): Likewise.
53183         * modules/fts (Makefile.am): Likewise.
53184         * modules/gc (Makefile.am): Likewise.
53185         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53186         * modules/getaddrinfo (Makefile.am): Likewise.
53187         * modules/getcwd (Makefile.am): Likewise.
53188         * modules/getdelim (Makefile.am): Likewise.
53189         * modules/getdomainname (Makefile.am): Likewise.
53190         * modules/getgroups (Makefile.am): Likewise.
53191         * modules/gethostname (Makefile.am): Likewise.
53192         * modules/gethrxtime (Makefile.am): Likewise.
53193         * modules/getline (Makefile.am): Likewise.
53194         * modules/getloadavg (Makefile.am): Likewise.
53195         * modules/getlogin_r (Makefile.am): Likewise.
53196         * modules/getopt (Makefile.am): Likewise.
53197         * modules/getpass (Makefile.am): Likewise.
53198         * modules/getpass-gnu (Makefile.am): Likewise.
53199         * modules/getsubopt (Makefile.am): Likewise.
53200         * modules/gettime (Makefile.am): Likewise.
53201         * modules/gettimeofday (Makefile.am): Likewise.
53202         * modules/getugroups (Makefile.am): Likewise.
53203         * modules/getusershell (Makefile.am): Likewise.
53204         * modules/glob (Makefile.am): Likewise.
53205         * modules/group-member (Makefile.am): Likewise.
53206         * modules/hard-locale (Makefile.am): Likewise.
53207         * modules/hash (Makefile.am): Likewise.
53208         * modules/hmac-md5 (Makefile.am): Likewise.
53209         * modules/hmac-sha1 (Makefile.am): Likewise.
53210         * modules/human (Makefile.am): Likewise.
53211         * modules/idcache (Makefile.am): Likewise.
53212         * modules/imaxabs (Makefile.am): Likewise.
53213         * modules/imaxdiv (Makefile.am): Likewise.
53214         * modules/inet_ntop (Makefile.am): Likewise.
53215         * modules/inet_pton (Makefile.am): Likewise.
53216         * modules/inttostr (Makefile.am): Likewise.
53217         * modules/isapipe (Makefile.am): Likewise.
53218         * modules/lchown (Makefile.am): Likewise.
53219         * modules/long-options (Makefile.am): Likewise.
53220         * modules/lstat (Makefile.am): Likewise.
53221         * modules/malloc (Makefile.am): Likewise.
53222         * modules/mathl (Makefile.am): Likewise.
53223         * modules/mbchar (Makefile.am): Likewise.
53224         * modules/md2 (Makefile.am): Likewise.
53225         * modules/md4 (Makefile.am): Likewise.
53226         * modules/md5 (Makefile.am): Likewise.
53227         * modules/memcasecmp (Makefile.am): Likewise.
53228         * modules/memchr (Makefile.am): Likewise.
53229         * modules/memcmp (Makefile.am): Likewise.
53230         * modules/memcoll (Makefile.am): Likewise.
53231         * modules/memcpy (Makefile.am): Likewise.
53232         * modules/memmem (Makefile.am): Likewise.
53233         * modules/memmove (Makefile.am): Likewise.
53234         * modules/mempcpy (Makefile.am): Likewise.
53235         * modules/memrchr (Makefile.am): Likewise.
53236         * modules/memset (Makefile.am): Likewise.
53237         * modules/memxor (Makefile.am): Likewise.
53238         * modules/mkancesdirs (Makefile.am): Likewise.
53239         * modules/mkdir (Makefile.am): Likewise.
53240         * modules/mkdir-p (Makefile.am): Likewise.
53241         * modules/mkdtemp (Makefile.am): Likewise.
53242         * modules/mkstemp (Makefile.am): Likewise.
53243         * modules/mktime (Makefile.am): Likewise.
53244         * modules/modechange (Makefile.am): Likewise.
53245         * modules/mountlist (Makefile.am): Likewise.
53246         * modules/nanosleep (Makefile.am): Likewise.
53247         * modules/openat (Makefile.am): Likewise.
53248         * modules/pagealign_alloc (Makefile.am): Likewise.
53249         * modules/physmem (Makefile.am): Likewise.
53250         * modules/poll (Makefile.am): Likewise.
53251         * modules/posixtm (Makefile.am): Likewise.
53252         * modules/posixver (Makefile.am): Likewise.
53253         * modules/putenv (Makefile.am): Likewise.
53254         * modules/quote (Makefile.am): Likewise.
53255         * modules/quotearg (Makefile.am): Likewise.
53256         * modules/raise (Makefile.am): Likewise.
53257         * modules/read-file (Makefile.am): Likewise.
53258         * modules/readline (Makefile.am): Likewise.
53259         * modules/readlink (Makefile.am): Likewise.
53260         * modules/readtokens (Makefile.am): Likewise.
53261         * modules/readutmp (Makefile.am): Likewise.
53262         * modules/realloc (Makefile.am): Likewise.
53263         * modules/regex (Makefile.am): Likewise.
53264         * modules/rename (Makefile.am): Likewise.
53265         * modules/rename-dest-slash (Makefile.am): Likewise.
53266         * modules/rijndael (Makefile.am): Likewise.
53267         * modules/rmdir (Makefile.am): Likewise.
53268         * modules/rpmatch (Makefile.am): Likewise.
53269         * modules/safe-read (Makefile.am): Likewise.
53270         * modules/safe-write (Makefile.am): Likewise.
53271         * modules/same (Makefile.am): Likewise.
53272         * modules/save-cwd (Makefile.am): Likewise.
53273         * modules/savedir (Makefile.am): Likewise.
53274         * modules/setenv (Makefile.am): Likewise.
53275         * modules/settime (Makefile.am): Likewise.
53276         * modules/sha1 (Makefile.am): Likewise.
53277         * modules/sig2str (Makefile.am): Likewise.
53278         * modules/snprintf (Makefile.am): Likewise.
53279         * modules/stdlib-safer (Makefile.am): Likewise.
53280         * modules/stpcpy (Makefile.am): Likewise.
53281         * modules/stpncpy (Makefile.am): Likewise.
53282         * modules/strcase (Makefile.am): Likewise.
53283         * modules/strcasestr (Makefile.am): Likewise.
53284         * modules/strchrnul (Makefile.am): Likewise.
53285         * modules/strcspn (Makefile.am): Likewise.
53286         * modules/strdup (Makefile.am): Likewise.
53287         * modules/strerror (Makefile.am): Likewise.
53288         * modules/strftime (Makefile.am): Likewise.
53289         * modules/strndup (Makefile.am): Likewise.
53290         * modules/strnlen (Makefile.am): Likewise.
53291         * modules/strpbrk (Makefile.am): Likewise.
53292         * modules/strsep (Makefile.am): Likewise.
53293         * modules/strstr (Makefile.am): Likewise.
53294         * modules/strtod (Makefile.am): Likewise.
53295         * modules/strtoimax (Makefile.am): Likewise.
53296         * modules/strtok_r (Makefile.am): Likewise.
53297         * modules/strtol (Makefile.am): Likewise.
53298         * modules/strtoll (Makefile.am): Likewise.
53299         * modules/strtoul (Makefile.am): Likewise.
53300         * modules/strtoull (Makefile.am): Likewise.
53301         * modules/strtoumax (Makefile.am): Likewise.
53302         * modules/strverscmp (Makefile.am): Likewise.
53303         * modules/time_r (Makefile.am): Likewise.
53304         * modules/timegm (Makefile.am): Likewise.
53305         * modules/tmpfile-safer (Makefile.am): Likewise.
53306         * modules/unistd-safer (Makefile.am): Likewise.
53307         * modules/unlinkdir (Makefile.am): Likewise.
53308         * modules/userspec (Makefile.am): Likewise.
53309         * modules/utime (Makefile.am): Likewise.
53310         * modules/utimecmp (Makefile.am): Likewise.
53311         * modules/utimens (Makefile.am): Likewise.
53312         * modules/vasnprintf (Makefile.am): Likewise.
53313         * modules/vasprintf (Makefile.am): Likewise.
53314         * modules/vsnprintf (Makefile.am): Likewise.
53315         * modules/xalloc (Makefile.am): Likewise.
53316         * modules/xgetcwd (Makefile.am): Likewise.
53317         * modules/xnanosleep (Makefile.am): Likewise.
53318         * modules/xreadlink (Makefile.am): Likewise.
53319         * modules/xstrtod (Makefile.am): Likewise.
53320         * modules/xstrtol (Makefile.am): Likewise.
53321         * modules/xstrtold (Makefile.am): Likewise.
53322         * modules/yesno (Makefile.am): Likewise.
53323
53324 2006-10-12  Jim Meyering  <jim@meyering.net>
53325
53326         * m4/getloadavg.m4: Revert the change below.
53327
53328         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
53329         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
53330         fail with a symlink, which is what coreutils' ./bootstrap now
53331         creates by default.
53332
53333 2006-10-12  Bruno Haible  <bruno@clisp.org>
53334
53335         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
53336         mingw.
53337         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
53338         MSVC and mingw explicitly.
53339
53340 2006-10-11  Simon Josefsson  <jas@extundo.com>
53341             Bruno Haible  <bruno@clisp.org>
53342
53343         Add support for multiple gnulib-tool invocations in the scope of a
53344         single configure.ac file.
53345         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
53346         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
53347         with the same contents as the _LIBADD variable.
53348         (func_emit_initmacro_start, func_emit_initmacro_end,
53349         func_emit_initmacro_done): New functions.
53350         (func_import, func_create_testdir): Invoke them. Allow the identifiers
53351         gl_LIBOBJS and gl_LTLIBOBJS.
53352
53353 2006-10-11  Bruno Haible  <bruno@clisp.org>
53354
53355         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
53356         (func_create_testdir): Don't create po/Makefile.am, don't invoke
53357         autoreconf. Instead, invoke autopoint explicitly but move back the
53358         *.m4 files from gnulib.
53359
53360 2006-10-11  Bruno Haible  <bruno@clisp.org>
53361
53362         * gnulib-tool (func_usage): Make module names after --create-testdir
53363         optional.
53364         (func_create_testdir): If no module was specified, use nearly all
53365         modules.
53366
53367 2006-10-12  Jim Meyering  <jim@meyering.net>
53368
53369         Big performance improvement for fts-based tools that use FTS_NOSTAT.
53370         Avoid spurious inode-mismatch problems on non-POSIX file systems.
53371         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
53372         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
53373         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
53374         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
53375         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
53376         (fts_set_stat_required): New function.
53377         (fts_open): Defer the calls to fts_stat, if possible or requested.
53378         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
53379         into fts_stat itself.
53380         (fts_read): Perform any required (deferred) fts_stat call.
53381         (fts_build): Likewise, for the directory we're about to open and read.
53382         In the readdir loop, carefully decide whether each entry will require
53383         an eventual call to fts_stat, using dirent.d_type info if available.
53384         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
53385         a command line argument into this function.  Update all callers.
53386         Map a return value of FTS_DOT to FTS_D for a command line argument.
53387         * modules/fts (Depends-on): Add d-type.  Alphabetize.
53388         Thanks to Miklos Szeredi for his tenacity and for the initial
53389         bug report about "find" failing on a FUSE-based file system.
53390
53391         * lib/fts.c (fts_open): Use consistent indentation.
53392
53393 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
53396         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
53397         reported by Jim Meyering.  All uses of cache variables renamed
53398         to match Autoconf's.
53399         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
53400         the other one.
53401
53402         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
53403         Fix misspelling in diagnostic.
53404
53405 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53406
53407         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
53408         defined.  Problem reported by Matthew Woehlke.
53409
53410         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
53411         Add support for Tandem NonStop R series.
53412         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
53413         Use new macro.
53414
53415         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
53416         (has_trailing_slash): Omit size arg; all callers changed.
53417         Omit 'inline', since it doesn't help performance and we'd
53418         need to configure it.
53419         Don't count //, ///, etc. as having a trailing slash.
53420         As a side effect, this removes a C99ism reported by Matthew Woehlke.
53421         (rpl_rename_dest_slash): On failure, use rename's errno rather
53422         than (in some cases) an incorrect or junk errno.
53423         Simplify code by removing need to compute length; this does
53424         cause it to make two passes instead of one over the file name,
53425         but it's worth it.
53426
53427         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
53428         change, since Autoconf's version may no longer be appropriate now
53429         that we are using CVS Autoconf's version.  Add support for Tandem.
53430
53431 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53432             Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
53435         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
53436         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
53437         gl_AC_TYPE_LONG_LONG.
53438
53439         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
53440         instead of HAVE_LONG_LONG.
53441         * lib/printf-args.c (printf_fetchargs): Likewise.
53442         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
53443         * lib/vasnprintf.c (VASNPRINTF): Likewise.
53444         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
53445         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
53446         gl_AC_TYPE_LONG_LONG.
53447
53448 2006-10-11  Bruno Haible  <bruno@clisp.org>
53449
53450         * m4/longlong.m4: Add comments.
53451         * m4/ulonglong.m4: Likewise.
53452
53453 2006-10-10  Bruno Haible  <bruno@clisp.org>
53454
53455         Make it possible to #define stpcpy, strdup to aliases.
53456         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
53457         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
53458
53459 2006-10-10  Bruno Haible  <bruno@clisp.org>
53460
53461         Make it possible to #define gcd to an alias.
53462         * lib/gcd.c: Include config.h.
53463
53464 2006-10-10  Bruno Haible  <bruno@clisp.org>
53465
53466         Make it possible to #define c_isascii to an alias.
53467         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
53468         defined. Undefine the macros before defining them, to avoid gcc
53469         warnings.
53470         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
53471         define NO_C_CTYPE_MACROS early.
53472
53473 2006-10-10  Bruno Haible  <bruno@clisp.org>
53474
53475         Make it possible to #define set_program_name to an alias.
53476         * lib/progname.c: Don't undefine set_program_name; instead, undefine
53477         ENABLE_RELOCATABLE early.
53478
53479 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         Port to Tandem NSK OSS, which has 64-bit signed int but at most
53482         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
53483         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
53484         More generally, don't assume that 64-bit signed int is available
53485         if unsigned int is, and vice versa.
53486         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
53487         unsigned symbols, not on their signed counterparts.
53488         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
53489         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
53490         (UINT64_C, UINTMAX_C):
53491         Likewise.
53492         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
53493         unsigned counterparts.
53494         (Have_long_long, Unsigned): New macros.
53495         (Int): Renamed from INT.
53496         (strtoimax): Use the new macros.
53497         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
53498         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
53499         * modules/inttypes (inttypes.h): Substitute
53500         HAVE_UNSIGNED_LONG_LONG_INT.
53501         * modules/stdint (stdint.h): Likewise.
53502         (Files): Add m4/ulonglong.m4.
53503
53504 2006-10-10  Bruno Haible  <bruno@clisp.org>
53505
53506         Fix a gcc -Wshadow warning.
53507         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
53508         to 'bucket'.
53509         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
53510         gl_linked_indexof_from_to): Likewise.
53511         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
53512         Likewise.
53513         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
53514         Likewise.
53515         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
53516         Reported by Eric Blake.
53517
53518 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
53521         for NetBSD.  Problem reported by Bruno Haible.
53522
53523 2006-10-09  Jim Meyering  <jim@meyering.net>
53524
53525         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
53526         Patch from Bruno Haible.
53527
53528 2006-10-09  Jim Meyering  <jim@meyering.net>
53529
53530         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
53531         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
53532         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
53533
53534 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         Don't include <config.h> twice; this doesn't work in some cases,
53537         e.g., when config.h has "#define intmax_t long long int" and
53538         we include <config.h>, <inttypes.h>, <config.h> in that order.
53539         Problem reported by Matthew Woehlke in:
53540         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
53541         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
53542         * lib/fts-cycle.c: Don't include config.h.
53543         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
53544         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
53545         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
53546         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
53547         inttypes.h.
53548         * lib/xstrtoumax.c: Likewise.
53549         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
53550         __strtol and the like, so that this module is more like its siblings.
53551         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
53552         Remove; no longer needed now that we assume gnulib inttypes.h.
53553
53554 2006-10-08  Bruno Haible  <bruno@clisp.org>
53555
53556         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
53557         option.
53558
53559 2006-10-07  Jim Meyering  <jim@meyering.net>
53560
53561         * modules/inttypes (inttypes.h): Revert what seems to have been
53562         an inadvertent part of today's change: use "|", not "/" in the
53563         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
53564
53565 2006-10-07  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/sublist: New file.
53568
53569 2006-10-07  Bruno Haible  <bruno@clisp.org>
53570
53571         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
53572         * modules/argz (argz.h): Likewise.
53573         * modules/arpa_inet (arpa/inet.h): Likewise.
53574         * modules/byteswap (byteswap.h): Likewise.
53575         * modules/configmake (configmake.h): Likewise.
53576         * modules/fcntl (fcntl.h): Likewise.
53577         * modules/fnmatch (fnmatch.h): Likewise.
53578         * modules/getopt (getopt.h): Likewise.
53579         * modules/glob (glob.h): Likewise.
53580         * modules/inttypes (inttypes.h): Likewise.
53581         * modules/netinet_in (netinet/in.h): Likewise.
53582         * modules/poll (poll.h): Likewise.
53583         * modules/stdbool (stdbool.h): Likewise.
53584         * modules/stdint (stdint.h): Likewise.
53585         * modules/sys_select (sys/select.h): Likewise.
53586         * modules/sys_socket (sys/socket.h): Likewise.
53587         * modules/sys_stat (sys/stat.h): Likewise.
53588         * modules/sysexits (sysexits.h): Likewise.
53589         * modules/unistd (unistd.h): Likewise.
53590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53591         Add a "DO NOT EDIT" comment to the generated file.
53592         (func_import): Likewise for gnulib-comp.m4.
53593
53594 2006-10-07  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/gl_sublist.h: New file.
53597         * lib/gl_sublist.c: New file.
53598
53599 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53600
53601         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
53602         name (relative to the original working directory) and the file
53603         name component (relative to the temporary working directory).  All
53604         callers changed.
53605         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
53606         * lib/mkdir-p.c (make_dir_parents): Likewise.
53607         * lib/mkdir-p.h (make_dir_parents): Likewise.
53608
53609 2006-10-06  Eric Blake  <ebb9@byu.net>
53610
53611         Define several macros for use by the clean-temp module.
53612         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
53613         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
53614         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
53615
53616         * lib/clean-temp.h (close_stream_temp): New declaration.
53617         * lib/clean-temp.c (includes): Pull in headers according to what
53618         other modules are in use.
53619         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
53620
53621 2006-10-06  Bruno Haible  <bruno@clisp.org>
53622
53623         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
53624         instead of fopen, fwriteerror.
53625
53626 2006-10-06  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
53629         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
53630         int.
53631         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
53632         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
53633         Return an error indicator.
53634         Suggested by Eric Blake.
53635
53636 2006-10-06  Bruno Haible  <bruno@clisp.org>
53637
53638         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
53639         Reported by Eric Blake.
53640
53641 2006-10-06  Bruno Haible  <bruno@clisp.org>
53642
53643         * modules/closeout (Description): Mention stderr too.
53644
53645 2006-10-06  Bruno Haible  <bruno@clisp.org>
53646         and Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * lib/closeout.c (close_stdout): Also close stderr.
53649         * lib/closeout.h: Update comment.
53650
53651 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53652
53653         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
53654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
53655         * lib/dirchownmod.c: Include lchown.h.
53656         * lib/lchown.c: Don't include files that lchown.h now includes.
53657         Don't declare chown, since lchown.h now does that.
53658         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
53659         (lchown): Define to rpl_chown if lchown is declared but
53660         does not exist.  Declare using a prototype if lchown is not
53661         declared.  Add a copyright notice.
53662         * lib/mkstemp.h: Include <unistd.h>.
53663         * lib/openat.c: Include lchown.h.
53664
53665         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
53666         we now test for that separately.
53667         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
53668         rather than O_NOFOLLOW, when testing whether it's possible to
53669         avoid a race condition reliably.
53670         * lib/savewd.c (savewd_chdir): Likewise.
53671
53672         Remove macros that are no longer needed now that stdint.h is
53673         reliable.
53674         * lib/fsusage.c (UINTMAX_MAX): Remove.
53675         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
53676         * lib/utimecmp.c (SIZE_MAX): Remove.
53677
53678         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
53679
53680         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
53681         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
53682         O_NOATIME works.
53683
53684 2006-10-05  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/gl_list.h (gl_sortedlist_search_from_to,
53687         gl_sortedlist_indexof_from_to): New declarations.
53688         (gl_list_implementation): New fields sortedlist_search_from_to,
53689         sortedlist_indexof_from_to.
53690         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
53691         inline functions.
53692         * lib/gl_list.c (gl_sortedlist_search_from_to,
53693         gl_sortedlist_indexof_from_to): New functions.
53694         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
53695         function.
53696         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
53697         (gl_array_sortedlist_search_from_to): New function.
53698         (gl_array_list_implementation): Update.
53699         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
53700         function.
53701         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
53702         (gl_carray_sortedlist_search_from_to): New function.
53703         (gl_carray_list_implementation): Update.
53704         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
53705         gl_linked_sortedlist_indexof_from_to): New functions.
53706         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53707         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53708         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53709         gl_tree_sortedlist_indexof_from_to): New functions.
53710         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53711         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53712         Update.
53713         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53714         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53715         Update.
53716
53717 2006-10-05  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53720         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53721         (struct gl_list_implementation): Add fields search_from_to,
53722         indexof_from_to. Remove fields search, indexof.
53723         (gl_list_search): Use the search_from_to method.
53724         (gl_list_search_from, gl_list_search_from_to): New functions.
53725         (gl_list_indexof): Use the indexof_from_to method.
53726         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53727         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53728         (gl_list_search_from, gl_list_search_from_to): New functions.
53729         (gl_list_indexof): Use the indexof_from_to method.
53730         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53731         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53732         gl_array_indexof. Add start_index, end_index arguments.
53733         (gl_array_search_from_to): Renamed from gl_array_search. Add
53734         start_index, end_index arguments.
53735         (gl_array_remove, gl_array_list_implementation): Update.
53736         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53737         gl_carray_indexof. Add start_index, end_index arguments.
53738         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53739         start_index, end_index arguments.
53740         (gl_carray_remove, gl_carray_list_implementation): Update.
53741         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53742         gl_linked_search. Add start_index, end_index arguments.
53743         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53744         start_index, end_index arguments.
53745         (gl_linked_remove): Update.
53746         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53747         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53748         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53749         field to 'size_t'.
53750         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53751         gl_tree_search. Add start_index, end_index arguments.
53752         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53753         start_index, end_index arguments.
53754         (gl_tree_remove): Update.
53755         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53756         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53757         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53758         function.
53759         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53760         gl_tree_search. Add start_index, end_index arguments.
53761         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53762         start_index, end_index arguments.
53763         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53764         Update.
53765         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53766
53767 2006-10-05  Bruno Haible  <bruno@clisp.org>
53768
53769         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53770
53771         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53772         fwriteerror_temp): New declarations.
53773         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53774         (descriptors): New variable.
53775         (cleanup): First, close the descriptors.
53776         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53777         fclose_temp, fwriteerror_temp): New functions.
53778
53779 2006-10-04  Jim Meyering  <jim@meyering.net>
53780
53781         * lib/fts.c (fts_open): Tiny comment change.
53782
53783 2006-10-04  Bruno Haible  <bruno@clisp.org>
53784
53785         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53786         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53787         gl_LOCK_BODY.
53788         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53789         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53790         gl_LOCK_EARLY_BODY.
53791         (gl_LOCK): Require gl_LOCK_BODY.
53792
53793 2006-10-04  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53796         (gl_oset_search_atleast): New declaration.
53797         (struct gl_oset_implementation): Add field 'search_atleast'.
53798         (gl_oset_search_atleast): New inline function.
53799         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53800         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53801         (gl_array_oset_implementation): Update.
53802         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53803         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53804         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53805
53806 2006-10-04  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53809
53810 2006-10-03  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53813         from gl_avltreehash_list_implementation.
53814
53815 2006-10-03  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/gl_oset.c (gl_oset_add): Fix return type.
53818
53819 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53820
53821         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53822
53823 2006-10-02  Eric Blake  <ebb9@byu.net>
53824
53825         * modules/strnlen (Depends-on): Add extensions.
53826
53827 2006-10-02  Eric Blake  <ebb9@byu.net>
53828
53829         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53830         definition in 2.60+.
53831
53832 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53833
53834         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53835         checks.
53836
53837 2006-10-02  Bruno Haible  <bruno@clisp.org>
53838
53839         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53840         to the AUTOMAKE_OPTIONS.
53841         Reported by Jim Meyering.
53842
53843 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53844
53845         Work around bug in Solaris 10 /proc file system:
53846         /proc/self/fd/NNN/.. isn't the parent directory of
53847         the directory whose file descriptor is NNN.  This needs to
53848         be worked around at run time, not compile time, since a
53849         program might be built on Solaris 8, where things work, and
53850         run on Solaris 10.
53851         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53852         to use the following interface instead:
53853         (OPENAT_BUFFER_SIZE): New macro.
53854         (openat_proc_name): New function.
53855         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53856         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53857         Likewise.
53858         * lib/openat-proc.c: New file.
53859         * modules/openat (Files): Add lib/openat-proc.c.
53860         (Depends-on): Add same-inode, stdbool.
53861         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53862
53863 2006-09-29  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53866         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53867         argument. Set stdout_closed before testing for ferror, not after.
53868         (fwriteerror, fwriteerror_no_ebadf): New functions.
53869
53870 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53871
53872         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53873
53874 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53875
53876         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53877         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53878
53879 2006-09-28  Jim Meyering  <jim@meyering.net>
53880
53881         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53882         Include <unistd.h>.
53883
53884 2006-09-28  Bruno Haible  <bruno@clisp.org>
53885
53886         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53887         * modules/linkedhash-list (Depends-on): Likewise.
53888         * modules/rbtreehash-list (Depends-on): Likewise.
53889
53890 2006-09-28  Bruno Haible  <bruno@clisp.org>
53891
53892         * lib/strndup.h: Simplify the redefinition of strndup.
53893         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53894         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53895
53896 2006-09-28  Bruno Haible  <bruno@clisp.org>
53897
53898         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53899         * lib/gl_linkedhash_list.c: Likewise.
53900         * lib/gl_rbtreehash_list.c: Likewise.
53901
53902 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53905         getaddrinfo.
53906
53907         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53908         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53909         it causes <stdio_ext.h> to cause a compile-time error.
53910         Problem reported by Nelson H. F. Beebe.
53911         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53912         of HAVE_DECL___PENDING.
53913
53914         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53915         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53916         declaration.
53917
53918 2006-09-27  Jim Meyering  <jim@meyering.net>
53919
53920         This file could end up with a definition for a function
53921         named __strndup, rather than rpl_strndup on a system with
53922         incomplete weak_alias support.
53923         * lib/strndup.c (strndup): Rename from __strndup.
53924         Remove #defines that used to map __strndup to strndup.
53925         Don't use K&R prototypes.
53926         Remove LIBC-related code, since this file is not sync'd with glibc.
53927         * lib/strndup.h: Revamp, accordingly.
53928         * m4/strndup.m4: Modernize.
53929
53930 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * modules/savewd (Depends-on): Add 'raise'.
53933         * lib/savewd.c: Include <signal.h>, for 'raise'.
53934
53935 2006-09-26  Jim Meyering  <jim@meyering.net>
53936
53937         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53938         when we detect Darwin 8.7.0's acl_get_file bug.
53939         Rearrange to perform the new (below) run-test while $LIBS
53940         contains any acl-related library.  Set USE_ACL at the end.
53941         (gl_ACL_GET_FILE): New function.
53942
53943 2006-09-26  Eric Blake  <ebb9@byu.net>
53944
53945         * lib/verror.c: Include <config.h> unconditionally.
53946
53947 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53948
53949         * modules/clock-time (Maintainer): Add self.
53950         * modules/getlogin_r (Depends-on): Add extensions.
53951
53952 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53953
53954         * modules/clock-time: New module.
53955         * modules/nanosleep (Depends-on): Add clock-time.
53956         * modules/gethrxtime (Depends-on): Likewise.
53957         * modules/gettime (Depends-on): Likewise.
53958         * modules/settime (Depends-on): Likewise.
53959
53960         * modules/fts-lgpl: Depend on openat.
53961         * modules/mkancesdirs: Depend on savewd.
53962         * modules/mkdir-p: Likewise.
53963
53964 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53965
53966         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53967
53968         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
53969         `gl_have_arbitrary_file_name_length_limit' to
53970         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
53971         actually works between configure runs.
53972
53973 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53974             Bruno Haible  <bruno@clisp.org>
53975
53976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
53977
53978 2006-09-25  Jim Meyering  <jim@meyering.net>
53979
53980         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
53981         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
53982
53983 2006-09-25  Eric Blake  <ebb9@byu.net>
53984
53985         * gnulib-tool (func_import, func_create_testdir): Fix typos in
53986         exec's in 2006-09-18 patch when shuffling fds.
53987
53988 2006-09-25  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
53991         Reported by Jim Meyering.
53992
53993 2006-09-24  Jim Meyering  <jim@meyering.net>
53994
53995         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
53996         compare a pointer against a literal "0".  That caused failures with
53997         at least HP-UX's hpcc.
53998
53999 2006-09-22  Simon Josefsson  <jas@extundo.com>
54000
54001         * modules/gc-sha1:
54002         * modules/gc-md4:
54003         * modules/gc-hmac-sha1:
54004         * modules/gc-hmac-md5:
54005         * modules/gc-des:
54006         * modules/gc-arcfour: Distribute more files.
54007
54008 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54009
54010         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
54011         (gl_linked_iterator_from_to): Initialize struct completely.
54012         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
54013         (gl_tree_iterator_from_to): Likewise
54014         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
54015         * lib/gl_array_list.c [lint] (gl_array_iterator)
54016         (gl_array_iterator_from_to): Likewise.
54017         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
54018         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
54019         (gl_carray_iterator_from_to): Likewise.
54020
54021         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
54022         * lib/md4.c (md4_process_block): Remove unused variable.
54023         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
54024         parentheses for clarity.
54025
54026 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54027
54028         * modules/bison-i18n (Depends-on): Add gettext.
54029
54030 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54031
54032         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
54033         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
54034         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
54035         also add missing comma that caused broken test.
54036         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
54037         stdlib.h, for `abort'.
54038         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
54039         variables.
54040         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
54041         include unistd.h if present, for `rmdir'.
54042         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
54043         variables.
54044         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
54045         in the process include standard headers for prototypes.
54046         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
54047         gets declared on GNU/Linux.
54048         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
54049         unistd.h, for `rmdir'.
54050         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
54051
54052         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
54053         always true.
54054         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
54055
54056         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
54057
54058 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54059
54060         * gnulib-tool (func_version): Create output all at once.  This
54061         may help avoid triggering unnecessary SIGPIPEs, and at any
54062         rate it doesn't hurt.
54063
54064 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54065             Bruno Haible  <bruno@clisp.org>
54066
54067         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
54068         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54069         * m4/signed.m4 (bh_C_SIGNED): Likewise.
54070
54071         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
54072         (gl_FUNC_VASPRINTF): Invoke it.
54073
54074 2006-09-22  Bruno Haible  <bruno@clisp.org>
54075
54076         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
54077         getloadavg.c as first argument.
54078
54079 2006-09-22  Bruno Haible  <bruno@clisp.org>
54080
54081         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
54082         at the beginning of the gl_INIT macro.
54083         * modules/getloadavg (configure.ac): Pass $gl_source_base to
54084         gl_GETLOADAVG.
54085
54086 2006-09-22  Bruno Haible  <bruno@clisp.org>
54087
54088         * gnulib-tool (func_create_megatestdir): Don't include the config-h
54089         module.
54090         Suggested by Ralf Wildenhues.
54091
54092 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54093
54094         Import this patch from libc:
54095
54096         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
54097
54098         * lib/regex_internal.c (re_string_reconstruct): Handle
54099         offset < pstr->valid_raw_len && pstr->offsets_needed case.
54100         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
54101         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
54102         re_string_context_at.
54103
54104         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
54105         now requires it.
54106         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
54107         gl_REGEX now does it for us.
54108         (gl_REGEX): Add test taken from
54109         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
54110
54111         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
54112         Check that large offsets work.  Modernize Autoconf usages.
54113         Prefer "yes" to mean a good thing rather than a bad.
54114         Don't put "#define mkstemp" in config.h, as this might interfere
54115         with standard system headers that "#define mkstemp mkstemp64".
54116
54117         * modules/mkstemp (Depends-on): Add extensions, so that
54118         mkstemp is visible on some platforms.
54119         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
54120         (Include): Change to "mkstemp.h" from <stdlib.h>.
54121         (Files): Add mkstemp.h.
54122
54123         * lib/mkstemp.h: New file, since some standard headers
54124         #define mkstemp.
54125         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
54126         Include "mkstemp.h".
54127         Make the _LIBC code resemble glibc original more,
54128         e.g., use K&R style.
54129         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
54130         (mkstemp): Remove, since mkstemp.h does this for us.
54131         * lib/stdlib--.h: Include mkstemp.h.
54132
54133         Import this patch from libc:
54134
54135         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54136
54137         * lib/tempname.c (__gen_tempname): Change attempts_min
54138         into a macro.  Use preprocessor to decide how to initialize
54139         attempts [Coverity CID 67].
54140
54141 2006-09-20  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/mkdtemp.c: Import from libc.
54144         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54145                 * sysdeps/posix/tempname.c (__gen_tempname): Change
54146                 attempts_min into a macro.  Use preprocessor to decide how to
54147                 initialize attempts [Coverity CID 67].
54148         2001-11-27  Paul Eggert  <eggert@twinsun.com>
54149                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
54150                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
54151
54152 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54153
54154         * gnulib-tool (func_exit): New function, to allow to pass the
54155         exit status portably through the trap.  Use everywhere.
54156         (--help, --version): Signal a write error.
54157         (trap): catch SIGPIPE, for write errors.
54158         Exit at the end of the trap, with the correct exit status.
54159
54160 2006-09-19  Karl Berry  <karl@gnu.org>
54161
54162         * doc/gnulib.texi: note about the license texinfo files.
54163
54164 2006-09-19  Eric Blake  <ebb9@byu.net>
54165
54166         * gnulib-tool: Avoid space-tab.
54167
54168 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
54171         that prevented coreutils 6.1 from building.  Problem reported
54172         by Petter Reinholdtsen.
54173
54174 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         * gnulib-tool (avoidlist): Fix typo that broke options like
54177         --avoid=lock that are used by coreutils bootstrap.
54178
54179 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
54180
54181         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
54182         more systematically.
54183
54184 2006-09-18  Jim Meyering  <jim@meyering.net>
54185
54186         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
54187
54188 2006-09-18  Bruno Haible  <bruno@clisp.org>
54189
54190         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
54191
54192 2006-09-18  Bruno Haible  <bruno@clisp.org>
54193
54194         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
54195         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
54196         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
54197         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
54198         * m4/gettext.m4: Require autoconf >= 2.52.
54199         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
54200         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
54201         of gl_cv_header_inttypes_h.
54202
54203 2006-09-18  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/javaversion.c: Include configmake.h.
54206
54207 2006-09-18  Bruno Haible  <bruno@clisp.org>
54208
54209         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
54210         avoid that the while loops be executed in a subshell.
54211
54212 2006-09-18  Bruno Haible  <bruno@clisp.org>
54213
54214         * MODULES.html.sh (func_module): Break long lines.
54215         Suggested by Bruce Korb <bkorb@gnu.org>.
54216
54217 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54218
54219         Speed up by a factor of 1.12.
54220         * gnulib-tool (nl): New variable.
54221         (func_import): Rewrite include directive extraction to only read each
54222         directive once.
54223
54224 2006-09-17  Bruno Haible  <bruno@clisp.org>
54225
54226         * modules/javaversion (Makefile.am): Remove DEFS setting.
54227         (Depends-on): Add configmake, for PKGDATADIR definition.
54228
54229 2006-09-17  Bruno Haible  <bruno@clisp.org>
54230
54231         * gnulib-tool (func_create_testdir): Rewrite all files at once.
54232
54233 2006-09-17  Bruno Haible  <bruno@clisp.org>
54234
54235         * gnulib-tool (func_append): New function, stolen from libtool.m4.
54236         (func_modules_transitive_closure, func_modules_add_dummy,
54237         func_modules_to_filelist, func_import, func_create_testdir,
54238         func_create_megatestdir, ...): Use it wherever possible.
54239         Suggested by Ralf Wildenhues.
54240
54241 2006-09-16  Karl Berry  <karl@gnu.org>
54242
54243         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
54244         to avoid sectioning errors.
54245         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
54246         [ifinfo]: blank line after @center-ed titles.
54247         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
54248         Spell FSF address consistently with others.
54249         (These changes approved by rms.)
54250
54251 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54252
54253         Speed up by a factor of 1.61.
54254         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
54255         already checked module names again.
54256
54257 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54258
54259         Speed up by a factor of 1.13.
54260         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
54261         for new_files, and the input to func_add_or_update.
54262
54263 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54264
54265         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
54266         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
54267
54268 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * modules/mkancesdirs (Depends-on): Add fcntl.
54271         * modules/savewd: New file.
54272         * MODULES.html.sh (File system functions): Add savewd.
54273
54274         * modules/configmake (Makefile.am): Add support for the
54275         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
54276
54277 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54278
54279         * m4/savewd.m4: New file.
54280
54281 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54282
54283         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
54284         (dirchownmod): New arg FD.  All callers changed.
54285         Use FD rather than opening the directory ourself, as opening is
54286         now the caller's responsibility.
54287         * lib/dirchownmod.h: Likewise.
54288         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
54289         hosts that require <sys/types.h> before <sys/stat.h>.  Include
54290         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
54291         (test_dir): Remove.
54292         (mkancesdirs): Return length of prefix of FILE that has already
54293         been made, or -2 if there is a child doing the work.  Redo
54294         algorithm so that it is O(N) rather than O(N**2).  Optimize away
54295         ".", and treat ".." specially since it might stray back into
54296         already-created areas.  Use a subprocess if necessary.  New arg
54297         WD; all users changed.  MAKE_DIR function should now return 1
54298         if it creates a directory that is not readable.  Return -2 if
54299         a child process is spun off.
54300         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
54301         Adjust signature to match code.
54302         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
54303         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
54304         all users changed.
54305         * lib/savewd.c, lib/savewd.h: New files.
54306
54307 2006-09-15  Jim Meyering  <jim@meyering.net>
54308
54309         * modules/rename-dest-slash: New module.
54310         * MODULES.html.sh (posix_compat): Add it here.
54311
54312         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
54313
54314 2006-09-15  Jim Meyering  <jim@meyering.net>
54315
54316         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
54317         file.
54318
54319         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
54320
54321 2006-09-15  Jim Meyering  <jim@meyering.net>
54322
54323         * lib/rename-dest-slash.c (has_trailing_slash): Use
54324         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
54325         (rpl_rename_dest_slash): Perform the cheaper trailing slash
54326         test before testing whether SRC is a directory.
54327         Suggestions from Bruno Haible.
54328
54329         Avoid a warning about an unused variable.
54330         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
54331         into the #ifdef block where it's used.
54332
54333         * lib/rename-dest-slash.c: New file.
54334
54335 2006-09-14  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/allocsa.c: Include <config.h> unconditionally.
54338         * lib/asnprintf.c: Likewise.
54339         * lib/asprintf.c: Likewise.
54340         * lib/c-strcasecmp.c: Likewise.
54341         * lib/c-strcasestr.c: Likewise.
54342         * lib/c-strncasecmp.c: Likewise.
54343         * lib/c-strstr.c: Likewise.
54344         * lib/classpath.c: Likewise.
54345         * lib/clean-temp.c: Likewise.
54346         * lib/concatpath.c: Likewise.
54347         * lib/copy-file.c: Likewise.
54348         * lib/csharpcomp.c: Likewise.
54349         * lib/csharpexec.c: Likewise.
54350         * lib/execute.c: Likewise.
54351         * lib/fatal-signal.c: Likewise.
54352         * lib/findprog.c: Likewise.
54353         * lib/fwriteerror.c: Likewise.
54354         * lib/gl_array_list.c: Likewise.
54355         * lib/gl_array_oset.c: Likewise.
54356         * lib/gl_avltree_list.c: Likewise.
54357         * lib/gl_avltree_oset.c: Likewise.
54358         * lib/gl_avltreehash_list.c: Likewise.
54359         * lib/gl_carray_list.c: Likewise.
54360         * lib/gl_linked_list.c: Likewise.
54361         * lib/gl_linkedhash_list.c: Likewise.
54362         * lib/gl_list.c: Likewise.
54363         * lib/gl_oset.c: Likewise.
54364         * lib/gl_rbtree_list.c: Likewise.
54365         * lib/gl_rbtree_oset.c: Likewise.
54366         * lib/gl_rbtreehash_list.c: Likewise.
54367         * lib/imaxabs.c: Likewise.
54368         * lib/imaxdiv.c: Likewise.
54369         * lib/javacomp.c: Likewise.
54370         * lib/javaexec.c: Likewise.
54371         * lib/javaversion.c: Likewise.
54372         * lib/linebreak.c: Likewise.
54373         * lib/localcharset.c: Likewise.
54374         * lib/lock.c: Likewise.
54375         * lib/mbchar.c: Likewise.
54376         * lib/mbswidth.c: Likewise.
54377         * lib/mkdtemp.c: Likewise.
54378         * lib/pipe.c: Likewise.
54379         * lib/printf-args.c: Likewise.
54380         * lib/printf-parse.c: Likewise.
54381         * lib/progname.c: Likewise.
54382         * lib/progreloc.c: Likewise.
54383         * lib/readlink.c: Likewise.
54384         * lib/sh-quote.c: Likewise.
54385         * lib/stpcpy.c: Likewise.
54386         * lib/stpncpy.c: Likewise.
54387         * lib/strcasecmp.c: Likewise.
54388         * lib/strcasestr.c: Likewise.
54389         * lib/strcspn.c: Likewise.
54390         * lib/striconv.c: Likewise.
54391         * lib/strncasecmp.c: Likewise.
54392         * lib/strnlen1.c: Likewise.
54393         * lib/strstr.c: Likewise.
54394         * lib/strtok_r.c: Likewise.
54395         * lib/tls.c: Likewise.
54396         * lib/tmpdir.c: Likewise.
54397         * lib/unicodeio.c: Likewise.
54398         * lib/unsetenv.c: Likewise.
54399         * lib/vasnprintf.c: Likewise.
54400         * lib/vasprintf.c: Likewise.
54401         * lib/wait-process.c: Likewise.
54402         * lib/xallocsa.c: Likewise.
54403         * lib/xsetenv.c: Likewise.
54404         * lib/xstriconv.c: Likewise.
54405
54406 2006-09-13  Simon Josefsson  <jas@extundo.com>
54407
54408         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
54409         that internally, suggested by Ralf Wildenhues
54410         <Ralf.Wildenhues@gmx.de>.
54411
54412 2006-09-13  Simon Josefsson  <jas@extundo.com>
54413
54414         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
54415         @LIBOBJS@.
54416         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54417
54418 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * lib/_fpending.c: Include <config.h> unconditionally, since we no
54421         longer worry about uses that don't define HAVE_CONFIG_H.
54422         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
54423         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
54424         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
54425         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
54426         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
54427         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
54428         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
54429         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
54430         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
54431         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
54432         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
54433         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
54434         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
54435         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
54436         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
54437         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
54438         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
54439         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
54440         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
54441         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
54442         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
54443         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
54444         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
54445         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
54446         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
54447         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
54448         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
54449         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
54450         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
54451         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
54452         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
54453         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
54454         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
54455         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
54456         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
54457         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
54458         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
54459         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
54460         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
54461         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
54462         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
54463         Likewise.
54464
54465 2006-09-13  Eric Blake  <ebb9@byu.net>
54466
54467         * lib/getopt.c: Fix typo in last commit.
54468
54469 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54470
54471         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
54472         dgettext.
54473
54474 2006-09-12  Jim Meyering  <jim@meyering.net>
54475
54476         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
54477         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
54478         Reported by Nelson H. F. Beebe.
54479
54480 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54481
54482         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
54483         program_invocation_name and program_invocation_short_name are
54484         initialized.
54485         * lib/argp-namefrob.h: Move declarations of program_invocation_name
54486         and program_invocation_short_name to argp.h, so they are visible
54487         to user programs.
54488         * lib/argp.h: Likewise
54489
54490 2006-09-10  Bruno Haible  <bruno@clisp.org>
54491
54492         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54493         m4/inttypes_h.m4, m4/uintmax_t.m4.
54494
54495 2006-09-10  Bruno Haible  <bruno@clisp.org>
54496
54497         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
54498         gl_AC_TYPE_UINTMAX_T.
54499
54500 2006-09-10  Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
54503
54504 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54505
54506         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
54507         convention.  Text proposed by Bruno Haible.
54508         (struct argp_option): Document the use of N_() wrappers.
54509
54510         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
54511         '\v', and translate the two parts separately, instead of feeding
54512         the whole string to gettext.  This allows to exclude
54513         '\v' from the strings visible to the translator by writing doc
54514         strings as N_("..") "\v" N_("..").
54515
54516 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
54517
54518         * config/srclist.txt: Undo latest change; the bug was fixed.
54519
54520 2006-09-09  Bruno Haible  <bruno@clisp.org>
54521
54522         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
54523         assignments if building a library without libtool.
54524         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
54525         in func_emit_lib_Makefile_am.
54526         (func_import): When building a static library libfoo.a, arrange to
54527         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
54528         (func_create_testdir): Likewise.
54529         * modules/gc (configure.ac, Makefile.am): If building statically,
54530         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
54531         * modules/iconvme (configure.ac, Makefile.am): Likewise.
54532         * modules/striconv (configure.ac, Makefile.am): Likewise.
54533         Based on a suggestion by Ralf Wildenhues.
54534
54535 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54538         Check for unistd.h too, since Autoconf doesn't assume POSIX.
54539         Also:
54540
54541         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54542         Add year_2050_test to catch glibc bug 2821
54543         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54544
54545         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54546         Prefer #ifdef to #if.
54547
54548         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
54549         Return from 'main' instead of calling 'exit'.
54550
54551 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54552
54553         * lib/mktime.c (guess_time_tm): Fix bug where mktime
54554         returned the maximum time_t value rather than (time_t) -1.
54555         Problem originally reported by William Bardwell
54556         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54557
54558         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54559         Moved to here ...
54560         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54561         ... from here.
54562
54563 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
54566         2821 is fixed.
54567
54568 2006-09-08  Jim Meyering  <jim@meyering.net>
54569
54570         Don't make generated files read-only.  That would bother too many
54571         people.  However, do retain the ability to work when targets are
54572         read-only: remove the destination and temporary files before writing
54573         them (when generated via sed or echo), or by using the -f option for
54574         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
54575         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54576         * modules/byteswap, modules/configmake, modules/fcntl:
54577         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54578         * modules/localcharset, modules/netinet_in, modules/poll:
54579         * modules/stdbool, modules/stdint, modules/sys_select:
54580         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54581
54582 2006-09-08  Jim Meyering  <jim@meyering.net>
54583
54584         Avoid new build failure on FreeBSD 6.0.
54585         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
54586         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
54587         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
54588
54589 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54590
54591         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
54592
54593 2006-09-07  Jim Meyering  <jim@meyering.net>
54594
54595         Fix global typo in last change: use chmod u-w, not chmod u-x.
54596         Spotted by Paul Eggert and Bruce Korb.
54597         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54598         * modules/byteswap, modules/configmake, modules/fcntl:
54599         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54600         * modules/localcharset, modules/netinet_in, modules/poll:
54601         * modules/stdbool, modules/stdint, modules/sys_select:
54602         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54603
54604 2006-09-06  Jim Meyering  <jim@meyering.net>
54605
54606         Make generated files be read-only.
54607         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
54608         Ensure that each generated file is now read-only.
54609         * modules/argz: Likewise.
54610         * modules/arpa_inet: Likewise.
54611         * modules/byteswap: Likewise.
54612         * modules/configmake: Likewise.
54613         * modules/fcntl: Likewise.
54614         * modules/fnmatch: Likewise.
54615         * modules/getopt: Likewise.
54616         * modules/glob: Likewise.
54617         * modules/inttypes: Likewise.
54618         * modules/netinet_in: Likewise.
54619         * modules/poll: Likewise.
54620         * modules/stdbool: Likewise.
54621         * modules/stdint: Likewise.
54622         * modules/sys_select: Likewise.
54623         * modules/sys_socket: Likewise.
54624         * modules/sys_stat: Likewise.
54625         * modules/sysexits: Likewise.
54626         * modules/localcharset: Same as above, but continue using temporary
54627         file named "t-$@" (why different?) rather than the "$@-t" used
54628         everywhere else.
54629
54630         * modules/sysexits (Makefile.am): Replace literal occurrences
54631         of "sysexit.h" more readable, and more consistent, "$@".
54632
54633 2006-09-06  Bruno Haible  <bruno@clisp.org>
54634
54635         * modules/striconv: New file.
54636         * modules/xstriconv: New file.
54637         * MODULES.html.sh (Internationalization functions): Add striconv,
54638         xstriconv.
54639
54640 2006-09-06  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
54643         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
54644         not using libtool correctly.
54645
54646 2006-09-06  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/striconv.h: New file.
54649         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
54650         iconvstring.c.
54651         * lib/xstriconv.h: New file.
54652         * lib/xstriconv.c: New file.
54653
54654 2006-09-06  Bruno Haible  <bruno@clisp.org>
54655
54656         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54657         lib_..._LDFLAGS.
54658
54659 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54660
54661         * lib/argz_.h: Sync from Libtool.
54662
54663         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
54664                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54665
54666         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
54667
54668 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54669
54670         * modules/trim: New file.
54671
54672 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54673
54674         * lib/trim.h: New file.
54675         * lib/trim.c: New file.
54676
54677 2006-09-05  Bruno Haible  <bruno@clisp.org>
54678
54679         * MODULES.html.sh (String handling): Add trim.
54680
54681 2006-09-04  Karl Berry  <karl@gnu.org>
54682
54683         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
54684         until next release.
54685
54686 2006-09-03  Bruno Haible  <bruno@clisp.org>
54687
54688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
54689         correctly.
54690
54691 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
54694         not gl_GETLOADAVG.  Omit unneeded semicolons.
54695         Problems reported by Ralf Wildenhues in
54696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54697         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
54698         at the end, which is the usual gnulib style.
54699
54700         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
54701         of doing all the work ourselves.
54702         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
54703         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
54704
54705 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
54708         Problem reported by Ralf Wildenhues in
54709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54710
54711         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54712         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54713
54714 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54715
54716         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54717         yesterday's patch by changing test -n to test -z.
54718
54719 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54720
54721         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54722         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54723         the former is now obsolescent.
54724
54725         * modules/chdir-long (Depends-on): Add fcntl.
54726
54727 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54728
54729         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54730         obsolescent, and programs should use gnulib instead.
54731         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54732         but with prefixes changed.
54733
54734 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54737         or stdbool.h, because they might not exist while configuring.
54738
54739         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54740         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54741         does that for us.
54742         (O_DIRECTORY): Remove.
54743
54744 2006-08-31  Eric Blake  <ebb9@byu.net>
54745
54746         * gnulib-tool: Don't let emacs change spaces to TAB.
54747
54748 2006-08-31  Bruno Haible  <bruno@clisp.org>
54749
54750         * gnulib-tool: When calling func_import more than once, do it in a
54751         subshell.
54752         Reported by Eric Blake <ebb9@byu.net>.
54753
54754 2006-08-31  Bruno Haible  <bruno@clisp.org>
54755
54756         * gnulib-tool (nl): Remove variable.
54757         (sed_transform_lib_file): Use more robust test for config-h module.
54758         (func_import): Fix typo in 2006-08-25 patch.
54759
54760 2006-08-31  Bruno Haible  <bruno@clisp.org>
54761
54762         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54763         specified, augment Makefile.am variables instead of assigning them.
54764
54765 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54766
54767         Work around a bug in both the Linux and SunOS 64-bit kernels:
54768         nanosleep mishandles sleeps for longer than 2**31 seconds.
54769         Problem reported by Frank v Waveren in
54770         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54772         Check for nanosleep bug.
54773         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54774
54775 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         Work around a bug in both the Linux and SunOS 64-bit kernels:
54778         nanosleep mishandles sleeps for longer than 2**31 seconds.
54779         Problem reported by Frank v Waveren in
54780         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54781         * lib/nanosleep.c (BILLION): New constant.
54782         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54783         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54784         implementation.
54785
54786 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54787
54788         * modules/nanosleep (Depends-on): Add gettime.
54789
54790 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54791         and Simon Josefsson  <jas@extundo.com>
54792         and Oskar Liljeblad  <oskar@osk.mine.nu>
54793
54794         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54795         * gnulib-tool (func_import): New license type 'unmodifiable license
54796         text'.
54797         * modules/fdl: Use it.  Longer description.
54798         * module/gpl, module/lgpl: New files.
54799
54800 2006-08-30  Jim Meyering  <jim@meyering.net>
54801
54802         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54803         shadowing the parameter.
54804
54805 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54806
54807         Sync from Libtool:
54808
54809         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54810
54811         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54812         sharing with gnulib.  Report by Eric Blake.
54813
54814 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54815
54816         * modules/isapipe: New file.
54817         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54818
54819 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54820
54821         * modules/configmake (Makefile.am): Add a comment, and omit
54822         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54823         by Bruno Haible.
54824
54825 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54826
54827         * m4/isapipe.m4: New file.
54828
54829 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54830
54831         * lib/isapipe.c, lib/isapipe.h: New files.
54832
54833 2006-08-29  Jim Meyering  <jim@meyering.net>
54834
54835         * modules/configmake (Makefile.am): Make configmake.h depend on
54836         Makefile.  Otherwise, a stale configmake.h could hang around.
54837
54838 2006-08-29  Eric Blake  <ebb9@byu.net>
54839
54840         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54841         resolution of upstream bug 3044.
54842
54843 2006-08-29  Bruno Haible  <bruno@clisp.org>
54844
54845         * modules/localcharset (Depends-on): Add configmake.
54846         (Makefile.am): Remove setting of LIBDIR through DEFS.
54847
54848 2006-08-29  Bruno Haible  <bruno@clisp.org>
54849
54850         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54851         defined.
54852
54853 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54854
54855         * modules/fcntl: New file.
54856         * modules/chdir-safer (Depends-on): Add fcntl.
54857         * modules/fts: Likewise.
54858         * modules/mkdir-p: Likewise.
54859
54860         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54861         This undoes the most recent change, since we're now addressing the
54862         problem in a different way.
54863
54864         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54865         into output, since the output might be called Makefile.am even
54866         if $makefile_name is something different.
54867         (func_import): Use $makefile_am rather than
54868         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54869         empty.
54870
54871         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54872
54873 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54876         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54877         recent change to stdint.m4, since we're now addressing the problem in a
54878         different way.
54879
54880 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54881
54882         * m4/fcntl_h.m4: New file.
54883
54884 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         * lib/fcntl_.h: New file.
54887         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54888         the fcntl module.
54889         * lib/dirchownmod.c: Likewise.
54890         * lib/fts.c: Likewise.
54891
54892         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54893         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54894         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54895         just before including <inttypes.h>, to avoid circular inclusion.
54896
54897 2006-08-28  Jim Meyering  <jim@meyering.net>
54898
54899         * doc/visibility.texi: Actually read and correct the grammar of the
54900         sentence affected by yesterday's change.
54901
54902 2006-08-28  Eric Blake  <ebb9@byu.net>
54903
54904         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54905         needs wrapper.
54906
54907 2006-08-28  Eric Blake  <ebb9@byu.net>
54908
54909         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54910
54911 2006-08-28  Eric Blake  <ebb9@byu.net>
54912
54913         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54914
54915 2006-08-28  Bruno Haible  <bruno@clisp.org>
54916
54917         * modules/c-strstr: New file, from GNU gettext.
54918         * MODULES.html.sh (String handling): Add c-strstr.
54919
54920 2006-08-28  Bruno Haible  <bruno@clisp.org>
54921
54922         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54923         macros.
54924         Reported by Eric Blake.
54925
54926 2006-08-28  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54929         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54930         * lib/vasprintf.c: Include errno.h, limits.h.
54931         (EOVERFLOW): New fallback definition.
54932         (vasprintf): Test here whether the string length is > INT_MAX.
54933         * lib/vsnprintf.c: Include errno.h, limits.h.
54934         (EOVERFLOW): New fallback definition.
54935         (vsnprintf): Fix bug when generated string was too long for the buffer.
54936         Test here whether the string length is > INT_MAX.
54937
54938 2006-08-28  Bruno Haible  <bruno@clisp.org>
54939
54940         * lib/inttypes_.h (SCNX*): Remove definitions.
54941         Reported by Eric Blake.
54942
54943 2006-08-28  Bruno Haible  <bruno@clisp.org>
54944
54945         * lib/c-strstr.h: New file, from GNU gettext.
54946         * lib/c-strstr.c: New file, from GNU gettext.
54947
54948 2006-08-28  Bruno Haible  <bruno@clisp.org>
54949
54950         * gnulib-tool: Reorder some statements.
54951
54952 2006-08-28  Bruno Haible  <bruno@clisp.org>
54953
54954         * gnulib-tool: New option --makefile-name.
54955         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54956         $makefile_name.
54957         (func_import): Write $makefile_name to the cache file, and read it from
54958         there unless explicitly specified. Use $makefile_name as file name
54959         instead of Makefile.am. Adjust the recommendations accordingly.
54960
54961 2006-08-28  Bruno Haible  <bruno@clisp.org>
54962
54963         * gnulib-tool (func_verify_module): Check against misapplying patch.
54964
54965 2006-08-28  Bruno Haible  <bruno@clisp.org>
54966
54967         * gnulib-tool (func_relativize, func_relconcat): New functions.
54968         Give an error if --local-dir is given with --update.
54969         Remove trailing slashes from $local_gnulib_dir.
54970         (func_import): Store the relativized $local_gnulib_dir in
54971         gnulib-cache.m4, and read it from there if not specified explicitly.
54972
54973 2006-08-28  Bruno Haible  <bruno@clisp.org>
54974
54975         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
54976         is the current directory. Respect also $local_gnulib_dir.
54977
54978 2006-08-28  Bruno Haible  <bruno@clisp.org>
54979             Simon Josefsson  <jas@extundo.com>
54980
54981         BeOS portability.
54982         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
54983
54984 2006-08-27  Jim Meyering  <jim@meyering.net>
54985
54986         * doc/visibility.texi: Remove duplicate word: "pointer".
54987
54988 2006-08-26  Bruno Haible  <bruno@clisp.org>
54989
54990         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
54991         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
54992         (Makefile.am): Create inttypes.h from inttypes_.h.
54993         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
54994
54995         * modules/imaxabs: New file.
54996
54997         * modules/imaxdiv: New file.
54998
54999 2006-08-26  Bruno Haible  <bruno@clisp.org>
55000
55001         * m4/inttypes.m4: New file.
55002         * m4/_inttypes_h.m4: Remove file.
55003         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
55004         PRI_MACROS_BROKEN.
55005         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
55006
55007         * m4/imaxabs.m4: New file.
55008
55009         * m4/imaxdiv.m4: New file.
55010
55011 2006-08-26  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/inttypes_.h: New file.
55014         * lib/inttypes.h: Remove file.
55015         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
55016
55017         * lib/imaxabs.c: New file.
55018
55019         * lib/imaxdiv.c: New file.
55020
55021 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55022
55023         New config-h module, so that "make" output needn't be cluttered
55024         by -DHAVE_CONFIG_H.
55025         * MODULES.html.sh (Support for building libraries and executables):
55026         Add config-h.
55027         * modules/config-h: New file.
55028         * gnulib-tool (nl, sed_transform_lib_file): New vars.
55029         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
55030         the config-h module is used.
55031
55032         New configmake module, so that "make" output needn't be cluttered
55033         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
55034         * MODULES.html.sh (Support for building libraries and executables):
55035         Add configmake.
55036         * modules/configmake: New file.
55037
55038 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55039
55040         * m4/config-h.m4: New file.
55041
55042 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55043
55044         * config/srclist.txt: Add elisp-comp.
55045
55046 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55047
55048         * MODULES.html.sh (Support for building libraries and executables):
55049         Add elisp-comp.
55050         * build-aux/elisp-comp: New file.
55051         * modules/elisp-comp: New file.
55052
55053 2006-08-24  Bruno Haible  <bruno@clisp.org>
55054
55055         * gnulib-tool (func_create_testdir): Use non-default values of
55056         sourcebase and m4base.
55057
55058 2006-08-24  Bruno Haible  <bruno@clisp.org>
55059
55060         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
55061         HTML structure.
55062
55063 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55064
55065         * modules/openat (Depends-on): Add lchown.
55066
55067 2006-08-23  Bruno Haible  <bruno@clisp.org>
55068
55069         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
55070         of gl_LOCK_EARLY instead of gl_LOCK.
55071
55072 2006-08-23  Bruno Haible  <bruno@clisp.org>
55073
55074         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
55075         on OSF/1 to no.
55076         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
55077
55078 2006-08-23  Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
55081         as unusable.
55082
55083         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
55084         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
55085         (gl_LOCK): New macro.
55086
55087 2006-08-22  Simon Josefsson  <jas@extundo.com>
55088
55089         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
55090         to md5 module.
55091
55092 2006-08-22  Simon Josefsson  <jas@extundo.com>
55093
55094         * MODULES.html.sh: Add "Support for maintaining and release
55095         projects".
55096
55097         * build-aux/gnupload: New file, from coreutils.
55098
55099 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         Avoid the need for AC_LIBSOURCES in m4 macros.
55102         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
55103         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
55104         * modules/check-version (EXTRA_DIST): Add check-version.h.
55105         * modules/crc (EXTRA_DIST): Add crc.h.
55106         * modules/des (EXTRA_DIST): Add des.h.
55107         * modules/gc (EXTRA_DIST): Add gc.h.
55108         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
55109         * modules/getline (EXTRA_DIST): Add getline.h.
55110         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
55111         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
55112         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
55113         * modules/md2 (EXTRA_DIST): Add md2.h.
55114         * modules/md4 (EXTRA_DIST): Add md4.h.
55115         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
55116         * modules/read-file (EXTRA_DIST): Add read-file.h.
55117         * modules/readline (EXTRA_DIST): Add readline.h.
55118         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
55119         rijndael-api-fst.h.
55120
55121 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55122
55123         * m4/rijndael.m4 (gl_ARCFOUR):
55124         * m4/arctwo.m4 (gl_ARCTWO):
55125         * m4/check-version.m4 (gl_CHECK_VERSION):
55126         * m4/crc.m4 (gl_CRC):
55127         * m4/des.m4 (gl_DES):
55128         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
55129         * m4/gc.m4 (gl_GC):
55130         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
55131         * m4/getline.m4 (gl_FUNC_GETLINE):
55132         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
55133         * m4/hmac-md5.m4 (gl_HMAC_MD5):
55134         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
55135         * m4/md2.m4 (gl_MD2):
55136         * m4/md4.m4 (gl_MD4):
55137         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
55138         * m4/read-file.m4 (gl_FUNC_READ_FILE):
55139         * m4/readline.m4 (gl_FUNC_READLINE):
55140         * m4/rijndael.m4 (gl_RIJNDAEL):
55141         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55142         to get the necessary .h files and whatnot.
55143
55144 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
55147         gnulib rather than the other way around.
55148         * config/srclistvars.sh (COREUTILS): Remove.
55149
55150 2006-08-22  Jim Meyering  <jim@meyering.net>
55151
55152         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
55153
55154         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
55155
55156 2006-08-22  Eric Blake  <ebb9@byu.net>
55157
55158         * modules/regexprops-generic: New file.
55159         * MODULES.html.sh (Support for building documentation): List it.
55160
55161 2006-08-22  Eric Blake  <ebb9@byu.net>
55162
55163         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
55164         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55165         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
55166         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55167
55168 2006-08-22  Bruno Haible  <bruno@clisp.org>
55169
55170         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
55171         and lib_LTLIBRARIES like the other lib_* variables.
55172
55173 2006-08-22  Bruno Haible  <bruno@clisp.org>
55174
55175         * build-aux/x-to-1.in: New file, from GNU gettext.
55176
55177 2006-08-22  Bruno Haible  <bruno@clisp.org>
55178
55179         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
55180         <utmpx.h> exists.
55181
55182 2006-08-22  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
55185         <utmpx.h> exists.
55186
55187 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         BeOS portability.
55190         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
55191         exist.
55192         Problem reported by Bruno Haible.
55193
55194 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         Avoid the need for AC_LIBSOURCES in m4 macros.
55197         * modules/acl (EXTRA_DIST): Add acl.h.
55198         * modules/argmatch (Files): Add m4/argmatch.m4.
55199         (configure.ac): Add gl_ARGMATCH.
55200         (EXTRA_DIST): Renamed from lib_SOURCES, for
55201         consistency with the other modules.  Remove argmatch.c.
55202         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
55203         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
55204         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
55205         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
55206         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
55207         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
55208         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
55209         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
55210         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
55211         * modules/closeout (EXTRA_DIST): Add closeout.h.
55212         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
55213         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
55214         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
55215         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
55216         dirname.h; remove basename.c and stripslash.c.
55217         * modules/exclude (EXTRA_DIST): Add exclude.h.
55218         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
55219         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
55220         * modules/file-type (EXTRA_DIST): Add file-type.h.
55221         * modules/filemode (EXTRA_DIST): Add filemode.h.
55222         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
55223         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55224         * modules/fpending (EXTRA_DIST): Add __fpending.h.
55225         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
55226         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
55227         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
55228         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
55229         * modules/getdate (EXTRA_DIST): Add getdate.c.
55230         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
55231         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
55232         * modules/getpass (EXTRA_DIST): Add getpass.h.
55233         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
55234         * modules/group-member (EXTRA_DIST): Add group-member.h.
55235         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
55236         * modules/hash (EXTRA_DIST): Add hash.h.
55237         * modules/human (EXTRA_DIST): Add human.h.
55238         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
55239         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
55240         * modules/lchown (EXTRA_DIST): Add lchown.h.
55241         * modules/long-options (EXTRA_DIST): Add long-options.h.
55242         * modules/lstat (EXTRA_DIST): Add lstat.h.
55243         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
55244         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
55245         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
55246         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
55247         * modules/memxor (EXTRA_DIST): Add memxor.h.
55248         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
55249         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
55250         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
55251         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
55252         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
55253         * modules/physmem (EXTRA_DIST): Add physmem.h.
55254         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
55255         * modules/posixver (EXTRA_DIST): Add posixver.h.
55256         * modules/quote (EXTRA_DIST): Add quote.h.
55257         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
55258         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
55259         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
55260         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
55261         regex_internal.h regexec.c.
55262         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
55263         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
55264         * modules/same (EXTRA_DIST): Add same.h.
55265         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
55266         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
55267         * modules/savedir (EXTRA_DIST): Add savedir.h.
55268         * modules/sha1 (EXTRA_DIST): Add sha1.h.
55269         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
55270         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
55271         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
55272         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
55273         * modules/strdup (EXTRA_DIST): Add strdup.h.
55274         * modules/strftime (EXTRA_DIST): Add strftime.h.
55275         * modules/strndup (EXTRA_DIST): Add strndup.h.
55276         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
55277         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
55278         * modules/time_r (EXTRA_DIST): Add time_r.h.
55279         * modules/timespec (EXTRA_DIST): Add timespec.h.
55280         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55281         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
55282         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
55283         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
55284         * modules/userspec (EXTRA_DIST): Add userspec.h.
55285         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
55286         * modules/utimens (EXTRA_DIST): Add utimens.h.
55287         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
55288         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
55289         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
55290         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
55291         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
55292         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
55293         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
55294         * modules/yesno (EXTRA_DIST): Add yesno.h.
55295
55296 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55297
55298         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
55299
55300         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
55301         * m4/dev-ino.m4, same-inode.m4: Remove.
55302
55303         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
55304         * m4/acl.m4 (AC_FUNC_ACL):
55305         * m4/backupfile.m4 (gl_BACKUPFILE):
55306         * m4/c-strtod.m4 (gl_C99_STRTOLD):
55307         * m4/canon-host.m4 (gl_CANON_HOST):
55308         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55309         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
55310         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
55311         * m4/cloexec.m4 (gl_CLOEXEC):
55312         * m4/close-stream.m4 (gl_CLOSE_STREAM):
55313         * m4/closeout.m4 (gl_CLOSEOUT):
55314         * m4/dirfd.m4 (gl_FUNC_DIRFD):
55315         * m4/dirname.m4 (gl_DIRNAME):
55316         * m4/exclude.m4 (gl_EXCLUDE):
55317         * m4/exitfail.m4 (gl_EXITFAIL):
55318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
55319         * m4/file-type.m4 (gl_FILE_TYPE):
55320         * m4/filemode.m4 (gl_FILEMODE):
55321         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
55322         * m4/fpending.m4 (gl_FUNC_FPENDING):
55323         * m4/fprintftime.m4 (gl_FPRINTFTIME):
55324         * m4/fts.m4 (gl_FUNC_FTS):
55325         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
55326         * m4/getdate.m4 (gl_GETDATE):
55327         * m4/gethrxtime.m4 (gl_GETHRXTIME):
55328         * m4/getpagesize.m4 (gl_GETPAGESIZE):
55329         * m4/getpass.m4 (gl_FUNC_GETPASS):
55330         * m4/gettime.m4 (gl_GETTIME):
55331         * m4/getugroups.m4 (gl_GETUGROUPS):
55332         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
55333         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
55334         * m4/hard-locale.m4 (gl_HARD_LOCALE):
55335         * m4/hash.m4 (gl_HASH):
55336         * m4/idcache.m4 (gl_IDCACHE):
55337         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
55338         * m4/lchown.m4 (gl_FUNC_LCHOWN):
55339         * m4/long-options.m4 (gl_LONG_OPTIONS):
55340         * m4/lstat.m4 (gl_FUNC_LSTAT):
55341         * m4/md5.m4 (gl_MD5):
55342         * m4/memcasecmp.m4 (gl_MEMCASECMP):
55343         * m4/memcoll.m4 (gl_MEMCOLL):
55344         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
55345         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
55346         * m4/memxor.m4 (gl_MEMXOR):
55347         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
55348         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
55349         * m4/modechange.m4 (gl_MODECHANGE):
55350         * m4/mountlist.m4 (gl_MOUNTLIST):
55351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55352         * m4/openat.m4 (gl_FUNC_OPENAT):
55353         * m4/pathmax.m4 (gl_PATHMAX):
55354         * m4/physmem.m4 (gl_PHYSMEM):
55355         * m4/posixtm.m4 (gl_POSIXTM):
55356         * m4/posixver.m4 (gl_POSIXVER):
55357         * m4/quote.m4 (gl_QUOTE):
55358         * m4/quotearg.m4 (gl_QUOTEARG):
55359         * m4/readtokens.m4 (gl_READTOKENS):
55360         * m4/readutmp.m4 (gl_READUTMP):
55361         * m4/regex.m4 (gl_REGEX):
55362         * m4/safe-read.m4 (gl_SAFE_READ):
55363         * m4/safe-write.m4 (gl_SAFE_WRITE):
55364         * m4/same.m4 (gl_SAME):
55365         * m4/save-cwd.m4 (gl_SAVE_CWD):
55366         * m4/savedir.m4 (gl_SAVEDIR):
55367         * m4/settime.m4 (gl_SETTIME):
55368         * m4/sha1.m4 (gl_SHA1):
55369         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
55370         * m4/stat-macros.m4 (gl_STAT_MACROS):
55371         * m4/stat-time.m4 (gl_STAT_TIME):
55372         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
55373         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
55374         * m4/strdup.m4 (gl_FUNC_STRDUP):
55375         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
55376         * m4/strndup.m4 (gl_FUNC_STRNDUP):
55377         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
55378         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
55379         * m4/time_r.m4 (gl_TIME_R):
55380         * m4/timespec.m4 (gl_TIMESPEC):
55381         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
55382         * m4/unlinkdir.m4 (gl_UNLINKDIR):
55383         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
55384         * m4/userspec.m4 (gl_USERSPEC):
55385         * m4/utimecmp.m4 (gl_UTIMECMP):
55386         * m4/utimens.m4 (gl_UTIMENS):
55387         * m4/xalloc.m4 (gl_XALLOC):
55388         * m4/xgetcwd.m4 (gl_XGETCWD):
55389         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
55390         * m4/xreadlink.m4 (gl_XREADLINK):
55391         * m4/xstrtod.m4 (gl_XSTRTOD):
55392         * m4/yesno.m4 (gl_YESNO):
55393         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55394         to get the necessary .h files and whatnot.
55395
55396 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
55397             Bruno Haible  <bruno@clisp.org>
55398
55399         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
55400         /bin/sh understanding of '!' conditional negation.
55401
55402 2006-08-21  Jim Meyering  <jim@meyering.net>
55403
55404         * modules/openat (Depends-on): Really alphabetize.
55405
55406         * modules/acl (Depends-on): Add error and quote.
55407
55408         * check-module (find_included_lib_files): Add at-func.c to the
55409         ok-to-include-more-than-once white list.
55410
55411         * modules/openat (Depends-on): Add lstat.  Alphabetize.
55412
55413 2006-08-21  Bruno Haible  <bruno@clisp.org>
55414
55415         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55416         Emit a pkgdata_DATA variable only if some snippets add contents to it.
55417         Reported by Martin Lambers <marlam@marlam.de>.
55418
55419 2006-08-21  Bruno Haible  <bruno@clisp.org>
55420
55421         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
55422         specify an installation location, don't emit a noinst_LIBRARIES or
55423         noinst_LTLIBRARIES assignment.
55424
55425 2006-08-21  Bruno Haible  <bruno@clisp.org>
55426
55427         BeOS portability.
55428         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
55429         BeOS has mbrtowc() but no <wctype.h>.
55430
55431 2006-08-21  Bruno Haible  <bruno@clisp.org>
55432
55433         BeOS portability.
55434         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
55435         exist.
55436
55437 2006-08-21  Bruno Haible  <bruno@clisp.org>
55438
55439         BeOS portability.
55440         * lib/mbchar.h: Include <wctype.h> only if it exists.
55441
55442 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         Remove files that are no longer needed by their respective modules.
55445         * m4/obstack.m4: Remove.
55446         * m4/strerror_r.m4: Remove.
55447         * m4/uint32_t.m4: Remove.
55448         * m4/uintptr_t.m4: Remove.
55449         * m4/ullong_max.m4: Remove.
55450         * m4/xstrtoimax.m4: Remove.
55451         * m4/xstrtoumax.m4: Remove.
55452
55453         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
55454         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
55455         dependencies now capture this.
55456
55457         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
55458         Do not use AC_LIBSOURCES, since gnulib modules now do this.
55459         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
55460         * m4/human.m4 (gl_HUMAN): Likewise.
55461         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
55462         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
55463
55464         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
55465
55466         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
55467         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
55468         stdint.
55469         * m4/human.m4 (gl_HUMAN): Likewise.
55470         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
55471         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
55472         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55473         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55474         * m4/xstrtol (gl_XSTRTOL): Likewise.
55475
55476         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
55477         AC_TYPE_LONG_LONG_INT.
55478         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55479         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
55480         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
55481         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55482
55483         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
55484         on stdbool.
55485
55486         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
55487         (gl_PREREQ_XSTRTOUL): Remove.
55488
55489         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
55490
55491         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
55492         mode.
55493
55494 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55495
55496         Add and change modules to make it easier for coreutils to use
55497         gnulib-tool.
55498         * modules/backupfile (Files): Remove m4/d-ino.m4.
55499         (Depends-on): Add d-ino.
55500         * modules/cycle-check (Depends-on): Add stdint.
55501         (lib_SOURCES): Add cycle-check.h.
55502         * modules/d-ino: New module.
55503         * modules/d-type: New module.
55504         * modules/error (Files): Remove m4/strerror_r.m4.
55505         * modules/filemode (Files): Add m4/st_dm_mode.m4.
55506         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55507         m4/inttypes_h.m4, m4/uintmax_t.m4.
55508         (Depends-on): Add stdint.
55509         (lib_SOURCES): Add fsusage.h.
55510         * modules/getcwd (Files): Remove d-ino.m4.
55511         (Depends-on): Add d-ino.
55512         * modules/getndelim2 (Depends-on): Add stdint.
55513         * modules/glob (Files): Remove m4/d-type.m4.
55514         (Depends-on): Add d-type.
55515         * modules/host-os: New module.
55516         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
55517         m4/inttypes_h.m4, m4/uintmax_t.m4.
55518         * Depends-on: Add stdint.
55519         (lib_SOURCES): Add human.h.
55520         * modules/inttostr (Files): Remove m4/intmax_t.m4,
55521         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
55522         m4/uintmax_t.m4, m4/ulonglong.m4.
55523         (Depends-on): Add stdint.
55524         (EXTRA_DIST): Add inttostr.h.
55525         * modules/lchmod: New module.
55526         * modules/link-follow: New module.
55527         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
55528         (Depends-on): Add lchmod.
55529         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
55530         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
55531         (Depends-on): Add stdint.
55532         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
55533         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
55534         (Depends-on): Add stdint.
55535         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
55536         * modules/perl: New module.
55537         * modules/regex (Depends-on): Add stdint.
55538         * modules/rmdir-errno: New module.
55539         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55540         m4/intmax_t.m4.
55541         (Depends-on): Add stdint.
55542         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55543         m4/uintmax_t.m4.
55544         (Depends-on): Add stdint.
55545         * modules/unlink-busy: New module.
55546         * modules/utimecmp (Depends-on): Add stdint.
55547         * modules/uptime: New module.
55548         * modules/winsz-ioctl: New module.
55549         * modules/winsz-termios: New module.
55550         * modules/xnanosleep (Depends-on): Add nanosleep.
55551         * modules/ullong_max: Remove.
55552         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
55553         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
55554         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
55555         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
55556         (Depends-on): Add inttypes.
55557         (lib_SOURCES): Add xstrtol.h.
55558         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
55559         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
55560         * MODULES.html.sh: Move 'assert' into the assert section.
55561         Move 'dummy' into the linking section.
55562         Remove ullong_max.
55563         Add section for compatibility checks for POSIX:2001 functions,
55564         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
55565         winsz-ioctl, and winsz-termios into it.
55566         Add lchmod.
55567         Add top-level Misc section and put host-os, perl, and uptime
55568         into it.
55569
55570 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55571
55572         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
55573         now assume the stdint module.  Do not include inttypes.h.
55574         * lib/fsusage.h: Likewise.
55575         * lib/getndelim2.c: Likewise.
55576         * lib/human.h: Likewise.
55577         * lib/inttostr.h: Likewise.
55578         * lib/obstack.c: Likewise.
55579         * lib/regex_internal.h: Likewise.
55580         * lib/tempname.c: Likewise.
55581         * lib/utimecmp.c: Likewise.
55582         * lib/xstrtol.h: Likewise.
55583
55584         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
55585
55586         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
55587         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
55588         * lib/xtime.h: Likewise.
55589
55590 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55591
55592         * modules/openat (Files): Add lib/fchmodat.c.
55593         Fixes problem reported by Jay Youngman.
55594
55595 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
55598         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
55599
55600 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
55601             Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
55604         and is a script that invokes bison. Tighten the code. Add comments.
55605
55606 2006-08-18  Jim Meyering  <jim@meyering.net>
55607
55608         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
55609         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
55610         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
55611         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
55612
55613 2006-08-18  Bruno Haible  <bruno@clisp.org>
55614
55615         * modules/bison-i18n: New file.
55616         * MODULES.html.sh (Internationalization functions): Add it.
55617
55618 2006-08-18  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
55621         sys/statvfs.h. When getmntinfo was found, check its declaration and
55622         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
55623
55624 2006-08-18  Bruno Haible  <bruno@clisp.org>
55625
55626         * m4/bison-i18n.m4: New file, from bison.
55627
55628 2006-08-18  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
55631         (ME_DUMMY): Treat "kernfs" as a dummy.
55632         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
55633
55634 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55635
55636         Update from coreutils.
55637
55638         2006-08-15  Jim Meyering  <jim@meyering.net>
55639
55640         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
55641
55642         2006-01-17  Jim Meyering  <jim@meyering.net>
55643
55644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
55645
55646         2006-01-11  Jim Meyering  <jim@meyering.net>
55647
55648         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
55649         Check for the lchmod function.
55650
55651 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         Update from coreutils.
55654
55655         * lib/__fpending.h: Add copyright notice.
55656         * lib/fprintftime.h: Likewise.
55657         * lib/savedir.c: Use (C) in copyright notice.
55658         * lib/savedir.h: Likewise.
55659
55660         2006-08-15  Jim Meyering  <jim@meyering.net>
55661
55662         * lib/at-func.c: New file, with the logic of all emulated at-functions.
55663         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
55664         in support of the EXPECTED_ERRNO macro.
55665         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
55666         definitions.  Instead, define the appropriate symbols and include
55667         "at-func.c".
55668         * lib/mkdirat.c (mkdirat): Likewise.
55669         * lib/fchmodat.c (fchmodat): Likewise.
55670         (ENOSYS): Remove definition.
55671         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
55672         it.  Don't include "unistd--.h" -- it wasn't ever used.
55673
55674         2006-01-17  Jim Meyering  <jim@meyering.net>
55675
55676         Rewrite fts.c not to change the current working directory,
55677         by using openat, fstatat, fdopendir, etc..
55678
55679         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
55680         (HAVE_OPENAT_SUPPORT): Define.
55681         [_LIBC] (fchdir): Don't undef or define; no longer used.
55682         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
55683         Now, this `function' always succeeds, and consumes its file descriptor
55684         parameter -- so callers must not close such FDs.  Update callers.
55685         (diropen_fd, opendirat, cwd_advance_fd): New functions.
55686         (diropen): Add parameter, SP.  Adjust all callers.
55687         Implement using diropen_fd, rather than open.
55688         (fts_open): Initialize new member, fts_cwd_fd.
55689         Remove fts_rft-setting code.
55690         (fts_close): Close fts_cwd_fd, if necessary.
55691         (__opendir2): Define in terms of opendir or opendirat,
55692         depending on whether the FST_NOCHDIR flag is set.
55693         (fts_build): Since fts_safe_changedir consumes its FD, and since
55694         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
55695         and close the dup'd file descriptor upon failure.
55696         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
55697         (fts_safe_changedir): Tweak semantics to reflect that this function
55698         now calls cwd_advance_fd and hence consumes its FD argument.
55699         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
55700         [struct FTS] (fts_rft): Remove now-unused member.
55701         [struct FTS] (fts_cycle.state): Improve comment.
55702
55703         * lib/openat.c (openat_needs_fchdir): New function.
55704         * lib/openat.h (openat_needs_fchdir): Declare it.
55705
55706 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55709         Problem and fix reported by Pádraig Brady in
55710         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55711
55712 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55715
55716 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55717
55718         * lib/memcoll.c (memcoll): Optimize for the common case where the
55719         arguments are bytewise equal.
55720
55721 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55722
55723         * doc/regexprops-generic.texi: Add a copyright notice.
55724
55725 2006-08-15  Bruno Haible  <bruno@clisp.org>
55726
55727         * modules/tmpdir (License): Change to LGPL.
55728
55729 2006-08-15  Bruno Haible  <bruno@clisp.org>
55730
55731         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55732         module.
55733
55734 2006-08-14  Simon Josefsson  <jas@extundo.com>
55735
55736         * config/srclist.txt: Add gnupload.
55737
55738 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         Change copyright notice from LGPL 2 to GPL 2, since that's the
55741         standard form used in the gnulib repository.
55742         * tests/test-lock.c: Likewise.
55743         * tests/test-stdint.c: Likewise.
55744         * tests/test-tls.c: Likewise.
55745
55746         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55747         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55748         Add copyright notice.
55749
55750         * check-module: Add copyright notice.  Output a copyright
55751         notice if "--version" is specified.
55752         * modules/COPYING: New file.
55753         * tests/test-getaddrinfo.c: Add copyright notice.
55754         * tests/test-verify.c: Likewise.
55755
55756 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55757
55758         Change copyright notice from LGPL 2 to GPL 2, since that's the
55759         standard form used in the gnulib repository.
55760         * lib/lock.c: LGPL -> GPL.
55761         * lib/lock.h: Likewise.
55762         * lib/strnlen1.c: Likewise.
55763         * lib/strnlen1.h: Likewise.
55764         * lib/tls.c: Likewise.
55765         * lib/tls.h: Likewise.
55766         * lib/tmpdir.c: Likewise.
55767
55768         * lib/TODO: Remove; this belongs only in coreutils.
55769
55770 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55771
55772         Add copyright notices to long-enough files that lack them, since
55773         otherwise the files aren't clearly free.  Use the same notice that
55774         getdate.texi already uses.
55775         * doc/alloca-opt.texi: Add copyright notice.
55776         * doc/alloca.texi: Likewise.
55777         * doc/ctime.texi: Likewise.
55778         * doc/functions.texi: Likewise.
55779         * doc/gcd.texi: Likewise.
55780         * doc/gnulib-tool.texi: Likewise.
55781         * doc/inet_ntoa.texi: Likewise.
55782         * doc/visibility.texi: Likewise.
55783
55784         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55785         * doc/quote.texi: Add copyright notice.
55786
55787         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55788         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55789         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55790         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55791         is now obsolete, and give a pointer to the Sun list.
55792         Add copyright notice.
55793
55794 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * config/srclistvars.sh: Add copyright notice.
55797
55798 2006-08-14  Eric Blake  <ebb9@byu.net>
55799
55800         Import the following change from libc:
55801
55802         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55803
55804         Upstream bug 2997.
55805         * lib/misc/error.c: Add space between program name and message if file
55806         name is missing.
55807
55808 2006-08-12  Karl Berry  <karl@gnu.org>
55809
55810         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55811         remove, these originate in gnulib now.
55812
55813 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55814
55815         * doc/Makefile (standards.info standards.html standards.dvi):
55816         Also depend on make-stds.texi.
55817
55818 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55819
55820         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55821         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55822
55823         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55824         in wchar_t.  Problem reported by Eric Blake.
55825
55826         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55827         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55828         Also, help the compiler to keep LEN in a register.
55829
55830 2006-08-11  Eric Blake  <ebb9@byu.net>
55831
55832         * users.txt: Sort.  Add tar.
55833
55834 2006-08-11  Bruno Haible  <bruno@clisp.org>
55835
55836         * users.txt: New file.
55837
55838 2006-08-11  Bruno Haible  <bruno@clisp.org>
55839
55840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55841         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55842
55843 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * modules/snprintf (Depends-on): Remove minmax.
55846         (Maintainer): Add self and Bruno.
55847
55848 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55851         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55852         (EOVERFLOW): Define if the system does not.
55853         Do not include "minmax.h"; it wasn't used.
55854         (snprintf): Don't assume size_t promotes to an unsigned type.
55855         Fix bug when generated string was too long for the buffer: the
55856         buffer's contents are supposed to be the initial prefix of the
55857         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55858         exceeds INT_MAX; do the check ourselves.
55859
55860         Import the following changes from libc:
55861
55862         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55863
55864         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55865         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55866         set wc to the byte which couldn't be converted.
55867         (re_string_reconstruct): Don't clear valid_raw_len before calling
55868         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55869         tip_context using re_string_context_at.
55870
55871         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55872
55873         * lib/posix/regex.h: g++ still cannot handled [restrict].
55874
55875         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55876
55877         * lib/posix/regex.h: Remove special handling for VMS.
55878
55879 2006-08-10  Jim Meyering  <jim@meyering.net>
55880
55881         * modules/same-inode: New module.
55882         * modules/dev-ino: New module.
55883         * modules/cycle-check: Depend on these modules, rather than simply
55884         including their .h files.
55885         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55886         required via m4/cycle-check.m4.
55887         * modules/same: Depend on new same-inode module, rather than
55888         including same-inode.h.
55889         * modules/chdir-safer: New file.
55890
55891         * modules/chown (Depends-on): Add stat-macros.
55892
55893 2006-08-10  Jim Meyering  <jim@meyering.net>
55894
55895         * m4/cycle-check.m4: New file.
55896         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55897         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55898
55899 2006-08-10  Eric Blake  <ebb9@byu.net>
55900
55901         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55902         in from original proposal.
55903
55904 2006-08-10  Eric Blake  <ebb9@byu.net>
55905         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55906
55907         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55908         namespace.
55909
55910 2006-08-10  Bruno Haible  <bruno@clisp.org>
55911
55912         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55913         as well.
55914
55915 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         Sync from coreutils.
55918
55919         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55920
55921         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55922         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55923
55924 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55925
55926         * modules/restrict: Remove; no longer needed now that we assume
55927         Autoconf 2.59 or later.
55928         * MODULES.html.sh: Remove 'restrict'.
55929         * modules/argp (Depends-on): Remove 'restrict'.
55930         * modules/base64 (Depends-on): Likewise.
55931         * modules/gc (Depends-on): Likewise.
55932         * modules/getaddrinfo (Depends-on): Likewise.
55933         * modules/glob (Depends-on): Likewise.
55934         * modules/inet_ntop (Depends-on): Likewise.
55935         * modules/inet_pton (Depends-on): Likewise.
55936         * modules/memxor (Depends-on): Likewise.
55937         * modules/regex (Depends-on): Likewise.
55938         * modules/strtok_r (Depends-on): Likewise.
55939         * modules/time_r (Depends-on): Likewise.
55940
55941 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55942
55943         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55944         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55945         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55946         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55947         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55948         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55949         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55950         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55951
55952         Merge from coreutils.
55953         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55954         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55955         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55956         * m4/time_r.m4 (gl_TIME_R): Likewise.
55957
55958 2006-08-09  Karl Berry  <karl@gnu.org>
55959
55960         * config/srclist.txt: no more gettext-tools, per Bruno.
55961
55962 2006-08-08  Eric Blake  <ebb9@byu.net>
55963
55964         * modules/verror: New module.
55965         * MODULES.html.sh: Document it.
55966
55967 2006-08-08  Eric Blake  <ebb9@byu.net>
55968
55969         * lib/verror.h, lib/verror.c: New files.
55970
55971 2006-08-08  Eric Blake  <ebb9@byu.net>
55972
55973         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
55974         verror_at_line output complies with GNU Coding Standards even when
55975         file is NULL.
55976
55977 2006-08-07  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
55980         versions of AIX.
55981         Reported by Ralf Wildenhues.
55982
55983 2006-08-07  Bruno Haible  <bruno@clisp.org>
55984
55985         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
55986         in an AC_DEFUN. Needed so that the autoconf snippets can use
55987         AC_REQUIRE.
55988
55989 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55990
55991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55992         Initialize pkgdata_DATA.
55993         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
55994         overriding it.
55995
55996 2006-08-06  Eric Blake  <ebb9@byu.net>
55997
55998         * lib/error.h: Fold in some upstream changes from glibc.
55999         * lib/error.c: Likewise.
56000
56001 2006-08-04  Bruno Haible  <bruno@clisp.org>
56002
56003         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56004         Make the mostlyclean-local rule depend on mostlyclean-generic.
56005         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
56006
56007 2006-07-31  Bruno Haible  <bruno@clisp.org>
56008
56009         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
56010         <stdlib.h>, <string.h>.
56011
56012 2006-07-30  Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/readlink (License): Change to LGPL.
56015
56016 2006-07-30  Bruno Haible  <bruno@clisp.org>
56017
56018         * modules/javaversion (Makefile.am): Distribute javaversion.java and
56019         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
56020         set PKGDATADIR to point to it.
56021
56022 2006-07-30  Bruno Haible  <bruno@clisp.org>
56023
56024         * modules/csharpexec (configure.ac): Comment out macro invocation.
56025         * modules/javaexec (configure.ac): Likewise.
56026         * modules/javacomp-script (configure.ac): Likewise.
56027
56028         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
56029
56030 2006-07-30  Bruno Haible  <bruno@clisp.org>
56031
56032         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
56033         linked-list.
56034
56035 2006-07-30  Bruno Haible  <bruno@clisp.org>
56036
56037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
56038
56039 2006-07-30  Bruno Haible  <bruno@clisp.org>
56040
56041         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56042         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
56043         get removed.
56044
56045 2006-07-29  Bruno Haible  <bruno@clisp.org>
56046
56047         Make it possible for gnulib-tool to work with locally modified or
56048         augmented gnulib repositories.
56049         * gnulib-tool (func_usage): Document --local-dir option.
56050         (local_gnulib_dir): New variable.
56051         Handle --local-dir option.
56052         (func_lookup_file): New function.
56053         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
56054         (func_get_description, func_get_filelist, func_get_description,
56055         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
56056         func_get_automake_snippet, func_get_include_directive,
56057         func_get_license, func_get_maintainer): Use func_lookup_file.
56058         (func_import, func_create_testdir): Use func_lookup_file.
56059
56060 2006-07-29  Bruno Haible  <bruno@clisp.org>
56061
56062         * modules/setenv (Depends-on): Add unistd.
56063
56064 2006-07-29  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
56067
56068 2006-07-29  Bruno Haible  <bruno@clisp.org>
56069
56070         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
56071
56072 2006-07-29  Bruno Haible  <bruno@clisp.org>
56073
56074         * gnulib-tool (import, update): If there is no Makefile.am, look at
56075         aclocal.m4, instead of bailing out.
56076
56077 2006-07-29  Bruno Haible  <bruno@clisp.org>
56078
56079         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
56080         Categorize the options by when they are useful.
56081
56082 2006-07-29  Bruno Haible  <bruno@clisp.org>
56083
56084         * gnulib-tool (func_usage): Document option --no-libtool.
56085         Handle option --no-libtool.
56086         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
56087         for changed semantics of $libtool variable.
56088         (func_import): Likewise. If libtool is not used, show this through
56089         an option --no-libtool.
56090         (func_create_testdir): Update.
56091
56092 2006-07-29  Bruno Haible  <bruno@clisp.org>
56093
56094         * gnulib-tool (func_import): Extend error message about missing
56095         --doc-base.
56096
56097 2006-07-29  Bruno Haible  <bruno@clisp.org>
56098
56099         * gnulib-tool (func_import): Don't create the $docbase directory if
56100         there is no file to store there.
56101
56102 2006-07-29  Bruno Haible  <bruno@clisp.org>
56103
56104         * gnulib-tool (autoconf_minversion): If a --dir option is given and
56105         relevant, look for configure.ac there, not in the current directory.
56106         Also use a simple search for AC_PREREQ, not "autoconf --trace".
56107
56108 2006-07-29  Bruno Haible  <bruno@clisp.org>
56109
56110         * gnulib-tool (SORT): New variable.
56111         (func_usage): Undocument --assume-autoconf option.
56112         Remove --assume-autoconf option handling.
56113         (autoconf_minversion): Determine from the contents of configure.ac.
56114         (func_import): Remove autoconf_minversion handling.
56115         Suggested by Eric Blake.
56116
56117 2006-07-29  Bruno Haible  <bruno@clisp.org>
56118
56119         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
56120
56121 2006-07-29  Bruno Haible  <bruno@clisp.org>
56122
56123         * config/srclist.txt (*setenv.[ch]): Remove rules.
56124
56125 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56126
56127         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
56128
56129 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56130
56131         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
56132         arpa/inet.h.
56133
56134 2006-07-28  Simon Josefsson  <jas@extundo.com>
56135
56136         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
56137         * modules/inet_pton (Depends-on): Likewise.
56138
56139 2006-07-28  Simon Josefsson  <jas@extundo.com>
56140
56141         * m4/netinet_in_h.m4: New file.
56142
56143 2006-07-28  Simon Josefsson  <jas@extundo.com>
56144
56145         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
56146         #include's.
56147
56148 2006-07-28  Simon Josefsson  <jas@extundo.com>
56149
56150         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
56151         #include's.
56152
56153 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
56156         setgid on directories only if they set these bits.
56157         * lib/modechange.h: Remove obsolete comment about masks.
56158
56159 2006-07-28  Eric Blake  <ebb9@byu.net>
56160
56161         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
56162         macro expansion.
56163
56164 2006-07-28  Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
56167
56168 2006-07-28  Bruno Haible  <bruno@clisp.org>
56169
56170         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
56171
56172 2006-07-28  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56175         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56176         Define fallbacks.
56177         Avoids link error on FreeBSD 4.x.
56178         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56179
56180         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
56181         encoding.
56182         * lib/mbswidth.c (iswcntrl): Likewise.
56183
56184 2006-07-27  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
56187         test.
56188
56189 2006-07-27  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
56192         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
56193         defined.
56194
56195 2006-07-26  Eric Blake  <ebb9@byu.net>
56196
56197         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
56198
56199 2006-07-26  Eric Blake  <ebb9@byu.net>
56200
56201         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
56202         like mingw that lack mkstemp.
56203         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
56204         avoid compilation warning on mingw.
56205
56206 2006-07-26  Bruno Haible  <bruno@clisp.org>
56207
56208         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
56209         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
56210         INT_FAST*_MIN, INTPTR_MIN.
56211
56212 2006-07-25  Bruno Haible  <bruno@clisp.org>
56213
56214         * modules/version-etc (Depends-on): Add stdarg.
56215
56216 2006-07-25  Bruno Haible  <bruno@clisp.org>
56217
56218         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
56219         complex commands.
56220
56221 2006-07-25  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
56224         defined in <stdarg.h> or config.h.
56225
56226 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56227
56228         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
56229         (gl_STDIO_SAFER): Remove.
56230
56231 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56232
56233         * MODULES.html.sh (File stream based Input/Output):
56234         Add fopen-safer, tmpfile-safer; remove stdio-safer.
56235         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
56236         * modules/fopen-safer, modules/tmpfile-safer: New files.
56237         * modules/stdio-safer: Remove.
56238
56239 2006-07-24  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/tmpdir: New file.
56242         * MODULES.html.sh (File system functions): Add it.
56243
56244 2006-07-24  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
56247         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
56248
56249 2006-07-24  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/clean-temp: New file.
56252
56253 2006-07-24  Bruno Haible  <bruno@clisp.org>
56254
56255         * m4/tmpdir.m4: New file, from GNU gettext.
56256
56257 2006-07-24  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/tmpdir.h: New file, from GNU gettext.
56260         * lib/tmpdir.c: New file, from GNU gettext.
56261
56262 2006-07-24  Bruno Haible  <bruno@clisp.org>
56263
56264         * lib/clean-temp.h: New file, from GNU gettext.
56265         * lib/clean-temp.c: New file, from GNU gettext.
56266
56267 2006-07-23  Eric Blake  <ebb9@byu.net>
56268
56269         * modules/stdio-safer (Files): Add tmpfile-safer.c.
56270         (Depends-on): Add binary-io.
56271
56272 2006-07-23  Eric Blake  <ebb9@byu.net>
56273
56274         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
56275
56276 2006-07-23  Eric Blake  <ebb9@byu.net>
56277
56278         * lib/tmpfile-safer.c: New file.
56279         * lib/stdio-safer.h (fopen_safer): Add prototype.
56280         * lib/stdio--.h (tmpfile): Make safer.
56281
56282 2006-07-23  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
56285         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
56286         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
56287         gl_linked_remove_at): Use it.
56288
56289 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56290         and Simon Josefsson <jas@extundo.com>
56291
56292         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
56293
56294         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
56295
56296 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56297
56298         * modules/close-stream: New file.
56299         * modules/closeout (Description): Make it clear that it exits
56300         with a diagnostic on error.
56301         (Depends-on): Add close-stream.  Remove fpending, stdbool.
56302         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
56303
56304 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56305
56306         * m4/close-stream.m4: New file.
56307
56308 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56309
56310         * lib/close-stream.c, lib/close-stream.h: New files.
56311
56312 2006-07-22  Bruno Haible  <bruno@clisp.org>
56313
56314         Merge from GNU gettext 0.15.
56315
56316         2006-05-01  Bruno Haible  <bruno@clisp.org>
56317
56318                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
56319
56320         2006-07-22  Bruno Haible  <bruno@clisp.org>
56321
56322                 * modules/javaversion: New file.
56323                 * MODULES.html.sh (Java): Add javaversion.
56324
56325         2006-03-12  Bruno Haible  <bruno@clisp.org>
56326
56327                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
56328
56329         2005-12-04  Bruno Haible  <bruno@clisp.org>
56330
56331                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
56332                 (untested).
56333
56334         2006-06-21  Bruno Haible  <bruno@clisp.org>
56335
56336                 Avoid warnings from recent versions of mcs.
56337                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
56338                 -o, -L, -r any more. Use options documented since mcs-1.0
56339                 instead. Similarly for -g.
56340
56341         2005-12-04  Bruno Haible  <bruno@clisp.org>
56342
56343                 * build-aux/csharpcomp.sh.in: Suffix for resources is
56344                 .resources, not .resource.
56345
56346         2005-07-09  Bruno Haible  <bruno@clisp.org>
56347
56348                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
56349                 add a .dll suffix.
56350                 Reported by Mark Junker <mjscod@gmx.de>.
56351
56352         2006-07-22  Bruno Haible  <bruno@clisp.org>
56353
56354                 * modules/gettext: Upgrade to gettext-0.15.
56355                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
56356                 m4/visibility.m4.
56357                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
56358
56359 2006-07-22  Bruno Haible  <bruno@clisp.org>
56360
56361         Merge from GNU gettext 0.15.
56362
56363         2006-03-25  Bruno Haible  <bruno@clisp.org>
56364
56365                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
56366
56367         2006-07-21  Bruno Haible  <bruno@clisp.org>
56368
56369                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
56370                 "1.1".
56371
56372         2006-05-09  Bruno Haible  <bruno@clisp.org>
56373
56374                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
56375                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
56376                 for the conftestver execution.
56377
56378         2006-05-01  Bruno Haible  <bruno@clisp.org>
56379
56380                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
56381                 optional target-version argument. Verify that the compiler
56382                 groks source of the specified source-version, or add -source
56383                 option as necessary. Verify that the compiler produces
56384                 bytecode in the specified target-version, or add -target and
56385                 -source options as necessary. Make the result of the test
56386                 available as variable CONF_JAVAC. Also log error output in
56387                 config.log.
56388
56389         2006-03-11  Bruno Haible  <bruno@clisp.org>
56390
56391                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
56392
56393         2006-05-09  Bruno Haible  <bruno@clisp.org>
56394
56395                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
56396                 CLASSPATH_SEPARATOR to a semicolon.
56397
56398         2006-03-12  Bruno Haible  <bruno@clisp.org>
56399
56400                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
56401                 available as variable CONF_JAVA, for subsequent autoconf
56402                 tests. Also log error output in config.log.
56403
56404         2006-07-19  Bruno Haible  <bruno@clisp.org>
56405
56406                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
56407                 that getline works on glibc2 systems. Needed to avoid trouble
56408                 in relocatable.c.
56409                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
56410
56411         2005-12-04  Bruno Haible  <bruno@clisp.org>
56412
56413                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
56414                 launcher (untested).
56415
56416         2005-12-04  Bruno Haible  <bruno@clisp.org>
56417
56418                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
56419
56420         2006-07-22  Bruno Haible  <bruno@clisp.org>
56421
56422                 * gettext.m4: Update from GNU gettext-0.15.
56423                 * nls.m4: Likewise.
56424                 * po.m4: Likewise.
56425                 * inttypes-pri.m4: Likewise.
56426                 * inttypes-h.m4: Renamed from inttypes.m4.
56427                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
56428
56429 2006-07-22  Bruno Haible  <bruno@clisp.org>
56430
56431         Merge from GNU gettext 0.15.
56432
56433         2005-07-05  Bruno Haible  <bruno@clisp.org>
56434
56435                 * printf-args.c (printf_fetchargs): Work around broken
56436                 definition of wint_t on mingw.
56437
56438         2005-02-12  Bruno Haible  <bruno@clisp.org>
56439
56440                 * xallocsa.h: Add extern "C" for C++.
56441
56442         2006-05-17  Bruno Haible  <bruno@clisp.org>
56443
56444                 Cygwin portability.
56445                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
56446
56447         2006-04-30  Bruno Haible  <bruno@clisp.org>
56448
56449                 * progreloc.c: Include <mach-o/dyld.h> if available.
56450                 (find_executable): Use _NSGetExecutablePath when possible.
56451
56452         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56453
56454                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
56455                 function.
56456
56457         2005-12-29  Bruno Haible  <bruno@clisp.org>
56458
56459                 * progreloc.c (set_program_name_and_installdir): Fix
56460                 compilation error.
56461
56462         2005-12-04  Bruno Haible  <bruno@clisp.org>
56463
56464                 Cygwin portability.
56465                 * progreloc.c: Include <windows.h> also on Cygwin.
56466                 (find_executable): Add support for Cygwin.
56467                 (set_program_name_and_installdir): Handle also platforms with
56468                 nonempty EXEEXT.
56469
56470         2006-07-11  Bruno Haible  <bruno@clisp.org>
56471
56472                 * javacomp.c: Fix a comment.
56473                 Reported by Jim Meyering.
56474
56475         2006-04-30  Bruno Haible  <bruno@clisp.org>
56476
56477                 * javacomp.h (compile_java_class): Add source_version,
56478                 target_version arguments.
56479                 * javacomp.c: Rewritten to choose only a compiler that
56480                 respects the specified source_version and target_version.
56481
56482         2006-06-27  Bruno Haible  <bruno@clisp.org>
56483
56484                 Assume correct S_ISDIR macro.
56485                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
56486
56487         2006-07-22  Bruno Haible  <bruno@clisp.org>
56488
56489                 * javaversion.h: New file, from GNU gettext.
56490                 * javaversion.c: New file, from GNU gettext.
56491                 * javaversion.java: New file, from GNU gettext.
56492                 * javaversion.class: New file, from GNU gettext.
56493
56494         2006-05-17  Bruno Haible  <bruno@clisp.org>
56495
56496                 Cygwin portability.
56497                 * javaexec.c (execute_java_class): Test for jview program
56498                 also on Cygwin.
56499
56500         2006-04-09  Bruno Haible  <bruno@clisp.org>
56501
56502                 * fatal-signal.c: Don't include string.h.
56503                 (at_fatal_signal): Use a copying loop instead of memcpy.
56504
56505         2005-12-04  Bruno Haible  <bruno@clisp.org>
56506
56507                 * csharpexec.c: Add support for 'clix' launcher (untested).
56508                 (execute_csharp_using_sscli): New function.
56509                 (execute_csharp_program): Call it.
56510
56511         2006-06-21  Bruno Haible  <bruno@clisp.org>
56512
56513                 Avoid warnings from recent versions of mcs.
56514                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
56515                 -o, -L, -r any more. Use options documented since mcs-1.0
56516                 instead. Similarly for -g.
56517
56518         2005-07-09  Bruno Haible  <bruno@clisp.org>
56519
56520                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
56521                 add a .dll suffix.
56522                 Reported by Mark Junker <mjscod@gmx.de>.
56523
56524         2006-06-17  Bruno Haible  <bruno@clisp.org>
56525
56526                 * config.charset: Update for NetBSD 3.0.
56527
56528         2006-05-17  Bruno Haible  <bruno@clisp.org>
56529
56530                 Cygwin portability.
56531                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
56532
56533         2006-05-16  Bruno Haible  <bruno@clisp.org>
56534
56535                 * localcharset.c [CYGWIN]: Include <windows.h>.
56536                 (get_charset_aliases): For Cygwin, return the same CPxxx
56537                 aliases list as under WIN32.
56538                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
56539                 the environment variables. Fall back to GetACP().
56540
56541         2006-04-05  Bruno Haible  <bruno@clisp.org>
56542
56543                 * config.charset: Update Juan Manuel Guerrero's address.
56544
56545         2005-02-12  Bruno Haible  <bruno@clisp.org>
56546
56547                 * allocsa.h: Add extern "C" for C++.
56548
56549         2005-02-10  Bruno Haible  <bruno@clisp.org>
56550
56551                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
56552                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
56553
56554         2006-07-22  Bruno Haible  <bruno@clisp.org>
56555
56556                 * gettext.h: Update to GNU gettext-0.15.
56557
56558 2006-07-22  Bruno Haible  <bruno@clisp.org>
56559
56560         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
56561         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
56562         lib-prefix.m4, longdouble.m4, ssize_t.m4.
56563
56564 2006-07-21  Eric Blake  <ebb9@byu.net>
56565
56566         * modules/stdlib-safer: New file.
56567         * MODULES.html.sh (File stream based Input/Output): Add
56568         stdlib-safer.
56569
56570 2006-07-21  Eric Blake  <ebb9@byu.net>
56571
56572         * lib/stdlib-safer.h: New file from coreutils, required by
56573         stdlib--.h.
56574
56575 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
56576
56577         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
56578
56579 2006-07-20  Bruno Haible  <bruno@clisp.org>
56580
56581         * gnulib-tool: Recognize new option --assume-autoconf.
56582         (autoconf_minversion): New variable.
56583         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
56584
56585 2006-07-20  Bruno Haible  <bruno@clisp.org>
56586
56587         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
56588
56589 2006-07-19  Derek R. Price  <derek@ximbiot.com>
56590
56591         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
56592         Reindent and repaginate.
56593
56594 2006-07-19  Derek Price  <derek@ximbiot.com>
56595
56596         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
56597         Correct grammar.
56598
56599 2006-07-17  Bruno Haible  <bruno@clisp.org>
56600
56601         * modules/list: New file.
56602         * modules/array-list: New file.
56603         * modules/carray-list, modules/carray-list-tests: New files.
56604         * modules/linked-list, modules/linked-list-tests: New files.
56605         * modules/avltree-list, modules/avltree-list-tests: New files.
56606         * modules/rbtree-list, modules/rbtree-list-tests: New files.
56607         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
56608         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
56609         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
56610         * modules/oset: New file.
56611         * modules/array-oset: New file.
56612         * modules/avltree-oset, modules/avltree-oset-tests: New files.
56613         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
56614         * tests/test-carray_list.c: New file.
56615         * tests/test-linked_list.c: New file.
56616         * tests/test-avltree_list.c: New file.
56617         * tests/test-rbtree_list.c: New file.
56618         * tests/test-linkedhash_list.c: New file.
56619         * tests/test-avltreehash_list.c: New file.
56620         * tests/test-rbtreehash_list.c: New file.
56621         * tests/test-avltree_oset.c: New file.
56622         * tests/test-rbtree_oset.c: New file.
56623         * MODULES.html.sh (Container data structures): New section.
56624
56625 2006-07-17  Bruno Haible  <bruno@clisp.org>
56626
56627         * m4/gl_list.m4: New file.
56628
56629 2006-07-17  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/gl_list.h: New file.
56632         * lib/gl_list.c: New file.
56633         * lib/gl_array_list.h: New file.
56634         * lib/gl_array_list.c: New file.
56635         * lib/gl_carray_list.h: New file.
56636         * lib/gl_carray_list.c: New file.
56637         * lib/gl_linked_list.h: New file.
56638         * lib/gl_linked_list.c: New file.
56639         * lib/gl_anylinked_list1.h: New file.
56640         * lib/gl_anylinked_list2.h: New file.
56641         * lib/gl_avltree_list.h: New file.
56642         * lib/gl_avltree_list.c: New file.
56643         * lib/gl_anyavltree_list1.h: New file.
56644         * lib/gl_anyavltree_list2.h: New file.
56645         * lib/gl_rbtree_list.h: New file.
56646         * lib/gl_rbtree_list.c: New file.
56647         * lib/gl_anyrbtree_list1.h: New file.
56648         * lib/gl_anyrbtree_list2.h: New file.
56649         * lib/gl_anytree_list1.h: New file.
56650         * lib/gl_anytree_list2.h: New file.
56651         * lib/gl_linkedhash_list.h: New file.
56652         * lib/gl_linkedhash_list.c: New file.
56653         * lib/gl_anyhash_list1.h: New file.
56654         * lib/gl_anyhash_list2.h: New file.
56655         * lib/gl_avltreehash_list.h: New file.
56656         * lib/gl_avltreehash_list.c: New file.
56657         * lib/gl_rbtreehash_list.h: New file.
56658         * lib/gl_rbtreehash_list.c: New file.
56659         * lib/gl_anytreehash_list1.h: New file.
56660         * lib/gl_anytreehash_list2.h: New file.
56661
56662         * lib/gl_oset.h: New file.
56663         * lib/gl_oset.c: New file.
56664         * lib/gl_array_oset.h: New file.
56665         * lib/gl_array_oset.c: New file.
56666         * lib/gl_avltree_oset.h: New file.
56667         * lib/gl_avltree_oset.c: New file.
56668         * lib/gl_rbtree_oset.h: New file.
56669         * lib/gl_rbtree_oset.c: New file.
56670         * lib/gl_anytree_oset.h: New file.
56671
56672 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56673
56674         * m4/mkancesdirs.m4: New file.
56675         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
56676         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
56677         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
56678         it.
56679
56680 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
56683         * lib/mkancesdirs.h: New files.
56684         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
56685         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
56686         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
56687         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
56688         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
56689         callers changed.  Revamp internals significantly, by not
56690         attempting to create directories that are temporarily more
56691         permissive than the final results.  Do not attempt to use
56692         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
56693         This removes some race conditions, fixes some bugs, and simplifies
56694         things.  Use new dirchownmod function to do owner and mode changes.
56695         * lib/mkdir-p.h: Likewise.
56696         * lib/modechange.c (octal_to_mode): New function.
56697         (struct mode_change): New member mentioned.
56698         (make_node_op_equals): New arg mentioned.  All callers changed.
56699         (mode_compile): Keep track of which mode bits the user has explicitly
56700         mentioned.
56701         (mode_adjust): New arg DIR, so that we implement the X op correctly.
56702         New arg PMODE_BITS, to keep track of which mode bits the user
56703         mentioned; it treats S_ISUID and S_ISGID speciall.
56704         All callers changed.
56705         * lib/modechange.h: Likewise.
56706
56707 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56708
56709         * MODULES.html.sh: Add mkancestors.
56710         * modules/mkancesdirs: New module.
56711         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56712         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56713         The chdir-safer and afs files are now orphans; I'll remove them
56714         unless someone speaks up.
56715         Add lib/dirchownmod.c, lib/dirchownmod.h.
56716         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56717         Add lchown, mkancesdirs.
56718         (Maintainer): Add self.
56719
56720 2006-07-15  Karl Berry  <karl@gnu.org>
56721
56722         * gnulib-tool: help message wording/arrangement.
56723
56724 2006-07-14  Simon Josefsson  <jas@extundo.com>
56725
56726         * doc/gnulib.texi (Libtool and Windows): New section.
56727
56728 2006-07-12  Simon Josefsson  <jas@extundo.com>
56729
56730         * modules/gendocs (License): Fix license, approved by Karl.
56731
56732 2006-07-12  Eric Blake  <ebb9@byu.net>
56733
56734         * MODULES.html.sh: Add gendocs.
56735
56736 2006-07-11  Eric Blake  <ebb9@byu.net>
56737
56738         * modules/fdl: New module, to install doc/fdl.texi.
56739         * MODULES.html.sh: Add new section for documentation modules.
56740         * gnulib-tool: Avoid space-tab.
56741         (--doc-base): New option, to manage files from doc.
56742
56743 2006-07-11  Eric Blake  <ebb9@byu.net>
56744
56745         * m4/absolute-header.m4: Fix comments to match recent change.
56746
56747 2006-07-11  Eric Blake  <ebb9@byu.net>
56748
56749         * gnulib-tool: List --doc-base before --tests-base.
56750
56751 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56752
56753         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56754
56755 2006-07-11  Bruno Haible  <bruno@clisp.org>
56756
56757         * README: Mention where to put documentation.
56758
56759 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56760
56761         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56762
56763 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56764
56765         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56766         to stdint.m4.
56767
56768 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56771         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56772         "no/such/file/stdint.h" when there is no such file, so that
56773         the resulting C code can be parsed by dodgy compilers.
56774         Problems reported by Bob Proulx.
56775
56776 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56777
56778         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56779         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56780         macros into the GNU _D_EXACT_NAMLEN.
56781         * lib/savedir.c:  Likewise.
56782         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56783
56784 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56785         and Paul Eggert  <eggert@cs.ucla.edu>
56786
56787         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56788         * m4/savedir.m4:
56789         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56790         macros into the GNU _D_EXACT_NAMLEN.
56791
56792 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56793
56794         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56795         around the absolute name, to work around a problem with the HP-UX
56796         11.23 native C compiler, reported by Bob Proulx.
56797
56798 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         * doc/maintain.texi, make-stds.texi: Sync from
56801         <http://savannah.gnu.org/projects/gnustandards>.
56802
56803 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56804
56805         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56806
56807 2006-07-09  Jim Meyering  <jim@meyering.net>
56808
56809         * m4/glob.m4: Remove a doubled word in a comment.
56810
56811 2006-07-09  Jim Meyering  <jim@meyering.net>
56812
56813         * lib/argp-pv.c: Remove a doubled word in a comment.
56814         * lib/check-version.c (check_version): Likewise.
56815         * lib/javacomp.c (compile_java_class): Likewise.
56816
56817 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56820         for the benefit of people using Autoconf 2.60.  If you want to
56821         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56822         (or m4/onceonly.m4, if pre-2.57) manually.
56823
56824 2006-07-08  Jim Meyering  <jim@meyering.net>
56825
56826         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56827         comment.
56828         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56829         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56830         comment.
56831
56832 2006-07-08  Jim Meyering  <jim@meyering.net>
56833
56834         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56835
56836 2006-07-07  Simon Josefsson  <jas@extundo.com>
56837
56838         * tests/test-crc.c: Change expected crc value, the test vector
56839         were probably computed using the old broken crc.c?
56840
56841 2006-07-06  Simon Josefsson  <jas@extundo.com>
56842
56843         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56844         now the canonical place for the M4 file).
56845
56846         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56847         from the sys_socket dependency now.
56848
56849         * modules/inet_pton (Files): Ditto.
56850
56851         * modules/inet_ntop (Files): Ditto.
56852
56853 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56854
56855         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56856         not gl_PREREQ_GETUSERSHELL.
56857
56858 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56859
56860         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56861         with only one argument, for Autoconf 2.60.
56862         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56863         expand to nothing, so add a shell command to avoid syntax error.
56864         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56865
56866 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56867
56868         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56869
56870 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56871
56872         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56873         no longer needed.  Check for isblank decl.
56874         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56875         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56876         of existence.
56877
56878 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56879
56880         * lib/getloadavg.c: Use __VMS, not VMS.
56881         * lib/getopt.c: Likewise.
56882         * lib/getpagesize.h: Likewise.
56883         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56884         and probably does not work.
56885
56886 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56887
56888         * lib/.cppi-disable: Add wcwidth.
56889         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56890         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56891         (ISGRAPH): Remove.  All uses changed to isgraph.
56892         (FOLD) [!defined _LIBC]: Remove special case.
56893         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56894         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56895         HAVE_ISBLANK.
56896         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56897         case.
56898
56899 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56900
56901         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56902         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56903         brackets.  Other minor changes to suppress some compiler
56904         warnings.
56905
56906 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56907         and Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56910         of invoking obsolescent AC_HEADER_DIRENT macro.
56911         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56912         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56913         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56914         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56915         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56916         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56917         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56918         * m4/readdir.m4: Remove; no longer needed.
56919
56920 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56921         and Paul Eggert  <eggert@cs.ucla.edu>
56922
56923         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56924         Don't worry about this obsolete case any more.
56925         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56926         directories.
56927         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56928         worry about this obsolete case any more.
56929         * lib/fts.c: Likewise.
56930         * lib/getcwd.c: Likewise.
56931         * lib/glob.h: Likewise.
56932         * lib/savedir.c: Likewise.
56933
56934 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56935
56936         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56937         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56938         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56939         needed.
56940         All uses removed.
56941         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56942         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56943         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56944         needed.
56945         * m4/getdate.m4 (gl_GETDATE): Likewise.
56946         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56947         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56948         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56949         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56950         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56951         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56952         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56953         needed.
56954
56955 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56956
56957         * lib/memcasecmp.c: Include <limits.h>.
56958         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56959         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56960         Don't assume isdigit succeeds only on '0' through '9'.
56961
56962 2006-07-05  Eric Blake  <ebb9@byu.net>
56963
56964         * modules/getaddrinfo (Depends-on): Add snprintf.
56965
56966 2006-07-05  Eric Blake  <ebb9@byu.net>
56967
56968         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
56969         to avoid 'header present but could not be compiled' on cygwin.
56970
56971 2006-07-05  Eric Blake  <ebb9@byu.net>
56972
56973         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
56974         missing from netdb.h.
56975         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
56976
56977 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56978
56979         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
56980         no longer needed.
56981         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
56982         * m4/getdate.m4 (gl_GETDATE): Likewise.
56983         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56984         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56985         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56986         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56987         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56988
56989 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56990
56991         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
56992         All uses of is_space replaced by isspace.
56993         * lib/exit.h: Don't talk about STDC_HEADERS.
56994         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
56995         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
56996         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
56997         replaced by isprint etc.
56998         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
56999         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57000         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
57001         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
57002         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
57003         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57004
57005 2006-07-05  Bruno Haible  <bruno@clisp.org>
57006
57007         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
57008         the function exists, before testing against AIX.
57009         Reported by Martin Lambers <marlam@marlam.de>.
57010
57011 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
57014         From Mark D. Baushke.
57015
57016 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57017
57018         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
57019         to the absolute name, not just one, to bypass Sun C 5.8's
57020         "warning: #include of /usr/include/... may be non-portable".
57021
57022 2006-07-04  Eric Blake  <ebb9@byu.net>
57023
57024         * modules/dirname-tests: New test module.
57025         * tests/test-dirname.c: New file, replacing dirname.c
57026         TEST_DIRNAME section that was recently deleted.
57027
57028 2006-07-04  Bruno Haible  <bruno@clisp.org>
57029
57030         Assume ANSI C header files and <ctype.h> functions.
57031         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
57032         (mbsnwidth): Use isprint, iscntrl instead.
57033
57034 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57035
57036         Merge from coreutils.
57037         * MODULES.html.sh: Add xstrtold.
57038         * modules/xstrtold: New file.
57039         * modules/cycle-check (Files): Add lib/same-inode.h.
57040         * modules/dirname (Files): Add m4/double-slash-root.m4.
57041         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
57042         * modules/mkdir-p (Files): Add lib/same-inode.h.
57043         * modules/same (Files): Add lib/same-inode.h.
57044
57045 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         * m4/absolute-header.m4: Renamed from full-header-path.m4.
57048         This is to keep the terminology clean; POSIX talks about
57049         "absolute pathnames", not "full pathnames", but the GNU
57050         Coding Standards say to use "path" for something else;
57051         so use "absolute" to keep both sides happy.
57052         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
57053         Set gl_absolute_header, not gl_full_header_path.
57054         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
57055         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
57056         All uses changed.
57057
57058         Merge from coreutils.
57059
57060         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57061
57062         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
57063         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
57064         want to require the building of c-strtod.o.
57065         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
57066         needs -lm directly.
57067         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
57068
57069         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
57072         --as-needed option if available.  Problem reported by Albert Chin in
57073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
57074         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
57075         cc merely issues a bunch of annoying warnings for --as-needed
57076         (this problem was reported by Bob Proulx).  Also, try linking with
57077         -lm to detect a bug in binutils 2.16 (this problem was reported
57078         by Ralf Wildenhues).
57079
57080         2006-06-18  Jim Meyering  <jim@meyering.net>
57081
57082         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
57083         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
57084         macro.
57085         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
57086         also check for glibc-2.4's abort-inducing bug.
57087
57088         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
57089         Low-probability clean-up should be to use rmdir to get rid of
57090         the just-created directory, not unlink.
57091
57092         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
57093         configure fail, and request a bug report to inform us about it.
57094         Add a comment that, barring reports to the contrary, in 2007 we'll
57095         assume ftruncate is universally available.
57096
57097         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
57100
57101         2006-03-12  Jim Meyering  <jim@meyering.net>
57102
57103         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
57104         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
57105         * m4/same.m4 (gl_SAME): Likewise.
57106         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
57107
57108         2006-03-11  Eric Blake  <ebb9@byu.net>
57109
57110         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
57111         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
57112         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
57113         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
57114
57115 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
57118         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
57119         reported by Mark D. Baushke, one in
57120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
57121
57122         Merge from coreutils.
57123
57124         * lib/.cppi-disable: Add stdint_.h.
57125         * lib/.cvsignore: Add stdint.h.
57126
57127         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57128
57129         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
57130         both double and long double versions.
57131         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
57132         * lib/xstrtold.c: New file.
57133         * lib/xstrtod.h (xstrtold): New decl.
57134
57135         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57136
57137         * lib/filemode.c (setst): Remove.
57138         (strmode): Rewrite to avoid setst.  This makes the code shorter,
57139         (arguably) clearer, and the generated code is a bit smaller on my
57140         Debian GNU/Linux stable x86 host.
57141
57142         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57143
57144         * lib/filemode.c: Include "filemode.h" first, to test the interface.
57145         Assume that filemode.h includes sys/types.h and sys/stat.h.
57146         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
57147         (ftypelet): Reorder to put common cases first, for efficiency.
57148         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
57149         to do 'M'.
57150         (strmode): Renamed from mode_string, and now stores 12 bytes instead
57151         of 10, for compatibility with FreeBSD.  All callers changed.
57152         (filemodestring): Now stores 12 bytes instead of 10, and sets file
57153         types that can't be deduced solely from st_mode.  First arg is now a
57154         const pointer.
57155         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
57156         (strmode): Renamed from mode_string.
57157         (filemodestring): New decl.
57158         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
57159         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
57160         needed.
57161         (S_ISPORT, S_ISWHT): New macros, if not already defined.
57162
57163         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
57166         fsusage.h now does that.  Include fsusage.h first, to test interface.
57167         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
57168         at most one method (the old code could have generated decls that
57169         didn't conform to C89, not that this was ever exercised).
57170         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
57171
57172         2006-03-19  Jim Meyering  <jim@meyering.net>
57173
57174         Work even in a chroot where d_ino values for entries in "/"
57175         don't match the stat.st_ino values for the same names.
57176         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
57177         number, iterate through all entries again, using lstat instead.
57178         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
57179         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
57180
57181         * lib/getcwd.c (__getcwd): Clarify a comment.
57182         Use memcpy in place of a call to strcpy.
57183
57184         2006-03-12  Jim Meyering  <jim@meyering.net>
57185
57186         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
57187         matches that of the current directory (which we're about to chdir ".."
57188         out of), then save the dev-ino of the parent, instead.
57189
57190         * lib/same-inode.h (SAME_INODE): New file/macro.
57191         * lib/chdir-safer.c (SAME_INODE): Remove definition.
57192         Include "same-inode.h", instead.
57193         * lib/same.c: Likewise.
57194         * lib/cycle-check.h: Include "same-inode.h".
57195         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
57196         * lib/cycle-check.c (SAME_INODE): Remove definition.
57197         * lib/root-dev-ino.h: Include "same-inode.h".
57198
57199         2006-03-11  Eric Blake  <ebb9@byu.net>
57200
57201         * lib/same.c (same_name): s/base_name/last_component/
57202         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
57203         * lib/filenamecat.c (file_name_concat): Likewise.
57204
57205         2006-03-11  Eric Blake  <ebb9@byu.net>,
57206                     Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
57209         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
57210         drive prefix.
57211         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
57212         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
57213         (last_component): New method.
57214         * lib/dirname.c (dir_len): Determine when drive letters need a
57215         subsequent slash.  Preserve // when it is special.
57216         (dir_name): Don't append dot when drive letter is absolute.
57217         [TEST_DIRNAME]: Move into a full-blown gnulib test.
57218         * lib/basename.c (base_name): New semantics - malloc the result.
57219         Preserve // when it is special.  Preserve relative files that look
57220         like drive letters.
57221         (base_len): Preserve // when it is special.
57222         (last_component): New method, similar to old base_name semantics.
57223         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
57224         base_name.  Strip redundant slashes from ///.
57225
57226 2006-07-03  Jim Meyering  <jim@meyering.net>
57227
57228         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
57229         macro is used before the first cycle_check call.
57230
57231 2006-07-03  Eric Blake  <ebb9@byu.net>
57232
57233         * modules/dirname (Depends-on): Add xstrndup.
57234
57235 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57236
57237         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
57238         test cases, so that config.log is a bit easier to follow.
57239
57240 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
57243         both are 64 bits, since this seems to be the tradition, and this
57244         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
57245         we ever run into a host that prefers long long to long in this
57246         case, we'll need another configure-time test.  Problem reported by
57247         Jim Meyering.
57248
57249 2006-07-02  Eric Blake  <ebb9@byu.net>
57250
57251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
57252
57253 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * modules/inttypes (Depends-on): No longer depends on stdint.
57256         * modules/stdint (Description): Say more about assumptions.
57257         Say that the fast types might differ.  Say macros are used.
57258         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
57259         (Makefile.am): Revise list of substituted symbols to match
57260         new stdint.m4.
57261         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
57262         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
57263         * tests/test-stdint.c (verify_same_types)
57264         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
57265         the code conforms to C99/C89.
57266         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
57267         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
57268
57269 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
57272         but fix a bug, by requiring at least 64 bits.
57273         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57274         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
57275         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
57276         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
57277
57278         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
57279         changes.  Make 2.59 a prerequisite.  Check and substitute for
57280         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
57281         inttypes.h.  Do not use special include files; just use the
57282         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
57283         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
57284         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
57285         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
57286         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
57287         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
57288         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
57289         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
57290         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
57291         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
57292         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
57293         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
57294         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
57295         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
57296         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
57297         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
57298         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
57299         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
57300         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
57301         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
57302         WINT_MAX.  Check for C99 conformance more strictly, by detecting
57303         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
57304         not check for things that C99 does not require, e.g., int8_t.  If
57305         a test isn't needed unless <stdint.h> isn't working, and is
57306         unlikely to be needed for any other reason, then don't do it
57307         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
57308         size_t, since we assume C89 freestanding at least.  Do not check
57309         for sig_atomic_t, wchar_t, or wint_t, since the code now does
57310         the right thing even if the types are not defined.  Instead use:
57311         (gl_STDINT_TYPE_PROPERTIES): New macro.
57312         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
57313         testing whether <sys/types.h> clashes, as Autoconf does this for
57314         us now.  All uses removed.
57315         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
57316         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
57317         (gl_CHECK_TYPE_SAME):
57318         Remove; no longer needed.
57319         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
57320         exists, since we'll return 0 anyway in that case.
57321         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
57322
57323 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57324
57325         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
57326         possible collision with system files.
57327         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
57328         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
57329         WCHAR_MIN and WCHAR_MAX in this case.
57330         (<stddef.h>): Do not include; no longer needed.
57331         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
57332         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
57333         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
57334         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
57335         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
57336         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
57337         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
57338         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
57339         !defined(__c99))]: Include in this case too, since it's harmless
57340         now.
57341         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
57342         dangerous to do so.
57343         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
57344         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
57345         (_STDINT_MIN, _STDINT_MAX): New macros.
57346         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
57347         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
57348         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
57349         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
57350         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
57351         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
57352         macros, not typedefs; this simplifies things quite a bit.
57353         Use long int for all types narrower than int64_t.
57354         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
57355         Define in terms of long long int or int64_t or long int,
57356         not int64_t or int32_t.  This saves some compile-time testing.
57357         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
57358         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
57359         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
57360         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
57361         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
57362         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
57363         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
57364         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
57365         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
57366         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
57367         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57368         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57369         undef any previous version and define our own version, for
57370         simplicity and consistency with the new macros for types.
57371         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57372         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57373         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
57374         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
57375         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
57376         @WINT_T_SUFFIX@ to keep things simple here.
57377         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
57378         Simplify by assuming typical 8/16/32/64 host, since we're
57379         already doing that elsewhere anyway.
57380         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
57381         and assume long long int is 64 bits if available.  This
57382         speeds up 'configure'.
57383
57384 2006-07-01  Eric Blake  <ebb9@byu.net>
57385
57386         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
57387         Reported by Andreas Buening.
57388
57389 2006-07-01  Eric Blake  <ebb9@byu.net>
57390
57391         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
57392
57393 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57394
57395         * lib/getaddrinfo.c: fixed typo
57396
57397 2006-06-29  Jim Meyering  <jim@meyering.net>
57398
57399         * modules/strftime (Maintainer): Add my name, since with the
57400         FPRINTFTIME changes strftime.c has forked from glibc.
57401
57402 2006-06-29  Eric Blake  <ebb9@byu.net>
57403
57404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
57405
57406 2006-06-29  Eric Blake  <ebb9@byu.net>
57407
57408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
57409
57410 2006-06-29  Eric Blake  <ebb9@byu.net>
57411
57412         * lib/stat_.h: New file.
57413
57414 2006-06-29  Eric Blake  <ebb9@byu.net>
57415
57416         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
57417         unused static function.
57418
57419 2006-06-29  Eric Blake  <ebb9@byu.net>
57420
57421         * doc/functions.texi (Function Portability): Document missing lstat
57422         on mingw.
57423
57424 2006-06-29  Eric Blake  <ebb9@byu.net>
57425
57426         * MODULES.html.sh: Add sys_stat.
57427         * modules/sys_stat: New module.
57428         * modules/mkstemp (Depends-on): Add sys_stat.
57429
57430 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57431
57432         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
57433
57434 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57435
57436         * m4/c-bs-a.m4: Removed.
57437
57438 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57439
57440         * lib/strftime.c: Assume strftime() exists.
57441
57442 2006-06-29  Derek Price  <derek@ximbiot.com>
57443
57444         * modules/c-bs-a: Removed - \a is C89.
57445         * MODULES.html.sh: Remove c-bs-a.
57446
57447 2006-06-29  Bruno Haible  <bruno@clisp.org>
57448
57449         * modules/wcwidth (License): Change to LGPL.
57450
57451 2006-06-28  Simon Josefsson  <jas@extundo.com>
57452
57453         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
57454         on _WIN32.
57455
57456         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
57457         getnameinfo.
57458
57459 2006-06-28  Simon Josefsson  <jas@extundo.com>
57460
57461         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
57462
57463 2006-06-28  Simon Josefsson  <jas@extundo.com>
57464
57465         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
57466         functions there.  It will succeed on Windows XP, but on Windows
57467         2000 and (presumably) earlier, it will fail, and use the internal
57468         re-implementation.
57469         (use_win32_p): New function.
57470         (getaddrinfo): Use strtoul on servname, to support numeric ports.
57471         Support AI_NUMERICSERV to disable getservbyname.
57472         (getnameinfo): New function, only supports
57473         NI_NUMERICHOST|NI_NUMERICSERV for now.
57474
57475         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
57476         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
57477         getnameinfo.
57478
57479 2006-06-28  Eric Blake  <ebb9@byu.net>
57480
57481         * modules/wcwidth: New file.
57482         * modules/mbchar (Depends-on): Add wcwidth.
57483         * modules/mbswidth (Depends-on): Add wcwidth.
57484         * MODULES.html.sh: Add wcwidth.
57485
57486 2006-06-28  Eric Blake  <ebb9@byu.net>
57487
57488         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
57489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
57490
57491 2006-06-28  Eric Blake  <ebb9@byu.net>
57492
57493         * lib/xvasprintf.h: Fix comments.
57494
57495 2006-06-28  Eric Blake  <ebb9@byu.net>
57496
57497         * lib/mbchar.h (wcwidth): Include wcwidth.h.
57498         * lib/mbswidth.c (wcwidth): Move from here...
57499         * lib/wcwidth.h: ...to this new file.
57500
57501 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57502
57503         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
57504
57505         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
57506         it's obsolete.
57507         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
57508
57509 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57510
57511         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
57512         Autoconf 2.60 says this stuff was obsolete.
57513
57514 2006-06-28  Bruno Haible  <bruno@clisp.org>
57515
57516         * modules/wcwidth (Files): Add m4/wchar_t.m4.
57517
57518 2006-06-28  Bruno Haible  <bruno@clisp.org>
57519
57520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
57521         gt_TYPE_WCHAR_T.
57522
57523 2006-06-28  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
57526         declaration for wcwidth.
57527         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
57528
57529 2006-06-28  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/mkdtemp.c [MINGW]: Include <io.h>.
57532         (mkdir): Define using _mkdir.
57533
57534 2006-06-28  Bruno Haible  <bruno@clisp.org>
57535
57536         * lib/getaddrinfo.h: Fix POSIX URL.
57537         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
57538         _WIN32.
57539         (use_win32_p): Make static.
57540         (getaddrinfo): Reject service name if it is empty or does not consist
57541         solely of decimal digits, or if its value is > 65535.
57542         (getnameinfo): Remove useless casts.
57543
57544 2006-06-27  Simon Josefsson  <jas@extundo.com>
57545
57546         * modules/sys_select: New file, suggested by Bruno Haible, Paul
57547         Eggert and Martin Lambers.
57548
57549 2006-06-27  Simon Josefsson  <jas@extundo.com>
57550
57551         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
57552         Eggert and Martin Lambers.
57553
57554 2006-06-27  Bruno Haible  <bruno@clisp.org>
57555
57556         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
57557         result to 0, not to empty.
57558         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
57559
57560 2006-06-27  Bruno Haible  <bruno@clisp.org>
57561
57562         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
57563
57564 2006-06-26  Simon Josefsson  <jas@extundo.com>
57565
57566         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
57567         present.
57568
57569 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
57572         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
57573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
57574
57575 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
57576
57577         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
57578
57579 2006-06-26  Bruno Haible  <bruno@clisp.org>
57580
57581         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
57582
57583 2006-06-26  Bruno Haible  <bruno@clisp.org>
57584
57585         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
57586
57587 2006-06-26  Bruno Haible  <bruno@clisp.org>
57588
57589         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
57590         SGI C compiler in pre-C99 mode.
57591         Suggested by Mark D. Baushke and Larry Jones.
57592
57593 2006-06-26  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
57596         WCHAR_MAX.
57597         Reported by Mark D. Baushke and Larry Jones.
57598
57599 2006-06-26  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
57602         in pre-C99 mode.
57603         Suggested by Mark D. Baushke and Larry Jones.
57604
57605 2006-06-23  Simon Josefsson  <jas@extundo.com>
57606             Bruno Haible  <bruno@clisp.org>
57607
57608         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
57609         Emit mostlyclean-local rule.
57610         (func_emit_tests_Makefile_am): Likewise.
57611         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
57612
57613 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
57614
57615         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
57616
57617 2006-06-23  Bruno Haible  <bruno@clisp.org>
57618
57619         * tests/test-stdint.c: Update to match ISO C 99 Technical
57620         Corrigendum 1.
57621
57622 2006-06-23  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
57625
57626 2006-06-23  Bruno Haible  <bruno@clisp.org>
57627
57628         * lib/stdint_.h: Treat IRIX like OpenBSD.
57629
57630 2006-06-23  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
57633         ISO C 99 Technical Corrigendum 1.
57634
57635 2006-06-22  Simon Josefsson  <jas@extundo.com>
57636
57637         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
57638         MinGW.
57639
57640 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57641
57642         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
57643         needed.  Some compiler complained about some of them.  Problem reported
57644         by Larry Jones in
57645         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
57646
57647 2006-06-21  Simon Josefsson  <jas@extundo.com>
57648
57649         * tests/test-getaddrinfo.c: New file.
57650
57651         * modules/getaddrinfo-tests: New file.
57652
57653         * MODULES.html.sh: Add inet_pton.
57654
57655         * modules/inet_pton: New file.
57656
57657 2006-06-21  Simon Josefsson  <jas@extundo.com>
57658
57659         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
57660         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
57661         of using the (limited) gnulib implementation on Windows XP.
57662
57663         * m4/inet_pton.m4: New file.
57664
57665 2006-06-21  Simon Josefsson  <jas@extundo.com>
57666
57667         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
57668         variable.
57669
57670         * lib/socket_.h: Don't define WINVER.
57671
57672         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
57673         slightly modified to work in gnulib.
57674
57675 2006-06-21  Simon Josefsson  <jas@extundo.com>
57676
57677         * doc/gnulib.texi (Windows sockets): Add.
57678
57679 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         * lib/read-file.c (fread_file): Start with buffer allocation of
57682         0 bytes rather than 1 byte; this simplifies the code.
57683         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
57684         code to free buffer and save/restore errno.
57685         (internal_read_file): Remove unused local.
57686
57687 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
57690         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
57691         Problem reported by Denis Excoffier in
57692         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
57693
57694 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57695
57696         * modules/sys_socket, modules/socklen: Include sys/types since
57697         FreeBSD 4.x's sys/socket.h needs it.
57698
57699 2006-06-19  Simon Josefsson  <jas@extundo.com>
57700
57701         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
57702
57703 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57704
57705         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
57706
57707 2006-06-19  Bruno Haible  <bruno@clisp.org>
57708
57709         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57710         and FULL_PATH_INTTYPES_H in angle brackets.
57711         Reported by Mark D. Baushke <mdb@gnu.org>.
57712
57713 2006-06-17  Eric Blake  <ebb9@byu.net>
57714
57715         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57716         errno.
57717
57718 2006-06-17  Bruno Haible  <bruno@clisp.org>
57719
57720         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57721         <sys/inttypes.h>.
57722
57723 2006-06-17  Bruno Haible  <bruno@clisp.org>
57724
57725         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57726         whether errno is declared. Assume <errno.h> declares errno.
57727
57728 2006-06-17  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57731
57732 2006-06-17  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57735         problem on Solaris 2.5.1.
57736
57737 2006-06-16  Eric Blake  <ebb9@byu.net>
57738
57739         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57740         * lib/unicodeio.c [!defined errno]: Likewise.
57741         * lib/strtol.c [!defined errno]: Likewise.
57742         * lib/strtod.c [!defined errno]: Likewise.
57743
57744 2006-06-15  Eric Blake  <ebb9@byu.net>
57745
57746         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57747
57748 2006-06-15  Eric Blake  <ebb9@byu.net>
57749
57750         * config/srclist.txt (ssize_t.m4): Lose sync.
57751
57752 2006-06-15  Bruno Haible  <bruno@clisp.org>
57753
57754         * modules/stdint (Files): Include m4/full-header-path.m4,
57755         m4/size_max.m4, m4/wchar_t.m4.
57756         (Makefile.am): Many more substitutions.
57757         * modules/stdint-tests: New file.
57758         * tests/test-stdint.c: New file.
57759
57760 2006-06-15  Bruno Haible  <bruno@clisp.org>
57761
57762         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57763         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57764         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57765         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57766         gl_CHECK_TYPE_SAME): New macros.
57767
57768 2006-06-15  Bruno Haible  <bruno@clisp.org>
57769
57770         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57771
57772 2006-06-15  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/stdint_.h: Rewritten to be fully auto-configured.
57775         Fixes bug on HP-UX/IA64.
57776
57777 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57778
57779         * lib/getdate.y (__attribute__): Don't define if already defined.
57780         Problem reported by Larry Jones.
57781         * lib/utimens.c (__attribute__): Likewise.
57782
57783 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57784
57785         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57786         reported by Andreas Schwab.
57787
57788 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57789             Bruno Haible  <bruno@clisp.org>
57790
57791         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57792         check for the declaration of strnlen and a run test that exposes the
57793         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57794         rpl_strndup.
57795
57796 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57797             Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57800
57801 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57802
57803         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57804         compile test, for Tru64 4.0D.
57805
57806 2006-05-28  Karl Berry  <karl@gnu.org>
57807
57808         * config/srclist.txt (printf-args.c): lose sync.
57809
57810 2006-05-26  Martin Lambers  <marlam@marlam.de>
57811
57812         * lib/getpass.c: Updates the test for the native W32 API, and adds
57813         missing includes, thus fixing compilation warnings.
57814
57815 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57816
57817         * lib/exclude.c (exclude_fnmatch): New function.
57818         (excluded_file_name): Call exclude_fnmatch.
57819         * lib/exclude.h (excluded_file_name): New prototype
57820
57821 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57822
57823         * lib/tempname.c (small_open, large_open): New macros.
57824         (__open, __open64) [!_LIBC]: Remove.
57825         (__gen_tempname): Use small_open and large_open instead of __open
57826         and __open64.  This fixes a portability bug on HP-UX 11.11i
57827         reported by Simon Wing-Tang in
57828         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57829
57830 2006-05-24  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57833         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57834         Reported by Thorsten Maerz <torte@netztorte.de> via
57835         Aaron Stone <aaron@serendipity.cx>.
57836
57837 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57838
57839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57840         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57841         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57842         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57843         not really conditional on the cache.
57844         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57845
57846 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57847
57848         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57849         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57850         (my_usleep): Don't mishandle maximum value.
57851
57852 2006-05-19  Jim Meyering  <jim@meyering.net>
57853
57854         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57855
57856 2006-05-17  Bruno Haible  <bruno@clisp.org>
57857
57858         Cygwin portability.
57859         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57860
57861 2006-05-17  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/stdint_.h: Fix recognition of Cygwin.
57864
57865 2006-05-15  Bruno Haible  <bruno@clisp.org>
57866
57867         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57868         on libtool patch by Ralf Wildenhues.
57869
57870 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57873         test for C99 conformance; (bool) 0.5 is an integer constant
57874         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57875         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57876
57877 2006-05-11  Simon Josefsson  <jas@extundo.com>
57878
57879         * m4/xvasprintf.m4: Fix obvious typo.
57880
57881 2006-05-11  Jim Meyering  <jim@meyering.net>
57882
57883         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57884         James Lemley.
57885
57886 2006-05-10  Simon Josefsson  <jas@extundo.com>
57887
57888         * lib/md4.c: Typo fix, update copyright years.
57889         (K1, K2): Don't use L because it turn computations into 64-bit on
57890         64-bit platforms.
57891
57892 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57893
57894         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57895         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57896         unwanted sign propagation, e.g., on hosts with 64-bit int.
57897         There still are some problems with reeelly weird theoretical hosts
57898         (e.g., 33-bit int) but it's not worth worrying about now.
57899         * lib/sha1.c (rol): Likewise.
57900         (K1, K2, K3, K4): Remove unnecessary L suffix.
57901
57902 2006-05-10  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/des.c: Cast to avoid warnings.
57905
57906 2006-05-09  Bruno Haible  <bruno@clisp.org>
57907
57908         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57909         (Depends-on): Depend also on xsize, stdarg.
57910         (configure.ac): Add gl_XVASPRINTF.
57911
57912 2006-05-09  Bruno Haible  <bruno@clisp.org>
57913
57914         * m4/xvasprintf.m4: New file.
57915
57916 2006-05-09  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57919         (EOVERFLOW): Define fallback value.
57920         (xstrcat): New function.
57921         (xvasprintf): Recognize the special case of a string concatenation.
57922
57923 2006-05-08  Eric Blake  <ebb9@byu.net>
57924
57925         * gnulib-tool (func_version): Base copyright year on CVS date.
57926         (func_emit_copyright_notice): New function.
57927         (func_emit_lib_Makefile_am): Use it.
57928         (func_emit_tests_Makefile_am): Likewise.
57929         (func_import): Likewise.
57930
57931 2006-05-08  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/stdarg: New file.
57934         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57935
57936 2006-05-08  Bruno Haible  <bruno@clisp.org>
57937
57938         * m4/stdarg.m4: New file, from GNU gettext.
57939
57940 2006-05-08  Bruno Haible  <bruno@clisp.org>
57941
57942         * config/srclist.txt (build-aux/config.rpath): different from latest
57943         release.
57944
57945 2006-05-08  Bruno Haible  <bruno@clisp.org>
57946
57947         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57948
57949 2006-05-05  Jim Meyering  <jim@meyering.net>
57950
57951         * m4/warning.m4: New file, derived from bison's file by the same name.
57952
57953 2006-05-03  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/stdint_.h: Shorter URL.
57956         * lib/inttypes.h: Likewise.
57957
57958 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57959
57960         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57961
57962 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * lib/verify.h: Document the internals better.  Most of this change
57965         was written by Bruno Haible.
57966
57967 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * doc/verify.texi: New file, partly based on a proposal by
57970         Bruno Haible.
57971
57972 2006-05-02  Bruno Haible  <bruno@clisp.org>
57973
57974         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
57975         test from here...
57976         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
57977
57978 2006-04-29  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
57981         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
57982
57983 2006-04-29  Bruno Haible  <bruno@clisp.org>
57984
57985         * gnulib-tool: Make --update option actually work.
57986
57987 2006-04-29  Bruno Haible  <bruno@clisp.org>
57988
57989         * doc/gcd.texi: New file.
57990         * doc/gnulib.texi: Include it.
57991
57992 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * lib/getdate.y (get_date): When adding relative date, start with the
57995         initial time, not with the result of the first mktime call.
57996
57997 2006-04-25  Bruno Haible  <bruno@clisp.org>
57998
57999         * gnulib-tool (func_import): Output the include directives in three
58000         blocks, sorted separately.
58001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58002
58003 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58004
58005         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
58006         to define main with arguments, for C++.  Reported by Eric Blake.
58007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
58008         Prefer 'int main ()' to 'int main (void)', for C++.
58009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58010         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
58011         for 'main', for C99 and C++.
58012
58013 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
58016         Don't assume that exit status -1 is valid.
58017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58018         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58019         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58020         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
58021         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
58022         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
58023         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
58024         functions can be used without declaring them, or that you can
58025         exit with status -1.
58026         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58027
58028 2006-04-24  Karl Berry  <karl@gnu.org>
58029
58030         * config/srclist.txt (longdouble.m4): sync lost.
58031
58032 2006-04-24  Eric Blake  <ebb9@byu.net>
58033
58034         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
58035
58036 2006-04-24  Bruno Haible  <bruno@clisp.org>
58037
58038         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
58039         poll() implementation in AIX.
58040         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58041
58042 2006-04-24  Bruno Haible  <bruno@clisp.org>
58043
58044         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
58045         assigned exactly once.
58046
58047 2006-04-23  Claudio Fontana  <claudio@gnu.org>
58048             Bruno Haible  <bruno@clisp.org>
58049
58050         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
58051         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
58052         for AM_CPPFLAGS.
58053
58054 2006-04-23  Bruno Haible  <bruno@clisp.org>
58055
58056         * modules/copy-file: Depend on unistd.
58057         * modules/execute: Likewise.
58058         * modules/fatal-signal: Likewise.
58059         * modules/findprog: Likewise.
58060         * modules/mkdtemp : Likewise.
58061         * modules/pipe: Likewise.
58062         * modules/wait-process: Likewise.
58063
58064 2006-04-23  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
58067         condition was already detected.
58068         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58069
58070 2006-04-23  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/copy-file.c: Include <unistd.h> unconditionally.
58073         * lib/execute.c: Likewise.
58074         * lib/fatal-signal.c: Likewise.
58075         * lib/findprog.c: Likewise.
58076         * lib/mkdtemp.c: Likewise.
58077         * lib/pipe.h: Likewise.
58078         * lib/pipe.c: Likewise.
58079         * lib/wait-process.h: Likewise.
58080
58081 2006-04-23  Bruno Haible  <bruno@clisp.org>
58082
58083         * gnulib-tool (func_usage): Fix --import description. Document
58084         --update.
58085         (func_import): Create temporary file in a temporary directory, if
58086         --dry-run is specified. Silence errors from 'grep' when there are no
58087         m4 files in $m4dir.
58088         (func_create_testdir): Silence errors from 'grep' when there are no
58089         m4 files in $m4dir.
58090         Reported by Karl Berry <karl@freefriends.org>.
58091
58092 2006-04-20  Bruno Haible  <bruno@clisp.org>
58093
58094         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
58095         one argument, so that the code will be portable to Autoconf 2.60.
58096         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
58097         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58098         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
58099
58100 2006-04-19  Derek Price  <derek@ximbiot.com>
58101             Eric Blake  <ebb9@byu.net>
58102
58103         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
58104         rather than "/full/path.h".  Update comment to match.  Shorten &
58105         generalize m4_translit call via AS_TR_CPP.
58106
58107 2006-04-19  Derek Price  <derek@ximbiot.com>
58108             Eric Blake  <ebb9@byu.net>
58109
58110         * lib/inttypes.h: Correct grammar in comment.
58111
58112 2006-04-18  Derek Price  <derek@ximbiot.com>
58113             Paul Eggert  <eggert@cs.ucla.edu>
58114
58115         * modules/inttypes: New file.
58116         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
58117
58118 2006-04-18  Derek Price  <derek@ximbiot.com>
58119             Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
58122         New files.
58123
58124 2006-04-18  Derek Price  <derek@ximbiot.com>
58125             Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         * lib/inttypes.h: New file.
58128         * lib/strtoimax.c: Assume <inttypes.h>.
58129
58130 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
58133         isn't mounted.  Problem reported by Kir Kolyshkin.
58134
58135 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58136
58137         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
58138         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
58139         Derek R. Price.
58140         * lib/regex.h (RE_DUP_MAX): Update comment to match current
58141         implementation.
58142
58143 2006-04-12  Eric Blake  <ebb9@byu.net>
58144
58145         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
58146         is now done automatically by the corresponding Autoconf macro.
58147
58148 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
58149
58150         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
58151         time_r.h.
58152
58153 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58154
58155         Merge regex changes from libc, removing some of our
58156         POSIX-conformance changes that were rejected and redoing them in a
58157         less-intrusive way.
58158
58159         * lib/regcomp.c (re_compile_internal, init_dfa):
58160         Length arg is now size_t, not Idx.  All uses changed.
58161         (peek_token): Forward decl now says internal_function.
58162         (__re_error_msgid, __re_error_msgid_idx):
58163         Now static rather than extern with attribute_hidden.
58164         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
58165         For some reason libc prefers K&R style defns for external functions.
58166         (regerror) [!defined _LIBC]: Likewise.
58167         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
58168         (seek_collating_symbol_entry, lookup_collation_sequence_value):
58169         (build_range_exp, build_collating_symbol):
58170         Use K&R-style defn.
58171         (re_compile_fastmap): Use '\0' to memset, not 0.
58172         (utf8_sb_map): Make the calculations more obvious.
58173         (init_dfa, parse_bracket_exp, build_charclass_op):
58174         Call calloc and cast result, as glibc does.
58175         (init_word_char, fetch_token, peek_token, peek_token_bracket):
58176         (build_range_exp, build_collating_symbol):
58177         Now internal functions.
58178
58179         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
58180
58181         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
58182         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
58183         Don't depend on VMS; depend on __VMS instead, for POSIX
58184         namespace cleanness.
58185         (regoff_t): Define to ssize_t, not long int.
58186
58187         Remove the REG_ macros named below.  Instead, make the old names
58188         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
58189         __USE_GNU_REGEX.
58190         (REG_BACKSLASH_ESCAPE_IN_LISTS):
58191         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
58192         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
58193         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
58194         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
58195         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
58196         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
58197         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
58198         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
58199         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
58200         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
58201         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
58202         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
58203         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
58204         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
58205         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
58206         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
58207         (REG_NREGS):
58208         Remove.  All uses replaced by the old RE_* names.
58209         (RE_BACKSLASH_ESCAPE_IN_LISTS):
58210         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
58211         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
58212         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
58213         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
58214         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
58215         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
58216         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
58217         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
58218         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
58219         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
58220         Don't bother having these macros be independent of each others'
58221         values, since they no longer exist in the POSIX name space.
58222
58223         Rename the following member names back to their old names,
58224         unless !__USE_GNU_REGEX.  All uses changed back.
58225         (buffer): Renamed from re_buffer.
58226         (allocated): Renamed from re_allocated.
58227         (used): Renamed from re_used.
58228         (syntax): Renamed from re_syntax.
58229         (fastmap): Renamed from re_fastmap.
58230         (translate): Renamed from re_translate.
58231         (can_be_null): Renamed from re_can_be_null.
58232         (regs_allocated): Renamed from re_regs_allocated.
58233         (fastmap_accurate): Renamed from re_fastmap_accurate.
58234         (no_sub): Renamed from re_no_sub.
58235         (not_bol): Renamed from re_not_bol.
58236         (not_eol): Renamed from re_not_eol.
58237         (newline_anchor): Renamed from re_newline_anchor.
58238         (num_regs): Renamed from rm_num_regs.
58239         (start): Renamed from rm_start.
58240         (end): Renamed from rm_end.
58241
58242         (free_state): Move up a bit.
58243
58244         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
58245         #define to be empty.
58246         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
58247         when that is what is intended.
58248         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
58249         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
58250         (MAX): New macro.
58251         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
58252         All uses changed back to re_malloc, etc.  It's now the caller's
58253         responsibility to check for overflow; all callers changed.
58254         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
58255         (re_x2nrealloc): Remove.
58256         (free_state): Remove decl.
58257
58258         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
58259         (re_set_registers, re_exec):
58260         Use K&R-style defn.
58261
58262         2006-01-31  Roland McGrath  <roland@redhat.com>
58263
58264         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
58265         Reported by Mike Frysinger <vapier@gentoo.org>.
58266
58267         2006-01-15  Andreas Jaeger  <aj@suse.de>
58268
58269         [BZ #1950]
58270         * lib/regex_internal.c (re_string_reconstruct): Adjust for
58271         build_wcs_upper_buffer change.
58272         (build_wcs_upper_buffer): Change return type.
58273
58274         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
58275
58276         * lib/regex_internal.h: Include <stdint.h> if available.
58277
58278         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
58279
58280         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
58281
58282         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58283
58284         * lib/regcomp.c: Adjust for changed secondary hash function.
58285
58286         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
58287
58288         * lib/regex.h: Pretty printing.
58289         Clean up namespace a bit.
58290
58291         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
58292
58293         * lib/regexec.c (update_cur_sifted_state, check_arrival,
58294         check_arrival_add_next_nodes): Avoid using uninitialized variable.
58295
58296         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58297                     Ulrich Drepper  <drepper@redhat.com>
58298
58299         [BZ #1302]
58300         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
58301         changed.
58302         (bitset_word_t): Renamed from bitset_word.  All uses changed.
58303
58304         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
58305
58306         [BZ #281]
58307         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
58308         * lib/regcomp.c: Remove unnecessary uses of
58309         unsigned RE_TRANSLATE_TYPE.
58310         * lib/regex_internal.h: Likewise.
58311         * lib/regex_internal.c: Likewise.
58312         * lib/regexec.c: Likewise.
58313         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
58314
58315         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
58316
58317         * lib/regexec.c (find_recover_state): Remove unnecessary
58318         initialization.
58319         (transit_state_bkref): Make DFA a const pointer.
58320         (get_subexp): Likewise.
58321         (check_arrival): Likewise.
58322         (update_cur_sifted_state): Likewise.
58323         (re_search_internal): Likewise.
58324         (prune_impossible_nodes): Likewise.
58325         (acquire_init_state_context): Likewise.
58326         (proceed_next_node): Likewise.
58327         (set_regs): Likewise.
58328         (free_fail_stack_return): Likewise.
58329         (check_arrival_expand_ecl): Mark DFA parameter as const.
58330         (check_arrival_expand_ecl_sub): Likewise.
58331         (check_subexp_limits): Likewise.
58332         (sub_epsilon_src_nodes):  Likewise.
58333         (add_epsilon_src_nodes):  Likewise.
58334         (merge_state_array): Likewise.
58335         (update_regs): Likewise.
58336         (build_trtable): Likewise.
58337         (sift_states_backward): Mark MCTX parameter as const.
58338         (build_sifted_states): Likewise.
58339         (update_cur_sifted_state): Likewise.
58340         (sift_states_mkref): Likewise.
58341         (check_arrival_expand_ecl): Mark eclosure as const.
58342         (check_dst_limits_calc_pos_1): Likewise.
58343         * lib/regex_internal.h (re_match_context_t): Make dfa a const
58344         pointer.
58345
58346         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
58347
58348         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
58349         (transit_state_sb): Likewise.
58350         (transit_state_mb): Likewise.
58351         (sift_states_iter_mb): Likewise.
58352         (check_arrival_add_next_nodes): Likewise.
58353         (check_node_accept_bytes): Change first parameter to pointer-to-const.
58354         [_LIBC] (re_search_2_stub): Use mempcpy.
58355
58356         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
58357         mbrtowc for very simple UTF-8 case.
58358
58359         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
58360         a pointer-to-const.
58361         (re_acquire_state_context): Likewise.
58362         * lib/regex_internal.h: Adjust prototypes.
58363
58364         * lib/regex.c: Prevent using C++ compilers.
58365
58366         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
58367         (re_acquire_state_context): Likewise.
58368
58369 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         * modules/regex (Depends-on): Add ssize_t.
58372
58373 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
58376         translation table.
58377
58378 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58379
58380         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
58381
58382 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
58383             Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
58386         <sys/types.h> and <inttypes.h>.
58387
58388 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58389
58390         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
58391         `__error_t_defined', so argp.h will not typedef the former.
58392
58393 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
58396         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
58397         glibc names.  Even if glibc is changed to conform to POSIX, the
58398         traditional names will be available anyway, since regex depends on
58399         the extensions module.  Also, fix a longstanding typo in the
58400         implementation of Spencer ERE test #75 from grep 2.3.  Problems
58401         reported by Emanuele Giaquinta.  Also, change sense of cached
58402         variable, so that the message makes sense.
58403
58404 2006-03-24  Simon Josefsson  <jas@extundo.com>
58405
58406         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
58407         including some doc fixes.
58408         (base64_encode_alloc): Fix +1 bug on allocation failures.
58409
58410 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58411
58412         * lib/base64.c (base64_encode): Do not read past end of array with
58413         unsanitized input on systems with CHAR_BIT > 8.
58414
58415 2006-03-24  Eric Blake  <ebb9@byu.net>
58416
58417         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
58418
58419 2006-03-22  Karl Berry  <karl@gnu.org>
58420
58421         * config/srclist.txt (*setenv.[ch]): get from coreutils.
58422         * config/srclistvars.sh (COREUTILS): new var.
58423
58424 2006-03-17  Jim Meyering  <jim@meyering.net>
58425
58426         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
58427         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
58428
58429 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58430
58431         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
58432         no longer needs it.  Instead, check that regoff_t is as least
58433         as wide as ptrdiff_t.
58434
58435         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
58436         so that our regex.h stays compatible with the installed regex.
58437         This is helpful for installers who configure --without-included-regex.
58438         Problem reported by Emanuele Giaquinta.
58439
58440 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58441
58442         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
58443         Typedef to long int, not to off_, as POSIX will likely change
58444         in that direction.
58445
58446 2006-03-15  Eric Blake  <ebb9@byu.net>
58447
58448         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
58449
58450 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58451
58452         * lib/argp-help.c (validate_uparams): Fix typo
58453         * lib/argp-parse.c (argp_default_options): Consistently begin help
58454         messages with a lowercase letter.
58455
58456 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
58459         overrun buffers and shouldn't be used (much as gets shouldn't be
58460         used).
58461         * lib/time_r.c (asctime_r, ctime_r): Likewise.
58462
58463 2006-03-08  Simon Josefsson  <jas@extundo.com>
58464
58465         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
58466         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58467
58468 2006-03-08  Simon Josefsson  <jas@extundo.com>
58469
58470         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
58471         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58472
58473 2006-03-08  Simon Josefsson  <jas@extundo.com>
58474
58475         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
58476         signal that configure disabled the device.
58477
58478 2006-03-08  Simon Josefsson  <jas@extundo.com>
58479
58480         * build-aux/maint.mk: Fix refresh-po, to handle no translated
58481         languages.
58482
58483 2006-03-07  Simon Josefsson  <jas@extundo.com>
58484
58485         * modules/getopt (Depends-on): Add unistd.
58486
58487         * modules/unistd: New file.
58488
58489 2006-03-07  Simon Josefsson  <jas@extundo.com>
58490
58491         * modules/gc-random: New file.
58492
58493 2006-03-07  Simon Josefsson  <jas@extundo.com>
58494
58495         * m4/unistd_h.m4: New file.
58496
58497 2006-03-07  Simon Josefsson  <jas@extundo.com>
58498
58499         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
58500         test to be side-effect free by storing the result in the cache
58501         variable gl_cv_lib_readline, and moving the assignment of
58502         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
58503         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58504
58505 2006-03-07  Simon Josefsson  <jas@extundo.com>
58506
58507         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
58508         error on missing devices (the functions will return an error).
58509
58510         * m4/gc.m4: Move random stuff to gc-random.m4
58511
58512 2006-03-07  Simon Josefsson  <jas@extundo.com>
58513
58514         * lib/unistd_.h: New file.
58515
58516 2006-03-07  Simon Josefsson  <jas@extundo.com>
58517
58518         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
58519
58520 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
58523         Problem reported by Juan Manuel Guerrero.
58524
58525 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
58528         the unistd module.
58529         * lib/getlogin_r.c: Likewise.
58530         * lib/getlogin_r.h: Likewise.
58531         * lib/glob.c: Likewise.
58532         * lib/pagealign_alloc.c: Likewise.
58533         * lib/unistd_.h: Remove; no longer needed.
58534
58535 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * MODULES.html.sh (Support for systems lacking POSIX:2001):
58538         Add unistd.
58539         * modules/c-stack (Depends-on): Add unistd.
58540         * modules/getlogin_r: Likewise.
58541         * modules/glob: Likewise.
58542         * modules/pagealign_alloc: Likewise.
58543         * modules/unistd (Files): Remove lib/unistd_.h.
58544         (EXTRA_DIST): Remove.
58545         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
58546         need unistd_.h.
58547         (MOSTLYCLEANFILES): Remove unistd.h-t.
58548
58549 2006-03-03  Simon Josefsson  <jas@extundo.com>
58550
58551         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
58552
58553 2006-03-03  Simon Josefsson  <jas@extundo.com>
58554
58555         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
58556         libidn and bison.
58557
58558 2006-03-03  Simon Josefsson  <jas@extundo.com>
58559
58560         * build-aux/maint.mk: Add indent target.
58561
58562 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
58563
58564         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
58565         our replacement poll.h in any case, to avoid a differing
58566         declaration from a system header.  Seen on AIX.
58567
58568 2006-03-01  Simon Josefsson  <jas@extundo.com>
58569
58570         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
58571         <kasal@ucw.cz>.
58572
58573 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * modules/gettime (Depends-on): Add extensions module.
58576         * modules/nanosleep (Depends-on): Likewise.
58577         * modules/settime (Depends-on): Likewise.
58578
58579 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58580
58581         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
58582         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
58583         pedantically.
58584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58585         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
58586
58587         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
58588         not "==".  Reported by Ralf Wildenhues.
58589
58590 2006-03-01  Karl Berry  <karl@gnu.org>
58591
58592         * doc/Copyright/request-*: new files, synced from gnuorg.
58593
58594 2006-03-01  Karl Berry  <karl@gnu.org>
58595
58596         * config/srclist.txt (Copyright/*): new entries.
58597
58598 2006-02-28  Simon Josefsson  <jas@extundo.com>
58599
58600         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
58601
58602 2006-02-27  Simon Josefsson  <jas@extundo.com>
58603
58604         * lib/base64.h: Indent #define's.  From Jim Meyering
58605         <jim@meyering.net>.
58606
58607 2006-02-27  Jim Meyering  <jim@meyering.net>
58608
58609         Revert the change of 2006-02-24, so these files can continue
58610         to be sync'd from gettext.
58611         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
58612         of `config.h'.
58613
58614 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * modules/intprops: New file.
58617         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58618         Add intprops.
58619         * modules/getloadavg (Files): Remove lib/intprops.h.
58620         (Depends-on): Add intprops.
58621         * modules/human: Likewise.
58622         * modules/inttostr: Likewise.
58623         * modules/openat: Likewise.
58624         * modules/sig2str: Likewise.
58625         * modules/userspec: Likewise.
58626         * modules/utimecmp: Likewise.
58627         * modules/xnanosleep: Likewise.
58628         * modules/xstrtol: Likewise.
58629
58630 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
58631
58632         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
58633         * modules/lock-tests (TESTS): Use $(EXEEXT).
58634         * modules/tls-tests: Likewise.
58635         * modules/argp-tests: Likewise.
58636         (check_PROGRAMS): New var, replacing...
58637         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
58638
58639 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58640
58641         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
58642         `config.h'.
58643
58644 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
58647
58648 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58649
58650         Sync from coreutils.
58651         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
58652         gl_CHDIR_SAFER.
58653
58654 2006-02-22  Jim Meyering  <jim@meyering.net>
58655
58656         Sync from coreutils.
58657         * m4/chdir-safer.m4: New file.
58658
58659 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
58662         AT_FDCWD exceeds INT_MAX.
58663         * lib/openat.h (AT_FDCWD): Likewise.
58664
58665 2006-02-17  Eric Blake  <address@hidden>
58666
58667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
58668
58669 2006-02-16  Simon Josefsson  <jas@extundo.com>
58670
58671         * modules/getaddrinfo (Depends-on): Add sys_socket.
58672
58673 2006-02-15  Simon Josefsson  <jas@extundo.com>
58674
58675         * build-aux/maint.mk: Add dsyntax-check rule.
58676
58677 2006-02-15  Eric Blake  <ebb9@byu.net>
58678
58679         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
58680         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
58681         'present but cannot compile' warnings on cygwin.
58682         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
58683         use ws2tcpip.h if sys/socket.h works.
58684         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
58685         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
58686
58687 2006-02-14  Simon Josefsson  <jas@extundo.com>
58688
58689         * modules/maintainer-makefile (Files): Rename.
58690
58691         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
58692         and (the local) Makefile.cfg to maint-cfg.mk.
58693
58694         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
58695         to the latter.
58696
58697         * modules/maintainer-makefile: New module.
58698
58699         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
58700         severaly stripped to make it possible to build it up from scratch
58701         with reliable tests.
58702
58703         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
58704         fixes to permit overriding the default actions when configure and
58705         makefile are not available.
58706
58707 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         Sync from coreutils.
58710         * modules/lstat (Depends-on): Don't depend on xalloc.
58711         (License): Change from GPL to LGPL, since this is now simply a
58712         replacement for a libc function.
58713
58714 2006-02-14  Jim Meyering  <jim@meyering.net>
58715
58716         Sync from coreutils.
58717
58718         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58719         failure on deficient systems, and simplify gnulib lgpl dependencies.
58720         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58721         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58722
58723         * lib/xalloc-die.c: Remove unused definition of N_.
58724
58725 2006-02-14  Jim Meyering  <jim@meyering.net>
58726
58727         Sync from coreutils.
58728         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58729         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58730         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58731         double-quote uses of that variable, to accommodate the rare case in
58732         which getmntent is available in none of the libraries checked.  This
58733         happens at least on FreeBSD 5.0.
58734
58735 2006-02-13  Simon Josefsson  <jas@extundo.com>
58736
58737         * gnulib-tool (Usage): Fix --import, from
58738         karl@freefriends.org (Karl Berry).
58739
58740 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58741
58742         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58743
58744 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58745
58746         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58747         "autoupdate" on 2005-12-12.
58748
58749 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * modules/closeout (Depends-on): Remove atexit.
58752
58753 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58756         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58757
58758 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58759
58760         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58761         __EXTENSIONS__ if this causes compilation to fail.  Problem
58762         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58763         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58764
58765 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58768         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58770         All uses changed.
58771
58772 2006-01-26  Simon Josefsson  <jas@extundo.com>
58773
58774         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58775         prototype is visible on mingw32.
58776
58777         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58778         for mingw32.
58779
58780         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58781         mingw32).
58782
58783 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58786         attempt to open for write; this always fails, at least on POSIX
58787         hosts.  This reinstates the 2006-01-09 change, which was
58788         inadvertently removed.
58789
58790 2006-01-26  Bruno Haible  <bruno@clisp.org>
58791
58792         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58793         Reported by Paul Eggert.
58794
58795 2006-01-26  Bruno Haible  <bruno@clisp.org>
58796             Paul Eggert  <eggert@cs.ucla.edu>
58797
58798         * lib/stdbool_.h (_Bool)
58799         [(! (defined __cplusplus || defined __BEOS__)
58800           && !defined __GNUC__
58801           && !(defined __HP_cc || defined __xlc__
58802                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58803                || defined __sgi))]:
58804         #define to signed char in these cases too; this simplifies
58805         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58806         etc., separately) and makes it more conservative.
58807
58808 2006-01-25  Simon Josefsson  <jas@extundo.com>
58809
58810         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58811         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58812         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58813
58814 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58815
58816         * lib/argp-namefrob.h: Bugfix. Remove stray #
58817
58818 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58821         so that we test the test.
58822         Check for yet another HP-UX cc bug involving *bool |= bool.
58823
58824 2006-01-25  Karl Berry  <karl@gnu.org>
58825
58826         * config/srclist.txt (vasnprintf.c): sync lost.
58827
58828 2006-01-25  Jim Meyering  <jim@meyering.net>
58829
58830         Sync from the stable (b5) branch of coreutils:
58831
58832         * lib/fts.c (fts_children): Don't let close() clobber errno from
58833         failed fchdir().
58834
58835         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58836         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58837         a dangling symlink.  That can also happen at least for ELOOP.
58838         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58839         FYI, this bug predates the inclusion of fts.c in coreutils.
58840
58841         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58842         in their own block, so pre-c99 compilers don't object.
58843
58844         Avoid the double-free (first in fts_read, second in fts_close) that
58845         would occur when an `active' directory is made inaccessible (e.g.,
58846         via chmod a-x) during a traversal.
58847         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58848         before returning.  Reproduce this failure by
58849         mkdir -p a/b; cd a; chmod a-x . b
58850         Reported by Stavros Passas.
58851
58852 2006-01-25  Jim Meyering  <jim@meyering.net>
58853
58854         * lib/fileblocks.c: Remove more useless parentheses.
58855         * lib/readutmp.h: Likewise.
58856
58857 2006-01-25  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58860         warnings.
58861         Reported by Paul Eggert.
58862
58863 2006-01-25  Bruno Haible  <bruno@clisp.org>
58864
58865         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58866         rid of a trap command. For Solaris sh.
58867         Reported by Mark D. Baushke <mdb@gnu.org>.
58868
58869 2006-01-24  Simon Josefsson  <jas@extundo.com>
58870
58871         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58872         Bruno.
58873
58874 2006-01-24  Karl Berry  <karl@gnu.org>
58875
58876         * config/srclist.txt (argp-namefrob.h): sync lost.
58877
58878 2006-01-24  Jim Meyering  <jim@meyering.net>
58879
58880         * modules/openat (Files): Add lib/intprops.h.
58881         From Mark D. Baushke.
58882
58883 2006-01-24  Jim Meyering  <jim@meyering.net>
58884
58885         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58886         Reported by Mark D. Baushke.
58887
58888 2006-01-24  Jim Meyering  <jim@meyering.net>
58889
58890         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58891
58892 2006-01-24  Bruno Haible  <bruno@clisp.org>
58893
58894         * modules/strnlen (Maintainer): Change from glibc to all.
58895
58896 2006-01-24  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58899         Patch by Paul Eggert.
58900
58901 2006-01-24  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58904         already has it.
58905         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58906         2005-11-26.
58907
58908         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58909         'signed char' to avoid problems with the built-in _Bool type.
58910         Reported by Paul Eggert on 2005-11-26.
58911
58912 2006-01-24  Bruno Haible  <bruno@clisp.org>
58913
58914         * gnulib-tool (func_import): Avoid constructing complicated sed
58915         expressions inside backquote.
58916         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58917
58918 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58919
58920         These changes imported from libc.
58921         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58922         test and two separate function calls.
58923         * lib/strndup.c (__strndup): Add libc_hidden_def.
58924
58925 2006-01-23  Simon Josefsson  <jas@extundo.com>
58926
58927         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58928         Remove the test_*_SOURCES variable: automake infers it by default.
58929         * modules/tls-tests: Likewise.
58930
58931 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         Work around porting bugs reported by Dieter in
58934         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58935         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58936         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58937         Include "getopt.h" first, to check interface.
58938         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58939         !HAVE_DECL_GETENV.
58940         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58941         (__strndup): Revert to K&R-style function dfns, the glibc style.
58942         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58943         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58944         Include strnlen.h first, to get prototype properly.
58945         (strnlen): Renamed from __strnlen.
58946         Remove weak alias.
58947
58948 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58951
58952 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58953
58954         * config/srclist.txt: Adjust to reflect glibc reorganization.
58955         This affects only comments.
58956
58957 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58958
58959          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58960          Reported by Bruce Korb <bkorb@gnu.org>.
58961
58962 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58963
58964         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58965         to pacify gcc -Wswitch-default.
58966
58967 2006-01-22  Bruno Haible  <bruno@clisp.org>
58968
58969         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
58970         temporary buffer for sprintf, take into account the precision also
58971         for 'd', 'i', 'u', 'o', 'x', 'X'.
58972
58973 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58974
58975         * modules/argp-tests: New module
58976         * tests/test-argp.c: New file
58977         * tests/test-argp-2.sh: New file
58978
58979 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58980
58981         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
58982         (__argp_base_name): Removed
58983         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
58984         typo.
58985         (__argp_base_name): Provide macro definition or extern declaration
58986         depending on the configuration
58987
58988 2006-01-20  Simon Josefsson  <jas@extundo.com>
58989
58990         * modules/inet_ntop (Depends-on): Depend on sys_socket.
58991
58992 2006-01-20  Simon Josefsson  <jas@extundo.com>
58993
58994         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
58995
58996 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
58999         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
59000         Suggested by Bruno Haible.
59001
59002 2006-01-20  Karl Berry  <karl@gnu.org>
59003
59004         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
59005         until changes propagate, I guess.
59006
59007 2006-01-19  Simon Josefsson  <jas@extundo.com>
59008
59009         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
59010
59011 2006-01-19  Simon Josefsson  <jas@extundo.com>
59012
59013         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
59014
59015 2006-01-19  Simon Josefsson  <jas@extundo.com>
59016
59017         * gnulib-tool: Set check_PROGRAMS.
59018
59019         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59020         modules/des-tests, modules/gc-arcfour-tests,
59021         modules/gc-arctwo-tests, modules/gc-des-tests,
59022         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59023         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59024         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59025         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59026         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59027         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
59028         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
59029         test_*_SOURCES.
59030
59031 2006-01-18  Simon Josefsson  <jas@extundo.com>
59032
59033         * modules/socklen (Depends-on): Depend on sys_socket.
59034
59035 2006-01-18  Simon Josefsson  <jas@extundo.com>
59036
59037         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59038         modules/des-tests, modules/gc-arcfour-tests,
59039         modules/gc-arctwo-tests, modules/gc-des-tests,
59040         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59041         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59042         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59043         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59044         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59045         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
59046         $(EXEEXT) to automake TESTS variable, for mingw32.
59047
59048 2006-01-17  Simon Josefsson  <jas@extundo.com>
59049
59050         * modules/socklen (Include): Need sys/socket.h.
59051
59052 2006-01-17  Bruno Haible  <bruno@clisp.org>
59053
59054         * modules/ssize_t (Include): Add <sys/types.h>.
59055
59056 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
59057
59058         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
59059         it's not portable and it doesn't work with cross-compiles.
59060         Problem reported by Bruno Haible.  Fix missing-$ typo in
59061         'test "gl_cv_ignore_unused_libraries" ...' that prevented
59062         -zignore from being used with Sun's C compiler.
59063
59064 2006-01-12  Simon Josefsson  <jas@extundo.com>
59065
59066         * lib/base64.c: Fix warning, reported by Bruno Haible
59067         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
59068
59069 2006-01-12  Bruno Haible  <bruno@clisp.org>
59070
59071         * modules/ldd: New file.
59072         * build-aux/ldd.sh.in: New file.
59073         * MODULES.html.sh (Support for building libraries and executables): Add
59074         ldd.
59075
59076 2006-01-12  Bruno Haible  <bruno@clisp.org>
59077
59078         * m4/ldd.m4: New file.
59079
59080 2006-01-12  Bruno Haible  <bruno@clisp.org>
59081
59082         * gnulib-tool (func_import, func_create_testdir): Don't go into an
59083         endless loop while replacing $auxdir with build-aux.
59084
59085 2006-01-11  Simon Josefsson  <jas@extundo.com>
59086
59087         * lib/stdint_.h (SIZE_MAX): Add missing (.
59088
59089 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         Sync from coreutils.
59092         * lib/md5.c: Fix commentary typos.
59093         (alignof, UNALIGNED_P): No need for a GCC-specific version.
59094         * lib/md5.h (__attribute__): Remove; unused.
59095         * lib/sha1.c: Fix commentary to match md5 better.
59096         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
59097         so that we don't need to worry about alignment.  All uses changed.
59098         This merges the 2005-10-28 md5 change into sha1.
59099
59100 2006-01-11  Jim Meyering  <jim@meyering.net>
59101
59102         Sync from coreutils.
59103         * lib/md5.c (OP): Fix spacing.
59104
59105 2006-01-11  Bruno Haible  <bruno@clisp.org>
59106
59107         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59108         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
59109         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
59110
59111 2006-01-11  Bruno Haible  <bruno@clisp.org>
59112
59113         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59114         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
59115         the "early" section as well.
59116
59117 2006-01-11  Bruno Haible  <bruno@clisp.org>
59118
59119         Avoid "ar: no archive members specified" error on MacOS X.
59120         * gnulib-tool (func_modules_add_dummy): New function.
59121         (func_import, func_create_testdir): Invoke it.
59122
59123 2006-01-11  Bruno Haible  <bruno@clisp.org>
59124
59125         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
59126         with $auxdir in AC_CONFIG_FILES statements.
59127
59128 2006-01-11  Bruno Haible  <bruno@clisp.org>
59129
59130         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59131         Initialize also noinst_HEADERS to empty.
59132
59133 2006-01-11  Bruno Haible  <bruno@clisp.org>
59134
59135         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
59136         variables.
59137         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
59138         autoreconf.
59139
59140 2006-01-11  Bruno Haible  <bruno@clisp.org>
59141
59142         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
59143         overridable by the user.
59144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59145
59146 2006-01-10  Simon Josefsson  <jas@extundo.com>
59147
59148         * modules/sys_socket: New file.
59149
59150 2006-01-10  Simon Josefsson  <jas@extundo.com>
59151
59152         * m4/sys_socket_h.m4: New file.
59153
59154 2006-01-10  Simon Josefsson  <jas@extundo.com>
59155
59156         * lib/socket_.h: New file.
59157
59158 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59159
59160         * modules/readutmp (Maintainer): Add myself.
59161
59162 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
59165         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
59166         People who are still concerned with buggy memcmp implementations
59167         can invoke gl_FUNC_MEMCMP themselves.
59168
59169 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59170
59171         * lib/regex_internal.h (BITSET_WORD_BITS):
59172         Work around a bug in 64-bit PGC (before version 6.1-2), where the
59173         preprocessor mishandles large unsigned values as if they were signed.
59174         Problem reported by Claudio Fontana in
59175         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
59176
59177 2006-01-10  Jim Meyering  <jim@meyering.net>
59178
59179         Avoid the double-free (first in fts_read, second in fts_close) that
59180         would occur when an `active' directory is made inaccessible (e.g.,
59181         via chmod a-x) during a traversal.
59182         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59183         before returning.  Reproduce this failure by
59184         mkdir -p a/b; cd a; chmod a-x . b
59185         Reported by Stavros Passas.
59186
59187         Sync from coreutils.
59188         * lib/sha1.c: Tweak grammar in a comment.
59189
59190 2006-01-10  Jim Meyering  <jim@meyering.net>
59191
59192         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
59193         Patch by Joerg Sonnenberger.
59194
59195 2006-01-10  Bruno Haible  <bruno@clisp.org>
59196
59197         * modules/readutmp: Depend on module free.
59198         * modules/strtok_r: Depend on module restrict.
59199
59200 2006-01-10  Bruno Haible  <bruno@clisp.org>
59201
59202         * modules/gettext (configure.ac): Add an invocation of
59203         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
59204
59205 2006-01-10  Bruno Haible  <bruno@clisp.org>
59206
59207         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
59208         Reported by Werner Lemberg <wl@gnu.org>.
59209
59210 2006-01-10  Bruno Haible  <bruno@clisp.org>
59211
59212         * lib/localcharset.c: Update from GNU gettext.
59213
59214 2006-01-10  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/argp.h (__const): Remove macro. Use const instead.
59217         * lib/argp-fmtstream.h (__const): Likewise.
59218         * lib/glob_.h (__const): Remove macro.
59219         * lib/glob-libc.h: Use const instead of __const.
59220
59221 2006-01-10  Bruno Haible  <bruno@clisp.org>
59222
59223         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
59224         variable.
59225         Needed to avoid an automake error regarding the 'gettext' module.
59226
59227 2006-01-09  Simon Josefsson  <jas@extundo.com>
59228
59229         * modules/inet_ntop (Depends-on): Add restrict.
59230
59231 2006-01-09  Simon Josefsson  <jas@extundo.com>
59232
59233         * modules/gc-rijndael-tests (License): Put under LGPL.
59234
59235         * modules/gc-des-tests (License): Likewise.
59236
59237         * modules/gc-arcfour-tests (License): Likewise.
59238
59239         * modules/gc-arctwo-tests (License): Likewise.
59240
59241         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
59242
59243         * modules/gc-hmac-sha1-tests (Files): Likewise.
59244
59245         * modules/gc-hmac-md5-tests (License): Likewise.
59246
59247         * modules/gc-sha1-tests (License): Likewise.
59248
59249         * modules/gc-md5-tests (License): Likewise.
59250
59251         * modules/gc-md4-tests (License): Likewise.
59252
59253         * modules/gc-md2-tests (License): Likewise.
59254
59255         * modules/gc-tests (License): Likewise.
59256
59257         * modules/des-tests (License): Likewise.
59258
59259         * modules/md4-tests (License): Likewise.
59260
59261         * modules/md2-tests (License): Likewise.
59262
59263 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         Sync from coreutils:
59266
59267         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
59268         * modules/lib-ignore: New file.
59269         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
59270         chdir-safer.m4, lchmod.m4.
59271         * modules/openat: Add mkdirat.c, openat-priv.h.
59272
59273 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         Sync from coreutils.
59276         * m4/lib-ignore.m4: New file.
59277         * m4/lchmod.m4: New file.
59278
59279 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         Sync from coreutils.
59282         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
59283         for write access: POSIX says that must fail.
59284         * lib/fts.c (diropen): Likewise.
59285         * lib/save-cwd.c (save_cwd): Likewise.
59286         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
59287         well, for minor improvements on hosts that lack O_DIRECTORY.
59288         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
59289         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
59290         Fall back on chown if open failed with EACCES.
59291
59292         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
59293         Report an error at compile-time if only a 1-second nominal clock
59294         resolution is found.
59295
59296         * lib/lchmod.h: New file.
59297         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
59298         (make_dir_parents): Use lchown rather than chown, and
59299         lchmod rather than chmod.
59300
59301         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
59302         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
59303         "proc" reported by n0dalus.
59304
59305         * lib/mountlist.c: Include <limits.h>.
59306         (dev_from_mount_options)
59307         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
59308         New function.  It no longer assumes "dev=" has the System V meaning
59309         on Linux (since it doesn't).  It also parses "dev=" more carefully.
59310         (read_file_system_list)
59311         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
59312         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
59313         dev= in that case.
59314
59315         * lib/posixtm.h (PDS_PRE_2000): New macro.
59316         * lib/posixtm.c (year): Arg is now syntax_bits rather than
59317         allow_century.  All usages changed.  Reject dates outside the range
59318         1969-1999 if PDS_PRE_2000 is used.
59319
59320 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59321
59322         Sync from coreutils.
59323         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
59324         (Time of day items): Mention the possibility of leap seconds.
59325         Problem reported by Dr. David Alan Gilbert.
59326
59327 2006-01-09  Jim Meyering  <jim@meyering.net>
59328
59329         Sync from coreutils.
59330
59331         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
59332
59333         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
59334
59335         * lib/modechange.c (mode_compile): Reject an invalid mode string
59336         that starts with an octal digit.  From Andreas Gruenbacher.
59337
59338         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
59339         and dup to open_safer and dup_safer, respectively.
59340         (openat_permissive): Fix typo in comment.
59341
59342         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
59343         "gettext.h"; either no longer needed or are guaranteed by openat.h.
59344         (_): Remove; no longer needed.
59345         (openat): Renamed from rpl_openat; no need for rpl_openat
59346         since openat.h renames openat for us.
59347         Replace most of the body with a call to openat_permissive,
59348         to avoid duplicate code.
59349         Port to (probably hypothetical) environments were mode_t is
59350         wider than int.
59351         (openat_permissive): Require mode arg, so that we can check
59352         types better.  Put it just after flags.  Change cwd failure
59353         indicator from pointer-to-bool to pointer-to-errno-value.
59354         All callers changed.
59355         Invoke openat_save_fail and/or openat_restore_fail if
59356         cwd_errno is null, so that openat can call us.
59357         (openat_permissive, fdopendir, fstatat, unlinkat):
59358         Simplify errno handling to avoid some duplicate code,
59359         as it's OK to set errno on success.
59360         * lib/openat.h: Revamp code so that function macros depend on
59361         __OPENAT_PREFIX only, not also on AT_FDCWD.
59362         (openat_ro): Remove.  Caller changed to use openat_permissive.
59363         (openat_permissive): Now a macro, if not a function.
59364         (openat_restore_fail, openat_save_fail): Now always functions,
59365         since mkdirat needs them even if __OPENAT_PREFIX is defined.
59366
59367         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
59368         and openat.c.
59369         * lib/mkdirat.c: Include openat-priv.h.
59370         Remove definitions of macros defined therein.
59371         * lib/openat.c: Likewise.
59372
59373         * lib/mkdirat.c (mkdirat): New file and function.
59374         * lib/openat.h (mkdirat): Declare.
59375
59376         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
59377
59378         * lib/openat.h (openat_permissive): Declare.
59379         (openat_ro): Define.
59380
59381         * lib/openat.c (EXPECTED_ERRNO): New macro.
59382         (openat_permissive): New function -- used in remove.c rewrite.
59383         (all functions): Set errno just before returning, only if there
59384         was an actual failure.
59385         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
59386
59387         Emulate openat-family functions using Linux's procfs, if possible.
59388         Idea and some code based on Ulrich Drepper's glibc changes.
59389
59390         * lib/openat.c: (BUILD_PROC_NAME): New macro.
59391         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
59392         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
59393         before falling back on save_cwd and restore_cwd.
59394         (fdopendir, fstatat, unlinkat): Likewise.
59395
59396         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
59397         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
59398
59399         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
59400         as second argument to va_arg.  Otherwise, some versions of gcc
59401         warn that `if this code is reached, the program will abort'.
59402
59403 2006-01-09  Jim Meyering  <jim@meyering.net>
59404
59405         Sync from coreutils.
59406         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
59407         Require openat-priv.h.
59408
59409 2006-01-09  Bruno Haible  <bruno@clisp.org>
59410
59411         * modules/strnlen (Include): Use strnlen.h.
59412
59413 2006-01-09  Bruno Haible  <bruno@clisp.org>
59414
59415         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
59416
59417 2006-01-09  Bruno Haible  <bruno@clisp.org>
59418
59419         * lib/sysexit_.h (EX_OK): New macro.
59420         Suggested by Martin Lambers <marlam@marlam.de>.
59421
59422 2006-01-09  Bruno Haible  <bruno@clisp.org>
59423
59424         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
59425         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
59426
59427 2006-01-09  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
59430         numbers.
59431
59432 2006-01-09  Bruno Haible  <bruno@clisp.org>
59433
59434         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
59435         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
59436         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
59437         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
59438
59439 2006-01-09  Bruno Haible  <bruno@clisp.org>
59440
59441         * build-aux/javacomp.sh.in: New file, moved from lib/.
59442         * modules/javacomp-script (Files): Update.
59443         (configure.ac): Add AC_CONFIG_FILES invocation.
59444         (EXTRA_DIST): Remove variable.
59445
59446         * build-aux/javaexec.sh.in: New file, moved from lib/.
59447         * modules/javaexec (Files): Update.
59448         (configure.ac): Add AC_CONFIG_FILES invocation.
59449         (EXTRA_DIST): Remove javaexec.sh.in.
59450
59451         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
59452         * modules/csharpcomp-script (Files): Update.
59453         (configure.ac): Add AC_CONFIG_FILES invocation.
59454         (EXTRA_DIST): Remove variable.
59455
59456         * build-aux/csharpexec.sh.in: New file, moved from lib/.
59457         * modules/csharpexec (Files): Update.
59458         (configure.ac): Add AC_CONFIG_FILES invocation.
59459         (EXTRA_DIST): Remove csharpexec.sh.in.
59460
59461 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59462
59463         Sync from coreutils.
59464
59465         Add POSIX ACL support
59466         * lib/acl.h (copy_acl, set_acl): Add declarations.
59467         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
59468         systems other than Linux.
59469         (chmod_or_fchmod): New function: use fchmod when possible,
59470         and chmod otherwise.
59471         (file_has_acl): Add a POSIX ACL implementation, with a
59472         Linux-specific subcase.
59473         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
59474         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
59475         acls are unsupported.
59476         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
59477         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
59478         are unsupported.
59479
59480 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59481
59482         Sync from coreutils.
59483         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
59484
59485 2006-01-07  Bruno Haible  <bruno@clisp.org>
59486
59487         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
59488         gl_EARLY.
59489
59490 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59491
59492         * lib/strftime.c (tzname): Don't declare if it is already #defined.
59493         Problem reported for Mingw by Mark Junker.
59494
59495 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         * README: Gnulib normally doesn't generate a tarball.
59498
59499 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
59502         long int, not int, for nanosecond counts, so that people who are
59503         used to POSIX struct timespec won't be surprised.  Reported by Jim
59504         Meyering.
59505
59506 2005-12-28  Bruno Haible  <bruno@clisp.org>
59507
59508         * build-aux/config.rpath: Update from GNU gettext.
59509
59510 2005-12-16  Jim Meyering  <jim@meyering.net>
59511
59512         * modules/fprintftime: New module.
59513         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
59514
59515 2005-12-16  Jim Meyering  <jim@meyering.net>
59516
59517         * m4/fprintftime.m4: New file.
59518
59519 2005-12-16  Jim Meyering  <jim@meyering.net>
59520
59521         * lib/fprintftime.c, lib/fprintftime.h: New files.
59522
59523 2005-12-15  Simon Josefsson  <jas@extundo.com>
59524
59525         * modules/socklen (configure.ac): Fix M4 macro name, to align with
59526         new m4/socklen.m4.
59527
59528 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59529
59530         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
59531         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
59532
59533 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59534
59535         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
59536         * lib/argp-help.c (fill_in_uparams): Check if the constructed
59537         struct uparams is valid. Fall back to the default values if it is
59538         not.
59539
59540 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59541
59542         * modules/argp (Files): Add argp-pin.c
59543         (Depends-on): dirname
59544         (lib_SOURCES): Add argp-pin.c
59545
59546 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59547
59548         * m4/argp.m4:  Check if program_invocation_name and
59549         program_invocation_short_name are declared and define appropriate
59550         macros if they are not.
59551
59552 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59553
59554         * lib/argp-help.c (__argp_base_name): New function
59555         (__argp_short_program_name): Rewrite using __argp_base_name
59556         * lib/argp-namefrob.h: Define program_invocation_name and
59557         program_invocation_short_name if requested
59558         (__argp_base_name): Add prototype
59559         * lib/argp-parse.c (argp_def): Use gettext wrappers
59560         (argp_default_parser): Use __argp_base_name
59561         * lib/argp-pin.c: New file. Defines program_invocation_name and
59562         program_invocation_short_name on systems that lack them.
59563
59564 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
59567         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59568         porting problem reported by Georg Schwarz in
59569         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59570
59571 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59572
59573         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
59574         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59575         porting problem reported by Georg Schwarz in
59576         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59577
59578 2005-12-05  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
59581         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
59582         Reported by Mark Junker <mjscod@gmx.de>.
59583
59584 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
59587         Use implementation from Albert Chin, with some
59588         comments/corrections by Stepan Kasal and myself.
59589
59590 2005-12-02  Bruno Haible  <bruno@clisp.org>
59591
59592         * gnulib-tool (func_import): Accept GPLed build tool modules when
59593         --lgpl is given.
59594         * modules/csharpcomp-script: New file.
59595         * modules/csharpcomp: Depend on it.
59596         * modules/javacomp-script: New file.
59597         * modules/javacomp: Depend on it.
59598         Suggested by Simon Josefsson.
59599
59600 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
59603         statement, to work around an HP-UX 10.20 compiler bug reported by
59604         Peter O'Gorman.
59605
59606 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59607
59608         * modules/savedir (Depends-on): Add openat.
59609
59610 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
59613         (uintmax_t) [defined uintmax_t]: Do not declare.
59614         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
59615         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
59616         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
59617         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
59618         sake of portability to weird hosts that C allows (though we don't
59619         know of any practical examples).
59620
59621         * lib/savedir.h (fdsavedir): New decl.
59622         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
59623         contains most of the former guts of savedir.
59624         (savedir): Use savedirstream.
59625         Include "openat.h".
59626
59627 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * modules/obstack (Files): Add m4/ulonglong.m4.
59630         Problem reported by Davide Angelocola.
59631
59632 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
59635         coreutils no longer futzes with rounding modes.
59636
59637 2005-11-14  Jim Meyering  <jim@meyering.net>
59638
59639         * lib/mkstemp-safer.c: Include <config.h>, required for possible
59640         replacement of mkstemp.
59641
59642 2005-11-10  Simon Josefsson  <jas@extundo.com>
59643
59644         * lib/readline.c: Remove EOL.
59645
59646 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * modules/gethrxtime (Depends-on): Add gettime.
59649
59650 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59651
59652         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
59653         or gettimeofday; no longer needed.
59654
59655 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
59658         time business.
59659         (gethrxtime) [! (HAVE_NANOUPTIME
59660         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
59661         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
59662         our own approximation.
59663
59664 2005-11-08  Eric Blake  <ebb9@byu.net>
59665
59666         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59667
59668 2005-11-08  Eric Blake  <ebb9@byu.net>
59669
59670         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59671
59672 2005-11-04  Bruno Haible  <bruno@clisp.org>
59673
59674         * gnulib-tool: Implement --update mode.
59675
59676 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59677
59678         Fix porting problem reported by Theodoros V. Kalamatianos.
59679         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
59680         Don't assume that futimes failing means we must fail.
59681
59682 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59683
59684         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
59685         variables to suggest the intended function of the PATH_MAX check.
59686
59687 2005-10-30  Kean Johnston  <jkj@sco.com>
59688
59689         Trivial changes to support SCO systems.
59690         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
59691         as PATH_MAX.
59692         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
59693         where __ptr is null when no I/O is pending.
59694
59695 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59696
59697         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
59698         leave errno alone.  Problem reported by Dmitry V. Levin.
59699
59700 2005-10-28  Simon Josefsson  <jas@extundo.com>
59701
59702         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
59703         Test more.
59704
59705         * tests/test-gc-md2.c, tests/test-md2.c: New files.
59706
59707         * modules/md2, modules/md2-tests: New files.
59708
59709 2005-10-28  Simon Josefsson  <jas@extundo.com>
59710
59711         * m4/inet_ntop.m4: More tests.
59712
59713         * m4/gc-md2.m4, md2.m4: New file.
59714
59715 2005-10-28  Simon Josefsson  <jas@extundo.com>
59716
59717         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59718         "restrict" keywords, as per POSIX.  Protect the function
59719         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59720         Don't use K&R prototypes.  Check the sprintf return values.
59721         Re-define EAFNOSUPPORT if not present.  Indent.
59722
59723         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59724         suggested by Bruno Haible <bruno@clisp.org>.
59725
59726         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59727
59728         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59729
59730         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59731         libgcrypt).
59732
59733         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59734
59735         * lib/md2.h, lib/md2.c: New files.
59736
59737 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59740         errno alone.  Problem reported by Frederic Jolliton.
59741
59742 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * modules/verify (License): Change from GPL to LGPL.  This is a
59745         tiny module and there are apparently near-equivalents that are
59746         under the BSD license.
59747
59748 2005-10-24  Simon Josefsson  <jas@extundo.com>
59749
59750         * modules/sha1: Relicense to LGPL.
59751
59752 2005-10-24  Simon Josefsson  <jas@extundo.com>
59753
59754         * lib/md4.h: Shrink buffer size, now that we changed the type.
59755
59756 2005-10-23  Simon Josefsson  <jas@extundo.com>
59757
59758         * gnulib-tool (func_import): Fix --tests-base.
59759
59760 2005-10-22  Simon Josefsson  <jas@extundo.com>
59761
59762         * modules/arcfour (Depends-on): Need stdint.
59763
59764 2005-10-22  Simon Josefsson  <jas@extundo.com>
59765
59766         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59767         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59768
59769 2005-10-22  Simon Josefsson  <jas@extundo.com>
59770
59771         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59772         suggested by Bruno Haible <bruno@clisp.org>.
59773
59774 2005-10-22  Simon Josefsson  <jas@extundo.com>
59775
59776         * lib/crc.h: Include stddef.h, for size_t.
59777
59778 2005-10-22  Simon Josefsson  <jas@extundo.com>
59779
59780         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59781         arcfour_context struct (simplify test vector testing in GNU
59782         Shishi).
59783
59784 2005-10-21  Simon Josefsson  <jas@extundo.com>
59785
59786         * modules/des, modules/des-tests: New files.
59787
59788         * modules/gc-des, modules/gc-des-tests: New files.
59789
59790         * tests/test-des.c, tests/test-gc-des.c: New file.
59791
59792 2005-10-21  Simon Josefsson  <jas@extundo.com>
59793
59794         * modules/arctwo, modules/arctwo-tests: New files.
59795
59796         * tests/test-arctwo.c: New file.
59797
59798         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59799
59800         * tests/test-gc-arctwo.c: New file.
59801
59802 2005-10-21  Simon Josefsson  <jas@extundo.com>
59803
59804         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59805         Bruno Haible <bruno@clisp.org>.
59806
59807         * m4/gc-des.m4: New file.
59808
59809 2005-10-21  Simon Josefsson  <jas@extundo.com>
59810
59811         * m4/arctwo.m4: New file.
59812
59813         * m4/gc-arctwo.m4: New file.
59814
59815 2005-10-21  Simon Josefsson  <jas@extundo.com>
59816
59817         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59818         block.
59819
59820 2005-10-21  Simon Josefsson  <jas@extundo.com>
59821
59822         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59823         <bruno@clisp.org>.
59824
59825         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59826
59827         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59828         Bruno Haible <bruno@clisp.org>.
59829
59830         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59831         <bruno@clisp.org>.
59832
59833 2005-10-21  Simon Josefsson  <jas@extundo.com>
59834
59835         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59836
59837 2005-10-21  Simon Josefsson  <jas@extundo.com>
59838
59839         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59840
59841 2005-10-21  Simon Josefsson  <jas@extundo.com>
59842
59843         * lib/des.h, lib/des.c: New files.
59844
59845         * lib/gc-gnulib.c: Support DES.c
59846
59847 2005-10-21  Simon Josefsson  <jas@extundo.com>
59848
59849         * lib/arctwo.h, lib/arctwo.c: New files.
59850
59851         * lib/gc-gnulib.c: Support ARCTWO.
59852
59853 2005-10-21  Simon Josefsson  <jas@extundo.com>
59854
59855         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59856         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59857
59858 2005-10-21  Simon Josefsson  <jas@extundo.com>
59859
59860         * gnulib-tool (func_import, func_create_testdir): Define automake
59861         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59862         Makefile.am snippet),
59863         suggested by Bruno Haible <bruno@clisp.org>.
59864
59865         * modules/gc (Makefile.am): Use it.
59866
59867 2005-10-21  Bruno Haible  <bruno@clisp.org>
59868
59869         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59870         patch.
59871
59872 2005-10-19  Simon Josefsson  <jas@extundo.com>
59873
59874         * tests/test-gc-rijndael.c: New file.
59875
59876         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59877
59878 2005-10-19  Simon Josefsson  <jas@extundo.com>
59879
59880         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59881         interface too.
59882
59883 2005-10-19  Simon Josefsson  <jas@extundo.com>
59884
59885         * tests/test-gc-arcfour.c: New file.
59886
59887         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59888
59889 2005-10-19  Simon Josefsson  <jas@extundo.com>
59890
59891         * modules/gc-md4, modules/gc-md4-tests: New file.
59892
59893         * tests/test-gc-md4.c: New file.
59894
59895 2005-10-19  Simon Josefsson  <jas@extundo.com>
59896
59897         * m4/gc-md4.m4: New file.
59898
59899 2005-10-19  Simon Josefsson  <jas@extundo.com>
59900
59901         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59902         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59903         <kasal@ucw.cz>.
59904
59905 2005-10-19  Simon Josefsson  <jas@extundo.com>
59906
59907         * m4/gc-arcfour.m4: New file.
59908
59909         * m4/gc-rijndael.m4: New file.
59910
59911 2005-10-19  Simon Josefsson  <jas@extundo.com>
59912
59913         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59914
59915 2005-10-19  Simon Josefsson  <jas@extundo.com>
59916
59917         * lib/gc-gnulib.c: Support ARCFOUR.
59918
59919 2005-10-19  Simon Josefsson  <jas@extundo.com>
59920
59921         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59922         support.
59923
59924         * lib/gc.h: Add ECB enum type.
59925
59926         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59927
59928 2005-10-18  Simon Josefsson  <jas@extundo.com>
59929
59930         * tests/test-md5.c: New file.
59931
59932         * modules/md5-tests: New file.
59933
59934 2005-10-18  Simon Josefsson  <jas@extundo.com>
59935
59936         * tests/test-md4.c: New file.
59937
59938         * modules/md4, modules/md4-tests: New files.
59939
59940 2005-10-18  Simon Josefsson  <jas@extundo.com>
59941
59942         * m4/md4.m4: New file.
59943
59944 2005-10-18  Simon Josefsson  <jas@extundo.com>
59945
59946         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59947
59948 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59949
59950         * gnulib-tool (func_create_testdir): Omit the second check whether
59951         BUILT_SOURCES in nonempty.
59952
59953 2005-10-17  Simon Josefsson  <jas@extundo.com>
59954
59955         * tests/test-rijndael.c: New file.
59956
59957 2005-10-17  Simon Josefsson  <jas@extundo.com>
59958
59959         * modules/sha1: Depend on stdint instead of md5.
59960
59961         * modules/md5: Depend on stdint, remove uint32_t.
59962
59963 2005-10-17  Simon Josefsson  <jas@extundo.com>
59964
59965         * modules/gc-sha1-tests: New file.
59966
59967         * tests/test-gc-sha1.c: New file.
59968
59969 2005-10-17  Simon Josefsson  <jas@extundo.com>
59970
59971         * m4/md5.m4: Remove call to uint32_t.m4.
59972
59973 2005-10-17  Simon Josefsson  <jas@extundo.com>
59974
59975         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
59976
59977         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
59978         md5.h.
59979
59980         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
59981
59982         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
59983
59984 2005-10-17  Simon Josefsson  <jas@extundo.com>
59985
59986         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
59987
59988 2005-10-17  Simon Josefsson  <jas@extundo.com>
59989
59990         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
59991
59992 2005-10-17  Simon Josefsson  <jas@extundo.com>
59993
59994         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
59995
59996         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
59997
59998 2005-10-17  Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
60001         that it can also be used in a test.
60002
60003 2005-10-16  Bruno Haible  <bruno@clisp.org>
60004
60005         * gnulib-tool (func_emit_tests_Makefile_am): Also define
60006         TESTS_ENVIRONMENT, so that individual tests can augment it.
60007
60008         * gnulib-tool (func_create_testdir): Use an intermediate target for
60009         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
60010         macros, like $(ALLOCA_H), which cannot be passed through the command
60011         line.
60012
60013 2005-10-15  Simon Josefsson  <jas@extundo.com>
60014
60015         * modules/rijndael-tests: New file.
60016
60017         * modules/rijndael: New file.
60018
60019 2005-10-15  Simon Josefsson  <jas@extundo.com>
60020
60021         * m4/rijndael.m4: New file.
60022
60023 2005-10-15  Simon Josefsson  <jas@extundo.com>
60024
60025         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
60026
60027         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
60028
60029 2005-10-14  Simon Josefsson  <jas@extundo.com>
60030
60031         * tests/test-arcfour.c: New file.
60032
60033         * modules/arcfour, modules/arcfour-tests: New files.
60034
60035 2005-10-14  Simon Josefsson  <jas@extundo.com>
60036
60037         * m4/arcfour.m4: New file.
60038
60039 2005-10-14  Simon Josefsson  <jas@extundo.com>
60040
60041         * lib/arcfour.h, lib/arcfour.c: New files.
60042
60043 2005-10-14  Roland McGrath  <roland@redhat.com>
60044
60045         Import from libc.  [BZ #1331]
60046         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
60047         macro argument.
60048         Reported by Matej Vela <vela@debian.org>.
60049
60050 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
60053         include <wchar.h>; no longer needed.
60054
60055 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
60058
60059 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
60060         and  Ulrich Drepper  <drepper@redhat.com>
60061
60062         Import from libc.
60063         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
60064         instead of inline stream orientation test and two separate
60065         function calls.  Pay no attention to USE_IN_LIBIO.
60066
60067 2005-10-13  Simon Josefsson  <jas@extundo.com>
60068
60069         * modules/gc-hmac-md5-tests: New file.
60070
60071         * tests/test-gc-hmac-sha1.c: New file.
60072
60073         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
60074
60075         * modules/gc-hmac-md5-tests: New file.
60076
60077         * tests/test-gc-md5.c: New file.
60078
60079         * modules/gc-md5-tests: New file.
60080
60081 2005-10-13  Simon Josefsson  <jas@extundo.com>
60082
60083         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
60084         Move memory allocation outside of loop.
60085
60086 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60087
60088         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
60089         intermediate directory is in a read-only file system.  Problem
60090         reported by Eric Blake.
60091
60092 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
60093
60094         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
60095
60096 2005-10-12  Simon Josefsson  <jas@extundo.com>
60097
60098         * tests/test-hmac-sha1.c: New file.
60099
60100         * modules/hmac-sha1-tests: New file.
60101
60102         * modules/hmac-sha1: New file.
60103
60104 2005-10-12  Simon Josefsson  <jas@extundo.com>
60105
60106         * modules/gc-sha1: New file.
60107
60108 2005-10-12  Simon Josefsson  <jas@extundo.com>
60109
60110         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
60111
60112         * tests/test-gc-pbkdf2-sha1.c: New file.
60113
60114 2005-10-12  Simon Josefsson  <jas@extundo.com>
60115
60116         * modules/gc-md5, modules/gc-hmac-md5: New files.
60117
60118         * modules/gc (Files): Remove md5, memxor and hmac files.
60119
60120 2005-10-12  Simon Josefsson  <jas@extundo.com>
60121
60122         * m4/gc-pbkdf2-sha1.m4: New file.
60123
60124         * m4/gc-hmac-sha1.m4: New file.
60125
60126         * m4/gc-sha1: New file.
60127
60128         * m4/hmac-sha1.m4: New file.
60129
60130 2005-10-12  Simon Josefsson  <jas@extundo.com>
60131
60132         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
60133
60134         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
60135
60136 2005-10-12  Simon Josefsson  <jas@extundo.com>
60137
60138         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
60139         suggested by Bruno Haible <bruno@clisp.org>.
60140
60141 2005-10-12  Simon Josefsson  <jas@extundo.com>
60142
60143         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
60144
60145 2005-10-12  Simon Josefsson  <jas@extundo.com>
60146
60147         * lib/gc-pbkdf2-sha1.c: New file.
60148
60149         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
60150
60151 2005-10-12  Simon Josefsson  <jas@extundo.com>
60152
60153         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
60154
60155         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
60156
60157 2005-10-12  Simon Josefsson  <jas@extundo.com>
60158
60159         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
60160         GC_USE_HMAC_MD5, respectively.
60161
60162         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
60163         (gc_md5): Fix typo.
60164
60165         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
60166
60167         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
60168
60169         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
60170
60171 2005-10-12  Bruno Haible  <bruno@clisp.org>
60172
60173         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
60174         Reported by Stepan Kasal <kasal@ucw.cz>.
60175
60176 2005-10-11  Simon Josefsson  <jas@extundo.com>
60177
60178         * tests/test-crc.c: New file.
60179
60180         * modules/crc, modules/crc-tests: New files.
60181
60182 2005-10-11  Simon Josefsson  <jas@extundo.com>
60183
60184         * m4/crc.m4: New file.
60185
60186 2005-10-11  Simon Josefsson  <jas@extundo.com>
60187
60188         * lib/gc.h: Add gc_hash and gc_hash_buffer.
60189
60190         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
60191
60192         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
60193
60194 2005-10-11  Simon Josefsson  <jas@extundo.com>
60195
60196         * lib/crc.h, lib/crc.c: New files.
60197
60198         * lib/gc.h (gc_hash_buffer): Add doc.
60199
60200 2005-10-11  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/c-strcasestr: New file.
60203         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
60204
60205 2005-10-11  Bruno Haible  <bruno@clisp.org>
60206
60207         * modules/c-strcase: New file.
60208         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
60209
60210 2005-10-11  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/strcasecmp.c: Include limits.h.
60213         (strcasecmp): Avoid integer overflow on exotic platforms.
60214         * lib/strncasecmp.c: Include limits.h.
60215         (strncasecmp): Avoid integer overflow on exotic platforms.
60216         Reported by Paul Eggert.
60217
60218 2005-10-11  Bruno Haible  <bruno@clisp.org>
60219
60220         * lib/c-strcasestr.h: New file, from GNU gettext.
60221         * lib/c-strcasestr.c: New file, from GNU gettext.
60222
60223 2005-10-11  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/c-strcase.h: New file, from GNU gettext.
60226         * lib/c-strcasecmp.c: New file, from GNU gettext.
60227         * lib/c-strncasecmp.c: New file, from GNU gettext.
60228
60229 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60230
60231         * modules/mempcpy (License): GPL -> LGPL.
60232         * modules/strchrnul (License): Likewise.
60233         * modules/sysexits (License): Likewise.
60234
60235 2005-10-08  Simon Josefsson  <jas@extundo.com>
60236
60237         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
60238
60239 2005-10-07  Simon Josefsson  <jas@extundo.com>
60240
60241         * m4/memxor.m4: Remove gl_C_RESTRICT call.
60242
60243 2005-10-06  Simon Josefsson  <jas@extundo.com>
60244
60245         * tests/test-hmac-md5.c: New file.
60246
60247         * modules/hmac-md5-tests: New file.
60248
60249         * modules/hmac-md5: New file.
60250
60251 2005-10-06  Simon Josefsson  <jas@extundo.com>
60252
60253         * m4/hmac-md5.m4: New file.
60254
60255         * m4/memxor.m4: Require gl_C_RESTRICT.
60256
60257 2005-10-06  Simon Josefsson  <jas@extundo.com>
60258
60259         * lib/memxor.c (memxor): Avoid casts and warnings.
60260
60261 2005-10-06  Simon Josefsson  <jas@extundo.com>
60262
60263         * lib/hmac-md5.c: New file.
60264
60265         * lib/hmac.h: New file.
60266
60267 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
60270         promotes to int, not unsigned int, to catch the AIX 5.3
60271         compiler bug.
60272
60273 2005-10-05  Simon Josefsson  <jas@extundo.com>
60274
60275         * modules/memxor: New file.
60276
60277         * modules/iconv (Files): Move config.rpath to havelib, it is used
60278         there.
60279
60280         * modules/havelib (Files): Add config.rpath.
60281
60282 2005-10-05  Simon Josefsson  <jas@extundo.com>
60283
60284         * m4/memxor.m4: New file.
60285
60286 2005-10-05  Simon Josefsson  <jas@extundo.com>
60287
60288         * lib/memxor.c (memxor): Fix compiler error.
60289
60290         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
60291         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
60292
60293         * lib/memxor.h, lib/memxor.c: New files.
60294
60295         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
60296         we assume all systems have it, suggested by Jim Meyering
60297         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
60298         any systems lack sys/socket.h; mingw32 is known to lack it, but we
60299         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
60300         same reasons.
60301
60302 2005-10-05  Simon Josefsson  <jas@extundo.com>
60303
60304         * config/srclist.txt: Add glibc bug 1423 for md5.h.
60305
60306 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
60309         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
60310         needed, since the source code now assumes these .h files.
60311
60312 2005-10-05  Derek Price  <derek@ximbiot.com>
60313
60314         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
60315
60316 2005-10-05  Bruno Haible  <bruno@clisp.org>
60317
60318         * modules/stdint (License): Change to LGPL.
60319
60320 2005-10-04  Simon Josefsson  <jas@extundo.com>
60321
60322         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
60323         D. Baushke" <mdb@gnu.org>.
60324
60325 2005-10-04  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/verify.h (verify_true): Provide alternative definition for C++.
60328
60329 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
60332         (SSIZE_MAX): New macro, if not already defined.
60333         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
60334         than 2 GiB.
60335
60336 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         Sync from coreutils.
60339         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
60340         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
60341         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
60342         ULLONG_MAX doesn't work with 2.7.2.1.
60343
60344 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60345
60346         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
60347         From Ben Pfaff.
60348
60349         * modules/exclude (Depends-on): Depend on verify.
60350         * modules/strtoimax (Depends-on): Likewise.
60351         * modules/utimecmp (Depends-on): Likewise.
60352
60353 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * lib/exclude.c: Include verify.h.
60356         (verify): Remove.  All callers changed to use verify.h's version.
60357         * lib/strtoimax.c: Likewise.
60358         * lib/utimecmp.c: Likewis.e
60359
60360         Sync from coreutils.
60361         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
60362         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
60363         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
60364         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
60365         bother returning ENOSYS if settimeofday or stime fails; just let
60366         them return whatever errno they want to return.
60367         * lib/utimens.c: Include unistd.h, for dup2.
60368         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
60369         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
60370
60371 2005-10-02  Jim Meyering  <jim@meyering.net>
60372
60373         Sync from coreutils.
60374         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
60375         from glibc-2.2.5 that fails for read-only files.
60376
60377 2005-10-02  Jim Meyering  <jim@meyering.net>
60378
60379         Sync from coreutils.
60380         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
60381         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
60382         `#if HAVE_CONFIG_H'.
60383         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
60384         Remove AT_FDCWD test.
60385         Do not consume the fd unless successful.
60386         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
60387         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
60388         block, so that we don't even try to compile it if settimeofday is
60389         available.  This works around a compilation failure on OSF1 V5.1,
60390         due to stime requiring a `long int*' while tv_sec is `int'.
60391
60392 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
60393
60394         Sync from coreutils.
60395         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
60396         against `yes', rather than just testing for nonempty.
60397
60398 2005-10-01  Simon Josefsson  <jas@extundo.com>
60399
60400         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
60401         and Darwin.
60402
60403         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
60404         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
60405         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
60406         freeaddrinfo and gai_strerror are declared by the POSIX headers.
60407         Check if struct addrinfo is declared.
60408
60409 2005-10-01  Simon Josefsson  <jas@extundo.com>
60410
60411         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
60412         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
60413         AI_* and EAI_* definitions.  Protect function declarations.
60414
60415 2005-10-01  Jim Meyering  <jim@meyering.net>
60416
60417         Sync from coreutils.
60418
60419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
60420         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
60421         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
60422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60423         in the inet and nsl libraries.  Required on Solaris 5.7.
60424
60425 2005-10-01  Jim Meyering  <jim@meyering.net>
60426
60427         Sync from coreutils.
60428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60429         in the inet and nsl libraries.  Required on Solaris 5.7.
60430
60431 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
60432
60433         * lib/getdelim.c (getdelim): Remove unused variables.
60434
60435 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
60438         so that the code works even with ancient cpp.  Portability problem
60439         with GCC 2.7.2.1 reported by Thomas M.Ott.
60440
60441 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60442
60443         * modules/regex (Depends-on): Add strcase.
60444
60445         * modules/gethostname (Licence): Change from GPL to LGPL, since
60446         gethostname.c is a trivial implementation of a standard library
60447         function.
60448         * modules/poll (License): Change from GPL to LGPL, since it's
60449         derived from LGPL code.
60450
60451 2005-09-27  Jim Meyering  <jim@meyering.net>
60452
60453         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
60454         HAVE_CONFIG_H.
60455
60456         * lib/intprops.h (signed_type_or_expr__): Define.
60457         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
60458         for unsigned types.
60459
60460 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * lib/verify.h (verify_expr): Remove, replacing with:
60463         (verify_true): New macro that returns true instead of void.
60464         (verify_type__): Remove.
60465         (verify): Use verify_true rather than verify_type__.
60466
60467 2005-09-26  Bruno Haible  <bruno@clisp.org>
60468
60469         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
60470         is necessary.
60471         (lib_SOURCES): Remove mbchar.c.
60472         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
60473         (Files): Add m4/mbrtowc.m4.
60474         * modules/mbiter: Likewise.
60475         * modules/mbuiter: Likewise.
60476
60477 2005-09-26  Bruno Haible  <bruno@clisp.org>
60478
60479         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
60480         compile mbchar.c if they are not both present.
60481         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
60482         * m4/mbiter.m4 (gl_MBITER): Likewise.
60483         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
60484         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
60485         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
60486
60487 2005-09-25  Jim Meyering  <jim@meyering.net>
60488
60489         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
60490         also uses socklen_t.
60491
60492 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
60493
60494         * lib/utimens.c (ENOSYS): Define if not already defined.
60495         (futimens): Support having a null PATH if the file descriptor
60496         is nonnegative.
60497
60498         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
60499         Remove.
60500         (__attribute): Define to empty unless GCC 3.1 or later.
60501         This works around a core dump on OpenBSD 3.4, which has GCC
60502         2.95.3, which dumps core when given __attribute__(()).  It also
60503         simplifies other tests, since we really don't want to bother with
60504         worrying about which ancient version of GCC supported what.
60505         Original problem reported by Yoann Vandoorselaere, with part of
60506         the fix suggested by Derek Price.
60507
60508 2005-09-24  Jim Meyering  <jim@meyering.net>
60509
60510         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
60511         so we can once again use a positive bitfield width of 1 -- now we
60512         don't have to explain why we were using a bitfield width of 2.
60513
60514 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
60517         and similarly for the other external symbols.  Problem reported
60518         by James Gallager.
60519
60520         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
60521         bug reported by Jim Meyering.
60522
60523         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
60524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
60525         not needed, since socklen is a prerequisite module.
60526
60527 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
60530         Problem reported by Eric Blake.
60531         (getaddrinfo): Initialize se so that it's not garbage.
60532         Redo internal storage allocation so that it doesn't make unportable
60533         assumptions about alignment.
60534         Fix a memory leak.
60535
60536         * lib/utimens.c (futimens): Use futimesat if available.
60537         Prefer it to futimes since it doesn't have the futimes bug.
60538
60539         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
60540         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
60541         Instead, declare a function that returns a pointer to an array,
60542         and use verify_type__ to declare the size of the array.
60543         Problem and germ of a solution reported by Bruno Haible.
60544         (verify_type__): Use 2, not 1, for bitfield size, to avoid
60545         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
60546
60547 2005-09-23  Jim Meyering  <jim@meyering.net>
60548
60549         Sync from coreutils.
60550         Correct build failure (socklen_t not defined) on at least
60551         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
60552         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
60553
60554 2005-09-23  Jim Meyering  <jim@meyering.net>
60555
60556         * modules/getaddrinfo (Depends-on): Add socklen.
60557
60558 2005-09-23  Bruno Haible  <bruno@clisp.org>
60559
60560         * tests/test-verify.c: New file.
60561
60562 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         Sync from coreutils.
60565
60566         * modules/argmatch (Depends-on): Add verify.
60567         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
60568         unistd-safer.
60569         * modules/save-cwd (Depends-on): Likewise.
60570
60571         * modules/openat (Files): Add lib/openat-die.c.
60572         (Depends-on): Remove error, exitfail.
60573         Add dirname.
60574
60575         * modules/verify: New file.
60576         * MODULES.html.sh (Diagnostics <assert.h>): New section,
60577         with "verify" module.
60578
60579 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         Sync from coreutils.
60582
60583         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
60584         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
60585         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
60586         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
60587         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
60588         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
60589         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
60590         Don't bother checking for string.h, stdlib.h, unistd.h.
60591         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
60592         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
60593         module's job.
60594         * m4/jm-macros.m4 (gl_MACROS): Likewise.
60595         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
60596
60597         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
60598         (gl_GETDATE): Use it.
60599
60600         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
60601
60602 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         Sync from coreutils.
60605
60606         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
60607         stat-time.h.
60608         * lib/argmatch.h: Include verify.h
60609         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
60610         (ARGMATCH_ASSERT): Remove; unused.
60611         * lib/canonicalize.c: Assume STDC_HEADERS.
60612         * lib/exclude.c: Include "strcase.h".
60613         * lib/regex_internal.h [!defined _LIBC]: Likewise.
60614         * lib/getusershell.c: Include stdio--.h rather than stdio.h
60615         and stdio-safer.h.
60616         (getusershell): Call fopen, not fopen_safer.
60617         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
60618         Do not include unistd-safer.h.
60619         (save_cwd): Don't call fd_safer; no longer needed
60620         now that we include fcntl--.h.
60621
60622         * lib/getdate.y (relative_time): New type.
60623         (RELATIVE_TIME_0): New constant.
60624         (parser_control): Use relative_time instead of doing it ourselves.
60625         (%union): Add new relative_time rel member.
60626         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
60627         Now typeless.
60628         (relunit, relunit_snumber): Now of type rel.
60629         (zone, rel, relunit, get_date): Adjust to above changes.
60630
60631         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
60632         Do not include unistd-safer.h.
60633         (getloadavg): Don't call fd_safer; no longer needed
60634         now that we include fcntl--.h.
60635
60636         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
60637         (make_dir_parents): Treat ENOSYS like EEXIST.
60638
60639         Improve quality of diagnostics on restore_cwd failure.
60640         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
60641         (make_dir_parents): Last arg is now int * (for errno), not bool *.
60642         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
60643         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
60644         each time through the loop.  Do not diagnose restore_cwd failure;
60645         that is the caller's job (and perhaps the caller does not care).
60646
60647         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
60648         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
60649         If the file already exists but is not a directory, don't bother
60650         to try to make its parents.
60651         Close potential file descriptor leak if we can't chdir("/") (!).
60652         Don't always return true if chdir($PWD) fails; return true only
60653         if the requested action was done successfully (except for the
60654         chdir($PWD)).
60655         Don't log final directory unless we actually made it.
60656         Refactor to avoid duplicate code to fix up permissions.
60657         Don't attempt to fix up parent permissions if chdir($PWD) fails.
60658
60659         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
60660         to make it a bit faster and (I hope) clearer.
60661         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
60662         Fix bug in formats like %2N.
60663
60664         * lib/verify.h: New file.
60665
60666 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         Sync from coreutils.
60669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
60670
60671 2005-09-22  Jim Meyering  <jim@meyering.net>
60672
60673         Sync from coreutils.
60674
60675         * m4/lstat.m4 (gl_FUNC_LSTAT):
60676         Use AC_LIBSOURCES to require lstat.c and lstat.h.
60677         Remove obsolete comment.
60678         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
60679         * m4/xstrtod.m4: Likewise.
60680
60681         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
60682
60683 2005-09-22  Jim Meyering  <jim@meyering.net>
60684
60685         Sync from coreutils.
60686
60687         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
60688
60689         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
60690         the .tm_year member, since otherwise gcc-4.0 would now warn about
60691         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
60692
60693         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
60694         order to avoid an unsuppressible warning from gcc on 64-bit systems.
60695
60696         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
60697         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
60698         when run in a time zone for which daylight savings time is in effect
60699         for the starting date.
60700
60701         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
60702         stop us from restricting permissions of just-created absolute-named
60703         directories.
60704         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
60705         to restore initial working directory.
60706         * lib/mkdir-p.c (make_dir_parents): New parameter:
60707         different_working_dir, to tell caller if/when we change the working
60708         directory and are unable to return to the initial one.
60709         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60710         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60711         `return false'.  This fixes a bug introduced on 2004-07-30.
60712
60713         * lib/openat.c (fdopendir): Be sure to close the supplied
60714         file descriptor before returning.  This makes our replacement
60715         implementation a little closer to Solaris's, where fdopendir
60716         ties the file descriptor to the returned DIR* pointer.
60717         * lib/openat.c (unlinkat): New function.
60718         * lib/openat.h (unlinkat): Add prototype.
60719         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60720         (openat_restore_fail): Rename from openat_restore_die.
60721         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60722
60723         Provide an alternative to exiting immediately upon save_cwd or
60724         restore_cwd failure.  Now, an application can arrange e.g.,
60725         to perform a longjump in that case.
60726         * lib/openat.c: Include dirname.h.
60727         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60728         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60729         and openat_restore_die rather than calling error directly.
60730         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60731
60732         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60733         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60734         define.
60735
60736         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60737         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60738                             int utc, int nanoseconds);
60739         Background:
60740         date should not have to allocate a megabyte of virtual memory to
60741         handle a format argument like +%1048575T.  When implemented with
60742         strftime, it must allocate such a buffer, use strftime to fill it
60743         in, print it, then free it.
60744         With fprintftime, it simply prints everything and exits.
60745         With no need for memory allocation, that's one fewer way to fail.
60746         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60747         optional field width, not before, so we accept %9:z, not %:9z.
60748         (my_strftime): Be sure to use L_('x') for literals.
60749
60750         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60751         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60752         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60753         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60754         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60755         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60756         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60757         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60758         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60759         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60760         * lib/xgethostname.c, lib/xreadlink.c:
60761         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60762
60763         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60764         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60765         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60766         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60767         and don't include <sys/file.h>).
60768
60769 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60770
60771         Sync from coreutils.
60772
60773         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60774         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60775         [!LDAV_DONE]: Avoid unused variable warning.
60776
60777 2005-09-21  Bruno Haible  <bruno@clisp.org>
60778
60779         * lib/unicodeio.h (unicode_to_mb): New declaration.
60780
60781 2005-09-20  Derek Price  <derek@ximbiot.com>
60782
60783         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60784         getaddrinfo.h.
60785
60786 2005-09-20  Bruno Haible  <bruno@clisp.org>
60787
60788         * gnulib-tool: Remove trailing slashes from the values specified for
60789         --source-base, --m4-base, --tests-base, --aux-dir.
60790         Suggested by Simon Josefsson <jas@extundo.com>.
60791
60792 2005-09-20  Bruno Haible  <bruno@clisp.org>
60793
60794         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60795         func_modules_to_filelist, func_import, func_create_testdir): Make all
60796         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60797         change when gnulib-tool is invoked in a different locale.
60798
60799 2005-09-19  Simon Josefsson  <jas@extundo.com>
60800
60801         * m4/socklen.m4: Fix typo.
60802
60803 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60804
60805         Use a consistent style for including <config.h>.
60806         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60807         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60808         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60809         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60810         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60811         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60812         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60813         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60814         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60815         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60816         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60817         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60818         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60819         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60820         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60821         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60822         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60823         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60824         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60825         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60826         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60827         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60828         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60829         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60830         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60831         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60832         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60833         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60834         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60835         lib/xstrtoumax.c, lib/yesno.c:
60836         Standardize inclusion of config.h.
60837         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60838         lib/inttostr.h:  Removed inclusion of config.h from header files.
60839         * lib/inttostr.c:  Adjusted in-tree users.
60840         * lib/timespec.h: Remove superfluous warning to include config.h.
60841         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60842         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60843         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60844         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60845         config.h with HAVE_CONFIG_H.
60846
60847 2005-09-19  Jim Meyering  <jim@meyering.net>
60848
60849         * modules/pathmax (License): Change to LGPL.
60850
60851 2005-09-19  Derek Price  <derek@ximbiot.com>
60852
60853         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60854
60855 2005-09-19  Bruno Haible  <bruno@clisp.org>
60856
60857         * gnulib-tool (import): Provide default for --tests-base.
60858
60859 2005-09-19  Bruno Haible  <bruno@clisp.org>
60860
60861         * doc/quote.texi: New file, extracted from gnulib.texi.
60862         * doc/ctime.texi: New file, extracted from gnulib.texi.
60863         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60864         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60865         * doc/gnulib.texi: Include them.
60866
60867 2005-09-18  Bruno Haible  <bruno@clisp.org>
60868
60869         Portability fix.
60870         * gnulib-tool (func_readlink): New function.
60871         (func_ln_if_changed): Use it.
60872
60873 2005-09-18  Bruno Haible  <bruno@clisp.org>
60874
60875         * gnulib-tool: Support --with-tests also with --import.
60876         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60877         (func_import): Use variables $testsbase and $inctests. Emit a
60878         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60879         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60880         SUBDIRS += $testsdir.
60881         (func_create_testdir): Update.
60882
60883 2005-09-18  Bruno Haible  <bruno@clisp.org>
60884
60885         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60886         instead of $dry_run.
60887         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60888         (func_ln_if_changed): Don't handle dry-run here.
60889         (func_import): In dry-run mode, detect more precisely which actions
60890         would be performed, and don't use "...ing" verbs.
60891
60892 2005-09-18  Bruno Haible  <bruno@clisp.org>
60893
60894         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60895         (func_import): Use join on two temporary files instead of three nested
60896         loops, in order to determine which files are new or old.
60897
60898 2005-09-18  Bruno Haible  <bruno@clisp.org>
60899
60900         * gnulib-tool (func_import): Comment out code that spits out the
60901         new files with --dry-run.
60902
60903 2005-09-18  Bruno Haible  <bruno@clisp.org>
60904
60905         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60906
60907 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * lib/stat-time.h: New file.
60910         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60911         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60912         in a different way.
60913         (timespec_cmp): New function.
60914         * lib/utimecmp.c: Include stat-time.h.
60915         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60916         members exist, not on the obsolescent ST_MTIM_NSEC.
60917         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60918
60919 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60920
60921         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60922
60923 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * MODULES.html.sh (File system functions): Add stat-time.
60926         * modules/stat-time: New file.
60927         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60928         is now done in a different way, by the stat-time module.
60929         * modules/utimecmp (Depends-on): Add stat-time.
60930
60931 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * m4/st_mtim.m4: Remove.  Superseded by...
60934         * m4/stat-time.m4: New file.
60935         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60936         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60937
60938 2005-09-15  Derek Price  <derek@ximbiot.com>
60939
60940         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60941
60942 2005-09-15  Derek Price  <derek@ximbiot.com>
60943
60944         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60945         * lib/regex_internal.c: Ditto, using this...
60946         (__GNUC_PREREQ): ...new macro.
60947         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60948         using...
60949         (__GNUC_PREREQ): ...this new macro.
60950
60951         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60952
60953 2005-09-15  Derek Price  <derek@ximbiot.com>
60954             Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60957         changes, consolidating in...
60958         * lib/regex_internal.h: ...this file.
60959
60960 2005-09-13  Jim Meyering  <jim@meyering.net>
60961
60962         * lib/canon-host.c: Filter through gnu indent and reword comments
60963         slightly.
60964         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60965
60966 2005-09-13  Derek Price  <derek@ximbiot.com>
60967
60968         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
60969         failure.
60970         Reported by Jim Meyering  <jim@meyering.net>.
60971
60972 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60973
60974         * lib/base64.c: Typo.
60975         (base64_encode): Put b64str in initialized data section.
60976
60977 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         Merge glibc and coreutils changes into gnulib, plus a few
60980         extra fixes.
60981         * lib/md5.c: Use #error rather than a string.
60982         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
60983         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
60984         (__attribute__): Define to empty for non recent-GCC.
60985         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
60986         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
60987         Renamed from their non-__ counterparts, with new macros replacing
60988         them if not _LIBC.  Add __THROW attribute.
60989         (rol): Remove.
60990         (struct md5_ctx): Align buffer if using GCC.
60991         * lib/sha1.h (struct sha1_ctx): Likewise.
60992         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
60993         The old name was backwards.
60994         (NOTSWAP): Remove; not used.
60995         (rol): New macro, moved here from md5.h.
60996         (sha1_process_block): Remove a FIXME that doesn't make sense.
60997
60998 2005-09-12  Derek Price  <derek@ximbiot.com>
60999
61000         Return usable errors from canon-host.
61001         * lib/canon-host.h: New file.
61002         * lib/canon-host.c (canon_host): Wrap...
61003         (canon_host_r): ...this new function, which now relies exclusively on
61004         getaddrinfo.
61005         (ch_strerror): New function.
61006         (last_cherror): New global.
61007         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
61008         interface.
61009         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
61010         void *.
61011         (freeaddrinfo): Free ai->ai_canonname when set.
61012
61013 2005-09-12  Derek Price  <derek@ximbiot.com>
61014
61015         Make canon-host require getaddrinfo.
61016         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
61017         AC_LIBSOURCE canon-host.h.  Call...
61018         (gl_PREREQ_CANON_HOST): ...this new function, which requires
61019         gl_GETADDRINFO.
61020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
61021
61022 2005-09-12  Derek Price  <derek@ximbiot.com>
61023
61024         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
61025         LGPL.
61026         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
61027
61028 2005-09-12  Derek Price  <derek@ximbiot.com>
61029
61030         * lib/gai_strerror.c: Include config.h when available.  Include
61031         getaddrinfo.h before other headers to test interface.
61032         Reported by Larry Jones <lawrence.jones@ugs.com>.
61033
61034 2005-09-12  Derek Price  <derek@ximbiot.com>
61035             Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * modules/glob (Files): Add glob-libc.h.
61038
61039 2005-09-12  Derek Price  <derek@ximbiot.com>
61040             Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
61043         glob_.h, glob-libc.h.
61044         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
61045
61046 2005-09-12  Derek Price  <derek@ximbiot.com>
61047             Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
61050         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
61051         protecting things that should be done only in gnulib contexts.
61052         * lib/glob_.h: New file, containing only the glob things needed for
61053         gnulib.
61054         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
61055         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
61056         (glob, globfree, glob_pattern_p): Now defined simply in terms of
61057         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
61058         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
61059         and to respect the namespace rules better.
61060
61061 2005-09-08  Simon Josefsson  <jas@extundo.com>
61062
61063         * modules/socklen: New file.
61064
61065 2005-09-08  Simon Josefsson  <jas@extundo.com>
61066
61067         * m4/socklen.m4: New file.
61068
61069 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * modules/utimens (Files): Add m4/utimbuf.m4, since
61072         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
61073         Reported by Sergey Poznyakoff.
61074
61075 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61076
61077         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
61078         definitions, since that's the preferred style in glibc.
61079         Fix a minor spacing issue, and update copyright notice to match
61080         glibc's.
61081
61082 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61083
61084         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
61085
61086 2005-09-06  Simon Josefsson  <jas@extundo.com>
61087
61088         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
61089         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
61090
61091 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
61094         warning.
61095
61096 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * config/srclist.txt: Add glibc bug 1302.
61099
61100 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
61101
61102         Change bitset word type from unsigned int to unsigned long int,
61103         as this has better performance on typical 64-bit hosts.
61104         Port bitset code to hosts with unusual word sizes.
61105         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
61106         (build_collating_symbol):
61107         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
61108         argument is a bitset.  This is merely a style issue, but it makes
61109         it clearer that an entire array is expected.
61110         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
61111         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
61112         Port to the case where bitset_word is not the same as unsigned int.
61113         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61114         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
61115         Likewise.
61116         * lib/regexec.c (check_dst_limits_calc_pos_1,
61117         check_subexp_matching_top):
61118         (build_trtable, group_nodes_into_DFAstates):
61119         Likewise.
61120         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
61121         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
61122         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
61123         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
61124         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
61125         * lib/regcomp.c (optimize_subexps, lower_subexp):
61126         Work even if bitset_word has holes in its bitwise representation.
61127         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
61128         * lib/regexec.c (check_dst_limits_calc_pos_1,
61129         check_subexp_matching_top):
61130         Likewise.
61131         * lib/regex_internal.c (re_string_reconstruct):
61132         Don't assume UCHAR_MAX == 255.
61133         * lib/regex_internal.h (bitset_set_all): Likewise.
61134         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
61135         All uses changed.
61136         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
61137         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
61138         All uses changed.
61139         (BITSET_WORD_MAX): New macro.
61140         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
61141         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
61142         (bitset_empty, bitset_copy):
61143         Prefer sizeof (bitset) to multiplying it out ourselves.
61144         (bitset_not_merge): Remove; unused.
61145         (bitset_contain): Return bool, not unsigned int with one bit on.
61146         All callers changed.
61147         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
61148         alignment than re_node_set; do this by defining a new internal
61149         type struct dests_alloc and using it to allocate memory.
61150
61151 2005-09-05  Bruno Haible  <bruno@clisp.org>
61152
61153         * gnulib-tool (func_import): Fix comparison in handling of symbolic
61154         links.
61155
61156 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
61157
61158         * modules/size_max (Makefile.am): Add size_max.h
61159
61160 2005-09-04  Derek Price  <derek@ximbiot.com>
61161
61162         * gnulib-tool (func_import): Fix reversed $symbolic logic.
61163
61164 2005-09-03  Simon Josefsson  <jas@extundo.com>
61165
61166         * gnulib-tool: Fix typo.
61167
61168 2005-09-03  Simon Josefsson  <jas@extundo.com>
61169
61170         * config/srclist.txt: Add glibc bug 1293.
61171
61172 2005-09-03  Derek Price  <derek@ximbiot.com>
61173
61174         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
61175         From Larry Jones <lawrence.jones@ugs.com>.
61176
61177 2005-09-02  Simon Josefsson  <jas@extundo.com>
61178
61179         * modules/socklen: New file.
61180
61181 2005-09-02  Simon Josefsson  <jas@extundo.com>
61182
61183         * modules/havelib: New module.
61184
61185         * modules/gettext, modules/iconv, modules/lock, modules/readline:
61186         Use havelib.
61187
61188 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         Check for arithmetic overflow when calculating sizes, to prevent
61191         some buffer-overflow issues.  These patches are conservative, in the
61192         sense that when I couldn't determine whether an overflow was possible,
61193         I inserted a run-time check.
61194         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
61195         macros.
61196         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
61197         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
61198         (re_xnrealloc, re_x2nrealloc): New inline functions.
61199         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
61200         parse_bracket_exp):
61201         (build_equiv_class, build_charclass): Check for arithmetic overflow
61202         in size expression calculations.
61203         * lib/regex_internal.c (re_string_realloc_buffers):
61204         (build_wcs_upper_buffer, re_node_set_add_intersect):
61205         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
61206         (re_dfa_add_node, register_state): Likewise.
61207         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
61208         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
61209         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
61210         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
61211
61212 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61215         m4/ulonglong.m4.  Problem reported by Martin Lambers.
61216
61217 2005-09-02  Bruno Haible  <bruno@clisp.org>
61218
61219         Support for lib vs. lib64 distinction on biarch platforms.
61220         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
61221         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
61222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
61223
61224 2005-09-02  Bruno Haible  <bruno@clisp.org>
61225
61226         * gnulib-tool (import): In the other first-use case, provide defaults
61227         as well.
61228
61229 2005-09-02  Bruno Haible  <bruno@clisp.org>
61230
61231         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
61232         patches not yet found in the latest gettext release.
61233
61234 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
61237         to avoid a collision with bits/local_lim.h in glibc.
61238         All uses changed.  Problem reported by Dmitry V. Levin in
61239         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
61240
61241         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
61242         bugs in int versus size_t comparisons.
61243         (re_string_context_at): Fix bug where the code assumed that
61244         Idx is signed.
61245
61246         Use bool where appropriate.
61247         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
61248         All callers changed.
61249         (calc_eclosure_iter): Likewise, for ROOT arg.
61250         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
61251         (build_charclass_op): Likewise, for NON_MATCH arg.
61252         * lib/regex_internal.c (re_string_allocate, re_string_construct):
61253         (re_string_construct_common): Likewise, for ICASE arg.
61254         * lib/regexec.c (re_search_2_stub, re_search_stub):
61255         Likewise, for RET_LEN arg.
61256         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
61257         (set_regs): Likewise, for FL_BACKTRACK arg.
61258         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
61259         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
61260         (calc_eclosure_iter, parse_bracket_exp):
61261         Use bool for internal variables that are booleans.
61262         * lib/regexec.c (re_search_internal, check_matching,
61263         proceed_next_node):
61264         (set_regs, build_sifted_states, sift_states_bkref):
61265         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
61266         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61267         (find_collation_sequence_value):
61268         Likewise.
61269         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
61270         (re_node_set_compare):
61271         Return bool, not int. All callers changed.
61272         * lib/regexec.c (check_halt_node_context, check_dst_limits):
61273         (build_trtable, check_node_accept): Likewise.
61274         * lib/regex_internal.h: Include stdbool.h.
61275
61276         Fix bugs uncovered when converting to bool.
61277         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
61278         failure instead of charging ahead blindly.
61279         * lib/regex_internal.c (register_state): Likewise.
61280         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
61281         for freeing internal storage.
61282         (group_nodes_into_DFA_states): Use unsigned int, not int, for
61283         bitset pieces used as boolean, to avoid undefined behavior
61284         on hosts that do int overflow checking.
61285
61286 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         * config/srclist.txt: Add glibc bugs 1285-1287.
61289
61290 2005-09-01  Jim Meyering  <jim@meyering.net>
61291
61292         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
61293         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
61294         Require gl_STAT_MACROS, too.
61295
61296 2005-09-01  Bruno Haible  <bruno@clisp.org>
61297
61298         * gnulib-tool (import): In the first-use case, provide defaults.
61299
61300 2005-09-01  Bruno Haible  <bruno@clisp.org>
61301
61302         * gnulib-tool (func_import): Remove the .tmp files.
61303
61304 2005-09-01  Bruno Haible  <bruno@clisp.org>
61305
61306         * gnulib-tool (func_import): Fix handling of symbolic links.
61307
61308 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
61311         old glibc regex code mishandles strings longer than 2**31 bytes.
61312         This patch fixes this when the regex code is used in gnulib
61313         (i.e., outside glibc).
61314
61315         This patch should not affect the use of the regex code inside
61316         glibc.  No doubt this problem also needs to be handled for glibc
61317         as well, but the result will be an incompatible change to the
61318         glibc ABI, and the old ABI will have to be supported too.  That
61319         can be the the subject for another patch.
61320
61321         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
61322         governing whether the rest of this patch is active.  By default,
61323         the macro is disabled and the patch has no effect.
61324         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
61325         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
61326         (struct re_pattern_buffer, re_search, re_search_2, re_match):
61327         (re_match_2, re_set_registers): Use the new types.
61328         * lib/regex_internal.h (Idx, re_hashval_t): New types.
61329         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
61330         New macros.
61331         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
61332         (re_string_context_at, bin_tree_t, re_dfastate_t):
61333         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
61334         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
61335         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
61336         (re_string_char_size_at, re_string_wchar_at):
61337         (re_string_elem_size_at):
61338         Use the new types and macros to port to 64-bit hosts.
61339         Use unsigned types for internal values, so that the code
61340         mostly works even for arrays larger than SSIZE_MAX.
61341         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
61342         (search_duplicated_node, calc_eclosure_iter, fetch_number):
61343         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
61344         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
61345         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
61346         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
61347         (calc_inveclosure, parse_dup_op, build_range_exp):
61348         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
61349         (fetch_number, create_token_tree, mark_opt_subexp):
61350         Likewise.
61351         * lib/regex_internal.c (re_string_construct_common,
61352         create_ci_newstate):
61353         (create_cd_newstate, re_string_allocate, re_string_construct):
61354         (re_string_realloc_buffers, build_wcs_upper_buffer):
61355         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61356         (re_string_reconstruct, re_string_peek_byte_case):
61357         (re_string_fetch_byte_case, re_string_context_at):
61358         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61359         (re_node_set_init_copy, re_node_set_add_intersect):
61360         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61361         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61362         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61363         (re_acquire_state, re_acquire_state_context, register_state):
61364         Likewise.
61365         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
61366         search_cur_bkref_entry):
61367         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
61368         (re_search_internal, re_search_2_stub, re_search_stub)
61369         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
61370         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
61371         (update_cur_sifted_state, check_dst_limits):
61372         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61373         (check_subexp_limits, sift_states_bkref, merge_state_array):
61374         (check_subexp_matching_top, get_subexp, get_subexp_sub):
61375         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
61376         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61377         (expand_bkref_cache, check_node_accept_bytes):
61378         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
61379         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
61380         (acquire_init_state_context, check_halt_node_context):
61381         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
61382         (sift_states_backward, clean_state_log_if_needed):
61383         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
61384         (find_recover_state, transit_state_sb, transit_state_mb):
61385         (transit_state_bkref, build_trtable, match_ctx_clean):
61386         Likewise.
61387         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
61388         to work around an assumption that REG_MISSING is negative.
61389
61390         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
61391         (seek_collating_symbol_entry) [defined _LIBC]:
61392         (lookup_collation_sequence_value) [defined _LIBC]:
61393         (build_range_exp, build_collating_symbol) [defined _LIBC]:
61394         Use prototypes rather than old-style function definitions.
61395         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
61396         (transit_state_sb) [0]:
61397         (find_collation_sequence_value) [defined _LIBC]: Likewise.
61398
61399         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
61400         rm_eo.
61401
61402         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
61403         (optimize_subexps, lower_subexp):
61404         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
61405         since the signed shift might overflow.  Use 1u<<31 instead.
61406         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61407         Likewise.
61408         * lib/regexec.c (check_dst_limits_calc_pos_1,
61409         check_subexp_matching_top): Likewise.
61410
61411         * lib/regcomp.c (optimize_subexps, lower_subexp):
61412         Use CHAR_BIT rather than 8, for clarity.
61413         * lib/regexec.c (check_dst_limits_calc_pos_1):
61414         (check_subexp_matching_top): Likewise.
61415         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
61416         have to worry about portability issues when shifting it left.
61417         Remove no-longer-needed test for table_size > 0.
61418         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
61419         in a word, as the resulting behavior is undefined.
61420         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
61421         in one case, a <= should have been an <, and in another case the
61422         whole test was missing.
61423         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
61424         the standard name CHAR_BIT.
61425         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
61426         this is not true on one's complement and signed-magnitude hosts.
61427
61428         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
61429         next_last_offset.
61430         (struct re_dfa_t): Remove unused member states_alloc.
61431         * lib/regcomp.c (init_dfa): Don't initialize unused members.
61432
61433 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
61436         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
61437         and large-file glibc and in 32-bit large-file Solaris.
61438
61439 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61440
61441         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
61442         lengths fit in regoff_t; this isn't true if regoff_t is the same
61443         width as size_t.
61444         * lib/regex.c (re_search_internal): 5th arg is LAST_START
61445         (= START + RANGE) instead of RANGE.  This avoids overflow
61446         problems when regoff_t is the same width as size_t.
61447         All callers changed.
61448         (re_search_2_stub): Check for overflow when adding the
61449         sizes of the two strings.
61450         (re_search_stub): Check for overflow when adding START
61451         to RANGE; if it occurs, substitute the extreme value.
61452
61453 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61454
61455         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
61456
61457 2005-08-31  Jim Meyering  <jim@meyering.net>
61458
61459         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
61460         a pointer-to-const.
61461         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
61462         (register_state): Likewise.
61463         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
61464         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61465         (group_nodes_into_DFAstates): Likewise.
61466
61467 2005-08-31  Jim Meyering  <jim@meyering.net>
61468
61469         * check-module: Add a FIXME comment.
61470
61471 2005-08-31  Eric Blake  <ebb9@byu.net>
61472
61473         * modules/unistd-safer (Files): Add unistd--.h.
61474         * modules/stdio-safer (Files): Add stdio--.h.
61475
61476 2005-08-31  Derek Price  <derek@ximbiot.com>
61477
61478         * lib/getdelim.c (getdelim): Return EOF on EOF.
61479         Reported by Larry Jones <lawrence.jones@ugs.com>.
61480
61481 2005-08-31  Bruno Haible  <bruno@clisp.org>
61482
61483         Avoid unnecessary diffs in the generated lib/Makefile.am.
61484         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
61485         the generated files.
61486         (func_import): Don't set cmd.
61487
61488 2005-08-31  Bruno Haible  <bruno@clisp.org>
61489
61490         * lib/strstr.c: Include <stddef.h>, for NULL.
61491         * lib/strcasestr.c: Likewise.
61492         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61493
61494 2005-08-31  Bruno Haible  <bruno@clisp.org>
61495
61496         * gnulib-tool: New option --macro-prefix.
61497         (func_import): Use macro_prefix.
61498         (import): Handle option --macro-prefix.
61499
61500 2005-08-31  Bruno Haible  <bruno@clisp.org>
61501
61502         * gnulib-tool (import): Rename most ac_* variables to cached_*.
61503         Also use new variables cached_lgpl, cached_libtool.
61504
61505 2005-08-31  Bruno Haible  <bruno@clisp.org>
61506
61507         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
61508         always instantiating them.
61509
61510 2005-08-31  Bruno Haible  <bruno@clisp.org>
61511
61512         * gnulib-tool (func_import): Read the previous cached settings
61513         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
61514         earlier added by gnulib but are now dropped. Warn when a gnulib file
61515         overwrites a non-gnulib file.
61516
61517 2005-08-31  Bruno Haible  <bruno@clisp.org>
61518
61519         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
61520         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
61521         projects that don't keep autogenerated files in CVS. Put into
61522         actioncmd only the specified modules, not the transitive closure.
61523
61524 2005-08-31  Bruno Haible  <bruno@clisp.org>
61525
61526         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
61527         Create directories that shall be filled.
61528         (import): Don't look for gl_* macros in configure.ac. Recurse across
61529         all directories containing a gnulib-cache.m4 files, if meaningful.
61530
61531 2005-08-31  Bruno Haible  <bruno@clisp.org>
61532
61533         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
61534         (import): Set seen_libtool when we see gl_LIBTOOL.
61535
61536 2005-08-31  Bruno Haible  <bruno@clisp.org>
61537
61538         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
61539         declaration macro definitions from generated gnulib.m4.
61540
61541 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
61542
61543         * lib/iconvme.h: Add prototype for iconv_alloc.
61544
61545 2005-08-29  Simon Josefsson  <jas@extundo.com>
61546
61547         * lib/iconvme.c: Fix errno.
61548
61549 2005-08-29  Bruno Haible  <bruno@clisp.org>
61550
61551         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
61552         that it works when the directory contains spaces.
61553
61554 2005-08-29  Bruno Haible  <bruno@clisp.org>
61555
61556         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
61557
61558 2005-08-29  Bruno Haible  <bruno@clisp.org>
61559
61560         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
61561         Emit more advice.
61562
61563 2005-08-29  Bruno Haible  <bruno@clisp.org>
61564         and Stepan Kasal  <kasal@ucw.cz>
61565
61566         * check-module: If more parameters are given, check each of them
61567         separately; add more exceptions, as noted by Jim Meyering.
61568         (check_module): New procedure.
61569         (%exempt_header): Now contains all exceptions.
61570
61571 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
61572
61573         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
61574
61575 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61576
61577         * lib/iconvme.c: Split iconv_string into iconv_alloc.
61578
61579 2005-08-28  Bruno Haible  <bruno@clisp.org>
61580
61581         * m4/gnulib-tool.m4: New file.
61582
61583 2005-08-27  Jim Meyering  <jim@meyering.net>
61584
61585         * modules/unistd-safer (Files): Add pipe-safer.c.
61586         * modules/fcntl-safer (Files): Add creat-safer.c.
61587
61588 2005-08-27  Jim Meyering  <jim@meyering.net>
61589
61590         * m4/stdlib-safer.m4: New file.  From coreutils.
61591         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
61592         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
61593         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
61594         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
61595         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
61596
61597 2005-08-27  Jim Meyering  <jim@meyering.net>
61598
61599         * lib/fopen-safer.c: Merge minor changes from coreutils.
61600         * lib/dup-safer.c: Likewise.
61601         * lib/fd-safer.c: Likewise.
61602
61603         Merge from coreutils.
61604         * lib/stdio--.h: New file.
61605         * lib/stdlib--.h: New file.
61606         * lib/mkstemp-safer.c: New file.
61607
61608         GNU tar needs these.
61609         * lib/pipe-safer.c: New file.
61610         * lib/creat-safer.c: New file.
61611         * lib/fcntl--.h (creat): Define to creat_safer.
61612         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
61613         * lib/unistd--.h (pipe): Define to pipe_safer.
61614         * lib/unistd-safer.h: Declare pipe_safer.
61615
61616 2005-08-26  Simon Josefsson  <jas@extundo.com>
61617
61618         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
61619         Haible <bruno@clisp.org>.
61620
61621 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         * lib/regex_internal.h: Remove all references to
61624         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
61625         or better.
61626         (bitset_not, bitset_merge, bitset_not_merge):
61627         (bitset_mask, re_string_allocate, re_string_construct):
61628         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
61629         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
61630         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
61631         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
61632         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61633         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61634         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
61635         (re_acquire_state_context):
61636         Remove unnecessary forward decls.
61637         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
61638         Put __attribute at function definition,
61639         now that the function decl has been removed.
61640         * lib/regex_internal.c (re_string_peek_byte_case):
61641         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
61642         Likewise.
61643
61644 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
61645
61646         * m4/regex.m4: Add AC_PREREQ(2.50).
61647         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
61648
61649 2005-08-25  Simon Josefsson  <jas@extundo.com>
61650
61651         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
61652         __fsetlocking.
61653
61654 2005-08-25  Simon Josefsson  <jas@extundo.com>
61655
61656         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
61657         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
61658         GLIBC specific code.
61659
61660 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         Make regex safe for g++.  This fixes one real bug (an "err"
61663         that should have been "*err").  g++ problem reported by
61664         Sam Steingold.
61665         * lib/regex_internal.h (re_calloc): New macro, consistent with
61666         re_malloc etc.  All callers of calloc changed to use re_calloc.
61667         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
61668         not int.  All callers changed.
61669         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
61670         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
61671         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
61672         (find_recover_state): Change "err" to "*err"; this fixes what
61673         appears to be a real bug.
61674         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
61675         versus int.
61676
61677 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61678
61679         * modules/regex (Depends-on): Add malloc, since the code
61680         assumes that !malloc(0) means failure.
61681
61682 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
61685
61686         alloca modernization/simplification for regex.
61687         * lib/regex.c: Remove portability cruft for alloca.  This no longer
61688         needs to be at the start of the file, and can be moved into
61689         regex_internal.h and simplified.
61690         * lib/regex_internal.h: Include <alloca.h>.
61691         (__libc_use_alloca) [!defined _LIBC]: New macro.
61692         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
61693         now works outside glibc.
61694
61695 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * config/srclist.txt: Add glibc bugs 1241, 1245.
61698
61699 2005-08-25  Jim Meyering  <jim@meyering.net>
61700
61701         * lib/open-safer.c: Include <config.h>.
61702         Otherwise, we'd lose LARGEFILE support in any file using
61703         e.g. "fcntl--.h"
61704
61705 2005-08-25  Bruno Haible  <bruno@clisp.org>
61706
61707         * m4/minmax.m4: Require autoconf 2.52.
61708         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61709         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61710         alternatives of translit over the alphabet.
61711         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61712
61713 2005-08-24  Simon Josefsson  <jas@extundo.com>
61714
61715         * tests/test-getpass.c: New file.
61716
61717 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61718
61719         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61720         for GNU regex features.
61721
61722 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61725         * lib/regex.h (regerror): Likewise.
61726
61727         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61728         requires this.  (The code never needed it.)
61729
61730         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61731         All uses of recently-renamed identifiers changed to use the new,
61732         POSIX-compliant names.  The code will build and run just fine
61733         without these changes, but it's better to eat our own dog food
61734         and use the standard-conforming names.
61735
61736         * lib/regex.h: Fix a multitude of POSIX name space violations.
61737         These changes have an effect only for programs that define
61738         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61739         do not change anything for programs compiled in the normal way.
61740         Also, there is no effect on the ABI.
61741
61742         (_REGEX_SOURCE): New macro.
61743         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61744         defined and _GNU_SOURCE is not; this fixes a name space violation.
61745
61746         Rename the following macros to obey POSIX requirements.
61747         The old names are still visible as macros if _REGEX_SOURCE is defined.
61748         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61749         RE_BACKSLASH_ESCAPE_IN_LISTS.
61750         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61751         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61752         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61753         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61754         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61755         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61756         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61757         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61758         (REG_INTERVALS): renamed from RE_INTERVALS.
61759         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61760         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61761         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61762         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61763         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61764         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61765         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61766         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61767         RE_UNMATCHED_RIGHT_PAREN_ORD.
61768         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61769         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61770         (REG_DEBUG): renamed from RE_DEBUG.
61771         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61772         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61773         unusual, since we can't clash with the POSIX REG_ICASE.
61774         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61775         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61776         (REG_NO_SUB): renamed from RE_NO_SUB.
61777         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61778         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61779         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61780         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61781         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61782         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61783         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61784         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61785         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61786         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61787         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61788         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61789         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61790         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61791         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61792         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61793         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61794         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61795         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61796         (REG_FIXED): Renamed from REGS_FIXED.
61797         (REG_NREGS): Renamed from RE_NREGS.
61798
61799         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61800         of other REG_* macros, since POSIX says the user is allowed to
61801         #undef these macros selectively.
61802
61803         (reg_errcode_t): Update comment stating what other tables need
61804         to be consistent.
61805
61806         Rename the following enum values to obey POSIX requirements.
61807         The old names are still visible as macros.
61808         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61809         is not defined, since GNU is supposed to be a superset of POSIX as
61810         much as possible, and since we want reg_errcode_t to be a signed
61811         type for implementation consistency.
61812         (_REG_NOERROR): Renamed from REG_NOERROR.
61813         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61814         (_REG_BADPAT): Renamed from REG_BADPAT.
61815         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61816         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61817         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61818         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61819         (_REG_EBRACK): Renamed from REG_EBRACK.
61820         (_REG_EPAREN): Renamed from REG_EPAREN.
61821         (_REG_EBRACE): Renamed from REG_EBRACE.
61822         (_REG_BADBR): Renamed from REG_BADBR.
61823         (_REG_ERANGE): Renamed from REG_ERANGE.
61824         (_REG_ESPACE): Renamed from REG_ESPACE.
61825         (_REG_BADRPT): Renamed from REG_BADRPT.
61826         (_REG_EEND): Renamed from REG_EEND.
61827         (_REG_ESIZE): Renamed from REG_ESIZE.
61828         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61829         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61830         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61831         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61832         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61833
61834         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61835         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61836         changed.  But support the old name if the new one is not defined
61837         and if _REGEX_SOURCE.
61838
61839         Change the following member names in struct re_pattern_buffer.
61840         The old names are still supported if !_REGEX_SOURCE.
61841         The new names are always supported, regardless of _REGEX_SOURCE.
61842         (re_buffer): Renamed from buffer.
61843         (re_allocated): Renamed from allocated.
61844         (re_used): Renamed from used.
61845         (re_syntax): Renamed from syntax.
61846         (re_fastmap): Renamed from fastmap.
61847         (re_translate): Renamed from translate.
61848         (re_can_be_null): Renamed from can_be_null.
61849         (re_regs_allocated): Renamed from regs_allocated.
61850         (re_fastmap_accurate): Renamed from fastmap_accurate.
61851         (re_no_sub): Renamed from no_sub.
61852         (re_not_bol): Renamed from not_bol.
61853         (re_not_eol): Renamed from not_eol.
61854         (re_newline_anchor): Renamed from newline_anchor.
61855
61856         Change the following member names in struct re_registers.
61857         The old names are still supported if !_REGEX_SOURCE.
61858         The new names are always supported, regardless of _REGEX_SOURCE.
61859         (rm_num_regs): Renamed from num_regs.
61860         (rm_start): Renamed from start.
61861         (rm_end): Renamed from end.
61862
61863         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61864         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61865         Prepend __ to parameter names.
61866
61867         Undo yesterday's changes.
61868
61869 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61872         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61873         lib/regex.c.
61874
61875 2005-08-24  Jim Meyering  <jim@meyering.net>
61876
61877         Sync from coreutils.
61878         * m4/fcntl-safer.m4: New file.
61879
61880         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61881         and object files for this module.
61882
61883 2005-08-24  Jim Meyering  <jim@meyering.net>
61884
61885         Sync from coreutils.
61886         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61887
61888 2005-08-24  Jim Meyering  <jim@meyering.net>
61889
61890         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61891         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61892
61893 2005-08-24  Jim Meyering  <jim@meyering.net>
61894
61895         * modules/fcntl-safer: New module.
61896         * modules/fts (Depends-on): Add fcntl-safer.
61897         * MODULES.html.sh (File descriptor based Input/Output):
61898         Add fcntl-safer.
61899
61900 2005-08-24  Bruno Haible  <bruno@clisp.org>
61901
61902         Support for unit test modules.
61903         * modules/README: Mention tests modules.
61904         * modules/TEMPLATE-TESTS: New file.
61905         * gnulib-tool: New options --extract-tests-module, --with-tests and
61906         --tests-base (unused for the moment).
61907         (testsbase, inctests): New variables.
61908         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61909         (func_verify_module): Exclude TEMPLATE-TESTS.
61910         (func_verify_nontests_module, func_verify_tests_module): New functions.
61911         (func_get_dependencies): Add implicit dependency for tests modules.
61912         (func_get_tests_module): New function.
61913         (func_modules_transitive_closure): When --with-tests was specified,
61914         include the unit tests as well, unless explicitly avoided.
61915         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61916         (func_emit_tests_Makefile_am): New function.
61917         (func_create_testdir): When --with-tests was specified, emit a
61918         tests/ directory.
61919         * MODULES.html.sh (Future developments): Update.
61920
61921 2005-08-24  Bruno Haible  <bruno@clisp.org>
61922
61923         * modules/tls-tests: New file.
61924         * tests/test-tls.c: New file, from GNU gettext.
61925
61926 2005-08-24  Bruno Haible  <bruno@clisp.org>
61927
61928         * modules/lock-tests: New file.
61929         * tests/test-lock.c: New file, from GNU gettext.
61930
61931 2005-08-24  Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/lock.h: Add multiple inclusion guard.
61934         * lib/tls.h: Add multiple inclusion guard.
61935
61936 2005-08-24  Bruno Haible  <bruno@clisp.org>
61937
61938         * gnulib-tool: Add support for the --aux-dir option to
61939         --create-testdir, --create-megatestdir, --test, --megatest.
61940         (func_create_testdir, func_create_megatestdir): Optionally emit a
61941         AC_CONFIG_AUX_DIR directive.
61942         (create-testdir, create-megatestdir, test, megatest): Provide a
61943         default value for $auxdir.
61944
61945 2005-08-24  Bruno Haible  <bruno@clisp.org>
61946
61947         * gnulib-tool (import): Use compound statement instead of subshell
61948         where possible.
61949
61950 2005-08-24  Bruno Haible  <bruno@clisp.org>
61951
61952         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61953
61954 2005-08-24  Bruno Haible  <bruno@clisp.org>
61955
61956         * gnulib-tool (func_version): Update.
61957
61958 2005-08-24  Bruno Haible  <bruno@clisp.org>
61959
61960         * gnulib-tool (func_import, func_create_testdir,
61961         func_create_megatestdir): Quote all autoconf macro arguments.
61962
61963 2005-08-24  Bruno Haible  <bruno@clisp.org>
61964
61965         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61966         option --force, because --force causes the aclocal.m4 of each
61967         subdirectory to be newer than the corresponding config.h.in.
61968
61969 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
61972         All contents moved to gl_REGEX.
61973         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
61974         assume that it does.
61975
61976 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         * lib/regex.h (REG_NOSYS)
61979         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
61980         Define, since POSIX requires it as of 2001.
61981         (_REG_ENOSYS)
61982         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
61983         New private symbol, used to keep the enum signed in all cases.
61984         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
61985         Youngman in
61986         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
61987
61988         * lib/regex_internal.c (re_string_skip_chars, register_state):
61989         (calc_state_hash):
61990         Remove forward decls; no longer needed now that we use prototypes.
61991         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
61992         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
61993         (clean_state_log_if_needed): Likewise.
61994
61995 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         * config/srclist.txt: Add glibc bugs 1231-1233.
61998
61999 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         Fix problems reported by Sam Steingold in
62002         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
62003         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
62004         assumed that reg_errcode_t is a signed type, which is not
62005         necessarily true if _XOPEN_SOURCE is not defined.
62006         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
62007         since some compilers warn about it otherwise.
62008
62009 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
62012         (init_word_char, create_initial_state, duplicate_node_closure):
62013         (fetch_token, peek_token_bracket, build_range_exp):
62014         (build_collating_symbol): Remove forward decls; no longer needed
62015         now that we use prototypes.
62016
62017         * lib/regcomp.c:
62018         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
62019         (re_compile_fastmap_iter, regcomp, regerror, regfree):
62020         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
62021         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
62022         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
62023         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
62024         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
62025         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
62026         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
62027         (build_range_exp, build_collating_symbol, parse_bracket_exp):
62028         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
62029         (build_charclass, build_charclass_op, fetch_number, create_tree):
62030         (create_token_tree, mark_opt_subexp, duplicate_tree):
62031         Use prototypes rather than old-style definitions.
62032
62033         * lib/regex_internal.c:
62034         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
62035         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
62036         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62037         (re_string_reconstruct, re_string_peek_byte_case):
62038         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
62039         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62040         (re_node_set_init_copy, re_node_set_add_intersect):
62041         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62042         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62043         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62044         (re_acquire_state, re_acquire_state_context, register_state):
62045         (create_ci_newstate, create_cd_newstate, free_state):
62046         Likewise.
62047         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
62048         re_search_2):
62049         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
62050         (re_search_internal, prune_impossible_nodes):
62051         (acquire_init_state_context, check_matching, static):
62052         (check_halt_node_context, check_halt_state_context, proceed_next_node):
62053         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
62054         (update_regs, sift_states_backward, build_sifted_states):
62055         (clean_state_log_if_needed, merge_state_array):
62056         (update_cur_sifted_state, add_epsilon_src_nodes):
62057         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
62058         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
62059         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
62060         (find_recover_state, check_subexp_matching_top, transit_state_mb):
62061         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
62062         (check_arrival, check_arrival_add_next_nodes):
62063         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62064         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62065         (check_node_accept_bytes, check_node_accept, extend_buffers):
62066         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
62067         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
62068         (sift_ctx_init):
62069         Likewise.
62070
62071         * lib/regex_internal.h:
62072         (re_string_allocate, re_string_construct, re_string_reconstruct):
62073         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
62074         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
62075         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
62076         (re_string_context_at, re_string_peek_byte_case):
62077         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
62078         is defined, since we now use prototypes always.
62079
62080         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
62081         C89 or better.  All uses removed.
62082
62083 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         * config/srclist.txt: Add glibc bugs 1220-1227.
62086
62087 2005-08-20  Jim Meyering  <jim@meyering.net>
62088
62089         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
62090         of unused local, dfa.
62091
62092 2005-08-20  Bruno Haible  <bruno@clisp.org>
62093
62094         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
62095
62096 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
62099         (re_node_set_insert_last, re_dfa_add_node):
62100         Rename local variables to avoid GCC shadowing warnings.
62101
62102 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62103
62104         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
62105         [defined lint]: Suppress bogus uninitialized-variable warnings.
62106
62107         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
62108         and let the caller return REG_ESPACE if out of space.  This
62109         removes an uninitialied-variable warning with GCC 4.0.1, and also
62110         avoids taking the address of a local variable.  All callers
62111         changed.
62112
62113 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
62116         $LIBCSRC/posix/regexec.c.
62117         Add glibc bug 1217 for regcomp.c.
62118
62119 2005-08-19  Jim Meyering  <jim@meyering.net>
62120
62121         * lib/regexec.c (proceed_next_node): Redo local variables to
62122         avoid GCC shadowing warnings.
62123
62124 2005-08-18  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/strstr.c (strstr): Fix return value in multibyte case.
62127         * lib/strcasestr.c (strcasestr): Likewise.
62128
62129 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62130
62131         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
62132
62133 2005-08-17  Jim Meyering  <jim@meyering.net>
62134
62135         Make the %s format (seconds since the epoch) work for a negative
62136         number and when used with a zero-padded field width, e.g. %015s.
62137
62138         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
62139         label so that it precedes the code to set `digits'.  Otherwise,
62140         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
62141         print `00-22'.  Now, it prints `-0022', as it should.
62142
62143 2005-08-17  Bruno Haible  <bruno@clisp.org>
62144
62145         * modules/strstr (Files): Add m4/mbrtowc.m4.
62146         (Depends-on): Add mbuiter.
62147
62148 2005-08-17  Bruno Haible  <bruno@clisp.org>
62149
62150         * modules/strcasestr: New file.
62151         * MODULES.html.sh (String handling, based on ANSI C 89): Add
62152         strcasestr.
62153
62154 2005-08-17  Bruno Haible  <bruno@clisp.org>
62155
62156         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
62157
62158 2005-08-17  Bruno Haible  <bruno@clisp.org>
62159
62160         * modules/mbuiter: New file.
62161         * MODULES.html.sh (Extended multibyte and wide character utilities):
62162         Add mbuiter.
62163
62164 2005-08-17  Bruno Haible  <bruno@clisp.org>
62165
62166         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
62167         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
62168
62169 2005-08-17  Bruno Haible  <bruno@clisp.org>
62170
62171         * m4/strcasestr.m4: New file.
62172
62173 2005-08-17  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
62176         * lib/strstr.c: Completely rewritten, with multibyte locale support.
62177
62178 2005-08-17  Bruno Haible  <bruno@clisp.org>
62179
62180         * lib/strcasestr.h: New file.
62181         * lib/strcasestr.c: New file.
62182
62183 2005-08-17  Bruno Haible  <bruno@clisp.org>
62184
62185         * lib/strcasecmp.c: Use mbuiter.h.
62186
62187 2005-08-17  Bruno Haible  <bruno@clisp.org>
62188
62189         * lib/mbuiter.h: New file.
62190
62191 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
62194         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
62195         and gl_GETOPT are both invoked via different paths (as happens
62196         with GNU tar CVS because it uses both argp and getopt), the former
62197         wins.
62198
62199 2005-08-16  Bruno Haible  <bruno@clisp.org>
62200
62201         * modules/tls: New file.
62202         * MODULES.html.sh (Multithreading): Add tls.
62203
62204 2005-08-16  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/strnlen1: New file.
62207         * MODULES.html.sh (String handling): Add strnlen1.
62208
62209 2005-08-16  Bruno Haible  <bruno@clisp.org>
62210
62211         * modules/strcase (Files): Add m4/mbrtowc.m4.
62212         (Depends-on): Add strnlen1, mbchar.
62213
62214 2005-08-16  Bruno Haible  <bruno@clisp.org>
62215
62216         * modules/mbiter: New file.
62217         * MODULES.html.sh (Extended multibyte and wide character utilities):
62218         Add mbiter.
62219
62220 2005-08-16  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/mbfile: New file.
62223         * MODULES.html.sh (Extended multibyte and wide character utilities):
62224         Add mbfile.
62225
62226 2005-08-16  Bruno Haible  <bruno@clisp.org>
62227
62228         * modules/mbchar: New file.
62229         * MODULES.html.sh (Extended multibyte and wide character utilities):
62230         New section.
62231
62232 2005-08-16  Bruno Haible  <bruno@clisp.org>
62233
62234         * m4/tls.m4: New file, from GNU gettext.
62235
62236 2005-08-16  Bruno Haible  <bruno@clisp.org>
62237
62238         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
62239         always.
62240         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
62241
62242 2005-08-16  Bruno Haible  <bruno@clisp.org>
62243
62244         * m4/mbiter.m4: New file.
62245
62246 2005-08-16  Bruno Haible  <bruno@clisp.org>
62247
62248         * m4/mbfile.m4: New file.
62249
62250 2005-08-16  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/mbchar.m4: New file.
62253
62254 2005-08-16  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/tls.h: New file, from GNU gettext.
62257         * lib/tls.c: New file, from GNU gettext.
62258
62259 2005-08-16  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/strnlen1.h: New file.
62262         * lib/strnlen1.c: New file.
62263
62264 2005-08-16  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
62267         (mbi_init): Update.
62268         (mbi_avail, mbi_advance): Let the iteration end before the terminating
62269         NUL byte, not after it.
62270
62271 2005-08-16  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/strcase.h (strcasecmp): Add note in comments.
62274         * lib/strncasecmp.c: Use code from strcasecmp.c.
62275         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
62276         (strcasecmp): Work correctly in multibyte locales.
62277
62278 2005-08-16  Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/mbiter.h: New file.
62281
62282 2005-08-16  Bruno Haible  <bruno@clisp.org>
62283
62284         * lib/mbfile.h: New file.
62285
62286 2005-08-16  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/mbchar.h: New file.
62289         * lib/mbchar.c: New file.
62290
62291 2005-08-16  Bruno Haible  <bruno@clisp.org>
62292
62293         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
62294         the valid ones. Makes the comparison operations transitive:
62295         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
62296         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
62297
62298 2005-08-15  Simon Josefsson  <jas@extundo.com>
62299
62300         * modules/ssize_t (License): Change to 'unlimited'.
62301
62302         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
62303
62304 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62305
62306         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
62307         Add comments for each pending glibc patch.
62308
62309 2005-08-15  Bruno Haible  <bruno@clisp.org>
62310
62311         * lib/regex.h (__restrict_arr): Don't define to __restrict if
62312         __cplusplus is defined.
62313
62314 2005-08-14  Jim Meyering  <jim@meyering.net>
62315
62316         Sync from coreutils.
62317
62318         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
62319         Use the hash-table-based cycle-detection code not just when
62320         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
62321         Reported by James Youngman in
62322         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
62323         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
62324         FTS_TIGHT_CYCLE_CHECK.
62325         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
62326         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
62327         once again.
62328         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
62329         * lib/fts.c (fd_safer): Remove decl.
62330         Include fcntl--.h rather than unistd-safer.h
62331         (fts_safe_changedir): Don't call fd_safer; no longer needed
62332         now that we include fcntl--.h.
62333
62334 2005-08-12  Simon Josefsson  <jas@extundo.com>
62335
62336         * modules/getndelim2: Use ssize_t module.
62337         * modules/getnline: Likewise.
62338         * modules/safe-read: Likewise.
62339         * modules/xreadlink: Likewise.
62340
62341         * modules/ssize_t: New file.
62342
62343 2005-08-12  Simon Josefsson  <jas@extundo.com>
62344
62345         * m4/readline.m4: Look for termcap, curses or ncurses if required.
62346
62347 2005-08-12  Simon Josefsson  <jas@extundo.com>
62348
62349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62350         ssize_t.
62351
62352 2005-08-12  Simon Josefsson  <jas@extundo.com>
62353
62354         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
62355         readline, getdelim and check_version.
62356         (Support for systems lacking ISO C 99: Sizes of integer types):
62357         Add size_max.
62358
62359 2005-08-12  Bruno Haible  <bruno@clisp.org>
62360
62361         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
62362
62363 2005-08-11  Simon Josefsson  <jas@extundo.com>
62364
62365         * modules/readline: New file.
62366
62367         * modules/strnlen (Files): Add strnlen.h.
62368
62369 2005-08-11  Simon Josefsson  <jas@extundo.com>
62370
62371         * m4/readline.m4: New file.
62372
62373 2005-08-11  Simon Josefsson  <jas@extundo.com>
62374
62375         * lib/readline.h, readline.c: New file.
62376
62377 2005-08-11  Simon Josefsson  <jas@extundo.com>
62378
62379         * doc/gnulib.texi (Initial import, Finishing touches): Mention
62380         gl_AVOID.
62381
62382 2005-08-11  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/strnlen.h (strnlen): Change parameter name to match comment.
62385
62386 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
62387
62388         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
62389
62390 2005-08-10  Simon Josefsson  <jas@extundo.com>
62391
62392         * tests/test-iconvme.c: New file.
62393
62394 2005-08-10  Simon Josefsson  <jas@extundo.com>
62395
62396         * m4/strnlen.m4: New file.
62397
62398         * m4/strndup.m4: Don't check for strnlen declaration, done in
62399         strnlen.m4.
62400
62401 2005-08-10  Simon Josefsson  <jas@extundo.com>
62402
62403         * lib/strndup.c: Use strnlen.h.
62404
62405         * lib/strnlen.h: New file.
62406
62407 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62408
62409         * README: Typos.
62410
62411 2005-08-02  Simon Josefsson  <jas@extundo.com>
62412
62413         * modules/readline: New file.
62414
62415 2005-08-02  Simon Josefsson  <jas@extundo.com>
62416
62417         * modules/getdelim: New file.
62418
62419         * modules/getline: Rewrite, don't use getndelim2.
62420
62421 2005-08-02  Simon Josefsson  <jas@extundo.com>
62422
62423         * m4/getline.m4: Separate out getdelim stuff into separate module.
62424
62425         * m4/getdelim.m4: New file.
62426
62427 2005-08-02  Simon Josefsson  <jas@extundo.com>
62428
62429         * lib/getline.h, getline.c: Rewrite.
62430
62431         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
62432
62433 2005-07-31  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/lock.h (gl_lock_initializer): New macro.
62436         (gl_lock_define_initialized): Use it.
62437         (gl_rwlock_initializer): New macro.
62438         (gl_rwlock_define_initialized): Use it.
62439         (gl_recursive_lock_initializer): New macro.
62440         (gl_recursive_lock_define_initialized): Use it.
62441
62442 2005-07-30  Karl Berry  <karl@gnu.org>
62443
62444         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
62445         Report from Ben Pfaff, regarding getopt.
62446
62447 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
62450         normal way.
62451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
62452         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
62453         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
62454         (gl_GETOPT): Use the new macros.  Most of the implementation
62455         is moved to the new macros.  This is for programs like Emacs
62456         that don't want all the functionality of gl_GETOPT.
62457
62458 2005-07-26  Bruno Haible  <bruno@clisp.org>
62459
62460         * m4/lock.m4: Update from GNU gettext.
62461
62462 2005-07-26  Bruno Haible  <bruno@clisp.org>
62463
62464         * lib/lock.h: Update from GNU gettext.
62465         * lib/lock.c: Update from GNU gettext.
62466
62467 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
62468
62469         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
62470         obsolescent AC_TRY_RUN.  Include the default includes files, for
62471         'exit'.
62472
62473 2005-07-24  Bruno Haible  <bruno@clisp.org>
62474
62475         * modules/visibility: New file.
62476         * MODULES.html.sh (Misc): Add visibility.
62477
62478 2005-07-24  Bruno Haible  <bruno@clisp.org>
62479
62480         * m4/visibility.m4: New file.
62481
62482 2005-07-24  Bruno Haible  <bruno@clisp.org>
62483
62484         * doc/visibility.texi: New file.
62485
62486 2005-07-22  Bruno Haible  <bruno@clisp.org>
62487
62488         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
62489         $(ALLOCA_H), redundant through BUILT_SOURCES.
62490         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
62491         redundant through BUILT_SOURCES.
62492         * modules/byteswap (Makefile.am): Remove explicit dependency on
62493         $(BYTESWAP_H), redundant through BUILT_SOURCES.
62494         * modules/fnmatch (Makefile.am): Remove explicit dependency on
62495         $(FNMATCH_H), redundant through BUILT_SOURCES.
62496         * modules/getopt (Makefile.am): Remove explicit dependency on
62497         $(GETOPT_H), redundant through BUILT_SOURCES.
62498         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
62499         redundant through BUILT_SOURCES.
62500         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
62501         redundant through BUILT_SOURCES.
62502         * modules/stdbool (Makefile.am): Remove explicit dependency on
62503         $(STDBOOL_H), redundant through BUILT_SOURCES.
62504         * modules/stdint (Makefile.am): Remove explicit dependency on
62505         $(STDINT_H), redundant through BUILT_SOURCES.
62506         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
62507         Remove explicit dependency on $(SYSEXITS_H).
62508         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
62509
62510 2005-07-18  Simon Josefsson  <jas@extundo.com>
62511
62512         * lib/check-version.c (check_version): Accept identical versions too.
62513
62514 2005-07-18  Bruno Haible  <bruno@clisp.org>
62515
62516         * modules/lock: New file.
62517         * MODULES.html.sh (Multithreading): New section.
62518
62519 2005-07-18  Bruno Haible  <bruno@clisp.org>
62520
62521         * m4/lock.m4: New file, from GNU gettext.
62522
62523 2005-07-18  Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/lock.h: New file, from GNU gettext.
62526         * lib/lock.c: New file, from GNU gettext.
62527
62528 2005-07-18  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/lock.h (gl_once_t): New type.
62531         (gl_once_define, gl_once): New macros.
62532         * lib/lock.c (fresh_once): New variable.
62533         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
62534         functions.
62535
62536 2005-07-16  Simon Josefsson  <jas@extundo.com>
62537
62538         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
62539         workaround, suggested by Bruno.
62540
62541 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62542
62543         * modules/xalloc (Depends-on): Add xalloc-die.
62544         * modules/xvasprintf (Depends-on): Add xalloc-die.
62545
62546 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62547
62548         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
62549         with a minor change.
62550
62551 2005-07-15  Bruno Haible  <bruno@clisp.org>
62552
62553         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
62554         When using lib/poll.c, define poll as rpl_poll.
62555
62556 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
62557
62558         * modules/argp (Depends-on): Remove unlocked-io.
62559
62560 2005-07-14  Derek Price  <derek@ximbiot.com>
62561
62562         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
62563         for glob symlink bug.
62564
62565 2005-07-14  Bruno Haible  <bruno@clisp.org>
62566
62567         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
62568         Instead, test for *_unlocked function declarations directly.
62569
62570 2005-07-11  Simon Josefsson  <jas@extundo.com>
62571
62572         * modules/size_max: New file.
62573
62574         * modules/xsize: Depend on size_max module for size_max.m4.
62575
62576 2005-07-11  Simon Josefsson  <jas@extundo.com>
62577
62578         * lib/size_max.h: New file.
62579
62580 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
62581
62582         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
62583         copyright symbol and the year.
62584         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
62585         (version_etc_va): Use parameterized copyright notice.
62586         Reword to conform to the current GNU coding standards.
62587
62588 2005-07-11  Karl Berry  <karl@gnu.org>
62589
62590         * doc/gnulib.texi (Quoting): new node.
62591         (Initial import): more info, from Patrice.
62592
62593 2005-07-11  Bruno Haible  <bruno@clisp.org>
62594
62595         * gnulib-tool (func_usage): Document option --avoid.
62596         (Command line options): Handle --avoid.
62597         (func_acceptable): New function.
62598         (func_modules_transitive_closure): Use it.
62599
62600 2005-07-11  Bruno Haible  <bruno@clisp.org>
62601
62602         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
62603         Reported by Jim Meyering.
62604
62605 2005-07-10  Bruno Haible  <bruno@clisp.org>
62606
62607         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
62608         Needed when size_t is smaller than 'unsigned int'.
62609         Reported by Paul Eggert.
62610
62611 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62612
62613         * modules/argp (Depends-on): Add unlocked-io
62614
62615 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62616
62617         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
62618         block of defines.
62619
62620 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62621
62622         * config/srclist.txt: Comment out regcomp.c, since we have a porting
62623         fix now.
62624
62625 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
62626         and Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
62629         in wint_t, not wchar_t.  Remove now-unnecessary cast.
62630
62631 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * modules/regex (Files): Add lib/regex_internal.c,
62634         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
62635         (Depends-on): Add extensions.
62636         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
62637
62638 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62639
62640         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
62641         pathconf.
62642         * m4/same.m4 (gl_SAME): Likewise.
62643         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
62644
62645         * m4/regex.m4: Adjust to new libc regex implementation.
62646         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
62647         all the .c and .h parts of (the new) regex.
62648         Quote the m4 stuff better.
62649         Check for RE_ICASE bug of old gnulib.
62650         Check for REG_STARTEND of recent libc.
62651         Rename local variables from jm_* to gl_*.
62652         Quote operand of "test -f".
62653         Say "recent enough" version of libc, not "version 2".
62654         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
62655         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
62656         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
62657         Remove check for btowc, isascii.
62658         Require AM_LANGINFO_CODESET.
62659
62660 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * lib/regex.c, regex.h: Sync from libc.
62663         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
62664         * lib/regexec.c:
62665         New files, synced from libc, except that regex_internal.h
62666         currently has a small porting fix.
62667
62668 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
62671         regex_internal.c, regexec.c.
62672         Add regex_internal.h too, but as a comment, since the libc version
62673         is currently broken in gnulib mode.
62674
62675 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         Support programs like Emacs that use gnulib but not gettext.
62678         * MODULES.html.sh (Internationalization functions): Add gettext-h.
62679         * modules/gettext-h: New file.
62680         * modules/gettext (Files): Remove lib/gettext.h.
62681         (Depends-on): Add gettext-h.
62682         (Makefile.am): Remove lib_SOURCES.
62683         * modules/argmatch, modules/c-stack, modules/closeout:
62684         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
62685         * modules/execute, modules/file-type, modules/getaddrinfo:
62686         * modules/getopt, modules/human, modules/javacomp:
62687         * modules/javaexec, modules/mkdir-p, modules/obstack:
62688         * modules/openat, modules/pagealign_alloc, modules/pipe:
62689         * modules/quotearg, modules/regex, modules/rpmatch:
62690         * modules/unicodeio, modules/userspec, modules/version-etc:
62691         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
62692         * modules/xsetenv:
62693         Depend on gettext-h, not gettext.
62694
62695 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62696
62697         * gnulib-tool (func_import): Add support for 'public domain' license.
62698         * modules/alloca, modules/atexit, modules/memmove:
62699         Now public domain, not GPL.
62700         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
62701         * modules/realloc, modules/strerror, modules/strtod:
62702         Now LGPL, not GPL.
62703
62704 2005-07-05  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
62707         autoconf CVS. Needed for mingw.
62708
62709 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62710
62711         Remove the dependency of the strftime module on the tzset module.
62712         * modules/strftime (Depends-on): Remove dependency on tzset.
62713
62714 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         Remove the dependency of the strftime module on the tzset module.
62717         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62718         gl_FUNC_TZSET_CLOBBER.
62719
62720 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         Remove the dependency of the strftime module on the tzset module.
62723         * lib/strftime.c (my_strftime)
62724         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62725         Copy the input structure, to work around some of the bug with
62726         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62727         Solaris releases, you should also use the tzset module, but we won't
62728         require it as a dependency any more since we don't want LGPLed code
62729         to depend on GPLed code.
62730
62731 2005-07-02  Jim Meyering  <jim@meyering.net>
62732
62733         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62734         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62735         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62736         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62737
62738 2005-07-02  Jim Meyering  <jim@meyering.net>
62739
62740         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62741
62742 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62743
62744         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62745         declares only 'struct timespec;' (!).
62746
62747 2005-07-01  Jim Meyering  <jim@meyering.net>
62748
62749         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62750         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62751         * lib/save-cwd.c, tempname.c:
62752         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62753         and don't include <sys/file.h>).
62754
62755 2005-06-29  Jim Meyering  <jim@meyering.net>
62756
62757         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62758         type name.  Use the variable name instead.
62759         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62760         Likewise.
62761
62762 2005-06-28  Simon Josefsson  <jas@extundo.com>
62763
62764         * modules/check-version (Files): Add check-version.m4.
62765
62766 2005-06-28  Simon Josefsson  <jas@extundo.com>
62767
62768         * m4/check-version.m4: New file, suggested by Jim Meyering
62769         <jim@meyering.net>.
62770
62771 2005-06-28  Simon Josefsson  <jas@extundo.com>
62772
62773         * lib/check-version.h, lib/check-version.c: New files.
62774
62775 2005-06-28  Simon Josefsson  <jas@extundo.com>
62776
62777         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62778         collision with global variable.  Better indentation.  Don't
62779         increment buffer pointer beyond buffer end.  Based on comments
62780         from Paul Eggert <eggert@cs.ucla.edu>.
62781
62782         * lib/base64.h: Indent.
62783
62784 2005-06-28  Simon Josefsson  <jas@extundo.com>
62785
62786         * doc/gnulib.texi (Library version handling): New section.
62787
62788 2005-06-28  Jim Meyering  <jim@meyering.net>
62789
62790         * check-module (find_included_lib_files): Hard-code another
62791         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62792         but modules/fts-lgpl (correctly) does not list those files.
62793
62794         * modules/canonicalize (Files): Add lib/pathmax.h.
62795
62796 2005-06-25  Simon Josefsson  <jas@extundo.com>
62797
62798         * modules/check-version: New file.
62799
62800 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62803         initializer of struct addrinfo, as an indication that we don't
62804         care how many members the structure has.
62805
62806 2005-06-24  Derek Price  <derek@ximbiot.com>
62807         and Bruno Haible  <bruno@clisp.org>
62808
62809         Remove stat module & update lstat.
62810         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62811         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62812         * m4/stat.m4: Remove this file.
62813
62814 2005-06-24  Derek Price  <derek@ximbiot.com>
62815         and Bruno Haible  <bruno@clisp.org>
62816
62817         Remove stat module & update lstat.
62818         * lib/stat.c: Remove this file...
62819         (slash_aware_lstat): ...moving this content and its support...
62820         * lib/lstat.c (rpl_lstat): ...into here.
62821         * lib/lstat.h: New file.
62822
62823 2005-06-24  Derek Price  <derek@ximbiot.com>
62824         and Bruno Haible  <bruno@clisp.org>
62825
62826         Remove stat module & update lstat.
62827         * config/srclist.txt (libc sources): Remove stat.
62828
62829 2005-06-24  Derek Price  <derek@ximbiot.com>
62830         and Bruno Haible  <bruno@clisp.org>
62831
62832         Remove stat module & update lstat.
62833         * MODULES.html.sh (stat): Remove.
62834         * MODULES.html: Regenerated.
62835         * modules/lstat (Description): Correct function name.
62836         (Files): Add "lstat.h".
62837         (Depends-on): Remove stat, add xalloc, stat-macros.
62838         * modules/stat: Remove this file.
62839         (Include): Add "lstat.h", remove <sys/stat.h>.
62840
62841 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62842
62843         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62844         (ranged_convert): Don't save conversion in a temporary struct.
62845         This causes a warning with GCC 4.0.0, and anyway in the typical
62846         case it's not worth the extra 100 bytes or so of code.
62847         (ranged_convert, __mktime_internal): When calling a function via a
62848         pointer P, use P () rather than (*P) (), as we now assume C89 or
62849         better.
62850
62851 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62852
62853         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62854         "who -r" failed to give output.  Problem reported by Tim Waugh.
62855
62856         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62857         (xcalloc): Use it to avoid needless tests.
62858         Problem reported by Jim Meyering.
62859
62860 2005-06-20  Derek Price  <derek@ximbiot.com>
62861
62862         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62863         unnecessary for Autoconfs > 2.59c.
62864
62865 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62866
62867         * lib/argp.h (__option_is_short): Check upper limit of
62868         __key. Isprint() requires its argument to have the value
62869         of an unsigned char or EOF.
62870
62871 2005-06-16  Jim Meyering  <jim@meyering.net>
62872
62873         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62874         when either N or S is zero.
62875
62876 2005-06-16  Derek Price  <derek@ximbiot.com>
62877
62878         * m4/bison.m4: Declare YACC & YFLAGS precious.
62879
62880 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62881
62882         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62883         multibyte string or pattern, fall back on unibyte matching.
62884         Problem reported by James Youngman.
62885
62886 2005-06-08  Bruno Haible  <bruno@clisp.org>
62887
62888         * modules/csharpcomp: New file.
62889         * MODULES.html.sh (C#): Add csharpcomp.
62890
62891 2005-06-08  Bruno Haible  <bruno@clisp.org>
62892
62893         * m4/csharpcomp.m4: New file, from GNU gettext.
62894
62895 2005-06-08  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/csharpcomp.h: New file, from GNU gettext.
62898         * lib/csharpcomp.c: New file, from GNU gettext.
62899         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62900
62901 2005-06-08  Bruno Haible  <bruno@clisp.org>
62902
62903         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62904         warning on mingw.
62905
62906 2005-06-07  Derek Price  <derek@ximbiot.com>
62907
62908         Sync from CVS.
62909         * lib/glob_.h: Indent nested #ifdef.
62910
62911 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         Sync from coreutils.
62914         Use "file name" when talking about file names, instead of "filename"
62915         or "path", as per the GNU coding standards.
62916         * lib/mkdir-p.c: Renamed from makepath.c.
62917         (make_dir_parents): Renamed from make_path.  All callers changed.
62918         * lib/mkdir-p.h: Likewise.  All includers changed.
62919         * lib/filenamecat.c: Renamed from path-concat.c.
62920         (file_name_concat): Renamed from path_concat.  All callers changed.
62921         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62922         * lib/filenamecat.h: Likewise.  All includers changed.
62923         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62924         in comments or local variable names.
62925         * lib/basename.c: Likewise.
62926         * lib/canonicalize.c, canonicalize.h: Likewise.
62927         * lib/dirname.c, dirname.h: Likewise.
62928         * lib/euidaccess.c: Likewise.
62929         * lib/exclude.c: Likewise
62930         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62931         * lib/fsusage.c, fsuage.h: Likewise.
62932         * lib/fts.c, fts_.h: Likewise.
62933         * lib/getcwd.c: Likewise.
62934         * lib/getloadavg.c: Likewise.
62935         * lib/mkstemp.c: Likewise.
62936         * lib/mountlist.c, mountlist.h: Likewise.
62937         * lib/openat.c, openat.h: Likewise.
62938         * lib/readlink-stub.c: Likewise.
62939         * lib/readutmp.c, readutmp.h: Likewise.
62940         * lib/rename.c: Likewise.
62941         * lib/rmdir.c: Likewise.
62942         * lib/same.c: Likewise.
62943         * lib/savedir.c: Likewise.
62944         * lib/stripslash.c: Likewise.
62945         * lib/tempname.c: Likewise.
62946         * lib/xreadlink.c: Likewise.
62947         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62948         All uses changed.
62949         * lib/exclude.h: Likewise.
62950
62951         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62952         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62953         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62954         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62955         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62956         files have been getting away with it for years (MORE/BSD 4.3
62957         is extinct now).
62958         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62959         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62960
62961         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62962         Define to 256, not 255, as per modern POSIX.
62963
62964 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         Sync from coreutils.
62967         Use "file name" when talking about file names, instead of "filename"
62968         or "path", as per the GNU coding standards.
62969         * MODULES.html.sh: mkdir-p renamed from makepath.
62970         filenamecat renamed from path-concat.
62971         * modules/filenamecat: Renamed from modules/path-concat.
62972         (Files): filenamecat.h and filenamecat.c renamed from
62973         path-concat.h and path-concat.c.
62974         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
62975         (Include): filenamecat.h, not path-concat.h.
62976         * modules/mkdir-p: Renamed from modules/makepath.
62977         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
62978         makepath.c.
62979         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
62980         (Include): mkdir-p.h, not makepath.h.
62981
62982 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         Sync from coreutils.
62985         * m4/mkdir-p.m4: Renamed from makepath.m4.
62986         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
62987         Rename files from makepath.c to mkdir-p.c, and from
62988         makepath.h to mkdir-p.h.
62989         * m4/filenamecat.m4: Renamed from path-concat.m4.
62990         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
62991         Rename files from path-concat.c to filenamecat.c,
62992         and from path-concat.h to filenamecat.h.
62993         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
62994         "file name" in local variables or comments.
62995         * m4/rename.m4: Likewise.
62996
62997 2005-06-01  Bruno Haible  <bruno@clisp.org>
62998
62999         * modules/csharpexec: New file.
63000         * MODULES.html.sh (C#): New section.
63001
63002 2005-06-01  Bruno Haible  <bruno@clisp.org>
63003
63004         * m4/csharp.m4: New file, from GNU gettext.
63005         * m4/csharpexec.m4: New file, from GNU gettext.
63006
63007 2005-06-01  Bruno Haible  <bruno@clisp.org>
63008
63009         * lib/csharpexec.h: New file, from GNU gettext.
63010         * lib/csharpexec.c: New file, from GNU gettext.
63011         * lib/csharpexec.sh.in: New file, from GNU gettext.
63012
63013 2005-05-31  Derek Price  <derek@ximbiot.com>
63014             Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         Sync from cvs.
63017         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63018
63019 2005-05-31  Derek Price  <derek@ximbiot.com>
63020             Paul Eggert  <eggert@cs.ucla.edu>
63021
63022         Sync from cvs.
63023         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63024
63025 2005-05-29  Derek Price  <derek@ximbiot.com>
63026
63027         * config/srclist.txt (glob_.h, glob.c): Add these files.
63028
63029 2005-05-29  Derek Price  <derek@ximbiot.com>
63030
63031         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
63032         * modules/glob: New file.
63033         * modules/getlogin_r: Add link to POSIX spec in description.
63034
63035 2005-05-29  Derek Price  <derek@ximbiot.com>
63036             Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * m4/glob.m4: New file.
63039
63040 2005-05-29  Derek Price  <derek@ximbiot.com>
63041             Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/glob_.h, lib/glob.c: New files.
63044
63045 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63046
63047         * modules/fts (Files): Remove m4/inttypes-pri.m4.
63048         * modules/fts-lgpl (Depends-on): Remove gettext.
63049
63050 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
63053         and don't require gt_INTTYPES_PRI.
63054
63055 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
63058
63059         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
63060         the configuration hassle isn't worth it.
63061         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
63062         (LONGEST_MODIFIER, PRIuMAX): Remove.
63063
63064 2005-05-27  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/getlogin_r.h: Remove second include of <stddef.h>.
63067
63068 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
63071         _POSIX_PTHREAD_SEMANTICS for Solaris.
63072
63073 2005-05-25  Derek Price  <derek@ximbiot.com>
63074
63075         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
63076
63077 2005-05-25  Derek Price  <derek@ximbiot.com>
63078             Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * modules/getlogin_r, m4/getlogin_r.m4: New files.
63081         * lib/getlogin_r.c, getlogin_r.h: New files.
63082
63083 2005-05-25  Bruno Haible  <bruno@clisp.org>
63084             Derek Price  <derek@ximbiot.com>
63085
63086         * lib/getlogin_r.h: Simplify API documentation.
63087
63088 2005-05-23  Derek Price  <derek@ximbiot.com>
63089
63090         * modules/minmax (Files): Add m4/minmax.m4.
63091         (configure.ac): Add gl_MINMAX.
63092
63093 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
63096         so that unistd-safer.h (GPL'ed code) need not be included.
63097
63098 2005-05-22  Bruno Haible  <bruno@clisp.org>
63099
63100         * m4/minmax.m4: New file.
63101         Based on a patch by Derek Price <derek@ximbiot.com>.
63102
63103 2005-05-22  Bruno Haible  <bruno@clisp.org>
63104
63105         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
63106         (INT64_MIN): Fix definition.
63107         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
63108
63109         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
63110         NEED_SIGNED_INT_TYPES.
63111
63112         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
63113         HAVE_SYSTEM_INTTYPES.
63114
63115 2005-05-22  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
63118         Also include <sys/param.h> if it defines MIN, MAX.
63119         Based on a patch by Derek Price <derek@ximbiot.com>.
63120
63121 2005-05-21  Jim Meyering  <jim@meyering.net>
63122
63123         * modules/fts (Files): Add m4/inttypes-pri.m4.
63124         (Depends-on): Add lstat and remove gettext.  Alphabetize.
63125
63126 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         New fts module.
63129         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
63130         (setup_dir, free_dir): New functions.
63131         (enter_dir, leave_dir): Define trivial
63132         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
63133         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
63134         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
63135         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
63136         Move to fts-cycle.c.
63137         (fts_open): Use setup_dir.
63138         (fts_close): Use free_dir.
63139         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
63140         This adds a label and some gotos, but the alternatives were messier.
63141         Check for memory allocation failure when entering a dir.
63142         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
63143         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
63144         (FTS): New member fts_cycle, that is a union that contains the
63145         old active_dir_ht and cycle_state.  All uses changed to mention
63146         fts_cycle.ht and fts_cycle.state.
63147         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
63148         fts.c, with the following changes:
63149         (setup_dir, free_dir): New functions.
63150         (enter_dir): Now returns bool.  Return true if successful, false
63151         if memory exhausted.  All callers changed.
63152         Do not bother partly cleaning up on
63153         memory allocation failure; that is free_dir's job.
63154         However, free ad if hash_insert fails, to avoid memory leak.
63155         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
63156         fts->fts_options to see which union member to use.
63157
63158 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
63161         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
63162
63163 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
63166
63167 2005-05-20  Jim Meyering  <jim@meyering.net>
63168
63169         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
63170         Now a macro, to pacify GCC.
63171
63172 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63173
63174         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
63175         of -1.
63176
63177 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63178
63179         * lib/chown.c (rpl_chown): Return -1 on failure.
63180
63181 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
63184         Don't check for stddef.h.
63185         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
63186         don't use its results.
63187         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
63188         since we include them unconditionally.  Don't require
63189         AM_STDBOOL_H, since stdbool is a prerequisite.
63190         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
63191         since we assume C89 or better.
63192         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
63193         as we don't use their results.
63194         Don't check for fchdir, memmove, memset, strrchr, as we use
63195         them unconditionally.
63196         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
63197         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
63198
63199 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63200
63201         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
63202         Include <stddef.h> unconditionally, since we assume C89 now.
63203         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
63204         * lib/fts.c: Include fts_.h first, to check interface.
63205         Do not include intprops.h; no longer needed.
63206         Include cycle-check.h and hash.h, since fts_.h no longer does.
63207         Remove unnecessary casts of closedir to void.
63208         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
63209         decide whether to decrement nlinks.
63210         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
63211         (FTS): Use struct hash_table * instead of Hash_table, so that
63212         we no longer need to include hash.h here.
63213
63214 2005-05-18  Jim Meyering  <jim@meyering.net>
63215
63216         * modules/dirfd (License): Change to LGPL.  Most of the code
63217         is already in the public domain.
63218
63219 2005-05-18  Jim Meyering  <jim@meyering.net>
63220
63221         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
63222         Reported by Yoann Vandoorselaere.
63223
63224 2005-05-17  Jim Meyering  <jim@meyering.net>
63225
63226         * m4/fts.m4: New file, from coreutils.
63227
63228 2005-05-17  Jim Meyering  <jim@meyering.net>
63229
63230         * lib/fts.c, lib/fts_.h: New files, from coreutils.
63231
63232 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63233
63234         Sync from coreutils.
63235         * m4/unlinkdir.m4: New file.
63236
63237 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63238
63239         Sync from coreutils.
63240         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
63241         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
63242         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
63243         White space changes only.
63244         * lib/makepath.c (make_path): Port to hosts where leading "//" is
63245         special.
63246         * lib/yesno.c: Include getline.h, not ctype.h.
63247         (yesno): Don't remove leading white space; POSIX doesn't allow it.
63248         Use getline to remove arbitrary restriction on response length.
63249
63250 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * config/srclist-update: Spell out "Street" in FSF postal
63253         mail address; this is the style the FSF seems to prefer.
63254
63255         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
63256         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
63257         this updates FSF postal mail address.
63258
63259         Sync from coreutils.
63260         * modules/unlinkdir: New file.
63261         * modules/yesno (Depends-on): Add getline.
63262         * MODULES.html.sh (File system functions): Add unlinkdir.
63263
63264 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
63267         lib/strsep.h:
63268         Change the initial comment to refer to GPL, not LGPL.
63269         gnulib-tool will change it to LGPL as needed.
63270
63271         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
63272         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
63273         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
63274         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
63275         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
63276         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
63277         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
63278         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
63279         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
63280         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
63281         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
63282         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
63283         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
63284         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
63285         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
63286         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
63287         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
63288         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
63289         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
63290         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
63291         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
63292         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
63293         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
63294         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
63295         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
63296         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
63297         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
63298         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
63299         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
63300         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
63301         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
63302         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
63303         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
63304         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
63305         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
63306         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
63307         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
63308         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
63309         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
63310         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
63311         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
63312         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
63313         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
63314         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
63315         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
63316         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
63317         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
63318         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
63319         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
63320         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
63321         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63322         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
63323         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
63324         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
63325         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
63326         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
63327         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
63328         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
63329         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
63330         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
63331         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
63332         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
63333         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
63334         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
63335         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
63336         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
63337         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
63338         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
63339         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
63340         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
63341         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
63342         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
63343         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
63344         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
63345         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
63346         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
63347         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
63348         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
63349         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
63350         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
63351         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
63352         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
63353         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
63354         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
63355         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
63356         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
63357         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
63358         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
63359         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
63360         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
63361         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
63362         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
63363         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
63364         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
63365         lib/yesno.c, lib/yesno.h:
63366         Update FSF postal mail address.
63367
63368 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
63371         tests/test-memmem.c, tests/test-stpncpy.c:
63372         Update FSF postal mail address.
63373
63374 2005-05-13  Bruno Haible  <bruno@clisp.org>
63375
63376         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
63377         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
63378         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
63379         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
63380         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
63381         Add support for 64-bit integers in the MSVC compiler.
63382
63383 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63384
63385         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
63386
63387 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
63388
63389         * gnulib-tool (func_import): Sort and uniquify recommended includes.
63390
63391 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * doc/getdate.texi (General date syntax): Don't say that date
63394         date --iso-8601=ns generates acceptable dates; it doesn't yet.
63395         Problem reported by Nic Ferrier.
63396
63397 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63398
63399         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
63400         specified in ai_socktype. Fix invalid ai_protocol
63401         check. ai_protocol is usually set to 0 or depending on
63402         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
63403         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
63404         ai_socktype / ai_protocol in the returned addrinfo structure.
63405
63406 2005-05-10  Simon Josefsson  <jas@extundo.com>
63407
63408         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
63409         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63410
63411 2005-05-10  Karl Berry  <karl@gnu.org>
63412
63413         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
63414         (from http://www.gnu.org/licenses).
63415         * doc/COPYING.LIB: also rename to COPYING.LESSER.
63416         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
63417         fdl.texi suffices.
63418
63419 2005-05-10  Karl Berry  <karl@gnu.org>
63420
63421         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
63422         (COPYING.DOC): remove.
63423
63424         * config/srclist-update: new FSF address.
63425
63426 2005-05-10  Derek Price  <derek@ximbiot.com>
63427
63428         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
63429         possible.
63430
63431 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63432             Bruno Haible  <bruno@clisp.org>
63433
63434         * modules/inet_ntop: New file.
63435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63436         inet_ntop.
63437
63438 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63439             Bruno Haible  <bruno@clisp.org>
63440
63441         * m4/inet_ntop.m4: New file.
63442
63443 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63444             Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/inet_ntop.h: New file.
63447         * lib/inet_ntop.c: New file, from glibc with modifications.
63448
63449 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * modules/time_r (License): Change to LGPL.
63452         * modules/extensions (License): Change to LGPL.  Actually,
63453         the license is more permissive than that, but currently gnulib-tool
63454         doesn't know how to handle more-permissive licenses.
63455
63456         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
63457         Problem reported by Dave Love.
63458
63459 2005-05-08  Jim Meyering  <jim@meyering.net>
63460
63461         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
63462         blank.
63463
63464 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63465
63466         * modules/argmatch (Depends-on): Add stdbool.
63467         * modules/backupfile (Depends-on): Likewise.
63468         * modules/chdir-long (Depends-on): Likewise.
63469         * modules/closeout (Depends-on): Likewise.
63470         * modules/cycle-check (Depends-on): Likewise.
63471         * modules/dirname (Depends-on): Likewise.
63472         * modules/fnmatch (Depends-on): Likewise.
63473         * modules/fsusage (Depends-on): Likewise.
63474         * modules/fwriteerror (Depends-on): Likewise.
63475         * modules/getcwd (Depends-on): Likewise.
63476         * modules/getloadavg (Depends-on): Likewise.
63477         * modules/hard-locale (Depends-on): Likewise.
63478         * modules/makepath (Depends-on): Likewise.
63479         * modules/mountlist (Depends-on): Likewise.
63480         * modules/nanosleep (Depends-on): Likewise.
63481         * modules/posixtm (Depends-on): Likewise.
63482         * modules/quotearg (Depends-on): Likewise.
63483         * modules/readtokens (Depends-on): Likewise.
63484         * modules/readtokens0 (Depends-on): Likewise.
63485         * modules/readutmp (Depends-on): Likewise.
63486         * modules/save-cwd (Depends-on): Likewise.
63487         * modules/strftime (Depends-on): Likewise.
63488         * modules/userspec (Depends-on): Likewise.
63489         * modules/utimecmp (Depends-on): Likewise.
63490         * modules/xgetcwd (Depends-on): Likewise.
63491         * modules/xnanosleep (Depends-on): Likewise.
63492         * modules/xstrtod (Depends-on): Likewise.
63493         * modules/yesno (Depends-on): Likewise.
63494
63495 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
63496
63497         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
63498         needless checks.
63499
63500 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63501
63502         Merge from coreutils.  Among other things,
63503         add bulletproofing for cases where stdin, stdout, or stderr are closed.
63504         * lib/fd-safer.c: New file.
63505         * lib/fcntl-safer.h, open-safer.c: Remove.
63506         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
63507         * lib/dup-safer.c: Include unistd-safer.h first.
63508         Don't include errno.h.
63509         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
63510         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
63511         * lib/file-type.c: Rely on file-type.h change.
63512         * lib/getloadavg.c: Include unistd-safer.h.
63513         (getloadavg): Use safer open.
63514         * lib/getusershell.c: Include "stdio-safer.h".
63515         (getusershell): Use safer fopen.
63516         * lib/long-options.c (long_options): Use NULL rather than 0.
63517         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
63518         'free'.
63519         * lib/modechange.c: Likewise.
63520         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
63521         (MODE_DONE): New constant.
63522         (struct mode_change): Remove 'next' member.
63523         (make_node_op_equals): New function; like the old one of the
63524         same name, except it allocates an array.
63525         (mode_compile, mode_create_from_ref): Use it.
63526         (mode_compile): Allocate result as an array, not a linked list.
63527         Parse octal string ourself, so that we catch mistakes like "+0".
63528         (mode_adjust): Arg is an array, not a linked list.
63529         * lib/modechange.c: Include stat-macros.h, xalloc.h.
63530         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
63531         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
63532         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
63533         Remove.  This is now stat-macros.h's job.
63534         (talloc): Remove.  All callers replaced by xalloc, so that
63535         our invokers don't have to worry about reporting memory failures.
63536         (make_node_op_equals): Remove.
63537         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63538         New constants.
63539         (struct mode_change): Moved here from modechange.h.
63540         (mode_append_entry): Remove.
63541         (mode_compile): Remove MASKED_OPS arg, since it encouraged
63542         apps to have incorrect behavior.  Use simpler algorithm for head
63543         and tail.  Don't futz with umask; that's now the job of mode_adjust.
63544         Detect more invalid usages rather than having somewhat-random behavior.
63545         Don't insert an "a=" action, as that leads to incorrect behavior.
63546         (mode_compile, mode_create_from_ref): Return NULL on error instead
63547         of an enum, since now there's only one way to have an error.  All
63548         callers changed.
63549         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
63550         at the correct time.  Simplify calculation of "+u" and its ilk.
63551         Don't mishandle "+X".
63552         (mode_free): Remove "register" and localize decls.
63553         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63554         (struct mode_change): Move to modechange.c; callers don't
63555         need to see this stuff.
63556         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
63557         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
63558         (mode_change, mode_adjust): Reflect the new signatures noted above.
63559         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
63560         that might redefine system include files.
63561         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
63562         (my_usleep): Use NULL rather than (void *) 0.
63563         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
63564         Use siginterrupt to specify that system calls should be interrupted.
63565         (rpl_nanosleep): Move initialization of suspended closer to call of
63566         my_usleep.
63567         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
63568         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
63569         (desirable_utmp_entry): New function.
63570         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
63571         using x2nrealloc, to simplify logic.
63572         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
63573         size calculation.  Do not assume utmp file is a regular file.
63574         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
63575         (READ_UTMP_CHECK_PIDS): New constant.
63576         * lib/save-cwd.c: Include unistd-safer.h.
63577         (save_cwd): Use fd_safer.
63578         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
63579         [!_LIBC] Include "stat-macros.h" instead.
63580         * lib/unistd-safer.h (fd_safer): New decl.
63581
63582 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63583
63584         * modules/getloadavg (Depends-on): Add unistd-safer.
63585         * modules/getusershell (Depends-on): Add stdio-safer.
63586         * modules/lstat (Depends-on): Remove xalloc.
63587         * modules/mkstemp (Depends-on): Add stat-macros.
63588         * modules/modechange (Depends-on): Remove xstrtol.
63589         Add stat-macros, xalloc.
63590         * modules/save-cwd (Depends-on): Add unistd-safer.
63591         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
63592         * modules/unistd-safer (Files): Add lib/fd-safer.c
63593         (Makefile.am): Remove lib_SOURCES.
63594
63595         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
63596         Remove fcntl-safer; unistd-safer supersedes it.
63597
63598 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63599
63600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
63601         AC_HEADER_STAT.
63602         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
63603         (gl_PREREQ_CHOWN): Remove.
63604         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
63605         it.  Don't require AC_HEADER_STAT.
63606         (gl_PREREQ_LSTAT): Remove.
63607         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
63608         Don't require AC_HEADER_STAT.
63609         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
63610         (gl_PREREQ_RMDIR): Remove.
63611         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
63612         mention stat-macros.h or AC_HEADER_STAT, since we'll make
63613         the stat-macros module a prerequisite.
63614         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
63615         * m4/filemode.m4 (gl_FILEMODE): Likewise.
63616         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
63617         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
63618         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
63619         variable names.
63620         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
63621         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
63622         variable prefixes.
63623         * m4/fcntl-safer.m4: Remove.
63624         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
63625         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
63626         Invoke gl_PREREQ_FD_SAFER.
63627         (gl_PREREQ_FD_SAFER): New macro.
63628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
63629         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
63630         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
63631         Remove duplicate call to AC_LIBOBJ(readutmp).
63632         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
63633
63634         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
63635         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
63636
63637 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63638
63639         * MODULES.html.sh (Misc): Add byteswap.
63640
63641 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63642
63643         * modules/getcwd (Depends-on): Add extensions.
63644         * modules/openat (Depends-on): Likewise.
63645
63646 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63647
63648         * modules/byteswap: New file.
63649
63650 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63651
63652         * m4/byteswap.m4: New file.
63653
63654 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63655
63656         * lib/byteswap_.h: New file.
63657
63658 2005-04-25  Karl Berry  <karl@gnu.org>
63659
63660         * m4/gettext.m4: Update from GNU gettext 0.14.4.
63661
63662 2005-04-25  Albert Chin  <china@thewrittenword.com>
63663
63664         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
63665         Toolkit C bug.
63666
63667 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
63668
63669         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
63670         (func_ln_if_changed) Remove forcibly for no error message
63671         in case file does not exist.
63672
63673 2005-04-19  Simon Josefsson  <jas@extundo.com>
63674
63675         * gnulib-tool (Options): Make --symlink mean --symbolic.
63676
63677 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
63678
63679         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
63680
63681 2005-04-16  Simon Josefsson  <jas@extundo.com>
63682
63683         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
63684
63685 2005-04-15  Simon Josefsson  <jas@extundo.com>
63686
63687         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
63688
63689 2005-04-15  Simon Josefsson  <jas@extundo.com>
63690
63691         * gnulib-tool: Rename --symlink to --symbolic.
63692
63693 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
63694
63695         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
63696         symbolic links to files instead of copying/moving.  Add --aux-dir,
63697         specifying directory relative --dir where auxiliary build tools
63698         are placed.
63699
63700 2005-04-14  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/allocsa (License): Change to LGPL.
63703         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
63704
63705 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
63708         that "UTC +1 second" continues to work.  Problem reported
63709         by Dmitry V. Levin.
63710         (relunit_snumber): New rule.
63711         (relunit): Use it.
63712
63713 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63714
63715         * lib/getdate.y (universal_time_zone_table): New constant.
63716         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63717         universal_time_zone_table.
63718         (lookup_zone): Prefer universal_time_zone_table to
63719         local_time_zone_table, so that "GMT" time stamps are allowed in
63720         London during the summer.  Problem reported by Ian Abbott.
63721
63722 2005-04-12  Jim Meyering  <jim@meyering.net>
63723
63724         * lib/human.c (humblock): Set *options even when returning due to
63725         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63726         warning from gcc-4.
63727
63728 2005-04-09  Jim Meyering  <jim@meyering.net>
63729
63730         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63731         -Wuninitialized: initialize tm0.tm_year.
63732
63733 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63736         count, since there's no maximum.  All uses changed.
63737         Add member dsts_seen.
63738         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63739         not being INT_MAX.
63740         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63741         Use pc_rels_seen to decide whther a date is absolute.
63742
63743         * lib/getdate.y (number): Don't overwrite year.
63744         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63745         check.
63746
63747 2005-04-02  Simon Josefsson  <jas@extundo.com>
63748
63749         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63750         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63751
63752 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63753
63754         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63755         where no absolute path name can be longer than PATH_MAX.
63756
63757 2005-03-27  Jim Meyering  <jim@meyering.net>
63758
63759         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63760
63761 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63762
63763         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63764         "one's complement" -> "ones' complement" in comment, as per Knuth.
63765         "value of type" -> "type or expression" in comment.
63766         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63767
63768 2005-03-26  Jim Meyering  <jim@meyering.net>
63769
63770         Comment nits.
63771         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63772         Correct typos: s/or/of/.
63773
63774 2005-03-26  Jim Meyering  <jim@meyering.net>
63775
63776         * modules/check-include-files: Move to ../ and rename to...
63777         * check-module: ...this.
63778
63779 2005-03-25  Jim Meyering  <jim@meyering.net>
63780
63781         * modules/xvasprintf (Files): Add xalloc.h.
63782
63783 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * modules/gettext (Files): config/config.rpath ->
63786         build-aux/config.rpath
63787         * modules/iconv (Files): Likewise.
63788         Problem reported by Oskar Liljeblad.
63789
63790 2005-03-23  Jim Meyering  <jim@meyering.net>
63791
63792         * modules/check-include-files: New script to check for
63793         missing dependencies, multiple includes, etc.
63794
63795         * modules/c-strtold (Depends-on): Add xalloc.
63796         * modules/c-strtod (Depends-on): Add xalloc.
63797         * modules/hash (Depends-on): Add xalloc.
63798         (Files): Remove lib/xalloc.h.
63799
63800         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63801         * modules/userspec (Files): Add lib/inttostr.h.
63802
63803 2005-03-23  Jim Meyering  <jim@meyering.net>
63804
63805         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63806
63807 2005-03-22  Jim Meyering  <jim@meyering.net>
63808
63809         * modules/stat-macros: New module.
63810         * modules/canonicalize, modules/euidaccess, modules/file-type,
63811         * modules/filemode, modules/lchown, modules/makepath,
63812         * modules/rmdir, modules/stat: Depend on new stat-macros module
63813         rather than listing lib/stat-macros.h manually.
63814         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63815
63816 2005-03-22  Jim Meyering  <jim@meyering.net>
63817
63818         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63819
63820 2005-03-22  Bruno Haible  <bruno@clisp.org>
63821
63822         * config/srclist.txt: Replace target directory 'config' with
63823         'build-aux'.
63824         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63825         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63826         ../build-aux/.
63827
63828 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * modules/chdir-long (Depends-on): Add mempcpy.
63831
63832         * modules/acl, modules/backupfile, modules/c-strtod,
63833         modules/c-strtold, modules/canon-host, modules/canonicalize,
63834         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63835         modules/exclude, modules/exitfail, modules/file-type,
63836         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63837         modules/getdate, modules/getline, modules/getpagesize,
63838         modules/getpass, modules/getugroups, modules/group-member,
63839         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63840         modules/inttostr, modules/long-options, modules/makepath,
63841         modules/md5, modules/memcasecmp, modules/memcoll,
63842         modules/modechange, modules/mountlist, modules/path-concat,
63843         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63844         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63845         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63846         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63847         modules/strftime, modules/strndup, modules/strverscmp,
63848         modules/timespec, modules/unlocked-io, modules/userspec,
63849         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63850         modules/yesno:
63851         Remove lib_SOURCES line from Makefile.am section, as this is now
63852         done automatically by the corresponding Autoconf macro.
63853
63854 2005-03-21  Jim Meyering  <jim@meyering.net>
63855
63856         Changes imported from coreutils.
63857
63858         * lib/cycle-check.c: Don't include xalloc.h.
63859
63860         * lib/path-concat.c: Don't include assert.h.
63861         (path_concat): Remove assertion that would have triggered
63862         for ABASE starting with more than one slash.
63863         Reported by Andreas Schwab.
63864
63865         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63866         properly when ABASE is an absolute file name.
63867         Correct the description of this function.
63868         Include <assert.h>.
63869         Add an assertion and a test driver.
63870         This fixes a bug introduced on 2004-07-02.
63871         Andreas Schwab reported the resulting failure of cp --parents:
63872         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63873
63874 2005-03-21  Jim Meyering  <jim@meyering.net>
63875
63876         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63877         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63878
63879 2005-03-21  Jim Meyering  <jim@meyering.net>
63880         and  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63883         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63884         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63885         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63886         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63887         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63888         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63889         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63890         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63891         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63892         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63893         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63894         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63895         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63896         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63897         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63898         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63899         for these modules.
63900
63901 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63904         (which shouldn't happen), generate nothing instead of returning 0
63905         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63906
63907 2005-03-16  Bruno Haible  <bruno@clisp.org>
63908
63909         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63910         HAVE_LONGLONG_64BIT.
63911
63912 2005-03-16  Bruno Haible  <bruno@clisp.org>
63913
63914         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63915         HAVE_LONGLONG_64BIT.
63916
63917 2005-03-16  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63920         HAVE_LONGLONG_64BIT.
63921
63922 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63923
63924         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63925         reliably distinguish strftime failure from empty output on POSIX
63926         hosts.
63927
63928 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63931         (iconv_string): Don't guess a size-zero buffer, as that might cause
63932         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63933         result would be 'too large', where 'too large' is (heuristically)
63934         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63935         overflow concerns.  This will prevent some unwanted malloc failures
63936         when the inputs are very large.
63937
63938 2005-03-15  Karl Berry  <karl@gnu.org>
63939
63940         * config/srclist.txt (config.rpath): from gettext.
63941         * config/config.rpath: update.
63942
63943 2005-03-15  Bruno Haible  <bruno@clisp.org>
63944
63945         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63946         to 'negate'.
63947
63948         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63949         variable.
63950
63951         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63952         results.
63953
63954 2005-03-14  Simon Josefsson  <jas@extundo.com>
63955
63956         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63957         <fx@gnu.org>.
63958
63959 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63962         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63963         intprops.h.
63964         * lib/strtol.c: Likewise.
63965
63966 2005-03-14  Jim Meyering  <jim@meyering.net>
63967
63968         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
63969         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
63970         to be nonzero so that we (and caller) can detect the difference
63971         between a valid zero-length expansion and an error return, even
63972         when the underlying strftime fails before writing anything into
63973         that location.
63974
63975 2005-03-14  Bruno Haible  <bruno@clisp.org>
63976
63977         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
63978         Update from GNU gettext 0.14.3.
63979
63980 2005-03-10  Jim Meyering  <jim@meyering.net>
63981
63982         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
63983
63984 2005-03-10  Jim Meyering  <jim@meyering.net>
63985
63986         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
63987         so that this module works on systems without fchdir.
63988
63989 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         Factor int-properties macros into a single file, except for
63992         glibc-related files.
63993         * lib/intprops.h: New file.
63994         * lib/getloadavg.c: Include it instead of limits.h.
63995         (INT_STRLEN_BOUND): Remove.
63996         * lib/human.c: Include intprops.h.
63997         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
63998         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
63999         302/1000.
64000         * lib/inttostr.h: Include intprops.h instead of limits.h.
64001         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
64002         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
64003         for consistency with intprops.h.
64004         (time_t_is_integer, twos_complement_arithmetic): Use them.
64005         * lib/sig2str.h: Include <signal.h>, intprops.h.
64006         (INT_STRLEN_BOUND): Remove.
64007         * lib/strftime.c (TYPE_SIGNED): Remove.
64008         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
64009         * lib/strtol.c: Adjust comments to match intprops.h.
64010         * lib/userspec.c: Include intprops.h.
64011         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
64012         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
64013         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
64014         instead of rolling our own expressions.
64015         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
64016
64017         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
64018         instead of int.
64019         (my_strftime): Do not mishandle years close to INT_MAX, by doing
64020         the right thing even if adding 1900 would overflow.  Similarly
64021         for tm_mon + 1 and tm_yday + 1.
64022         Make %Y always equivalent to %C%y, and similarly for %G and %g.
64023         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
64024         (DO_SIGNED_NUMBER): New macro.
64025         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
64026
64027 2005-03-07  Bruno Haible  <bruno@clisp.org>
64028
64029         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
64030
64031 2005-03-07  Bruno Haible  <bruno@clisp.org>
64032
64033         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
64034
64035 2005-03-04  Derek R. Price  <derek@ximbiot.com>
64036
64037         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
64038         (func_import): Only replace files via --import when they have actually
64039         changed.
64040
64041 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64042
64043         * m4/mmap-anon.m4: New file.
64044         * m4/pagealign_alloc.m4: New file.
64045
64046 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64047             Bruno Haible  <bruno@clisp.org>
64048
64049         * modules/pagealign_alloc: New file.
64050         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
64051
64052 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64053             Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/pagealign_alloc.h: New file.
64056         * lib/pagealign_alloc.c: New file.
64057
64058 2005-03-03  Bruno Haible  <bruno@clisp.org>
64059
64060         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
64061         Use an all-permissive copyright notice, recommended by RMS.
64062
64063 2005-03-02  Bruno Haible  <bruno@clisp.org>
64064
64065         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
64066         of AIX, the replacement has to be done only after <string.h> is
64067         included, therefore not in config.h. stpncpy.h does the replacement,
64068         and stpncpy.c uses it.
64069
64070 2005-03-02  Bruno Haible  <bruno@clisp.org>
64071
64072         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
64073         stpncpy.c uses it.
64074
64075 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
64078         The workaround isn't strictly needed for POSIX conformance, and
64079         it's too much of a pain to configure and maintain.  We'll ask
64080         people to fix their kernels instead.
64081         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
64082         (NANOSLEEP_BUG_WORKAROUND): Remove.
64083         (xnanosleep): Remove the workaround.
64084
64085 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64086
64087         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
64088         Reported by Derek Price.
64089         (Include): Add "timespec.h".
64090
64091         * modules/xnanosleep (Depends-on): Remove gethrxtime.
64092
64093 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
64096         to detect nanosleep bug.
64097
64098 2005-03-01  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
64101
64102 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64103
64104         * modules/gethrxtime: New file.
64105         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
64106         (Depends-on): Add gethrxtime.
64107         (configure.ac): Add gl_XNANOSLEEP.
64108         (Makefile.am): Remove lib_SOURCES line.
64109
64110 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64111
64112         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
64113         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
64114
64115 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
64118         * lib/timespec.h (gettime): Return void, since it always
64119         succeeds now.  All uses changed.
64120         * lib/gettime.c (gettime) Likewise.
64121         [HAVE_NANOTIME]: Prefer nanotime.
64122         Assume gettimeofday succeeds, as POSIX requires.
64123         Assime time () succeeds, since other code already does.
64124         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
64125         (timespec_subtract): Remove.
64126         (NANOSLEEP_BUG_WORKAROUND): New constant.
64127         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
64128         things considerably.  Use it only on GNU/Linux hosts, since the
64129         workaround shouldn't be needed elsewhere.
64130
64131 2005-02-24  Bruno Haible  <bruno@clisp.org>
64132
64133         * modules/gettext (Files): Add m4/glibc2.m4.
64134
64135 2005-02-24  Bruno Haible  <bruno@clisp.org>
64136
64137         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
64138         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
64139         * m4/progtest.m4:
64140         Update from GNU gettext 0.14.2.
64141         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
64142
64143 2005-02-24  Bruno Haible  <bruno@clisp.org>
64144
64145         * lib/localcharset.c: Update from GNU gettext 0.14.2.
64146         * lib/config.charset: Update from GNU gettext 0.14.2.
64147
64148 2005-02-24  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/gettext.h: Update from GNU gettext 0.14.2.
64151
64152 2005-02-23  Simon Josefsson  <jas@extundo.com>
64153
64154         * m4/iconvme.m4: New file.
64155
64156 2005-02-23  Jim Meyering  <jim@meyering.net>
64157
64158         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
64159         change.
64160         Thanks to Bruno Haible for catching it.
64161
64162 2005-02-22  Simon Josefsson  <jas@extundo.com>
64163
64164         * modules/iconvme: New file.
64165
64166         * MODULES.html.sh: Add iconvme.
64167
64168 2005-02-22  Simon Josefsson  <jas@extundo.com>
64169
64170         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
64171
64172 2005-02-22  Simon Josefsson  <jas@extundo.com>
64173
64174         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
64175
64176 2005-02-22  Jim Meyering  <jim@meyering.net>
64177
64178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
64179         s/ifndef/ifdef/.
64180
64181 2005-02-20  Neil Conway  <neilc@samurai.com>
64182
64183         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
64184         returned by OSX/Darwin if the specified buffer is not large
64185         enough for the hostname.
64186
64187 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64188
64189         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
64190         pass it to _help, otherwise the latter coredumps trying to
64191         dereference state.root_argp.
64192
64193 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         * modules/chdir-long (Depends-on): Add memrchr.
64196         * modules/memrchr (Files): Add lib/memrchr.h.
64197         (Include): "memrchr.h".
64198
64199 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
64202
64203 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64204
64205         * lib/memrchr.h: New file.
64206         * lib/chdir-long.c: Include it.
64207         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
64208         Don't bother including stddef.h.
64209
64210 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
64213         inclusion.
64214         Include <sys/types.h>, for dev_t.
64215         (ME_DUMMY, ME_REMOTE): Move from here....
64216         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
64217         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
64218         Dmitry V. Levin.
64219         Include mountlist.h first, to test the interface.
64220
64221 2005-01-29  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/progname.c (program_name): Initialize.
64224         Needed when linking statically on MacOS X.
64225
64226 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         Sync from coreutils.
64229         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
64230         (Depends-on): Add c-strtod.
64231         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
64232
64233 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         Sync from coreutils.
64236         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
64237
64238         Remove files that are specific to coreutils.
64239         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
64240
64241 2005-01-28  Bruno Haible  <bruno@clisp.org>
64242
64243         * modules/javacomp: New file.
64244         * MODULES.html.sh (Java): Add javacomp.
64245
64246 2005-01-28  Bruno Haible  <bruno@clisp.org>
64247
64248         * m4/javacomp.m4: New file, from GNU gettext.
64249
64250 2005-01-28  Bruno Haible  <bruno@clisp.org>
64251
64252         * lib/javacomp.sh.in: New file, from GNU gettext.
64253         * lib/javacomp.h: New file, from GNU gettext.
64254         * lib/javacomp.c: New file, from GNU gettext.
64255
64256 2005-01-26  Simon Josefsson  <jas@extundo.com>
64257
64258         * lib/gai_strerror.c: Use GPL in header.
64259
64260 2005-01-26  Bruno Haible  <bruno@clisp.org>
64261
64262         * modules/javaexec: New file.
64263         * MODULES.html.sh (Java): Add javaexec.
64264
64265 2005-01-26  Bruno Haible  <bruno@clisp.org>
64266
64267         * m4/javaexec.m4: New file, from GNU gettext.
64268
64269 2005-01-26  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/javaexec.sh.in: New file, from GNU gettext.
64272         * lib/javaexec.h: New file, from GNU gettext.
64273         * lib/javaexec.c: New file, from GNU gettext.
64274
64275 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64276
64277         * modules/lchown (Depends-on): Remove lchown.h
64278
64279 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64280
64281         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
64282         must be defined if the header file was not found, in order
64283         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
64284
64285 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64286
64287         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
64288         initializers for struct pentry_state.
64289         (__argp_error): Check return value of __asprintf
64290         (__argp_failure): Translate error message
64291
64292         * lib/argp-parse.c: Removed braces around the expansion of N_()
64293
64294 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
64297         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
64298         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
64299         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
64300         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
64301         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
64302         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
64303         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
64304         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
64305         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
64306         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
64307         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
64308         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
64309         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
64310         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
64311         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
64312         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
64313         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
64314         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
64315         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
64316         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
64317         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
64318         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
64319         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
64320         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
64321         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
64322         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
64323         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
64324         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
64325         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
64326         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
64327         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
64328         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
64329         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
64330         xstrtol.m4, xstrtoumax.m4, yesno.m4:
64331         Use an all-permissive copyright notice, recommended by RMS.
64332
64333 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
64334
64335         * modules/chdir-long (Depends-on): Remove mempcpy.
64336
64337 2005-01-21  Jim Meyering  <jim@meyering.net>
64338
64339         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
64340         same value as for Solaris 9.
64341
64342         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
64343         component length.  This included changing the parameter to be
64344         of type `char *' rather than `char const *'.
64345         * lib/chdir-long.h (chdir_long): Update prototype.
64346
64347         * lib/openat.c (fdopendir, fstatat): New functions.
64348         * lib/openat.h: Include headers required for use of DIR and struct
64349         stat.
64350         [AT_SYMLINK_NOFOLLOW]: Define.
64351         (fdopendir, fstatat): Add prototypes.
64352
64353 2005-01-21  Bruno Haible  <bruno@clisp.org>
64354
64355         * modules/classpath: New file.
64356         * MODULES.html.sh (Java): Add classpath.
64357
64358 2005-01-21  Bruno Haible  <bruno@clisp.org>
64359
64360         * lib/classpath.h: New file, from GNU gettext.
64361         * lib/classpath.c: New file, from GNU gettext.
64362
64363 2005-01-20  Simon Josefsson  <jas@extundo.com>
64364
64365         * modules/version-etc-fsf: New file.
64366
64367 2005-01-20  Simon Josefsson  <jas@extundo.com>
64368
64369         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
64370         * lib/version-etc.c: Remove version_etc_copyright.
64371         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
64372         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
64373
64374 2005-01-20  Simon Josefsson  <jas@extundo.com>
64375
64376         * lib/base64.h (isbase64): Add.
64377
64378         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
64379         using a unsigned prototype, don't inline.
64380         (base64_decode): Use it.
64381
64382 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
64385         it.
64386
64387 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64388
64389         * lib/save-cwd.c (save_cwd): Remove code to support the case
64390         where fchdir is missing or flaky.
64391
64392 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64393
64394         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
64395
64396 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64397
64398         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
64399         AC_LIBSOURCES now does this.
64400         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
64401         with new ullong_max module.
64402
64403 2005-01-19  Bruno Haible  <bruno@clisp.org>
64404
64405         * modules/sh-quote: New file.
64406         * MODULES.html.sh (Executing programs): Add sh-quote.
64407
64408 2005-01-19  Bruno Haible  <bruno@clisp.org>
64409
64410         * lib/sh-quote.h: New file, from GNU gettext.
64411         * lib/sh-quote.c: New file, from GNU gettext.
64412
64413 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         Merge from coreutils.
64416         * m4/ullong_max.m4: New file.
64417         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
64418         (gl_MACROS): Assume localeconv exists.
64419
64420 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64421
64422         Merge changes from coreutils, as described below in several
64423         changelogs dated today.
64424
64425         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
64426         (O_DIRECTORY): Remove; not needed here, since "." must be
64427         a directory.  All uses removed.
64428         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
64429         universal on Suns, and we also need to test for IRIX.
64430         Revamp code to use 'if' rather than '#if'.
64431         Avoid unnecessary comparison of cwd->desc to 0.
64432
64433         * lib/utimens.c (futimens): Robustify the previous patch, by checking
64434         for known valid error numbers rather than observed invalid ones.
64435
64436 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         * modules/ullong_max: New file.
64439
64440         * modules/chdir-long, modules/openat: New files.
64441         * modules/save-cwd (Depends-on): Depend on chdir-long.
64442         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
64443
64444 2005-01-18  Jim Meyering  <jim@meyering.net>
64445
64446         Merge from coreutils.
64447         * m4/chdir-long.m4, m4/openat.m4: New files.
64448         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
64449         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
64450         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
64451         is sane and DOES follow symlinks.  Besides, testing 20 different
64452         systems found no broken chown implementations.
64453         Prompted by a change in rsync's copy of this macro.
64454         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
64455
64456         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
64457
64458         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
64459         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
64460         NULL-means-set-to-current-time semantics.
64461         Remove temporary file immediately, rather than waiting
64462         for configure's at-exit trap code to do it.
64463
64464 2005-01-18  Jim Meyering  <jim@meyering.net>
64465
64466         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64467
64468         * lib/utimens.c (futimens): Account for the fact that futimes
64469         can also fail with errno == ENOSYS or errno == ENOENT.
64470         Patch from Dmitry V. Levin.
64471
64472         Change the name of the robust chdir function from chdir to chdir_long.
64473         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
64474         (restore_cwd): Use chdir_long, not chdir.
64475         * lib/chdir-long.c: Renamed from chdir.c.
64476         * lib/chdir-long.h: Renamed from chdir.h.
64477         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
64478         Hurd.
64479
64480 2005-01-18  Bruno Haible  <bruno@clisp.org>
64481
64482         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
64483         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
64484         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
64485         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
64486         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
64487         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
64488         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
64489         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
64490         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
64491         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
64492         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
64493         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
64494         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
64495         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
64496         Use an all-permissive copyright notice, recommended by RMS.
64497
64498 2005-01-18  Bob Proulx  <bob@proulx.com>
64499
64500         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
64501         simplify offsetof() macro construct to avoid compile failure with
64502         native HP-UX 11.0 ANSI C compiler.
64503
64504 2005-01-17  Bruno Haible  <bruno@clisp.org>
64505
64506         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
64507         redundant because stpncpy.m4 takes care of it.
64508
64509 2005-01-17  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
64512
64513 2005-01-17  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
64516         used.
64517
64518 2005-01-17  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/fwriteerror.h (fwriteerror): Change specification to include
64521         fclose.
64522         * lib/fwriteerror.c: Include <stdbool.h>.
64523         (fwriteerror): At the end, close the file stream. Record whether
64524         stdout was already closed.
64525
64526 2005-01-17  Bruno Haible  <bruno@clisp.org>
64527
64528         * lib/execute.c (environ): Declare if needed.
64529         * lib/pipe.c (environ): Likewise.
64530         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
64531
64532 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64533
64534         * modules/argp: Depend on vsnprintf
64535
64536 2005-01-10  Jim Meyering  <jim@meyering.net>
64537
64538         * modules/closeout (Depends-on): Add atexit.
64539
64540 2005-01-06  Bruno Haible  <bruno@clisp.org>
64541
64542         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
64543
64544 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
64547         definitions to be after all include files, to avoid collisions.
64548         Problem reported by Bob Proulx.
64549
64550 2005-01-04  Jim Meyering  <jim@meyering.net>
64551
64552         Changes imported from coreutils.
64553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
64554         as the mkstemp template, use a temporary directory and an
64555         8.3-friendly template to avoid trouble on systems like DJGPP.
64556         Reported by Juan M. Guerrero via Stepan Kasal.
64557         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
64558         close. Remove the temporary directory right away, rather than waiting
64559         for configure's at-exit trap code to do it.
64560         Suggestion from Stepan Kasal.
64561
64562 2005-01-01  Simon Josefsson  <jas@extundo.com>
64563
64564         * gnulib-tool: Print #include directives when --import'ing.
64565
64566 2004-12-28  Simon Josefsson  <jas@extundo.com>
64567
64568         * tests/test-base64.c: Include required header files.  Remove
64569         unused variables.
64570
64571 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * modules/error (Depends-on): Remove gettext.
64574
64575 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
64578         not needed.  This removes a dependency on the gettext module.
64579         [defined _LIBC]: Do not include <libintl.h>; not needed.
64580
64581 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
64584         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
64585
64586 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
64589         HAVE_DECL_STRTOLD.
64590
64591 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         * modules/getdate (Depends-on): Remove alloca-opt.
64594
64595 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
64598
64599 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * lib/argp-parse.c: Include <stddef.h>.
64602         (alignof, alignto): New macros.
64603         (parser_init): Don't assume that void * is aligned sufficiently
64604         for struct option.
64605
64606         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
64607         need to extend the stack.
64608         (YYINITDEPTH): New macro, so that the initial stack isn't overly
64609         large.
64610
64611 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64612
64613         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
64614
64615 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
64618         (2004-10-24) change.  Apparently this was a false alarm.
64619
64620         * modules/getdate: Depend on alloca-opt, not alloca.
64621
64622 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
64625         Remove now-obsolete comment about AIX.
64626         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
64627         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
64628         (YYMAXDEPTH): New macro.
64629
64630 2004-12-18  Simon Josefsson  <jas@extundo.com>
64631
64632         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
64633
64634 2004-12-18  Bruno Haible  <bruno@clisp.org>
64635
64636         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
64637
64638 2004-12-18  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/fatal-signal.c (fatal_signals): Make non-const.
64641         (init_fatal_signals): New function.
64642         (uninstall_handlers, install_handlers): Ignore signals that were set to
64643         SIG_IGN.
64644         (at_fatal_signal): Call init_fatal_signals.
64645         (init_fatal_signal_set): Likewise. Ignore signals that were set to
64646         SIG_IGN.
64647         Reported by Paul Eggert.
64648
64649 2004-12-18  Bruno Haible  <bruno@clisp.org>
64650
64651         * doc/alloca.texi: New file.
64652         * doc/alloca-opt.texi: New file.
64653
64654 2004-12-17  Jim Meyering  <jim@meyering.net>
64655
64656         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
64657         Otherwise, install-sh could exit with improper exit status when
64658         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
64659
64660 2004-12-16  Simon Josefsson  <jas@extundo.com>
64661
64662         * tests/test-base64.c: Add license.
64663
64664 2004-12-15  Stepan Kasal  <address@hidden>
64665
64666         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
64667
64668 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
64669
64670         * modules/getcwd (Files): Add m4/d-ino.m4.
64671         Suggested by Mark D. Baushke.
64672
64673 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64674
64675         * lib/getdate.y (textint): New member "negative".
64676         (time_zone_hhmm): New function.
64677         Expect 14 shift-reduce conflicts, not 13.
64678         (o_colon_minutes): New rule.
64679         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
64680         (yylex): Set the "negative" member of signed numbers.
64681
64682 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64683
64684         * doc/getdate.texi (Time of day items, Time zone items):
64685         Describe new formats +00:00, UTC+00:00.
64686
64687 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64688
64689         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
64690         spurious "-l"s.  Problem reported by Stepan Kasal.
64691
64692 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
64695         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
64696
64697 2004-12-04  Simon Josefsson  <jas@extundo.com>
64698
64699         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
64700         Vandoorselaere <yoann@prelude-ids.org>.
64701
64702 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         Changes imported from coreutils.
64705         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
64706         exist.
64707         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
64708
64709 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64710
64711         Changes imported from coreutils.
64712         * lib/hard-locale.c: Assume <locale.h> exists.
64713         Include "strdup.h".
64714         (GLIBC_VERSION): New macro.
64715         (hard_locale): Assume setlocale exists.
64716         Rewrite to avoid #ifdef.
64717         Use strdup rather than malloc + strcpy.
64718         * lib/human.c: Assume <locale.h> exists.
64719         (human_readable): Assume localeconv exists.
64720
64721 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * modules/hard-locale (Depends-on): Add strdup.
64724
64725 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64726
64727         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64728         convert T2, not T.  (Imported from libc.)
64729
64730 2004-11-30  Simon Josefsson  <jas@extundo.com>
64731
64732         * modules/restrict (License): Change to LGPL.
64733
64734 2004-11-30  Simon Josefsson  <jas@extundo.com>
64735
64736         * m4/restrict.m4: Add copyright and copying conditions.
64737
64738 2004-11-30  Simon Josefsson  <jas@extundo.com>
64739
64740         * m4/base64.m4: New file.
64741
64742 2004-11-30  Simon Josefsson  <jas@extundo.com>
64743
64744         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64745         base64.
64746
64747         * tests/test-base64.c: New file.
64748
64749         * modules/base64: New file.
64750
64751 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64754         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64755
64756         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64757
64758 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64761         (__getcwd.c): Don't restore errno; glibc doesn't.
64762         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64763         first, falling back to our code only if its results look suspicious.
64764         Ensure that the resulting buffer is only as large as necessary.
64765
64766         * lib/readutmp.c: Include readutmp.h first.
64767         Include <errno.h>, since readutmp.h no longer does that.
64768         * lib/readutmp.h: Don't include <errno.h>,
64769         <sys/param.h>, <time.h>; not needed to establish interface.
64770         (errno): Remove decl.
64771         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64772         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64773         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64774
64775 2004-11-28  Simon Josefsson  <jas@extundo.com>
64776
64777         * lib/base64.h, base64.c: New file.
64778
64779 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64782
64783 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64786         (Depends-on): Remove pathmax, same.  Add mempcpy.
64787         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64788         (Makefile.am): Append getcwd.h to lib_SOURCES.
64789         (Include): Add getcwd.h.
64790         (Maintainer): Change from Jim Meyering to "all, glibc",
64791         since getdate now uses intended-for-glibc code.
64792         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64793         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64794
64795 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64798         HP's ANSI C compiler.
64799         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64800         Declaring int functions causes warnings on some modern systems and
64801         shouldn't be needed to compile on ancient ones.
64802         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64803         defined.
64804
64805         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64806         with the following changes.
64807         (__set_errno): Parenthesize properly.
64808         Include <stdbool.h>.
64809         (MIN, MAX, MATCHING_INO): New macros.
64810         (__getcwd): Define with prototype, not K&R form.
64811         Use heuristics to allocate default buffer on stack if possible.
64812         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64813         behavior, and to avoid the PATH_MAX limit when computing
64814         ../../../../...
64815         Use MATCHING_INO to compare inode number to file.
64816         Check for arithmetic overflow in size calculations.
64817         Fix bug in reallocation of dot array that caused getcwd to fail
64818         on directories nested deeper than 75.
64819         Be more careful about saving errno on error.
64820         Do not use realloc; use only free+malloc, as this is a bit
64821         more flexible and avoids a needless copy operation.
64822         Do not inspect st_dev and st_ino for symbolic links; POSIX
64823         doesn't specify the latter.
64824         Check for closedir errors.
64825         Avoid needless casts.
64826         Use "#ifdef weak_alias" around weak_alias, to be like other
64827         glibc code.
64828         The following changes to getcwd.c have effect only when used in
64829         gnulib; they have no effect inside glibc proper.
64830         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64831         as alloca isn't used.
64832         (alloca, __alloca): Likewise.
64833         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64834         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64835         unconditionally, as gnulib assumes C89 or better.
64836         Do not include <sys/param.h>.
64837         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64838         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64839         better.
64840         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64841         Include <dirent.h> in a way that is compatible with modern Autoconf.
64842         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64843         New macros, if not already defined.
64844         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64845         Use "_LIBC", not "defined _LIBC", for consistency.
64846         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64847         a mempcpy module.
64848         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64849         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64850         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64851         credit only to Jim Meyering and adjust the copyright dates.
64852         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64853         <stdlib.h>, <unistd.h>, "pathmax.h".
64854         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64855         (INITIAL_BUFFER_SIZE): Remove.
64856         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64857
64858 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64861         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64862         Use the _ONCE methods, for efficiency.
64863         Check for fcntl.h.  In test program, include <errno.h>
64864         and <fcntl.h> if available.  Remove old K&R cruft from
64865         test program.  Check for common errors in GNU/Linux,
64866         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64867         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64868         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64869         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64870         name accordingly.
64871         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64872         accommodate new getcwd.c.
64873         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64874         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64875         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64876         that's all we need now.
64877
64878 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64879
64880         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64881         argp-parse.c depends on getopt internals, that means we should
64882         always use our getopt, to be on the safe side.
64883         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64884         order not to spoil the result of an eventual previous invocation
64885         of gl_GETOPT_SUBSTITUTE.
64886
64887 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64888
64889         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64890         redefinition warnings. To avoid them, include the defines
64891         in `#if !defined __need_getopt ... #endif'. The only place
64892         where __getopt_argv_const is used is in definitions
64893         of getopt_long and getopt_long_only below, which are as well
64894         protected by `#ifndef __need_getopt'.
64895         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64896         __need_getopt after including <stdio.h> and <unistd.h> These
64897         headers might have defined it.
64898
64899 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64900
64901         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64902
64903 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64906         (futimens): New function, which uses futimes if available.
64907         (futimens, utimens): Support timespec==NULL, with same semantics
64908         as utime and utimens.
64909         * lib/utimens.h (futimens): New decl.
64910
64911 2004-11-23  Jim Meyering  <jim@meyering.net>
64912
64913         * lib/getopt_.h: Remove trailing blanks.
64914
64915 2004-11-23  Jim Meyering  <jim@meyering.net>
64916
64917         * lib/__fpending.c: Add comment.
64918
64919 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * modules/canonicalize (Depends-on): Add xreadlink.
64922         Problem reported by James Youngman.
64923
64924 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64927         New macros.
64928         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64929         optopt): Use them instead of invoking ## directly; otherwise, the
64930         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64931
64932 2004-11-19  Bruno Haible  <bruno@clisp.org>
64933
64934         * lib/strtok_r.c: Move comments from here...
64935         * lib/strtok_r.h: ... to here.
64936
64937 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64938
64939         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64940         implementations that mishandle size_t overflow.
64941
64942 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64945         might fail.  Problem reported by Yoann Vandoorselaere.
64946         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64947         implementations that mishandle size_t overflow.
64948
64949 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * modules/canon-host (Depends-on): Add strdup.
64952
64953 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64956
64957 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64958
64959         * lib/canon-host.c: Include "strdup.h".
64960         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64961         Use strdup instead of malloc/strcpy to duplicate strings.
64962
64963         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64964         (human_space_before_unit): New constant.
64965         * lib/human.c (human_readable): Support it.
64966
64967         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
64968         (xgetcwd): Set errno correctly when failing.
64969         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
64970         the failure is actually due to a PATH_MAX problem.
64971
64972         Further getopt changes to make it more likely that glibc will
64973         buy the changes back.
64974         * lib/getopt.c (POSIXLY_CORRECT): New constant.
64975         (getopt): Use it, so to preserve glibc semantic
64976         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
64977         when compiling for libc.
64978         * lib/getopt_.h (__getopt_argv_const): Bring it back.
64979         (getopt_long, getopt_long_only): Use it.
64980
64981         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64982         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
64983         (getopt): Argv is now char * const *, as per standard.
64984         (_getopt_internal_r, _getopt_internal): Argv is now char **,
64985         not char *__getopt_argv_const *.
64986         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64987         _getopt_long_only_r): Likewise.
64988         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
64989         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64990         _getopt_long_r, _getopt_long_only_r): Likewise.
64991         * lib/getopt_.h (__getopt_argv_const): Remove.
64992         (getopt): Argv is now char * const *, as per standard.
64993
64994         * lib/getdate.y (tORDINAL): New token.
64995         (day, relunit): Allow it for relative times.
64996         (relative_time_table): Use tORDINAL for ordinals.
64997
64998 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64999
65000         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
65001         Document that "second" isn't allowed as an ordinal number.
65002
65003 2004-11-16  Jim Meyering  <jim@meyering.net>
65004
65005         * modules/closeout (Depends-on): Add fpending.
65006
65007 2004-11-15  Jim Meyering  <jim@meyering.net>
65008
65009         * lib/closeout.c: Include "__fpending.h" once again.
65010         Include <stdbool.h>.
65011         (close_stdout): Don't fail just because stdout was closed initially,
65012         since some programs don't write to stdout in the normal course of
65013         operation (other than --version and --help), and we don't want this
65014         function to make e.g. `touch file >&-' fail.
65015         But do fail if it was closed and someone has tried to write to it.
65016         E.g., `printf foo >&-' must fail.
65017
65018 2004-11-13  Jim Meyering  <jim@meyering.net>
65019
65020         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
65021
65022 2004-11-12  Simon Josefsson  <jas@extundo.com>
65023
65024         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
65025         small doc fix is still pending.
65026
65027 2004-11-11  Simon Josefsson  <jas@extundo.com>
65028
65029         * modules/strtok_r: New file.
65030
65031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65032         strtok_r.
65033
65034 2004-11-11  Simon Josefsson  <jas@extundo.com>
65035
65036         * m4/strtok_r.m4: New file.
65037
65038         * m4/getopt.m4: Replace opterr.
65039
65040 2004-11-11  Simon Josefsson  <jas@extundo.com>
65041
65042         * lib/strtok_r.h, strtok_r.c: New file.
65043
65044 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
65047         of replacing opterr, getopt, etc.  This should handle the
65048         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
65049
65050 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65051
65052         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
65053         we can stop lying to compilers about the constness of argv when we
65054         are compiled outside glibc.
65055         (getopt, getopt_long, getopt_long_only): Use it.
65056         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65057         _getopt_internal, getopt): Likewise.
65058         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65059         _getopt_long_only_r): Likewise.
65060         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65061         _getopt_long_r, _getopt_long_only_r): Likewise.
65062
65063         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
65064         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
65065         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
65066         the other external symbols.
65067         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
65068         declaration, since the above renaming now works around collisions.
65069
65070 2004-11-11  Jim Meyering  <jim@meyering.net>
65071
65072         * lib/linebreak.c: Remove trailing blanks.
65073         * lib/alloca_.h: Likewise.
65074         * lib/acosl.c: Likewise.
65075         * lib/euidaccess.c: Likewise.
65076         * lib/allocsa.h: Likewise.
65077
65078 2004-11-10  Simon Josefsson  <jas@extundo.com>
65079
65080         * m4/getaddrinfo.m4: New file.
65081
65082 2004-11-10  Simon Josefsson  <jas@extundo.com>
65083
65084         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
65085
65086 2004-11-10  Simon Josefsson  <jas@extundo.com>
65087
65088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65089         getaddrinfo.
65090
65091         * modules/getaddrinfo: New file.
65092
65093 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
65096
65097 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         * lib/mktime.c (SHR): New macro, which is a portable
65100         substitute for >> that should work even on Crays.
65101         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
65102         Problem reported by Mark D. Baushke in
65103         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
65104         * lib/getdate.y (SHR): Likewise.
65105         (tm_diff): Use it.
65106         * lib/strftime.c (SHR): Likewise.
65107         (tm_diff): Use it.
65108         * lib/quotearg.c (struct quoting_options): Use unsigned int for
65109         quote_these_too, so that right shifts are well defined.  All uses
65110         changed.
65111
65112 2004-11-10  Jim Meyering  <jim@meyering.net>
65113
65114         Ensure that no close failure goes unreported.
65115         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
65116         return early when it seems there's nothing to flush.
65117         Don't include __fpending.h.
65118
65119 2004-11-10  Jim Meyering  <jim@meyering.net>
65120
65121         * modules/closeout (Depends-on): Remove fpending.
65122
65123 2004-11-10  Jim Meyering  <jim@meyering.net>
65124
65125         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
65126
65127 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65128
65129         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
65130         gl_FUNC_STRFTIME.
65131         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
65132         and AC_REQUIRE when possible, to avoid duplicate checks.
65133         Check for <wchar.h>.
65134
65135 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65136
65137         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
65138
65139 2004-11-09  Bruno Haible  <bruno@clisp.org>
65140
65141         * m4/sockpfaf.m4: New file.
65142
65143 2004-11-05  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
65146         Reported by Mark D. Baushke <mdb@cvshome.org>.
65147
65148 2004-11-04  Bruno Haible  <bruno@clisp.org>
65149
65150         2004-09-11  Bruno Haible  <bruno@clisp.org>
65151                 * allocsa.valgrind: New file.
65152         2004-02-06  Bruno Haible  <bruno@clisp.org>
65153                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
65154                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
65155                 Reported by Christopher Seip <chris.seip@hp.com>.
65156
65157 2004-11-04  Bruno Haible  <bruno@clisp.org>
65158
65159         * modules/allocsa (Files): Add lib/allocsa.valgrind.
65160         (Makefile.am): Distribute it.
65161
65162 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65163
65164         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
65165         with errno == ERANGE if the buffer is too small.
65166         Problem reported by Mark D. Baushke.
65167
65168 2004-11-03  Albert Chin  <china@thewrittenword.com>
65169             Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
65172         equivalent, substitute $ac_type for equivalent type rather than
65173         blindly using uint32_t *always* which won't work if uint32_t is not
65174         available.  Define _UINT32_T to work around typedef of uint32_t if
65175         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
65176         2.5.1.
65177
65178 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * m4/jm-macros.m4: Sync from coreutils.
65181         (gl_MACROS): Check for mbrlen, for pathchk.
65182         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
65183
65184 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         * lib/xreadlink.c (MAXSIZE): New macro.
65187         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
65188         size does not exceed MAXSIZE.  Avoid cast.
65189         As suggested by Mark D. Baushke in
65190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
65191         if readlink fails with buffer size just under MAXSIZE, try again
65192         with MAXSIZE.
65193
65194 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
65197
65198 2004-11-02  Derek R. Price  <derek@ximbiot.com>
65199         and  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
65202         (get_date): Overparenthesize to avoid GCC warning.
65203
65204 2004-11-02  Bruno Haible  <bruno@clisp.org>
65205
65206         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
65207         returns void.
65208
65209 2004-11-02  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
65212         function returns void.
65213
65214 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65215
65216         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
65217         fflush_unlocked, flockfile, funlockfile, funlockfile,
65218         fputs_unlocked, putc_unlocked.
65219
65220 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65223         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
65224         already declared.
65225
65226 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         * modules/getdate (Files): Add doc/getdate.texi.
65229         (Depends-on): Add setenv, xalloc.
65230
65231 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * lib/getdate.y: Add support for TZ="foo" within a date string.
65234         Fix some bugs near time_t boundaries.  Reject dates with
65235         out-of-range components, e.g., "Sept 31".
65236         Include <stdlib.h>, "setenv.h", "xalloc.h".
65237         (ISDIGIT_LOCALE): Remove; unused.
65238         Note that the TZ and time functions used here are not reentrant.
65239         (mktime_ok, get_tz): New functions.
65240         (TZBUFSIZE): New constant.
65241         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
65242         This requires that we sometimes generate our own TZ="XXX..." setting.
65243
65244 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65245
65246         * doc/getdate.texi: New file, from coreutils with modifications for
65247         the new TZ parsing.
65248
65249 2004-10-27  Derek R. Price  <derek@ximbiot.com>
65250
65251         * lib/mktime.c (not_equal_tm): Remove redundant check.
65252
65253 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65254
65255         * modules/regex (lib_SOURCES): Add regex.c.
65256         Reported by James Youngman in
65257         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
65258
65259 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         * lib/getdate.y: Use Bison 1.875 features, and some minor
65262         code cleanups.  This change does not affect semantics.
65263         Don't include <stdlib.h>; no longer needed.
65264         Don't include unlocked-io.h; only the "#if TEST" code uses
65265         stdio, and performance isn't crucial there.
65266         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
65267         Bison 1.875 features as described below.
65268         All uses of "PC." replaced by "pc->".
65269         (YYSTYPE): Add a forward declaration.
65270         (yylex, yyerror): Use full prototypes in forward decls.
65271         Use "%pure-parser" rather than obsolescent "%pure_parser".
65272         Use %parse-param and %lex-param instead of obsolescent
65273         YYPARSE_PARAM and YYLEX_PARAM.
65274         (meridian_table, month_and_day_table, time_units_table,
65275         relative_time_table, time_zone_table, military_table,
65276         lookup_zone, lookup_word, get_date):
65277         Use NULL instead of 0 where appropriate.
65278         (to_hour): Avoid abort (), to avoid a dependency on
65279         stdlib.h.
65280         (yyerror, yylex): Now accepts parser_control * arg.
65281         (main) [TEST]: Use '\0' rather than 0 for char.
65282
65283 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
65286
65287 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
65290         It's now the caller's responsibility to handle the case where
65291         !HAVE_GETPAGESIZE && !defined getpagesize.
65292
65293         * lib/mktime.c (leapyear): Arg is long int, not int.
65294
65295 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
65298
65299 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65300
65301         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
65302         missing.  Problem reported by James Youngman.
65303
65304 2004-10-16  Simon Josefsson  <jas@extundo.com>
65305
65306         * gnulib-tool: Fix comments.  Fix parse problem.
65307         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
65308
65309 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
65312         implementation of getopt_long.  Problem reported by Alexander Taler in:
65313         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
65314
65315 2004-10-15  Bruno Haible  <bruno@clisp.org>
65316
65317         * gnulib-tool: Untabify. Initialize supplied_libname.
65318         (func_usage): More homogenous output.
65319         (func_modules_transitive_closure, func_modules_to_filelist,
65320         func_emit_lib_Makefile_am): New functions.
65321         (func_import): New function, extracted from big case statement. Use
65322         func_get_license, func_modules_transitive_closure,
65323         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
65324         opt_lgpl. Don't use test -a, as it's not portable.
65325         (func_create_testdir): Use func_modules_transitive_closure,
65326         func_modules_to_filelist, func_emit_lib_Makefile_am.
65327
65328 2004-10-15  Bruno Haible  <bruno@clisp.org>
65329
65330         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
65331
65332 2004-10-15  Bruno Haible  <bruno@clisp.org>
65333
65334         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
65335         the portions belonging to each module.
65336         Suggested by Derek Robert Price <derek@ximbiot.com>.
65337
65338 2004-10-12  Simon Josefsson  <jas@extundo.com>
65339
65340         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65341         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
65342         to real functions.
65343
65344 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65345
65346         * modules/vsnprintf: New file.
65347
65348 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65349
65350         * m4/vsnprintf.m4: New file.
65351
65352 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65353
65354         * lib/vsnprintf.h: New file.
65355         * lib/vsnprintf.c: New file.
65356
65357 2004-10-11  Bruno Haible  <bruno@clisp.org>
65358
65359         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
65360         vsnprintf.
65361
65362 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65363
65364         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
65365
65366 2004-10-07  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
65369         fits into the provided buffer.
65370
65371 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * lib/diacrit.c, diacrit.h: Add GPL notice.
65374
65375         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
65376         notice.
65377         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
65378         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
65379         This avoids a potential constant-folding bug.
65380
65381 2004-10-05  Bruno Haible  <bruno@clisp.org>
65382
65383         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
65384         for the declaration of strsep.
65385
65386 2004-10-05  Bruno Haible  <bruno@clisp.org>
65387
65388         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
65389
65390 2004-10-04  Simon Josefsson  <jas@extundo.com>
65391
65392         * modules/memmem: New file.
65393         * tests/test-memmem.c: New file.
65394         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
65395
65396 2004-10-04  Simon Josefsson  <jas@extundo.com>
65397
65398         * m4/memmem.m4: New file.
65399
65400 2004-10-04  Simon Josefsson  <jas@extundo.com>
65401
65402         * lib/memmem.h: New file.
65403         * lib/memmem.c: New file, taken from glibc.
65404
65405 2004-10-04  Simon Josefsson  <jas@extundo.com>
65406
65407         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
65408         '#ifdef USE_UNLOCKED_IO'.
65409
65410 2004-10-04  Simon Josefsson  <jas@extundo.com>
65411
65412         * config/srclist.txt: Add memmem from glibc.
65413
65414 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
65417
65418         * modules/argmatch, modules/argp, modules/closeout, modules/error,
65419         modules/exclude, modules/getdate, modules/getline,
65420         modules/getndelim2, modules/getpass, modules/getpass-gnu,
65421         modules/getusershell, modules/linebuffer, modules/md5,
65422         modules/mountlist, modules/posixtm, modules/readtokens,
65423         modules/readutmp, modules/regex, modules/sha1,
65424         modules/version-etc, modules/yesno:
65425         Remove dependency on unlocked-io.
65426
65427 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65428
65429         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
65430
65431         * m4/unlocked-io.m4: Add copyright notice.
65432         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
65433
65434 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
65437         * lib/xmalloc.c (xmemdup): Likewise.
65438         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
65439         XFREE): Remove these long-obsolescent macros.
65440         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
65441         * lib/xstrdup.c: Remove.
65442
65443         * lib/regex.c (re_comp): Cast gettext return value to char *,
65444         Problem reported by Martin Neitzel via Mark D. Baushke.
65445
65446 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
65449         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
65450         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
65451         regex.c, sha1.c, version-etc.c, yesno.c:
65452         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
65453         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
65454         the includer's responsibility.
65455
65456         Sync from coreutils.
65457
65458         * lib/modechange.c (mode_compile): Don't decrement a pointer that
65459         points to the start of a string, as the C Standard says the
65460         resulting behavior is undefined.
65461
65462         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
65463         simple -> simple_backups, numbered_existing ->
65464         numbered_existing_backups, numbered -> numbered_backups
65465         to avoid shadowing problems.  All uses changed.
65466         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
65467         * lib/backupfile.c (check_extension, numbered_backup):
65468         Rename locals to avoid shadowing 'basename'.
65469         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
65470         once.
65471
65472         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
65473         * lib/.cvsignore: Add getopt.h.
65474
65475 2004-10-04  Bruno Haible  <bruno@clisp.org>
65476
65477         * modules/README: New file.
65478         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
65479         not a module.
65480
65481 2004-10-02  Jim Meyering  <jim@meyering.net>
65482
65483         * lib/dirfd.h, getpagesize.h: Add copyright notice.
65484
65485 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65486
65487         * modules/strsep: New file.
65488
65489 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65490
65491         * m4/strsep.m4: New file.
65492
65493 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65494
65495         * lib/strsep.h: New file.
65496         * lib/strsep.c: New file.
65497
65498 2004-10-01  Simon Josefsson  <jas@extundo.com>
65499
65500         * lib/snprintf.c (snprintf): Handle size==0.
65501
65502 2004-10-01  Simon Josefsson  <jas@extundo.com>
65503             Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
65506         (snprintf): Declare 'args'.
65507
65508 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * lib/snprintf.c: Remove comments as to why each header is needed.
65511
65512 2004-10-01  Bruno Haible  <bruno@clisp.org>
65513
65514         * MODULES.html.sh: Add strsep.
65515
65516 2004-09-30  Simon Josefsson  <jas@extundo.com>
65517
65518         * modules/snprintf: New file.
65519
65520 2004-09-30  Simon Josefsson  <jas@extundo.com>
65521
65522         * m4/snprintf.m4: New file.
65523
65524 2004-09-30  Simon Josefsson  <jas@extundo.com>
65525
65526         * lib/snprintf.h, lib/snprintf.c: New files.
65527
65528 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65529
65530         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
65531         (hol_entry_help): Never translate an empty string.
65532         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
65533         * lib/argp.h (OPTION_NO_TRANS): New option.
65534
65535 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * modules/argp (Maintainer): Replace Simon Josefsson
65538         by Sergey Poznyakoff.
65539
65540 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
65543         changes merged back into glibc.
65544
65545 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
65548
65549 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65550
65551         * lib/xvasprintf.c: Include xalloc.h.
65552         (xvasprintf): Use xalloc_die, not xmalloc_die.
65553
65554 2004-09-29  Bruno Haible  <bruno@clisp.org>
65555
65556         * modules/alloca-opt: New file, derived from modules/alloca.
65557         * modules/allocsa: Depend on alloca-opt instead of alloca.
65558         * modules/setenv: Likewise.
65559         * modules/vasnprintf: Likewise.
65560         * MODULES.html.sh: Add alloca-opt.
65561
65562 2004-09-28  Simon Josefsson  <jas@extundo.com>
65563
65564         * gnulib-tool: New parameter --lgpl, to asseert that modules are
65565         LGPL, and to replace license template from GPL to LGPL.
65566
65567 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         * modules/dummy: Change license to LGPL.
65570
65571 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65572
65573         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
65574
65575 2004-09-24  Simon Josefsson  <jas@extundo.com>
65576
65577         * modules/minmax (License): Change from GPL to LGPL.
65578
65579 2004-09-23  Simon Josefsson  <jas@extundo.com>
65580
65581         * gnulib-tool (--import): Typo.
65582
65583 2004-09-23  Simon Josefsson  <jas@extundo.com>
65584
65585         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
65586
65587 2004-09-22  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/*: Add 'License' field.
65590         * gnulib-tool: Accept --extract-license option.
65591         (func_get_license): New function.
65592
65593 2004-09-21  Bruno Haible  <bruno@clisp.org>
65594
65595         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
65596         Reported by Simon Josefsson.
65597
65598 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
65601         gl_AC_TYPE_LONG_LONG.
65602
65603 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
65606
65607 2004-09-18  Simon Josefsson  <jas@extundo.com>
65608         and  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
65611         calls with autoreconf.  Define GL_LIB.
65612
65613 2004-09-14  Karl Berry  <karl@gnu.org>
65614
65615         * config/srclist.txt: unsync setenv.c, sigh.
65616
65617 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
65620         Problem reported by Bruno Haible in:
65621         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
65622
65623 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * config/srclist.txt: Comment out argp-pvh.c.
65626
65627 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
65630         in case some system header has #define'd it.  Problem reported by
65631         Soeren D. Schulze in
65632         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
65633
65634 2004-09-09  Karl Berry  <karl@gnu.org>
65635
65636         * regex.[ch]: delete from the root.  These were supposed to be
65637                 synced with emacs cvs, but this has not happened for about
65638                 a year, and anyway nothing else uses emacs regex.[ch].
65639                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
65640                 lib/regex[.ch] is untouched.
65641
65642 2004-09-09  Bruno Haible  <bruno@clisp.org>
65643
65644         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
65645
65646 2004-09-09  Bruno Haible  <bruno@clisp.org>
65647
65648         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
65649         modifications.
65650         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
65651
65652 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65653
65654         * modules/xvasprintf: New file.
65655         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
65656
65657 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65658
65659         * lib/xvasprintf.h: New file.
65660         * lib/xvasprintf.c: New file.
65661         * lib/xasprintf.c: New file.
65662
65663 2004-09-08  Bruno Haible  <bruno@clisp.org>
65664
65665         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
65666
65667 2004-09-08  Bruno Haible  <bruno@clisp.org>
65668
65669         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
65670         length is > INT_MAX.
65671         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
65672         more.
65673
65674 2004-09-08  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/stdint_.h: New file, taken from GNU clisp.
65677
65678 2004-09-08  Bruno Haible  <bruno@clisp.org>
65679             Oskar Liljeblad  <oskar@osk.mine.nu>
65680
65681         * modules/stdint: New file.
65682         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
65683
65684 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         Import from coreutils.
65687         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
65688         strings on unbounded length.  alloca's performance benefits aren't
65689         that important here.
65690         (V_STRDUP): Remove.
65691         (parse_with_separator): New function, with most of the internals
65692         of the old parse_user_spec.  Allow user to omit both user and group,
65693         for compatibility with FreeBSD.
65694         Clone only the user name, not the entire spec.
65695         Do not set *uid, *gid unless entirely successful.
65696         Avoid memory leak in some failing cases.
65697         Fix regression for USER.GROUP reported by Dmitry V. Levin in
65698         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
65699         (parse_user_spec): Rewrite to use parse_with_separator.
65700
65701 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * modules/userspec: Don't depend on alloca.
65704
65705 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
65708
65709 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65712         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65713         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65714
65715 2004-08-16  Simon Josefsson  <jas@extundo.com>
65716
65717         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65718         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65719         Add --dry-run for --import.
65720         Let user provided command line parameters override configure.ac
65721         settings.
65722
65723 2004-08-12  Simon Josefsson  <jas@extundo.com>
65724
65725         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65726         as discussed with Paul Eggert in threads rooted at
65727         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65728         and
65729         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65730         Before, the test was empty, and relied on ELIDE_CODE in source
65731         code.)
65732         (gl_PREREQ_GETOPT): New macro.
65733         (gl_GETOPT): Use them.
65734
65735 2004-08-12  Simon Josefsson  <jas@extundo.com>
65736
65737         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65738         * lib/getopt_.h: Renamed from getopt.h.
65739
65740 2004-08-12  Simon Josefsson  <jas@extundo.com>
65741
65742         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65743         Change default library name from libfoo to libgnu.
65744         Now, if you have a configure.ac that says:
65745                 gl_SOURCE_BASE(gl)
65746                 gl_M4_BASE(gl/m4)
65747                 gl_MODULES(error getopt etcetera)
65748                 gl_INIT
65749         you can import all you need by running:
65750                 ../gnulib/gnulib-tool --import
65751
65752         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65753         (Makefile.am): Rewrite, use logic from argz.
65754         (Include): Use <getopt.h> instead of "getopt.h".
65755
65756 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * modules/argp (Files): Add m4/unlocked-io.m4.
65759         (Depends-on): Add extensions.
65760
65761 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65762
65763         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65764         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65765         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65766         Check for program_invocation_name, program_invocation_short_name,
65767         flockfile, funlockfile, features.h, _getopt_long_only_r.
65768
65769 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65772         its complicated substitute.
65773         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65774         and program_invocation_name.
65775         (__argp_basename) [!_LIBC]: Remove; the only use was
65776         replaced by its body.
65777         (__argp_short_program_name): Change condition from
65778         !defined __argp_short_program_name to
65779         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65780         to match argp-namefrob.h.
65781         (__argp_failure): Don't assume strerror_r returns char *.
65782         * lib/argp-parse.c (N_): Define unconditionally.
65783         (argp_default_options): Fill out initializers with 0 to avoid
65784         gcc warnings.
65785
65786 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65789         getopt1.c.
65790
65791 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         Merge from coreutils.
65794
65795         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65796
65797         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65798         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65799
65800 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         Merge from coreutils.
65803
65804         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65805         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65806         for Reliant Unix 5.43.
65807
65808         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65809         (union fooround): Use uintmax_t, not long int.
65810         The rest is a merge from libc:
65811         [defined _LIBC]: Include <shlib-compat.h>.
65812         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65813
65814         * lib/settime.c (settime): Recode to avoid warning with
65815         Sun Forte C 6U2.
65816
65817         * lib/strverscmp.c: Convert to UTF-8.
65818
65819 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65822         m4/uintmax_t.m4.
65823
65824 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * modules/xalloc-die: New file.
65827         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65828
65829         * modules/md5 (Files): Add m4/uint32_t.m4.
65830         * modules/sha1: Renamed from modules/sha.
65831         (Files):
65832         Rename lib/sha.h to lib/sha1.h.
65833         Rename lib/sha.c to lib/sha1.c.
65834         Rename m4/sha.m4 to m4/sha1.m4.
65835         (lib_SOURCES): Likewise.
65836         (configure.ac): Rename gl_SHA to gl_SHA1.
65837         (Include): sha.h -> sha1.h.
65838
65839 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65842         * m4/sha1.m4: Renamed from sha.m4.
65843         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65844
65845 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * lib/obstack.h (obstack_empty_p):
65848         Don't assume that chunk->contents is suitably aligned.
65849         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65850         Likewise. Problem reported by Benno in
65851         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65852
65853         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65854         readable.  This could be improved further but it'd take some work.
65855
65856 2004-08-08  Simon Josefsson  <jas@extundo.com>
65857
65858         * modules/xgethostname (Depends-on): Remove exit and error (not
65859         used).
65860
65861         * modules/getpass-gnu: Add getpass.h.
65862         (Depends-on): Add stdbool.
65863         * modules/getpass: Add getpass.h.
65864
65865 2004-08-08  Simon Josefsson  <jas@extundo.com>
65866
65867         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65868         Check getpass declaration.
65869
65870 2004-08-08  Simon Josefsson  <jas@extundo.com>
65871
65872         * lib/xgethostname.c: Don't include error.h (not used).
65873
65874         * lib/getpass.h: Add.
65875         * lib/getpass.c: Include getpass.h first.
65876
65877 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/xalloc-die.c: New file.
65880         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65881         All uses removed.
65882         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65883         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65884         xalloc-die.c.
65885         (_, N_, xalloc_die): Move to xalloc-die.c.
65886         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65887         so that we needn't mess with xalloc_msg_memory_exhausted.
65888
65889         * lib/sha1.h: Renamed from sha.h.
65890         (SHA1_H): Renamed from _SHA_H.
65891         (sha1_ctx): Renamed from sha_ctx.
65892         (sha1_init_ctx): Renamed from sha_init_ctx.
65893         (sha1_process_block): Renamed from sha_process_block.
65894         (sha1_process_bytes): Renamed from sha_process_bytes.
65895         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65896         (sha1_read_ctx): Renamed from sha_read_ctx.
65897         (sha1_stream): Renamed from sha_stream.
65898         (sha1_buffer): Renamed from sha_buffer.
65899         * lib/sha1.c: Likewise; renamed from sha.c.
65900         Do not include <sys/types.h>.
65901         Include <stddef.h> rather than <stdlib.h>.
65902
65903 2004-08-08  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65906         FILESYSTEM_PREFIX_LEN.
65907         * lib/progreloc.c: Likewise.
65908         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65909
65910 2004-08-06  Simon Josefsson  <jas@extundo.com>
65911
65912         * modules/progname (Depends-on): Don't depend on stdbool.
65913
65914 2004-08-06  Simon Josefsson  <jas@extundo.com>
65915
65916         * modules/getsubopt: New file.
65917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65918         getsubopt.
65919
65920 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         More merge from coreutils.
65923
65924         * m4/utimens.m4, m4/utimecmp.m4: New files.
65925         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65926         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65927         prereq.m4, sha.m4: Import changes from coreutils.
65928
65929 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         More merge from coreutils.
65932         * modules/raise, modules/readtokens0, modules/utimens:
65933         * modules/utimecmp, module/xnanosleep: New files.
65934         * modules/strftime: Add lib/strftime.h.
65935         Change include from <time.h> to "strftime.h".
65936         * modules/yesno: Add lib/yesno.h.
65937         * modules/backupfile: Remove lib/addext.c.
65938         * modules/euidaccess: Add stat-macros.h.
65939         * modules/canonicalize, modules/euidaccess,
65940         modules/filemode, modules/lchown, modules/makepath,
65941         modules/rmdir, modules/stat: Likewise.
65942
65943 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         Merge from tar.
65946         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65947         SIZE_MAX is a valid preprocessor constant.
65948         (__argp_basename): Change from "#ifndef _LIBC"
65949         to "#ifndef __argp_short_program_name", so that
65950         we don't compile these functions for tar.
65951
65952         More merges from coreutils.
65953         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65954         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65955         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65956         * lib/addext.c: Remove; no longer needed.
65957         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65958         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65959         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65960         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65961         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65962         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65963         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65964         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65965         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65966         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65967         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
65968         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
65969         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
65970         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
65971         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
65972         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
65973         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
65974         Import changes from coreutils.
65975
65976 2004-08-05  Simon Josefsson  <jas@extundo.com>
65977
65978         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
65979
65980 2004-08-05  Simon Josefsson  <jas@extundo.com>
65981
65982         * m4/getsubopt.m4: New file.
65983
65984 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         Merge from coreutils.
65987
65988         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
65989         * m4/getcwd-path-max.m4: New files.
65990
65991         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
65992         FILESYSTEM_PREFIX_LEN ->
65993         FILE_SYSTEM_PREFIX_LEN.
65994         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
65995         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
65996         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
65997         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
65998
65999         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
66000         prerequisite modules now handle the DOS stuff.
66001         Don't check for unistd.h.
66002
66003 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66004
66005         Merge from coreutils.
66006
66007         * lib/.gdb-history: Remove; this doesn't belong here.
66008
66009         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
66010         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
66011         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
66012         * lib/getcwd.c: New files.
66013
66014         * lib/dirname.h: Include <stdbool.h>.
66015         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
66016         for consistency with POSIX terminology.  All uses changed.
66017         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
66018         (strip_trailing_slashes): Use bool for booleans.
66019         * lib/stripslash.c (strip_trailing_slashes): Likewise.
66020
66021         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
66022         sometimes returns a positive errno value even when it succeeds.
66023         (print_errno_message) [!LIBC]: Fall back on strerror if
66024         __strerror_r fails.
66025
66026         * lib/path-concat.c (mempcpy): Don't define if a system header defines
66027         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
66028         (longest_relative_suffix): New function.
66029         (path_concat): Use it.  Assume first argument is not NULL.
66030         Port to DOS.  Omit redundant separators.
66031         Report an error instead of returning NULL.
66032         Use mempcpy instead of memcpy.
66033         (xpath_concat): Remove: not declared or used.
66034
66035         * lib/same.h: Include <stdbool.h>
66036         (same_name): Return bool, not int.
66037         * lib/same.c (same_name): Likewise.
66038         (errno): Don't declare; we assume C89 or better now.
66039
66040         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
66041         if not already defined.
66042
66043         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
66044         * lib/dup-safer.c (errno): Likewise.
66045
66046 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         Merge from coreutils.
66049         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
66050         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
66051         * modules/path-concat: Don't depend on strdup.
66052
66053 2004-08-03  Simon Josefsson  <jas@extundo.com>
66054
66055         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
66056         * lib/progname.h: Don't include stdbool.h.
66057
66058 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66059
66060         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
66061         * MODULES.html.sh (func_all_modules): Remove fatal.
66062
66063 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
66066
66067 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
66070         working.
66071
66072 2004-08-02  Simon Josefsson  <jas@extundo.com>
66073
66074         * lib/getsubopt.h: New file, with comments from Bruno Haible.
66075         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
66076         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
66077
66078 2004-08-01  Simon Josefsson  <jas@extundo.com>
66079
66080         * lib/xgetdomainname.c: Include stdlib.h, for free().
66081
66082 2004-07-19  Bruno Haible  <bruno@clisp.org>
66083
66084         * MODULES.html.sh (func_all_modules): Add dummy.
66085
66086 2004-07-16  Simon Josefsson  <jas@extundo.com>
66087
66088         * modules/dummy: New file.
66089
66090 2004-07-16  Simon Josefsson  <jas@extundo.com>
66091
66092         * lib/dummy.c: New file.
66093
66094 2004-07-16  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/backupfile.h: Add extern "C" for C++.
66097         * lib/closeout.h: Likewise.
66098         * lib/copy-file.h: Likewise.
66099         * lib/findprog.h: Likewise.
66100         * lib/full-write.h: Likewise.
66101         * lib/pathname.h: Likewise.
66102         * lib/progname.h: Likewise.
66103         * lib/stpcpy.h: Likewise.
66104         * lib/stpncpy.h: Likewise.
66105         * lib/strcase.h: Likewise.
66106         * lib/strstr.h: Likewise.
66107         * lib/xalloc.h: Likewise.
66108
66109         * lib/mbswidth.h: Add extern "C" for C++.
66110         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
66111
66112 2004-07-13  Robert Millan  <robertmh@gnu.org>
66113
66114         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
66115
66116 2004-07-09  Simon Josefsson  <jas@extundo.com>
66117
66118         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
66119         failed without this.)
66120
66121 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66122
66123         * modules/chown (Files): Add lib/fchown-stub.c, since
66124         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
66125
66126 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * lib/fchown-stub.c: New file.
66129
66130 2004-06-24  Jim Meyering  <jim@meyering.net>
66131
66132         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
66133
66134 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66135
66136         * modules/argz: Omit "#include".
66137
66138         * MODULES.html.sh (func_all_modules): Add calloc, to match
66139         2004-06-01 addition of calloc module.
66140
66141 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         * m4/argz.m4: New file, which is autoupdated from libtool.
66144
66145 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66146
66147         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
66148         libtool.
66149
66150 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         * config/srclist-update: Don't insist on "USA." before the
66153         close-comment, as libtool omits the period and puts the */ on a
66154         separate line.
66155         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
66156         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
66157
66158 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
66159
66160         * modules/argz: New file.
66161         * MODULES.html.sh (func_all_modules): Add argz.
66162
66163 2004-06-12  Jim Meyering  <jim@meyering.net>
66164         and  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         * modules/hash (Files): Add lib/xalloc.h.
66167         * modules/pipe (Depends-on): Add wait-process.
66168         * modules/stat (Depends-on): Add xalloc.
66169         * modules/userspec (Files): Add lib/userspec.h.
66170         * modules/xstrto
66171
66172         Upgrade from gettext-0.13.
66173         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
66174         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
66175         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
66176
66177 2004-06-10  Jim Meyering  <jim@meyering.net>
66178
66179         * lib/calloc.c: New file.
66180
66181 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66182
66183         * lib/getdate.y (yylex): Allow space between sign and number.
66184         Problem reported by Dan Jacobson.
66185
66186 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         Merge from coreutils CVS.
66189
66190         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
66191         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
66192         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
66193         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
66194         xstrtol.m4: Fix copyright date and/or serial number.
66195
66196         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
66197         See if we need an fchown replacement.
66198         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
66199         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
66200         and use the replacement function if we detect either defect.
66201
66202         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
66203         gl_UTIMECMP.
66204
66205 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66206         and  Jim Meyering  <jim@meyering.net>
66207
66208         Merge from coreutils CVS.
66209
66210         * lib/stat-macros.h: New file, with contents from file-type.h
66211         and coreutils' system.h.
66212         * lib/file-type.c: Include "stat-macros.h".
66213         * lib/file-type.h (file_type): Move all macro definitions to new file,
66214         stat-macros.h.
66215
66216         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
66217         Wrap old code with this conditional.
66218         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
66219         function that does not dereference symlinks.
66220         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
66221
66222         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
66223         dependency problems.
66224         (xreadlink): Accept new arg SIZE, for efficiency.
66225         All decls and uses changed.
66226         * lib/xreadlink.h: Include <stddef.h>, for size_t.
66227
66228         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
66229         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
66230
66231         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
66232         sysexits.h.
66233
66234 2004-06-01  Jim Meyering  <jim@meyering.net>
66235
66236         * m4/calloc.m4: New file.
66237
66238 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
66241         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
66242         Also, fix a typo in a diagnostic.
66243
66244 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
66247         or AC_FUNC_REALLOC.
66248
66249 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66250
66251         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
66252         macros to be defined.
66253         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
66254         the allocator returns NULL because the requested size is zero.
66255
66256 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66257
66258         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
66259         var.  Add comment explaining why libc still defines it.  This
66260         merges the following patch from glibc:
66261         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
66262
66263 2004-05-20  Andreas Schwab  <schwab@suse.de>
66264
66265         * m4/free.m4: Replace free if it not known to work, not the other
66266         way round.
66267
66268 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
66271         present in glibc since revision 1.1 of this file.
66272         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
66273         obstack_alignment_mask, obstack_alloc, obstack_base,
66274         obstack_blank, obstack_blank_fast, obstack_chunk_size,
66275         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
66276         obstack_grow0, obstack_init, obstack_int_grow,
66277         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
66278         obstack_next_free, obstack_object_size, obstack_ptr_grow,
66279         obstack_ptr_grow_fast, obstack_room): Remove declarations of
66280         nonexistent functions.
66281
66282 2004-05-18  Karl Berry  <karl@gnu.org>
66283
66284         * config/srclist.txt: break link for vasnprintf.c.
66285
66286 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         Port obstack to the AS/400, where pointers are 16 bytes wide and
66289         you cannot cast an integer to a valid pointer.  This patch is
66290         currently waiting to be integrated into glibc; see
66291         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
66292
66293         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
66294         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
66295         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
66296         (struct obstack): temp member is now a union of a pointer and
66297         an integer, instead of an integer.  All integer uses changed.
66298         This does not affect the physical layout of struct obstack,
66299         except on hosts (like the AS/400) where the size or alignment of
66300         void * is greater than that of ptrdiff_t.
66301         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
66302         __STDC__)]: Store temporary in pointer member of union, not
66303         integer member.
66304         * lib/obstack.c: Include <stddef.h>, for offsetof.
66305         (struct fooalign): Remove; it doesn't need a name.
66306         (union fooround): Change double to long double, and add void *.
66307         (DEFAULT_ALIGNMENT): Use offsetof to compute.
66308         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
66309         not a macro.  Hence the values are always int; so remove all
66310         casts-to-int in uses.
66311
66312 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
66315         we can get this patch merged into glibc.
66316
66317 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66318             Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * m4/argp: Depend on alloca.
66321
66322 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66323             Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
66326         freecoding.
66327
66328 2004-05-17  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
66331         precision that consists of a '.' followed by an empty digit string.
66332         Patch by Tor Lillqvist <tml@iki.fi>.
66333
66334 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
66337         for backward compatibility with older code.  We need our own
66338         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
66339         it under some other name, and our alloca.h will define it.
66340
66341 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66342             Derek Price  <derek@ximbiot.com>
66343
66344         * lib/alloca.c: Include <alloca.h>, to get our interface.
66345         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
66346         include <alloca.h> first.  Use C89 prototype for alloca; this
66347         requires including <stddef.h> for size_t.  Use extern "C" if C++.
66348         Use #elif for simplicity, since we can assume C89 now.
66349         Don't try to source the system alloca.h since it will not be found
66350         and to prevent recursively including its replacement.
66351         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
66352         * lib/regex.c: Likewise.
66353
66354 2004-05-16  Derek Price  <derek@ximbiot.com>
66355             Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         getline cleanup.  This changes the getndelim2 API: both order of
66358         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
66359         no delimiter).
66360
66361         * lib/getline.c: Don't include stddef.h or stdio.h, since our
66362         interface does that.
66363         (getline): Always use getdelim, so that we don't have two
66364         copies of this code.
66365         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
66366         if available.
66367         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
66368         (GETNDELIM2_MAXIMUM): New macro.
66369         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
66370         instead of the old practice of delim2==0.  All callers changed.
66371         Return -1 on overflow, instead of returning junk.
66372         Do not set *linesize unless allocation succeeds.
66373         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
66374         that we include sys/types.h.
66375         * lib/getnline.h: Likewise.
66376         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
66377         (getndelim2): Reorder arguments.
66378         * lib/getnline.c (getnline, getndelim):
66379         Don't discard the NMAX argument.
66380         (getnline): Invoke getndelim, to avoid code duplication.
66381         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
66382         of (size_t) -1 by callers of the getnline family.
66383
66384 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66385
66386         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
66387         Check for gettimeofday.
66388         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
66389         Check for settimeofday, stime.
66390
66391 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * lib/nanosleep.c (suspended): Change its type from int to
66394         sig_atomic_t volatile.
66395         (first_call): Make it private to rpl_nanosleep, and have it
66396         be zero initially as that's a bit faster.
66397         (my_usleep): Round up fractional times instead of truncating them,
66398         as this is the usual meaning for 'sleep'.
66399
66400         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
66401         doesn't work.
66402         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
66403         (ENOSYS): Define if not defined.
66404         (settime): Fall back on stime if it exists and settimeofday fails.
66405         But don't bother with fallbacks if a method fails with errno == EPERM.
66406
66407 2004-05-11  Jim Meyering  <jim@meyering.net>
66408
66409         Prior to this change, the save_cwd caller required read access to the
66410         current directory on most systems (ones with the fchdir function).
66411
66412         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
66413         fails, try write-only, and finally, resort to using xgetcwd.
66414
66415 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * lib/obstack.c, obstack.h: Import changes from libc.
66418
66419 2004-04-28  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
66422         also implicitly appends .exe to executables.
66423         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
66424         accepts Windows pathnames.
66425         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66426         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66427         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66428         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66429         Reported by Derek Robert Price <derek@ximbiot.com>.
66430
66431 2004-04-21  Karl Berry  <karl@gnu.org>
66432
66433         * config/srclist.txt (localcharset.c): break sync.
66434
66435 2004-04-20  Paul Eggert  <eggert@twinsun.com>
66436
66437         * m4/host-os.m4: Add a copyright notice.
66438
66439 2004-04-20  Jim Meyering  <jim@meyering.net>
66440
66441         Change UTILS_ to gl_ in AC_DEFINE'd names.
66442         Change utils_- and jm_-prefixed variables, too.
66443         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
66444         UTILS_FUNC_MKDIR_TRAILING_SLASH.
66445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
66446
66447         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
66448         Don't emit trailing blanks.
66449         Also rename jm_-prefixed variables to have gl_ prefix.
66450
66451         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
66452         Also rename jm_-prefixed variables to have gl_ prefix.
66453
66454         * m4/jm-macros.m4: Reflect the renamings.
66455         * m4/prereq.m4: Likewise.
66456
66457 2004-04-20  Jim Meyering  <jim@meyering.net>
66458
66459         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
66460         memory.
66461
66462 2004-04-20  Jim Meyering  <jim@meyering.net>
66463             Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
66466         memory when realloc fails.
66467
66468 2004-04-19  Jim Meyering  <jim@meyering.net>
66469
66470         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
66471         now that readutmp.c may call `free (0)'.
66472
66473 2004-04-19  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
66476         * m4/inttypes_h.m4: Likewise.
66477         * m4/stdint_h.m4: Likewise.
66478         * m4/intmax_t.m4: Likewise.
66479         * m4/uintmax_t.m4: Likewise.
66480
66481 2004-04-18  Jim Meyering  <jim@meyering.net>
66482
66483         * m4/prereq.m4: Don't forbid jm_ prefix.
66484
66485         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
66486         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
66487         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
66488         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
66489         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
66490         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
66491         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
66492         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
66493         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
66494         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
66495         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
66496         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
66497         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
66498         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
66499         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
66500         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
66501         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
66502         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
66503         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
66504
66505 2004-04-18  Jim Meyering  <jim@meyering.net>
66506
66507         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
66508         failure, don't leak memory and do call END_UTMP_ENT.
66509
66510 2004-04-16  Jim Meyering  <jim@meyering.net>
66511
66512         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
66513         coreutils' stat program.
66514         (gl_PREREQ): Don't require jm_PREREQ_STAT.
66515
66516 2004-04-11  Paul Eggert  <eggert@twinsun.com>
66517
66518         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
66519         C89.
66520         (CHAR_BIT): Remove, since we assume C89.
66521         Include <stdint.h> if available, as per current Autoconf CVS advice.
66522
66523 2004-03-31  Jim Meyering  <jim@meyering.net>
66524
66525         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
66526         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
66527         * m4/xalloc.m4: Likewise.
66528
66529 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66530
66531         Merge from coreutils.
66532
66533         * m4/inttostr.m4: New file.
66534         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
66535         Require AM_STDBOOL_H and gl_TIMESPEC instead.
66536         Require gl_CLOCK_TIME.
66537         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
66538
66539 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66540
66541         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
66542         not bool, to be more consistent with Unix conventions.
66543         Suggested by Bruno Haible.
66544
66545         Merge from coreutils.
66546
66547         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
66548         * lib/umaxtostr.c: New files.
66549
66550         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
66551         the usual <time.h> dance.
66552         (get_date): Change signature to support fractional time stamps.
66553         All callers changed.
66554         * lib/getdate.y: Include "getdate.h" first, as we can now
66555         assume C89 and don't need to worry about 'const'.
66556         Similarly, include "unlocked-io.h" near start, not in middle.
66557         Include <limits.h>.
66558         (textint.value): Use long int rather than int.
66559         (textint.digits): Use size_t rather than int.
66560         (BILLION, LOG10_BILLION): New constants.
66561         (parser_control): New member rel_ns.  Members day_ordinal,
66562         time_zone, month, day, hour, minutes, rel_year, rel_month,
66563         rel_day, rel_hour, rel_minutes, rel_seconds
66564         are now long int, not int.  Member seconds is now struct timespec,
66565         not int.  New member timespec_seen.  Members dates_seen, days_seen,
66566         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
66567         not int.
66568         (%union.intval): Now long int, not int.
66569         New member timespec.
66570         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
66571         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
66572         (spec): Now is a timespec or an item list.
66573         (timespec, items): New nonterminals.
66574         (time, rel, relunit, number, get_date):
66575         Add support for fractional seconds.
66576         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
66577         (gmtime, localtime, mktime): Remove decls; not needed with C89.
66578         (to_hour): First arg is now long int, not int.
66579         (to_year): Returns long int, not int.
66580         Don't treat year -70 like 70.
66581         (tm_diff): Returns long int, not int.
66582         (lookup_word): Use bool instead of int when appropriate.
66583         (yylex): Use size_t for count, not int.
66584         Detect overflow when parsing large integer constants.
66585         Add support for fractions.
66586         (get_date): Make pointers 'const' if possible.
66587         Use more-portable code to detect integer overflow.
66588         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
66589         Don't use ctime; it's not reliable if the year has >4 digits.
66590
66591         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
66592         This is for compatibility with BSD.
66593
66594         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
66595         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
66596         From coreutils' system.h.
66597
66598         * lib/userspec.c: Don't include "posixver.h".
66599         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
66600         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
66601         compatible extension.  Simplify code by removing a boolean int
66602         that was always nonzero if a string was nonnull.
66603
66604 2004-03-30  Jim Meyering  <jim@meyering.net>
66605
66606         Merge from coreutils.
66607
66608         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
66609         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
66610         on some systems one must include <grp.h> before it.
66611         Reported by Christian Krackowizer.
66612
66613 2004-03-30  Jim Meyering  <jim@meyering.net>
66614
66615         Merge from coreutils.
66616
66617         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
66618
66619         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
66620         an empty input stream.
66621
66622         * lib/readtokens.c: Include <stdbool.h>.
66623         (readtoken): Use `size_t' rather than int/long.
66624         All callers adjusted.
66625         Use `bool' rather than `int' where appropriate.
66626         Use memset rather than an explicit loop.
66627         Use x2nrealloc rather than xrealloc.
66628         Allow the use of `\0' as a delimiter.
66629         (readtokens): Likewise.
66630         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
66631
66632 2004-03-30  Jim Meyering  <jim@meyering.net>
66633
66634         * m4/realloc.m4: Remove file, since now it does no more than
66635         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
66636         the `configure.ac' section of module/realloc.
66637         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
66638
66639 2004-03-30  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
66642         nonnull.
66643
66644 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66645
66646         Merge changes to getloadavg.c from coreutils and Emacs.
66647
66648         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
66649         Define to an expression, not to the empty string.
66650         Include cloexec.h and xalloc.h.
66651         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
66652         Use set_cloexec_flag rather than rolling our own.
66653         * lib/cloexec.c, lib/cloexec.h: New files.
66654
66655 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66656
66657         * m4/cloexec.m4: New file.
66658
66659 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66660
66661         * lib/getopt.h: Sync with libc CVS.
66662
66663 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66664             Bruno Haible  <bruno@clisp.org>
66665
66666         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
66667         mbswidth.
66668
66669 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66670             Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/mbswidth.h: Include <wchar.h> only if
66673         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
66674         <wchar.h>.
66675         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
66676
66677 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66678
66679         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
66680         Sync with libc CVS.
66681         * lib/getopt_int.h: New file, also synced from libc.
66682
66683 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66684
66685         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
66686         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
66687         Bring back getopt.c, getopt.h, getopt1.c.
66688
66689 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66690
66691         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
66692         All uses changed.  Check for sa_sigaction member; this fixes
66693         a bug first reported by Jason Andrade in
66694         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66695
66696 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66697
66698         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
66699         '#if' expressions.  Unlike the code it replaces, it does not
66700         depend on (defined _SC_PAGESIZE).  However, it does depend on
66701         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
66702         first reported by Jason Andrade in
66703         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66704
66705 2004-02-25  Simon Josefsson  <jas@extundo.com>
66706
66707         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
66708
66709 2004-02-25  Simon Josefsson  <jas@extundo.com>
66710
66711         * lib/strdup.h: New file.
66712         * lib/strdup.c: Include it.
66713         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66714         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66715
66716 2004-02-23  Karl Berry  <karl@gnu.org>
66717
66718         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66719         (from fencepost.gnu.org:/gd/gnuorg).
66720
66721 2004-02-23  Karl Berry  <karl@gnu.org>
66722
66723         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66724         * config/srclist.txt: add maintain/standards documents.
66725
66726 2004-02-18  Bruno Haible  <bruno@clisp.org>
66727
66728         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66729         Reported by Derek Robert Price <derek@ximbiot.com>.
66730
66731 2004-02-16  Karl Berry  <karl@gnu.org>
66732
66733         * config/mkinstalldirs, install-sh: update from automake.
66734
66735 2004-02-06  Karl Berry  <karl@gnu.org>
66736
66737         * m4/po.m4: update from gettext 0.14.1.
66738
66739 2004-02-06  Karl Berry  <karl@gnu.org>
66740
66741         * lib/config.charset: update from gettext 0.14.1.
66742
66743 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66744
66745         Add comments and code, prompted by suggestions from Bruno Haible
66746         for sh-quote.
66747         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66748         describing the enum quoting_style values.
66749         * lib/quotearg.c (quotearg_alloc): New function.
66750         (quotearg_buffer_restyled): Treat lone { and } as special.
66751         Treat = as special.  Work around bug with older shells
66752         that "see" a '\' that is really the 2nd byte of a multibyte char.
66753         Quote empty string with shell_quoting_style.
66754
66755 2004-02-03  Bruno Haible  <bruno@clisp.org>
66756
66757         * m4/pipe.m4: New file, from GNU gettext.
66758
66759 2004-02-03  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/pipe.h: New file, from GNU gettext.
66762         * lib/pipe.c: New file, from GNU gettext.
66763
66764 2004-01-27  Bruno Haible  <bruno@clisp.org>
66765
66766         * m4/execute.m4: New file, from GNU gettext.
66767
66768 2004-01-27  Bruno Haible  <bruno@clisp.org>
66769
66770         * lib/execute.h: New file, from GNU gettext.
66771         * lib/execute.c: New file, from GNU gettext.
66772         * lib/w32spawn.h: New file, from GNU gettext.
66773
66774 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66775
66776         Merge from diffutils.
66777
66778         * lib/file-type.c (file_type): Add typed memory objects.
66779         * lib/file-type.h (S_TYPEISTMO): New macro.
66780
66781         * lib/c-stack.h (c_stack_action): Remove argv argument.
66782         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66783         (die): Don't calculate message unless segv_action returns.
66784         (get_stack_location, min_address_from_argv, max_address_from_argv,
66785         volatile stack_base, volatile_stack_size): Remove.
66786         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66787         that every segmentation violation is a stack overflow.  (Ouch!)
66788         See Debian bug 136249 (still outstanding) for more info about why
66789         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66790
66791 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66792
66793         Exit-status fix from coreutils.
66794
66795         Use exit_failure consistently in place of EXIT_FAILURE,
66796         so that program exit statuses are consistent on failure.
66797
66798         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66799         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66800         * lib/argmatch.h: Comment fix to match the above.
66801         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66802         Now a macro referring to exit_failure, instead of a separate
66803         variable.  Include "exitfail.h" to get it.
66804         * lib/xstrtol.h: Include "exitfail.h".
66805         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66806
66807         * lib/long-options.c (parse_long_options): Use prototype
66808         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66809         for clarity.
66810
66811 2004-01-21  Jim Meyering  <jim@meyering.net>
66812
66813         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66814         so as not to conflict with a different-sized __mktime_internal
66815         function in GNU libc.
66816         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66817         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66818
66819 2004-01-20  Karl Berry  <karl@gnu.org>
66820
66821         * config/config.guess: update from config.
66822
66823         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66824
66825 2004-01-20  Bruno Haible  <bruno@clisp.org>
66826
66827         Safer stack allocation.
66828         * lib/setenv.c: Include allocsa.h.
66829         (alloca): Remove fallback definition.
66830         (freea): Remove macro.
66831         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66832         instead of freea.
66833
66834 2004-01-20  Bruno Haible  <bruno@clisp.org>
66835
66836         * m4/eealloc.m4: New file, from GNU gettext.
66837
66838 2004-01-20  Bruno Haible  <bruno@clisp.org>
66839
66840         * m4/allocsa.m4: New file, from GNU gettext.
66841
66842 2004-01-20  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/xallocsa.h: New file, from GNU gettext.
66845         * lib/xallocsa.c: New file, from GNU gettext.
66846
66847 2004-01-20  Bruno Haible  <bruno@clisp.org>
66848
66849         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66850
66851 2004-01-20  Bruno Haible  <bruno@clisp.org>
66852
66853         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66854         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66855         specially.
66856
66857 2004-01-20  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66860         patch.
66861
66862 2004-01-20  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66865
66866 2004-01-20  Bruno Haible  <bruno@clisp.org>
66867
66868         * lib/eealloc.h: New file.
66869
66870 2004-01-20  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/binary-io.h: Avoid warnings on Cygwin.
66873
66874 2004-01-20  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/allocsa.h: New file, from GNU gettext.
66877         * lib/allocsa.c: New file, from GNU gettext.
66878
66879 2004-01-18  Karl Berry  <karl@gnu.org>
66880
66881         * doc/gpl.texi, doc/lgpl.texi: new files.
66882
66883 2004-01-18  Karl Berry  <karl@gnu.org>
66884
66885         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66886         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66887
66888 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66889
66890         Merge from coreutils.
66891
66892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66893         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66894         (gl_DEFAULT_POSIX2_VERSION): Move
66895         the documentation from 'configure' into 'config.hin',
66896         so that 'configure --help' isn't burdened by it and
66897         we don't have to worry about its formatting there.
66898         Reword the documentation so that it's more succinct
66899         and can be run together into a single paragraph.
66900         * m4/same.m4 (gl_SAME): Check for pathconf.
66901
66902 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66903
66904         Merge from coreutils.
66905
66906         * lib/posixver.c: Include posixver.h.
66907
66908         * lib/same.c: Include <stdbool.h>, <limits.h>.
66909         (_POSIX_NAME_MAX): Define if not defined.
66910         (MIN): New macro.
66911         (same_name): If file names are silently truncated, report
66912         that the file names are the same if they are the same after
66913         the silent truncation.
66914
66915         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66916         conversion function.
66917         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66918         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66919         longer needed.
66920
66921 2004-01-15  Jim Meyering  <jim@meyering.net>
66922
66923         Merge from coreutils.
66924
66925         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66926         if no library is required.
66927         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66928         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66929         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66930         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66931         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66932         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66933         value, $ac_cv_search_crypt, if it's "none required".
66934         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66935         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66936         not gl_FUNC_GETLOADAVG.
66937         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66938         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66939
66940 2004-01-15  Jim Meyering  <jim@meyering.net>
66941
66942         Merge from coreutils.
66943
66944         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66945         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66946         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66947
66948         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66949         optional configure-time default.
66950
66951         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66952
66953         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66954
66955 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66956
66957         Merge from coreutils.
66958
66959         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66960         value, $ac_cv_search_nanosleep, if it's "none required".
66961
66962 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66963
66964         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66965         with like-named macro in fnmatch.c.
66966         (EXT): Use an internal constant instead.
66967
66968         Merge fnmatch patches from glibc.
66969         * lib/fnmatch.c (mbsinit): Remove define.
66970         Add libc_hidden_ver (__fnmatch, fnmatch).
66971         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
66972         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
66973
66974 2004-01-14  Karl Berry  <karl@gnu.org>
66975
66976         * config/install-sh: update from automake.
66977
66978 2004-01-13  Karl Berry  <karl@gnu.org>
66979
66980         * config/install-sh: update from automake.
66981
66982 2004-01-09  Karl Berry  <karl@gnu.org>
66983
66984         * config/install-sh: update from automake.
66985
66986 2004-01-05  Karl Berry  <karl@gnu.org>
66987
66988         * config/config.{sub,guess}: update from config.
66989
66990 2003-12-31  Karl Berry  <karl@gnu.org>
66991
66992         * config/depcomp: update from automake.
66993
66994 2003-12-14  Karl Berry  <karl@gnu.org>
66995
66996         * lib/config.charset: update from gettext-runtime.
66997
66998 2003-12-03  Paul Eggert  <eggert@twinsun.com>
66999
67000         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
67001         Bug reported by Alfred M. Szmidt.
67002
67003 2003-12-03  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/gettext.m4: Upgrade from gettext-0.13.
67006         * m4/po.m4: Upgrade from gettext-0.13.
67007         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
67008         * m4/intmax.m4: New file, from gettext-0.13.
67009         * m4/printf-posix.m4: New file, from gettext-0.13.
67010
67011 2003-11-29  Karl Berry  <karl@gnu.org>
67012
67013         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
67014
67015 2003-11-25  Paul Eggert  <eggert@twinsun.com>
67016             Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/printf-parse.h: Don't include sys/types.h.
67019         (ARG_NONE): New macro.
67020         (char_directive): Change type of *arg_index fields to size_t.
67021         * lib/printf-parse.c: Don't include sys/types.h.
67022         (SSIZE_MAX): Remove macro.
67023         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
67024         Remove unnecessary overflow check.
67025         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
67026         fields.
67027
67028 2003-11-25  Bruno Haible  <bruno@clisp.org>
67029
67030         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
67031
67032 2003-11-25  Bruno Haible  <bruno@clisp.org>
67033
67034         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
67035         gt_TYPE_SSIZE_T.
67036
67037 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67038
67039         * modules/alloca: Remove dependency on xalloc.
67040
67041 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67042
67043         * lib/alloca.c: Remove dependency on xalloc module.
67044         (xalloc_die): Remove.
67045         (memory_full) [!defined emacs]: New macro.
67046         [!defined emacs]: Don't include xalloc.h.
67047         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
67048         address arithmetic overflows.  Change datatypes a bit to avoid
67049         unnecessary casts.
67050
67051 2003-11-22  Jim Meyering  <jim@meyering.net>
67052
67053         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
67054         s/size/size_t/.
67055
67056 2003-11-21  Karl Berry  <karl@gnu.org>
67057
67058         * config/config.{sub,guess}: update from config.
67059
67060 2003-11-18  Karl Berry  <karl@gnu.org>
67061
67062         * config/config.{sub,guess}: update from config.
67063
67064         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
67065
67066 2003-11-17  Paul Eggert  <eggert@twinsun.com>
67067
67068         * README: Mention that S+T cannot overflow if S is the size of
67069         an existing object and T is sufficiently small.
67070
67071 2003-11-17  Jim Meyering  <jim@meyering.net>
67072
67073         On systems without utime and without a utimes function capable of
67074         dealing with a NULL struct utimbuf* argument, this utime replacement
67075         could -- in unusual circumstances -- leak a file descriptor.
67076         * lib/utime.c: Include <unistd.h> and <errno.h>.
67077         (utime_null): Be sure to close `fd' and to preserve errno.
67078         Reported by Geoff Collyer via Arnold Robbins.
67079
67080 2003-11-17  Bruno Haible  <bruno@clisp.org>
67081
67082         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
67083         (Depends-on): Add xsize.
67084
67085 2003-11-17  Bruno Haible  <bruno@clisp.org>
67086
67087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
67088
67089 2003-11-17  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/vasnprintf.c (alloca): Remove fallback definition.
67092         (freea): Remove definition.
67093         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
67094         Reported by Paul Eggert.
67095
67096 2003-11-16  Paul Eggert  <eggert@twinsun.com>
67097             Bruno Haible  <bruno@clisp.org>
67098
67099         Protect against address arithmetic overflow.
67100         * lib/printf-args.h: Include stddef.h.
67101         (arguments): Change type of field 'count' to size_t.
67102         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
67103         'unsigned int' where appropriate.
67104         * lib/printf-parse.h: Include sys/types.h.
67105         (char_directive): Change type of *arg_index fields to ssize_t.
67106         (char_directives): Change type of fields 'count', max_*_length to
67107         size_t.
67108         * lib/printf-parse.c: Include sys/types.h and xsize.h.
67109         (SSIZE_MAX): Define fallback value.
67110         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
67111         instead of 'int' where appropriate. Check a_allocated, d_allocated
67112         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
67113         * lib/vasnprintf.c: Include xsize.h.
67114         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
67115         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
67116         overflow. Avoid wraparound when converting a width or precision from
67117         decimal to binary.
67118
67119 2003-11-16  Bruno Haible  <bruno@clisp.org>
67120
67121         Update from GNU gettext.
67122         * lib/printf-parse.c: Generalize to it can be compiled for wide
67123         strings.
67124         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
67125         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
67126         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
67127         SNPRINTF): New macros.
67128         Don't include <alloca.h> if the file is used inside libintl.
67129         (local_wcslen): New function, for Solaris 2.5.1.
67130         (VASNPRINTF): Use it instead of wcslen.
67131
67132 2003-11-16  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/xsize.h (xmax): New function.
67135         (xsum, xsum3, xsum4): Declare as "pure" functions.
67136
67137 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67138
67139         * modules/xalloc (Files): Undo latest change, since xalloc.h
67140         no longer needs SIZE_MAX or PTRDIFF_MAX.
67141
67142 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67143
67144         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
67145         gl_PTRDIFF_MAX.
67146
67147 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67148
67149         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
67150         "return", to pacify some unknown compiler.  Problem reported
67151         by Joerg Schilling.
67152
67153 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67154
67155         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
67156         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
67157         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
67158         heuristic is just as accurate as far as we know, and it removes a
67159         dependency on size_max.m4 and ptrdiff_max.m4.
67160
67161 2003-11-11  Bruno Haible  <bruno@clisp.org>
67162
67163         * modules/xsize (Files): Add m4/size_max.m4.
67164         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
67165
67166 2003-11-11  Bruno Haible  <bruno@clisp.org>
67167
67168         * m4/size_max.m4: New file.
67169         * m4/ptrdiff_max.m4: New file.
67170         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
67171         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
67172         (gl_XALLOC): Invoke it.
67173
67174 2003-11-11  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
67177         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
67178         defined.
67179
67180 2003-11-10  Paul Eggert  <eggert@twinsun.com>
67181
67182         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
67183         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
67184         rejected some allocations of exactly SIZE_MAX - 2 bytes.
67185         From Bruno Haible.
67186         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
67187         not (size_t) -1, since it's defined here.
67188
67189 2003-11-09  Karl Berry  <karl@gnu.org>
67190
67191         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
67192
67193 2003-11-06  Paul Eggert  <eggert@twinsun.com>
67194
67195         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
67196         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
67197         Reject sizes of exactly SIZE_MAX bytes.
67198         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
67199         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
67200
67201 2003-11-05  Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/xsize.h: Include limits.h, to avoid a possible collision with
67204         SIZE_MAX defined in <limits.h> on Solaris.
67205
67206 2003-11-04  Jim Meyering  <jim@meyering.net>
67207
67208         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
67209         variable names, rather than @VAR@.
67210         * modules/poll: Likewise.
67211
67212 2003-11-04  Bruno Haible  <bruno@clisp.org>
67213
67214         * modules/xsize: New file.
67215         * modules/linebreak: Depend on xsize.
67216         * MODULES.html.sh (func_all_modules): Add xsize.
67217
67218 2003-11-04  Bruno Haible  <bruno@clisp.org>
67219
67220         * m4/xsize.m4: New file.
67221
67222 2003-11-04  Bruno Haible  <bruno@clisp.org>
67223
67224         * lib/xsize.h: New file.
67225         * lib/linebreak.c: Include xsize.h.
67226         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
67227         argument for overflow.
67228         Suggested by Paul Eggert.
67229
67230 2003-11-03  Karl Berry  <karl@gnu.org>
67231
67232         * config/config.{guess,sub}: update from config.
67233
67234 2003-11-03  Jim Meyering  <jim@meyering.net>
67235
67236         * modules/userspec (lib_SOURCES): Add userspec.h.
67237         (Include): Add "userspec.h".
67238         Improve description.
67239
67240 2003-11-03  Jim Meyering  <jim@meyering.net>
67241
67242         * lib/userspec.c: Include "userspec.h".
67243         * lib/userspec.h: New file.
67244
67245 2003-11-03  Bruno Haible  <bruno@clisp.org>
67246
67247         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
67248
67249 2003-11-03  Bruno Haible  <bruno@clisp.org>
67250
67251         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
67252         available, to avoid (extremely rare) race condition.
67253         Suggested by Paul Eggert.
67254
67255 2003-11-02  Karl Berry  <karl@gnu.org>
67256
67257         * config/srclist.txt (vasprintf.c): sync broken, sigh.
67258
67259 2003-10-31  Paul Eggert  <eggert@twinsun.com>
67260
67261         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
67262         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
67263         (read_filesystem_list): Set and use me_type_malloced.
67264         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
67265         whatever the type happens to be), for brevity and consistency.
67266         Check for size calculation overflow on Alphas running OSF/1.
67267
67268 2003-10-31  Jim Meyering  <jim@meyering.net>
67269
67270         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
67271
67272         * lib/linebuffer.c: Include <string.h> for declaration of memset.
67273
67274 2003-10-30  Paul Eggert  <eggert@twinsun.com>
67275             Bruno Haible  <bruno@clisp.org>
67276
67277         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
67278         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
67279
67280 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67281
67282         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
67283         netbsd*-gnu*.  Suggested by Robert Millan.
67284
67285 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67286
67287         * modules/group-member: Depend on stdbool.
67288
67289 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67290
67291         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
67292
67293 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67294
67295         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
67296         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
67297         after the 'gnu' in these cases.  This fixes some bugs in the
67298         previous change, and is based on suggestions by Robert Millan.
67299
67300 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67301
67302         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
67303         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
67304         no longer needed.
67305         * lib/quotearg.c (quotearg_n_options): Use it.
67306         * lib/group-member.c: Include <stdbool.h>.
67307         (free_group_info): Arg is now const *; don't free arg.
67308         (get_group_info): Now returns bool and accepts struct group_info *,
67309         rather than returning a malloc'ed struct group_info *.
67310         All uses changed.  Check for overflow in internal size calculation.
67311
67312         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
67313         rather than xmalloc/xrealloc.
67314         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
67315         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
67316         conformance bug: the old code used a pointer after freeing the
67317         storage that it addressed.
67318         * lib/hash.c (hash_initialize): Simplify the code by using
67319         xalloc_oversized rather than doing it by hand.
67320         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
67321         the buffer preserved.  Use free and xmalloc instead.
67322         * lib/quotearg.c (quotearg_n_options): Likewise.
67323         Use a simpler test for size overflow.  Don't use xalloc_oversized
67324         because unsigned int might be wider than size_t (!); this suggests
67325         that we should switch from unsigned int to size_t for slot numbers.
67326
67327 2003-10-28  Paul Eggert  <eggert@twinsun.com>
67328
67329         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
67330         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
67331         NetBSD kernels.  Requested by Richard Stallman.
67332
67333 2003-10-27  Paul Eggert  <eggert@twinsun.com>
67334
67335         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
67336         to allocate the returned structure.  Do not allocate a subarray,
67337         as x2nrealloc will do that.
67338         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
67339         instead of xnrealloc.
67340         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
67341
67342 2003-10-27  Bruno Haible  <bruno@clisp.org>
67343
67344         * lib/stdbool_.h: Better support for BeOS.
67345
67346 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67347
67348         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
67349         now uses inline.
67350
67351 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67352
67353         * lib/xalloc.h (xalloc_oversized): New static inline function, for
67354         callers that want to do their own size-overflow checking.  Include
67355         <stdbool.h>, since xalloc_oversized returns bool.
67356         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
67357         to use xalloc_oversized.
67358
67359         Add two functions x2realloc, x2nrealloc, for programs that grow
67360         arrays dynamically by doubling their sizes.
67361         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
67362         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
67363         New functions.
67364
67365         Port to C99 semantics for 'inline' of external functions.
67366         Bug reported by Bruno Haible.
67367         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
67368         with the old contents of xnmalloc.
67369         (xnmalloc, xmalloc): Use it.
67370         (xnrealloc_inline): New static inline function,
67371         with the old contents of xnrealloc.
67372         (xnrealloc, xrealloc): Use it.
67373
67374         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
67375         that.
67376
67377 2003-10-26  Karl Berry  <karl@gnu.org>
67378
67379         * config/srclist.txt (COPYING.DOC): no longer available from
67380         /gd/gnuorg; don't know where the ultimate source is.
67381
67382 2003-10-25  Paul Eggert  <eggert@twinsun.com>
67383
67384         Fix several address-calculation bugs in the hash modules,
67385         plus some minor code cleanup.
67386
67387         * lib/hash.h: Include <stdbool.h>, for bool.
67388         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
67389         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
67390         hash_get_n_entries, hash_get_max_bucket_length,
67391         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
67392         hash_rehash): Use size_t rather than unsigned.
67393         * lib/hash.c (struct hash_table, hash_get_n_buckets,
67394         hash_get_n_buckets_used, hash_get_n_entries,
67395         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
67396         hash_get_entries, hash_do_for_each, hash_string, is_prime,
67397         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
67398         Likewise.
67399         (SIZE_MAX): Define if not defined.
67400         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
67401         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
67402         hash_print):
67403         Use const * when possible.
67404         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
67405         (check_tuning): Fix bug: if tuning parameters were very close to
67406         0 or 1, rounding errors could have caused subscript violations.
67407         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
67408         (hash_initialize): Add 'fail:' label
67409         to free table and return NULL, and use it to simplify code.
67410         Use calloc rather than clearing the storage ourself.
67411         (hash_initialize, hash_rehash): Check for arithmetic overflow in
67412         buffer size calculations.
67413         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
67414         Include <stddef.h>, for size_t.
67415         * lib/hash-pjw.c (hash_pjw): Likewise.
67416         Switch to method described by Bruno Haible.
67417         Include <limits.h>, for CHAR_BIT.
67418         (SIZE_BITS): New macro.
67419
67420 2003-10-23  Paul Eggert  <eggert@twinsun.com>
67421
67422         * m4/getline.m4 (AM_FUNC_GETLINE):
67423         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
67424         hosts.  Problem reported by Derek Robert Price in
67425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
67426         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
67427         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
67428
67429 2003-10-21  Paul Eggert  <eggert@twinsun.com>
67430
67431         * lib/getndelim2.c (getndelim2): When size calculation overflows,
67432         ceiling the allocation at NMAX bytes rather than silently
67433         discarding input bytes before NMAX is reached.  This makes
67434         a difference only if NMAX exceeds SIZE_MAX / 2.
67435
67436         * lib/obstack.c: Merge from glibc.
67437         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
67438         Add libc_hidden_def (_obstack_newchunk).
67439         (_obstack_free) [! defined _LIBC]: Remove.
67440         [defined _LIBC]: Make a strong alias from obstack_free, rather than
67441         a clone of the function body.
67442         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
67443         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
67444
67445         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
67446         glibc.
67447         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
67448         arg to memcpy.
67449
67450         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
67451         (obstack_ptr_grow_fast, obstack_int_grow_fast):
67452         Don't use lvalue casts, as GCC plans to remove support for them
67453         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
67454         was also present in the non-GCC version, indicating that this
67455         code had always been buggy and had never been widely used.
67456         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
67457         Use the fast variant of each macro, rather than copying the
67458         definiens of the fast variant; that way, we'll be more likely to
67459         catch future bugs in the fast variants.
67460
67461 2003-10-20  Bruno Haible  <bruno@clisp.org>
67462
67463         * modules/wait-process: New file.
67464         * MODULES.html.sh (func_all_modules): Add wait-process.
67465
67466 2003-10-20  Bruno Haible  <bruno@clisp.org>
67467
67468         * m4/wait-process.m4: New file.
67469
67470 2003-10-20  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/wait-process.h: New file, from GNU gettext.
67473         * lib/wait-process.c: New file, from GNU gettext.
67474
67475 2003-10-19  Jim Meyering  <jim@meyering.net>
67476
67477         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
67478         HPUX 10.20.
67479
67480 2003-10-18  Karl Berry  <karl@gnu.org>
67481
67482         * config/config.guess: update from config.
67483
67484 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67485
67486         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
67487         (getgroups): First arg is int, not size_t.
67488         Don't let 'free' mangle errno.
67489
67490 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67491
67492         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
67493
67494 2003-10-16  Karl Berry  <karl@gnu.org>
67495
67496         * config/config.{guess,sub}: update from config.
67497
67498 2003-10-16  Jim Meyering  <jim@meyering.net>
67499
67500         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
67501         memcpy.
67502
67503 2003-10-15  Paul Eggert  <eggert@twinsun.com>
67504
67505         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
67506         (SIZE_MAX): Remove.
67507         (new_exclude, add_exclude_file): Initial size no longer needs to
67508         be a power of 2.
67509         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
67510         our own address arithmetic overflow checking.
67511
67512         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
67513         (fnmatch): Do not alloca more than 2000 wide characters;
67514         instead, use malloc for large buffers.
67515         Check for address arithmetic overflow, and return -1
67516         with errno set to ENOMEM in that case.
67517         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
67518         (NEW_PATTERN): Do not alloca more than 8000 bytes;
67519         instead, return -1.  Check for address arithmetic overflow.
67520
67521 2003-10-14  Paul Eggert  <eggert@twinsun.com>
67522
67523         Handle invalid suffixes and overflow independently, so that
67524         callers can treat them independently as needed.  Fix some bugs in
67525         suffix handling, e.g., "100k@" was not diagnosed as an invalid
67526         suffix for a human-readable blocksize.  The major caller-visible
67527         change is the addition of a new
67528         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
67529         that both overflow and suffix chars were found.
67530
67531         * lib/human.c (humblock): Don't check separately for invalid suffix
67532         char; that is xstrtoumax's job (now that its bug is fixed).
67533         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
67534         INTMAX_MAX]: New macros.
67535         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
67536         TYPE_MAXIMUM): New macros.
67537         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
67538         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
67539         if overflow occurs, as it's what __strtol does and it's more useful
67540         in practice.
67541         (__xstrtol): If __strtol reports some error other than ERANGE,
67542         reflect it to the caller as LONGINT_INVALID.  If it reports
67543         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
67544         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
67545         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
67546         value.
67547         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
67548         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
67549         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
67550         [defined UINTMAX_MAX]: New macros.
67551
67552 2003-10-14  Bruno Haible  <bruno@clisp.org>
67553
67554         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
67555
67556 2003-10-14  Bruno Haible  <bruno@clisp.org>
67557
67558         * m4/sig_atomic_t: New file, from GNU gettext.
67559         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
67560
67561 2003-10-14  Bruno Haible  <bruno@clisp.org>
67562
67563         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
67564         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
67565         Also use volatile where needed.
67566
67567 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67568
67569         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
67570         Change maintainer from Bruno Haible to 'all'.
67571
67572 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67573
67574         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
67575
67576 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67577
67578         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
67579         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
67580         and define in terms of the other primitives.
67581         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
67582         (SIZE_MAX): Define if not already defined.
67583         (array_size_overflow): New function.
67584         (xalloc_die): Abort instead of exiting if 'error' returns.
67585         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
67586         (xmalloc, xrealloc): Use them.
67587         (xcalloc): Check for address arithmetic overflow.
67588         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
67589         a bit faster than strcpy.
67590
67591 2003-10-10  Simon Josefsson  <jas@extundo.com>
67592
67593         * modules/argp (Depends-on): Add restrict and strcase.
67594
67595 2003-10-10  Simon Josefsson  <jas@extundo.com>
67596
67597         * m4/argp.m4: Add AC_C_INLINE.
67598
67599 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67600
67601         Merge getpass from libc, plus a few fixes.
67602
67603         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
67604         Include <stdbool.h>.
67605         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
67606         __fsetlocking to empty.
67607         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
67608         do include <bits/libc-lock.h>.
67609         Do not include <fcntl.h>; not needed.
67610         [_LIBC]: Include <wchar.h>.
67611         (NOTCANCEL_MODE): New macro.
67612         (flockfile, funlockfile) [_LIBC]: New macros.
67613         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
67614         [!_LIBC]: New macros.
67615         (call_fclose): New function.
67616         (getpass): Use it.  Save tty stream separately; this simplifies the
67617         code and makes it more reliable if stdin happens to equal stdout.
67618         Invoke __fsetlocking on tty.
67619         Handle thread cancellation if needed.
67620         Namespace cleanup (use __tcgetattr, __getline).
67621         Use bool for Booleans.
67622         [USE_IN_LIBIO]: Handle wide streams.
67623         [!_LIBC]: Unconditionally do the fseek, since we don't know what
67624         stream might go where.
67625
67626         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
67627         doesn't have to include <stdio.h> before us.
67628         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
67629         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
67630         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
67631         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
67632         if not declared, so that we can use getpass.c code from libc without
67633         rewriting it.
67634         (flockfile, ftrylockfile, funlockfile): New macros.
67635
67636 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67637
67638         * modules/getpass: Depend on stdbool.
67639
67640 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67641
67642         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
67643
67644 2003-10-07  Karl Berry  <karl@gnu.org>
67645
67646         * config/config.{guess,sub}: update from config.
67647
67648 2003-10-06  Jim Meyering  <jim@meyering.net>
67649             Bruno Haible  <bruno@clisp.org>
67650
67651         This lets translators provide better translations for the
67652         "Written by ..." part of --version output.
67653         * lib/version-etc.h: Include stdarg.h.
67654         (version_etc_copyright): Declare as readonly.
67655         (version_etc): Make this function variadic with a NULL-terminated list
67656         of author name strings.
67657         (version_etc_va): New declaration.
67658         * lib/version-etc.c: Include stdarg.h, stdlib.h.
67659         (version_etc_copyright): Declare as readonly.
67660         (version_etc_va): New function. Provide a different translatable string
67661         for each possible number of authors < 10. Abbreviate when there are 10
67662         authors or more.
67663         (version_etc): Make this function variadic. Call version_etc_va.
67664         Suggestion from Gary V. Vaughan.
67665
67666         * lib/long-options.h (parse_long_options): Change prototype: the
67667         authors string is moved to the end and becomes variadic.
67668         * lib/long-options.c: Include stdarg.h.
67669         (parse_long_options): Make this function variadic, too.
67670         Call version_etc_va, not version_etc.
67671
67672 2003-10-06  Bruno Haible  <bruno@clisp.org>
67673
67674         * modules/version-etc-2: Remove file.
67675         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
67676
67677 2003-10-06  Bruno Haible  <bruno@clisp.org>
67678
67679         * modules/fatal-signal: New file.
67680         * MODULES.html.sh (func_all_modules): Add fatal-signal.
67681
67682 2003-10-06  Bruno Haible  <bruno@clisp.org>
67683
67684         * m4/fatal-signal.m4: New file.
67685         * m4/signalblocking.m4: New file, from GNU gettext.
67686
67687 2003-10-06  Bruno Haible  <bruno@clisp.org>
67688
67689         * lib/version-etc-2.h: Remove file.
67690         * lib/version-etc-2.c: Remove file.
67691
67692 2003-10-06  Bruno Haible  <bruno@clisp.org>
67693
67694         * lib/fatal-signal.h: New file, from GNU gettext.
67695         * lib/fatal-signal.c: New file, from GNU gettext.
67696
67697 2003-10-05  Paul Eggert  <eggert@twinsun.com>
67698
67699         * README: Rework advice for preventing empty .o files.
67700         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
67701         not <sys/types.h>.
67702
67703 2003-10-04  Karl Berry  <karl@gnu.org>
67704
67705         * lib/argp*: update from libc.
67706
67707 2003-10-04  Karl Berry  <karl@gnu.org>
67708
67709         * config/config.{guess,sub}: update from config.
67710
67711 2003-10-02  Bruno Haible  <bruno@clisp.org>
67712
67713         * modules/lchown (Include): Add lchown.h.
67714         * modules/time_r (Include): Use "..." syntax.
67715         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67716
67717 2003-10-01  Simon Josefsson  <jas@extundo.com>
67718
67719         * MODULES.html.sh (func_all_modules): Move gethostname from section
67720         'based on' to section 'lacking' POSIX:2001.
67721
67722 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67723
67724         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67725         to output mode on the same stream.
67726
67727 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67728
67729         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67730         Fix arg typo in previous patch.
67731
67732 2003-09-28  Jim Meyering  <jim@meyering.net>
67733
67734         * lib/error.c: Correct cpp indentation.
67735
67736 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67737
67738         * modules/free: New file.
67739
67740 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67741
67742         * m4/free.m4: New file.
67743
67744 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67745
67746         * lib/minmax.h (MIN, MAX)
67747         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67748         Omit the special code that used __typeof__, since we worry that
67749         it could be more trouble than it's worth.  See:
67750         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67751         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67752
67753         * lib/free.c: New file.
67754
67755 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67756
67757         Trivial fixes to Makefile.am parts of module listings.
67758         * modules/strstr: Append strstr.h to lib_SOURCES.
67759         * modules/strcase: Likewise, for strcase.h.
67760
67761 2003-09-27  Karl Berry  <karl@gnu.org>
67762
67763         * config/mkinstalldirs: update from automake.
67764
67765 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67766
67767         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67768         (error_tail): Do not loop, reallocating temporary buffer, since
67769         the output cannot contain more wide characters than the input
67770         contains bytes, the size must be big enough already.  This avoids
67771         one potential size overflow calculation.  Check for size overflow
67772         when calculating temporary buffer size.  Free temporary buffer
67773         when done, if it was allocated with malloc; this plugs a memory
67774         leak.  Remove casts from void * to pointers, that are no longer
67775         needed now that we're assuming C89 or better.
67776
67777         Merge error changes from glibc.
67778
67779         * lib/error.c, error.h: Update copyright notice header to match glibc.
67780         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67781         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67782         Disable cancellation while printing error.
67783         * lib/error.h: Prepend __ to parameter names.
67784
67785 2003-09-26  Jim Meyering  <jim@meyering.net>
67786
67787         * lib/error.c (error_tail): Move some declarations
67788         into inner scope where the local variables are used.
67789
67790 2003-09-26  Bruno Haible  <bruno@clisp.org>
67791
67792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67793         stpncpy().
67794         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67795
67796 2003-09-26  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67799         (stpncpy): Define as alias for gnu_stpncpy.
67800         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67801
67802 2003-09-25  Simon Josefsson  <jas@extundo.com>
67803
67804         * lib/xgetdomainname.h: New file.
67805         * lib/xgetdomainname.c: New file.
67806
67807 2003-09-25  Simon Josefsson  <jas@extundo.com>
67808             Bruno Haible  <bruno@clisp.org>
67809
67810         * modules/getdomainname: New file.
67811         * modules/xgetdomainname: New file.
67812         * MODULES.html.sh (func_all_modules): Add getdomainname,
67813         xgetdomainname.
67814
67815 2003-09-25  Simon Josefsson  <jas@extundo.com>
67816             Bruno Haible  <bruno@clisp.org>
67817
67818         * m4/getdomainname.m4: New file.
67819
67820 2003-09-25  Simon Josefsson  <jas@extundo.com>
67821             Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/getdomainname.h: New file.
67824         * lib/getdomainname.c: New file.
67825
67826 2003-09-25  Karl Berry  <karl@gnu.org>
67827
67828         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67829
67830 2003-09-25  Karl Berry  <karl@gnu.org>
67831
67832         * config/install-sh: update from automake.
67833
67834 2003-09-25  Bruno Haible  <bruno@clisp.org>
67835
67836         * modules/version-etc-2: New file, from modules/version-etc with
67837         modifications.
67838         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67839
67840 2003-09-25  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67843         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67844
67845 2003-09-24  Simon Josefsson  <jas@extundo.com>
67846
67847         * modules/xgethostname: Add xgethostname.h.
67848
67849 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67850
67851         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67852         the buffer associated with the argument.  Bug reported by
67853         Simon Josefsson.
67854
67855 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67856
67857         * README: Document assumptions that 'int' is at least 32 bits
67858         wide, that integer arithmetic is 2's complement without overflow,
67859         that there are no holes in integer values, that adding sizes of
67860         two nonoverlapping objects can't overflow, and that all-bits-zero
67861         yields scalar zero.  Fix spelling and capitalization typos.
67862
67863 2003-09-19  Karl Berry  <karl@gnu.org>
67864
67865         * lib/argp.h: update from libc.
67866
67867 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67868
67869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67870         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67871         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67872
67873 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67874
67875         * gnulib-tool: Use "test -h", not "test -L", for portability
67876         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67877         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67878         (sed_extract_prog): Issue s commands one-by-one, rather than
67879         using \| in one s command.
67880
67881 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67882
67883         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67884         input error, instead of returning NULL the next time we are called
67885         (and therefore losing track of errno).
67886
67887 2003-09-16  Bruno Haible  <bruno@clisp.org>
67888
67889         * gnulib-tool (func_create_testdir): Warn about duplicated
67890         dependencies.
67891
67892 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67893
67894         * modules/argmatch, modules/fatal, modules/obstack,
67895         modules/xalloc, modules/xgethostname: Sort dependencies by
67896         importance, not alphabetically.
67897
67898 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67899
67900         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67901         fails, so that the caller gets the proper errno.
67902
67903         * lib/readutmp.c (read_utmp): Likewise.
67904         Check for fstat error.  Close stream and free storage
67905         when failing.
67906
67907 2003-09-14  Karl Berry  <karl@gnu.org>
67908
67909         * config/srclist.txt (strdup.c): disable for c89 changes.
67910
67911 2003-09-14  Jim Meyering  <jim@meyering.net>
67912
67913         * lib/getloadavg.c: Correct cpp indentation.
67914         * lib/strdup.c: Likewise.
67915         * lib/vasnprintf.c: Likewise.
67916
67917 2003-09-14  Bruno Haible  <bruno@clisp.org>
67918
67919         * modules/fwriteerror: New file.
67920         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67921
67922 2003-09-14  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/fwriteerror.h: New file.
67925         * lib/fwriteerror.c: New file.
67926
67927 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67928
67929         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67930         modules/xgethostname, modules/xalloc: Depend on exit.
67931
67932 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67933
67934         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67935
67936         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67937         and AC_MINIX, too, so that their extensions are available.
67938
67939         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67940         This macro has been superseded by gl_BACKUPFILE.
67941
67942         More patches to assume C89 or better.
67943
67944         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67945
67946         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67947         unconditionally.
67948         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67949         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67950         Include <string.h>, <stdlib.h> unconditionally.
67951         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67952         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67953         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67954         headers or for string.h.
67955         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67956         or strtoul.
67957
67958         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67959         headers.
67960         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67961         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67962         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67963         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67965         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67966         memcpy, memset.
67967         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
67968         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
67969         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
67970         strtol.
67971         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
67972         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
67973         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
67974         strtoul.
67975
67976 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67977
67978         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
67979         * lib/obstack.c [!defined _LIBC]: Likewise.
67980         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
67981         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
67982         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
67983
67984         More changes to assume C89 or better.
67985
67986         * lib/error.c (error_tail): Assume vprintf.
67987
67988         * lib/argmatch.c (getenv): Remove decl.
67989         * lib/progreloc.c (get_full_program_name): Define via prototype.
67990         * lib/setenv.c (clearenv): Likewise.
67991         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
67992         needed.
67993         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
67994         (malloc, memcpy): Remove decls.
67995         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
67996         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
67997         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67998         (memcpy): Remove macro.
67999         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
68000         (__P): Remove.  All uses removed.
68001         (PTR): Remove.  All uses changed to void *.
68002         (CHAR_BIT, NULL): Remove.
68003         (spaces, zeros, memset_space, memset_zero)
68004         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
68005         Remove.
68006         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
68007         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
68008         Define with prototype.
68009         Remove now-unnecessary prototype decl.
68010         (extra_args_spec): Assume ANSI C.  All uses changed.
68011         (extra_args_spec_iso): Remove.
68012         (my_strftime, emacs_strftimeu): Define via prototype.
68013         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
68014         unconditionally.
68015         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
68016         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
68017         (strtoul, strtol): Remove decls.
68018         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
68019         LONG_MAX): Remove.
68020         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68021         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
68022         (LOCALE_PARAM_PROTO): New macro.
68023         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
68024         (INTERNAL (strtol), strtol): Define with a prototype.
68025         (PARAMS): Remove.  All uses removed.
68026         * lib/tempname.c: Include <string.h> unconditionally.
68027         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
68028         * lib/xgethostname.c (main): Define with a prototype.
68029         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
68030         Include <stdlib.h> unconditionally.
68031         (calloc, malloc, realloc, free): Remove decls.
68032         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
68033         Include <stdlib.h> unconditionally.  Sort include file names.
68034         (strtod): Remove.
68035         (xstrtod): Define with a prototype.
68036         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
68037         (strtol, strtoul): Remove decls.
68038
68039 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68040
68041         More patches to assume C89 or better.
68042         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
68043         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
68044         string.h, memchr, STDC_HEADERS.
68045
68046 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68047
68048         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
68049         Include <stdlib.h>, <string.h> unconditionally.
68050         Remove now-unnecessary cast to char *.
68051         * lib/strnlen.c: Include <string.h> unconditionally.
68052         * lib/yesno.c (yesno): Define with a prototype.
68053
68054 2003-09-11  Bruno Haible  <bruno@clisp.org>
68055
68056         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
68057
68058 2003-09-10  Jim Meyering  <jim@meyering.net>
68059
68060         * lib/error.c: Correct indentation of cpp directives.
68061
68062 2003-09-10  Bruno Haible  <bruno@clisp.org>
68063
68064         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
68065         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
68066         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
68067         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
68068         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
68069         <stdlib.h> and <string.h> checks.
68070         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
68071         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
68072
68073 2003-09-10  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/strcspn.c: Include <string.h> unconditionally.
68076         * lib/strpbrk.c: Include <string.h> unconditionally.
68077         * lib/strstr.c: Include <string.h> unconditionally.
68078         * lib/unicodeio.c: Include <string.h> unconditionally.
68079         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
68080         * lib/unsetenv.c: Likewise.
68081         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
68082         * lib/yesno.c: Include <stdlib.h> unconditionally.
68083         (rpmatch): Add prototype.
68084
68085 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68086
68087         More patches to assume C89 or better.
68088         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
68089         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
68090         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
68091         or for string.h.
68092         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
68093         stdlib.h.
68094         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
68095         C headers.
68096         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
68097         string.h.
68098         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
68099         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
68100         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
68101         or for string.h.
68102         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
68103         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
68104         C headers.
68105         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
68106         memcpy.
68107         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
68108         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
68109         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
68110         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
68111         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
68112         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
68113         string.h, free.
68114         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
68115         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
68116         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
68117         C headers, or for string.h.
68118         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
68119         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
68120         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
68121         headers, memory.h, stdlib.h, string.h, strings.h.
68122         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
68123         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
68124         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
68125         strchr.
68126         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
68127         headers, memory.h, string.h.
68128         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
68129         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
68130         free.
68131         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
68132         headers.
68133         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
68134         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
68135         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
68136         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
68137         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
68138
68139 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68140
68141         More K&R removal.
68142
68143         * lib/acosl.c (main): Use a prototype.
68144         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
68145         tanl.c: Likewise.
68146
68147         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
68148
68149         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
68150         (getopt, etopt_long, getopt_long_only, _getopt_internal)
68151         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
68152         with a prototype.
68153         * lib/getopt.c (const): Remove macro.
68154         Include <string.h> unconditionally.
68155         (my_index): Remove; all uses changed to strchr.
68156         (strlen): Remove decl.
68157         (exchange): Remove forward decl; no longer needed.
68158         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
68159         Define with prototype.
68160         * lib/getopt1.c (const): Remove macro.
68161         (getopt_long, getopt_long_only, main): Define with prototype.
68162
68163         * lib/getugroups.c: Include <string.h> unconditionally.
68164
68165         * lib/getusershell.c: Include <stdlib.h> unconditionally.
68166         (getusershell, setusershell, endusershell, readname, main):
68167         Define with prototypes.
68168
68169         * lib/group-member.c: Include group-member.h first.
68170         Include <stdlib.h> unconditionally.
68171
68172         * lib/hard-locale.c: Include hard-locale.h first.
68173         Include <stdlib.h>, <string.h> unconditionally.
68174
68175         * lib/hash.c (free, malloc): Remove decls.
68176         Include <stdlib.h> unconditionally.
68177
68178         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
68179         (getenv): Do not declare.
68180
68181         * lib/idcache.c: Include <string.h> unconditionally.
68182
68183         * lib/long-options.c: Include long-options.h first, to test interface.
68184         Include <stdlib.h> unconditionally.
68185
68186         * lib/makepath.c: Include makepath.h first, to test interface.
68187         Include <stdlib.h> and <string.h> unconditionally.
68188
68189         * lib/linebuffer.c: Include <stdlib.h>.
68190         (free): Remove decl.
68191
68192         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
68193         stddef.h. rpl_malloc returns void *, not char *.
68194         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
68195         prototype.
68196
68197         * lib/md5.h: Include <limits.h> unconditionally.
68198         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
68199         (__P): Remove; all uses removed.
68200         * lib/md5.c: Include "md5.h" first.
68201         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
68202         md5_buffer, md5_process_bytes, md5_process_block):
68203         Define with prototypes.
68204         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
68205         * lib/sha.c: Include "sha.h" first.
68206         Include <stdlib.h>, <string.h> unconditionally.
68207
68208         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
68209         * lib/memcmp.c (__ptr_t): Likewise.
68210         * lib/memrchr.c (__ptr_t): Likewise.
68211         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
68212         Include <string.h> unconditionally.
68213         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
68214         * lib/memchr.c: Include <stdlib.h> unconditionally.
68215         * lib/memchr.c (LONG_MAX): Remove.
68216         * lib/memrchr.c (LONG_MAX): Likewise.
68217         * lib/memchr.c (__memchr): Define via a prototype.
68218         * lib/memrchr.c (__memrchr): Likewise.
68219         * lib/memcmp.c (__P): Remove, and remove all uses.
68220         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
68221         Remove forward decls; no longer needed.
68222         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
68223         Use types required by C89 in prototype.
68224
68225         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
68226         * lib/savedir.c: Likewise.
68227         * lib/mkdir.c (free): Remove decl.
68228         * lib/rmdir.c (rmdir): Define with a prototype.
68229         * lib/savedir.c: Include savedir.h first, to test interface.
68230
68231         * lib/mktime.c (STDC_HEADERS): Remove.
68232         Include <stdlib.h>, <string.h> unconditionally.
68233
68234         * lib/modechange.c: Include <stdlib.h> unconditionally.
68235         (malloc): Remove decl.
68236
68237         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
68238         (free): Remove decl.
68239
68240         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
68241         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
68242         (This type really should be intptr_t, but that's a C99ism.)
68243         (_obstack_memcpy): Remove: all uses changed to memcpy.
68244         Include <string.h> unconditionally.
68245         (struct obstack): Assume __STDC__ for types of members
68246         chunkfun, freefun, extra_arg.
68247         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
68248         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
68249         obstack_begin, obstack_specify_allocation,
68250         obstack_specify_allocation_with_arg, obstack_chunkfun,
68251         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
68252         Remove unprototyped decls and the macros that use them.
68253         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
68254         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
68255         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
68256         (defined __STDC__ && __STDC__)]:
68257         Remove nonprototyped code.
68258         Include <stdlib.h> unconditionally.
68259         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
68260         _obstack_allocated_p, _obstack_free, obstack_free,
68261         _obstack_memory_used, print_and_abort):
68262         Define using prototypes.
68263         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
68264         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
68265         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
68266         obstack_next_free, obstack_object_size, obstack_room) [0]:
68267         Remove unused, unprototyped code.
68268
68269         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
68270
68271         * lib/physmem.c (physmem_total, physmem_available, main): Define
68272         with prototypes.
68273
68274         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
68275         (main): Define with a prototype.
68276
68277         * lib/posixver.c (getenv): Remove decl.
68278
68279         * lib/putenv.c (malloc): Returns void *, not char *.
68280         Include <string.h> unconditionally.
68281         (strchr, memcpy, NULL): Do not define.
68282
68283         * lib/readtokens.c: Include readtokens.h first, to test interface.
68284         Include <stdlib.h>, <string.h> unconditionally.
68285         (init_tokenbuffer): Define with a prototype.
68286
68287         * lib/regex.c (PARAMS): Remove.  All uses removed.
68288         All uses of _RE_ARGS removed, too.
68289         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68290         unconditionally.
68291         (bzero): Assume memset exists.
68292         (memcmp, memcpy, NULL): Remove.
68293         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
68294         char, or assignments to local vars of type signed char.
68295         (init_syntax_once, PREFIX(extract_number_and_incr),
68296         PREFIX(print_partial_compiled_pattern),
68297         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
68298         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
68299         PREFIX(regex_grow_registers), PREFIX(regex_compile),
68300         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
68301         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
68302         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
68303         wcs_compile_range, byte_compile_range, truncate_wchar,
68304         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
68305         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
68306         count_mbs_length, wcs_re_match_2_internal,
68307         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
68308         PREFIX(alt_match_null_string_p),
68309         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
68310         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
68311         regfree, PREFIX(extract_number)): Define with prototype.  Remove
68312         now-unnecessary declaration, if any.
68313         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
68314         regcomp, regexec):
68315         Remove now-unnecessary casts among pointer types.
68316         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
68317
68318         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
68319         (free): Remove decl.
68320
68321         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
68322
68323         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
68324         (free): Remove decl.
68325
68326         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
68327         * lib/xgetcwd.c: Likewise.
68328
68329         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
68330         (free): Remove decl.
68331
68332         * lib/strchrnul.c (strchrnul): Define with a prototype.
68333         Fix bug: c_in was not converted to char before searching.
68334
68335         The following changes are not K&R related:
68336
68337         * lib/group-member.h: Include <sys/types.h>, so that this file is
68338         self-contained.
68339         * lib/makepath.h: Likewise.
68340
68341         * lib/getusershell.c (readname, default_index, line_size, readname):
68342         Use size_t, not int, for sizes.
68343         (readname): If the size overflows, report an error instead of
68344         looping forever.
68345
68346 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68347
68348         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
68349         libc.
68350
68351 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68352
68353         * README: New section: portability guidelines.
68354
68355 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68356
68357         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
68358         C89 spec.
68359
68360 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68361
68362         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
68363
68364 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68365
68366         Assume C89 or better; remove K&R cruft.
68367         A few of these changes were first proposed by Derek Robert Price
68368         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
68369
68370         * lib/addext.c: Include <string.h> unconditionally.
68371         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
68372         Don't declare getenv or malloc.
68373
68374         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
68375         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
68376         (NULL): Remove.
68377         (find_stack_direction, alloca): Use prototypes.
68378
68379         * lib/atexit.c (atexit): Define using a prototype.
68380
68381         * lib/basename.c, dirname.c, stripslash.c:
68382         Include <string.h> unconditionally.
68383
68384         * lib/bcopy.c: Include <stddef.h>.
68385         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
68386
68387         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
68388
68389         * lib/error.h (error, error_at_line, error_print_progname)
68390         [! (defined (__STDC__) && __STDC__)]: Remove decls.
68391         * lib/error.c: Include error.h first, to check interface.
68392         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68393         (VA_START): Remove; all uses changeed to va_start.
68394         (exit, strerror): Remove decls.
68395         (error_print_progname): Prototype uncondionally.
68396         Don't include <errno.h>; no longer needed.
68397         (private_strerror): Remove.
68398         (error_tail): Always define.
68399         (error, error_at_line): Assume C89 or better; always use prototypes.
68400         * lib/fatal.c: Include "fatal.h" first, to test interface.
68401         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68402         (VA_START): Remove; all uses changed to va_start.
68403         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
68404         this case.
68405         (exit): Remove decl.
68406         (fatal): Prototype unconditionally.  Assume va_start works.
68407         Abort at end, to pacify gcc.
68408
68409         * lib/euidaccess.c (main): Define with a prototype.
68410
68411         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
68412
68413         * lib/exitfail.c: Include <stdlib.h> unconditionally.
68414
68415         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
68416         prototypes.
68417         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
68418         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
68419         (getenv): Remove decl.
68420         (fnmatch): Define using a prototype.
68421         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
68422         (FCT): Define using a prototype.
68423
68424         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
68425
68426         * lib/gethostname.c: Include <stddef.h>.
68427         (gethostname): Define with prototype.  Length is size_t, not int.
68428
68429 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68430
68431         Assume C89 or better; remove K&R cruft.
68432         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
68433         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
68434         string.h, getenv, malloc.
68435         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
68436         headers.
68437         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
68438         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
68439         do not check for strerror.
68440         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
68441         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
68442         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
68443         do not check for doprnt or vprintf.
68444         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
68445         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
68446
68447 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68448
68449         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
68450         getversion.c should have been removed then, but was accidentally
68451         preserved.
68452
68453         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
68454         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
68455
68456 2003-09-08  Karl Berry  <karl@gnu.org>
68457
68458         * config/config.sub, config.guess, srclistvars.sh: update from savannah
68459                 config, forget about prep.
68460
68461         * config/depcomp, missing: update from automake.
68462
68463 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68464
68465         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
68466         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68467
68468 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68469
68470         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
68471         copy_tm_result.  Bug reported by Simon Josefsson in
68472         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68473
68474 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68475
68476         * m4/time_r.m4: New file.
68477         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
68478         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
68479         is. Check for timegm declaration.
68480         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
68481         Do not check for gmtime_r.
68482         Replace mktime if __mktime_internal does not exist and if mktime
68483         hasn't been replaced already.
68484
68485 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68486
68487         * lib/time_r.c, lib/time_r.h: New files.
68488
68489         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
68490         __localtime_r.
68491         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
68492         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
68493
68494         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
68495         __gmtime_r.
68496         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
68497         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
68498         Include <time_r.h>.
68499
68500         * lib/timegm.c: Switch to glibc implementation, with the following
68501         changes:
68502         [defined HAVE_CONFIG_H]: Include <config.h>.
68503         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
68504         (__mktime_internal) [!defined _LIBC]: New decl.
68505         (__gmtime_r) [!defined _LIBC]: New macro and function.
68506         (timegm): Use a prototype, since gnulib assumes C89.
68507         Do not bother declaring tmp to be const, as it's not really usefu.
68508         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
68509         (timegm): Declare only if HAVE_DECL_TIMEGM.
68510
68511 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68512
68513         * MODULES.html.sh (func_all_modules): Add time_r.
68514         * modules/time_r: New file.
68515         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
68516         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
68517
68518 2003-09-03  Paul Eggert  <eggert@twinsun.com>
68519
68520         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
68521         Bug reported by Lute Kamstra in
68522         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
68523
68524         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
68525         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
68526         course with correspondingly smaller numbers for tomorrow and
68527         yesterday.  From Tadayoshi Funaba.  Originally installed into
68528         sh-utils on 1999-08-07, but the patch got lost (I guess during the
68529         coreutils merge?).
68530
68531 2003-08-31  Simon Josefsson  <jas@extundo.com>
68532
68533         * modules/timegm: New file.
68534         * MODULES.html.sh (func_all_modules): Add timegm.
68535
68536 2003-08-31  Simon Josefsson  <jas@extundo.com>
68537
68538         * m4/timegm.m4: New file.
68539
68540 2003-08-31  Simon Josefsson  <jas@extundo.com>
68541
68542         * lib/timegm.h: New file.
68543         * lib/timegm.c: New file.  Based on
68544         wget-1.8.2/src/http.c:mktime_from_utc.
68545
68546 2003-08-31  Karl Berry  <karl@gnu.org>
68547
68548         * lib/argp.h: update from libc.
68549
68550 2003-08-28  Bruno Haible  <bruno@clisp.org>
68551
68552         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
68553         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
68554         followed by '#define fnmatch fnmatch_posix' gives an error.
68555
68556 2003-08-28  Bruno Haible  <bruno@clisp.org>
68557
68558         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
68559         warning on QNX, which defines O_BINARY to 000000.
68560
68561 2003-08-27  Jim Meyering  <jim@meyering.net>
68562
68563         * m4/mkstemp.m4: Require that the system mkstemp be able to create
68564         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
68565         would fail after 32.  Reported by Danny Levinson.  Details here:
68566         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
68567
68568 2003-08-24  Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
68571         MSVC7 <stdio.h> is included later.
68572
68573 2003-08-22  Simon Josefsson  <jas@extundo.com>
68574
68575         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
68576
68577 2003-08-20  Karl Berry  <karl@gnu.org>
68578
68579         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
68580
68581 2003-08-20  Bruno Haible  <bruno@clisp.org>
68582
68583         * modules/progname: New file.
68584         * MODULES.html.sh (func_all_modules): Add progname.
68585
68586 2003-08-20  Bruno Haible  <bruno@clisp.org>
68587
68588         * lib/progname.h: New file, from GNU gettext.
68589         * lib/progname.c: New file, from GNU gettext.
68590         * lib/progreloc.c: New file, from GNU gettext.
68591
68592 2003-08-19  Jim Meyering  <jim@meyering.net>
68593
68594         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
68595         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
68596
68597 2003-08-19  Bruno Haible  <bruno@clisp.org>
68598
68599         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
68600         more.
68601
68602 2003-08-19  Bruno Haible  <bruno@clisp.org>
68603
68604         * lib/xstrdup.c: Assume <string.h> exists.
68605
68606 2003-08-18  Paul Eggert  <eggert@twinsun.com>
68607
68608         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
68609         in makefile rules.
68610
68611 2003-08-18  Jim Meyering  <jim@meyering.net>
68612
68613         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
68614         * m4/lib-ld.m4: Likewise.
68615
68616 2003-08-18  Jim Meyering  <jim@meyering.net>
68617
68618         * lib/setenv.h: Indent nested cpp directive.
68619         * lib/vasnprintf.c: Remove trailing blanks.
68620
68621 2003-08-17  Simon Josefsson  <jas@extundo.com>
68622
68623         * modules/xstrndup: New file.
68624         * MODULES.html.sh (func_all_modules): Add xstrndup.
68625
68626 2003-08-17  Simon Josefsson  <jas@extundo.com>
68627
68628         * modules/argp: Fix autoconf macro name. Add more dependencies.
68629
68630 2003-08-17  Simon Josefsson  <jas@extundo.com>
68631
68632         * m4/xstrndup.m4: New file.
68633
68634 2003-08-17  Simon Josefsson  <jas@extundo.com>
68635
68636         * m4/argp.m4: New file.
68637
68638 2003-08-17  Simon Josefsson  <jas@extundo.com>
68639             Bruno Haible  <bruno@clisp.org>
68640
68641         * lib/xstrndup.h: New file.
68642         * lib/xstrndup.c: New file.
68643
68644 2003-08-17  Bruno Haible  <bruno@clisp.org>
68645
68646         * modules/strndup (Files, Include): Add lib/strndup.h.
68647
68648 2003-08-17  Bruno Haible  <bruno@clisp.org>
68649
68650         * modules/euidaccess (Files): Add lib/euidaccess.h.
68651
68652 2003-08-17  Bruno Haible  <bruno@clisp.org>
68653
68654         * lib/strndup.h: New file.
68655
68656 2003-08-17  Bruno Haible  <bruno@clisp.org>
68657
68658         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
68659         like AC_GNU_SOURCE.
68660         * modules/extensions (configure.ac): Comment out the invocation of
68661         gl_USE_SYSTEM_EXTENSIONS.
68662
68663 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68664
68665         Merges from coreutils, etc.
68666         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
68667         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
68668         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
68669         fixing a typo.
68670         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
68671         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
68672
68673 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68674
68675         Document merge from coreutils.
68676         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
68677         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
68678         * modules/utime: Add m4/utimes-null.m4.
68679
68680 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68681
68682         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
68683         space, undoing this 2003-08-12 change:
68684         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68685
68686 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68687
68688         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
68689         strtoul.c from libc, undoing this 2003-08-12 change:
68690         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68691
68692 2003-08-16  Jim Meyering  <jim@meyering.net>
68693
68694         Merges from coreutils.
68695         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
68696         prefix.  Adjust cache variables similarly.  Create 500 rather than
68697         just 300 files, to exercise bug on Darwin6.5, too.
68698         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
68699         $missing_dir.
68700         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
68701         AM_SYS_POSIX_TERMIOS.
68702         Reported by mkc@mathdogs.com.
68703         Also change use of $am_cv_sys_posix_termios
68704         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
68705         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
68706         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
68707         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
68708         in /proc/mounts until it finds one with matching device number.  This
68709         is unnecessary when the FILE argument *is* a mount point.  No stat call
68710         is necessary in that case.  So, disable the statvfs-testing code on
68711         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68712         as RedHat bug# 84846.
68713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68714         to 1MB, so as not to render systems with no stack size limit (e.g.,
68715         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68716         Include <unistd.h>.  On some systems,
68717         it is required for the definition of _SC_PAGESIZE.
68718
68719 2003-08-16  Jim Meyering  <jim@meyering.net>
68720
68721         Merge from coreutils.
68722         * lib/xstrtoimax.c: #else #if -> #elif.
68723         * lib/xstrtoumax.c: Likewise.
68724
68725 2003-08-16  Jim Meyering  <jim@meyering.net>
68726
68727         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68728         * m4/utimes.m4: Removed.
68729         * m4/utimes-null.m4: Renamed from utimes.m4.
68730
68731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68732         to 1MB, so as not to render systems with no stack size limit (e.g.,
68733         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68734         Include <unistd.h>.  On some systems,
68735         it is required for the definition of _SC_PAGESIZE.
68736
68737 2003-08-16  Jim Meyering  <jim@meyering.net>
68738         and Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         Merges from coreutils, etc.
68741
68742         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68743         using the latest version from cvs.  This avoids problems with #line
68744         directives using a vendor (Sun) compiler.
68745         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68746         Don't set GETGROUPS_LIB here; now it's
68747         done via getgroups.m4's wrapper function.
68748         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68749         rather than just in sh-util/configure.in, so that the
68750         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68751         same.
68752         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68753         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68754         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68755         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68756         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68757         Remove code that is now done by the newly-required macros.
68758         Append $(EXEEXT) to DF_PROG.
68759         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68760         Do not invoke or require the following here,
68761         since prereq.m4 or some gnulib .m4 now does this for us:
68762         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68763         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68764         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68765         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68766         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68767         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68768         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68769         AC_FUNC_OBSTACK.
68770         Do not replace the following functions, as this is now the job
68771         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68772         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68773         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68774         atexit getpass, strdup, getpagesize.
68775         Replace 'raise'.
68776         Do not check for the following functions, as this is now the job
68777         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68778         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68779         setregid.
68780         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68781         Check for sys/sysctl.h.
68782         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68783         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68784         of checking for ssize_t ourselves.
68785
68786         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68787         Require every macro that gnulib/modules/* suggests for us.
68788         (jm_PREREQ_ADDEXT): New macro.
68789         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68790         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68791
68792         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68793         (gl_PHYSMEM): Use it.
68794         Also check for `table' function.
68795         Check for new headers and functions.
68796         Add check for sys/sysmp.h.
68797         With suggestions from Kaveh Ghazi.
68798         Ignore headers that are present but cannot be compiled.  This
68799         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68800         C 5.4.
68801
68802 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68803
68804         Document merge from coreutils.
68805         * modules/userspec: Depend on posixver.
68806         * modules/strftime: Depend on tzset.
68807
68808 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68809
68810         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68811         rather than tab, after '#' in shell-script copyright notices.
68812         Suggested by Bruno Haible.
68813
68814 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68815
68816         * config/srclist-update: Use three spaces, rather than tab, after '#'
68817         in shell-script copyright notices.  Suggested by Bruno Haible.
68818         Remove unnecessary parenthesization in regular expression.
68819
68820 2003-08-15  Jim Meyering  <jim@meyering.net>
68821
68822         Merge from coreutils.
68823         * lib/xgethostname.c: Include <stdlib.h>.
68824         (xghostname): Don't exit for anything other than memory-related
68825         failure; just return NULL.
68826         * lib/userspec.c: Include "posixver.h".
68827         (parse_user_spec): Accept `.' as a separator only
68828         in pre-POSIX-200112 mode.
68829         * lib/strtoimax.c: Use #elif rather than #else #if.
68830         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68831         Remove function, now that we can rely on a working tzset function.
68832         [!_LIBC]: Ensure that the required autoconf test has been run.
68833         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68834         Use underlying_strftime for %r.
68835         * lib/sha.c: Merge in some clean-up and optimization changes from
68836         glibc.
68837         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68838         Ensure that it is a multiple of 64.
68839         Rearrange loop exit tests so as to avoid performing an
68840         additional fread after encountering an error or EOF.
68841         * lib/realloc.c: Update copyright date.
68842
68843 2003-08-15  Jim Meyering  <jim@meyering.net>
68844         and Paul Eggert  <eggert@twinsun.com>
68845
68846         Merge from coreutils.
68847         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68848         member but strut utmpx does not.  Needed for AIX 4.3.3.
68849         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68850
68851 2003-08-15  Jim Meyering  <jim@meyering.net>
68852         and Paul Eggert  <eggert@cs.ucla.edu>
68853
68854         Merges from coreutils, etc.
68855         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68856         Require gl_FUNC_TZSET_CLOBBER.
68857         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68858         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68859         members.
68860
68861 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68862
68863         Help the merge from coreutils.
68864         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68865         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68866         * m4/tzset.m4: Use it too.
68867
68868 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68869
68870         * modules/tzset: New file.
68871
68872 2003-08-14  Jim Meyering  <jim@meyering.net>
68873
68874         Merges from coreutils.
68875         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68876         variable names, rather than @FNMATCH_H@.
68877         * modules/alloca: Likewise for $(ALLOCA_H).
68878
68879         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68880         the three copies of the literal target, `fnmatch.h'.
68881         * modules/alloca (alloca.h): Likewise.
68882
68883 2003-08-14  Jim Meyering  <jim@meyering.net>
68884
68885         Merge from coreutils.
68886         * m4/tzset.m4: New file.
68887         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68888         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68889         otherwise, AIX 5.1 systems would end up using the latter.
68890         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68891         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68892         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68893         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68894
68895 2003-08-14  Jim Meyering  <jim@meyering.net>
68896
68897         Merge from coreutils.
68898         * lib/obstack.h: Whitespace changes.
68899         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68900         and xcalloc return values.
68901         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68902         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68903         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68904         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68905         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68906         error from mntctl.
68907         Use mntctl's return value to drive the entry-processing loop, since
68908         we can't rely on the value of the vmt_length member in the last
68909         entry.  On some systems doing so could result in exhausting
68910         virtual memory.  Based in part on a patch from Mike Jetzer.
68911
68912 2003-08-14  Jim Meyering  <jim@meyering.net>
68913         and Paul Eggert  <eggert@twinsun.com>
68914
68915         Merges from coreutils, plus other fixes.
68916         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68917         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68918         for credits and details.  Thanks to Kaveh Ghazi for helping
68919         to keep these files in sync.
68920         (ARRAY_SIZE): Define it.
68921         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68922         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68923         (memcasecmp): Don't assume size_t fits in unsigned int.
68924         Remove casts and duplicate code.
68925         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68926         (memcpy): Remove definition.
68927         Merge in some clean-up and optimization changes from glibc.
68928         [BLOCKSIZE]: Move definition to top of file.
68929         Ensure that it is a multiple of 64.
68930         Rearrange loop exit tests so as to avoid performing an
68931         additional fread after encountering an error or EOF.
68932         * lib/md5.h (md5_uintptr): Define.
68933         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68934         return to the initial working directory.  Preserve errno
68935         for caller.
68936         * lib/idcache.c: Include "xalloc.h".
68937         (xmalloc, xrealloc): Remove decls.
68938         (getuser): Remove casts no longer required in C89.
68939         * lib/human.c: Include stdio.h, for sprintf.
68940         * lib/group-member.c: Include "xalloc.h".
68941         (xmalloc, xrealloc): Remove decls.
68942         (get_group_info): Remove casts no longer required in C89.
68943         * lib/getusershell.c (readname): Remove casts no longer required in
68944         C89.
68945         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68946         * lib/getline.c: Whitespace fix, from coreutils.
68947
68948 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68949
68950         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68951         Check for isascii.
68952
68953         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68954         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68955         Undo previous (whitespace-only) change.
68956
68957 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68958
68959         * lib/exclude.c: Include <ctype.h>
68960         (IN_CTYPE_DOMAIN): New macro.
68961         (is_space): New fn.
68962         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68963         and empty lines.
68964
68965         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68966         Undo previous (whitespace-only) change.
68967
68968 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68969
68970         * config/srclist-update: Change update back to the old behavior,
68971         leaving whitespace alone.  Use one 'sed' command rather than a
68972         pipeline.
68973         (fixlicense): Now a variable, not a function.
68974         (remove_trailing_blanks): Remove.
68975         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
68976         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68977         Undo previous (whitespace-only) change.
68978
68979 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68980
68981         Merge from coreutils.
68982         * modules/euidaccess: Add lib_SOURCES, include for new
68983         file euidaccess.h
68984
68985 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68986
68987         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68988         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68989         Normalize leading white space and remove trailing white space.
68990
68991         Merge from coreutils
68992         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
68993
68994         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
68995         0.12.1.  These files are now being upgraded automatically by
68996         ../config/srclist-update.
68997
68998 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68999
69000         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69001         Normalize leading white space and remove trailing white space.
69002         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
69003         notice, as per ../config/srclist-update.
69004
69005         Merge from coreutils.
69006         * lib/euidaccess.h: New file.
69007         * lib/euidaccess.c: Include it.
69008         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
69009         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
69010         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
69011
69012 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69013
69014         * config/srclist-update: Add copyright notice.
69015         (remove_id_lines, remove_trailing_blanks): New constants.
69016         (fixfile): Use them to normalize spacing a bit in copied files.
69017         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69018         Normalize leading white space and remove trailing white space.
69019
69020         * config/texinfo.tex: Sync with texinfo.
69021
69022         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
69023         strtoul.c from libc, to merge coreutils whitespace changes.
69024
69025         * config/srclist.txt: Get the following m4 files from gettext:
69026         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
69027         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
69028         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
69029         wint_t.m4.
69030
69031 2003-08-12  Karl Berry  <karl@gnu.org>
69032
69033         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
69034         been made.
69035
69036 2003-08-11  Paul Eggert  <eggert@twinsun.com>
69037
69038         * modules/gnu-source, m4/gnu-source.m4:
69039         Remove; we're assuming Autoconf 2.54 or later now.
69040         Suggested by Bruno Haible.
69041         * MODULES.html.sh (func_all_modules): Remove gnu-source.
69042
69043 2003-08-11  Bruno Haible  <bruno@clisp.org>
69044
69045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
69046
69047 2003-08-11  Bruno Haible  <bruno@clisp.org>
69048
69049         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
69050         (vasnprintf): Use it instead of wcslen.
69051
69052 2003-08-11  Bruno Haible  <bruno@clisp.org>
69053
69054         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
69055         value to ensure that _Bool promotes to int. Use #define for _Bool when
69056         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
69057
69058 2003-08-10  Karl Berry  <karl@gnu.org>
69059
69060         * lib/regex.h: update from libc (whitespace fix).
69061
69062 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69063
69064         Merge some files from coreutils.  These changes were
69065         originally made by Jim Meyering.
69066         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
69067         many older Unixes require this.
69068         * lib/alloca.c (alloca): Remove cast to argument of free;
69069         no longer needed in C89.
69070         * lib/alloca_.h, regex.h: Fix white space to match
69071         what GNU indent does.
69072
69073 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69074
69075         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
69076         apparently Emacs's Unicode mode got confused before my 2003-08-05
69077         checkin.
69078
69079 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69080
69081         * m4/extensions.m4: New file.
69082         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
69083         Require gl_USE_SYSTEM_EXTENSIONS.
69084         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
69085         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
69086
69087 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69088
69089         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
69090         * modules/extensions, modules/gnu-source: New files.
69091         * modules/timespec, modules/unlocked-io: Depend on extensions.
69092
69093 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69094
69095         * modules/restrict: New file.
69096         * MODULES.html.sh (func_all_modules): Add restrict.
69097         * modules/regex: Depend on restrict.
69098
69099 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69100
69101         * m4/restrict.m4: New file.
69102         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
69103
69104 2003-08-07  Bruno Haible  <bruno@clisp.org>
69105
69106         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
69107         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
69108
69109 2003-08-07  Bruno Haible  <bruno@clisp.org>
69110
69111         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
69112         makes the module 'getndelim2' compatible with the module 'getline'.
69113
69114 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69115
69116         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
69117         byte with "\201" to avoid glitches when editing that source file
69118         with multi-gnome-terminal.
69119
69120 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69121
69122         * lib/bumpalloc.h: Remove.
69123
69124 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69125
69126         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
69127         * modules/bumpalloc: Remove.
69128
69129 2003-08-04  Paul Eggert  <eggert@twinsun.com>
69130
69131         * lib/getloadavg.c: Change copyright notice and spacing to conform to
69132         GNU coding style.
69133
69134         Merge from coreutils.
69135         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
69136         1. From glibc.
69137         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
69138         from Karl Berry, implemented by Jim Meyering.
69139         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
69140         from Dmitry V. Levin.
69141         Remove anachronistic cast of xrealloc.
69142         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
69143         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
69144         type. Otherwise, it wouldn't compile with at least /bin/cc on
69145         ymp-cray-unicos9.0.2.X.
69146         Combine two mostly-identical uses of alloca into one.
69147         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
69148
69149 2003-08-04  Dave Love  <d.love@dl.ac.uk>
69150
69151         [From Emacs.]
69152
69153         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
69154         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
69155         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
69156         obsolete NLIST_NAME_UNION.
69157         [__GNU__]: Undef BSD and FSCALE.
69158         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
69159
69160 2003-08-03  Paul Eggert  <eggert@twinsun.com>
69161
69162         * lib/stdbool_.h (_Bool): Make it signed char, instead of
69163         an enum type, so that it's guaranteed to promote to int.  See:
69164         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
69165
69166 2003-08-03  Karl Berry  <karl@gnu.org>
69167
69168         * config/depcomp: update from automake.
69169
69170 2003-07-31  Paul Eggert  <eggert@twinsun.com>
69171
69172         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
69173         (strerror): Don't assume that a printable int fits in 14 bytes.
69174
69175 2003-07-31  Bruno Haible  <bruno@clisp.org>
69176
69177         * modules/getpass-gnu: New file.
69178         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
69179
69180 2003-07-31  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
69183
69184 2003-07-24  Karl Berry  <karl@gnu.org>
69185
69186         * config/missing: update from automake.
69187
69188 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
69189             Bruno Haible  <bruno@clisp.org>
69190
69191         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
69192         * lib/getline.c (getline, getdelim): Likewise.
69193         Remove _GNU_SOURCE define; now it's defined in config.h through
69194         m4/getline.m4.
69195
69196 2003-07-23  Karl Berry  <karl@gnu.org>
69197
69198         * config/config.sub: update from prep.
69199
69200 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69201
69202         * modules/xalloc (Depends-on): Add exitfail.
69203         * modules/xmemcoll: Likewise.
69204
69205 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69206
69207         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
69208         over-parenthesization in macros.
69209
69210         Sync with coreutils.
69211
69212         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
69213         required by C99.
69214
69215         Use `exit_failure' for xalloc and xmemcoll instead of their own
69216         private exit-failure variables.
69217         * lib/xalloc.h (xalloc_exit_failure): Remove.
69218         * lib/xmalloc.c: Likewise.  Include exitfail.h.
69219         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
69220         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
69221         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
69222         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
69223
69224 2003-07-20  Jim Meyering  <jim@meyering.net>
69225
69226         * modules/closeout (Depends-on): Add exitfail.
69227         Suggestion from Bruno Haible.
69228
69229 2003-07-19  Karl Berry  <karl@gnu.org>
69230
69231         * config/config.sub: update from prep.
69232
69233 2003-07-18  Paul Eggert  <eggert@twinsun.com>
69234
69235         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
69236         Remove.
69237         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
69238         to test that it can stand by itself.  Include "exitfail.h".
69239         Clients should set exit_failure instead.
69240         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
69241
69242 2003-07-18  Bruno Haible  <bruno@clisp.org>
69243
69244         * modules/getndelim2: New file.
69245         * modules/getline: Share files with module getndelim2.
69246         * modules/getnline: Depend on getndelim2 instead of sharing files with
69247         it. Add getnline.c to lib_SOURCES.
69248         * MODULES.html.sh (func_all_modules): Add getndelim2.
69249
69250 2003-07-18  Bruno Haible  <bruno@clisp.org>
69251
69252         * m4/getndelim2.m4: New file.
69253         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
69254         invoke gl_PREREQ_GETNDELIM2.
69255         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
69256         gl_PREREQ_GETNDELIM2.
69257         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
69258         gl_GETNDELIM2.
69259
69260 2003-07-18  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/getndelim2.h: New file.
69263         * lib/getndelim2.c: Make into a module of its own. Include config.h,
69264         getndelim2.h.
69265         (getndelim2): Make non-static. Change return type to ssize_t.
69266         * lib/getline.h: Change argument names.
69267         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
69268         * lib/getnline.c: Include getndelim2.h.
69269
69270 2003-07-18  Andreas Schwab  <schwab@suse.de>
69271
69272         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
69273
69274 2003-07-17  Karl Berry  <karl@gnu.org>
69275
69276         * config/config.sub: update from prep.
69277
69278 2003-07-17  Bruno Haible  <bruno@clisp.org>
69279
69280         * modules/getnline: New file.
69281         * modules/getline: Add lib/getndelim2.c to source file list.
69282         * MODULES.html.sh (func_all_modules): Add getnline.
69283
69284 2003-07-17  Bruno Haible  <bruno@clisp.org>
69285
69286         * m4/getnline.m4: New file.
69287
69288 2003-07-17  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/Makefile.am.in: Remove file.
69291         * m4/Makefile.am: Remove file.
69292         * m4/Makefile.in: Remove file.
69293
69294 2003-07-17  Bruno Haible  <bruno@clisp.org>
69295
69296         * lib/getnline.h: New file.
69297         * lib/getnline.c: New file.
69298         * lib/getndelim2.c: New file, extracted from getline.c.
69299         (getndelim2): Renamed from getdelim2, with added nmax argument.
69300         * lib/getline.c: Include getndelim2.c.
69301         (getdelim2): Moved out to getndelim2.c.
69302         (getline, getdelim): Update.
69303
69304 2003-07-17  Bruno Haible  <bruno@clisp.org>
69305
69306         * lib/Makefile.am: Remove file.
69307         * lib/Makefile.in: Remove file.
69308
69309 2003-07-17  Bruno Haible  <bruno@clisp.org>
69310
69311         * configure.in: Remove file.
69312         * Makefile.in: Remove file.
69313
69314 2003-07-17  Bruno Haible  <bruno@clisp.org>
69315
69316         * MODULES.html.sh: Put the </BODY> right before </HTML>.
69317
69318 2003-07-16  Karl Berry  <karl@gnu.org>
69319
69320         * config/srclist-update: was running fixlicense twice, which caused
69321                 texinfo.tex to be nullified for some reason.  Simplify,
69322                 $gplsrc is no longer needed as far as I can see?
69323
69324 2003-07-16  Jim Meyering  <jim@meyering.net>
69325
69326         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
69327
69328 2003-07-15  Paul Eggert  <eggert@twinsun.com>
69329
69330         * config/srclist.txt: Get the following files from gettext-runtime/intl
69331         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
69332         ref-del.sin.  From Bruno Haible.
69333         * config/srclist-update (fixfile): Change grep pattern again, since the
69334         previous fix didn't work (there was another trailing $).  Use
69335         '[$]' to escape the $s.
69336
69337 2003-07-15  Karl Berry  <karl@gnu.org>
69338
69339         * lib/vasnprintf.c: update from gettext.
69340
69341 2003-07-15  Karl Berry  <karl@gnu.org>
69342
69343         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
69344         gets expanded when surrounded by '$'.
69345
69346 2003-07-15  Jim Meyering  <jim@meyering.net>
69347
69348         * modules/save-cwd: Don't depend on error.  From Derek Price.
69349
69350 2003-07-15  Jim Meyering  <jim@meyering.net>
69351
69352         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
69353
69354 2003-07-14  Simon Josefsson  <jas@extundo.com>
69355
69356         * modules/mempcpy: New file.
69357         * MODULES.html.sh (func_all_modules): Add mempcpy.
69358
69359 2003-07-14  Simon Josefsson  <jas@extundo.com>
69360
69361         * m4/mempcpy.m4: New file.
69362
69363 2003-07-14  Simon Josefsson  <jas@extundo.com>
69364
69365         * lib/mempcpy.h: New file.
69366         * lib/mempcpy.c: New file.
69367
69368 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69369
69370         * modules/getdate, modules/posixtm: Depend on mktime.
69371
69372 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69373
69374         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
69375         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
69376         unicodeio.c, unicodeio.h, unlocked-io.h:
69377         Switch from LGPL to GPL.
69378
69379 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69380
69381         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
69382         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
69383         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
69384         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
69385         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
69386         updated automatically by ../config/srclist-update.  This changes
69387         their license from LPGL to GPL.
69388
69389 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69390
69391         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
69392         assumed to refer to the root of the most recent stable gettext version.
69393         * config/srclistvars.sh: Add defaults for eggert.
69394         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
69395         Match "This program" as well as "The program".  This is needed
69396         for gettext.
69397
69398 2003-07-14  Jim Meyering  <jim@meyering.net>
69399
69400         Don't emit diagnostics.  Let callers do that.
69401         * lib/save-cwd.c: Don't include "error.h".
69402         (save_cwd): Don't call error.  Ensure that errno is valid
69403         when returning nonzero.
69404
69405         * lib/save-cwd.h (restore_cwd): Update prototype.
69406         * lib/save-cwd.c (restore_cwd): Remove two parameters.
69407         Simplify.  Don't call error upon failure.  Let callers do that.
69408         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
69409         when auditing is enabled.  But don't bother updating the #if.
69410
69411 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
69412
69413         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
69414         it breaks C++ compilation.
69415         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
69416
69417 2003-07-10  Simon Josefsson  <jas@extundo.com>
69418
69419         * modules/strchrnul (Makefile.am): Add strchrnul.h.
69420
69421 2003-07-10  Jim Meyering  <jim@meyering.net>
69422
69423         * m4/clock_time.m4: Remove trailing blank.
69424         * m4/intmax_t.m4: Likewise.
69425
69426 2003-07-10  Jim Meyering  <jim@meyering.net>
69427
69428         * lib/vasnprintf.c: Remove trailing blanks.
69429         Make cpp indentation consistent.
69430
69431 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69432
69433         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
69434         posixver.c, strftime.c, strnlen.c, strverscmp.c:
69435         Switch from LGPL to GPL.
69436
69437 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69438
69439         * config/srclist.txt: Sort sublists.  Add
69440         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
69441         that differ from gnulib for one reason or another; we'd like this list
69442         to be smaller but for now let's document what we have.
69443
69444 2003-07-08  Paul Eggert  <eggert@twinsun.com>
69445
69446         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
69447         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
69448         and sweeter "eval x=$x".
69449         * config/srclist.txt: Get lib/argp* from glibc.
69450
69451 2003-07-07  Paul Eggert  <eggert@twinsun.com>
69452
69453         * lib/mktime.c: Fix some boundary cases and remove need for floating
69454         point.
69455
69456         Issue a compile-time diagnostic if time_t is floating point, or if
69457         two's complement arithmetic is not in effect, or if arithmetic
69458         right shift does not propagate the sign.  These assumptions were
69459         all in the original code but they weren't checked.
69460
69461         (TIME_T_MIDPOINT, verify): New macros.
69462         (__isleap): Remove; it has integer overflow problems.
69463         (leapyear): New function, without those problems.
69464         (ydhms_tm_diff): Remove; splitting into two parts.
69465         (ydhms_diff): New function, containing the arithmetic part of
69466         the old ydhms_tm_diff function.  Issue a compile-time
69467         diagnostic if we are not using C99 integer division.
69468         Avoid casts when possible.
69469         (guess_time_tm): New function, containing the checking part of
69470         the old ydhms_tm_diff function.  Return the new value, rather than
69471         the difference between it and the old.  Accept a new argument T
69472         so that *T specifies the old value.  Check for overflow in the result.
69473
69474         (__mktime_internal): Use a time_t offset, not a long int offset.
69475         This undoes the 2003-06-04 change, which is no longer needed now
69476         that we have better overflow checking.
69477         (localtime_offset): Likewise.
69478
69479         (__mktime_internal): Avoid harmful overflow on hosts where time_t
69480         and long are 64-bit but int is only 32-bit.
69481         (ydhms_diff): Use long int to store year1 and yday1.
69482         Issue a compile-time diagnostic if long int is not wide enough.
69483
69484         (__mktime_internal): Use long int to store adjusted year and yday.
69485         Use plain C rather than preprocessor commands, if that doesn't
69486         affect efficiency.
69487         Check for overflow (and try to repair) after each probe
69488         rather than checking only at the very end.  This avoids some bugs
69489         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
69490         does not equal GMT offset at maximum time).
69491         Use integer to check for overflow rather than floating point; this
69492         is more portable to non-IEEE hosts, and is a tad faster.
69493         When we detect that we are oscillating between two values,
69494         don't check whether tm_isdst has the requested value, since
69495         we already know the answer.  When tm_isdst has the wrong value,
69496         use a different heuristic to find the right one, based on the
69497         extreme values actually observed in practice in tz2003a,
69498         rather than the (overly optimistic) "previous 3 calendar quarters".
69499
69500         (not_equal_tm, print_tm, check_result): Use "const T" rather than
69501         "T const" to accommodate glibc style.
69502         (check_result): Use less-confusing report format.  "long" -> "long int.
69503         (main): Likewise.
69504         Don't loop if the iteration overflows time_t.
69505         Allow a negative step in the iteration.
69506
69507 2003-07-06  Karl Berry  <karl@gnu.org>
69508
69509         * config/depcomp: update from automake.
69510         * config/config.sub: update from prep.
69511
69512 2003-07-03  Karl Berry  <karl@gnu.org>
69513
69514         * config/config.guess: update from prep.
69515
69516 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69517
69518         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
69519         xreadlink.c now includes it unconditionally.
69520
69521 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69522
69523         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
69524         having it depend on HAVE_SYS_TYPES_H.
69525
69526 2003-07-01  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
69529         <sys/types.h> should be sufficient.
69530         Reported by Paul Eggert.
69531
69532 2003-06-26  Karl Berry  <karl@gnu.org>
69533
69534         * config/depcomp: update from automake.
69535
69536 2003-06-26  Bruno Haible  <bruno@clisp.org>
69537
69538         * modules/human: Depend on module stdbool.
69539
69540 2003-06-25  Bruno Haible  <bruno@clisp.org>
69541
69542         * modules/readlink: New file.
69543         * modules/xreadlink: Depend on it.
69544         * MODULES.html.sh (func_all_modules): Add readlink.
69545
69546 2003-06-25  Bruno Haible  <bruno@clisp.org>
69547
69548         * m4/readlink.m4: New file.
69549
69550 2003-06-25  Bruno Haible  <bruno@clisp.org>
69551
69552         * lib/readlink.c: New file.
69553
69554 2003-06-22  Karl Berry  <karl@gnu.org>
69555
69556         * config/srclist.txt: update mkinstalldirs from automake.
69557         * config/mkinstalldirs: update.
69558
69559 2003-06-22  Bruno Haible  <bruno@clisp.org>
69560
69561         Portability to mingw32.
69562         * m4/ssize_t.m4: New file, from GNU gettext.
69563         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
69564         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
69565
69566 2003-06-22  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/safe-read: Add m4/ssize_t.m4.
69569         * modules/xreadlink: Add m4/ssize_t.m4.
69570
69571 2003-06-20  Bruno Haible  <bruno@clisp.org>
69572
69573         Assume C89, so PARAMS isn't needed.
69574         * lib/unicodeio.h (PARAMS): Remove.
69575         * lib/unicodeio.c: Don't use PARAMS.
69576
69577 2003-06-18  Karl Berry  <karl@gnu.org>
69578
69579         * config/config.{guess,sub}: update from prep.
69580
69581 2003-06-18  Jim Meyering  <jim@meyering.net>
69582
69583         Merge changes from coreutils.
69584         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
69585         Remove explicit declarations of xmalloc and realloc.
69586         Include xalloc.h.
69587         (read_utmp): Remove anachronistic cast of xmalloc.
69588
69589 2003-06-17  Paul Eggert  <eggert@twinsun.com>
69590
69591         Assume C89, so PARAMS isn't needed.
69592         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
69593         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
69594         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
69595         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
69596         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
69597         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
69598         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
69599         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
69600         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
69601         lib/xstrtod.h, lib/xstrtol.h: Likewise.
69602         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
69603         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
69604         no longer needed. Anyway, config.h should always be included before any
69605         other file.
69606
69607 2003-06-11  Simon Josefsson  <jas@extundo.com>
69608
69609         * modules/sysexits: New file.
69610         * MODULES.html.sh (func_all_modules): Add sysexits.
69611
69612 2003-06-11  Simon Josefsson  <jas@extundo.com>
69613
69614         * lib/sysexit_.h: New file.
69615
69616 2003-06-11  Derek Price  <derek@ximbiot.com>
69617
69618         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
69619         necessary.
69620
69621 2003-06-11  Bruno Haible  <bruno@clisp.org>
69622
69623         * m4/sysexits.m4: New file.
69624
69625 2003-06-10  Simon Josefsson  <jas@extundo.com>
69626
69627         * lib/argp.h: New file, from glibc.
69628         * lib/argp-ba.c: New file, from glibc.
69629         * lib/argp-eexst.c: New file, from glibc.
69630         * lib/argp-fmtstream.c: New file, from glibc.
69631         * lib/argp-fmtstream.h: New file, from glibc.
69632         * lib/argp-fs-xinl.c: New file, from glibc.
69633         * lib/argp-help.c: New file, from glibc.
69634         * lib/argp-namefrob.h: New file, from glibc.
69635         * lib/argp-parse.c: New file, from glibc.
69636         * lib/argp-pv.c: New file, from glibc.
69637         * lib/argp-pvh.c: New file, from glibc.
69638         * lib/argp-xinl.c: New file, from glibc.
69639
69640 2003-06-10  Simon Josefsson  <jas@extundo.com>
69641
69642         * modules/strchrnul: New file.
69643
69644 2003-06-10  Simon Josefsson  <jas@extundo.com>
69645
69646         * modules/argp: New file.
69647
69648 2003-06-10  Simon Josefsson  <jas@extundo.com>
69649
69650         * m4/strchrnul.m4: New file.
69651
69652 2003-06-10  Simon Josefsson  <jas@extundo.com>
69653
69654         * lib/strchrnul.h: New file.
69655         * lib/strchrnul.c: New file.
69656
69657 2003-06-10  Bruno Haible  <bruno@clisp.org>
69658
69659         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
69660
69661 2003-06-07  Karl Berry  <karl@gnu.org>
69662
69663         * config/config.{guess,sub}: update from prep.
69664
69665 2003-06-07  Jim Meyering  <jim@meyering.net>
69666
69667         * modules/strtod: Use $(...) notation, not @...@ for
69668         AC_REPLACE'd variables.
69669         * modules/localcharset: Likewise.
69670
69671 2003-06-07  Jim Meyering  <jim@meyering.net>
69672
69673         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
69674         in place of my name in the copyright comment.
69675         Remove definition and uses of __P.
69676
69677         From coreutils.
69678         * lib/stat.c: Don't declare xmalloc explicitly.
69679         Instead, include "xalloc.h".
69680         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
69681         xrealloc, and xcalloc return values.
69682         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
69683         Improve comment.
69684         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
69685
69686 2003-06-07  Bruno Haible  <bruno@clisp.org>
69687
69688         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
69689         avoid AC_CONFIG_LINKS.
69690         * modules/fnmatch (Makefile.am): Use explicit creation rule for
69691         fnmatch.h, to avoid AC_CONFIG_LINKS.
69692         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
69693
69694 2003-06-07  Bruno Haible  <bruno@clisp.org>
69695
69696         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
69697         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
69698         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69699         directory.
69700         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
69701         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69702         directory.
69703
69704 2003-06-06  Jim Meyering  <jim@meyering.net>
69705
69706         Merge from coreutils.
69707         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
69708         Consolidate declarations and initializations of *_base* locals.
69709
69710         Merge from coreutils.
69711         This avoids a core dump on systems without GNU putenv,
69712         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69713         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69714         (unsetenv): New static function, from GNU libc.
69715         (rpl_putenv): Use it.
69716
69717         * lib/modechange.c: Remove trailing blanks.
69718
69719         Merge from coreutils.
69720         * lib/fsusage.c: Remove declaration of statfs.
69721         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69722
69723         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69724
69725 2003-06-06  Jim Meyering  <jim@meyering.net>
69726
69727         * lib/stdbool_.h: Renamed from stdbool.h.in.
69728
69729 2003-06-06  Jim Meyering  <jim@meyering.net>
69730             Bruno Haible  <bruno@clisp.org>
69731
69732         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69733         Adjust Makefile.am snippet not to redirect directly to target.
69734         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69735
69736 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69737
69738         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69739         mismatch, look in future quarters as well as past.  This fixes a
69740         bug when processing fall-backwards gaps immediately after a long
69741         period of daylight-saving time.
69742
69743         * lib/mktime.c: Assume freestanding C89 or better.
69744         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69745         (__P): Remove; not used.
69746         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69747         (mktime, not_equal_tm, print_tm, check_result,
69748         main): Use prototypes.  Use const * where appropriate.
69749         (main): Fix typo in testing code that uncovered by above changes.
69750         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69751
69752 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69753
69754         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69755         locale.h, localeconv.  This merges changes from coreutils.
69756
69757         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69758         It can be removed after the next Autoconf is released.
69759         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69760         needed.
69761
69762 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69763
69764         * lib/mktime.c: Fix Debian bug 177940
69765         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69766         (localtime_offset): Now long int, not time_t, because we want it
69767         to be guaranteed to be signed.  All uses changed.
69768         (__mktime_internal): If overflow would occur when adding offset,
69769         don't add it.
69770
69771         Merge 'human' changes from coreutils.  Rewrite to support
69772         locale-specific notations like thousands separators.
69773         * lib/human.c: Simplify authorship notice.
69774         Include human.h immediately after config.h.
69775         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69776         <limits.h>: Do not include, since human.h does.
69777         (SIZE_MAX, UINTMAX_MAX): New macros.
69778         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69779         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69780         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69781         (power_letter): Renamed from suffixes.
69782         (generate_suffix_backwards): Remove.
69783         (adjust_value): Now takes int style (because of human.h changes)
69784         and long double value (for greater precision on some platforms).
69785         (group_number): New function.
69786         (human_readable): Use it.  Use integer options, not enum.
69787         Put the options before the sizes in the arg list.
69788         Support all the new options.
69789         The old human_readable function has been removed;
69790         use inttostr.h instead.
69791         (human_readable, default_block_size, humblock):
69792         Use uintmax_t, not int, for block sizes.
69793         (human_readable_inexact, block_size_types): Remove.
69794         (block_size_opts): New constant.
69795         (human_options): Renamed from human_block_size, with new signature
69796         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69797         * lib/human.h: Add copyright and authorship notice.
69798         Include <limits.h> and <stdbool.h> unconditionally.
69799         (PARAMS): Remove.  All uses removed.
69800         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69801         (enum human_inexact_style): Remove tag; now a nameless enum.
69802         (human_floor, human_ceiling, human_round_to_even): Now have
69803         values 2, 0, 1 rather than -1, 1, 0.
69804         (human_group_digits, human_suppress_point_zero, human_autoscale,
69805         human_base_1024, human_SI, human_B): New constants.
69806         (human_readable_inexact, human_block_size): Remove.
69807         (human_readable): Size args are now uintmax_t, not int.
69808         (human_options): New decl.
69809
69810         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69811         unnecessary now that we assume C89 or better.  This change
69812         imported from coreutils.
69813
69814         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69815         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69816         in the 2003-05-30 sync from glibc.
69817
69818         .h files should stand alone, but we shouldn't include <sys/types.h>
69819         if we can get away with just <stddef.h>.
69820
69821         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69822         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69823         rather than <sys/types.h>, as we merely need size_t.
69824         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69825         to get size_t.
69826         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69827         Include <stdio.h>, to get FILE.
69828         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69829         memcasecmp.h has included <stddef.h> and all we need is size_t.
69830         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69831         our interface, instead of including <sys/types.h>
69832
69833 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69834
69835         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69836         now, as glibc mktime is buggy on non-glibc systems.
69837
69838 2003-06-03  Karl Berry  <karl@gnu.org>
69839
69840         * config/config.sub: update from prep.
69841
69842 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69843
69844         [from coreutils]
69845         Fix some minor time-related bugs with POSIX time arguments.
69846         Some valid time stamps were being rejected (notably -1, and
69847         time stamps before 1900 on 64-bit hosts).  And some invalid
69848         time stamps were being accepted, e.g. September 31.
69849
69850         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69851         that we can return (time_t) -1 successfully.
69852         * lib/posixtm.c: Likewise.
69853         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69854         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69855         (t): Remove static var.
69856         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69857         of static var.  All uses changed.
69858         (year): Do not reject years before 1900; they can occur with
69859         64-bit time_t.
69860         (posix_time_parse): Do not check for out-of-range components;
69861         that is now the caller's responsibility, since our checks were
69862         only approximations.
69863         (posixtime): Use mktime to check for out-of-range components,
69864         since it knows them exactly.
69865         If mktime returns (time_t) -1, check whether an error actually occurred
69866         by invoking localtime on -1.
69867         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69868         posixtime failures better.
69869         Improve the test data (in comments only).
69870
69871 2003-06-02  Karl Berry  <karl@gnu.org>
69872
69873         * config/mkinstalldirs (version): new variable.
69874         (--version): new option.
69875         (usage): improve message.
69876
69877 2003-05-30  Karl Berry  <karl@gnu.org>
69878
69879         * lib/mktime.c: update from libc.
69880
69881 2003-05-30  Bruno Haible  <bruno@clisp.org>
69882
69883         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69884         * config/config.rpath: Upgrade to gettext-0.12.1.
69885
69886 2003-05-30  Bruno Haible  <bruno@clisp.org>
69887
69888         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69889         * m4/nls.m4: New file, from gettext-0.12.1.
69890         * m4/po.m4: New file, from gettext-0.12.1.
69891         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69892
69893 2003-05-30  Bruno Haible  <bruno@clisp.org>
69894
69895         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69896         * lib/localcharset.h: Likewise.
69897         * lib/localcharset.c: Likewise.
69898
69899 2003-05-29  Karl Berry  <karl@gnu.org>
69900
69901         * config/config.rpath: update from gettext.
69902
69903 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69904
69905         Assume the headers required for C89 freestanding compilers.
69906         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69907         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69908         * m4/human.m4 (gl_HUMAN): Likewise.
69909         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69910         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69911         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69912         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69913         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69914         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69915
69916 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69917
69918         Assume the headers required for C89 freestanding compilers.
69919         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69920         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69921         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69922         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69923         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69924         define, since <limits.h> is guaranteed to do that.
69925         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69926         * lib/exclude.c: Include <stdbool.h> unconditionally.
69927         * lib/tempname.c: Include <stddef.h> unconditionally.
69928         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69929         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69930         <stddef.h> does that.
69931         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69932         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69933         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69934         needed.
69935         * lib/xstrtol.c: Likewise.
69936         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69937         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69938
69939         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69940         warnings on some platforms.
69941
69942         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69943         arbitrarily.
69944
69945 2003-05-26  Jim Meyering  <jim@meyering.net>
69946
69947         Merge in a change from coreutils:
69948         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69949         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69950         that condition, rather than `-1' which is slightly misleading.
69951         Change the name of the cache variable to have the gl_ prefix.
69952         Prompted by a patch from Richard Dawe for DJGPP.
69953
69954 2003-05-24  Karl Berry  <karl@gnu.org>
69955
69956         * config/config.guess: update from prep.
69957
69958 2003-05-22  Karl Berry  <karl@gnu.org>
69959
69960         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69961
69962 2003-05-20  Karl Berry  <karl@gnu.org>
69963
69964         * config/config.guess: update from prep.
69965
69966 2003-05-18  Karl Berry  <karl@gnu.org>
69967
69968         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
69969         might actually be set by the user.
69970
69971         * config/depcomp, install-sh, mdate-sh: update from automake.
69972
69973 2003-05-17  Bruno Haible  <bruno@clisp.org>
69974
69975         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
69976         invalid expansion for AC_EGREP_CPP.
69977         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
69978         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
69979         Suggested by Akim Demaille <akim@epita.fr> in
69980         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
69981
69982 2003-05-12  Jim Meyering  <jim@meyering.net>
69983
69984         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
69985         the space-padded-by-default conversion specifiers, %e, %k, %l.
69986
69987 2003-05-12  Bruno Haible  <bruno@clisp.org>
69988
69989         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
69990         the string is longer than 4 KB.
69991
69992 2003-05-11  Karl Berry  <karl@gnu.org>
69993
69994         * config/config.{guess,sub}: update from prep.
69995
69996 2003-05-09  Bruno Haible  <bruno@clisp.org>
69997
69998         * modules/error: Add m4/strerror_r.m4 to file list.
69999
70000 2003-05-03  Bruno Haible  <bruno@clisp.org>
70001
70002         Upgrade to Unicode-4.0.
70003         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
70004         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
70005         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
70006         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
70007         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
70008         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
70009         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
70010         Change width of U+E0100..U+E01EF from 1 to 0.
70011
70012 2003-04-25  Jim Meyering  <jim@meyering.net>
70013
70014         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
70015         of type size_t, not int.
70016
70017 2003-04-25  Bruno Haible  <bruno@clisp.org>
70018
70019         * lib/copy-file.c: Include <stddef.h>, for size_t.
70020
70021 2003-04-21  Paul Eggert  <eggert@twinsun.com>
70022
70023         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
70024         code which expansion is under static control.  Patch imported from
70025         Akim Demaille's patch to Bison; see
70026         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
70027
70028 2003-04-14  Bruno Haible  <bruno@clisp.org>
70029
70030         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
70031
70032 2003-04-11  Jim Meyering  <jim@meyering.net>
70033
70034         Merge changes from Coreutils.
70035
70036         2003-03-22  Jim Meyering  <jim@meyering.net>
70037
70038         * lib/strftime.c (widen): Cast alloca return value to proper type.
70039
70040         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
70041
70042         From GNU libc.
70043         * lib/strftime.c (my_strftime): Handle very large width
70044         specifications for numeric values correctly.  Improve checks for
70045         overflow.
70046
70047         2003-01-19  Jim Meyering  <jim@meyering.net>
70048
70049         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
70050         definitions.
70051         (nl_get_alt_digit) [! defined my_strftime]: Define.
70052         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
70053         _nl_get_alt_digit and _nl_get_walt_digit.
70054
70055         * lib/strftime.c (my_strftime): Merge in locale-related changes from
70056         libc. These changes have no effect outside of _LIBC.
70057
70058 2003-04-10  Bruno Haible  <bruno@clisp.org>
70059
70060         * modules/findprog: New file.
70061         * MODULES.html.sh (func_all_modules): Add it.
70062
70063 2003-04-10  Bruno Haible  <bruno@clisp.org>
70064
70065         * m4/findprog.m4: New file.
70066         * m4/eaccess.m4: New file.
70067
70068 2003-04-10  Bruno Haible  <bruno@clisp.org>
70069
70070         * lib/findprog.h: New file, from GNU gettext.
70071         * lib/findprog.c: New file, from GNU gettext.
70072
70073 2003-04-05  Jim Meyering  <jim@meyering.net>
70074
70075         Merge changes from Coreutils.
70076
70077         * lib/exclude.h (PARAMS): Remove definition and uses.
70078         * lib/exclude.c: Remove uses of `PARAMS'.
70079
70080         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
70081         Add test-cases for DOS filenames. Declare program_name.
70082         (main): Set up program_name.  Patch by Rich Dawe.
70083
70084         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70085         error from mntctl.
70086         Use mntctl's return value to drive the entry-processing loop, since
70087         we can't rely on the value of the vmt_length member in the last
70088         entry.  On some systems doing so could result in exhausting
70089         virtual memory.  Based in part on a patch from Mike Jetzer.
70090
70091 2003-04-04  Bruno Haible  <bruno@clisp.org>
70092
70093         * modules/linebreak: New file.
70094         * MODULES.html.sh (func_all_modules): Add it.
70095
70096 2003-04-04  Bruno Haible  <bruno@clisp.org>
70097
70098         * m4/linebreak.m4: New file.
70099
70100 2003-04-04  Bruno Haible  <bruno@clisp.org>
70101
70102         * lib/linebreak.h: New file, from GNU gettext.
70103         * lib/linebreak.c: New file, from GNU gettext with slight
70104         modifications.
70105         * lib/lbrkprop.h: New file, from GNU gettext.
70106
70107 2003-04-03  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/utf8-ucs4: New file.
70110         * modules/utf16-ucs4: New file.
70111         * modules/ucs4-utf8: New file.
70112         * modules/ucs4-utf16: New file.
70113         * MODULES.html.sh (func_all_modules): Add them.
70114
70115 2003-04-03  Bruno Haible  <bruno@clisp.org>
70116
70117         * m4/utf-ucs4.m4: New file.
70118         * m4/ucs4-utf.m4: New file.
70119
70120 2003-04-03  Bruno Haible  <bruno@clisp.org>
70121
70122         * lib/utf8-ucs4.h: New file, from GNU gettext.
70123         * lib/utf16-ucs4.h: New file, from GNU gettext.
70124         * lib/ucs4-utf8.h: New file, from GNU gettext.
70125         * lib/ucs4-utf16.h: New file, from GNU gettext.
70126
70127 2003-04-02  Bruno Haible  <bruno@clisp.org>
70128
70129         * modules/binary-io: New file.
70130         * MODULES.html.sh (func_all_modules): Add it.
70131
70132 2003-04-02  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/binary-io.h: New file, from GNU gettext.
70135
70136 2003-04-01  Bruno Haible  <bruno@clisp.org>
70137
70138         * modules/pathname: New file.
70139         * MODULES.html.sh (func_all_modules): Add it.
70140
70141 2003-04-01  Bruno Haible  <bruno@clisp.org>
70142
70143         * lib/pathname.h: New file, from GNU gettext.
70144         * lib/concatpath.c: New file, from GNU gettext.
70145
70146 2003-03-30  Bruno Haible  <bruno@clisp.org>
70147
70148         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
70149
70150 2003-03-30  Bruno Haible  <bruno@clisp.org>
70151
70152         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
70153         function chown() doesn't exist.
70154
70155 2003-03-28  Bruno Haible  <bruno@clisp.org>
70156
70157         * modules/copy-file: New file.
70158         * MODULES.html.sh (func_all_modules): Add it.
70159
70160 2003-03-28  Bruno Haible  <bruno@clisp.org>
70161
70162         * m4/copy-file.m4: New file.
70163
70164 2003-03-28  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/copy-file.h: New file, from GNU gettext.
70167         * lib/copy-file.c: New file, from GNU gettext.
70168
70169 2003-03-18  Jim Meyering  <jim@meyering.net>
70170
70171         * lib/quote.c (quote_n): Fix typo in comment.
70172
70173 2003-03-18  Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
70176         checking.
70177         * m4/onceonly_2_57.m4: Likewise.
70178
70179 2003-03-17  Bruno Haible  <bruno@clisp.org>
70180
70181         * m4/onceonly.m4: Require autoconf 2.54 or newer.
70182         (m4_quote): Remove macro.
70183         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
70184
70185 2003-03-14  Jim Meyering  <jim@meyering.net>
70186
70187         Merge changes from Coreutils.
70188         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
70189         to be const, in order to avoid warnings.
70190         (obstack_room): Likewise.
70191         (obstack_empty_p): Likewise.
70192
70193 2003-03-14  Bruno Haible  <bruno@clisp.org>
70194
70195         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
70196         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
70197
70198 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70199
70200         Merge changes from Bison.
70201         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
70202         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
70203         when compiling Bison 1.875's `bitset bset = obstack_alloc
70204         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
70205         * lib/hash.c: Include <stdbool.h> unconditionally.
70206
70207 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70208
70209         * m4/onceonly.m4 (m4_quote): New macro.
70210         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
70211         Quote AC_FOREACH variable-expansions properly.
70212
70213 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70214
70215         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
70216
70217 2003-03-09  Paul Eggert  <eggert@twinsun.com>
70218
70219         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
70220         Reported by Bruce Becker; see:
70221         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
70222
70223 2003-03-03  Paul Eggert  <eggert@twinsun.com>
70224             Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
70227         Reported by John Hughes, see
70228         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
70229
70230 2003-02-20  Bruno Haible  <bruno@clisp.org>
70231
70232         * MODULES.html.sh (func_all_modules): Add poll.
70233
70234 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70235
70236         * modules/poll: New file.
70237
70238 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70239
70240         * lib/poll_.h: New file.
70241         * lib/poll.c: New file.
70242
70243 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70244
70245         * m4/poll.m4: New file.
70246
70247 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70248
70249         * modules/mathl: New file.
70250
70251 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70252
70253         * lib/mathl.h: New file.
70254         * lib/acosl.c: New file.
70255         * lib/asinl.c: New file.
70256         * lib/atanl.c: New file.
70257         * lib/ceill.c: New file.
70258         * lib/cosl.c: New file.
70259         * lib/expl.c: New file.
70260         * lib/floorl.c: New file.
70261         * lib/frexpl.c: New file.
70262         * lib/ldexpl.c: New file.
70263         * lib/logl.c: New file.
70264         * lib/sincosl.c: New file.
70265         * lib/sinl.c: New file.
70266         * lib/sqrtl.c: New file.
70267         * lib/tanl.c: New file.
70268         * lib/trigl.c: New file.
70269         * lib/trigl.h: New file.
70270
70271 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70272
70273         * m4/mathl.m4: New file.
70274
70275 2003-02-18  Bruno Haible  <bruno@clisp.org>
70276
70277         * MODULES.html.sh (func_all_modules): Add mathl.
70278
70279 2003-02-17  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/mkdtemp: New module.
70282         * MODULES.html.sh (func_all_modules): Add it.
70283
70284 2003-02-17  Bruno Haible  <bruno@clisp.org>
70285
70286         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
70287
70288 2003-02-17  Bruno Haible  <bruno@clisp.org>
70289
70290         * lib/mkdtemp.h: New file, from GNU gettext.
70291         * lib/mkdtemp.c: New file, from GNU gettext.
70292
70293 2003-02-02  Jim Meyering  <jim@meyering.net>
70294
70295         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
70296         e.g. glibc-2.2.93.
70297
70298 2003-01-31  Bruno Haible  <bruno@clisp.org>
70299
70300         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
70301         'rpl_rename'.
70302         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
70303         'rpl_strnlen'.
70304         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
70305         'rpl_strtod'.
70306         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
70307         'rpl_utime'.
70308
70309 2003-01-31  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/rename.c: #undef rename before defining rpl_rename.
70312         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
70313
70314 2003-01-30  Bruno Haible  <bruno@clisp.org>
70315
70316         * modules/vasnprintf, modules/vasprintf: New modules.
70317         * MODULES.html.sh (func_all_modules): Add them.
70318
70319 2003-01-30  Bruno Haible  <bruno@clisp.org>
70320
70321         * m4/signed.m4: New file, from GNU gettext.
70322         * m4/longdouble.m4: New file, from GNU gettext.
70323         * m4/wchar_t.m4: New file, from GNU gettext.
70324         * m4/wint_t.m4: New file, from GNU gettext.
70325         * m4/vasnprintf.m4: New file.
70326         * m4/vasprintf.m4: New file.
70327
70328 2003-01-30  Bruno Haible  <bruno@clisp.org>
70329
70330         * lib/printf-args.h: New file, from GNU gettext.
70331         * lib/printf-args.c: New file, from GNU gettext.
70332         * lib/printf-parse.h: New file, from GNU gettext.
70333         * lib/printf-parse.c: New file, from GNU gettext.
70334         * lib/vasnprintf.h: New file, from GNU gettext.
70335         * lib/vasnprintf.c: New file, from GNU gettext.
70336         * lib/asnprintf.c: New file, from GNU gettext.
70337         * lib/vasprintf.h: New file, from GNU gettext with modifications.
70338         * lib/vasprintf.c: New file, from GNU gettext.
70339         * lib/asprintf.c: New file, from GNU gettext.
70340
70341 2003-01-29  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/stpncpy: New module.
70344         * MODULES.html.sh (func_all_modules): Add it.
70345
70346 2003-01-29  Bruno Haible  <bruno@clisp.org>
70347
70348         * m4/stpncpy.m4: New file.
70349
70350 2003-01-29  Bruno Haible  <bruno@clisp.org>
70351
70352         * lib/stpncpy.h: New file, from GNU gettext with modifications.
70353         * lib/stpncpy.c: New file, from GNU gettext with modifications.
70354
70355 2003-01-28  Bruno Haible  <bruno@clisp.org>
70356
70357         * modules/c-ctype: New module.
70358         * MODULES.html.sh (func_all_modules): Add it.
70359
70360 2003-01-28  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
70363         Paul Eggert.
70364         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
70365         Paul Eggert.
70366
70367 2003-01-27  Bruno Haible  <bruno@clisp.org>
70368
70369         * modules/xsetenv: New module.
70370         * MODULES.html.sh (func_all_modules): Add it.
70371
70372 2003-01-27  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/xsetenv.h: New file, from GNU gettext.
70375         * lib/xsetenv.c: New file, from GNU gettext.
70376
70377 2003-01-23  Jim Meyering  <jim@meyering.net>
70378
70379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
70380         from working on systems without dirfd (at least Irix and OSF1/Tru64).
70381
70382 2003-01-23  Bruno Haible  <bruno@clisp.org>
70383
70384         * modules/minmax: New module.
70385         * MODULES.html.sh (func_all_modules): Add it.
70386
70387 2003-01-23  Bruno Haible  <bruno@clisp.org>
70388
70389         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
70390         Eggert.
70391
70392 2003-01-22  Bruno Haible  <bruno@clisp.org>
70393
70394         * modules/exit: New module.
70395         * MODULES.html.sh (func_all_modules): Add it.
70396
70397 2003-01-22  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/exit.h: New file, from GNU gettext.
70400
70401 2003-01-19  Bruno Haible  <bruno@clisp.org>
70402
70403         * gnulib-tool: Recognize option --extract-maintainer.
70404         (func_get_maintainer): New function.
70405         * modules/*: Add Maintainer entry.
70406
70407 2003-01-16  Jim Meyering  <jim@meyering.net>
70408
70409         * m4/regex.m4: The `regex' struct is both input and output.
70410         Initialize it before each use.  Patch by Tim Waugh.
70411
70412 2003-01-16  Bruno Haible  <bruno@clisp.org>
70413
70414         * MODULES.html.sh: Add a table of contents. Add the module name as
70415         leftmost column. Add hyperlinks.
70416
70417 2003-01-15  Bruno Haible  <bruno@clisp.org>
70418
70419         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
70420
70421 2003-01-15  Bruno Haible  <bruno@clisp.org>
70422
70423         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
70424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
70425         suffix.
70426
70427 2003-01-15  Bruno Haible  <bruno@clisp.org>
70428
70429         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
70430
70431 2003-01-15  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
70434         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
70435
70436 2003-01-14  Jim Meyering  <jim@meyering.net>
70437
70438         * lib/same.c (same_name): Tweak a comment.
70439
70440 2003-01-14  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
70443         when a string comparison is sufficient.
70444
70445 2003-01-14  Bruno Haible  <bruno@clisp.org>
70446
70447         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
70448         'unsigned int'.
70449
70450 2003-01-14  Bruno Haible  <bruno@clisp.org>
70451
70452         * lib/hash-pjw.c: Add comment about low quality of this function.
70453
70454 2003-01-13  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/stpcpy: Distribute lib/stpcpy.h.
70457         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
70458
70459 2003-01-13  Bruno Haible  <bruno@clisp.org>
70460
70461         * modules/*: Add a description.
70462         * modules/strpbrk: Fix Makefile.am snippet.
70463         * modules/strtoimax: Fix dependencies.
70464         * modules/strtoumax: Likewise.
70465
70466 2003-01-13  Bruno Haible  <bruno@clisp.org>
70467
70468         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
70469         * modules/alloca (Makefile.am): All object files depend on alloca.h.
70470         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
70471
70472 2003-01-13  Bruno Haible  <bruno@clisp.org>
70473
70474         * gnulib-tool (func_create_testdir): Store config/* files in the main
70475         directory.
70476         * config.rpath: Move to ...
70477         * config/config.rpath: ... here.
70478         * modules/gettext: Contains config/config.rpath, not config.rpath.
70479         * modules/iconv: Likewise.
70480
70481 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70482
70483         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70484         to avoid collisions with libcurses and libreadline.
70485
70486         * m4/getstr.m4: Remove.
70487         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
70488
70489 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70490
70491         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70492         to avoid collisions with libcurses and libreadline.
70493
70494         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
70495         * lib/getstr.h, getstr.c: Remove.
70496         * lib/getline.c: Include "getline.h", to check interface.
70497         Move body of old getstr.c here: this defines MIN_CHUNK and
70498         declares getdelim2, which is renamed from getstr.
70499         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
70500
70501         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
70502         All uses changed.
70503         * lib/linebuffer.h: Likewise.
70504         (readline): Remove backward-compatibility macro.
70505
70506 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70507
70508         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70509         to avoid collisions with libcurses and libreadline.
70510         * getstr: Remove.
70511         * MODULES.html.sh: Remove getstr.
70512         * modules/getline: Depend on unlocked-io, not getstr.
70513
70514 2003-01-12  Jim Meyering  <jim@meyering.net>
70515
70516         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
70517
70518 2003-01-10  Bruno Haible  <bruno@clisp.org>
70519
70520         * modules/alloca: Change Makefile.am requirements. Simplify Include
70521         requirements. Add lib/alloca_.h to file list.
70522
70523 2003-01-10  Bruno Haible  <bruno@clisp.org>
70524
70525         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
70526
70527 2003-01-10  Bruno Haible  <bruno@clisp.org>
70528
70529         * lib/alloca_.h: New file.
70530         * lib/getdate.y: Unconditionally include alloca.h.
70531         * lib/makepath.c: Likewise.
70532         * lib/setenv.c: Likewise.
70533         * lib/userspec.c: Likewise.
70534
70535 2003-01-09  Karl Berry  <karl@gnu.org>
70536
70537         * MODULES.html.sh: include `dirname $0` in PATH, to find
70538         gnulib-tool.
70539
70540 2003-01-09  Bruno Haible  <bruno@clisp.org>
70541
70542         * modules/stdbool: Change configure.ac, Makefile.am requirements.
70543         Simplify Include requirements. Add lib/stdbool.h.in to file list.
70544
70545 2003-01-09  Bruno Haible  <bruno@clisp.org>
70546
70547         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
70548
70549 2003-01-09  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/stdbool.h.in: New file.
70552
70553 2003-01-09  Bruno Haible  <bruno@clisp.org>
70554
70555         * gnulib-tool (func_all_modules): Ignore files ending in ~.
70556         * MODULES.html.sh: Likewise.
70557
70558 2003-01-08  Jim Meyering  <jim@meyering.net>
70559
70560         * lib/full-write.c: Undefine and define-away `const' after inclusion
70561         of errno.h, not before.  Suggestion from Bruno Haible.
70562
70563 2003-01-08  Bruno Haible  <bruno@clisp.org>
70564
70565         * modules/full-read: Depend on full-write.
70566
70567 2003-01-08  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/safe-read.c: Include specification header first, to ensure its
70570         selfcontainedness.
70571         * lib/full-write.c: Likewise.
70572
70573 2003-01-07  Jim Meyering  <jim@meyering.net>
70574
70575         * lib/full-write.c: Rework so that it may serve to define full_read,
70576         too.
70577         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
70578
70579 2003-01-07  Bruno Haible  <bruno@clisp.org>
70580
70581         * lib/strtoimax.c: Include <stdint.h> as an alternative to
70582         <inttypes.h>.
70583         * lib/xstrtol.h: Likewise.
70584         * lib/xstrtoimax.c: Likewise.
70585         * lib/xstrtoumax.c: Likewise.
70586         * lib/human.h: Likewise.
70587
70588         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
70589         on systems that have <inttypes.h> but not <stdint.h>.
70590
70591 2003-01-07  Bruno Haible  <bruno@clisp.org>
70592
70593         * MODULES.html.sh: Add copyright notice.
70594         (missed_files): Omit CVS directory entries.
70595         (func_module): Make it work with sed-3.02.
70596         * MODULES.txt: Remove file.
70597
70598 2003-01-06  Jim Meyering  <jim@meyering.net>
70599
70600         * lib/version-etc.c: Update year in translatable copyright string.
70601
70602 2003-01-03  Karl Berry  <karl@gnu.org>
70603
70604         * config/config.{guess,sub}: update from prep.
70605
70606 2003-01-02  Karl Berry  <karl@gnu.org>
70607
70608         * doc/COPYING.DOC: belatedly updated to 1.2.
70609
70610 2003-01-01  Karl Berry  <karl@gnu.org>
70611
70612         * gnulib-tool (func_verify_module): report module name $module in
70613         error message, not $1.
70614         * gnulib-tool (create-testdir): don't complain if destdir couldn't
70615         be created, only if it doesn't exist.
70616         * gnulib-tool (last_checkin_date): don't expand the $Date here.
70617
70618 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70619
70620         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
70621
70622 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70623
70624         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
70625         memcmp if strcoll doesn't work.
70626
70627 2002-12-31  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/utime.c (utime_null): No need to call ftruncate if the file was
70630         nonempty.
70631
70632 2002-12-31  Bruno Haible  <bruno@clisp.org>
70633
70634         * lib/memcoll.c (STRCOLL): New macro.
70635         (memcoll): Use it.
70636
70637 2002-12-31  Bruno Haible  <bruno@clisp.org>
70638
70639         * lib/localcharset.h: New file.
70640         * lib/localcharset.c: Include it.
70641         * lib/unicodeio.c: Likewise.
70642
70643 2002-12-31  Bruno Haible  <bruno@clisp.org>
70644
70645         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
70646         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
70647
70648 2002-12-31  Bruno Haible  <bruno@clisp.org>
70649
70650         * lib/getline.h: Include <stddef.h>, for size_t.
70651
70652         * lib/unicodeio.h: Include <stddef.h>, for size_t.
70653         * lib/unicodeio.c: Don't include <stddef.h>.
70654
70655 2002-12-31  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
70658         HAVE_TM_ZONE.
70659
70660 2002-12-24  Karl Berry  <karl@gnu.org>
70661
70662         * config/config.guess: update from prep.
70663
70664 2002-12-24  Bruno Haible  <bruno@clisp.org>
70665
70666         General infrasructure.
70667         * m4/README: Rewritten.
70668         * m4/onceonly.m4: New file.
70669         * m4/onceonly_2_57.m4: New file.
70670
70671         Module atexit.
70672         * m4/atexit.m4: New file.
70673
70674         Module strtod.
70675         * m4/strtod.m4: New file.
70676
70677         Module strtol.
70678         * m4/strtol.m4: New file.
70679
70680         Module strtoul.
70681         * m4/strtoul.m4: New file.
70682
70683         Module memchr.
70684         * m4/memchr.m4: New file.
70685
70686         Module memcmp.
70687         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
70688         (jm_FUNC_MEMCMP): Invoke it.
70689
70690         Module memcpy.
70691         * m4/memcpy.m4: New file.
70692
70693         Module memmove.
70694         * m4/memmove.m4: New file.
70695
70696         Module memset.
70697         * m4/memset.m4: New file.
70698
70699         Module strcspn.
70700         * m4/strcspn.m4: New file.
70701
70702         Module strpbrk.
70703         * m4/strpbrk.m4: New file.
70704
70705         Module strstr.
70706         * m4/strstr.m4: New file.
70707
70708         Module strerror.
70709         * m4/strerror.m4: New file.
70710
70711         Module mktime.
70712         * m4/mktime.m4: Renamed from jm-mktime.m4.
70713         (gl_PREREQ_MKTIME): New macro.
70714         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70715
70716         Module malloc.
70717         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70718         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70719         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70720
70721         Module realloc.
70722         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70723         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70724         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70725
70726         Module strftime.
70727         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70728         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70729         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70730         gl_TM_GMTOFF.
70731         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70732
70733         Module xalloc.
70734         * m4/xalloc.m4: New file.
70735
70736         Module alloca.
70737         * m4/alloca.m4: New file.
70738
70739         Module putenv.
70740         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70741         (jm_FUNC_PUTENV): Invoke it.
70742
70743         Module setenv.
70744         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70745         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70746         when invoked twice.
70747         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70748         gt_FUNC_SETENV.
70749
70750         Module memrchr.
70751         * m4/memrchr.m4: New file.
70752
70753         Module stpcpy.
70754         * m4/stpcpy.m4: New file.
70755
70756         Module strcase.
70757         * m4/strcase.m4: New file.
70758
70759         Module strdup.
70760         * m4/strdup.m4: New file.
70761
70762         Module strnlen.
70763         * m4/strnlen.m4: New file.
70764
70765         Module strndup.
70766         * m4/strndup.m4: New file.
70767
70768         Module xstrtod.
70769         * m4/xstrtod.m4: New file.
70770
70771         Module xstrtol.
70772         * m4/xstrtol.m4: New file.
70773
70774         Module getdate.
70775         * m4/getdate.m4: New file.
70776
70777         Module unlocked-io.
70778         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70779         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70780         * m4/jm-glibc-io.m4n: Remove file.
70781
70782         Module long-options.
70783         * m4/long-options.m4: New file.
70784
70785         Module md5.
70786         * m4/md5.m4: New file.
70787
70788         Module sha.
70789         * m4/sha.m4: New file.
70790
70791         Module getstr.
70792         * m4/getstr.m4: New file.
70793
70794         Module getline.
70795         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70796         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70797         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70798         simply getline. Infoke gl_PREREQ_GETLINE.
70799
70800         Module obstack.
70801         * m4/obstack.m4: New file.
70802
70803         Module hash.
70804         * m4/hash.m4: New file.
70805
70806         Module readtokens.
70807         * m4/readtokens.m4: New file.
70808
70809         Module strverscmp.
70810         * m4/strverscmp.m4: New file.
70811
70812         Module stdbool.
70813         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70814         OSF/1.
70815
70816         Module strtoll.
70817         * m4/strtoll.m4: New file.
70818
70819         Module strtoull.
70820         * m4/strtoull.m4: New file.
70821
70822         Module strtoimax.
70823         * m4/strtoimax.m4: New file.
70824
70825         Module strtoumax.
70826         * m4/strtoumax.m4: New file.
70827
70828         Module xstrtoimax.
70829         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70830         jm_AC_PREREQ_XSTRTOIMAX.
70831         Moved the strtol prerequisites to strtol.m4.
70832         Moved the strtoll prerequisites to strtoll.m4.
70833         Moved the strtoimax prerequisites to strtoimax.m4.
70834
70835         Module xstrtoumax.
70836         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70837         jm_AC_PREREQ_XSTRTOUMAX.
70838         Moved the strtoul prerequisites to strtoul.m4.
70839         Moved the strtoull prerequisites to strtoull.m4.
70840         Moved the strtoumax prerequisites to strtoumax.m4.
70841
70842         Module chown.
70843         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70844         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70845
70846         Module dup2.
70847         * m4/dup2.m4: New file.
70848
70849         Module ftruncate.
70850         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70851         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70852
70853         Module getgroups.
70854         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70855         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70856
70857         Module gettimeofday.
70858         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70859         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70860         gl_PREREQ_GETTIMEOFDAY.
70861
70862         Module mkdir.
70863         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70864         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70865
70866         Module mkstemp.
70867         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70868         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70869         jm_AC_TYPE_UINTMAX_T.
70870         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70871
70872         Module stat.
70873         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70874         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70875
70876         Module lstat.
70877         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70878         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70879
70880         Module timespec.
70881         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70882         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70883         * m4/st_mtim.m4: Indentation.
70884
70885         Module nanosleep.
70886         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70887         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70888         gl_PREREQ_NANOSLEEP.
70889
70890         Module regex.
70891         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70892         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70893         (gl_REGEX): New macro.
70894
70895         Module rename.
70896         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70897         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70898
70899         Module rmdir.
70900         * m4/rmdir.m4: New file.
70901
70902         Module utime.
70903         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70904         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70905         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70906
70907         Module dirname.
70908         * m4/dirname.m4: New file.
70909
70910         Module getopt.
70911         * m4/getopt.m4: New file.
70912
70913         Module unistd-safer.
70914         * m4/unistd-safer.m4: New file.
70915
70916         Module fnmatch.
70917         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70918         declaration.
70919         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70920         (gl_FUNC_FNMATCH_POSIX): New macro.
70921         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70922         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70923         simply fnmatch.
70924
70925         Module exclude.
70926         * m4/exclude.m4: New file.
70927
70928         Module human.
70929         * m4/human.m4: New file.
70930
70931         Module acl.
70932         * m4/acl.m4: Nop.
70933
70934         Module backupfile.
70935         * m4/backupfile.m4: New file.
70936         * m4/d-ino.m4: Indentation.
70937
70938         Module fsusage.
70939         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70940         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70941         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70942
70943         Module dirfd.
70944         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70945         requirements.
70946
70947         Module euidaccess.
70948         * m4/euidaccess.m4: New file.
70949
70950         Module file-type.
70951         * m4/file-type.m4: New file.
70952
70953         Module fileblocks.
70954         * m4/fileblocks.m4: New file.
70955
70956         Module filemode.
70957         * m4/filemode.m4: New file.
70958
70959         Module isdir.
70960         * m4/isdir.m4: New file.
70961
70962         Module lchown.
70963         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70964         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70965
70966         Module makepath.
70967         * m4/makepath.m4: New file.
70968
70969         Module modechange.
70970         * m4/modechange.m4: New file.
70971
70972         Module mountlist.
70973         * m4/mountlist.m4: New file.
70974         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
70975         Indentation.
70976
70977         Module path-concat.
70978         * m4/path-concat.m4: New file.
70979
70980         Module pathmax.
70981         * m4/pathmax.m4: New file.
70982
70983         Module same.
70984         * m4/same.m4: New file.
70985
70986         Module save-cwd.
70987         * m4/save-cwd.m4: New file.
70988
70989         Module savedir.
70990         * m4/savedir.m4: New file.
70991
70992         Module xgetcwd.
70993         * m4/xgetcwd.m4: New file.
70994         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
70995
70996         Module xreadlink.
70997         * m4/xreadlink.m4: New file.
70998
70999         Module safe-read.
71000         * m4/safe-read.m4: New file.
71001
71002         Module safe-write.
71003         * m4/safe-write.m4: New file.
71004
71005         Module closeout.
71006         * m4/closeout.m4: New file.
71007
71008         Module stdio-safer.
71009         * m4/stdio-safer.m4: New file.
71010
71011         Module getpass.
71012         * m4/getpass.m4: New file.
71013
71014         Module getugroups.
71015         * m4/getugroups.m4: New file.
71016
71017         Module group-member.
71018         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
71019         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
71020
71021         Module idcache.
71022         * m4/idcache.m4: New file.
71023
71024         Module userspec.
71025         * m4/userspec.m4: New file.
71026
71027         Module gettime.
71028         * m4/clock_time.m4: New file.
71029         * m4/gettime.m4: New file.
71030
71031         Module settime.
71032         * m4/settime.m4: New file.
71033
71034         Module posixtm.
71035         * m4/posixtm.m4: New file.
71036
71037         Module gethostname.
71038         * m4/gethostname.m4: New file.
71039
71040         Module canon-host.
71041         * m4/canon-host.m4: New file.
71042
71043         Module gettext.
71044         * m4/codeset.m4: New file, from gettext-0.11.5.
71045         * m4/gettext.m4: New file, from gettext-0.11.5.
71046         * m4/glibc21.m4: New file, from gettext-0.11.5.
71047         * m4/iconv.m4: New file, from gettext-0.11.5.
71048         * m4/intdiv0.m4: New file, from gettext-0.11.5.
71049         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
71050         * m4/inttypes.m4: New file, from gettext-0.11.5.
71051         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
71052         * m4/isc-posix.m4: New file, from gettext-0.11.5.
71053         * m4/lcmessage.m4: New file, from gettext-0.11.5.
71054         * m4/lib-ld.m4: New file, from gettext-0.11.5.
71055         * m4/lib-link.m4: New file, from gettext-0.11.5.
71056         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
71057         * m4/progtest.m4: New file, from gettext-0.11.5.
71058         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
71059         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
71060         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
71061
71062         Module localcharset.
71063         * m4/localcharset.m4: New file.
71064
71065         Module hard-locale.
71066         * m4/hard-locale.m4: New file.
71067
71068         Module mbswidth.
71069         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
71070         onceonly macros.
71071         * m4/mbrtowc.m4: Add comment.
71072
71073         Module memcasecmp.
71074         * m4/memcasecmp.m4: New file.
71075
71076         Module memcoll.
71077         * m4/memcoll.m4: New file.
71078
71079         Module unicodeio.
71080         * m4/unicodeio.m4: New file.
71081
71082         Module rpmatch.
71083         * m4/rpmatch.m4: New file.
71084
71085         Module yesno.
71086         * m4/yesno.m4: New file.
71087
71088         Module exitfail.
71089         * m4/exitfail.m4: New file.
71090
71091         Module c-stack.
71092         * m4/c-stack.m4 (gl_C_STACK): New macro.
71093         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
71094
71095         Module error.
71096         * m4/error.m4 (gl_ERROR): New macro.
71097         (jm_PREREQ_ERROR): Use onceonly macros.
71098
71099         Module fatal.
71100         * m4/fatal.m4: New file.
71101
71102         Module getloadavg.
71103         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
71104         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
71105
71106         Module getpagesize.
71107         * m4/getpagesize.m4: New file.
71108
71109         Module getusershell.
71110         * m4/getusershell.m4: New file.
71111
71112         Module physmem.
71113         * m4/physmem.m4: New file.
71114
71115         Module posixver.
71116         * m4/posixver.m4: New file.
71117
71118         Module quotearg.
71119         * m4/quotearg.m4: New file.
71120
71121         Module quote.
71122         * m4/quote.m4: New file.
71123
71124         Module readutmp.
71125         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
71126
71127         Module sig2str.
71128         * m4/sig2str.m4: New file.
71129
71130         Other.
71131         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
71132         ulonglong.m4.
71133         * m4/intmax_t.m4: New file.
71134         * m4/d-type.m4: Indentation.
71135         * m4/jm-macros.m4: Update.
71136         * m4/prereq.m4 (jm_PREREQ): Update.
71137         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
71138         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
71139         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
71140         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
71141         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
71142         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
71143         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
71144         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
71145         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
71146         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
71147         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
71148         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
71149         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
71150         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
71151         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
71152         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
71153         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
71154         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
71155         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
71156
71157 2002-12-24  Bruno Haible  <bruno@clisp.org>
71158
71159         * MODULES.txt: Update according to m4/ changes.
71160
71161         Module gettext.
71162         * config.rpath: New file, from gettext-0.11.5.
71163
71164         * modules/*: New module descriptions.
71165         * gnulib-tool: New file.
71166         * MODULES.html.sh: New file.
71167
71168 2002-12-21  Karl Berry  <karl@gnu.org>
71169
71170         * doc/fdl.texi: update to version 1.2.
71171
71172 2002-12-19  Karl Berry  <karl@gnu.org>
71173
71174         * config/config.guess: update from prep.
71175
71176 2002-12-18  Bruno Haible  <bruno@clisp.org>
71177
71178         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
71179         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
71180
71181 2002-12-17  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
71184         stdlib.h, string.h.
71185
71186 2002-12-17  Bruno Haible  <bruno@clisp.org>
71187
71188         * lib/canon-host.c (strdup): Remove unused declaration.
71189
71190         * lib/fsusage.c: Include full_read.h.
71191         (get_fs_usage): Use full_read instead of safe_read.
71192
71193         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
71194
71195 2002-12-12  Karl Berry  <karl@gnu.org>
71196
71197         * config/config.guess: update from prep.
71198
71199 2002-12-11  Bruno Haible  <bruno@clisp.org>
71200
71201         * m4/setenv.m4: New file, from gettext-0.11.5.
71202
71203 2002-12-11  Bruno Haible  <bruno@clisp.org>
71204
71205         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
71206         not unsetenv().
71207         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
71208         modifications:
71209
71210         2002-12-11  Bruno Haible  <bruno@clisp.org>
71211
71212                 * setenv.c (alloca): Fall back to malloc.
71213                 (freea): New macro.
71214                 (setenv): Use freea() to free memory allocated with alloca().
71215
71216         2002-11-13  Bruno Haible  <bruno@clisp.org>
71217
71218                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
71219                 function declarations.
71220                 * unsetenv.c (unsetenv): Likewise.
71221
71222         2002-03-04  Bruno Haible  <bruno@clisp.org>
71223
71224                 Portability to AIX 4.3.3.
71225                 * unsetenv.c: New file, extracted from setenv.c.
71226                 * setenv.c: Move the unsetenv() function to unsetenv.c.
71227
71228         2001-12-20  Bruno Haible  <bruno@clisp.org>
71229
71230                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
71231                 use malloc instead. For SunOS 4.
71232
71233         2001-12-11  Bruno Haible  <bruno@clisp.org>
71234
71235                 * setenv.c: Declare alloca.
71236                 (compar_fn_t): New typedef.
71237                 (KNOWN_VALUE, STORE_VALUE): Use it.
71238
71239         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
71240         setenv.h.
71241
71242 2002-12-10  Paul Eggert  <eggert@twinsun.com>
71243
71244         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
71245         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
71246         Choose values that are less likely to collide with system fnmatch
71247         options.
71248         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
71249         defined (e.g., a pure POSIX system).
71250         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
71251         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
71252
71253 2002-12-06  Paul Eggert  <eggert@twinsun.com>
71254
71255         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
71256         a pain in practice to deal with generated m4 files.  This change
71257         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
71258
71259         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
71260         and jm-glibc-io.m4, as they are no longer a special case.
71261         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
71262         kludge and the auto-generation stuff.  Check only whether the
71263         functions are declared, not whether they exist, since older hosts
71264         that don't declare the functions can't use the optimization anyway.
71265
71266 2002-12-06  Jim Meyering  <jim@meyering.net>
71267
71268         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
71269
71270         Merge in changes from libc's misc/error.c, in preparation
71271         for the merge of gnulib's changes back into libc.
71272
71273         * lib/error.c (_): Define only if not already defined.
71274         Move definition to follow all #include directives.
71275         Include unlocked-io.h only if !_LIBC.
71276         [_LIBC]: Include <libio/libioP.h>.
71277         [USE_IN_LIBIO]: Include <libio/iolibio.h>
71278         (fflush): Tweak definition to use INTUSE.
71279         (putc): Define.
71280
71281 2002-12-05  Paul Eggert  <eggert@twinsun.com>
71282
71283         * lib/alloca.c [defined emacs]: Include "lisp.h".
71284         (xalloc_die) [defined emacs]: New macro.
71285         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
71286         [! defined emacs]: Include <xalloc.h>.
71287         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
71288         (pointer): Typedef to POINTER_TYPE *.
71289         (malloc): Remove decl; we now always use xmalloc.
71290         (alloca): Use old-style definition, since Emacs needs this.
71291         Check for arithmetic overflow when computing combined size.
71292
71293 2002-12-04  Paul Eggert  <eggert@twinsun.com>
71294
71295         Do not generate unlocked-io.h automatically, since it's easier to
71296         maintain it by hand.
71297
71298         * lib/unlocked-io.h: New file, from GNU diffutils,
71299         but with proper copyright notice and attribution.
71300         * lib/gen-uio: Remove.
71301         * lib/Makefile.am: Add copyright notice.
71302         (libfetish_a_SOURCES): Add unlocked-io.h.
71303         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
71304         (DISTCLEANFILES, io_functions): Remove macros.
71305         (EXTRA_DIST): Remove gen_uio.
71306         (unlocked-io.h): Remove rule.
71307
71308 2002-12-04  Jim Meyering  <jim@meyering.net>
71309
71310         Reflect the fact that stat.c and lstat.c are no longer generated.
71311         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
71312         (DISTCLEANFILES): Likewise.
71313         (EXTRA_DIST): Likewise.
71314         (all_local): Don't depend on stat.c or lstat.c.
71315         (stat.c, lstat.c): Remove rules.
71316         (EXTRA_DIST): Remove xstat.in.
71317
71318         * lib/xstat.in: Remove file.  Contents moved into stat.c.
71319         * lib/stat.c: New file.  Contents mostly from xstat.in.
71320         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
71321         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
71322
71323         * lib/safe-read.c: Rework so that it may serve to define safe_write,
71324         too.
71325         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
71326
71327 2002-12-03  Jim Meyering  <jim@meyering.net>
71328
71329         * lib/safe-read.c, safe-write.c: Change variable names and comments,
71330         but not semantics, to minimize the differences between these two files.
71331         (safe_read): Change comment to mention SAFE_READ_ERROR.
71332
71333         * lib/safe-read.c (IS_EINTR): Define.
71334         (safe_read): Use IS_EINTR in place of in-function cpp directives.
71335
71336 2002-12-02  Jim Meyering  <jim@meyering.net>
71337
71338         * lib/safe-read.c (EINTR): Define.
71339         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71340         (INT_MAX): Provide fallback.
71341         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
71342
71343         * lib/safe-read.h (SAFE_READ_ERROR): Define.
71344
71345 2002-12-02  Bruno Haible  <bruno@clisp.org>
71346
71347         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
71348         Define, taken from safe-read.c.
71349         (INT_MAX): Provide fallback.
71350         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
71351         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
71352
71353         * lib/safe-read.c (EINTR): Remove definition.
71354         (safe_read): Don't use EINTR if it is absent.
71355
71356 2002-12-01  Jim Meyering  <jim@meyering.net>
71357
71358         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
71359         zero.
71360         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
71361
71362 2002-11-27  Paul Eggert  <eggert@twinsun.com>
71363
71364         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
71365         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
71366         with `if (! (value < limit)) abort ();', for readability.
71367
71368 2002-11-26  Karl Berry  <karl@gnu.org>
71369
71370         * lib/strdup.c: copy from libc again, with jim's ok.
71371         * lib/.cppi-disable: re-add strdup.c
71372
71373 2002-11-25  Karl Berry  <karl@gnu.org>
71374
71375         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
71376         instead of "strtol.c".
71377
71378 2002-11-25  Karl Berry  <karl@gnu.org>
71379
71380         * config/install-sh: update from automake for variable quoting, $0 in
71381         error msgs, etc.
71382
71383         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
71384         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
71385         entry.
71386
71387 2002-11-25  Jim Meyering  <jim@meyering.net>
71388
71389         * lib/mktime.c: Sync from libc, now that it has the latest fix.
71390
71391 2002-11-24  Karl Berry  <karl@gnu.org>
71392
71393         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
71394         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
71395
71396 2002-11-24  Jim Meyering  <jim@meyering.net>
71397
71398         Update from coreutils:
71399
71400         * lib/mktime.c: Merge in changes from libc.
71401
71402         Avoid a link-time failure on some Linux systems.
71403         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
71404         (otherwise).
71405         (__mon_yday): Declare with the STATIC attribute.
71406         (__mktime_internal): Likewise.
71407         Based on a report from Greg Schafer.
71408
71409 2002-11-23  Jim Meyering  <jim@meyering.net>
71410
71411         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
71412         Use `unsigned', not `int', as type of index.
71413
71414         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
71415
71416         * lib/fsusage.c: Remove unneeded parentheses around operands of
71417         `defined'.
71418
71419 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71420
71421         * lib/quotearg.h: Allow multiple inclusion by surrounding with
71422         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
71423         so that we can be included first.
71424         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
71425         * lib/quotearg.c: Include quotearg.h immediately after config.h.
71426         No need to include stddef.h or sys/types.h any more.
71427         Surround local include files with "", not "<>".
71428         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
71429         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
71430         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
71431         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
71432         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
71433         (ISPRINT): Remove; no longer needed now that we assume C89.
71434
71435         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
71436         Preserve errno.
71437
71438         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
71439         quotearg_char): Use SIZE_MAX rather than
71440         (size_t) -1 when we are talking about "infinity".
71441
71442         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
71443
71444 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71445
71446         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
71447         hint that one should use `if (! x) abort ();' rather than `assert
71448         (x);', and anyway it's one less thing to worry about configuring.
71449         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
71450         hash_rehash, hash_insert): Use abort rather than assert.
71451
71452 2002-11-22  Bruno Haible  <bruno@clisp.org>
71453
71454         * lib/safe-read.h: Assume C89. Add comments.
71455         (safe_read): Change return type to size_t.
71456         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
71457         byte counts > SSIZE_MAX correctly.
71458         * lib/safe-write.h: New file.
71459         * lib/safe-write.c: New file.
71460         * lib/full-read.h: New file.
71461         * lib/full-read.c: New file.
71462         * lib/full-write.h: Assume C89. Add comments.
71463         * lib/full-write.c: Include safe-write.h.
71464         (full_write): Rewritten to use safe_write.
71465         Suggested by Jim Meyering and Paul Eggert.
71466
71467 2002-11-21  Jim Meyering  <jim@meyering.net>
71468
71469         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
71470
71471         Merge in changes from the coreutils.
71472
71473         2002-09-25  Paul Eggert  <eggert@twinsun.com>
71474         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
71475         <stdint.h>.
71476         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
71477         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
71478         int.  Work more efficiently if X is the same width as uintmax_t.
71479         Do not compare X to -1, to avoid bogus compiler warning.
71480         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
71481         Don't assume that f_frsize and f_bsize are the same type.
71482
71483         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
71484         warning on FreeBSD.
71485
71486         * lib/makepath.c (make_path): Restore umask *before* creating the final
71487         component.
71488         (make_path): Minor reformatting.
71489
71490         * lib/xmalloc.c: Adjust to work with new autoconf macros,
71491         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
71492         HAVE_MALLOC/HAVE_REALLOC.
71493
71494         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
71495         dummy ones.  At least on GNU/Linux systems, `auto' means something
71496         else.
71497         From Michael Stone.
71498
71499 2002-11-21  Bruno Haible  <bruno@clisp.org>
71500
71501         Remove case insensitive option matching.
71502         * lib/argmatch.h (argcasematch): Remove declaration.
71503         (ARGCASEMATCH): Remove macro.
71504         (__xargmatch_internal): Remove case_sensitive argument.
71505         (XARGMATCH): Update.
71506         (XARGCASEMATCH): Remove macro.
71507         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
71508         case_sensitive argument.
71509         (argcasematch): Remove function.
71510         (__xargmatch_internal): Remove case_sensitive argument.
71511         (main): Use XARGMATCH instead of XARGCASEMATCH.
71512
71513         * lib/xmalloc.c: Change compile-time error message. Add comment about
71514         required autoconf version.
71515
71516 2002-11-20  Paul Eggert  <eggert@twinsun.com>
71517
71518         Merge argmatch cleanups from Bison.  Assume C89.
71519
71520         * lib/argmatch.c: Include config.h here, not in argmatch.h.
71521         Include stdlib.h, for EXIT_FAILURE.
71522         Always include <string.h>, since we assume C89.
71523         (EXIT_FAILURE): Remove pre-C89 bug workaround.
71524         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
71525         Include <stddef.h> instead, since it's all we need for size_t.
71526         (PARAMS): Remove.  All uses removed.
71527         (ARRAY_CARDINALITY): Do not bother to #undef.
71528         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
71529         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71530         Remove unnecessary parentheses.
71531         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71532         Insert necessary parentheses.
71533         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
71534         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
71535
71536 2002-11-19  Bruno Haible  <bruno@clisp.org>
71537
71538         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
71539         * lib/mbswidth.h: Include <stddef.h>, for size_t.
71540
71541         * lib/mbswidth.h (PARAMS): Remove macro.
71542         (mbswidth, mbsnwidth): Use ANSI C function declarations.
71543         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
71544
71545         * lib/gcd.h (PARAMS): Remove macro.
71546         (gcd): Use ANSI C function declarations.
71547         * lib/gcd.c (gcd): Likewise.
71548
71549 2002-11-15  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/strcspn.c: Include <stddef.h>.
71552         (strcspn): Use ANSI C function declaration. Change return type to
71553         size_t. Use NULL.
71554         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
71555         (strpbrk): Use NULL.
71556         * lib/strpbrk.h (PARAMS): Remove macro.
71557         (strpbrk): Use ANSI C function declaration.
71558         * lib/strstr.c: Don't include <sys/types.h>.
71559         * lib/strstr.h (PARAMS): Remove macro.
71560         (strstr): Use ANSI C function declarations.
71561
71562 2002-11-14  Karl Berry  <karl@gnu.org>
71563
71564         * config/mkinstalldirs: `do' on separate line, instead of
71565         `for var; do'.
71566
71567 2002-11-06  Bruno Haible  <bruno@clisp.org>
71568
71569         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
71570         * lib/gcd.c (gcd): Likewise.
71571
71572 2002-11-05  Bruno Haible  <bruno@clisp.org>
71573
71574         * lib/gcd.h: New file, from gettext-0.11.5.
71575         * lib/gcd.c: New file, from gettext-0.11.5.
71576
71577 2002-11-05  Bruno Haible  <bruno@clisp.org>
71578
71579         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71580         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71581         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71582         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71583
71584         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
71585         <libintl.h>.
71586         * lib/makepath.c: Include gettext.h instead of <locale.h> and
71587         <libintl.h>.
71588
71589         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
71590         * lib/human.c: Include gettext.h instead of <libintl.h>.
71591         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
71592         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
71593         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
71594         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
71595         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
71596         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
71597         (textdomain): Remove definition.
71598         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
71599
71600         * lib/long-options.c: Remove include of <libintl.h> and definition of
71601         _.
71602         * lib/same.c: Remove include of <libintl.h> and definition of _.
71603
71604 2002-11-04  Owen Taylor  <otaylor@redhat.com>
71605
71606         * lib/config.charset: A few additions for Solaris.
71607
71608 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71609
71610         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
71611         * lib/localcharset.c (locale_charset): Declare as extern "C".
71612
71613 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71614
71615         * lib/config.charset: msdos in uk_UA uses CP1125.
71616
71617 2002-11-04  Bruno Haible  <bruno@clisp.org>
71618
71619         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
71620         * lib/strcase.h: New file, from GNU gettext-0.11.5.
71621         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
71622         * lib/strstr.h: New file, from GNU gettext-0.11.5.
71623         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
71624
71625 2002-11-04  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/localcharset.c (locale_charset): Don't return an empty string.
71628
71629 2002-11-04  Bruno Haible  <bruno@clisp.org>
71630
71631         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
71632         aliases.
71633
71634 2002-11-04  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/config.charset: Update for newest glibc. Add canonical names
71637         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
71638
71639 2002-11-04  Bruno Haible  <bruno@clisp.org>
71640
71641         * lib/config.charset: Add support for NetBSD.
71642
71643 2002-11-04  Bruno Haible  <bruno@clisp.org>
71644
71645         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
71646
71647 2002-11-01  Bruno Haible  <bruno@clisp.org>
71648
71649         * configure.in: Add AC_CONFIG_AUX_DIR call.
71650         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
71651         test/Makefile.
71652         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
71653
71654 2002-09-28  Karl Berry  <karl@gnu.org>
71655
71656         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
71657         installed automake until the next release, since changes have been
71658         made.
71659
71660 2002-09-25  Karl Berry  <karl@gnu.org>
71661
71662         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
71663         * lib/getopt*: copy from libc/posix.
71664         * lib/gettext.h: copy from gettext.
71665         * lib/.cppi-disable: add strdup.c, gettext.h.
71666
71667 2002-09-25  Karl Berry  <karl@gnu.org>
71668
71669         * config/srclist.txt: enable gettext.h check.
71670         * config/config.{guess,sub}: update from prep.
71671         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
71672                 from automake 1.6.3.
71673         See srclist*.
71674
71675 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
71676
71677         * regex.c (PATFETCH): Remove the translating fetch.
71678         (PATFETCH_RAW): Rename to PATFETCH.
71679         (set_image_of_range): New fun.
71680         (SET_RANGE_TABLE_WORK_AREA): Use it.
71681         (regex_compile): Don't translate the pattern chars so eagerly.
71682         Only do it when inserting an `exactn' bytecode or when handling
71683         a char-range.
71684         (mutually_exclusive_p): Avoid empty statement.
71685
71686 2002-07-06  Jim Meyering  <meyering@lucent.com>
71687
71688         * m4/README: Don't mention Makefile.am.in.
71689         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
71690
71691 2002-07-01  Jim Meyering  <meyering@lucent.com>
71692
71693         * lib/c-stack.c: Include sys/time.h.
71694         From Volker Borchert.
71695
71696 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71697
71698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
71699
71700 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71701
71702         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
71703         New macro.  Use it uniformly instead of
71704         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
71705         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
71706         reported by Vin Shelton.
71707
71708 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71709
71710         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71711         Do not assume SA_SIGINFO behavior.
71712         Bug reported by Jim Meyering on NetBSD 1.5.2.
71713
71714 2002-06-22  Jim Meyering  <meyering@lucent.com>
71715
71716         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71717         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71718
71719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71720         now that configure.ac uses AC_GNU_SOURCE.
71721         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71722         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71723
71724         Update to latest tools.  Suggestions from Paul Eggert.
71725         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71726         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71727         * m4/fnmatch.m4: Likewise.
71728         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71729         to AC_HEADER_STDBOOL
71730
71731 2002-06-22  Jim Meyering  <meyering@lucent.com>
71732
71733         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71734         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71735
71736 2002-06-22  Jim Meyering  <meyering@lucent.com>
71737
71738         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71739
71740         * lib/exitfail.c, exitfail.h: Likewise.
71741         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71742
71743         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71744         of fnmatch.h.
71745         (EXTRA_DIST): Add fnmatch_loop.c.
71746         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71747
71748         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71749         * lib/fnmatch.c: Update from diffutils-2.8.2.
71750         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71751         * lib/fnmatch.h: Remove file.
71752
71753 2002-06-21  Jim Meyering  <meyering@lucent.com>
71754
71755         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71756         * m4/mbrtowc.m4: Likewise.
71757
71758         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71759         * m4/mbswidth.m4: Reflect name change:
71760         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71761         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71762
71763         * m4/lib-link.m4: Update from gettext-0.11.2.
71764         * m4/gettext.m4: Likewise.
71765
71766         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71767         From Alfred M. Szmidt.
71768
71769 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71770
71771         * lib/file-type.h: Report an error if neither S_ISREG nor
71772         S_IFREG is defined, instead of using a test specific to glibc
71773         2.2.  This should be safe, since POSIX requires S_ISREG and
71774         Unix Version 7 had S_IFREG.  We don't need to check for
71775         <sys/types.h> since we don't use any symbols that it defines.
71776
71777 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71778
71779         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71780         $@-t, so that each temporary file name is unique and valid in the first
71781         8 characters, for operation under DOS.
71782
71783 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71784
71785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71786
71787 2002-06-15  Jim Meyering  <meyering@lucent.com>
71788
71789         Work even with DJGPP 2.03, which lacks support for symlinks.
71790         From Richard Dawe.
71791         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71792         is defined.
71793         * lib/lchown.c (S_ISLNK): Likewise.
71794
71795 2002-06-15  Jim Meyering  <meyering@lucent.com>
71796
71797         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71798         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71799         have been included before this file.
71800
71801 2002-06-14  Jim Meyering  <meyering@lucent.com>
71802
71803         * lib/file-type.h: Use the version from diffutils-2.8.2.
71804         * lib/file-type.c: Likewise.
71805
71806 2002-06-07  Jim Meyering  <meyering@lucent.com>
71807
71808         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71809         They're needed at least for NetBSD 1.5.2.
71810         ($statxfs_includes): Include those same headers.
71811         ($statxfs_includes): Include sys/vfs.h if available.
71812         ($statxfs_includes): Likewise for sys/statvfs.h.
71813         Check for the following members in both structs statfs and statvfs:
71814         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71815
71816 2002-06-01  Jim Meyering  <meyering@lucent.com>
71817
71818         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71819         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71820
71821 2002-05-28  Jim Meyering  <meyering@lucent.com>
71822
71823         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71824         Reported by Volker Borchert.
71825
71826 2002-05-27  Jim Meyering  <meyering@lucent.com>
71827
71828         Fix a problem seen only on nonconforming systems whereby ls.c's
71829         use of localtime, and then of gettimeofday would cause trouble:
71830         the localtime call used to initialize rpl_gettimeofday's save
71831         mechanism would clobber ls's current local time information so
71832         that in any long listing the first file would always be listed
71833         with date 1970-01-01.  Analysis by Volker Borchert.
71834
71835         * lib/gettimeofday.c (localtime): Undefine.
71836         (rpl_localtime): New function.
71837
71838 2002-05-27  Jim Meyering  <meyering@lucent.com>
71839
71840         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71841         localtime.
71842
71843         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71844         use the replacement function; it wouldn't resolve at link time.
71845         Reported by Volker Borchert.
71846
71847 2002-05-22  Jim Meyering  <meyering@lucent.com>
71848
71849         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71850         file-type.h.
71851         * lib/file-type.h: New file.
71852         * lib/file-type.c (file_type): New file/function.  Extracted from
71853         diffutils.
71854
71855 2002-04-30  Jim Meyering  <meyering@lucent.com>
71856
71857         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71858
71859 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71860
71861         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71862
71863 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71864
71865         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71866         Do not check for alloca.h (no longer used) or stdbool.h (was never
71867         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71868
71869 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71870
71871         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71872
71873 2002-04-29  Jim Meyering  <meyering@lucent.com>
71874
71875         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71876         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71877         Use AC_FUNC_STRNLEN here instead.
71878
71879         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71880         With autoconf-2.53a, it's part of AC_PROG_CC.
71881
71882 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71883
71884         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71885         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71886
71887 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71888
71889         * lib/sig2str.h, lib/sig2str.c: New files.
71890         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71891
71892 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71893
71894         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71895         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71896         of 127, since 64 is the largest conceivable number for ancient
71897         nonstandard hosts.
71898         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71899
71900 2002-04-28  Jim Meyering  <meyering@lucent.com>
71901
71902         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71903
71904 2002-04-24  Jim Meyering  <meyering@lucent.com>
71905
71906         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71907         (jm_PREREQ): Use it.
71908
71909         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71910         mach/mach.h fcntl.h.
71911         Check for this function: setlocale.
71912
71913 2002-04-24  Jim Meyering  <meyering@lucent.com>
71914
71915         * lib/gettext.h: New file, from Gettext.
71916         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71917         (libfetish_a_SOURCES): Add gettext.h.
71918
71919 2002-04-16  Jim Meyering  <meyering@lucent.com>
71920
71921         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71922         ut_pid, ut_id, ut_exit.
71923
71924 2002-04-16  Jim Meyering  <meyering@lucent.com>
71925
71926         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71927         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71928         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71929
71930 2002-04-12  Jim Meyering  <meyering@lucent.com>
71931
71932         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71933         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71934         existence of the getmntinfo function.  Needed for Darwin 5.3.
71935
71936         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71937         This is necessary at least on Darwin 5.3.
71938
71939         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71940         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71941         strnlen.o in the library, and that makes some versions of ranlib
71942         object.
71943
71944 2002-04-12  Jim Meyering  <meyering@lucent.com>
71945
71946         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71947
71948 2002-04-09  Jim Meyering  <meyering@lucent.com>
71949
71950         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71951         to be more precise.  Rather than saying we're checking whether the
71952         function `works', say what we're testing.
71953         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71954         Reported by Bruno Haible.
71955
71956 2002-03-10  Jim Meyering  <meyering@lucent.com>
71957
71958         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71959         Suggestion from Santiago Vila.
71960
71961 2002-03-08  Jim Meyering  <meyering@lucent.com>
71962
71963         * lib/rename.c: Mention that this wrapper is needed also on
71964         mips-dec-ultrix4.4 systems.
71965
71966 2002-03-02  Jim Meyering  <meyering@lucent.com>
71967
71968         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
71969         not HAVE_CLOCK_SETTIME.
71970
71971 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71972
71973         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
71974         Check for clock_settime.
71975
71976 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71977
71978         * lib/nanosleep.h: Rename to....
71979         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
71980
71981         * lib/gettime.c: New file.
71982         * lib/settime.c: New file.
71983         * lib/stime.c: Remove.
71984
71985         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
71986         timespec.h.  Remove nanosleep.h.
71987
71988 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71989
71990         * m4/acl.m4: New file.
71991         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
71992         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
71993
71994 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71995
71996         * lib/acl.c, lib/acl.h: New files.
71997         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
71998
71999 2002-02-24  Jim Meyering  <meyering@lucent.com>
72000
72001         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
72002         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
72003         cause trouble.  Reported by Nelson Beebe.
72004
72005 2002-02-23  Paul Eggert  <eggert@twinsun.com>
72006
72007         * lib/path-concat.c (xpath_concat): Reorder code to pacify
72008         compilers that don't know that xalloc_die never returns.
72009
72010 2002-02-20  Jim Meyering  <meyering@lucent.com>
72011
72012         * lib/getdate.c: Regenerate using bison-1.33.
72013
72014 2002-02-17  Jim Meyering  <meyering@lucent.com>
72015
72016         * config/config.guess (main): Don't use `head -1'; it's no longer
72017         portable. Use `sed 1q' instead.
72018
72019 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
72020
72021         * m4/codeset.m4: Upgrade to gettext-0.11.
72022         * m4/gettext.m4: Upgrade to gettext-0.11.
72023         * m4/glibc21.m4: Upgrade to gettext-0.11.
72024         * m4/iconv.m4: Upgrade to gettext-0.11.
72025         * m4/isc-posix.m4: Upgrade to gettext-0.11.
72026         * m4/lcmessage.m4: Upgrade to gettext-0.11.
72027         * m4/lib-ld.m4: New file, from gettext-0.11.
72028         * m4/lib-link.m4: New file, from gettext-0.11.
72029         * m4/lib-prefix.m4: New file, from gettext-0.11.
72030         * m4/progtest.m4: Upgrade to gettext-0.11.
72031
72032 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72033
72034         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
72035         (jm_PREREQ): Use it.
72036
72037 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72038
72039         * lib/posixver.c, lib/posixver.h: New files.
72040         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72041
72042 2002-02-02  Paul Eggert  <eggert@twinsun.com>
72043             Bruno Haible  <bruno@clisp.org>
72044
72045         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
72046         (fwrite_success_callback): New declaration.
72047         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
72048         print_unicode_char. Call failure callback instead of error.
72049         (fwrite_success_callback): New function.
72050         (exit_failure_callback): New function.
72051         (fallback_failure_callback): New function.
72052         (print_unicode_char): Call unicode_to_mb.
72053
72054 2002-01-26  Jim Meyering  <meyering@lucent.com>
72055
72056         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
72057         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
72058
72059 2002-01-26  Jim Meyering  <meyering@lucent.com>
72060
72061         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
72062
72063 2002-01-22  Paul Eggert  <eggert@twinsun.com>
72064
72065         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
72066
72067 2002-01-22  Jim Meyering  <meyering@lucent.com>
72068
72069         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
72070         Otherwise, some versions of automake would omit the rule that makes
72071         Makefile from Makefile.in.
72072
72073 2002-01-21  Paul Eggert  <eggert@twinsun.com>
72074
72075         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
72076         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72077         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
72078         (memcoll): Set errno to zero if there is no error.
72079
72080         * lib/quotearg.c (quotearg_buffer_restyled):
72081         Fix bug with quoting buffers containing NUL when backslashing escapes.
72082         This bug was exposed by the other changes in this patch.
72083         (quotearg_n_options): New arg ARGSIZE.
72084         All callers changed.
72085         (quoting_options_from_style): New function.
72086         (quotearg_n_style): Use it.
72087         (quotearg_n_style_mem): New function.
72088
72089         * lib/quotearg.h (quotearg_n_style_mem): New function.
72090
72091 2002-01-19  Jim Meyering  <meyering@lucent.com>
72092
72093         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
72094         Remove useless quotes: DF_PROG="df".
72095         * m4/strnlen.m4: New file.
72096
72097 2002-01-16  Paul Eggert  <eggert@twinsun.com>
72098
72099         * lib/backupfile.c (ISDIGIT): Comment fix.
72100         * lib/getdate.y (ISDIGIT): Likewise.
72101         * lib/posixtm.c (ISDIGIT, year): Likewise.
72102         * lib/strverscmp.c (ISDIGIT): Likewise.
72103         * lib/userspec.c (ISDIGIT): Likewise.
72104
72105 2002-01-16  Jim Meyering  <meyering@lucent.com>
72106
72107         * lib/getdate.y: Add three semicolons, each just before a closing
72108         brace. Bison (as of version 1.31) no longer papers over that mistake.
72109
72110 2002-01-05  Jim Meyering  <meyering@lucent.com>
72111
72112         * lib/version-etc.c (version_etc_copyright): Update copyright year.
72113
72114 2001-12-19  Paul Eggert  <eggert@twinsun.com>
72115
72116         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
72117         not silently exit merely because the output buffer happens to
72118         have nothing pending.
72119
72120 2001-12-18  Paul Eggert  <eggert@twinsun.com>
72121
72122         See the big note in ../ChangeLog.
72123         * lib/human.c (suffixes): Prefer K to k for 1024.
72124         (generate_suffix_backwards): New function.
72125         (human_readable_inexact): Use it.
72126         * lib/xstrtol.c (__xstrtol): If there is no number but there
72127         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
72128         Accept 'K' as well as 'k'.
72129
72130 2001-12-15  Jim Meyering  <meyering@lucent.com>
72131
72132         * lib/regex.h (__restrict_arr): Update from libc.
72133
72134         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
72135         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
72136         (STREQ): Define.
72137
72138 2001-12-14  Jim Meyering  <meyering@lucent.com>
72139
72140         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
72141         Suggestion from Bruno Haible.
72142
72143 2001-12-10  Jim Meyering  <meyering@lucent.com>
72144
72145         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
72146         xrealloc, Instead, include "xalloc.h".
72147         (initbuffer): Don't cast xmalloc return value to char*.
72148         (readline): Reword comment.
72149         Don't cast xrealloc return value to char*
72150         Return NULL, not 0.
72151
72152 2001-12-09  Jim Meyering  <meyering@lucent.com>
72153
72154         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
72155         about `signed and unsigned type in conditional expression'.
72156         * lib/posixtm.c (posix_time_parse): Likewise.
72157
72158         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
72159
72160         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
72161         to avoid a pedantic warning.
72162
72163         * lib/getstr.c: Don't include assert.h.
72164         (getstr): Remove warning-evoking assertions.
72165         Return -1 if offset parameter is out of bounds.
72166         Change the type of a local from int to size_t.
72167
72168         * lib/strftime.c (my_strftime_localtime_r): Include this function
72169         definition in the `#if ! HAVE_TM_GMTOFF' block.
72170
72171         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
72172         Include xalloc.h instead.
72173
72174 2001-12-02  Jim Meyering  <meyering@lucent.com>
72175
72176         * lib/tempname.c: Don't declare getenv, thus reverting the change of
72177         2001-11-18.  It's no longer necessary, now that stdlib.h is always
72178         included.
72179
72180         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
72181         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
72182
72183 2001-11-30  Akim Demaille  <akim@epita.fr>
72184
72185         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
72186         before being defined.
72187
72188 2001-11-27  Paul Eggert  <eggert@twinsun.com>
72189
72190         * lib/quotearg.h (quotearg_n, quotearg_n_style):
72191         First arg is int, not unsigned.
72192         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
72193         (SIZE_MAX, UINT_MAX): New macros.
72194         (quotearg_n_options): Abort if N is negative.
72195         Avoid overflow check on hosts where size_t is 64 bits and int
72196         is 32 bits, as overflow is impossible there.
72197         Fix off-by-one typo that caused unnecessary reallocation.
72198
72199 2001-11-27  Jim Meyering  <meyering@lucent.com>
72200
72201         * lib/tempname.c: Merge with version from libc.
72202         * lib/regex.c: Likewise.
72203
72204         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
72205         systems for which STDC_HEADERS is 0, it was not included, resulting in
72206         a warning about an integer-to-pointer conversion problem with getenv.
72207         Reported by Volker Borchert.
72208
72209 2001-11-26  Jim Meyering  <meyering@lucent.com>
72210
72211         * lib/gtod.h: Remove file.
72212         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
72213         * lib/gettimeofday.c: Don't include gtod.h.
72214         (GTOD_init): Remove function.
72215         (rpl_gettimeofday): Do its job here instead, rather than aborting.
72216         Suggestion from Volker Borchert.
72217
72218 2001-11-23  Jim Meyering  <meyering@lucent.com>
72219
72220         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
72221         it.
72222         * lib/hash.c (struct hash_table): Define it here instead.
72223
72224 2001-11-22  Jim Meyering  <meyering@lucent.com>
72225
72226         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
72227
72228 2001-11-20  Jim Meyering  <meyering@lucent.com>
72229
72230         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
72231         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
72232
72233 2001-11-19  Jim Meyering  <meyering@lucent.com>
72234
72235         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
72236         directory.  Use "conftestXXXXXX" as the template.
72237         Suggestion from Paul Eggert.
72238
72239         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
72240         immediately, so the test doesn't mistakenly hit the max-open-files
72241         limit.
72242
72243 2001-11-18  Paul Eggert  <eggert@twinsun.com>
72244
72245         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
72246         (TEMPORARIES): New macro.
72247         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
72248         removes an artificial limitation (e.g. HP-UX 10.20, where
72249         TMP_MAX is 17576).
72250
72251 2001-11-18  Jim Meyering  <meyering@lucent.com>
72252
72253         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
72254
72255 2001-11-18  Jim Meyering  <meyering@lucent.com>
72256
72257         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
72258         on SunOS 4.
72259
72260         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
72261         files will be created before anything else.
72262
72263 2001-11-17  Paul Eggert  <eggert@twinsun.com>
72264
72265         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
72266         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
72267
72268 2001-11-17  Jim Meyering  <meyering@lucent.com>
72269
72270         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
72271         Prompted by a report from Bob Proulx.
72272
72273         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
72274         Instead, require UTILS_FUNC_MKSTEMP.
72275
72276 2001-11-17  Jim Meyering  <meyering@lucent.com>
72277
72278         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
72279         Now, that's done as part of AC_FUNC_STRTOD.
72280
72281 2001-11-17  Jim Meyering  <meyering@lucent.com>
72282
72283         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
72284         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
72285         rather than group writable.  Patch by Juan F. Codagnone.
72286
72287         * lib/readtokens.c: Remove explicit declarations of xmalloc and
72288         xrealloc, Instead, include "xalloc.h".
72289
72290         * lib/mountlist.c: Include unlocked-io.h after all system headers.
72291         Remove explicit declarations of xmalloc, xrealloc,
72292         and xstrdup.  Instead, include "xalloc.h".
72293
72294         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
72295         unlocked-io.h.
72296         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
72297         Likewise.
72298         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
72299
72300         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
72301         Reported by Padraig Brady.
72302
72303         * lib/mkstemp.c: #undef mkstemp.
72304         Include config.h.
72305         (rpl_mkstemp): Rename from mkstemp.
72306         Protoize.
72307
72308 2001-11-16  Jim Meyering  <meyering@lucent.com>
72309
72310         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
72311         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
72312         determine the amount of total physical memory, use pstat_getstatic.
72313         HPUX-11 doesn't define _SC_PHYS_PAGES.
72314         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
72315         If sysconf couldn't be used to determine the amount of available
72316         physical memory, use both pstat_getstatic and pstat_getdynamic.
72317         Based on a patch from Bob Proulx.
72318
72319 2001-11-10  Jim Meyering  <meyering@lucent.com>
72320
72321         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
72322         (jm_PREREQ): Use it.
72323
72324 2001-11-09  Jim Meyering  <meyering@lucent.com>
72325
72326         * m4/jm-macros.m4: Require autoconf-2.52f.
72327         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
72328         Use these AC_-prefixed names, not the AM_-prefixed ones.
72329
72330         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
72331
72332 2001-11-05  Jim Meyering  <meyering@lucent.com>
72333
72334         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
72335
72336 2001-11-04  Jim Meyering  <meyering@lucent.com>
72337
72338         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
72339         $DEFS.
72340
72341 2001-11-03  Jim Meyering  <meyering@lucent.com>
72342
72343         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
72344         of AC_DEFUN.
72345
72346         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
72347         know the name of the variable in the macro definition.
72348
72349 2001-11-03  Jim Meyering  <meyering@lucent.com>
72350
72351         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
72352         in argmatch_to_argument call.
72353
72354         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
72355         argument.
72356
72357         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
72358         e.g., a fault due to an attempt to free a NULL pointer.
72359
72360 2001-11-01  Jim Meyering  <meyering@lucent.com>
72361
72362         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
72363         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
72364
72365 2001-11-01  Jim Meyering  <meyering@lucent.com>
72366
72367         * lib/dirfd.c, lib/dirfd.h: New files.
72368         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
72369
72370         * lib/hash.c (hash_print) [TESTING]: Clean up.
72371
72372 2001-10-22  Paul Eggert  <eggert@twinsun.com>
72373
72374         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
72375         to avoid a warning if -Wall.
72376
72377 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
72378
72379         * README: New file
72380         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
72381         (per RMS's instructions, this is now the canonical source)
72382         * lgpl/, gpl/: New directories.
72383
72384 2001-10-21  Paul Eggert  <eggert@twinsun.com>
72385
72386         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
72387
72388 2001-10-21  Jim Meyering  <meyering@lucent.com>
72389
72390         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
72391         this code would end up calling gettext even in packages built
72392         with --disable-nls.
72393         * lib/getopt.c (_): Likewise.
72394         * lib/regex.c (_): Likewise.
72395
72396 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72397
72398         * m4/error.m4 (jm_PREREQ_ERROR):
72399         Do not invoke AC_CHECK_FUNCS with strerror_r, as
72400         AC_FUNC_STRERROR_R does that.
72401         Check for strerror declaration.
72402
72403         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
72404         are supposed to have them these days.
72405         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
72406         Merge changes from latest Autoconf CVS.
72407         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
72408         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
72409         POSIX decided to standardize on the int flavor of strerror_r.
72410
72411 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72412
72413         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
72414         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
72415         Use strerror_r that is only a macro, even if it is not a function.
72416         (strerror): Check for HAVE_DECL_STRERROR before declaring.
72417         (private_strerror): Use prototypes, not old-style function definition.
72418         (print_errno_message): New function.
72419         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
72420         char*-flavored one.
72421         (error_tail, error, error_at_line): Use it.
72422
72423 2001-10-11  Jim Meyering  <meyering@lucent.com>
72424
72425         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
72426         and quote_n (1, ... to avoid clobbering a buffer.
72427
72428 2001-10-05  Jim Meyering  <meyering@lucent.com>
72429
72430         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
72431         hash-pjw.h.
72432         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
72433         * lib/hash-pjw.h: New file.
72434
72435 2001-09-30  Jim Meyering  <meyering@lucent.com>
72436
72437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
72438         `struct fsstat' has the `f_fstypename' member.
72439         Use that to define FS_TYPE, which is now used to make
72440         the getfsstat link test tighter.
72441
72442 2001-09-30  Jim Meyering  <meyering@lucent.com>
72443
72444         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
72445         Include <sys/ucred.h>, for Apple Darwin.
72446         Include sys/mount.h and sys/fs_types.h only if available.
72447         (FS_TYPE): Define.
72448         (read_filesystem_list): Use FS_TYPE.
72449
72450 2001-09-29  Paul Eggert  <eggert@twinsun.com>
72451
72452         * lib/exclude.c (excluded_filename): 0 -> false, since it's
72453         a boolean context.
72454
72455 2001-09-29  Jim Meyering  <meyering@lucent.com>
72456
72457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72458         [one-argument getmntent function]): Include stdio.h before mntent.h.
72459         SunOS 4.1.x needs it for the declaration of `FILE'.
72460         Patch by Volker Borchert.
72461
72462         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72463         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
72464         sys/fs_types.h, and make the link-test for getfsstat guard #include
72465         directives with appropriate #if HAVE_*_H tests so that we can
72466         detect getfsstat on Apple Darwin1.3.7 systems.
72467         Reported by Nelson Beebe.
72468         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
72469
72470 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72471
72472         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72473         #defines strtoimax.  Also treat the other strto* functions
72474         like strtoimax.
72475
72476         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72477         Check for strtoul and strtoumax,
72478         as those declarations are made even in the signed case.
72479         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
72480         Likewise, for strtol and strtoimax.
72481
72482 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72483
72484         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72485         #defines strtoimax.  Also treat the other strto* functions
72486         like strtoimax.
72487
72488         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
72489         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
72490         (strtoimax, strtoumax): Do not declare if already defined as a macro.
72491
72492 2001-09-26  Jim Meyering  <meyering@lucent.com>
72493
72494         Most macros in unlocked-io.h had the wrong number of arguments.
72495         * lib/gen-uio: New script.
72496         (USE_UNLOCKED_IO): Define to 1 if not already defined.
72497         * lib/unlocked-io.hin: Remove file.
72498         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
72499         rather than trying to embed it here.
72500         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
72501         Reported by Padraig Brady.
72502
72503 2001-09-25  Volker Borchert  <bt@teknon.de>
72504
72505         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
72506         `result'.
72507
72508 2001-09-24  Jim Meyering  <meyering@lucent.com>
72509
72510         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
72511
72512 2001-09-23  Jim Meyering  <meyering@lucent.com>
72513
72514         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
72515         instead of the mere test for existence of mntent.h.  The latter
72516         would get a false-positive on AIX 3.4 systems.
72517         In the outer getmntent if-block, don't die if neither of the getmntent
72518         tests succeeds.  Instead, just fall through and continue with the
72519         remaining tests.
72520
72521 2001-09-23  Jim Meyering  <meyering@lucent.com>
72522
72523         * lib/mountlist.c: Remove useless parentheses in #if directives.
72524         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
72525         the deprecated MOUNTED symbol is no longer defined in mntent.h.
72526
72527 2001-09-22  Jim Meyering  <meyering@lucent.com>
72528
72529         * m4/gettext.m4: New file.  From gettext.
72530         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
72531         * m4/progtest.m4: Likewise
72532         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
72533         * m4/glibc21.m4: Likewise.
72534
72535         * m4/libintl.m4: Remove.  No longer used.
72536
72537 2001-09-22  Jim Meyering  <meyering@lucent.com>
72538
72539         * lib/localcharset.c: Update from latest gettext.
72540         * lib/config.charset: Likewise.
72541
72542 2001-09-20  Jim Meyering  <meyering@lucent.com>
72543
72544         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
72545         strtoimax.
72546         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
72547         strtoumax.
72548
72549 2001-09-20  Jim Meyering  <meyering@lucent.com>
72550
72551         * lib/xstrtol.c (strtoimax): Guard declaration with
72552         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
72553         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
72554         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
72555         (strtoumax): Likewise, for completeness (it wasn't necessary).
72556
72557 2001-09-17  Paul Eggert  <eggert@twinsun.com>
72558
72559         * lib/strtoimax.c (HAVE_LONG_LONG):
72560         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
72561         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
72562         to work around bug in IBM C compiler.
72563
72564 2001-09-17  Jim Meyering  <meyering@lucent.com>
72565
72566         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
72567         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
72568         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
72569         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
72570         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
72571         whenever the right hand side need not be expanded by the shell.
72572
72573 2001-09-16  Paul Eggert  <eggert@twinsun.com>
72574
72575         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
72576         library.  It's not correct, as some older glibcs are buggy.
72577         fnmatch wasn't fixed until glibc 2.2.
72578
72579         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
72580         special shell magic here.
72581
72582 2001-09-16  Jim Meyering  <meyering@lucent.com>
72583
72584         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
72585         * m4/jm-macros.m4: Require it.
72586
72587 2001-09-16  Jim Meyering  <meyering@lucent.com>
72588
72589         * lib/mkdir.c: New file.
72590
72591 2001-09-15  Jim Meyering  <meyering@lucent.com>
72592
72593         * m4/jm-macros.m4: Check for help2man.
72594
72595 2001-09-11  Jim Meyering  <meyering@lucent.com>
72596
72597         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
72598         The body, by Paul Eggert, was moved here from configure.in.
72599         * m4/jm-macros.m4: Require UTILS_HOST_OS.
72600
72601 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72602
72603         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
72604         (jm_PREREQ): Use it.
72605
72606 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72607
72608         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
72609         Use ssize_t, not int, to store result of readlink.
72610         Check for ssize_t overflow as well as size_t overflow,
72611         as POSIX says the result of readlink is implementation-defined
72612         when ssize_t overflows.
72613         Remove unnecessary cast to char*.
72614         Use free+malloc instead of realloc, as the storage doesn't need
72615         to be preserved and it's clearer and can be more efficient that way.
72616         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
72617         * lib/xreadlink.h (xreadlink): Update prototype.
72618
72619 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72620
72621         * lib/xgetcwd.c: Revert some of the previous change; intead,
72622         fix the HAVE_GETCWD_NULL code to behave more like the
72623         !HAVE_GETCWD_NULL code used to.
72624
72625         Include "xalloc.h".
72626         (xgetcwd): Do not return NULL when memory is exhausted; instead,
72627         invoke xalloc_die.
72628
72629 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72630
72631         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
72632         sys/param.h, as pathmax.h includes them.
72633
72634 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72635
72636         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
72637         (jm_PREREQ_XGETCWD): New macro.
72638
72639         * m4/getcwd.m4: New file.
72640
72641 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72642
72643         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
72644         like the HAVE_GETCWD_NULL code.
72645         Include pathmax.h if not HAVE_GETCWD.
72646         Do not include xalloc.h.
72647         (INITIAL_BUFFER_SIZE): New symbol.
72648         Do not use xmalloc / xrealloc, since the caller is responsible for
72649         handling errors.  Preserve errno around `free' during failure.
72650         Do not overrun buffer when using getwd.
72651
72652 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72653
72654         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
72655         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
72656         getcwd (NULL, 0).
72657
72658 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72659
72660         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
72661         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
72662         spotted by Jim Meyering.
72663
72664 2001-09-03  Jim Meyering  <meyering@lucent.com>
72665
72666         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
72667         failure.
72668
72669 2001-09-02  Jim Meyering  <meyering@lucent.com>
72670
72671         * lib/error.c: Update from GNU libc.
72672
72673 2001-09-01  Jim Meyering  <meyering@lucent.com>
72674
72675         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
72676         Used by df.
72677
72678 2001-09-01  Jim Meyering  <meyering@lucent.com>
72679
72680         * lib/xreadlink.c: New file.
72681         * lib/xreadlink.h: New file.
72682         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
72683         xreadlink.h.
72684
72685         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
72686         doesn't conflict with sparc Solaris 7's definition in
72687         /usr/include/sys/int_types.h.
72688
72689         * lib/exclude.c: Use `""', not `<>' to #include non-system header
72690         files.
72691         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
72692         and strncasecmp as r-values.  Unixware didn't have declarations.
72693
72694 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72695
72696         * lib/xstrtol.h: Add copyright notice.
72697         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
72698         LONGINT_INVALID_SUFFIX_CHAR.
72699
72700 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72701
72702         * lib/xstrtol.c (strtoimax): New decl.
72703
72704 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72705
72706         * lib/xgetcwd.c: Don't include pathmax.h.
72707         Include stdlib.h and unistd.h if available.
72708         Include xalloc.h.
72709         (xmalloc, xstrdup, free): Remove decls.
72710         (xgetcwd): Don't assume sizes fit in unsigned.
72711         Check for overflow when computing sizes.
72712         Simplify reallocation code.
72713
72714 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72715
72716         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72717         a directory's st_size can have an arbitrary value, so the old
72718         usage could waste an arbitrary amount of memory.  All uses
72719         changed.
72720         * lib/savedir.h: Update prototype.
72721
72722 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72723
72724         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72725
72726         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72727         old strtoimax.c.
72728
72729         Also, make the following further changes to make this file's
72730         configuration more similar to that of strtol.c:
72731         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72732         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72733         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72734         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72735         changed to signed values.
72736
72737         And make the following changes as well:
72738         Fix copyright notice, as 1999 was missing.
72739         (verify): New macro.
72740         (strtoimax): Check sizes at compile-time, not run-time.
72741         Prefer strtol to strtoll if both work.
72742         (main): Remove; it was not that useful and was a pain to maintain.
72743
72744         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72745
72746 2001-08-31  Jim Meyering  <meyering@lucent.com>
72747
72748         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72749         Use an initial, malloc'd, buffer of length 128 rather than
72750         a statically allocated one of length 1024.
72751
72752 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72753
72754         Simplify code, partly by assuming autoconf 2.52 semantics.
72755
72756         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72757
72758         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72759         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72760         All uses removed.
72761         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72762         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72763         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72764         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72765         jm_AC_HEADER_INTTYPES_H.
72766         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72767
72768         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72769
72770         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72771         Quote first arg of AC_DEFUN.
72772         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72773         since they are needed to parse the include file even if we need
72774         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72775         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72776         but with opposite signedness.
72777
72778 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72779
72780         Merge 'exclude' changes from tar 1.13.22.
72781         This fixes one or two unlikely storage allocation overflow bugs,
72782         but doesn't change user-visible behavior otherwise.
72783
72784 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72785
72786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72787         (jm_PREREQ_EXCLUDE): New macro.
72788
72789 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72790
72791         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72792         tm to be declared.
72793
72794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72795
72796         * lib/hash.c: Remove '2001' from copyright notice.
72797
72798 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72799
72800         * lib/full-write.h: New file.
72801         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72802         * lib/full-write.c: Correct credits, as cccp.c no longer
72803         exists and anyway it was so heavily changed from the old cccp
72804         code as to be unrecognizable.  Include full-write.h.
72805         (full_write) Return size_t, with short writes meaning failure.
72806         All callers changed.  This fixes a bug with large buffers
72807         on 64-bit hosts.
72808         * lib/utime.c: Include full-write.h.
72809
72810 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72811
72812         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72813         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72814         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72815         Include if available.
72816         (<xalloc.h>): Include
72817         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72818         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72819         collide with FNM macros.
72820         (struct patopts): New struct.
72821         (struct exclude): Use it, as exclude patterns now come with options.
72822         (new_exclude): Support above changes.
72823         (new_exclude, add_exclude_file):
72824         Initial size must now be a power of two to simplify overflow checking.
72825         (free_exclude, fnmatch_no_wildcards): New function.
72826         (excluded_filename): No longer requires options arg, as the options
72827         are determined by add_exclude.  Now returns bool, not int.
72828         (excluded_filename, add_exclude):
72829         Add support for the fancy new exclusion options.
72830         (add_exclude, add_exclude_file): Now takes int options arg.
72831         Check for arithmetic overflow when computing sizes.
72832         (add_exclude_file): xrealloc might modify errno, so don't
72833         realloc until after errno might be used.
72834
72835         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72836         New macros.
72837         (free_exclude): New decl.
72838         (add_exclude, add_exclude_file): Now takes int options arg.
72839         (excluded_filename): No longer requires options arg, as the options
72840         are determined by add_exclude.  Now returns bool, not int.
72841
72842 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72843
72844         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72845
72846 2001-08-27  Jim Meyering  <meyering@lucent.com>
72847
72848         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72849
72850         * lib/version-etc.c (N_): Remove definition.
72851         Revert most of last change.
72852         Instead, simply don't mark the `Copyright...' string for translation.
72853         Based on advice from Paul Eggert.
72854
72855         * lib/strtoxmax.c: Tweak comment.
72856
72857 2001-08-26  Jim Meyering  <meyering@lucent.com>
72858
72859         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72860
72861         * m4/xstrtoimax.m4: New file.
72862         * m4/xstrtoumax.m4: Add comments explaining why we
72863         AC_REPLACE_FUNCS(strtol).
72864
72865 2001-08-26  Jim Meyering  <meyering@lucent.com>
72866
72867         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72868         of copyright with `%s' so translators don't get an untranslated
72869         message in 2002.
72870         (COPYRIGHT_YEAR): Define.
72871         (version_etc): Use fprintf rather than fputs.
72872         Suggestion from Ulrich Drepper.
72873
72874         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72875
72876         * lib/strtoll.c: New file, from GNU libc.
72877         * lib/xstrtoimax.c: New file.
72878
72879         * lib/xstrtol.h: Add xstrtoimax.
72880         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72881         * lib/strtoimax.c: New file.  Likewise, but first define
72882         STRTOUXMAX_SIGNED.
72883
72884         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72885         ...
72886         * lib/strtoxmax.c: ... then renamed to this.
72887
72888 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72889
72890         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72891         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72892         (jm_AC_TYPE_INTMAX_T): New macro.
72893         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72894
72895         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72896
72897         * m4/longlong.m4: Renamed from ulonglong.m4.
72898         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72899         * m4/uintmax_t.m4: Removed.
72900
72901 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72902
72903         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72904         Port to Solaris 8, where 'sed' requires a space after the 'r'
72905         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72906         Redirect output to $tmp just once.
72907
72908 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72909
72910         * lib/addext.c (<errno.h>): Include.
72911         (errno): Declare if not defined.
72912         (addext): Work correctly when pathconf returns -1 and leaves
72913         errno alone because there is no limit.  Also, work even if
72914         pathconf returns a value greater than SIZE_MAX.
72915
72916 2001-08-12  Jim Meyering  <meyering@lucent.com>
72917
72918         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72919         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72920         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72921         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72922         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72923         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72924         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72925         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72926         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72927         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72928         utime.m4, utimes.m4, xstrtoumax.m4:
72929         Quote the first argument in each use of AC_DEFUN.
72930
72931 2001-08-12  Jim Meyering  <meyering@lucent.com>
72932
72933         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72934         Simply `return getcwd (NULL, 0);'.
72935         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72936         Use 1300 as initial value for length, not PATH_MAX.
72937
72938         * lib/pathmax.h: Clean up cpp syntax.
72939
72940 2001-08-12  Jim Meyering  <meyering@lucent.com>
72941
72942         * lib/gettimeofday.c: New file.
72943         * lib/gtod.h: New file.
72944         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72945
72946 2001-08-05  Jim Meyering  <meyering@lucent.com>
72947
72948         * m4/jm-macros.m4: Require autoconf-2.52.
72949
72950 2001-08-04  Jim Meyering  <meyering@lucent.com>
72951
72952         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72953         stmt, to get in sync with glibc.
72954
72955 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72956
72957         The following changes are from gettext 0.10.39 as maintained by
72958         Bruno Haible.
72959
72960         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72961         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72962         with inverted sense.  All uses changed.
72963
72964         * lib/mbswidth.c: Don't include <limits.h>.
72965         Include <stdlib.h> and <string.h> unconditionally.
72966         (iswcntrl, mbsinit, ISCNTRL): New macros.
72967         (mbsnwidth): Use K&R style function declarations.
72968         Don't bother checking for MB_LEN_MAX == 1, since the compiler
72969         can optimize it when MB_CUR_MAX == 1.
72970         The width of control characters is zero, not 1.
72971
72972 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72973
72974         The following changes are from gettext 0.10.39 as maintained by
72975         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
72976
72977         * m4/codeset.m4: Upgrade to serial AM1.
72978         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
72979         all uses changed.  Quote first arg of AC_DEFUN.
72980         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
72981
72982         * m4/iconv.m4: Upgrade to serial AM2.
72983         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
72984         Add --with-libconv-prefix.
72985         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
72986         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
72987         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
72988         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
72989         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
72990
72991         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
72992         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
72993         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
72994         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
72995         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
72996         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
72997         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72998         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
72999         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73000
73001         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
73002         string.h any more.
73003
73004         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
73005         not the default value.
73006
73007         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
73008         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
73009         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
73010         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
73011         Also check for iswcntrl, used for wcwidth fallback.
73012         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
73013         to Autoconf 2.13.
73014
73015 2001-08-03  Jim Meyering  <meyering@lucent.com>
73016
73017         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
73018         as it was in the original.  Reported by Paul Eggert.
73019
73020 2001-07-16  Jim Meyering  <meyering@lucent.com>
73021
73022         * m4/gettimeofday.m4: New file.
73023         Prompted by a report from Bernhard Baehr.
73024
73025 2001-07-15  Jim Meyering  <meyering@lucent.com>
73026
73027         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
73028         stuff. Now it's in ../Makefile.cfg.
73029
73030 2001-07-15  Jim Meyering  <meyering@lucent.com>
73031
73032         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
73033         (BUILT_SOURCES): Add unlocked-io.h.
73034         (io_functions): Define.
73035         (unlocked-io.h): New rule.
73036         (DISTCLEANFILES): Add unlocked-io.h.
73037         (all-local): Depend on unlocked-io.h, to ensure it is created.
73038
73039         * lib/unlocked-io.hin: New file
73040
73041         * lib/regex.c: Update from glibc.
73042
73043 2001-07-05  Jim Meyering  <meyering@lucent.com>
73044
73045         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
73046         recommendation.
73047         (libfetish_a_SOURCES): Put all .h files here instead.
73048         Remove a thus-exposed (better checks in automake) duplicate and
73049         two unnecessary .h files.
73050
73051 2001-07-04  Jim Meyering  <meyering@lucent.com>
73052
73053         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
73054         that generates jm-glibc-io.m4 so that it doesn't trigger any make
73055         distcheck failure.
73056
73057 2001-07-02  Jim Meyering  <meyering@lucent.com>
73058
73059         The following changes were prompted by suggestions from Bruno Haible.
73060
73061         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
73062         is now generated.
73063         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
73064         definition of EXTRA_DIST.
73065         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
73066         ensure that the generated file is created/updated whenever the list
73067         of $(unlocked_functions) is changed.
73068         (jm-glibc-io.m4): New rule.
73069         (unlocked-io.h): New rule -- currently unused.
73070
73071 2001-06-24  Jim Meyering  <meyering@lucent.com>
73072
73073         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
73074         unmatched right bracket, rather than kludging it with an extra,
73075         falsely-matching quote in a comment.  Patch by Akim Demaille.
73076
73077 2001-06-11  Jim Meyering  <meyering@lucent.com>
73078
73079         * lib/regex.c: Update from GNU libc.
73080
73081 2001-05-27  Jim Meyering  <meyering@lucent.com>
73082
73083         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
73084         Check for ut_type in struct utmp.
73085
73086 2001-05-27  Jim Meyering  <meyering@lucent.com>
73087
73088         * lib/readutmp.h (UT_TYPE): Define.
73089
73090 2001-05-24  Jim Meyering  <meyering@lucent.com>
73091
73092         * lib/argmatch.c: Include "quote.h".
73093         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
73094         quote function.  Reported by Göran Uddeborg.
73095
73096 2001-05-22  Jim Meyering  <meyering@lucent.com>
73097
73098         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
73099         now that we use the package-supplied version unconditionally.
73100         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
73101
73102 2001-05-21  Jim Meyering  <meyering@lucent.com>
73103
73104         * m4/regex.m4: Change a couple backticks to single quotes to avoid
73105         shell syntax errors.
73106
73107 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73108
73109         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
73110
73111 2001-05-20  Paul Eggert  <eggert@twinsun.com>
73112
73113         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
73114         Don't bother to check library strftime, since
73115         we'll be using our own my_strftime function anyway.
73116         Define my_strftime instead of strftime.
73117
73118 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
73119
73120         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
73121         which is not yet declared.
73122
73123 2001-05-15  Jim Meyering  <meyering@lucent.com>
73124
73125         * m4/regex.m4: Use proper quoting so brackets appear in the test
73126         program.
73127         Reported by, and with help from, Bruno Haible.
73128
73129 2001-05-13  Jim Meyering  <meyering@lucent.com>
73130
73131         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
73132         undefined.
73133
73134 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73135
73136         dirname code cleanup.  base_name now behaves more compatibly
73137         with POSIX basename when given file names that have trailing
73138         slashes, and similarly for dir_name.  Add new primitives
73139         base_len and dir_len.  Put the directory-name-related decls
73140         into dirname.h.
73141
73142         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
73143         * lib/backupfile.c (base_name): Likewise.
73144         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
73145         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
73146         * lib/makepath.c (strip_trailing_slashes): Likewise.
73147         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
73148         ISSLASH): Likewise.
73149         * lib/rename.c (strip_trailing_slashes): Likewise.
73150         * lib/same.c (base_name): Likewise.
73151         * lib/stripslash.c (ISSLASH): Likewise.
73152
73153         * lib/addext.c: Include <dirname.h> after size_t is defined.
73154         * lib/backupfile.c: Likewise.
73155
73156         * lib/addext.c (addext): Use base_len to trim redundant
73157         trailing slashes instead of doing it ourselves.
73158         But do not trim the last slash if it is not redundant.
73159
73160         * lib/backupfile.c (find_backup_file_name,
73161         max_backup_version): Use base_len instead of rolling it ourselves.
73162         Handle the case of "" and (on DOS) "C:" correctly.
73163
73164         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
73165         needed. Include <string.h>, <dirname.h>.
73166         (base_name): Allow file names ending in slashes, other than names
73167         that are all slashes.  In this case, return the basename followed
73168         by the slashes.  This is more general, and can be used in places
73169         where the original base_name purposely had an assertion failure.
73170         (base_len): New function.
73171
73172         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
73173         Do not include <assert.h>; no longer needed.
73174         Include xalloc.h.
73175         (memrchr): Remove decl.
73176         (dir_name_r): Remove.
73177         (dir_len): Renamed from dirlen.  All callers changed.
73178         Rewrite in terms of base_name, for simplicity and consistency.
73179         (dir_name): Never return NULL.  All callers changed.
73180         Do not include <stdlib.h> in test program; no longer needed.
73181         return 0; is fine for test program.
73182
73183         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
73184         New macros.
73185         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
73186
73187         * lib/path-concat.c (path_concat): Use base_len to compute
73188         base length, not strlen; this means we cannot rely on memcpy
73189         to null-terminate.
73190
73191         * lib/same.c (STREQ): Remove.
73192         (same_name): Handle the case where the basename ends in trailing '/'.
73193
73194         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
73195         a slash was stripped.  Do not strip the last slash after a
73196         file system prefix.
73197
73198 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73199
73200         * lib/Makefile.am (libfetish_a_SOURCES):
73201         Add strftime.c, since we now compile it on all hosts.
73202
73203         * lib/strftime.c (my_strftime):
73204         Define to nstrftime if emacs, but only if my_strftime is not defined.
73205         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
73206         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
73207         Add one more extra argument: a nanoseconds value.
73208         All uses changed.
73209         (ns): New macro.
73210         (my_strftime function): Add %N format.
73211         (emacs_strftimeu): Renamed from emacs_strftime,
73212         with extra ut argument.
73213
73214 2001-05-09  Paul Eggert  <eggert@twinsun.com>
73215
73216         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
73217
73218 2001-04-21  Jim Meyering  <meyering@lucent.com>
73219
73220         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
73221         doesn't interfere.
73222
73223 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73224
73225         * m4/ftruncate.m4: Check for chsize.
73226         Link with ftruncate.o unconditionally if ftruncate is missing.
73227         This was required when cross-compiling to i586-mingw32msvc.
73228
73229 2001-04-08  Jim Meyering  <meyering@lucent.com>
73230
73231         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
73232         recomputed; that's necessary when the offset spans a DST transition.
73233         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
73234
73235 2001-04-02  Jim Meyering  <meyering@lucent.com>
73236
73237         * lib/regex.h, regex.c: Update from GNU libc.
73238
73239 2001-03-24  Jim Meyering  <meyering@lucent.com>
73240
73241         * m4/jm-macros.m4: Require autoconf-2.49d.
73242
73243 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
73244
73245         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
73246
73247 2001-03-19  Paul Eggert  <eggert@twinsun.com>
73248
73249         * lib/version-etc.c (version_etc_copyright): Update to 2001.
73250
73251 2001-03-17  Jim Meyering  <meyering@lucent.com>
73252
73253         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
73254         now that the version in autoconf is equivalent.
73255         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
73256
73257         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
73258         Suggestion from Akim Demaille.
73259
73260         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
73261         (jm_PREREQ_TEMPNAME): New function.
73262
73263 2001-03-16  Paul Eggert  <eggert@twinsun.com>
73264
73265         * lib/tempname.c (uint64_t): Define to uintmax_t if
73266         not defined, and if UINT64_MAX is not defined.
73267         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
73268         Reported by John David Anglin.
73269
73270 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
73271
73272         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
73273         resolve alias if codeset is empty.
73274         * lib/config.charset (BeOS): Use wildcard syntax.
73275
73276 2001-03-13  Jim Meyering  <meyering@lucent.com>
73277
73278         * lib/path-concat.c (path_concat)
73279         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
73280         concatenating e.g., `C:' and `foo'.
73281         From Bruno Haible.
73282
73283 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73284
73285         * lib/localcharset.c (locale_charset): Don't use
73286         setlocale(LC_CTYPE,NULL). Don't return NULL.
73287         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
73288
73289 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73290
73291         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
73292         support for DOS/DJGPP.
73293
73294 2001-03-01  Paul Eggert  <eggert@twinsun.com>
73295
73296         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
73297         lacks mkstemp.  Compile our own tempname.c if we compile our own
73298         mkstemp.c, as mkstemp relies on tempname.
73299
73300 2001-03-01  Jim Meyering  <meyering@lucent.com>
73301
73302         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
73303         AH_VERBATIM really does output its argument verbatim.
73304
73305 2001-02-28  Paul Eggert  <eggert@twinsun.com>
73306
73307         * lib/Makefile.am (libfetish_a_SOURCES):
73308         Add dup-safer.c, fopen-safer.c.
73309         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
73310
73311         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
73312         * lib/unistd-safer.h: New files.
73313
73314 2001-02-25  Paul Eggert  <eggert@twinsun.com>
73315
73316         The mkstemp replacement is taken from glibc 2.2.2, with some
73317         portability fixes for use outside glibc, as follows:
73318
73319         * lib/tempname.c (struct_stat64): New macro.
73320         (direxists, __gen_tempname): Use it.
73321         This avoids a portability problem with Solaris 8.
73322
73323         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
73324         (<stddef.h>, <stdint.h>, <string.h>):
73325         Include only if STDC_HEADERS || _LIBC.
73326         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
73327         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
73328         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
73329         (__set_errno): Define this macro if <errno.h> doesn't.
73330         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
73331         Define these macros if <stdio.h> doesn't.
73332         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
73333         Define these macros if <sys/stat.h>
73334         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
73335         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
73336         __xstat64): Define if not _LIBC.
73337         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
73338         (__gen_tempname): Invoke gettimeofday only if
73339         HAVE_GETTIMEOFDAY || _LIBC;
73340         otherwise, fall back on plain "time".
73341         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
73342
73343         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
73344
73345         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
73346
73347 2001-02-18  Paul Eggert  <eggert@twinsun.com>
73348
73349         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
73350
73351 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73352
73353         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
73354         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
73355         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
73356         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73357
73358 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73359
73360         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
73361         Remove workaround macros for hosts that have mbrtowc but not
73362         mbstate_t, as we now insist on proper declarations for both
73363         before using mbrtowc.
73364
73365 2001-02-17  Jim Meyering  <meyering@lucent.com>
73366
73367         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
73368         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
73369         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
73370         UnixWare 7.1.1.
73371
73372         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
73373         rather than AC_CACHE_VAL.
73374
73375 2001-02-17  Jim Meyering  <meyering@lucent.com>
73376
73377         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
73378         around included file name.
73379
73380         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
73381
73382         * lib/strftime.c: Update from GNU libc (the only changes were to
73383         comments).
73384
73385 2001-02-17  Jim Meyering  <meyering@lucent.com>
73386
73387         * lib/regex.c: Update from libc.
73388
73389 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
73390
73391         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
73392         clash.
73393
73394 2001-02-16  Paul Eggert  <eggert@twinsun.com>
73395
73396         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
73397         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
73398         Reported by Mark Hounschell via Paul Eggert.
73399
73400 2001-02-07  Jim Meyering  <meyering@lucent.com>
73401
73402         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
73403
73404 2001-02-05  Jim Meyering  <meyering@lucent.com>
73405
73406         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
73407         it includes the patch required for `large file' support with at least
73408         HP-UX's 10.20 /bin/cc.
73409
73410 2001-02-03  Jim Meyering  <meyering@lucent.com>
73411
73412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
73413         AS_IF, now that it works once again (mysteriously).
73414         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73415
73416 2001-01-30  Jim Meyering  <meyering@lucent.com>
73417
73418         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
73419         * m4/chown.m4: Rename conftestchown to conftest.chown.
73420         * m4/rename.m4: s/conftestdir/conftest.d1/ and
73421         s/conftestdir2/conftest.d2/.
73422         * m4/utimes.m4: s/conftestdata/conftest.data/
73423         Inspired by Pavel Roskin's change in autoconf.
73424
73425 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
73426
73427         * lib/config.charset: Update for FreeBSD 4.2.
73428
73429 2001-01-27  Jim Meyering  <meyering@lucent.com>
73430
73431         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
73432         a use of AS_IF.
73433         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73434
73435 2001-01-26  Jim Meyering  <meyering@lucent.com>
73436
73437         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
73438         quotearg.c includes it.
73439
73440 2001-01-26  Jim Meyering  <meyering@lucent.com>
73441
73442         * lib/quotearg.c: Include stddef.h.
73443         * lib/quote.c: Include stddef.h.
73444         Reported by Axel Kittenberger.
73445
73446         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
73447         line in double quotes so that it evokes a better diagnostic.
73448         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
73449         Reported by Axel Kittenberger.
73450
73451 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
73452
73453         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
73454         as if it was a `charset'.
73455
73456 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73457
73458         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
73459         has const.
73460
73461 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73462
73463         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
73464         to avoid a warning.  Add back 'const' to inptr.
73465
73466 2001-01-20  Jim Meyering  <meyering@lucent.com>
73467
73468         Be sure that headers are checked before used in code compiled
73469         for the type checks.
73470         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
73471         In place of that, invoke jm_CHECK_ALL_TYPES.
73472         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
73473         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
73474         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
73475         The check for ssize_t was mistakenly run before the test for unistd.h.
73476
73477         The configure-time check for stdbool.h was missing.
73478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
73479         (jm_PREREQ_HASH): New function.
73480
73481 2001-01-17  Jim Meyering  <meyering@lucent.com>
73482
73483         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
73484         for autoconf-2.49c.
73485         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
73486
73487 2001-01-16  Jim Meyering  <meyering@lucent.com>
73488
73489         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
73490         From Bruno Haible.
73491
73492 2001-01-14  Jim Meyering  <meyering@lucent.com>
73493
73494         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
73495         foo and bar.  Create conftestdir/ in the script, not in the C code.
73496         Remove directories in the script, not in the C code.
73497         Remove conftestdir{,2} before trying to create the directory.
73498         Make the entire configure script fail if the mkdir fails.
73499
73500 2001-01-14  Jim Meyering  <meyering@lucent.com>
73501
73502         * lib/rename.c: New file.  From Volker Borchert.
73503         Include stdlib.h, string.h or strings.h, and xalloc.h.
73504         Use strip_trailing_slashes rather than open-coding it.
73505
73506 2001-01-03  Paul Eggert  <eggert@twinsun.com>
73507
73508         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
73509
73510 2001-01-03  Jim Meyering  <meyering@lucent.com>
73511
73512         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
73513         of local `inptr' to avoid warning with some system declarations of
73514         iconv.
73515
73516 2001-01-02  Volker Borchert  <bt@teknon.de>
73517
73518         * m4/rename.m4: New file.
73519         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
73520
73521 2001-01-01  Jim Meyering  <meyering@lucent.com>
73522
73523         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
73524         even on systems with utmpx.h.  It's necessary for the declaration of
73525         utmp's ut_user member.  Reported by Andreas Jaeger.
73526
73527         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
73528         available. They are required for the declarations of getgrgid and
73529         getpwuid resp.
73530         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
73531         Reported by Andreas Jaeger.
73532
73533 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
73534
73535         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
73536         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
73537         so `make install' also works in VPATH builds.
73538
73539 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
73540
73541         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
73542         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
73543         can be used in subdirectories.
73544
73545 2000-12-29  Paul Eggert  <eggert@twinsun.com>
73546
73547         * lib/modechange.c: Do not assume that mode_t uses the
73548         traditional octal encoding.  E.g. "chmod 1 FOO" should set
73549         the other-execute bit of FOO even if S_IXOTH != 1.
73550
73551         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
73552         WOTH, XOTH, ALLM): New macros.
73553         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
73554          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
73555         Use them.
73556         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
73557         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
73558         (mode_compile):
73559         No need to use uintmax_t; unsigned long is long enough.
73560         Don't bother to get suffix since we don't use it.
73561
73562 2000-12-26  Jim Meyering  <meyering@lucent.com>
73563
73564         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
73565         better with autoheader.
73566
73567 2000-12-24  Jim Meyering  <meyering@lucent.com>
73568
73569         * lib/hash.c (is_prime): Return explicit boolean values.
73570         (hash_get_first): Return NULL to appease Irix5.6's 89.
73571         Reported by Nelson Beebe.
73572
73573 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
73574
73575         * lib/localcharset.c (locale_charset): Add support for Win32.
73576
73577 2000-12-18  Paul Eggert  <eggert@twinsun.com>
73578
73579         * lib/physmem.h, lib/physmem.c: New files.
73580
73581         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
73582         (noinst_HEADERS): Add physmem.h.
73583
73584         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
73585         't' for compatibility with Solaris 8 sort.
73586
73587 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
73588
73589         * lib/config.charset: Add support for BeOS.
73590
73591 2000-12-17  Jim Meyering  <meyering@lucent.com>
73592
73593         * m4/dos.m4 (jm_AC_DOS): New file and macro.
73594         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
73595
73596 2000-12-16  Jim Meyering  <meyering@lucent.com>
73597
73598         This bug had a serious impact on chown: `chown N:M FILE' (for integer
73599         N and M) would have treated it like `chown N:N FILE'.
73600
73601         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
73602
73603 2000-12-16  Jim Meyering  <meyering@lucent.com>
73604
73605         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
73606         SHELLS_FILE to a file name that's useful on djgpp systems.
73607         Include stdlib.h.
73608         (ADDITIONAL_DEFAULT_SHELLS): Define.
73609         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
73610         Based mostly on a patch from Prashant TR.
73611
73612 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
73613
73614         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
73615         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
73616         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
73617
73618 2000-12-08  Andreas Schwab  <schwab@suse.de>
73619
73620         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
73621         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
73622
73623 2000-12-07  Jim Meyering  <meyering@lucent.com>
73624
73625         * lib/stripslash.c (ISSLASH): Define.
73626         (strip_trailing_slashes): Use ISSLASH rather than comparing against
73627         `/'.
73628         From Prashant TR.
73629
73630         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
73631         (dir_name_r): Declare this function as static.
73632         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
73633         manifest itself on a name containing a mix of slashes and
73634         backslashes.
73635         Make this function work with names starting with a DOS-style
73636         drive letter and colon prefix.
73637         (dir_name): Append `.' if necessary.
73638         Based mostly on patches from Prashant TR and Eli Zaretskii.
73639
73640         * lib/dirname.h (dir_name_r): Remove prototype.
73641
73642 2000-12-06  Paul Eggert  <eggert@twinsun.com>
73643
73644         * m4/off_t-format.m4: Remove this file.
73645         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
73646
73647 2000-12-06  Jim Meyering  <meyering@lucent.com>
73648
73649         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
73650         replacement strtoull, we may well need the replacement strtoul, too.
73651         Check for declarations of strtoul and strtoull.
73652         Check for strtol.  Mainly as a cue to cause automake to include
73653         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
73654         Check for limits.h -- strtol.c needs it.
73655
73656 2000-12-05  Jim Meyering  <meyering@lucent.com>
73657
73658         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
73659
73660 2000-12-04  Jim Meyering  <meyering@lucent.com>
73661
73662         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
73663         Also include memory.h, stdlib.h, unistd.h if appropriate.
73664         Reported by Andreas Jaeger (conflicting declaration of malloc).
73665
73666 2000-12-02  Jim Meyering  <meyering@lucent.com>
73667
73668         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
73669         * m4/jm-macros.m4 (jm_MACROS): require it.
73670
73671 2000-12-02  Jim Meyering  <meyering@lucent.com>
73672
73673         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
73674
73675 2000-12-01  Paul Eggert  <eggert@twinsun.com>
73676
73677         * lib/memrchr.c: Include <config.h> before any system include file.
73678
73679 2000-11-30  Jim Meyering  <meyering@lucent.com>
73680
73681         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
73682
73683 2000-11-30  Jim Meyering  <meyering@lucent.com>
73684
73685         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
73686
73687 2000-11-29  Paul Eggert  <eggert@twinsun.com>
73688
73689         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
73690
73691 2000-11-26  Jim Meyering  <meyering@lucent.com>
73692
73693         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
73694
73695 2000-11-22  Paul Eggert  <eggert@twinsun.com>
73696
73697         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
73698         size of (size_t) -1; it's not portable.
73699
73700 2000-11-17  Jim Meyering  <meyering@lucent.com>
73701
73702         * lib/strstr.c: Update from GNU libc.
73703
73704 2000-11-17  Akim Demaille  <akim@epita.fr>
73705
73706         * lib/obstack.h: Formatting changes.
73707         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
73708         prevent type checking.
73709         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73710         cast the value to (void *): assigning a `foo *' to a `void *'
73711         variable is valid.
73712         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73713
73714 2000-11-16  Jim Meyering  <meyering@lucent.com>
73715
73716         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73717
73718 2000-11-11  Jim Meyering  <meyering@lucent.com>
73719
73720         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73721
73722 2000-11-10  Jim Meyering  <meyering@lucent.com>
73723
73724         * lib/obstack.h: Update from GNU libc.
73725         * lib/obstack.c: Likewise.
73726
73727 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73728
73729         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73730
73731 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73732
73733         * lib/getusershell.c (setusershell): Use rewind rather than
73734         fseek/fseeko, to avoid configuration hassles with fseeko.
73735         Don't bother opening SHELLS_FILE if shellstream is NULL;
73736         it's not necessary.
73737
73738 2000-11-05  Jim Meyering  <meyering@lucent.com>
73739
73740         * lib/makepath.h (make_dir): Declare.
73741         * lib/makepath.c (make_dir): Remove `static' attribute.
73742         Tweak a comment.
73743
73744 2000-11-04  Jim Meyering  <meyering@lucent.com>
73745
73746         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73747
73748 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73749
73750         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73751         last one in a bucket, advance to the next bucket.
73752
73753 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73754
73755         * lib/fnmatch.c: Do not comment out all the code if we are using
73756         the GNU C library, because in some cases we are replacing buggy
73757         code in the GNU C library itself.
73758
73759 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73760
73761         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73762         (regex_compile): Catch bogus \(\1\).
73763
73764 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73765
73766         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73767         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73768         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73769
73770 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73771
73772         * lib/error.h, getline.h, modechange.h:
73773         Remove "2000" from Copyright line, as the file hasn't been
73774         changed this year other than in the copyright notice.
73775
73776         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73777         was changed this year.
73778
73779 2000-10-29  Jim Meyering  <meyering@lucent.com>
73780
73781         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73782         renaming.
73783         * m4/ls-mntd-fs.m4: Likewise
73784
73785 2000-10-29  Jim Meyering  <meyering@lucent.com>
73786
73787         * lib/xstat.in: Fix grammar in comment.
73788
73789 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73790
73791         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73792         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73793         doesn't define __restrict_arr.
73794
73795 2000-10-28  Jim Meyering  <meyering@lucent.com>
73796
73797         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73798         (jm_PREREQ_MEMCHR): New function.
73799
73800 2000-10-28  Jim Meyering  <meyering@lucent.com>
73801
73802         * lib/memchr.c: Update from libc.
73803         Adjust for portability:
73804         [HAVE_STDLIB_H]: Include stdlib.h.
73805         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73806         Undef __memchr, too.
73807         [!weak_alias]: Define __memchr to memchr.
73808
73809         * lib/regex.c: Update from libc.
73810         * lib/regex.h: Likewise.
73811         * lib/getopt1.c: Likewise.
73812         * lib/memcmp.c: Likewise.
73813
73814         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73815         Avoid using fseek, when possible -- it's broken by design.
73816         Patch by Ulrich Drepper.
73817
73818 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73819
73820         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73821         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73822         Giving in to popular pressure to shut up the compiler with casts.
73823
73824 2000-10-26  Jim Meyering  <meyering@lucent.com>
73825
73826         * lib/strftime.c: Update from libc.
73827
73828 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73829
73830         * regex.c: More `unsigned char' -> `re_char' changes.
73831         Also change several `int' into `re_wchar_t'.
73832         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73833         (PUSH_FAILURE_POINTER): Don't cast any more.
73834         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73835         We want GCC to complain, since this piece of code makes
73836         re_match non-reentrant, which *should* be fixed.
73837         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73838         (EXTEND_BUFFER): Use RETALLOC.
73839         (SET_LIST_BIT): Don't cast.
73840         (re_wchar_t): New type.
73841         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73842         that those two functions will always properly return.
73843         (IMMEDIATE_QUIT_CHECK): Cast to void.
73844         (analyse_first): Use recursion rather than an explicit stack.
73845         (re_compile_fastmap): Can't fail anymore.
73846         (re_search_2): Don't check re_compile_fastmap for failure.
73847         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73848         Now also sets the new value (passed in a new argument).
73849         (re_match_2_internal): Use it.
73850         Also, use a new var `reg' of type size_t when looping through regs
73851         rather than reuse the inappropriate `mcnt'.
73852
73853 2000-10-25  Jim Meyering  <meyering@lucent.com>
73854
73855         * lib/obstack.c: Update from libc.
73856
73857 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73858
73859         * regex.c (regex_compile): Change the way of handling a range from
73860         a char less than 256 to a char not less than 256.
73861
73862 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73863
73864         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73865         NT-Emacs only.
73866         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73867         so that re_search functions only quit when callers expect them to.
73868
73869 2000-10-23  Jim Meyering  <meyering@lucent.com>
73870
73871         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73872         wrong.  That set_locale call must not have any side effects.
73873         From Paul Eggert.
73874
73875 2000-10-22  Jim Meyering  <meyering@lucent.com>
73876
73877         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73878         [CYCLIC]: Remove now-unused definition.
73879
73880         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73881         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73882         Suggestion from Ulrich Drepper.
73883
73884 2000-10-21  Jim Meyering  <meyering@lucent.com>
73885
73886         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73887         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73889
73890 2000-10-21  Jim Meyering  <meyering@lucent.com>
73891
73892         * lib/dirname.c (memrchr): Declare if necessary.
73893         (dir_name): Remove the restriction that there be no
73894         trailing slashes.  Now, this code skips past them, effectively
73895         ignoring them.
73896         [TEST_DIRNAME] (main): New unit tests.
73897
73898         * lib/memrchr.c: New file from GNU libc.
73899         Undef __memrchr, too.
73900         [!weak_alias]: Define __memrchr to memrchr.
73901         Guard weak_alias use with `#ifdef weak_alias'.
73902
73903 2000-10-21  Jim Meyering  <meyering@lucent.com>
73904
73905         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73906         (dir_name): Use dir_name_r.
73907         * lib/dirname.h (dir_name_r): Declare it.
73908
73909 2000-10-17  Jim Meyering  <meyering@lucent.com>
73910
73911         * lib/quote.h (PARAMS): Define and use.
73912         Reported by Akim Demaille.
73913
73914         * lib/getopt.c: Update from libc.
73915
73916 2000-10-16  Jim Meyering  <meyering@lucent.com>
73917
73918         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73919         setlocale.
73920         From Jan Fedak.
73921
73922 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73923
73924         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73925
73926 2000-09-25  Jim Meyering  <meyering@lucent.com>
73927
73928         * lib/md5.h (rol): Define (from GnuPG).
73929
73930         * lib/sha.c: Give credit (GnuPG) where due.
73931         (M): Use rol rather than open-coding it.
73932         Add a FIXME comment.
73933
73934 2000-09-21  Jim Meyering  <meyering@lucent.com>
73935
73936         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73937         Reported by Michael Stone.
73938
73939 2000-09-20  Jim Meyering  <meyering@lucent.com>
73940
73941         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73942         (noinst_HEADERS): Add sha.h.
73943         Based on code from Scott G. Miller and from GnuPG.
73944
73945 2000-09-18  Jim Meyering  <meyering@lucent.com>
73946
73947         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73948         LIBS. Otherwise, everyone ends up linking with -lelf for some
73949         configurations.
73950         Reported by Mike Stone.
73951
73952 2000-09-15  Jim Meyering  <meyering@lucent.com>
73953
73954         * lib/regex.c: Update from libc.
73955
73956 2000-09-10  Jim Meyering  <meyering@lucent.com>
73957
73958         * lib/getopt.c (_getopt_internal): Update from glibc.
73959
73960 2000-09-09  Jim Meyering  <meyering@lucent.com>
73961
73962         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73963         think it should be used as a general replacement for isascii.
73964         * lib/fnmatch.c: Likewise.
73965         * lib/mbswidth.c: Likewise
73966         * lib/regex.c: Likewise.
73967
73968         Don't use atoi.
73969         * lib/userspec.c: Include sys/param.h and limits.h.
73970         Include xstrtol.h.
73971         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73972         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
73973         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
73974         UID, GID.  Check range.
73975
73976 2000-09-06  Jim Meyering  <meyering@lucent.com>
73977
73978         * lib/getopt.c (_getopt_internal): Update from glibc.
73979
73980 2000-08-30  Jim Meyering  <meyering@lucent.com>
73981
73982         * lib/strftime.c: Merge in changes from GNU libc.
73983
73984 2000-08-26  Jim Meyering  <meyering@lucent.com>
73985
73986         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
73987         * m4/fpending.m4: New file.
73988
73989 2000-08-26  Jim Meyering  <meyering@lucent.com>
73990
73991         * lib/closeout.c: Include "__fpending.h".
73992         (close_stdout_status): Return right away if there's nothing to flush.
73993
73994         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
73995         * lib/__fpending.c: New file.
73996         * lib/__fpending.h: New file.
73997
73998 2000-08-20  Jim Meyering  <meyering@lucent.com>
73999
74000         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
74001         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
74002         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
74003
74004 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
74005
74006         Improve fileutils installation on systems where running
74007         programs (like install) can't be unlinked.
74008         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
74009         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
74010
74011 2000-08-07  Paul Eggert  <eggert@twinsun.com>
74012
74013         Standardize on "memory exhausted" instead of "Memory exhausted"
74014         or "virtual memory exhausted".
74015         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
74016         "virtual memory exhausted".
74017         * lib/same.c (same_name): Invoke xalloc_die instead of printing
74018         our own message.
74019         * lib/userspec.c (parse_user_spec): Likewise.
74020         * lib/bumpalloc.h: comment fix
74021         * lib/same.c, userspec.c: Include xalloc.h.
74022
74023         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
74024         not char *const and pointing to a constant array.
74025         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
74026         (xrealloc): Comment fix.
74027
74028         * lib/userspec.c (parse_user_spec):
74029         Don't translate a message until just before returning,
74030         to avoid unnecessary translation.
74031
74032 2000-08-07  Jim Meyering  <meyering@lucent.com>
74033
74034         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
74035         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
74036         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
74037         getgroups.c, gethostname.c, getopt.h, group-member.c,
74038         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
74039         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
74040         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
74041         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
74042         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
74043         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
74044         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
74045         yesno.c: Back out Copyright date changes for each file with no change
74046         this year.  This eases coordination with other programs using the same
74047         source code modules.  From Paul Eggert.
74048
74049 2000-08-06  Paul Eggert  <eggert@twinsun.com>
74050
74051         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
74052         not char, for compatibility with glibc 2.1.3 strftime.c.
74053
74054 2000-08-03  Greg McGary  <greg@mcgary.org>
74055
74056         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
74057         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
74058         (EXTEND_BUFFER): Use them.
74059
74060 2000-08-01  Jim Meyering  <meyering@lucent.com>
74061
74062         * lib/dirname.c (ISSLASH): Define.
74063         (BACKSLASH_IS_PATH_SEPARATOR): Define.
74064         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
74065         both `\' and `/' may be use as path separators.
74066         Based on a patch from Prashant TR.
74067
74068 2000-07-31  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/quotearg.c (quotearg_n_options): Don't make the initial
74071         slot vector a constant, since it might get modified.
74072
74073 2000-07-31  Jim Meyering  <meyering@lucent.com>
74074
74075         * lib/xmalloc.c: Use `virtual memory exhausted', not
74076         `Memory exhausted'.
74077         * lib/obstack.c (print_and_abort): Likewise.
74078
74079 2000-07-30  Paul Eggert  <eggert@twinsun.com>
74080
74081         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
74082         buffer, so that the caller can always quote one small
74083         component of a "memory exhausted" message in slot 0.
74084         From a suggestion by Jim Meyering.
74085
74086 2000-07-30  Jim Meyering  <meyering@lucent.com>
74087
74088         * lib/makepath.c (make_path): Quote the other instance, too.
74089
74090         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
74091         (STATIC_BUF_SIZE): Define.
74092         (quotearg_n_options): Use only statically allocated storage when
74093         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
74094         than STATIC_BUF_SIZE.
74095
74096 2000-07-29  Jim Meyering  <meyering@lucent.com>
74097
74098         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
74099         * lib/dirname.c (dir_name): Likewise.
74100
74101         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
74102         `/'.
74103
74104         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
74105         (dir_name): Assert that there are no trailing slashes.
74106
74107 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
74108
74109         * lib/mbswidth.h (mbswidth): Add a flags argument.
74110         (mbswidth): New declaration.
74111         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
74112         * lib/mbswidth.c (mbswidth): Add a flags argument.
74113         (mbsnwidth): New function.
74114
74115 2000-07-24  Jim Meyering  <meyering@lucent.com>
74116
74117         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
74118
74119 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74120
74121         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
74122
74123 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74124
74125         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
74126         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
74127         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
74128         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
74129         invoke multibyte primitives.
74130
74131 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74132
74133         * lib/quotearg.c:
74134         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
74135         so that mbstate_t is always defined.
74136
74137         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
74138         be 1 in at least one GCC installation, and this configuration
74139         error is likely to be common.  Ignoring MB_LEN_MAX hurts
74140         performance on hosts that have mbrtowc but have only unibyte
74141         locales, but I assume these hosts are rare.
74142
74143 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74144
74145         * lib/mbswidth.c (_XOPEN_SOURCE):
74146         Don't define; this causes problems on Solaris 7.
74147         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
74148
74149 2000-07-23  Jim Meyering  <meyering@lucent.com>
74150
74151         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
74152         too: getgrgid, getpwuid, getuid.
74153
74154 2000-07-23  Jim Meyering  <meyering@lucent.com>
74155
74156         * lib/basename.c (base_name): Add an assertion.
74157
74158 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
74159
74160         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
74161         shadow its mbsinit function.
74162
74163 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74164
74165         * lib/mbswidth.h: New file.
74166         * lib/mbswidth.c: New file.
74167         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
74168         (noinst_HEADERS): Add mbswidth.h.
74169
74170 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74171
74172         * lib/config.charset: Add support for FreeBSD. Improve support for
74173         HP-UX and IRIX 6.
74174
74175 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
74176
74177         * m4/mbswidth.m4: New file.
74178         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
74179
74180 2000-07-15  Jim Meyering  <meyering@lucent.com>
74181
74182         * lib/makepath.c: Include quote.h.
74183         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
74184         corresponding argument in a `quote (...)' call.
74185         Give better diagnostics.
74186
74187         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
74188         (noinst_HEADERS): Add quote.h.
74189
74190         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
74191         from tar's src/misc.c.
74192         * lib/quote.h: New file.  Prototypes for same.
74193
74194 2000-07-14  Paul Eggert  <eggert@twinsun.com>
74195
74196         From a suggestion by Bruno Haible.
74197         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
74198         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
74199         to decide whether to define the BeOS workaround macro;
74200         this adjusts to the change to AC_MBSTATE_T.
74201
74202 2000-07-14  Jim Meyering  <meyering@lucent.com>
74203
74204         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
74205         jm_AC_TYPE_UINTMAX_T.
74206
74207 2000-07-13  Paul Eggert  <eggert@twinsun.com>
74208
74209         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
74210
74211         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
74212         quotearg_buffer_restyled): Add support for
74213         clocale_quoting_style.  Undo previous change to
74214         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
74215         and "{RIGHT QUOTATION MARK}" msgids.
74216
74217 2000-07-10  Paul Eggert  <eggert@twinsun.com>
74218
74219         From a suggestion by Bruno Haible.
74220         * m4/mbstate_t.m4 (AC_MBSTATE_T):
74221         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
74222         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
74223         and mbstate_t, to a single-part test that simply defines mbstate_t.
74224         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
74225         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
74226
74227 2000-07-10  Jim Meyering  <meyering@lucent.com>
74228
74229         * m4/strerror_r.m4: Mirror the correction made in autoconf.
74230
74231         * m4/gnu-source.m4: Output to confdefs.h directly.
74232         Suggestion from Akim Demaille.
74233
74234 2000-07-09  Paul Eggert  <eggert@twinsun.com>
74235
74236         The old behavior of quoting `like this' doesn't look good with
74237         newer, ISO-style fonts.  See:
74238         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
74239
74240         Instead, quote "like this" by default.  Let the translator
74241         tailor the locale-specific quoting behavior by providing
74242         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
74243
74244         * lib/quotearg.c (N_): New macro.
74245         (gettext_default): New function.
74246         (quotearg_buffer_restyled): Use
74247         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
74248         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
74249
74250 2000-07-09  Jim Meyering  <meyering@lucent.com>
74251
74252         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
74253         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
74254
74255         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
74256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
74257
74258 2000-07-09  Jim Meyering  <meyering@lucent.com>
74259
74260         * lib/Most files: Update copyright dates to include 2000.
74261
74262 2000-07-08  Jim Meyering  <meyering@lucent.com>
74263
74264         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
74265         if not defined.
74266         (xgethostname): Remove now-unnecessary #ifdef.
74267         Move declaration of `err' into loop where it's used.
74268
74269 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74270         and Bruno Haible  <haible@clisp.cons.org>
74271
74272         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
74273         only if the test for an object-type mbstate_t fails.  This
74274         prevents us from mistakenly reporting that mbstate_t is a
74275         system object type after we "#define mbstate_t int" to work
74276         around its lack.
74277
74278 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74279         and Bruno Haible  <haible@clisp.cons.org>
74280
74281         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
74282
74283 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74284
74285         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
74286         to strerror_r.
74287         Include <ctype.h> for use of isalpha.
74288
74289 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74290
74291         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
74292         by allocating a larger buffer. Test the gethostname return value for
74293         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
74294         returns an error and ENAMETOOLONG isn't defined.
74295
74296 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74297
74298         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
74299         dimension.
74300
74301 2000-07-04  Jim Meyering  <meyering@lucent.com>
74302
74303         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
74304         of the deprecated AC_CHECKING.
74305
74306 2000-07-04  Jim Meyering  <meyering@lucent.com>
74307
74308         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
74309         Reported by Bruno Haible.
74310
74311 2000-07-04  Jim Meyering  <meyering@lucent.com>
74312
74313         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
74314         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
74315         lacks mbrtowc.
74316
74317 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74318
74319         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
74320         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
74321
74322 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74323         and Bruno Haible  <haible@clisp.cons.org>
74324
74325         * lib/quotearg.c (mbrtowc):
74326         Assign to *pwc, and return 1 only if result is nonzero.
74327         (iswprint): Use ISPRINT when substituting our own mbrtowc.
74328
74329 2000-07-03  Jim Meyering  <meyering@lucent.com>
74330
74331         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
74332
74333 2000-07-03  Jim Meyering  <meyering@lucent.com>
74334
74335         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
74336         This is necessary to get a definition of e.g., UTMP_FILE on
74337         HP-UX 10.20.
74338         From Bob Proulx.
74339
74340 2000-07-02  Jim Meyering  <meyering@lucent.com>
74341
74342         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
74343
74344         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
74345         AC_LIBOBJ(function_name).
74346         * m4/chown.m4: Likewise.
74347         * m4/fnmatch.m4: Likewise.
74348         * m4/ftruncate.m4: Likewise.
74349         * m4/getgroups.m4: Likewise.
74350         * m4/getline.m4: Likewise.
74351         * m4/group-member.m4: Likewise.
74352         * m4/jm-macros.m4: Likewise.
74353         * m4/lstat.m4: Likewise.
74354         * m4/malloc.m4: Likewise.
74355         * m4/memcmp.m4: Likewise.
74356         * m4/nanosleep.m4: Likewise.
74357         * m4/putenv.m4: Likewise.
74358         * m4/realloc.m4: Likewise.
74359         * m4/regex.m4: Likewise.
74360         * m4/stat.m4: Likewise.
74361         * m4/strftime.m4: Likewise.
74362
74363 2000-07-02  Jim Meyering  <meyering@lucent.com>
74364
74365         * lib/quotearg.c (mbstate_t): Don't define here.
74366
74367 2000-07-02  Jim Meyering  <meyering@lucent.com>
74368
74369         * lib/nanosleep.c (SIGCONT): Define if not already defined.
74370
74371 2000-07-01  Jim Meyering  <meyering@lucent.com>
74372
74373         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
74374
74375 2000-07-01  Jim Meyering  <meyering@lucent.com>
74376
74377         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
74378         problem.
74379
74380 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74381
74382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
74383         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
74384
74385 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74386
74387         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
74388         per change in ../m4/ls-mntd-fs.m4.
74389         (read_filesystem_list): Ignore symbolic links.
74390
74391 2000-06-29  Jim Meyering  <meyering@lucent.com>
74392
74393         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
74394         for declaration of strcmp.
74395
74396         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
74397
74398         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
74399         Avoid warning by casting result to `char *' to remove `const'.
74400
74401 2000-06-28  Jim Meyering  <meyering@lucent.com>
74402
74403         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
74404         included by quotearg.c, for which we perform this test.  From
74405         Bruno Haible.
74406
74407 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74408
74409         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
74410         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
74411         <utmpx.h> exists, put readutmp.o into LIBOBJS.
74412
74413 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74414
74415         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
74416
74417 2000-06-26  Paul Eggert  <eggert@twinsun.com>
74418
74419         savedir now sets errno on failure and invokes xmalloc to get memory.
74420         Fix a couple of other minor bugs while we're at it.
74421
74422         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
74423         (NAMLEN): Remove macro.
74424         (malloc, realloc): Remove decls.
74425         (stpcpy): Likewise.
74426         ("xalloc.h"): Include.
74427         (NAME_SIZE_DEFAULT): New macro.
74428         (savedir): Use xmalloc / xrealloc to allocate memory.
74429         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
74430         Skip "" directory entries.
74431         Use strlen to calculate directory entry length, since the old method
74432         is rarely used these days and isn't worth supporting.
74433         Don't use a pointer after freeing it.
74434         Check for integer overflow when calculating allocation size.
74435         Use memcpy to copy entries, instead of stpcpy.
74436         Set errno properly when returning NULL.
74437         Check for readdir error.
74438
74439 2000-06-26  Jim Meyering  <meyering@lucent.com>
74440
74441         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
74442
74443 2000-06-25  Jim Meyering  <meyering@lucent.com>
74444
74445         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
74446         Linux header bug when _XOPEN_SOURCE is defined to 500.
74447
74448 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74449
74450         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
74451         deficiency.
74452
74453 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74454
74455         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
74456         Include xalloc.h.
74457         Don't include <stdlib.h>.  Don't declare malloc, realloc.
74458
74459 2000-06-24  Jim Meyering  <meyering@lucent.com>
74460
74461         * m4/strerror_r.m4: Revive this file -- to try out an experimental
74462         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
74463         for which strerror does return char*, but which lacks a conveniently
74464         accessible declaration of the function.  If the compile-test says
74465         strerror_r doesn't work, then resort to a `run'-test that works on
74466         BeOS and segfaults on DEC Unix.
74467
74468 2000-06-24  Jim Meyering  <meyering@lucent.com>
74469
74470         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
74471
74472 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74473
74474         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
74475         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
74476
74477 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74478
74479         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
74480         (mbrtowc, mbstate_t): Define substitutes if
74481         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
74482         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
74483         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
74484
74485 2000-06-23  Jim Meyering  <meyering@lucent.com>
74486
74487         * m4/afs.m4: Add missing AC_MSG_RESULT.
74488         Reported by Bruno Haible.
74489
74490         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
74491         Suggestion from Bruno Haible.
74492
74493 2000-06-23  Jim Meyering  <meyering@lucent.com>
74494
74495         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
74496
74497 2000-06-21  Jim Meyering  <meyering@lucent.com>
74498
74499         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
74500
74501 2000-06-21  Jim Meyering  <meyering@lucent.com>
74502
74503         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
74504         (noinst_HEADERS): Add getstr.h.
74505
74506         * lib/getline.c (getstr): Move into a separate file.
74507         * lib/getstr.c (getstr): New file, extracted from getline.c, with
74508         the following changes: new parameter, delim2; both delim[12]
74509         parameters have type `int', not `char'.  The latter would lose
74510         with 8-bit delimiters.
74511         * lib/getstr.h: New file.
74512
74513 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74514
74515         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
74516         than 1024, return a memory chunk of least possible size, instead
74517         of size PATH_MAX + 2. In the loop, increment the size proportionally.
74518         Use free/xmalloc instead of xrealloc to avoid copying for very long
74519         paths.
74520
74521 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74522
74523         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
74524         the empty string.
74525
74526 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74527
74528         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
74529         address, not strdup.  Include <stdlib.h> and don't declare free().
74530
74531 2000-06-19  Jim Meyering  <meyering@lucent.com>
74532
74533         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
74534
74535 2000-06-18  Jim Meyering  <meyering@lucent.com>
74536
74537         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
74538
74539         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
74540         `checking whether...' message to be consistent with that of the
74541         lstat test.
74542
74543 2000-06-18  Jim Meyering  <meyering@lucent.com>
74544
74545         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
74546         Besides, these days every porting target provides a mkdir function.
74547
74548         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
74549         needed. (this snippet comes from src/system.h).
74550
74551 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
74552
74553         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
74554
74555 2000-06-15  Paul Eggert  <eggert@twinsun.com>
74556
74557         * lib/human.c (adjust_value): New function.
74558         (human_readable_inexact): Apply rounding style even when
74559         printing approximate values.
74560
74561 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74562
74563         * lib/human.c (human_readable_inexact): Allow an input block
74564         size that is not a multiple of the output block size, and vice versa.
74565         Reported by Piergiorgio Sartor.
74566
74567 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74568
74569         * lib/getdate.y (get_date): Apply relative times after time
74570         zone indicator, not before.  Reported by Todd A. Jacobs.
74571
74572 2000-06-13  Jim Meyering  <meyering@lucent.com>
74573
74574         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
74575
74576         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
74577
74578 2000-06-12  Paul Eggert  <eggert@twinsun.com>
74579
74580         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
74581
74582 2000-06-12  Jim Meyering  <meyering@lucent.com>
74583
74584         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
74585         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
74586         optional argument.
74587         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
74588         the optional argument, `lib'.
74589
74590 2000-06-08  Jim Meyering  <meyering@lucent.com>
74591
74592         * m4/largefile.m4: Remove file (now that it's part of autoconf).
74593
74594 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74595
74596         Rewrite largefile configuration so that we don't need to run
74597         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
74598         AC_CANONICAL_HOST in configure.in -- jmm]
74599
74600         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
74601         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
74602         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
74603         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
74604         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
74605         All uses changed.
74606         Instead of inspecting the output of getconf, try to compile the
74607         test program without and with the macro definition.
74608         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
74609         for getconf.  Instead, check for the needed flags by compiling
74610         test programs.
74611
74612 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74613
74614         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
74615
74616 2000-06-04  Jim Meyering  <meyering@lucent.com>
74617
74618         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
74619         SunOS 4.1.4 for which gid_t is an unsigned type.
74620
74621 2000-06-03  Jim Meyering  <meyering@lucent.com>
74622
74623         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
74624         now that autoconf requires that.
74625
74626         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
74627         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
74628         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
74629
74630 2000-06-03  Jim Meyering  <meyering@lucent.com>
74631
74632         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
74633
74634 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74635
74636         * m4/glibc21.m4: New file.
74637         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
74638
74639 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74640
74641         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
74642         newer, don't install charset.alias.
74643         * lib/config.charset: Change the Linux/glibc rules so they become empty
74644         on glibc-2.1 or newer.
74645
74646 2000-06-02  Jim Meyering  <meyering@lucent.com>
74647
74648         * lib/mountlist.c: Back out last change.  Instead, do this...
74649         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
74650         me_dummy member using the same `ignore'-testing code.
74651         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
74652         fs_type strings.
74653         From Mark D. Roth.
74654
74655 2000-05-29  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
74658         mounts with the `ignore' attribute.  Based on a patch from
74659         Mark D. Roth.
74660
74661 2000-05-28  Jim Meyering  <meyering@lucent.com>
74662
74663         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
74664         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74665         * m4/stat.m4: Likewise.
74666         * m4/lstat.m4: Likewise.
74667         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
74668
74669         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
74670         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
74671
74672 2000-05-26  Jim Meyering  <meyering@lucent.com>
74673
74674         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
74675
74676 2000-05-24  Jim Meyering  <meyering@lucent.com>
74677
74678         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
74679         autoconf requires that.
74680         * m4/lib-check.m4: Likewise.
74681         * m4/jm-macros.m4: Likewise.
74682         * m4/strftime.m4: Likewise.
74683
74684         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
74685         AC_CHECK_DECLS, now that autoconf requires that.
74686
74687 2000-05-22  Jim Meyering  <meyering@lucent.com>
74688
74689         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74690         * m4/lstat.m4: Likewise.
74691
74692 2000-05-22  Jim Meyering  <meyering@lucent.com>
74693
74694         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
74695
74696 2000-05-20  Jim Meyering  <meyering@lucent.com>
74697
74698         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
74699         (jm_PREREQ): Use it.
74700
74701 2000-05-18  Jim Meyering  <meyering@lucent.com>
74702
74703         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
74704         back, too, since it may have been modified by allocate_entry.
74705         (hash_delete): Rewrite to use neither the assignment operator
74706         nor the comma operator in an if-expression.
74707
74708 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74709
74710         * lib/closeout.c:
74711         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74712         Remove; no longer needed.
74713         "quotearg.h": Add include.
74714         (file_name): Do not bother to explicitly initialize to NULL; it's less
74715         efficient on some hosts.
74716         (close_stdout_status): Remove test as to whether stdout was already
74717         closed; it breaks for the case "echo x | sort >&-".
74718         Quote file name colons.
74719         Do not assume that _("write error") lacks format strings.
74720
74721 2000-05-15  Jim Meyering  <meyering@lucent.com>
74722
74723         * lib/version-etc.c (version_etc_copyright): Update the copyright
74724         string used in all --version output.
74725
74726 2000-05-14  Jim Meyering  <meyering@lucent.com>
74727
74728         * lib/closeout.c (close_stdout_set_file_name): New function.
74729         (close_stdout_status): Use new file-scoped global.
74730         Return right away if fstat says the stdout file descriptor is invalid.
74731         * lib/closeout.h (close_stdout_set_file_name): Declare.
74732
74733 2000-05-10  Jim Meyering  <meyering@lucent.com>
74734
74735         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74736         (close_stdout_set_status): New function.
74737         * lib/closeout.h (close_stdout_set_status): Declare.
74738
74739 2000-05-09  Jim Meyering  <meyering@lucent.com>
74740
74741         * m4/gettext.m4: Rename this...
74742         * m4/libintl.m4: ...to this.
74743
74744 2000-05-08  Jim Meyering  <meyering@lucent.com>
74745
74746         * lib/long-options.c: Don't include closeout.h.
74747         (parse_long_options): Don't call close_stdout for --version.
74748
74749 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74750
74751         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74752         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74753         2.1.3 bug.  This avoids a clash when files like regex.c define
74754         _GNU_SOURCE.
74755
74756 2000-05-06  Jim Meyering  <meyering@lucent.com>
74757
74758         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74759         (AC_REPLACE_FUNCS): Add strnlen.
74760
74761         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74762         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74763
74764         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74765         AC_SEARCH_LIBS call for nanosleep.
74766         (LIB_NANOSLEEP): Set and AC_SUBST.
74767
74768 2000-05-06  Jim Meyering  <meyering@lucent.com>
74769
74770         * lib/strnlen.c: Undefine __strnlen and strnlen.
74771         [!weak_alias]: Define __strnlen to strnlen.
74772
74773         * lib/atexit.c: New file, from libiberty.
74774
74775 2000-05-06  Jim Meyering  <meyering@lucent.com>
74776
74777         * lib/closeout.c (close_stdout_status): Also check for errors on the
74778         stderr stream.
74779
74780 2000-05-05  Jim Meyering  <meyering@lucent.com>
74781
74782         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74783         AC_SEARCH_LIBS call for clock_gettime.
74784         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74785
74786         * m4/search-libs.m4: Update from autoconf.
74787
74788         su doesn't work on Solaris 2.6.
74789         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74790         <shadow.h>.  Reported by Dragos Harabor.
74791
74792 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74793
74794         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74795         memcpy instead of xmalloc, xrealloc, path_concat.
74796         (locale_charset): Treat empty environment variables as absent.
74797         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74798
74799 2000-05-04  Jim Meyering  <meyering@lucent.com>
74800
74801         * lib/getopt.c: Update from glibc.
74802         * lib/obstack.c: Likewise.
74803         * lib/obstack.h: Likewise.
74804         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74805         file
74806
74807         * lib/regex.h: Likewise.
74808         * lib/strndup.c: Likewise.
74809         * lib/strnlen.c: New file, from glibc.
74810
74811 2000-05-03  Jim Meyering  <meyering@lucent.com>
74812
74813         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74814
74815 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74816
74817         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74818         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74819         compile-time test, rather than inspecting host and OS, to
74820         decide whether to define _LARGEFILE_SOURCE.
74821
74822 2000-05-01  Jim Meyering  <meyering@lucent.com>
74823
74824         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74825
74826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74827         Based on a patch from Bruno Haible.
74828
74829 2000-05-01  Jim Meyering  <meyering@lucent.com>
74830
74831         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74832
74833 2000-04-29  Jim Meyering  <meyering@lucent.com>
74834
74835         * lib/path-concat.c: Declare strdup only if it's not defined.
74836         * lib/canon-host.c: Likewise.
74837
74838 2000-04-28  Jim Meyering  <meyering@lucent.com>
74839
74840         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74841         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74842         is included first, then limits.h is included by locale.h by libintl.h.
74843         From John David Anglin.
74844
74845 2000-04-25  Jim Meyering  <meyering@lucent.com>
74846
74847         * lib/makepath.c (S_IRWXUGO): Define.
74848         (make_path): Always perform explicit chmod if MODE specifies any
74849         of the `special' permission bits.  Prompted by a bug report against
74850         install from Mate Wierdl and Joost van Baal.
74851
74852 2000-04-18  Jim Meyering  <meyering@lucent.com>
74853
74854         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74855         (jm_PREREQ): Use it.
74856
74857 2000-04-18  Jim Meyering  <meyering@lucent.com>
74858
74859         * lib/README: New file.
74860
74861         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74862         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74863
74864 2000-04-17  Jim Meyering  <meyering@lucent.com>
74865
74866         Get it right :-)
74867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74868         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74869         Suggestion from Akim Demaille.
74870
74871 2000-04-17  Jim Meyering  <meyering@lucent.com>
74872
74873         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74874         the definition of it to rpl_strftime also defined-away the system's
74875         declaration.
74876
74877 2000-04-15  Jim Meyering  <meyering@lucent.com>
74878
74879         Use `C' to denote so-called `contiguous' files, the same way
74880         that tar does.
74881         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74882         (ftypelet): Use S_ISCTG.
74883         From Michael Deutschmann.
74884
74885 2000-04-14  Jim Meyering  <meyering@lucent.com>
74886
74887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74888         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74889         clobbered.
74890
74891 2000-04-14  Jim Meyering  <meyering@lucent.com>
74892
74893         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74894
74895 2000-04-13  Jim Meyering  <meyering@lucent.com>
74896
74897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74898         AH_VERBATIM to insert required #ifndef into config.h.in.
74899         Suggestion from Akim Demaille.
74900
74901 2000-04-12  Jim Meyering  <meyering@lucent.com>
74902
74903         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74904         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74905         Christian Krackowizer.
74906
74907         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74908         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74909         (AC_SYS_LARGEFILE): Require.
74910         (AM_C_PROTOTYPES): Require.
74911
74912 2000-04-08  Jim Meyering  <meyering@lucent.com>
74913
74914         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74915         names don't conflict.  Reported by Eli Zaretskii.
74916
74917 2000-04-07  Jim Meyering  <meyering@lucent.com>
74918
74919         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74920         sys/types.h, to work around system header problems on AIX 3.2.5.
74921         From Bruno Haible.
74922
74923 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74924
74925         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74926         bug.  Deal with the different error behavior of Irix iconv.
74927
74928 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74929
74930         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74931         IRIX if the installer said otherwise.
74932
74933 2000-04-05  Jim Meyering  <meyering@lucent.com>
74934
74935         Portability tweaks required for ultrix4.3.
74936         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74937         (jm_CHECK_DECLS): Add getutent to the list of functions.
74938         (_jm_DECL_HEADERS): Add utmpx.h.
74939         From John David Anglin.
74940
74941         * m4/strftime.m4: Back out the 2000-04-02 change.
74942         Instead of that change, simply undefine putenv in the test program.
74943
74944 2000-04-05  Jim Meyering  <meyering@lucent.com>
74945
74946         Portability tweaks required for ultrix4.3.
74947         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74948         getutent.
74949         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74950         * lib/canon-host.c: Declare strdup.
74951         * lib/path-concat.c: Likewise.
74952         From John David Anglin.
74953
74954 2000-04-04  Jim Meyering  <meyering@lucent.com>
74955
74956         Be more DOS 8.3-friendly.
74957         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74958         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74959         * lib/Makefile.am: Reflect renaming.
74960         Reported by Eli Zaretskii.
74961
74962         Use a temporary file name that won't clash with `charset.alias'
74963         in the DOS 8.3 name space.
74964         * lib/Makefile.am (charset_tmp): Define.
74965         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74966         (uninstall-local): Likewise.
74967         Reported by Eli Zaretskii.
74968
74969 2000-04-03  Jim Meyering  <meyering@lucent.com>
74970
74971         * m4/gettext.m4: Fix typo in comment.
74972
74973         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
74974         textutils/configure.in).  Suggestion from Paul Eggert.
74975         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
74976
74977 2000-04-02  Paul Eggert  <eggert@twinsun.com>
74978
74979         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
74980         variable in the shell rather than using putenv, which isn't
74981         portable.  This avoids the configure-time inter-test dependency
74982         on the potentially-renamed putenv function.
74983
74984 2000-03-30  Paul Eggert  <eggert@twinsun.com>
74985
74986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
74987         before checking struct stat.st_blksize, so that
74988         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
74989
74990 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74991
74992         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
74993         since strftime.c uses HAVE_STRFTIME to decide whether to use
74994         the underlying strftime.
74995
74996 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74997
74998         * lib/time/strftime.c (my_strftime): Make sure we call the system
74999         strftime, not ourselves, when invoking the underlying strftime.
75000
75001 2000-03-24  Jim Meyering  <meyering@lucent.com>
75002
75003         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
75004         (charset_alias): Define.
75005         (install-exec-local): Factor out common code.
75006         (uninstall-local): Split lines longer than 80.
75007         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
75008         (SUFFIXES): Define.
75009         (.sed.in.sed): New rule.  Don't redirect directly to $@.
75010         (CLEANFILES): Add ref-add.sed and ref-del.sed.
75011
75012 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
75013
75014         * lib/config.charset: Output a line containing "Packages using this
75015         file".
75016         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
75017         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
75018         ref-del.sed): New rules.
75019
75020 2000-03-17  Jim Meyering  <meyering@lucent.com>
75021
75022         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
75023         Otherwise, include <strings.h>
75024
75025 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
75026
75027         * lib/unicodeio.c (utf8_wctomb): New function.
75028         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
75029         format instead of in UCS-4 with platform dependent endianness.
75030
75031 2000-03-10  Jim Meyering  <meyering@lucent.com>
75032
75033         * m4/lib-check.m4: Look for getspnam in -lgen, too.
75034         From Marco Franzen.
75035
75036 2000-03-07  Paul Eggert  <eggert@twinsun.com>
75037
75038         * lib/savedir.c (savedir): Work even if directory size is
75039         negative; this can happen with some screwy NFS configurations.
75040
75041 2000-03-06  Jim Meyering  <meyering@lucent.com>
75042
75043         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
75044         if it's NULL (because we ran out of memory).  From Bruno Haible.
75045
75046 2000-03-05  Jim Meyering  <meyering@lucent.com>
75047
75048         * lib/localcharset.c ("path-concat.h"): Include.
75049         (get_charset_aliases): Use path_concat instead of ANSI string
75050         concatenation.
75051
75052         * lib/unicodeio.h (PARAMS): Define.
75053         Use it to guard prototype.
75054
75055 2000-03-04  Jim Meyering  <meyering@lucent.com>
75056
75057         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
75058         for lib/localcharset.c.
75059
75060 2000-03-04  Jim Meyering  <meyering@lucent.com>
75061
75062         * lib/Makefile.am (install-exec-local): Create $(libdir) before
75063         installing into it.
75064         (uninstall-local): Uncomment this rule so `make distcheck' works
75065         once again.
75066
75067         * lib/unicodeio.c (<errno.h>): Include it.
75068         (errno): Declare if not defined.
75069
75070         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
75071
75072         * lib/config.charset: New version, incorporating remarks from a linux
75073         i18n mailing list.  From Bruno Haible.
75074
75075 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
75076
75077         * m4/codeset.m4: New file.
75078         * m4/iconv.m4: New file.
75079         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
75080
75081 2000-03-03  Jim Meyering  <meyering@lucent.com>
75082
75083         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
75084
75085 2000-03-02  Jim Meyering  <meyering@lucent.com>
75086
75087         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
75088         the messages come out on separate lines.
75089
75090         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
75091         rather than jm_CHECK_DECLARATIONS.
75092         * m4/decl.m4: Remove now-unused file.
75093
75094         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
75095         geteuid.
75096
75097 2000-03-02  Jim Meyering  <meyering@lucent.com>
75098
75099         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
75100
75101 2000-03-01  Jim Meyering  <meyering@lucent.com>
75102
75103         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
75104         * lib/unicodeio.c: Likewise.
75105
75106 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
75107
75108         * lib/config.charset: New file.
75109         * lib/localcharset.c: New file.
75110         * lib/unicodeio.h, lib/unicodeio.c: New files.
75111         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
75112         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
75113         (noinst_HEADERS): Add unicodeio.h.
75114         (all-local, install-exec-local, charset.alias): New targets.
75115
75116 2000-02-28  Paul Eggert  <eggert@twinsun.com>
75117
75118         * lib/quotearg.c (ALERT_CHAR): New macro.
75119         (quotearg_buffer_restyled): Use it.
75120
75121 2000-02-27  Jim Meyering  <meyering@lucent.com>
75122
75123         * m4/check-decl.m4: Add getenv to the list.
75124
75125 2000-02-27  Jim Meyering  <meyering@lucent.com>
75126
75127         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
75128         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
75129
75130         * lib/backupfile.c: Guard inclusion of stdlib.h with
75131         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
75132         Declare malloc if needed.
75133
75134         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
75135         `#ifndef HAVE_DECL..'
75136         now that autoconf always defines the HAVE_DECL_ symbols.
75137         * lib/human.c: Likewise.
75138         * lib/same.c: Likewise.
75139         * lib/strtoumax.c: Likewise.
75140
75141         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
75142         declaration check was not run.
75143         * lib/hash.c: Likewise.
75144         * lib/human.c: Likewise.
75145         * lib/same.c: Likewise.
75146         * lib/strtoumax.c: Likewise.
75147
75148         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
75149         `.', then first look up the entire `.'-containing string as a login
75150         name.
75151
75152 2000-02-23  Jim Meyering  <meyering@lucent.com>
75153
75154         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
75155         in place of my hack.
75156
75157 2000-02-18  Paul Eggert  <eggert@twinsun.com>
75158
75159         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
75160         (textint): New typedef.
75161         (parser_control): Member year changed from int to textint.
75162         All uses changed.
75163         (YYSTYPE): Removed; replaced by %union with int and textint members.
75164         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
75165         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
75166         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
75167         (tSNUMBER, tUNUMBER): Now of type <textintval>.
75168         (date, number, to_year): Use width of number in digits, not its value,
75169         to determine whether it's a 2-digit year, or a 2-digit time.
75170         (yylex): Store number of digits of numeric tokens.
75171         Reported by John Kendall.
75172
75173         (parser_control): Changed from struct parser_control to typedef (for
75174         consistency).  All uses changed.
75175
75176         (tID): Removed; not used.
75177         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
75178
75179 2000-02-14  Paul Eggert  <eggert@twinsun.com>
75180
75181         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
75182         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
75183
75184 2000-02-12  Jim Meyering  <meyering@lucent.com>
75185
75186         * lib/userspec.c (ISDIGIT): Define it.
75187         (isdigit): Remove definition.
75188         (is_number): Use ISDIGIT, not isdigit.
75189         <libintl.h>: Include.
75190         (_ and N_): Define.
75191         (parse_user_spec): Mark translatable strings.
75192
75193 2000-02-10  Jim Meyering  <meyering@lucent.com>
75194
75195         With these changes, nanosleep.[ch] are finally enough like the other
75196         lib/* replacement files to compile on a few more losing systems.
75197
75198         * lib/nanosleep.h: Don't include config.h.
75199         Remove prototype from declaration of nanosleep.
75200         (PARAMS): Remove now-unneeded definition.
75201         * lib/nanosleep.c: #undef nanosleep.
75202         (rpl_nanosleep): Rename from nanosleep.
75203
75204 2000-02-10  Jim Meyering  <meyering@lucent.com>
75205
75206         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
75207         gnu_nanosleep to rpl_nanosleep.
75208
75209 2000-02-09  Jim Meyering  <meyering@lucent.com>
75210
75211         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
75212         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
75213
75214 2000-02-08  Akim Demaille  <akim@epita.fr>
75215
75216         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
75217         `[' and `]' and remove uses of `changequote'.
75218         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
75219         (AC_SYS_LARGEFILE): Likewise.
75220         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
75221         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
75222         of changequote.
75223         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
75224         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
75225         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
75226         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
75227
75228 2000-02-05  Jim Meyering  <meyering@lucent.com>
75229
75230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
75231         Remove explicit use of AC_HEADER_TIME.  It is required by
75232         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
75233         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
75234         in autoconf whereby the expansion of the latter ended up preceding
75235         the expansion of its prerequisite, AC_HEADER_TIME.
75236         Reported by Volker Borchert.
75237
75238 2000-02-03  Jim Meyering  <meyering@lucent.com>
75239
75240         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
75241
75242 2000-02-03  Jim Meyering  <meyering@lucent.com>
75243
75244         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
75245         rather than with `#if HAVE_UTMPNAME'.
75246
75247 2000-02-02  Jim Meyering  <meyering@lucent.com>
75248
75249         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
75250         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
75251         Reported by Eli Zaretskii.
75252
75253 2000-02-01  Jim Meyering  <meyering@lucent.com>
75254
75255         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
75256
75257 2000-01-31  Jim Meyering  <meyering@lucent.com>
75258
75259         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
75260         functions.  Add the time.h and sys/time.h headers along with the
75261         AC_REQUIRE'ment of AC_HEADER_TIME.
75262
75263 2000-01-31  Jim Meyering  <meyering@lucent.com>
75264
75265         * lib/nanosleep.h (nanosleep): Guard declaration with
75266         `#if ! HAVE_DECL_NANOSLEEP'.
75267         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
75268         the declaration in that vendor's sys/timers.h.
75269         Reported by Christian Krackowizer.
75270
75271         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
75272         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
75273         (ISPRINT): Likewise.
75274         Reported by Tom Tromey.
75275
75276 2000-01-30  Jim Meyering  <meyering@lucent.com>
75277
75278         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
75279
75280         * m4/prereq.m4 (utmp_includes): Define.
75281         Check for ut_user and ut_name members in both struct utmpx
75282         and struct utmp.
75283
75284 2000-01-30  Jim Meyering  <meyering@lucent.com>
75285
75286         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
75287         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
75288         header files where only utmpx.ut_user is declared.
75289
75290         * lib/readutmp.h (UT_USER): Define.
75291
75292 2000-01-29  Jim Meyering  <meyering@lucent.com>
75293
75294         * m4/lib-check.m4: New file containing library-related checks from
75295         fileutils and sh-utils (textutils had none).
75296
75297 2000-01-28  Jim Meyering  <meyering@lucent.com>
75298
75299         * m4/perl.m4: Change format of warning message to look more like that
75300         from the missing script.  Suggestion from François Pinard.
75301
75302 2000-01-25  Jim Meyering  <meyering@lucent.com>
75303
75304         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
75305         well as time.h in the compile check.
75306         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
75307         Fix typo in cross-compiling case: s/yes/no/.
75308
75309 2000-01-23  Jim Meyering  <meyering@lucent.com>
75310
75311         * m4/jm-macros.m4: Move df-related tests here from
75312         fileutils/configure.in
75313
75314         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
75315         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
75316
75317         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
75318         s/space/ac_fsusage_space/.
75319         (jm_FILE_SYSTEM_USAGE): Take two parameters.
75320
75321         * m4/ftruncate.m4: New file (derived from part of
75322         fileutils/configure.in).
75323         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
75324         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
75325
75326         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
75327         AC_SUBST these here, rather than just in sh-util/configure.in, so
75328         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
75329         all the same.
75330         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
75331         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
75332         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
75333         (AC_SUBST(POW_LIBM)): Likewise.
75334         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
75335
75336 2000-01-23  Jim Meyering  <meyering@lucent.com>
75337
75338         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
75339         obstack.c.
75340
75341 2000-01-22  Jim Meyering  <meyering@lucent.com>
75342
75343         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
75344
75345         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
75346
75347         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
75348         configure.in
75349         (AC_CHECK_HEADERS): Likewise for sh-utils.
75350         (AC_CHECK_HEADERS): Likewise for textutils.
75351         Merge the three lists of headers.
75352
75353         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
75354         from fileutils' configure.in.
75355
75356         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
75357         code. Moved tests into their own function (_jm_DECL_HEADERS) in
75358         check-decl.m4.
75359
75360         * m4/check-decl.m4: Use #if rather than #ifdef.
75361         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
75362         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
75363         (_jm_DECL_HEADERS): Define new function.
75364         (jm_CHECK_DECLARATIONS): Require it.
75365
75366 2000-01-22  Jim Meyering  <meyering@lucent.com>
75367
75368         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
75369         [! HAVE_DECL_STRTOULL]: Declare strtoull.
75370         Required for some AIX systems.  Reported by Christian Krackowizer.
75371         [TESTING] (main): New function.
75372
75373         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
75374         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
75375         letters.
75376
75377         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
75378         iswprint.
75379
75380         * lib/strverscmp.c (ISDIGIT): Define.
75381         (strverscmp): Use ISDIGIT, not isdigit.
75382
75383 2000-01-19  Jim Meyering  <meyering@lucent.com>
75384
75385         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
75386         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
75387         defines `struct timespec' in <sys/time.h>
75388
75389         * m4/c-bs-a.m4: Remove uses of changequote altogether.
75390         Thanks to Akim for explaining.
75391
75392 2000-01-17  Paul Eggert  <eggert@twinsun.com>
75393
75394         * lib/nanosleep.c (nanosleep):
75395         Don't use SA_INTERRUPT to decide whether to call sigaction, as
75396         POSIX.1 doesn't require SA_INTERRUPT and some systems
75397         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
75398         it's been part of POSIX.1 since day 1 (in 1988).
75399
75400 2000-01-17  Jim Meyering  <meyering@lucent.com>
75401
75402         * lib/interlock: Remove unused file.  Reported by François Pinard.
75403
75404 2000-01-16  Paul Eggert  <eggert@twinsun.com>
75405
75406         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
75407         alert, backslash, formfeed, and vertical tab unnecessarily in
75408         shell quoting style.
75409
75410 2000-01-16  Jim Meyering  <meyering@lucent.com>
75411
75412         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
75413         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
75414         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
75415         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
75416
75417 2000-01-16  Jim Meyering  <meyering@lucent.com>
75418
75419         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
75420         because the latter didn't work.
75421
75422 2000-01-15  Jim Meyering  <meyering@lucent.com>
75423
75424         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
75425         (AC_REPLACE_FUNCS): Add memcpy and memset.
75426         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
75427         Add strpbrk.
75428         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
75429
75430 2000-01-12  Jim Meyering  <meyering@lucent.com>
75431
75432         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
75433         (jm_PREREQ): Use it.
75434         (jm_PREREQ_READUTMP): New macro.
75435         (jm_PREREQ): Use it.
75436
75437 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75438
75439         Quote multibyte characters correctly.
75440         * m4/c-bs-a.m4: New file.
75441         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
75442         (jm_PREREQ): Use it.
75443
75444 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75445
75446         * m4/uintmax_t.m4: Port to autoconf 2.13.
75447
75448 2000-01-08  Jim Meyering  <meyering@ascend.com>
75449
75450         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
75451         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
75452
75453 2000-01-04  Jim Meyering  <meyering@ascend.com>
75454
75455         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
75456         jm_STRUCT_DIRENT_D_TYPE.
75457         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
75458         jm_STRUCT_DIRENT_D_INO.
75459         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
75460         jm_STRUCT_UTIMBUF.
75461         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
75462         renamings.
75463         * m4/utime.m4: Likewise.
75464
75465         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
75466         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
75467
75468 2000-01-03  Paul Eggert  <eggert@twinsun.com>
75469
75470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
75471         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
75472
75473 2000-01-02  Jim Meyering  <meyering@ascend.com>
75474
75475         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
75476         remember if this is necessary.
75477
75478 1999-12-26  Jim Meyering  <meyering@ascend.com>
75479
75480         * m4/jm-macros.m4: Use it here.
75481         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
75482
75483 1999-12-23  Jim Meyering  <meyering@ascend.com>
75484
75485         * m4/jm-macros.m4: Check for clock_gettime (moved from
75486         fileutils/configure.in)
75487         Check for gettimeofday.
75488
75489 1999-12-20  Jim Meyering  <meyering@ascend.com>
75490
75491         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
75492         autoconf-2.14a-1999-12-20.
75493
75494 1999-12-19  Jim Meyering  <meyering@ascend.com>
75495
75496         * m4/lstat-slash.m4: New file.
75497         * m4/jm-macros.m4: Use the new macro:
75498         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75499
75500 1999-12-07  Jim Meyering  <meyering@ascend.com>
75501
75502         * m4/perl.m4: Require that File::Compare be available, too.
75503         Too many systems seem to lack it.
75504
75505         * m4/strftime.m4: Add checks for most of the cpp macros tested in
75506         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
75507
75508 1999-11-18  Paul Eggert  <eggert@twinsun.com>
75509
75510         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
75511         problem with the QNX 4.25 shell, which doesn't propagate exit
75512         status of failed commands inside shell assignments.
75513
75514 1999-11-17  Jim Meyering  <meyering@ascend.com>
75515
75516         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
75517
75518 1999-11-07  Jim Meyering  <meyering@ascend.com>
75519
75520         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
75521
75522 1999-11-06  Jim Meyering  <meyering@ascend.com>
75523
75524         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
75525         * m4/jm-macros.m4 (jm_MACROS): Use it here.
75526
75527 1999-11-05  Jim Meyering  <meyering@ascend.com>
75528
75529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
75530         configure.in of textutils, fileutils, and sh-utils into this one
75531         (shared between those packages) file.
75532         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
75533         AC_STRUCT_ST_BLKSIZE.
75534
75535 1999-11-03  Jim Meyering  <meyering@ascend.com>
75536
75537         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
75538         of AC_CHECK_TYPE checks includes unistd.h.
75539         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
75540         Suggestion from Akim Demaille.
75541
75542 1999-10-30  Jim Meyering  <meyering@ascend.com>
75543
75544         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
75545         m4-quoted string.
75546         * m4/ls-mntd-fs.m4: Likewise.
75547         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
75548         * m4/jm-winsz1.m4: Likewise.
75549
75550         * m4/const.m4: Remove file, since the fix made it into the experimental
75551         version of autoconf.
75552         * m4/mktime.m4: Likewise.
75553
75554         * m4/check-type.m4: Remove file, now that the latest version of
75555         AC_CHECK_TYPE takes a third arg to specify additional #includes.
75556
75557         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
75558         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
75559         AC_CHECK_TYPE.
75560
75561 1999-10-04  Jim Meyering  <meyering@ascend.com>
75562
75563         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
75564
75565 1999-09-22  Paul Eggert  <eggert@twinsun.com>
75566
75567         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
75568         2.95.1 bug with HP-UX 10.20.
75569
75570 1999-09-17  Jim Meyering  <meyering@ascend.com>
75571
75572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
75573         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
75574         due to missing strdup (against sh-utils-2.0).
75575
75576 1999-08-29  Jim Meyering  <meyering@ascend.com>
75577
75578         * m4/jm-macros.m4: Require jm_BISON.
75579         * m4/bison.m4: New file.
75580
75581 1999-08-17  Paul Eggert  <eggert@twinsun.com>
75582
75583         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
75584         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
75585
75586 1999-08-05  Jim Meyering  <meyering@ascend.com>
75587
75588         * m4/getline.m4: Rename test file from conftestdata to conftest.data
75589         to avoid conflicts with `conftest' on 8+3 filesystems.
75590         Suggestion from Eli Zaretskii.
75591
75592 1999-08-04  Jim Meyering  <meyering@ascend.com>
75593
75594         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
75595         fileutils and sh-utils (textutils's getline test was inadequate).
75596         (AM_FUNC_GETLINE): Run this test.
75597         (AC_CHECK_FUNCS): Check for getdelim.
75598         Reported by Bob Proulx.
75599
75600 1999-08-02  Jim Meyering  <meyering@ascend.com>
75601
75602         * m4/jm-macros.m4: Add a comment.
75603
75604 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75605
75606         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
75607         <inttypes.h> defines strtoumax as a macro (and not as a
75608         function).
75609
75610 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75611
75612         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
75613         that we can shift, multiply and divide unsigned long long
75614         values; Ultrix cc can't do it.
75615
75616 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75617
75618         * m4/mktime.m4: New file, which is a preview of what should appear
75619         in the next public autoconf release.
75620
75621 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75622
75623         * m4/lfs.m4: Remove this file.
75624         * m4/largefile.m4: New file.  It contains the old contents of
75625         lfs.m4, except that all names with prefix AC_LFS have been
75626         changed to use the prefix AC_SYS_LARGEFILE instead, to be
75627         compatible with future autoconf versions.  Also, some minor m4
75628         quoting problems have been fixed.
75629
75630 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75631
75632         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
75633         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
75634         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
75635         and simplify the shell code.
75636
75637 1999-08-01  Jim Meyering  <meyering@ascend.com>
75638
75639         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
75640         m4.
75641
75642 1999-07-20  Jim Meyering  <meyering@ascend.com>
75643
75644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
75645
75646 1999-07-15  Jim Meyering  <meyering@ascend.com>
75647
75648         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
75649
75650 1999-05-22  Jim Meyering  <meyering@ascend.com>
75651
75652         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
75653
75654 1999-05-20  Jim Meyering  <meyering@ascend.com>
75655
75656         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
75657         Add a colon after each `then' in case $4 is empty.
75658
75659 1999-05-16  Jim Meyering  <meyering@ascend.com>
75660
75661         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
75662
75663 1999-05-10  Jim Meyering  <meyering@ascend.com>
75664
75665         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
75666
75667         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
75668         AC_FUNC_MKTIME.
75669
75670 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
75671
75672         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
75673
75674 1999-05-04  Paul Eggert  <eggert@twinsun.com>
75675
75676         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
75677         not CPPFLAGS, so that linking works correctly in IRIX.
75678
75679 1999-04-30  Paul Eggert  <eggert@twinsun.com>
75680
75681         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
75682
75683 1999-04-20  Paul Eggert  <eggert@twinsun.com>
75684
75685         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
75686         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
75687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
75688         jm_AC_TYPE_UNSIGNED_LONG_LONG.
75689         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
75690
75691         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
75692
75693 1999-04-20  Jim Meyering  <meyering@ascend.com>
75694
75695         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
75696         AC_REPLACE xstroull if necessary.  From Paul Eggert.
75697         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
75698
75699 1999-04-18  Jim Meyering  <meyering@ascend.com>
75700
75701         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
75702         * m4/jm-macros.m4: Use it.
75703
75704 1999-04-06  Jim Meyering  <meyering@ascend.com>
75705
75706         * m4/strftime.m4: Remove test for %f.
75707
75708 1999-03-29  Jim Meyering  <meyering@ascend.com>
75709
75710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75711         superset of the AC_TYPE_* checks in the textutils, fileutils,
75712         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75713         AC_TYPE_PID_T.
75714
75715 1999-03-28  Jim Meyering  <meyering@ascend.com>
75716
75717         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75718         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75719         replaced e.g., in the *.sh files of the sh-utils.
75720
75721 1999-03-20  Jim Meyering  <meyering@ascend.com>
75722
75723         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75724         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75725         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75726
75727 1999-03-19  Jim Meyering  <meyering@ascend.com>
75728
75729         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75730
75731 1999-03-12  Jim Meyering  <meyering@ascend.com>
75732
75733         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75734
75735 1999-03-07  Jim Meyering  <meyering@ascend.com>
75736
75737         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75738         declared.
75739
75740 1999-02-17  Jim Meyering  <meyering@ascend.com>
75741
75742         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75743         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75744
75745 1999-02-07  Jim Meyering  <meyering@ascend.com>
75746
75747         * m4/group-member.m4: New file -- extracted from sh-utils'
75748         configure.in.
75749
75750         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75751         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75752
75753 1999-02-06  Jim Meyering  <meyering@ascend.com>
75754
75755         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75756         * m4/fnmatch.m4: Likewise.
75757         * m4/getgroups.m4: Likewise.
75758         * m4/lstat.m4: Likewise.
75759         * m4/malloc.m4: Likewise.
75760         * m4/putenv.m4: Likewise.
75761         * m4/realloc.m4: Likewise.
75762         * m4/regex.m4: Likewise.
75763         * m4/stat.m4: Likewise.
75764         * m4/strftime.m4: Likewise.
75765         Suggestion from Alain Magloire.
75766
75767         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75768         * m4/fnmatch.m4: Likewise.
75769         * m4/getgroups.m4: Likewise.
75770         * m4/getline.m4: Likewise.
75771         * m4/lstat.m4: Likewise.
75772         * m4/malloc.m4: Likewise.
75773         * m4/memcmp.m4: Likewise.
75774         * m4/putenv.m4: Likewise.
75775         * m4/realloc.m4: Likewise.
75776         * m4/regex.m4: Likewise.
75777         * m4/stat.m4: Likewise.
75778         * m4/strftime.m4: Likewise.
75779         Suggestion from Alain Magloire.
75780
75781         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75782         an argument.
75783
75784         * m4/regex.m4: Add a run-time Test for proper operation of
75785         re_compile_pattern.
75786
75787 1999-01-31  Jim Meyering  <meyering@ascend.com>
75788
75789         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75790
75791 1999-01-30  Jim Meyering  <meyering@ascend.com>
75792
75793         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75794
75795         * m4/jm-mktime.m4: Make this a wrapper around the official
75796         AM_FUNC_MKTIME rather than my private copy, now that the official one
75797         is up to date.
75798         * m4/mktime.m4: Remove file.
75799
75800         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75801         * m4/uptime.m4: Likewise.
75802         * m4/uintmax_t.m4: Likewise.
75803
75804 1999-01-28  Jim Meyering  <meyering@ascend.com>
75805
75806         * m4/jm-macros.m4: Use jm_AFS.
75807         * m4/afs.m4: New file (from fileutils' configure.in).
75808
75809         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75810         * m4/chown.m4: Likewise.
75811         * m4/d-ino.m4: Likewise.
75812         * m4/d-type.m4: Likewise.
75813         * m4/fnmatch.m4: Likewise.
75814         * m4/getgroups.m4: Likewise.
75815         * m4/gettext.m4: Likewise.
75816         * m4/jm-mktime.m4: Likewise.
75817         * m4/jm-winsz2.m4: Likewise.
75818         * m4/lcmessage.m4: Likewise.
75819         * m4/ls-mntd-fs.m4: Likewise.
75820         * m4/malloc.m4: Likewise.
75821         * m4/memcmp.m4: Likewise.
75822         * m4/putenv.m4: Likewise.
75823         * m4/realloc.m4: Likewise.
75824         * m4/st_mtim.m4: Likewise.
75825         * m4/strftime.m4: Likewise.
75826
75827 1999-01-16  Jim Meyering  <meyering@ascend.com>
75828
75829         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75830         (ARGMATCH_DIE_DECL): Define.
75831
75832 1999-01-12  Jim Meyering  <meyering@ascend.com>
75833
75834         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75835         Reported by Lars Hecking.
75836
75837 1999-01-10  Jim Meyering  <meyering@ascend.com>
75838
75839         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75840         gross kludge.
75841         * m4/inttypes_h.m4: Likewise.
75842         * m4/lstat.m4: Likewise.
75843         * m4/malloc.m4: Likewise.
75844         * m4/readdir.m4: Likewise.
75845         * m4/realloc.m4: Likewise.
75846         * m4/st_dm_mode.m4: Likewise.
75847         * m4/stat.m4: Likewise.
75848         * m4/utimbuf.m4: Likewise.
75849         * m4/utimes.m4: Likewise.
75850
75851         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75852         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75853         comments in config.h.in are meaningful.
75854
75855         * m4/jm-macros.m4: Require autoconf-2.13 here.
75856
75857         * m4/regex.m4: By default, don't use the included regex.c on systems
75858         with glibc 2.  Suggestion from Uli Drepper.
75859
75860 1999-01-02  Jim Meyering  <meyering@ascend.com>
75861
75862         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75863
75864 1998-12-18  Jim Meyering  <meyering@ascend.com>
75865
75866         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75867         Based on a suggestion from Lars Hecking.
75868
75869 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75870
75871         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75872
75873 1998-11-16  Jim Meyering  <meyering@ascend.com>
75874
75875         * m4/lfs.m4: Double-quote the `uname...` expression.
75876
75877 1998-11-14  Jim Meyering  <meyering@ascend.com>
75878
75879         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75880         * m4/stat.m4: Likewise.
75881
75882 1998-11-03  Jim Meyering  <meyering@ascend.com>
75883
75884         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75885         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75886
75887 1998-10-18  Jim Meyering  <meyering@ascend.com>
75888
75889         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75890
75891 1998-10-17  Jim Meyering  <meyering@ascend.com>
75892
75893         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75894         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75895         calls for those previously hard-coded headers.  Instead, take a new
75896         parameter.
75897         (jm_CHECK_DECLARATIONS): Reflect interface change.
75898         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75899         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75900
75901         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75902
75903 1998-10-14  Jim Meyering  <meyering@ascend.com>
75904
75905         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75906         instead of "TZ=America/Vancouver".  From Paul Eggert.
75907
75908 1998-10-11  Jim Meyering  <meyering@ascend.com>
75909
75910         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75911         This adds a test for a recently added compatibility fix for mktime.c.
75912         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75913
75914 1998-09-27  Jim Meyering  <meyering@ascend.com>
75915
75916         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75917
75918         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75919         ../configure.in, including a change from Gordon Matzigkeit to allow
75920         cross-compiling for the Hurd.
75921
75922         * m4/glibc.m4: New file/macro to test for the GNU C Library
75923         versions 1 and 2.  From Gordon Matzigkeit.
75924         Indent.
75925
75926 1998-09-21  Jim Meyering  <meyering@ascend.com>
75927
75928         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75929
75930 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75931
75932         Port nanosecond-resolution times to UnixWare 2.1.2 and
75933         pedantic Solaris 2.6.
75934
75935         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75936         AC_STRUCT_ST_MTIM.
75937         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75938         Generate name of ns member, instead of just 1 or undef.
75939         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75940
75941 1998-08-15  Jim Meyering  <meyering@ascend.com>
75942
75943         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75944         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75945         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75946         instead of jm_TYPE_SSIZE_T.
75947
75948 1998-08-12  Jim Meyering  <meyering@ascend.com>
75949
75950         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75951
75952 1998-08-02  Jim Meyering  <meyering@ascend.com>
75953
75954         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75955         in acconfig.h manually.
75956
75957 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75958
75959         * m4/st_mtim.m4: New file.
75960
75961 1998-07-28  Jim Meyering  <meyering@ascend.com>
75962
75963         * m4/utimes.m4: Undef stat.
75964
75965 1998-07-25  Jim Meyering  <meyering@ascend.com>
75966
75967         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
75968         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
75969
75970 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
75971
75972         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
75973         uid and gid actually remain unchanged.
75974
75975 1998-07-07  Jim Meyering  <meyering@ascend.com>
75976
75977         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
75978
75979 1998-07-04  Jim Meyering  <meyering@ascend.com>
75980
75981         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
75982         to prove that this macro can be used in packages without regex.c.
75983
75984 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
75985
75986         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
75987         is to be used.
75988
75989 1998-07-03  Jim Meyering  <meyering@ascend.com>
75990
75991         * m4/gettext.m4: Add -lintl if it's found to be necessary.
75992
75993         * m4/gettext.m4: New file -- from gettext-0.10.35.
75994         * m4/lcmessage.m4: Likewise.
75995         * m4/progtest.m4: Likewise.
75996
75997         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
75998         * m4/jm-macros.m4: Require the new macro.
75999
76000 1998-06-29  Jim Meyering  <meyering@ascend.com>
76001
76002         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
76003         for the definition of NGROUPS (used in a system header included
76004         by sys/mount.h).
76005
76006 1998-06-28  Jim Meyering  <meyering@ascend.com>
76007
76008         * m4/ls-mntd-fs.m4: New file.
76009         * m4/fstypename.m4: New file.
76010
76011         * m4/jm-macros.m4: Require the new macro.
76012         * m4/jm-glibc-io.m4: New file.
76013
76014 1998-05-19  Jim Meyering  <meyering@ascend.com>
76015
76016         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
76017         * m4/lchown.m4: New file.
76018
76019         * m4/Makefile.am.in: New file.
76020         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
76021
76022 1998-05-14  Jim Meyering  <meyering@ascend.com>
76023
76024         * m4/Makefile.am (EXTRA_DIST): Add them.
76025         * m4/jm-macros.m4: New file.
76026         * m4/utimbuf.m4: New file.
76027
76028 1998-05-12  Jim Meyering  <meyering@ascend.com>
76029
76030         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
76031
76032 1998-05-11  Jim Meyering  <meyering@ascend.com>
76033
76034         * m4/isc-posix.m4: New file.
76035
76036 1998-05-10  Jim Meyering  <meyering@ascend.com>
76037
76038         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
76039
76040 1998-05-09  Jim Meyering  <meyering@ascend.com>
76041
76042         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
76043         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
76044         with automake.
76045
76046         * m4/ssize_t.m4: New file.
76047         * m4/mktime.m4: Remove file -- the new automake has this now.
76048
76049 1998-04-26  Jim Meyering  <meyering@ascend.com>
76050
76051         * m4/assert.m4: New file.
76052         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
76053
76054 1998-04-05  Jim Meyering  <meyering@ascend.com>
76055
76056         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
76057         (jm_PREREQ): Use it here.
76058
76059 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
76060
76061         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
76062         in acconfig.h.
76063
76064 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
76065
76066         * m4/prereq.m4: New file.
76067         * m4/error.m4: New file.
76068         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
76069
76070 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
76071
76072         * m4/getline.m4: Don't set am_cv_func_working_getline before the
76073         cache-check for the same variable -- that defeated the purpose of
76074         the test; the test program was never run.  This was a problem only
76075         on systems with losing getline functions -- HP-UX 10.20 is one.
76076         Reported by Bjorn Helgaas.
76077
76078 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
76079
76080         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
76081
76082 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
76083
76084         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
76085
76086         * m4/const.m4: New file.  Use an initializer in this declaration
76087         typedef int charset[2]; const charset x;
76088         Reported by Bob Glickstein.
76089
76090 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
76091
76092         * m4/chown.m4: Fix reversed types on -1 args to chown.
76093         From Kaveh Ghazi.
76094
76095 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
76096
76097         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
76098         Add lseek and memchr.
76099
76100         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
76101         T.E.Dickey <dickey@clark.net> said that some older preprocessors
76102         have a 20-character limit on names.
76103
76104 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
76105
76106         * m4/inttypes_h.m4: New file.
76107         * m4/uintmax_t.m4: New file.
76108         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
76109
76110
76111         -----
76112
76113         Local Variables:
76114         coding: utf-8
76115         End:
76116
76117         Copyright (C) 1997-2011 Free Software Foundation, Inc.
76118
76119         Copying and distribution of this file, with or without
76120         modification, are permitted provided the copyright notice
76121         and this notice are preserved.